Пример #1
0
 static void SetValue_cb(IntPtr inst, out byte value, IntPtr length, GLib.DestroyNotify destroy)
 {
     try {
         TlsPassword __obj = GLib.Object.GetObject(inst, false) as TlsPassword;
         __obj.OnSetValue(out value, (long)length, destroy);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #2
0
 static IntPtr GetDefaultWarning_cb(IntPtr inst)
 {
     try {
         TlsPassword __obj = GLib.Object.GetObject(inst, false) as TlsPassword;
         string      __result;
         __result = __obj.OnGetDefaultWarning();
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #3
0
 static byte GetValue_cb(IntPtr inst, out UIntPtr length)
 {
     try {
         TlsPassword __obj = GLib.Object.GetObject(inst, false) as TlsPassword;
         byte        __result;
         ulong       mylength;
         __result = __obj.OnGetValue(out mylength);
         length   = new UIntPtr(mylength);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }