2 * Generated by gdbus-codegen 2.40.0. DO NOT EDIT.
4 * The license of this code is the same as for the source it was derived from.
7 #ifndef __HOSTNAMED_GEN_H__
8 #define __HOSTNAMED_GEN_H__
15 /* ------------------------------------------------------------------------ */
16 /* Declarations for org.freedesktop.hostname1 */
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))
24 typedef struct _Hostnamed Hostnamed
;
25 typedef struct _HostnamedIface HostnamedIface
;
27 struct _HostnamedIface
29 GTypeInterface parent_iface
;
32 gboolean (*handle_set_hostname
) (
34 GDBusMethodInvocation
*invocation
,
35 const gchar
*arg_name
,
36 gboolean arg_user_interaction
);
38 gboolean (*handle_set_icon_name
) (
40 GDBusMethodInvocation
*invocation
,
41 const gchar
*arg_name
,
42 gboolean arg_user_interaction
);
44 gboolean (*handle_set_pretty_hostname
) (
46 GDBusMethodInvocation
*invocation
,
47 const gchar
*arg_name
,
48 gboolean arg_user_interaction
);
50 gboolean (*handle_set_static_hostname
) (
52 GDBusMethodInvocation
*invocation
,
53 const gchar
*arg_name
,
54 gboolean arg_user_interaction
);
56 const gchar
* (*get_hostname
) (Hostnamed
*object
);
58 const gchar
* (*get_icon_name
) (Hostnamed
*object
);
60 const gchar
* (*get_pretty_hostname
) (Hostnamed
*object
);
62 const gchar
* (*get_static_hostname
) (Hostnamed
*object
);
66 GType
hostnamed__get_type (void) G_GNUC_CONST
;
68 GDBusInterfaceInfo
*hostnamed__interface_info (void);
69 guint
hostnamed__override_properties (GObjectClass
*klass
, guint property_id_begin
);
72 /* D-Bus method call completion functions: */
73 void hostnamed__complete_set_hostname (
75 GDBusMethodInvocation
*invocation
);
77 void hostnamed__complete_set_static_hostname (
79 GDBusMethodInvocation
*invocation
);
81 void hostnamed__complete_set_pretty_hostname (
83 GDBusMethodInvocation
*invocation
);
85 void hostnamed__complete_set_icon_name (
87 GDBusMethodInvocation
*invocation
);
91 /* D-Bus method calls: */
92 void hostnamed__call_set_hostname (
94 const gchar
*arg_name
,
95 gboolean arg_user_interaction
,
96 GCancellable
*cancellable
,
97 GAsyncReadyCallback callback
,
100 gboolean
hostnamed__call_set_hostname_finish (
105 gboolean
hostnamed__call_set_hostname_sync (
107 const gchar
*arg_name
,
108 gboolean arg_user_interaction
,
109 GCancellable
*cancellable
,
112 void hostnamed__call_set_static_hostname (
114 const gchar
*arg_name
,
115 gboolean arg_user_interaction
,
116 GCancellable
*cancellable
,
117 GAsyncReadyCallback callback
,
120 gboolean
hostnamed__call_set_static_hostname_finish (
125 gboolean
hostnamed__call_set_static_hostname_sync (
127 const gchar
*arg_name
,
128 gboolean arg_user_interaction
,
129 GCancellable
*cancellable
,
132 void hostnamed__call_set_pretty_hostname (
134 const gchar
*arg_name
,
135 gboolean arg_user_interaction
,
136 GCancellable
*cancellable
,
137 GAsyncReadyCallback callback
,
140 gboolean
hostnamed__call_set_pretty_hostname_finish (
145 gboolean
hostnamed__call_set_pretty_hostname_sync (
147 const gchar
*arg_name
,
148 gboolean arg_user_interaction
,
149 GCancellable
*cancellable
,
152 void hostnamed__call_set_icon_name (
154 const gchar
*arg_name
,
155 gboolean arg_user_interaction
,
156 GCancellable
*cancellable
,
157 GAsyncReadyCallback callback
,
160 gboolean
hostnamed__call_set_icon_name_finish (
165 gboolean
hostnamed__call_set_icon_name_sync (
167 const gchar
*arg_name
,
168 gboolean arg_user_interaction
,
169 GCancellable
*cancellable
,
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
);
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
);
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
);
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
);
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))
201 typedef struct _HostnamedProxy HostnamedProxy
;
202 typedef struct _HostnamedProxyClass HostnamedProxyClass
;
203 typedef struct _HostnamedProxyPrivate HostnamedProxyPrivate
;
205 struct _HostnamedProxy
208 GDBusProxy parent_instance
;
209 HostnamedProxyPrivate
*priv
;
212 struct _HostnamedProxyClass
214 GDBusProxyClass parent_class
;
217 GType
hostnamed__proxy_get_type (void) G_GNUC_CONST
;
219 void hostnamed__proxy_new (
220 GDBusConnection
*connection
,
221 GDBusProxyFlags flags
,
223 const gchar
*object_path
,
224 GCancellable
*cancellable
,
225 GAsyncReadyCallback callback
,
227 Hostnamed
*hostnamed__proxy_new_finish (
230 Hostnamed
*hostnamed__proxy_new_sync (
231 GDBusConnection
*connection
,
232 GDBusProxyFlags flags
,
234 const gchar
*object_path
,
235 GCancellable
*cancellable
,
238 void hostnamed__proxy_new_for_bus (
240 GDBusProxyFlags flags
,
242 const gchar
*object_path
,
243 GCancellable
*cancellable
,
244 GAsyncReadyCallback callback
,
246 Hostnamed
*hostnamed__proxy_new_for_bus_finish (
249 Hostnamed
*hostnamed__proxy_new_for_bus_sync (
251 GDBusProxyFlags flags
,
253 const gchar
*object_path
,
254 GCancellable
*cancellable
,
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))
267 typedef struct _HostnamedSkeleton HostnamedSkeleton
;
268 typedef struct _HostnamedSkeletonClass HostnamedSkeletonClass
;
269 typedef struct _HostnamedSkeletonPrivate HostnamedSkeletonPrivate
;
271 struct _HostnamedSkeleton
274 GDBusInterfaceSkeleton parent_instance
;
275 HostnamedSkeletonPrivate
*priv
;
278 struct _HostnamedSkeletonClass
280 GDBusInterfaceSkeletonClass parent_class
;
283 GType
hostnamed__skeleton_get_type (void) G_GNUC_CONST
;
285 Hostnamed
*hostnamed__skeleton_new (void);
290 #endif /* __HOSTNAMED_GEN_H__ */