mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
Generate Bus.Post() code automatically
This commit is contained in:
parent
82f9687b7c
commit
7eebc0c2bc
2 changed files with 1 additions and 13 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
<attr path="/api/namespace/enum[@name='BufferFlags']/member[@cname='GST_BUFFER_FLAG_MEDIA3']" name="value">MiniObjectFlags.Last << 7</attr>
|
||||
<attr path="/api/namespace/enum[@name='BufferFlags']/member[@cname='GST_BUFFER_FLAG_LAST']" name="value">MiniObjectFlags.Last << 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>
|
||||
|
|
Loading…
Reference in a new issue