File: engine.vapi

package info (click to toggle)
d-conf 0.12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,948 kB
  • sloc: ansic: 18,683; sh: 1,074; makefile: 201; xml: 44
file content (35 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download
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
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);
		internal EngineMessage watch (string name);
		internal EngineMessage unwatch (string name);
	}

	struct EngineMessage {
		string bus_name;
		string object_path;
		string interface_name;
		string method_name;
		int n_messages;
		[CCode (array_length_cname = "n_messages")]
		GLib.Variant[] parameters;
		[CCode (array_length_cname = "n_messages")]
		char[] bus_types;
		GLib.VariantType reply_type;
	}

	[CCode (has_target = false)]
	delegate GLib.Variant? ServiceFunc (EngineMessage dcem);
}

// vim:noet sw=4 ts=4