syncing...
[systembsd.git] / src / main.h
CommitLineData
faab2eee 1#include <gio/gio.h>
2
3#ifdef NO BUILTIN XML
4//TODO install conf
5#endif
6
7#ifndef NO_BUILTIN_XML
8gchar **hostnamed_config_xml =
9"<!DOCTYPE busconfig PUBLIC"
10" \"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN\""
11" \"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd\">"
12"<busconfig>"
13" <!-- Only members of 'wheel' and user 'daemon' may set hostnames -->"
14" <policy group=\"wheel\">"
15" <allow own=\"org.freedesktop.hostname1\"/>"
16" <allow send_destination=\"org.freedesktop.hostname1\"/>"
17" <allow receive_sender=\"org.freedesktop.hostname1\"/>"
18" </policy>"
19" <policy user=\"daemon\">"
20" <allow own=\"org.freedesktop.hostname1\"/>"
21" <allow send_destination=\"org.freedesktop.hostname1\"/>"
22" <allow receive_sender=\"org.freedesktop.hostname1\"/>"
23" </policy>"
24"</busconfig>";
25
26gchar **hostnamed_ispect_xml =
27"<!-- Taken from Gentoo Linux's OpenRC settingsd -->"
28"<node name=\"/org/freedesktop/hostname1\">"
29" <interface name=\"org.freedesktop.hostname1\">"
30" <method name=\"SetHostname\">"
31" <arg direction=\"in\" type=\"s\" name=\"name\"/>"
32" <arg direction=\"in\" type=\"b\" name=\"user_interaction\"/>"
33" </method>"
34" <method name=\"SetStaticHostname\">"
35" <arg direction=\"in\" type=\"s\" name=\"name\"/>"
36" <arg direction=\"in\" type=\"b\" name=\"user_interaction\"/>"
37" </method>"
38" <method name=\"SetPrettyHostname\">"
39" <arg direction=\"in\" type=\"s\" name=\"name\"/>"
40" <arg direction=\"in\" type=\"b\" name=\"user_interaction\"/>"
41" </method>"
42" <method name=\"SetIconName\">"
43" <arg direction=\"in\" type=\"s\" name=\"name\"/>"
44" <arg direction=\"in\" type=\"b\" name=\"user_interaction\"/>"
45" </method>"
46" <property name=\"Hostname\" type=\"s\" access=\"read\"/>"
47" <property name=\"StaticHostname\" type=\"s\" access=\"read\"/>"
48" <property name=\"PrettyHostname\" type=\"s\" access=\"read\"/>"
49" <property name=\"IconName\" type=\"s\" access=\"read\"/>"
50" </interface>"
51"</node>";