[vala/0.34] gio-2.0 Update SettingsBackend related bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.34] gio-2.0 Update SettingsBackend related bindings
- Date: Thu, 16 Mar 2017 11:55:09 +0000 (UTC)
commit bfe9644fae3bf06f5a3eabb30b2daade535cc448
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Oct 3 12:39:03 2016 +0200
gio-2.0 Update SettingsBackend related bindings
vapi/gio-2.0.vapi | 52 ++++++++++++++++++++++++++++++++++---
vapi/metadata/Gio-2.0-custom.vala | 7 +----
vapi/metadata/Gio-2.0.metadata | 3 +-
3 files changed, 51 insertions(+), 11 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 2e731bd..0662754 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1375,6 +1375,8 @@ namespace GLib {
public const string PROXY;
[CCode (cheader_filename = "gio/gio.h", cname = "G_PROXY_RESOLVER_EXTENSION_POINT_NAME")]
public const string PROXY_RESOLVER;
+ [CCode (cheader_filename = "gio/gio.h", cname = "G_SETTINGS_BACKEND_EXTENSION_POINT_NAME")]
+ public const string SETTINGS_BACKEND;
[CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_BACKEND_EXTENSION_POINT_NAME")]
public const string TLS_BACKEND;
[CCode (cheader_filename = "gio/gio.h", cname = "G_VFS_EXTENSION_POINT_NAME")]
@@ -2032,7 +2034,7 @@ namespace GLib {
public unowned GLib.Resource @ref ();
public void unref ();
}
- [CCode (cheader_filename = "gio/gio.h")]
+ [CCode (cheader_filename = "gio/gio.h", type_id = "g_settings_get_type ()")]
public class Settings : GLib.Object {
[CCode (has_construct_function = false)]
[Version (since = "2.26")]
@@ -2153,15 +2155,57 @@ namespace GLib {
public string schema_id { owned get; construct; }
[NoAccessorMethod]
public GLib.SettingsSchema settings_schema { owned get; construct; }
- public virtual signal bool change_event (GLib.Quark[]? keys);
+ public virtual signal bool change_event ([CCode (array_length_cname = "n_keys",
array_length_pos = 1.1)] GLib.Quark[]? keys);
public virtual signal void changed (string key);
public virtual signal bool writable_change_event (uint key);
public virtual signal void writable_changed (string key);
}
- [CCode (cheader_filename = "gio/gio.h")]
- public class SettingsBackend : GLib.Object {
+ [CCode (cheader_filename = "gio/gio.h", type_id = "g_settings_backend_get_type ()")]
+ public abstract class SettingsBackend : GLib.Object {
[CCode (has_construct_function = false)]
protected SettingsBackend ();
+ [Version (since = "2.26")]
+ public void changed (string key, void* origin_tag);
+ [Version (since = "2.26")]
+ public void changed_tree (GLib.Tree tree, void* origin_tag);
+ [Version (since = "2.26")]
+ public static void flatten_tree (GLib.Tree tree, out string path, [CCode (array_length =
false, array_null_terminated = true)] out (unowned string)[] keys, [CCode (array_length = false,
array_null_terminated = true)] out (unowned GLib.Variant)[] values);
+ [Version (since = "2.28")]
+ public static GLib.SettingsBackend get_default ();
+ [NoWrapper]
+ public virtual bool get_writable (string key);
+ [CCode (cheader_filename = "gio/gio.h", cname = "g_keyfile_settings_backend_new")]
+ public static GLib.SettingsBackend keyfile_settings_backend_new (string filename, string
root_path, string? root_group);
+ [Version (since = "2.26")]
+ public void keys_changed (string path, [CCode (array_length = false, array_null_terminated =
true)] string[] items, void* origin_tag);
+ [CCode (cheader_filename = "gio/gio.h", cname = "g_memory_settings_backend_new")]
+ [Version (since = "2.28")]
+ public static GLib.SettingsBackend memory_settings_backend_new ();
+ [CCode (cheader_filename = "gio/gio.h", cname = "g_null_settings_backend_new")]
+ [Version (since = "2.28")]
+ public static GLib.SettingsBackend null_settings_backend_new ();
+ [Version (since = "2.26")]
+ public void path_changed (string path, void* origin_tag);
+ [Version (since = "2.26")]
+ 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 GLib.Variant read_user_value (string key, GLib.VariantType expected_type);
+ [NoWrapper]
+ public virtual void reset (string key, void* origin_tag);
+ [NoWrapper]
+ public virtual void subscribe (string name);
+ [NoWrapper]
+ public virtual void sync ();
+ [NoWrapper]
+ public virtual void unsubscribe (string name);
+ [Version (since = "2.26")]
+ public void writable_changed (string key);
+ [NoWrapper]
+ public virtual bool write (string key, GLib.Variant value, void* origin_tag);
+ [NoWrapper]
+ public virtual bool write_tree (GLib.Tree tree, void* origin_tag);
}
[CCode (cheader_filename = "gio/gio.h", ref_function = "g_settings_schema_ref", type_id =
"g_settings_schema_get_type ()", unref_function = "g_settings_schema_unref")]
[Compact]
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 042080d..96ffc7b 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -100,16 +100,11 @@ namespace GLib {
public void set_callback ([CCode (type = "GSourceFunc")] owned PollableSourceFunc func);
}
+ [CCode (cheader_filename = "gio/gio.h", type_id = "g_settings_get_type ()")]
public class Settings : GLib.Object {
- [NoAccessorMethod]
- public GLib.SettingsBackend backend { owned get; construct; }
- public virtual signal bool change_event (GLib.Quark[]? keys);
public void bind_with_mapping (string key, GLib.Object object, string property,
GLib.SettingsBindFlags flags, GLib.SettingsBindGetMappingShared get_mapping,
GLib.SettingsBindSetMappingShared set_mapping, void* user_data, GLib.DestroyNotify? notify);
}
- public class SettingsBackend : GLib.Object {
- }
-
public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
[CCode (has_construct_function = false)]
public SimpleAsyncResult (GLib.Object? source_object, void* source_tag);
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index e2fe6f5..9e2c2cb 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -50,6 +50,8 @@ dbus_* parent="GLib.DBus" name="dbus_(.*)"
dbus_error_* parent="GLib.DBusError" name="dbus_error_(.*)"
dbus_address_get_for_bus_sync parent="GLib.BusType" name="get_address_sync"
+*_settings_backend_new parent="GLib.SettingsBackend"
+
Action
.parameter_type nullable
.state nullable
@@ -186,7 +188,6 @@ Resolver
.lookup_service#method virtual
.lookup_service_async#virtual_method vfunc_name="lookup_service_async"
finish_vfunc_name="lookup_service_finish"
Settings
- .change_event skip
.get skip=false sentinel=""
.set skip=false sentinel=""
SettingsSchemaSource
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]