regenerate interface types, clean up gen script
[systembsd.git] / src / interfaces / hostnamed / hostnamed-gen.h
CommitLineData
5047f6bf 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
12G_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
23struct _Hostname1;
24typedef struct _Hostname1 Hostname1;
25typedef struct _Hostname1Iface Hostname1Iface;
26
27struct _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
66GType hostname1_get_type (void) G_GNUC_CONST;
67
68GDBusInterfaceInfo *hostname1_interface_info (void);
69guint hostname1_override_properties (GObjectClass *klass, guint property_id_begin);
70
71
72/* D-Bus method call completion functions: */
73void hostname1_complete_set_hostname (
74 Hostname1 *object,
75 GDBusMethodInvocation *invocation);
76
77void hostname1_complete_set_static_hostname (
78 Hostname1 *object,
79 GDBusMethodInvocation *invocation);
80
81void hostname1_complete_set_pretty_hostname (
82 Hostname1 *object,
83 GDBusMethodInvocation *invocation);
84
85void hostname1_complete_set_icon_name (
86 Hostname1 *object,
87 GDBusMethodInvocation *invocation);
88
89
90
91/* D-Bus method calls: */
92void 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
100gboolean hostname1_call_set_hostname_finish (
101 Hostname1 *proxy,
102 GAsyncResult *res,
103 GError **error);
104
105gboolean 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
112void 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
120gboolean hostname1_call_set_static_hostname_finish (
121 Hostname1 *proxy,
122 GAsyncResult *res,
123 GError **error);
124
125gboolean 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
132void 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
140gboolean hostname1_call_set_pretty_hostname_finish (
141 Hostname1 *proxy,
142 GAsyncResult *res,
143 GError **error);
144
145gboolean 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
152void 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
160gboolean hostname1_call_set_icon_name_finish (
161 Hostname1 *proxy,
162 GAsyncResult *res,
163 GError **error);
164
165gboolean 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: */
175const gchar *hostname1_get_hostname (Hostname1 *object);
176gchar *hostname1_dup_hostname (Hostname1 *object);
177void hostname1_set_hostname (Hostname1 *object, const gchar *value);
178
179const gchar *hostname1_get_static_hostname (Hostname1 *object);
180gchar *hostname1_dup_static_hostname (Hostname1 *object);
181void hostname1_set_static_hostname (Hostname1 *object, const gchar *value);
182
183const gchar *hostname1_get_pretty_hostname (Hostname1 *object);
184gchar *hostname1_dup_pretty_hostname (Hostname1 *object);
185void hostname1_set_pretty_hostname (Hostname1 *object, const gchar *value);
186
187const gchar *hostname1_get_icon_name (Hostname1 *object);
188gchar *hostname1_dup_icon_name (Hostname1 *object);
189void 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
201typedef struct _Hostname1Proxy Hostname1Proxy;
202typedef struct _Hostname1ProxyClass Hostname1ProxyClass;
203typedef struct _Hostname1ProxyPrivate Hostname1ProxyPrivate;
204
205struct _Hostname1Proxy
206{
207 /*< private >*/
208 GDBusProxy parent_instance;
209 Hostname1ProxyPrivate *priv;
210};
211
212struct _Hostname1ProxyClass
213{
214 GDBusProxyClass parent_class;
215};
216
217GType hostname1_proxy_get_type (void) G_GNUC_CONST;
218
219void 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);
227Hostname1 *hostname1_proxy_new_finish (
228 GAsyncResult *res,
229 GError **error);
230Hostname1 *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
238void 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);
246Hostname1 *hostname1_proxy_new_for_bus_finish (
247 GAsyncResult *res,
248 GError **error);
249Hostname1 *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
267typedef struct _Hostname1Skeleton Hostname1Skeleton;
268typedef struct _Hostname1SkeletonClass Hostname1SkeletonClass;
269typedef struct _Hostname1SkeletonPrivate Hostname1SkeletonPrivate;
270
271struct _Hostname1Skeleton
272{
273 /*< private >*/
274 GDBusInterfaceSkeleton parent_instance;
275 Hostname1SkeletonPrivate *priv;
276};
277
278struct _Hostname1SkeletonClass
279{
280 GDBusInterfaceSkeletonClass parent_class;
281};
282
283GType hostname1_skeleton_get_type (void) G_GNUC_CONST;
284
285Hostname1 *hostname1_skeleton_new (void);
286
287
288G_END_DECLS
289
290#endif /* __SRC_INTERFACES_HOSTNAMED_HOSTNAMED_GEN_H__ */