vala r2178 - in trunk: . vapi vapi/packages/json-glib-1.0
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2178 - in trunk: . vapi vapi/packages/json-glib-1.0
- Date: Tue, 16 Dec 2008 09:10:40 +0000 (UTC)
Author: juergbi
Date: Tue Dec 16 09:10:40 2008
New Revision: 2178
URL: http://svn.gnome.org/viewvc/vala?rev=2178&view=rev
Log:
2008-12-16 JÃrg Billeter <j bitron ch>
* vapi/packages/json-glib-1.0/:
Various ownership fixes, patch by Evan Nemerson, fixes bug 547450
* vapi/json-glib-1.0.vapi: regenerated
Added:
trunk/vapi/packages/json-glib-1.0/json-glib-1.0-custom.vala
Modified:
trunk/ChangeLog
trunk/vapi/json-glib-1.0.vapi
trunk/vapi/packages/json-glib-1.0/json-glib-1.0.metadata
Modified: trunk/vapi/json-glib-1.0.vapi
==============================================================================
--- trunk/vapi/json-glib-1.0.vapi (original)
+++ trunk/vapi/json-glib-1.0.vapi Tue Dec 16 09:10:40 2008
@@ -5,9 +5,9 @@
[Compact]
[CCode (ref_function = "json_array_ref", unref_function = "json_array_unref", cheader_filename = "json-glib/json-glib.h")]
public class Array {
- public void add_element (Json.Node node);
+ public void add_element (Json.Node# node);
public weak Json.Node get_element (uint index_);
- public weak GLib.List get_elements ();
+ public GLib.List<weak Json.Node> get_elements ();
public uint get_length ();
[CCode (has_construct_function = false)]
public Array ();
@@ -19,7 +19,7 @@
[CCode (has_construct_function = false)]
public Generator ();
public void set_root (Json.Node node);
- public string to_data (out ulong length);
+ public string to_data (out size_t length);
public bool to_file (string filename) throws GLib.Error;
[NoAccessorMethod]
public uint indent { get; set; }
@@ -34,10 +34,10 @@
public void* data;
public weak Json.Node parent;
public Json.NodeType type;
- public weak Json.Node copy ();
- public weak Json.Array dup_array ();
- public weak Json.Object dup_object ();
- public weak string dup_string ();
+ public Json.Node copy ();
+ public Json.Array dup_array ();
+ public Json.Object dup_object ();
+ public string dup_string ();
public weak Json.Array get_array ();
public bool get_boolean ();
public double get_double ();
@@ -56,18 +56,18 @@
public void set_object (Json.Object object);
public void set_string (string value);
public void set_value (GLib.Value value);
- public void take_array (Json.Array array);
- public void take_object (Json.Object object);
+ public void take_array (Json.Array# array);
+ public void take_object (Json.Object# object);
public weak string type_name ();
}
[Compact]
[CCode (ref_function = "json_object_ref", unref_function = "json_object_unref", cheader_filename = "json-glib/json-glib.h")]
public class Object {
- public void add_member (string member_name, Json.Node node);
+ public void add_member (string member_name, Json.Node# node);
public weak Json.Node get_member (string member_name);
- public weak GLib.List get_members ();
+ public GLib.List<weak string> get_members ();
public uint get_size ();
- public weak GLib.List get_values ();
+ public GLib.List<weak Json.Node> get_values ();
public bool has_member (string member_name);
[CCode (has_construct_function = false)]
public Object ();
@@ -80,7 +80,7 @@
public uint get_current_pos ();
public weak Json.Node get_root ();
public bool has_assignment (out weak string variable_name);
- public bool load_from_data (string data, ulong length) throws GLib.Error;
+ public bool load_from_data (string data, size_t length) throws GLib.Error;
public bool load_from_file (string filename) throws GLib.Error;
[CCode (has_construct_function = false)]
public Parser ();
@@ -131,7 +131,7 @@
[CCode (cheader_filename = "json-glib/json-glib.h")]
public const string VERSION_S;
[CCode (cheader_filename = "json-glib/json-glib.h")]
- public static GLib.Object construct_gobject (GLib.Type gtype, string data, ulong length) throws GLib.Error;
+ 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")]
- public static string serialize_gobject (GLib.Object gobject, out ulong length);
+ public static string serialize_gobject (GLib.Object gobject, out size_t length);
}
Added: trunk/vapi/packages/json-glib-1.0/json-glib-1.0-custom.vala
==============================================================================
--- (empty file)
+++ trunk/vapi/packages/json-glib-1.0/json-glib-1.0-custom.vala Tue Dec 16 09:10:40 2008
@@ -0,0 +1,31 @@
+/* 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 ();
+ }
+}
Modified: trunk/vapi/packages/json-glib-1.0/json-glib-1.0.metadata
==============================================================================
--- trunk/vapi/packages/json-glib-1.0/json-glib-1.0.metadata (original)
+++ trunk/vapi/packages/json-glib-1.0/json-glib-1.0.metadata Tue Dec 16 09:10:40 2008
@@ -6,4 +6,15 @@
json_construct_gobject transfer_ownership="1"
json_serialize_gobject transfer_ownership="1"
json_serialize_gobject.length is_out="1"
+json_array_add_element.node transfer_ownership="1"
+json_array_get_elements hidden="1"
+json_node_copy transfer_ownership="1"
+json_node_dup_array transfer_ownership="1"
+json_node_dup_object transfer_ownership="1"
+json_node_dup_string transfer_ownership="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_add_member.node transfer_ownership="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]