blob: eb3e7bc4535c0edbfecec92915c821fd8fc8b393 (
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
|
namespace DConf {
[Compact]
[CCode (cheader_filename = "dconf-engine.h")]
class Engine {
internal Engine (string? profile);
internal bool is_writable (string key);
internal EngineMessage write (string key, GLib.Variant? value) throws GLib.Error;
internal EngineMessage write_many (string dir, [CCode (array_length = false, array_null_terminated = true, type = "const gchar * const *")] string[] keys, [CCode (array_length = false)] GLib.Variant?[] values) throws GLib.Error;
internal GLib.Variant? read (string key);
internal GLib.Variant? read_default (string key);
internal GLib.Variant? read_no_default (string key);
internal EngineMessage set_locked (string key, bool locked);
internal string[] list (string dir, void*junk = null);
internal static void set_service_func (ServiceFunc func);
internal EngineMessage watch (string name);
internal EngineMessage unwatch (string name);
}
struct EngineMessage {
int bus_type;
string destination;
string object_path;
string @interface;
string method;
bool tagged;
GLib.VariantType reply_type;
GLib.Variant body;
}
[CCode (has_target = false)]
delegate GLib.Variant? ServiceFunc (EngineMessage dcem);
}
// vim:noet sw=4 ts=4
|