Make some element methods protected as they should be

This commit is contained in:
Sebastian Dröge 2009-06-23 13:21:06 +02:00
parent 55c47c29ec
commit 58c9aeb8a6
2 changed files with 7 additions and 3 deletions

View file

@ -3,7 +3,7 @@ static extern IntPtr g_object_ref (IntPtr raw);
[DllImport("libgstreamer-0.10.dll") ] [DllImport("libgstreamer-0.10.dll") ]
static extern bool gst_element_add_pad (IntPtr raw, IntPtr pad); static extern bool gst_element_add_pad (IntPtr raw, IntPtr pad);
public bool AddPad (Pad p) { protected bool AddPad (Pad p) {
bool ret = gst_element_add_pad (this.Handle, p == null ? IntPtr.Zero : p.Handle); bool ret = gst_element_add_pad (this.Handle, p == null ? IntPtr.Zero : p.Handle);
if (ret) if (ret)
g_object_ref (p.Handle); g_object_ref (p.Handle);
@ -35,14 +35,14 @@ static extern void gst_element_found_tags (IntPtr raw, IntPtr list);
[DllImport("libgstreamer-0.10.dll") ] [DllImport("libgstreamer-0.10.dll") ]
static extern IntPtr gst_tag_list_copy (IntPtr raw); static extern IntPtr gst_tag_list_copy (IntPtr raw);
public void FoundTags (Gst.TagList list) { protected void FoundTags (Gst.TagList list) {
gst_element_found_tags (Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle)); gst_element_found_tags (Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle));
} }
[DllImport("libgstreamer-0.10.dll") ] [DllImport("libgstreamer-0.10.dll") ]
static extern void gst_element_found_tags_for_pad (IntPtr raw, IntPtr pad, IntPtr list); static extern void gst_element_found_tags_for_pad (IntPtr raw, IntPtr pad, IntPtr list);
public void FoundTagsForPad (Gst.Pad pad, Gst.TagList list) { protected void FoundTagsForPad (Gst.Pad pad, Gst.TagList list) {
gst_element_found_tags_for_pad (Handle, pad == null ? IntPtr.Zero : pad.Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle)); gst_element_found_tags_for_pad (Handle, pad == null ? IntPtr.Zero : pad.Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle));
} }

View file

@ -291,6 +291,7 @@
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_found_tags_for_pad']" name="hidden">1</attr> <attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_found_tags_for_pad']" name="hidden">1</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_message_full']" name="hidden">1</attr> <attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_message_full']" name="hidden">1</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_post_message']/parameters/parameter[@name='message']" name="owned">true</attr> <attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_post_message']/parameters/parameter[@name='message']" name="owned">true</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_post_message']" name="accessibility">protected</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_send_event']/parameters/parameter[@name='event']" name="owned">true</attr> <attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_send_event']/parameters/parameter[@name='event']" name="owned">true</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_seek_simple']" name="name">Seek</attr> <attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_seek_simple']" name="name">Seek</attr>
<remove-attr path="/api/namespace/object[@name='Element']/field[@name='CurrentState']" name="hidden"/> <remove-attr path="/api/namespace/object[@name='Element']/field[@name='CurrentState']" name="hidden"/>
@ -299,6 +300,9 @@
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_pads']" name="name">GetPads</attr> <attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_pads']" name="name">GetPads</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_src_pads']" name="name">GetSrcPads</attr> <attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_src_pads']" name="name">GetSrcPads</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_sink_pads']" name="name">GetSinkPads</attr> <attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_sink_pads']" name="name">GetSinkPads</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_create_all_pads']" name="accessibility">protected</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_no_more_pads']" name="accessibility">protected</attr>
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_remove_pad']" name="accessibility">protected</attr>
<attr path="/api/namespace/struct[@name='ElementDetails']" name="internal">1</attr> <attr path="/api/namespace/struct[@name='ElementDetails']" name="internal">1</attr>