]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
json-glib-1.0: Use metadata instead of json-glib-1.0-custom.vala
authorEvan Nemerson <evan@coeus-group.com>
Sun, 14 Mar 2010 05:25:30 +0000 (21:25 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 14 Mar 2010 05:25:30 +0000 (21:25 -0800)
vapi/json-glib-1.0.vapi
vapi/packages/json-glib-1.0/json-glib-1.0-custom.vala [deleted file]
vapi/packages/json-glib-1.0/json-glib-1.0.metadata

index bc9d852f5ce6dee80a6d09b9a214837c4d90a51e..5bedfaa9b31dbe665e20447fff73303b3f9ccb25 100644 (file)
@@ -3,7 +3,7 @@
 [CCode (cprefix = "Json", lower_case_cprefix = "json_")]
 namespace Json {
        [Compact]
-       [CCode (ref_function = "json_array_ref", unref_function = "json_array_unref", cheader_filename = "json-glib/json-glib.h")]
+       [CCode (ref_function = "json_array_ref", unref_function = "json_array_unref", type_id = "JSON_TYPE_ARRAY", cheader_filename = "json-glib/json-glib.h")]
        public class Array {
                [CCode (has_construct_function = false)]
                public Array ();
@@ -79,7 +79,7 @@ namespace Json {
                public unowned string type_name ();
        }
        [Compact]
-       [CCode (ref_function = "json_object_ref", unref_function = "json_object_unref", cheader_filename = "json-glib/json-glib.h")]
+       [CCode (ref_function = "json_object_ref", unref_function = "json_object_unref", type_id = "JSON_TYPE_OBJECT", cheader_filename = "json-glib/json-glib.h")]
        public class Object {
                [CCode (has_construct_function = false)]
                public Object ();
diff --git a/vapi/packages/json-glib-1.0/json-glib-1.0-custom.vala b/vapi/packages/json-glib-1.0/json-glib-1.0-custom.vala
deleted file mode 100644 (file)
index 42b9961..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/* json-glib-1.0.vala
- *
- * Copyright (C) 2008  Evan Nemerson
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
-
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
-
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
- */
-
-namespace Json {
-       [Compact]
-       public class Object {
-               public GLib.List<weak string> get_members ();
-               public GLib.List<weak Node> get_values ();
-       }
-
-       [Compact]
-       public class Array {
-               public GLib.List<weak Node> get_elements ();
-       }
-}
index ac5145154c4208d2d0fb29b892230bba9c8a3dc9..5feb0d7627a92c83d7d34c8711fad15873665ace 100644 (file)
@@ -11,7 +11,7 @@ json_serialize_gobject.length is_out="1"
 json_array_add_array_element.value transfer_ownership="1"
 json_array_add_element.node transfer_ownership="1"
 json_array_add_object_element.value transfer_ownership="1"
-json_array_get_elements hidden="1"
+json_array_get_elements type_arguments="unowned Node" transfer_ownership="1"
 json_gobject_to_data transfer_ownership="1"
 json_gobject_to_data.length is_out="1"
 json_node_copy transfer_ownership="1"
@@ -21,8 +21,8 @@ json_node_dup_string transfer_ownership="1"
 json_node_get_value.value is_out="1"
 json_node_take_array.array transfer_ownership="1"
 json_node_take_object.object transfer_ownership="1"
-json_object_get_members hidden="1"
-json_object_get_values hidden="1"
+json_object_get_members type_arguments="unowned string" transfer_ownership="1"
+json_object_get_values type_arguments="unowned Node" transfer_ownership="1"
 json_object_add_member.node transfer_ownership="1"
 json_object_set_array_member.value transfer_ownership="1"
 json_object_set_object_member.value transfer_ownership="1"