예제 #1
0
 static void ProviderUnhidden_cb(IntPtr inst, IntPtr _object)
 {
     try {
         DeviceProvider __obj = GLib.Object.GetObject(inst, false) as DeviceProvider;
         __obj.OnProviderUnhidden(GLib.Marshaller.Utf8PtrToString(_object));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
 static void Stop_cb(IntPtr inst)
 {
     try {
         DeviceProvider __obj = GLib.Object.GetObject(inst, false) as DeviceProvider;
         __obj.OnStop();
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #3
0
 static bool Start_cb(IntPtr inst)
 {
     try {
         DeviceProvider __obj = GLib.Object.GetObject(inst, false) as DeviceProvider;
         bool           __result;
         __result = __obj.OnStart();
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }