[vala/0.48] gio-2.0: Include "gio/gsettingsbackend.h" for GLib.SettingsBackend members
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] gio-2.0: Include "gio/gsettingsbackend.h" for GLib.SettingsBackend members
- Date: Mon, 10 Aug 2020 07:18:17 +0000 (UTC)
commit b9b547969ceb969380ce8871318d56fe40bde179
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Aug 5 08:21:14 2020 +0200
gio-2.0: Include "gio/gsettingsbackend.h" for GLib.SettingsBackend members
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1054
vapi/gio-2.0.vapi | 25 +++++++++++++++++++++----
vapi/metadata/Gio-2.0.metadata | 5 ++++-
2 files changed, 25 insertions(+), 5 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index f20435b7b..1d60a861b 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1447,7 +1447,7 @@ 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")]
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", cname =
"G_SETTINGS_BACKEND_EXTENSION_POINT_NAME", feature_test_macro = "G_SETTINGS_ENABLE_BACKEND")]
public const string SETTINGS_BACKEND;
[CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_BACKEND_EXTENSION_POINT_NAME")]
public const string TLS_BACKEND;
@@ -2273,46 +2273,63 @@ namespace GLib {
public abstract class SettingsBackend : GLib.Object {
[CCode (has_construct_function = false)]
protected SettingsBackend ();
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[Version (since = "2.26")]
public void changed (string key, void* origin_tag);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[Version (since = "2.26")]
public void changed_tree (GLib.Tree tree, void* origin_tag);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[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);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[Version (since = "2.28")]
public static GLib.SettingsBackend get_default ();
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual bool get_writable (string key);
- [CCode (cheader_filename = "gio/gio.h", cname = "g_keyfile_settings_backend_new")]
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", cname =
"g_keyfile_settings_backend_new", feature_test_macro = "G_SETTINGS_ENABLE_BACKEND")]
public static GLib.SettingsBackend keyfile_settings_backend_new (string filename, string
root_path, string? root_group);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[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")]
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", cname = "g_memory_settings_backend_new",
feature_test_macro = "G_SETTINGS_ENABLE_BACKEND")]
[Version (since = "2.28")]
public static GLib.SettingsBackend memory_settings_backend_new ();
- [CCode (cheader_filename = "gio/gio.h", cname = "g_null_settings_backend_new")]
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", cname = "g_null_settings_backend_new",
feature_test_macro = "G_SETTINGS_ENABLE_BACKEND")]
[Version (since = "2.28")]
public static GLib.SettingsBackend null_settings_backend_new ();
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[Version (since = "2.26")]
public void path_changed (string path, void* origin_tag);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[Version (since = "2.26")]
public void path_writable_changed (string path);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual GLib.Variant read (string key, GLib.VariantType expected_type, bool
default_value);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual GLib.Variant read_user_value (string key, GLib.VariantType expected_type);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual void reset (string key, void* origin_tag);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual void subscribe (string name);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual void sync ();
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual void unsubscribe (string name);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[Version (since = "2.26")]
public void writable_changed (string key);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual bool write (string key, GLib.Variant value, void* origin_tag);
+ [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro =
"G_SETTINGS_ENABLE_BACKEND")]
[NoWrapper]
public virtual bool write_tree (GLib.Tree tree, void* origin_tag);
}
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 0666ad4e2..7201dc744 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -51,7 +51,10 @@ 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"
+*_settings_backend_new parent="GLib.SettingsBackend" cheader_filename="gio/gsettingsbackend.h"
feature_test_macro="G_SETTINGS_ENABLE_BACKEND"
+SETTINGS_BACKEND_EXTENSION_POINT_NAME cheader_filename="gio/gsettingsbackend.h"
feature_test_macro="G_SETTINGS_ENABLE_BACKEND"
+SettingsBackend
+ .* cheader_filename="gio/gsettingsbackend.h" feature_test_macro="G_SETTINGS_ENABLE_BACKEND"
Action
.parameter_type nullable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]