]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add new symbols for 2.50
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 8 Jul 2016 12:57:54 +0000 (14:57 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 8 Jul 2016 12:59:05 +0000 (14:59 +0200)
vapi/glib-2.0.vapi

index 0fd30e979cb38615db4520284f6e01b4387fa943..32af187d99b14c3ed67d8571f06f8114326df0ba 100644 (file)
@@ -1727,6 +1727,9 @@ namespace GLib {
        [CCode (type_id = "G_TYPE_INT", marshaller_type_name = "INT", get_value_function = "g_value_get_int", set_value_function = "g_value_set_int", default_value = "0")]
        [IntegerType (rank = 6)]
        public struct Pid : int {
+               [CCode (cname = "G_PID_FORMAT")]
+               [Version (since = "2.50")]
+               public const string FORMAT;
        }
 
        public delegate void ChildWatchFunc (Pid pid, int status);
@@ -3930,6 +3933,8 @@ namespace GLib {
        public class KeyFile {
                public KeyFile ();
                public void set_list_separator (char separator);
+               [Version (since = "2.50")]
+               public bool load_from_bytes (Bytes bytes, KeyFileFlags @flags) throws KeyFileError;
                public bool load_from_file (string file, KeyFileFlags @flags) throws KeyFileError, FileError;
                [Version (since = "2.14")]
                public bool load_from_dirs (string file, [CCode (array_length = false, array_null_terminated = true)] string[] search_dirs, out string full_path, KeyFileFlags @flags) throws KeyFileError, FileError;