Ejemplo n.º 1
0
 public SpawnChildSetupFuncWrapper(GLib.SpawnChildSetupFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new SpawnChildSetupFuncNative(NativeCallback);
     }
 }
Ejemplo n.º 2
0
		public SpawnChildSetupWrapper (SpawnChildSetupFunc handler)
		{
			if (handler == null)
				return;

			this.handler = handler;
			Data = (IntPtr) GCHandle.Alloc (this);
			NativeCallback = new SpawnChildSetupFuncNative (InvokeHandler);
		}
Ejemplo n.º 3
0
        public SpawnChildSetupWrapper(SpawnChildSetupFunc handler)
        {
            if (handler == null)
            {
                return;
            }

            this.handler   = handler;
            Data           = (IntPtr)GCHandle.Alloc(this);
            NativeCallback = new SpawnChildSetupFuncNative(InvokeHandler);
        }
Ejemplo n.º 4
0
        public static GLib.SpawnChildSetupFunc GetManagedDelegate(SpawnChildSetupFuncNative native)
        {
            if (native == null)
            {
                return(null);
            }
            SpawnChildSetupFuncWrapper wrapper = (SpawnChildSetupFuncWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
Ejemplo n.º 5
0
 static extern bool g_spawn_sync_utf8(IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out IntPtr stdout, out IntPtr stderr, out int exit_status, out IntPtr error);
Ejemplo n.º 6
0
 static extern bool g_spawn_async_with_pipes_utf8(IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out int pid, IntPtr stdin, IntPtr stdout, IntPtr stderr, out IntPtr error);
Ejemplo n.º 7
0
 static extern bool g_spawn_async_utf8(IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out int pid, out IntPtr error);
Ejemplo n.º 8
0
 static extern bool g_spawn_sync_utf8(IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out IntPtr stdout, out IntPtr stderr, out int exit_status, out IntPtr error);
Ejemplo n.º 9
0
 static extern bool g_spawn_async_with_pipes_utf8(IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out int pid, IntPtr stdin, IntPtr stdout, IntPtr stderr, out IntPtr error);
Ejemplo n.º 10
0
 static extern bool g_spawn_async_utf8(IntPtr dir, IntPtr[] argv, IntPtr[] envp, int flags, SpawnChildSetupFuncNative func, IntPtr data, out int pid, out IntPtr error);
Ejemplo n.º 11
0
 internal SpawnChildSetupFuncInvoker(SpawnChildSetupFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
Ejemplo n.º 12
0
 internal SpawnChildSetupFuncInvoker(SpawnChildSetupFuncNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }
Ejemplo n.º 13
0
 internal SpawnChildSetupFuncInvoker(SpawnChildSetupFuncNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }