divorce XML literal to hostnamed.h, update types to be glib-appropriate, comments
[systembsd.git] / src / interfaces / hostnamed / hostnamed.h
1 #include <gio/gio.h>
2
3 static const gchar SYSTEMD_HOSTNAMED_XML[] =
4 "<!DOCTYPE node PUBLIC '-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'"
5 "'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>"
6 "<node>"
7 " <interface name='org.freedesktop.DBus.Peer'>"
8 " <method name='Ping'/>"
9 " <method name='GetMachineId'>"
10 " <arg type='s' name='machine_uuid' direction='out'/>"
11 " </method>"
12 " </interface>"
13 " <interface name='org.freedesktop.DBus.Introspectable'>"
14 " <method name='Introspect'>"
15 " <arg name='data' type='s' direction='out'/>"
16 " </method>"
17 " </interface>"
18 " <interface name='org.freedesktop.DBus.Properties'>"
19 " <method name='Get'>"
20 " <arg name='interface' direction='in' type='s'/>"
21 " <arg name='property' direction='in' type='s'/>"
22 " <arg name='value' direction='out' type='v'/>"
23 " </method>"
24 " <method name='GetAll'>"
25 " <arg name='interface' direction='in' type='s'/>"
26 " <arg name='properties' direction='out' type='a{sv}'/>"
27 " </method>"
28 " <method name='Set'>"
29 " <arg name='interface' direction='in' type='s'/>"
30 " <arg name='property' direction='in' type='s'/>"
31 " <arg name='value' direction='in' type='v'/>"
32 " </method>"
33 " <signal name='PropertiesChanged'>"
34 " <arg type='s' name='interface'/>"
35 " <arg type='a{sv}' name='changed_properties'/>"
36 " <arg type='as' name='invalidated_properties'/>"
37 " </signal>"
38 " </interface>"
39 " <interface name='org.freedesktop.hostname1'>"
40 " <property name='Hostname' type='s' access='read'>"
41 " <annotation name='org.freedesktop.DBus.Property.EmitsChangedSignal' value='false'/>"
42 " </property>"
43 " <property name='StaticHostname' type='s' access='read'>"
44 " </property>"
45 " <property name='PrettyHostname' type='s' access='read'>"
46 " </property>"
47 " <property name='IconName' type='s' access='read'>"
48 " </property>"
49 " <property name='Chassis' type='s' access='read'>"
50 " </property>"
51 " <property name='OperatingSystemPrettyName' type='s' access='read'>"
52 " <annotation name='org.freedesktop.DBus.Property.EmitsChangedSignal' value='const'/>"
53 " </property>"
54 " <property name='OperatingSystemCPEName' type='s' access='read'>"
55 " <annotation name='org.freedesktop.DBus.Property.EmitsChangedSignal' value='const'/>"
56 " </property>"
57 " <method name='SetHostname'>"
58 " <arg type='s' direction='in'/>"
59 " <arg type='b' direction='in'/>"
60 " </method>"
61 " <method name='SetStaticHostname'>"
62 " <arg type='s' direction='in'/>"
63 " <arg type='b' direction='in'/>"
64 " </method>"
65 " <method name='SetPrettyHostname'>"
66 " <arg type='s' direction='in'/>"
67 " <arg type='b' direction='in'/>"
68 " </method>"
69 " <method name='SetIconName'>"
70 " <arg type='s' direction='in'/>"
71 " <arg type='b' direction='in'/>"
72 " </method>"
73 " <method name='SetChassis'>"
74 " <arg type='s' direction='in'/>"
75 " <arg type='b' direction='in'/>"
76 " </method>"
77 " </interface>"
78 "</node>";