[vala] gio-2.0: Drop GSettingsBackend bindings



commit 7fe9584b7c0bce3dd0e5181ce6d069d07814a3d5
Author: Jürg Billeter <j bitron ch>
Date:   Mon Jun 28 23:03:01 2010 +0200

    gio-2.0: Drop GSettingsBackend bindings
    
    The GSettingsBackend API is not considered stable.

 vapi/gio-2.0.vapi                      |   32 -------
 vapi/packages/gio-2.0/gio-2.0.excludes |    1 +
 vapi/packages/gio-2.0/gio-2.0.gi       |  153 +-------------------------------
 vapi/packages/gio-2.0/gio-2.0.metadata |    2 +
 4 files changed, 5 insertions(+), 183 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 8eaa34d..58a6165 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1014,34 +1014,6 @@ namespace GLib {
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
 	public class SettingsBackend : GLib.Object {
-		public void changed_tree (GLib.Tree tree, void* origin_tag);
-		public static void flatten_tree (GLib.Tree tree, string path, string keys, out unowned GLib.Variant values);
-		[NoWrapper]
-		public virtual unowned GLib.Permission get_permission (string path);
-		[NoWrapper]
-		public virtual bool get_writable (string key);
-		public void keys_changed (string path, string items, void* origin_tag);
-		[NoWrapper]
-		public virtual unowned string list (string path, string[] resets, size_t length);
-		public void path_changed (string path, void* origin_tag);
-		public void path_writable_changed (string path);
-		[NoWrapper]
-		public virtual GLib.Variant read (string key, GLib.VariantType expected_type, bool default_value);
-		[NoWrapper]
-		public virtual void reset (string key, void* origin_tag);
-		[NoWrapper]
-		public virtual void reset_path (string path, void* origin_tag);
-		[NoWrapper]
-		public virtual void subscribe (string name);
-		[NoWrapper]
-		public virtual void sync ();
-		[NoWrapper]
-		public virtual void unsubscribe (string name);
-		public void writable_changed (string key);
-		[NoWrapper]
-		public virtual bool write (string key, GLib.Variant value, void* origin_tag);
-		[NoWrapper]
-		public virtual bool write_keys (GLib.Tree tree, void* origin_tag);
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
 	public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
@@ -2206,8 +2178,6 @@ namespace GLib {
 	[CCode (cheader_filename = "gio/gio.h")]
 	public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
 	[CCode (cheader_filename = "gio/gio.h")]
-	public const string SETTINGS_BACKEND_EXTENSION_POINT_NAME;
-	[CCode (cheader_filename = "gio/gio.h")]
 	public const string VFS_EXTENSION_POINT_NAME;
 	[CCode (cheader_filename = "gio/gio.h")]
 	public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
@@ -2301,8 +2271,6 @@ namespace GLib {
 	public static void g_io_scheduler_cancel_all_jobs ();
 	[CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
 	public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify? notify, int io_priority, GLib.Cancellable? cancellable = null);
-	[CCode (cname = "g_keyfile_settings_backend_new", cheader_filename = "gio/gio.h")]
-	public static unowned GLib.SettingsBackend g_keyfile_settings_backend_new (string filename);
 	[CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
 	public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
 	[CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
diff --git a/vapi/packages/gio-2.0/gio-2.0.excludes b/vapi/packages/gio-2.0/gio-2.0.excludes
new file mode 100644
index 0000000..defcc86
--- /dev/null
+++ b/vapi/packages/gio-2.0/gio-2.0.excludes
@@ -0,0 +1 @@
+include/glib-2.0/gio/gsettingsbackend.h
diff --git a/vapi/packages/gio-2.0/gio-2.0.gi b/vapi/packages/gio-2.0/gio-2.0.gi
index 64d29c3..c76e87c 100644
--- a/vapi/packages/gio-2.0/gio-2.0.gi
+++ b/vapi/packages/gio-2.0/gio-2.0.gi
@@ -387,12 +387,6 @@
 				<parameter name="cancellable" type="GCancellable*"/>
 			</parameters>
 		</function>
-		<function name="g_keyfile_settings_backend_new" symbol="g_keyfile_settings_backend_new">
-			<return-type type="GSettingsBackend*"/>
-			<parameters>
-				<parameter name="filename" type="gchar*"/>
-			</parameters>
-		</function>
 		<function name="g_simple_async_report_error_in_idle" symbol="g_simple_async_report_error_in_idle">
 			<return-type type="void"/>
 			<parameters>
@@ -758,6 +752,8 @@
 			<field name="buffer" type="gconstpointer"/>
 			<field name="size" type="gsize"/>
 		</struct>
+		<struct name="GSettingsBackend">
+		</struct>
 		<struct name="GSimpleAsyncResultClass">
 		</struct>
 		<struct name="GThemedIconClass">
@@ -5994,150 +5990,6 @@
 				</parameters>
 			</signal>
 		</object>
-		<object name="GSettingsBackend" parent="GObject" type-name="GSettingsBackend" get-type="g_settings_backend_get_type">
-			<method name="changed" symbol="g_settings_backend_changed">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="key" type="gchar*"/>
-					<parameter name="origin_tag" type="gpointer"/>
-				</parameters>
-			</method>
-			<method name="changed_tree" symbol="g_settings_backend_changed_tree">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="tree" type="GTree*"/>
-					<parameter name="origin_tag" type="gpointer"/>
-				</parameters>
-			</method>
-			<method name="flatten_tree" symbol="g_settings_backend_flatten_tree">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="tree" type="GTree*"/>
-					<parameter name="path" type="gchar**"/>
-					<parameter name="keys" type="gchar***"/>
-					<parameter name="values" type="GVariant***"/>
-				</parameters>
-			</method>
-			<method name="keys_changed" symbol="g_settings_backend_keys_changed">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="path" type="gchar*"/>
-					<parameter name="items" type="gchar**"/>
-					<parameter name="origin_tag" type="gpointer"/>
-				</parameters>
-			</method>
-			<method name="path_changed" symbol="g_settings_backend_path_changed">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="path" type="gchar*"/>
-					<parameter name="origin_tag" type="gpointer"/>
-				</parameters>
-			</method>
-			<method name="path_writable_changed" symbol="g_settings_backend_path_writable_changed">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="path" type="gchar*"/>
-				</parameters>
-			</method>
-			<method name="writable_changed" symbol="g_settings_backend_writable_changed">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="key" type="gchar*"/>
-				</parameters>
-			</method>
-			<vfunc name="get_permission">
-				<return-type type="GPermission*"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="path" type="gchar*"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="get_writable">
-				<return-type type="gboolean"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="key" type="gchar*"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="list">
-				<return-type type="gchar**"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="path" type="gchar*"/>
-					<parameter name="resets" type="gchar**"/>
-					<parameter name="n_resets" type="gsize"/>
-					<parameter name="length" type="gsize*"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="read">
-				<return-type type="GVariant*"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="key" type="gchar*"/>
-					<parameter name="expected_type" type="GVariantType*"/>
-					<parameter name="default_value" type="gboolean"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="reset">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="key" type="gchar*"/>
-					<parameter name="origin_tag" type="gpointer"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="reset_path">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="path" type="gchar*"/>
-					<parameter name="origin_tag" type="gpointer"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="subscribe">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="name" type="gchar*"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="sync">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="unsubscribe">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="name" type="gchar*"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="write">
-				<return-type type="gboolean"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="key" type="gchar*"/>
-					<parameter name="value" type="GVariant*"/>
-					<parameter name="origin_tag" type="gpointer"/>
-				</parameters>
-			</vfunc>
-			<vfunc name="write_keys">
-				<return-type type="gboolean"/>
-				<parameters>
-					<parameter name="backend" type="GSettingsBackend*"/>
-					<parameter name="tree" type="GTree*"/>
-					<parameter name="origin_tag" type="gpointer"/>
-				</parameters>
-			</vfunc>
-		</object>
 		<object name="GSimpleAsyncResult" parent="GObject" type-name="GSimpleAsyncResult" get-type="g_simple_async_result_get_type">
 			<implements>
 				<interface name="GAsyncResult"/>
@@ -11140,7 +10992,6 @@
 		<constant name="G_FILE_ATTRIBUTE_UNIX_RDEV" type="char*" value="unix::rdev"/>
 		<constant name="G_FILE_ATTRIBUTE_UNIX_UID" type="char*" value="unix::uid"/>
 		<constant name="G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME" type="char*" value="gio-native-volume-monitor"/>
-		<constant name="G_SETTINGS_BACKEND_EXTENSION_POINT_NAME" type="char*" value="gsettings-backend"/>
 		<constant name="G_VFS_EXTENSION_POINT_NAME" type="char*" value="gio-vfs"/>
 		<constant name="G_VOLUME_IDENTIFIER_KIND_HAL_UDI" type="char*" value="hal-udi"/>
 		<constant name="G_VOLUME_IDENTIFIER_KIND_LABEL" type="char*" value="label"/>
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 9a572c4..990f83b 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -226,3 +226,5 @@ uid_t name="uint"
 
 g_bus_* hidden="1"
 g_dbus_connection_register_object hidden="1"
+
+GSettingsBackend base_class="GObject"



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