1 /* dconf.vapi generated by valac 0.17.1.35-814b, do not modify. */
4 [CCode (cheader_filename = "dconf.h", cprefix="DCONF_READ_")]
5 public enum ReadFlags {
6 [CCode (cname="DCONF_READ_FLAGS_NONE")]
12 [CCode (cheader_filename = "dconf.h")]
13 public class Client : GLib.Object {
14 public signal void changed (string prefix, [CCode (array_length = false, array_null_terminated = true)] string[] changes, string? tag);
17 public GLib.Variant? read (string key);
18 public GLib.Variant? read_full (string key, ReadFlags flags, GLib.Queue<Changeset>? read_through);
19 public string[] list (string dir);
20 public string[] list_locks (string dir);
21 public bool is_writable (string key);
22 public void write_fast (string path, GLib.Variant? value) throws GLib.Error;
23 public void write_sync (string path, GLib.Variant? value, out string tag = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
24 public void change_fast (Changeset changeset) throws GLib.Error;
25 public void change_sync (Changeset changeset, out string tag = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
26 public void watch_fast (string path);
27 public void unwatch_fast (string path);
28 public void watch_sync (string path);
29 public void unwatch_sync (string path);
33 [CCode (ref_function = "dconf_changeset_ref", unref_function = "dconf_changeset_unref")]
34 public class Changeset {
35 public delegate bool Predicate (string path, GLib.Variant? value);
37 public Changeset.write (string path, GLib.Variant? value);
38 public void set (string path, GLib.Variant? value);
39 public bool get (string path, out GLib.Variant? value);
40 public bool is_similar_to (Changeset other);
41 public bool all (Predicate predicate);
42 public GLib.Variant serialise ();
43 public static Changeset deserialise (GLib.Variant serialised);
46 [CCode (cheader_filename = "dconf.h")]
47 public static bool is_dir (string str, GLib.Error* error = null);
48 [CCode (cheader_filename = "dconf.h")]
49 public static bool is_key (string str, GLib.Error* error = null);
50 [CCode (cheader_filename = "dconf.h")]
51 public static bool is_path (string str, GLib.Error* error = null);
52 [CCode (cheader_filename = "dconf.h")]
53 public static bool is_rel_dir (string str, GLib.Error* error = null);
54 [CCode (cheader_filename = "dconf.h")]
55 public static bool is_rel_key (string str, GLib.Error* error = null);
56 [CCode (cheader_filename = "dconf.h")]
57 public static bool is_rel_path (string str, GLib.Error* error = null);
58 [CCode (cheader_filename = "dconf.h", cname = "dconf_is_dir")]
59 public static bool verify_dir (string str) throws GLib.Error;
60 [CCode (cheader_filename = "dconf.h", cname = "dconf_is_key")]
61 public static bool verify_key (string str) throws GLib.Error;
62 [CCode (cheader_filename = "dconf.h", cname = "dconf_is_path")]
63 public static bool verify_path (string str) throws GLib.Error;
64 [CCode (cheader_filename = "dconf.h", cname = "dconf_is_rel_dir")]
65 public static bool verify_rel_dir (string str) throws GLib.Error;
66 [CCode (cheader_filename = "dconf.h", cname = "dconf_is_rel_key")]
67 public static bool verify_rel_key (string str) throws GLib.Error;
68 [CCode (cheader_filename = "dconf.h", cname = "dconf_is_rel_path")]
69 public static bool verify_rel_path (string str) throws GLib.Error;