]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
fix Pid handling
authorJuerg Billeter <j@bitron.ch>
Tue, 7 Aug 2007 19:50:41 +0000 (19:50 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 7 Aug 2007 19:50:41 +0000 (19:50 +0000)
2007-08-07  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: fix Pid handling

svn path=/trunk/; revision=435

ChangeLog
vapi/glib-2.0.vala

index 82cba5b1f74d11296040a6239cec0952472cd816..9263e85f0199b0ae36a06e8c3f85630dbd134511 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-07  Jürg Billeter  <j@bitron.ch>
+
+       * vapi/glib-2.0.vala: fix Pid handling
+
 2007-08-07  Jürg Billeter  <j@bitron.ch>
 
        * vapi/Makefile.am: add sqlite3.vala
index 898c902bc559cc2b17579928b43703d584f8b06c..b6436405b58a43e9ca98aa523a7ce2164b4aede1 100644 (file)
@@ -805,10 +805,11 @@ namespace GLib {
                public static uint add_full (int priority, SourceFunc function, pointer data, DestroyNotify notify);
                public static bool remove_by_data (pointer data);
        }
-       
+
+       [CCode (default_value = "0")]
        public struct Pid {
        }
-       
+
        public static delegate void ChildWatchFunc (Pid pid, int status, pointer data);
        
        [ReferenceType ()]
@@ -1387,9 +1388,9 @@ namespace GLib {
        [CCode (cprefix = "g_")]
        public struct Process {
                [NoArrayLength ()]
-               public static bool spawn_async_with_pipes (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, Pid child_pid, out int standard_input = null, out int standard_output = null, out int standard_error = null) throws SpawnError;
+               public static bool spawn_async_with_pipes (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, out Pid child_pid, out int standard_input = null, out int standard_output = null, out int standard_error = null) throws SpawnError;
                [NoArrayLength ()]
-               public static bool spawn_async (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, Pid child_pid) throws SpawnError;
+               public static bool spawn_async (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, out Pid child_pid) throws SpawnError;
                [NoArrayLength ()]
                public static bool spawn_sync (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, out string standard_output = null, out string standard_error = null, out int exit_status = null) throws SpawnError;
                public static bool spawn_command_line_async (string! command_line) throws SpawnError;