Fix bindings of the tag merge functions

This commit is contained in:
Sebastian Dröge 2009-04-21 19:27:35 +02:00
parent d835a93153
commit bdda44d849
2 changed files with 18 additions and 3 deletions

View file

@ -451,8 +451,8 @@
<attr path="/api/namespace/object[@name='Task']/field[@name='Func']" name="hidden">1</attr>
<attr path="/api/namespace/class[@name='Tag']" name="disable_void_ctor">1</attr>
<attr path="/api/namespace/class[@name='Tag']/method[@cname='gst_tag_merge_strings_with_comma']/parameters/parameter" name="pass_as">ref</attr>
<attr path="/api/namespace/class[@name='Tag']/method[@cname='gst_tag_merge_use_first']/parameters/parameter" name="pass_as">ref</attr>
<attr path="/api/namespace/class[@name='Tag']/method[@cname='gst_tag_merge_strings_with_comma']" name="hidden">1</attr>
<attr path="/api/namespace/class[@name='Tag']/method[@cname='gst_tag_merge_use_first']" name="hidden">1</attr>
<attr path="/api/namespace/callback[@name='TagForeachFunc']" name="hidden">1</attr>
@ -498,7 +498,8 @@
<attr path="/api/namespace/boxed[@name='TagList']/method[@cname='gst_tag_list_copy_value']" name="hidden">1</attr>
<attr path="/api/namespace/boxed[@name='TagList']/method[@cname='gst_tag_list_merge']/return-type" name="owned">true</attr>
<attr path="/api/namespace/callback[@name='TagMergeFunc']/parameters/parameter" name="pass_as">ref</attr>
<attr path="/api/namespace/callback[@name='TagMergeFunc']/parameters/parameter[@name='dest']" name="pass_as">out</attr>
<attr path="/api/namespace/callback[@name='TagMergeFunc']/parameters/parameter[@name='src']" name="pass_as">ref</attr>
<attr path="/api/namespace/struct[@name='TypeFind']/method[@name='Register']" name="hidden">1</attr>

View file

@ -9,6 +9,20 @@ public static void Register (string name, Gst.TagFlags flag, System.Type type, s
Register (name, flag, gt, nick, blurb, func);
}
[DllImport("gstreamer-0.10.dll")]
static extern void gst_tag_merge_strings_with_comma(out GLib.Value dest, ref GLib.Value src);
public static void MergeStringsWithComma(out GLib.Value dest, ref GLib.Value src) {
gst_tag_merge_strings_with_comma(out dest, ref src);
}
[DllImport("gstreamer-0.10.dll")]
static extern void gst_tag_merge_use_first(out GLib.Value dest, ref GLib.Value src);
public static void MergeUseFirst(out GLib.Value dest, ref GLib.Value src) {
gst_tag_merge_use_first(out dest, ref src);
}
public const string Title = "title";
public const string TitleSortname = "title-sortname";
public const string Artist = "artist";