summaryrefslogtreecommitdiff
path: root/client/dconf.vapi
blob: 75fd7b2cc77bf7f5b19d89d7bbbb12e853167338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* dconf.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "DConf", lower_case_cprefix = "dconf_")]
namespace DConf {
	[CCode (cheader_filename = "dconf.h")]
	public class Client : GLib.Object {
		[CCode (has_construct_function = false)]
		public Client (string? profile = null, owned DConf.WatchFunc? watch_func = null);
		public bool is_writable (string prefix) throws GLib.Error;
		[CCode (array_length_type = "gsize")]
		public string[] list (string prefix);
		public GLib.Variant read (string key);
		public bool set_locked (string path, bool locked, GLib.Cancellable cancellable) throws GLib.Error;
		public async bool set_locked_async (string path, bool locked, GLib.Cancellable cancellable) throws GLib.Error;
		public bool set_locked_finish (GLib.AsyncResult _result) throws GLib.Error;
		public bool unwatch (string name) throws GLib.Error;
		public async bool unwatch_async (string name);
		public bool unwatch_finish (GLib.AsyncResult _result);
		public bool watch (string name) throws GLib.Error;
		public async bool watch_async (string name);
		public bool watch_finish (GLib.AsyncResult _result);
		public bool write (string key, GLib.Variant? value, out string? tag = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
		public async bool write_async (string key, GLib.Variant value, GLib.Cancellable? cancellable) throws GLib.Error;
		public bool write_finish (GLib.AsyncResult _result, out string? tag = null) throws GLib.Error;
		public bool write_many (string prefix, string[] keys, GLib.Variant?[] values, out string? tag = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
		public async bool write_many_async (string prefix, string keys, out unowned GLib.Variant values, GLib.Cancellable? cancellable) throws GLib.Error;
		public bool write_many_finish (GLib.AsyncResult _result, uint64 sequence) throws GLib.Error;
	}

	[CCode (cheader_filename = "dconf.h")]
	public delegate void WatchFunc (DConf.Client client, string path, string items);
	[CCode (cheader_filename = "dconf.h")]
	public bool is_dir (string str, void *error = null);
	[CCode (cheader_filename = "dconf.h")]
	public bool is_key (string str, void *error = null);
	[CCode (cheader_filename = "dconf.h")]
	public bool is_path (string str, void *error = null);
	[CCode (cheader_filename = "dconf.h")]
	public bool is_rel (string str, void *error = null);
	[CCode (cheader_filename = "dconf.h")]
	public bool is_rel_dir (string str, void *error = null);
	[CCode (cheader_filename = "dconf.h")]
	public bool is_rel_key (string str, void *error = null);


	[CCode (cheader_filename = "dconf.h", cname="dconf_is_dir")]
	public void verify_dir (string str) throws GLib.Error;
	[CCode (cheader_filename = "dconf.h", cname="dconf_is_key")]
	public void verify_key (string str) throws GLib.Error;
	[CCode (cheader_filename = "dconf.h", cname="dconf_is_path")]
	public void verify_path (string str) throws GLib.Error;
	[CCode (cheader_filename = "dconf.h", cname="dconf_is_rel")]
	public void verify_rel (string str) throws GLib.Error;
	[CCode (cheader_filename = "dconf.h", cname="dconf_is_rel_dir")]
	public void verify_rel_dir (string str) throws GLib.Error;
	[CCode (cheader_filename = "dconf.h", cname="dconf_is_rel_key")]
	public void verify_rel_key (string str) throws GLib.Error;
}

// vim:noet ts=4 sw=4