a82db5fd |
1 | /* |
2 | * Generated by gdbus-codegen 2.40.0. DO NOT EDIT. |
3 | * |
4 | * The license of this code is the same as for the source it was derived from. |
5 | */ |
6 | |
7 | #ifndef __HOSTNAMED_GEN_H__ |
8 | #define __HOSTNAMED_GEN_H__ |
9 | |
10 | #include <gio/gio.h> |
11 | |
12 | G_BEGIN_DECLS |
13 | |
14 | |
15 | /* ------------------------------------------------------------------------ */ |
16 | /* Declarations for org.freedesktop.hostname1 */ |
17 | |
18 | #define HOSTNAMED_TYPE_ (hostnamed__get_type ()) |
19 | #define HOSTNAMED_(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), HOSTNAMED_TYPE_, Hostnamed)) |
20 | #define HOSTNAMED_IS_(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), HOSTNAMED_TYPE_)) |
21 | #define HOSTNAMED__GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), HOSTNAMED_TYPE_, HostnamedIface)) |
22 | |
23 | struct _Hostnamed; |
24 | typedef struct _Hostnamed Hostnamed; |
25 | typedef struct _HostnamedIface HostnamedIface; |
26 | |
27 | struct _HostnamedIface |
28 | { |
29 | GTypeInterface parent_iface; |
30 | |
31 | |
32 | gboolean (*handle_set_hostname) ( |
33 | Hostnamed *object, |
34 | GDBusMethodInvocation *invocation, |
35 | const gchar *arg_name, |
36 | gboolean arg_user_interaction); |
37 | |
38 | gboolean (*handle_set_icon_name) ( |
39 | Hostnamed *object, |
40 | GDBusMethodInvocation *invocation, |
41 | const gchar *arg_name, |
42 | gboolean arg_user_interaction); |
43 | |
44 | gboolean (*handle_set_pretty_hostname) ( |
45 | Hostnamed *object, |
46 | GDBusMethodInvocation *invocation, |
47 | const gchar *arg_name, |
48 | gboolean arg_user_interaction); |
49 | |
50 | gboolean (*handle_set_static_hostname) ( |
51 | Hostnamed *object, |
52 | GDBusMethodInvocation *invocation, |
53 | const gchar *arg_name, |
54 | gboolean arg_user_interaction); |
55 | |
56 | const gchar * (*get_hostname) (Hostnamed *object); |
57 | |
58 | const gchar * (*get_icon_name) (Hostnamed *object); |
59 | |
60 | const gchar * (*get_pretty_hostname) (Hostnamed *object); |
61 | |
62 | const gchar * (*get_static_hostname) (Hostnamed *object); |
63 | |
64 | }; |
65 | |
66 | GType hostnamed__get_type (void) G_GNUC_CONST; |
67 | |
68 | GDBusInterfaceInfo *hostnamed__interface_info (void); |
69 | guint hostnamed__override_properties (GObjectClass *klass, guint property_id_begin); |
70 | |
71 | |
72 | /* D-Bus method call completion functions: */ |
73 | void hostnamed__complete_set_hostname ( |
74 | Hostnamed *object, |
75 | GDBusMethodInvocation *invocation); |
76 | |
77 | void hostnamed__complete_set_static_hostname ( |
78 | Hostnamed *object, |
79 | GDBusMethodInvocation *invocation); |
80 | |
81 | void hostnamed__complete_set_pretty_hostname ( |
82 | Hostnamed *object, |
83 | GDBusMethodInvocation *invocation); |
84 | |
85 | void hostnamed__complete_set_icon_name ( |
86 | Hostnamed *object, |
87 | GDBusMethodInvocation *invocation); |
88 | |
89 | |
90 | |
91 | /* D-Bus method calls: */ |
92 | void hostnamed__call_set_hostname ( |
93 | Hostnamed *proxy, |
94 | const gchar *arg_name, |
95 | gboolean arg_user_interaction, |
96 | GCancellable *cancellable, |
97 | GAsyncReadyCallback callback, |
98 | gpointer user_data); |
99 | |
100 | gboolean hostnamed__call_set_hostname_finish ( |
101 | Hostnamed *proxy, |
102 | GAsyncResult *res, |
103 | GError **error); |
104 | |
105 | gboolean hostnamed__call_set_hostname_sync ( |
106 | Hostnamed *proxy, |
107 | const gchar *arg_name, |
108 | gboolean arg_user_interaction, |
109 | GCancellable *cancellable, |
110 | GError **error); |
111 | |
112 | void hostnamed__call_set_static_hostname ( |
113 | Hostnamed *proxy, |
114 | const gchar *arg_name, |
115 | gboolean arg_user_interaction, |
116 | GCancellable *cancellable, |
117 | GAsyncReadyCallback callback, |
118 | gpointer user_data); |
119 | |
120 | gboolean hostnamed__call_set_static_hostname_finish ( |
121 | Hostnamed *proxy, |
122 | GAsyncResult *res, |
123 | GError **error); |
124 | |
125 | gboolean hostnamed__call_set_static_hostname_sync ( |
126 | Hostnamed *proxy, |
127 | const gchar *arg_name, |
128 | gboolean arg_user_interaction, |
129 | GCancellable *cancellable, |
130 | GError **error); |
131 | |
132 | void hostnamed__call_set_pretty_hostname ( |
133 | Hostnamed *proxy, |
134 | const gchar *arg_name, |
135 | gboolean arg_user_interaction, |
136 | GCancellable *cancellable, |
137 | GAsyncReadyCallback callback, |
138 | gpointer user_data); |
139 | |
140 | gboolean hostnamed__call_set_pretty_hostname_finish ( |
141 | Hostnamed *proxy, |
142 | GAsyncResult *res, |
143 | GError **error); |
144 | |
145 | gboolean hostnamed__call_set_pretty_hostname_sync ( |
146 | Hostnamed *proxy, |
147 | const gchar *arg_name, |
148 | gboolean arg_user_interaction, |
149 | GCancellable *cancellable, |
150 | GError **error); |
151 | |
152 | void hostnamed__call_set_icon_name ( |
153 | Hostnamed *proxy, |
154 | const gchar *arg_name, |
155 | gboolean arg_user_interaction, |
156 | GCancellable *cancellable, |
157 | GAsyncReadyCallback callback, |
158 | gpointer user_data); |
159 | |
160 | gboolean hostnamed__call_set_icon_name_finish ( |
161 | Hostnamed *proxy, |
162 | GAsyncResult *res, |
163 | GError **error); |
164 | |
165 | gboolean hostnamed__call_set_icon_name_sync ( |
166 | Hostnamed *proxy, |
167 | const gchar *arg_name, |
168 | gboolean arg_user_interaction, |
169 | GCancellable *cancellable, |
170 | GError **error); |
171 | |
172 | |
173 | |
174 | /* D-Bus property accessors: */ |
175 | const gchar *hostnamed__get_hostname (Hostnamed *object); |
176 | gchar *hostnamed__dup_hostname (Hostnamed *object); |
177 | void hostnamed__set_hostname (Hostnamed *object, const gchar *value); |
178 | |
179 | const gchar *hostnamed__get_static_hostname (Hostnamed *object); |
180 | gchar *hostnamed__dup_static_hostname (Hostnamed *object); |
181 | void hostnamed__set_static_hostname (Hostnamed *object, const gchar *value); |
182 | |
183 | const gchar *hostnamed__get_pretty_hostname (Hostnamed *object); |
184 | gchar *hostnamed__dup_pretty_hostname (Hostnamed *object); |
185 | void hostnamed__set_pretty_hostname (Hostnamed *object, const gchar *value); |
186 | |
187 | const gchar *hostnamed__get_icon_name (Hostnamed *object); |
188 | gchar *hostnamed__dup_icon_name (Hostnamed *object); |
189 | void hostnamed__set_icon_name (Hostnamed *object, const gchar *value); |
190 | |
191 | |
192 | /* ---- */ |
193 | |
194 | #define HOSTNAMED_TYPE__PROXY (hostnamed__proxy_get_type ()) |
195 | #define HOSTNAMED__PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), HOSTNAMED_TYPE__PROXY, HostnamedProxy)) |
196 | #define HOSTNAMED__PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), HOSTNAMED_TYPE__PROXY, HostnamedProxyClass)) |
197 | #define HOSTNAMED__PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), HOSTNAMED_TYPE__PROXY, HostnamedProxyClass)) |
198 | #define HOSTNAMED_IS__PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), HOSTNAMED_TYPE__PROXY)) |
199 | #define HOSTNAMED_IS__PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), HOSTNAMED_TYPE__PROXY)) |
200 | |
201 | typedef struct _HostnamedProxy HostnamedProxy; |
202 | typedef struct _HostnamedProxyClass HostnamedProxyClass; |
203 | typedef struct _HostnamedProxyPrivate HostnamedProxyPrivate; |
204 | |
205 | struct _HostnamedProxy |
206 | { |
207 | /*< private >*/ |
208 | GDBusProxy parent_instance; |
209 | HostnamedProxyPrivate *priv; |
210 | }; |
211 | |
212 | struct _HostnamedProxyClass |
213 | { |
214 | GDBusProxyClass parent_class; |
215 | }; |
216 | |
217 | GType hostnamed__proxy_get_type (void) G_GNUC_CONST; |
218 | |
219 | void hostnamed__proxy_new ( |
220 | GDBusConnection *connection, |
221 | GDBusProxyFlags flags, |
222 | const gchar *name, |
223 | const gchar *object_path, |
224 | GCancellable *cancellable, |
225 | GAsyncReadyCallback callback, |
226 | gpointer user_data); |
227 | Hostnamed *hostnamed__proxy_new_finish ( |
228 | GAsyncResult *res, |
229 | GError **error); |
230 | Hostnamed *hostnamed__proxy_new_sync ( |
231 | GDBusConnection *connection, |
232 | GDBusProxyFlags flags, |
233 | const gchar *name, |
234 | const gchar *object_path, |
235 | GCancellable *cancellable, |
236 | GError **error); |
237 | |
238 | void hostnamed__proxy_new_for_bus ( |
239 | GBusType bus_type, |
240 | GDBusProxyFlags flags, |
241 | const gchar *name, |
242 | const gchar *object_path, |
243 | GCancellable *cancellable, |
244 | GAsyncReadyCallback callback, |
245 | gpointer user_data); |
246 | Hostnamed *hostnamed__proxy_new_for_bus_finish ( |
247 | GAsyncResult *res, |
248 | GError **error); |
249 | Hostnamed *hostnamed__proxy_new_for_bus_sync ( |
250 | GBusType bus_type, |
251 | GDBusProxyFlags flags, |
252 | const gchar *name, |
253 | const gchar *object_path, |
254 | GCancellable *cancellable, |
255 | GError **error); |
256 | |
257 | |
258 | /* ---- */ |
259 | |
260 | #define HOSTNAMED_TYPE__SKELETON (hostnamed__skeleton_get_type ()) |
261 | #define HOSTNAMED__SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), HOSTNAMED_TYPE__SKELETON, HostnamedSkeleton)) |
262 | #define HOSTNAMED__SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), HOSTNAMED_TYPE__SKELETON, HostnamedSkeletonClass)) |
263 | #define HOSTNAMED__SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), HOSTNAMED_TYPE__SKELETON, HostnamedSkeletonClass)) |
264 | #define HOSTNAMED_IS__SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), HOSTNAMED_TYPE__SKELETON)) |
265 | #define HOSTNAMED_IS__SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), HOSTNAMED_TYPE__SKELETON)) |
266 | |
267 | typedef struct _HostnamedSkeleton HostnamedSkeleton; |
268 | typedef struct _HostnamedSkeletonClass HostnamedSkeletonClass; |
269 | typedef struct _HostnamedSkeletonPrivate HostnamedSkeletonPrivate; |
270 | |
271 | struct _HostnamedSkeleton |
272 | { |
273 | /*< private >*/ |
274 | GDBusInterfaceSkeleton parent_instance; |
275 | HostnamedSkeletonPrivate *priv; |
276 | }; |
277 | |
278 | struct _HostnamedSkeletonClass |
279 | { |
280 | GDBusInterfaceSkeletonClass parent_class; |
281 | }; |
282 | |
283 | GType hostnamed__skeleton_get_type (void) G_GNUC_CONST; |
284 | |
285 | Hostnamed *hostnamed__skeleton_new (void); |
286 | |
287 | |
288 | G_END_DECLS |
289 | |
290 | #endif /* __HOSTNAMED_GEN_H__ */ |