[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 ();
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 ();
+++ /dev/null
-/* 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 ();
- }
-}
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"
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"