Example #1
0
 internal static uint AddWatch(this Bus bus, BusFunc func)
 {
     //https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT:CAPS
     int G_PRIORITY_DEFAULT = 0;
     //FIXME: use AddWatch() when it is bindable
     return bus.AddWatchFull (G_PRIORITY_DEFAULT, func);
     //gst_bus_add_watch (gst_pipeline_get_bus (GST_PIPELINE (detector->pipeline)), bbd_pipeline_bus_callback, detector);
 }
 public BusFuncWrapper(Gst.BusFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new BusFuncNative(NativeCallback);
     }
 }
Example #3
0
        internal static uint AddWatch(this Bus bus, BusFunc func)
        {
            //https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT:CAPS
            int G_PRIORITY_DEFAULT = 0;

            //FIXME: use AddWatch() when it is bindable
            return(bus.AddWatchFull(G_PRIORITY_DEFAULT, func));
            //gst_bus_add_watch (gst_pipeline_get_bus (GST_PIPELINE (detector->pipeline)), bbd_pipeline_bus_callback, detector);
        }
Example #4
0
        public static BusFunc BusFuncModel(BusFunc bus)
        {
            var entity = new BusFunc
            {
                ID              = bus.ID,
                Name            = bus.Name,
                Code            = bus.Code,
                LocalizedTitle  = bus.LocalizedTitle,
                DsbTileCssClass = bus.DsbTileCssClass,
                TechFuncID      = bus.TechFuncID,
                IsCombo         = bus.IsCombo,
                FleetOnly       = bus.FleetOnly,
                Comment         = bus.Comment
            };

            return(entity);
        }
 public static extern void g_signal_connect_data(IntPtr instance, IntPtr detailed_signal, BusFunc cb, IntPtr data, IntPtr zero, uint flags);
Example #6
0
 public BusFuncWrapper (Gst.BusFunc managed)
 {
     this.managed = managed;
     if (managed != null)
         NativeDelegate = new BusFuncNative (NativeCallback);
 }
Example #7
0
 public static BusFunc CreateBusFuncModel(BusFunc bus)
 {
     CreateToDatabase.DbCreate(BusFuncModel(bus));
     return(BusFuncModel(bus));
 }
Example #8
0
 public static void UpdateBusFuncModel(BusFunc bus)
 {
     UpdateInDatabase.BusFuncUpdate(BusFuncModel(bus));
 }
Example #9
0
 public static void DestroyBusFuncModel(BusFunc bus)
 {
     DestroyFromDatabase.BusFuncDelete(BusFuncModel(bus));
 }
 public static extern void g_signal_connect_data(IntPtr instance, IntPtr detailed_signal, BusFunc cb, IntPtr data, IntPtr zero, uint flags);