]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 29 Aug 2020 18:37:57 +0000 (20:37 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 29 Aug 2020 18:37:57 +0000 (20:37 +0200)
vapi/json-glib-1.0.vapi

index 7c909d124a9b7c33e1ce21046409817ef2d570cc..b19acb665714e0d2b0de853ade8bb856813e0eef 100644 (file)
@@ -340,7 +340,11 @@ namespace Json {
        [Version (since = "1.2")]
        public struct ObjectIter {
                public void init (Json.Object object);
+               [Version (since = "1.6")]
+               public void init_ordered (Json.Object object);
                public bool next (out unowned string member_name, out unowned Json.Node member_node);
+               [Version (since = "1.6")]
+               public bool next_ordered (out unowned string member_name, out unowned Json.Node member_node);
        }
        [CCode (cheader_filename = "json-glib/json-glib.h", cprefix = "JSON_NODE_", type_id = "json_node_type_get_type ()")]
        public enum NodeType {
@@ -424,7 +428,7 @@ namespace Json {
        public static GLib.Object construct_gobject (GLib.Type gtype, string data, size_t length) throws GLib.Error;
        [CCode (cheader_filename = "json-glib/json-glib.h")]
        [Version (since = "1.2")]
-       public static Json.Node from_string (string str) throws GLib.Error;
+       public static Json.Node? from_string (string str) throws GLib.Error;
        [CCode (cheader_filename = "json-glib/json-glib.h")]
        [Version (since = "0.10")]
        public static GLib.Object gobject_deserialize (GLib.Type gtype, Json.Node node);