regenerate interface types, clean up gen script
[systembsd.git] / src / interfaces / hostnamed / hostnamed-gen.h
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 __SRC_INTERFACES_HOSTNAMED_HOSTNAMED_GEN_H__
8 #define __SRC_INTERFACES_HOSTNAMED_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 TYPE_HOSTNAME1 (hostname1_get_type ())
19 #define HOSTNAME1(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOSTNAME1, Hostname1))
20 #define IS_HOSTNAME1(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOSTNAME1))
21 #define HOSTNAME1_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOSTNAME1, Hostname1Iface))
22
23 struct _Hostname1;
24 typedef struct _Hostname1 Hostname1;
25 typedef struct _Hostname1Iface Hostname1Iface;
26
27 struct _Hostname1Iface
28 {
29 GTypeInterface parent_iface;
30
31
32 gboolean (*handle_set_hostname) (
33 Hostname1 *object,
34 GDBusMethodInvocation *invocation,
35 const gchar *arg_name,
36 gboolean arg_user_interaction);
37
38 gboolean (*handle_set_icon_name) (
39 Hostname1 *object,
40 GDBusMethodInvocation *invocation,
41 const gchar *arg_name,
42 gboolean arg_user_interaction);
43
44 gboolean (*handle_set_pretty_hostname) (
45 Hostname1 *object,
46 GDBusMethodInvocation *invocation,
47 const gchar *arg_name,
48 gboolean arg_user_interaction);
49
50 gboolean (*handle_set_static_hostname) (
51 Hostname1 *object,
52 GDBusMethodInvocation *invocation,
53 const gchar *arg_name,
54 gboolean arg_user_interaction);
55
56 const gchar * (*get_hostname) (Hostname1 *object);
57
58 const gchar * (*get_icon_name) (Hostname1 *object);
59
60 const gchar * (*get_pretty_hostname) (Hostname1 *object);
61
62 const gchar * (*get_static_hostname) (Hostname1 *object);
63
64 };
65
66 GType hostname1_get_type (void) G_GNUC_CONST;
67
68 GDBusInterfaceInfo *hostname1_interface_info (void);
69 guint hostname1_override_properties (GObjectClass *klass, guint property_id_begin);
70
71
72 /* D-Bus method call completion functions: */
73 void hostname1_complete_set_hostname (
74 Hostname1 *object,
75 GDBusMethodInvocation *invocation);
76
77 void hostname1_complete_set_static_hostname (
78 Hostname1 *object,
79 GDBusMethodInvocation *invocation);
80
81 void hostname1_complete_set_pretty_hostname (
82 Hostname1 *object,
83 GDBusMethodInvocation *invocation);
84
85 void hostname1_complete_set_icon_name (
86 Hostname1 *object,
87 GDBusMethodInvocation *invocation);
88
89
90
91 /* D-Bus method calls: */
92 void hostname1_call_set_hostname (
93 Hostname1 *proxy,
94 const gchar *arg_name,
95 gboolean arg_user_interaction,
96 GCancellable *cancellable,
97 GAsyncReadyCallback callback,
98 gpointer user_data);
99
100 gboolean hostname1_call_set_hostname_finish (
101 Hostname1 *proxy,
102 GAsyncResult *res,
103 GError **error);
104
105 gboolean hostname1_call_set_hostname_sync (
106 Hostname1 *proxy,
107 const gchar *arg_name,
108 gboolean arg_user_interaction,
109 GCancellable *cancellable,
110 GError **error);
111
112 void hostname1_call_set_static_hostname (
113 Hostname1 *proxy,
114 const gchar *arg_name,
115 gboolean arg_user_interaction,
116 GCancellable *cancellable,
117 GAsyncReadyCallback callback,
118 gpointer user_data);
119
120 gboolean hostname1_call_set_static_hostname_finish (
121 Hostname1 *proxy,
122 GAsyncResult *res,
123 GError **error);
124
125 gboolean hostname1_call_set_static_hostname_sync (
126 Hostname1 *proxy,
127 const gchar *arg_name,
128 gboolean arg_user_interaction,
129 GCancellable *cancellable,
130 GError **error);
131
132 void hostname1_call_set_pretty_hostname (
133 Hostname1 *proxy,
134 const gchar *arg_name,
135 gboolean arg_user_interaction,
136 GCancellable *cancellable,
137 GAsyncReadyCallback callback,
138 gpointer user_data);
139
140 gboolean hostname1_call_set_pretty_hostname_finish (
141 Hostname1 *proxy,
142 GAsyncResult *res,
143 GError **error);
144
145 gboolean hostname1_call_set_pretty_hostname_sync (
146 Hostname1 *proxy,
147 const gchar *arg_name,
148 gboolean arg_user_interaction,
149 GCancellable *cancellable,
150 GError **error);
151
152 void hostname1_call_set_icon_name (
153 Hostname1 *proxy,
154 const gchar *arg_name,
155 gboolean arg_user_interaction,
156 GCancellable *cancellable,
157 GAsyncReadyCallback callback,
158 gpointer user_data);
159
160 gboolean hostname1_call_set_icon_name_finish (
161 Hostname1 *proxy,
162 GAsyncResult *res,
163 GError **error);
164
165 gboolean hostname1_call_set_icon_name_sync (
166 Hostname1 *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 *hostname1_get_hostname (Hostname1 *object);
176 gchar *hostname1_dup_hostname (Hostname1 *object);
177 void hostname1_set_hostname (Hostname1 *object, const gchar *value);
178
179 const gchar *hostname1_get_static_hostname (Hostname1 *object);
180 gchar *hostname1_dup_static_hostname (Hostname1 *object);
181 void hostname1_set_static_hostname (Hostname1 *object, const gchar *value);
182
183 const gchar *hostname1_get_pretty_hostname (Hostname1 *object);
184 gchar *hostname1_dup_pretty_hostname (Hostname1 *object);
185 void hostname1_set_pretty_hostname (Hostname1 *object, const gchar *value);
186
187 const gchar *hostname1_get_icon_name (Hostname1 *object);
188 gchar *hostname1_dup_icon_name (Hostname1 *object);
189 void hostname1_set_icon_name (Hostname1 *object, const gchar *value);
190
191
192 /* ---- */
193
194 #define TYPE_HOSTNAME1_PROXY (hostname1_proxy_get_type ())
195 #define HOSTNAME1_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOSTNAME1_PROXY, Hostname1Proxy))
196 #define HOSTNAME1_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOSTNAME1_PROXY, Hostname1ProxyClass))
197 #define HOSTNAME1_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOSTNAME1_PROXY, Hostname1ProxyClass))
198 #define IS_HOSTNAME1_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOSTNAME1_PROXY))
199 #define IS_HOSTNAME1_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOSTNAME1_PROXY))
200
201 typedef struct _Hostname1Proxy Hostname1Proxy;
202 typedef struct _Hostname1ProxyClass Hostname1ProxyClass;
203 typedef struct _Hostname1ProxyPrivate Hostname1ProxyPrivate;
204
205 struct _Hostname1Proxy
206 {
207 /*< private >*/
208 GDBusProxy parent_instance;
209 Hostname1ProxyPrivate *priv;
210 };
211
212 struct _Hostname1ProxyClass
213 {
214 GDBusProxyClass parent_class;
215 };
216
217 GType hostname1_proxy_get_type (void) G_GNUC_CONST;
218
219 void hostname1_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 Hostname1 *hostname1_proxy_new_finish (
228 GAsyncResult *res,
229 GError **error);
230 Hostname1 *hostname1_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 hostname1_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 Hostname1 *hostname1_proxy_new_for_bus_finish (
247 GAsyncResult *res,
248 GError **error);
249 Hostname1 *hostname1_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 TYPE_HOSTNAME1_SKELETON (hostname1_skeleton_get_type ())
261 #define HOSTNAME1_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOSTNAME1_SKELETON, Hostname1Skeleton))
262 #define HOSTNAME1_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOSTNAME1_SKELETON, Hostname1SkeletonClass))
263 #define HOSTNAME1_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOSTNAME1_SKELETON, Hostname1SkeletonClass))
264 #define IS_HOSTNAME1_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOSTNAME1_SKELETON))
265 #define IS_HOSTNAME1_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOSTNAME1_SKELETON))
266
267 typedef struct _Hostname1Skeleton Hostname1Skeleton;
268 typedef struct _Hostname1SkeletonClass Hostname1SkeletonClass;
269 typedef struct _Hostname1SkeletonPrivate Hostname1SkeletonPrivate;
270
271 struct _Hostname1Skeleton
272 {
273 /*< private >*/
274 GDBusInterfaceSkeleton parent_instance;
275 Hostname1SkeletonPrivate *priv;
276 };
277
278 struct _Hostname1SkeletonClass
279 {
280 GDBusInterfaceSkeletonClass parent_class;
281 };
282
283 GType hostname1_skeleton_get_type (void) G_GNUC_CONST;
284
285 Hostname1 *hostname1_skeleton_new (void);
286
287
288 G_END_DECLS
289
290 #endif /* __SRC_INTERFACES_HOSTNAMED_HOSTNAMED_GEN_H__ */