mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
33 lines
1.3 KiB
Text
33 lines
1.3 KiB
Text
[DllImport ("libgstreamer-0.10.dll") ]
|
|
static extern int gst_bus_sync_signal_handler (IntPtr raw, IntPtr message, IntPtr data);
|
|
|
|
public Gst.BusSyncReply SyncSignalHandler (Gst.Message message) {
|
|
int raw_ret = gst_bus_sync_signal_handler (Handle, message == null ? IntPtr.Zero : message.Handle, IntPtr.Zero);
|
|
Gst.BusSyncReply ret = (Gst.BusSyncReply) raw_ret;
|
|
return ret;
|
|
}
|
|
|
|
public uint AddWatch (Gst.BusFunc func) {
|
|
return AddWatch (0, func);
|
|
}
|
|
|
|
[DllImport ("libgstreamer-0.10.dll") ]
|
|
static extern bool gst_bus_async_signal_func (IntPtr raw, IntPtr message, IntPtr data);
|
|
|
|
public bool AsyncSignalFunc (Gst.Message message) {
|
|
bool raw_ret = gst_bus_async_signal_func (Handle, message == null ? IntPtr.Zero : message.Handle, IntPtr.Zero);
|
|
bool ret = raw_ret;
|
|
return ret;
|
|
}
|
|
|
|
[DllImport ("libgstreamer-0.10.dll", CallingConvention = CallingConvention.Cdecl) ]
|
|
static extern void gst_bus_set_sync_handler (IntPtr raw, GstSharp.BusSyncHandlerNative func, IntPtr data);
|
|
private GstSharp.BusSyncHandlerWrapper sync_handler = null;
|
|
|
|
public Gst.BusSyncHandler SyncHandler {
|
|
set {
|
|
GstSharp.BusSyncHandlerWrapper value_wrapper = new GstSharp.BusSyncHandlerWrapper (value);
|
|
sync_handler = value_wrapper;
|
|
gst_bus_set_sync_handler (Handle, value_wrapper.NativeDelegate, IntPtr.Zero);
|
|
}
|
|
}
|