Exemple #1
0
 public PadProbeCallbackWrapper(PadProbeCallback managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new PadProbeCallbackNative(NativeCallback);
     }
 }
Exemple #2
0
        public static PadProbeCallback GetManagedDelegate(PadProbeCallbackNative native)
        {
            if (native == null)
            {
                return(null);
            }
            PadProbeCallbackWrapper wrapper = (PadProbeCallbackWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
 static extern ulong gst_pad_add_probe(IntPtr pad, PadProbeType mask, PadProbeCallbackNative cb, IntPtr user_data, OldGLib.DestroyNotify destroy_data);
Exemple #4
0
 internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb)
 {
     this.native_cb = native_cb;
 }
 internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
 static extern ulong gst_pad_add_probe(IntPtr pad, PadProbeType mask, PadProbeCallbackNative cb, IntPtr user_data, OldGLib.DestroyNotify destroy_data);
 internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }
 internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }
 public PadProbeCallbackWrapper(PadProbeCallback managed)
 {
     this.managed = managed;
     if (managed != null)
         NativeDelegate = new PadProbeCallbackNative (NativeCallback);
 }
 internal PadProbeCallbackInvoker(PadProbeCallbackNative native_cb)
 {
     this.native_cb = native_cb;
 }
 public static PadProbeCallback GetManagedDelegate(PadProbeCallbackNative native)
 {
     if (native == null)
         return null;
     PadProbeCallbackWrapper wrapper = (PadProbeCallbackWrapper)native.Target;
     if (wrapper == null)
         return null;
     return wrapper.managed;
 }