[vala] gconf-2.0: add several missing type arguments, some ownership fixes



commit 9128e0560ea140c7f9375f047d53040117a77e91
Author: Evan Nemerson <evan coeus-group com>
Date:   Sat May 15 21:50:18 2010 -0700

    gconf-2.0: add several missing type arguments, some ownership fixes

 vapi/gconf-2.0.vapi                        |   14 +++++++-------
 vapi/packages/gconf-2.0/gconf-2.0.metadata |    7 +++++++
 2 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/vapi/gconf-2.0.vapi b/vapi/gconf-2.0.vapi
index 88f5073..77f919b 100644
--- a/vapi/gconf-2.0.vapi
+++ b/vapi/gconf-2.0.vapi
@@ -88,8 +88,8 @@ namespace GConf {
 	[Compact]
 	[CCode (ref_function = "gconf_engine_ref", ref_function_void = true, unref_function = "gconf_engine_unref", cheader_filename = "gconf/gconf.h")]
 	public class Engine {
-		public unowned GLib.SList all_dirs (string dir) throws GLib.Error;
-		public unowned GLib.SList all_entries (string dir) throws GLib.Error;
+		public GLib.SList<string> all_dirs (string dir) throws GLib.Error;
+		public GLib.SList<GConf.Entry> all_entries (string dir) throws GLib.Error;
 		public bool associate_schema (string key, string schema_key) throws GLib.Error;
 		public unowned GConf.ChangeSet change_set_from_current (...) throws GLib.Error;
 		public unowned GConf.ChangeSet change_set_from_currentv (string keys) throws GLib.Error;
@@ -102,9 +102,9 @@ namespace GConf {
 		public unowned GConf.Entry get_entry (string key, string locale, bool use_schema_default) throws GLib.Error;
 		public double get_float (string key) throws GLib.Error;
 		public static unowned GConf.Engine get_for_address (string address) throws GLib.Error;
-		public static unowned GConf.Engine get_for_addresses (GLib.SList addresses) throws GLib.Error;
+		public static unowned GConf.Engine get_for_addresses (GLib.SList<string> addresses) throws GLib.Error;
 		public int get_int (string key) throws GLib.Error;
-		public unowned GLib.SList get_list (string key, GConf.ValueType list_type) throws GLib.Error;
+		public GLib.SList get_list (string key, GConf.ValueType list_type) throws GLib.Error;
 		public bool get_pair (string key, GConf.ValueType car_type, GConf.ValueType cdr_type, void* car_retloc, void* cdr_retloc) throws GLib.Error;
 		public unowned GConf.Schema get_schema (string key) throws GLib.Error;
 		public unowned string get_string (string key) throws GLib.Error;
@@ -226,7 +226,7 @@ namespace GConf {
 		public unowned GConf.Value get_cdr ();
 		public double get_float ();
 		public int get_int ();
-		public unowned GLib.SList get_list ();
+		public unowned GLib.SList<GConf.Value> get_list ();
 		public GConf.ValueType get_list_type ();
 		public unowned GConf.Schema get_schema ();
 		public unowned string get_string ();
@@ -237,8 +237,8 @@ namespace GConf {
 		public void set_cdr_nocopy (GConf.Value cdr);
 		public void set_float (double the_float);
 		public void set_int (int the_int);
-		public void set_list (GLib.SList list);
-		public void set_list_nocopy (GLib.SList list);
+		public void set_list (GLib.SList<GConf.Value> list);
+		public void set_list_nocopy (owned GLib.SList<GConf.Value> list);
 		public void set_list_type (GConf.ValueType type);
 		public void set_schema (GConf.Schema sc);
 		public void set_schema_nocopy (GConf.Schema sc);
diff --git a/vapi/packages/gconf-2.0/gconf-2.0.metadata b/vapi/packages/gconf-2.0/gconf-2.0.metadata
index d1dcc29..b29e219 100644
--- a/vapi/packages/gconf-2.0/gconf-2.0.metadata
+++ b/vapi/packages/gconf-2.0/gconf-2.0.metadata
@@ -16,9 +16,16 @@ gconf_client_get_string transfer_ownership="1" nullable="1"
 gconf_client_notify_add.func transfer_ownership="1"
 gconf_client_notify_add.destroy_notify hidden="1"
 gconf_client_get_without_default transfer_ownership="1" nullable="1"
+gconf_engine_all_dirs transfer_ownership="1" type_arguments="string"
+gconf_engine_all_entries transfer_ownership="1" type_arguments="Entry"
+gconf_engine_get_for_addresses.addresses type_arguments="string"
+gconf_engine_get_list transfer_ownership="1"
 gconf_entry_copy transfer_ownership="1"
 gconf_schema_copy transfer_ownership="1"
 gconf_value_copy transfer_ownership="1"
+gconf_value_get_list type_arguments="Value"
+gconf_value_set_list.list type_arguments="Value"
+gconf_value_set_list_nocopy.list transfer_ownership="1" type_arguments="Value"
 # deprecated and useless
 gconf_init hidden="1"
 gconf_meta_info_mod_time name="get_mod_time"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]