Generate Bus.Post() code automatically

This commit is contained in:
Sebastian Dröge 2009-06-20 11:40:42 +02:00
parent 82f9687b7c
commit 7eebc0c2bc
2 changed files with 1 additions and 13 deletions

View file

@ -1,15 +1,3 @@
[DllImport("libgstreamer-0.10.dll") ]
static extern bool gst_bus_post (IntPtr raw, IntPtr message);
[DllImport("libgstreamer-0.10.dll") ]
static extern IntPtr gst_mini_object_copy (IntPtr raw);
public bool Post (Gst.Message message) {
bool raw_ret = gst_bus_post (Handle, message == null ? IntPtr.Zero : gst_mini_object_copy (message.Handle));
bool ret = raw_ret;
return ret;
}
[DllImport("libgstreamer-0.10.dll") ]
static extern int gst_bus_sync_signal_handler (IntPtr raw, IntPtr message, IntPtr data);

View file

@ -87,7 +87,7 @@
<attr path="/api/namespace/enum[@name='BufferFlags']/member[@cname='GST_BUFFER_FLAG_MEDIA3']" name="value">MiniObjectFlags.Last &lt;&lt; 7</attr>
<attr path="/api/namespace/enum[@name='BufferFlags']/member[@cname='GST_BUFFER_FLAG_LAST']" name="value">MiniObjectFlags.Last &lt;&lt; 8</attr>
<attr path="/api/namespace/object[@name='Bus']/method[@cname='gst_bus_post']" name="hidden">1</attr>
<attr path="/api/namespace/object[@name='Bus']/method[@cname='gst_bus_post']/parameters/parameter[@name='message']" name="owned">true</attr>
<attr path="/api/namespace/object[@name='Bus']/method[@cname='gst_bus_peek']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@name='Bus']/method[@cname='gst_bus_pop']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@name='Bus']/method[@cname='gst_bus_pop_filtered']/return-type" name="owned">true</attr>