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 __SRC_INTERFACES_HOSTNAMED_HOSTNAMED_GEN_H__
8 #define __SRC_INTERFACES_HOSTNAMED_HOSTNAMED_GEN_H__
15 /* ------------------------------------------------------------------------ */
16 /* Declarations for org.freedesktop.hostname1 */
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))
24 typedef struct _Hostname1 Hostname1
;
25 typedef struct _Hostname1Iface Hostname1Iface
;
27 struct _Hostname1Iface
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
) (Hostname1
*object
);
58 const gchar
* (*get_icon_name
) (Hostname1
*object
);
60 const gchar
* (*get_pretty_hostname
) (Hostname1
*object
);
62 const gchar
* (*get_static_hostname
) (Hostname1
*object
);
66 GType
hostname1_get_type (void) G_GNUC_CONST
;
68 GDBusInterfaceInfo
*hostname1_interface_info (void);
69 guint
hostname1_override_properties (GObjectClass
*klass
, guint property_id_begin
);
72 /* D-Bus method call completion functions: */
73 void hostname1_complete_set_hostname (
75 GDBusMethodInvocation
*invocation
);
77 void hostname1_complete_set_static_hostname (
79 GDBusMethodInvocation
*invocation
);
81 void hostname1_complete_set_pretty_hostname (
83 GDBusMethodInvocation
*invocation
);
85 void hostname1_complete_set_icon_name (
87 GDBusMethodInvocation
*invocation
);
91 /* D-Bus method calls: */
92 void hostname1_call_set_hostname (
94 const gchar
*arg_name
,
95 gboolean arg_user_interaction
,
96 GCancellable
*cancellable
,
97 GAsyncReadyCallback callback
,
100 gboolean
hostname1_call_set_hostname_finish (
105 gboolean
hostname1_call_set_hostname_sync (
107 const gchar
*arg_name
,
108 gboolean arg_user_interaction
,
109 GCancellable
*cancellable
,
112 void hostname1_call_set_static_hostname (
114 const gchar
*arg_name
,
115 gboolean arg_user_interaction
,
116 GCancellable
*cancellable
,
117 GAsyncReadyCallback callback
,
120 gboolean
hostname1_call_set_static_hostname_finish (
125 gboolean
hostname1_call_set_static_hostname_sync (
127 const gchar
*arg_name
,
128 gboolean arg_user_interaction
,
129 GCancellable
*cancellable
,
132 void hostname1_call_set_pretty_hostname (
134 const gchar
*arg_name
,
135 gboolean arg_user_interaction
,
136 GCancellable
*cancellable
,
137 GAsyncReadyCallback callback
,
140 gboolean
hostname1_call_set_pretty_hostname_finish (
145 gboolean
hostname1_call_set_pretty_hostname_sync (
147 const gchar
*arg_name
,
148 gboolean arg_user_interaction
,
149 GCancellable
*cancellable
,
152 void hostname1_call_set_icon_name (
154 const gchar
*arg_name
,
155 gboolean arg_user_interaction
,
156 GCancellable
*cancellable
,
157 GAsyncReadyCallback callback
,
160 gboolean
hostname1_call_set_icon_name_finish (
165 gboolean
hostname1_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
*hostname1_get_hostname (Hostname1
*object
);
176 gchar
*hostname1_dup_hostname (Hostname1
*object
);
177 void hostname1_set_hostname (Hostname1
*object
, const gchar
*value
);
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
);
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
);
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
);
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))
201 typedef struct _Hostname1Proxy Hostname1Proxy
;
202 typedef struct _Hostname1ProxyClass Hostname1ProxyClass
;
203 typedef struct _Hostname1ProxyPrivate Hostname1ProxyPrivate
;
205 struct _Hostname1Proxy
208 GDBusProxy parent_instance
;
209 Hostname1ProxyPrivate
*priv
;
212 struct _Hostname1ProxyClass
214 GDBusProxyClass parent_class
;
217 GType
hostname1_proxy_get_type (void) G_GNUC_CONST
;
219 void hostname1_proxy_new (
220 GDBusConnection
*connection
,
221 GDBusProxyFlags flags
,
223 const gchar
*object_path
,
224 GCancellable
*cancellable
,
225 GAsyncReadyCallback callback
,
227 Hostname1
*hostname1_proxy_new_finish (
230 Hostname1
*hostname1_proxy_new_sync (
231 GDBusConnection
*connection
,
232 GDBusProxyFlags flags
,
234 const gchar
*object_path
,
235 GCancellable
*cancellable
,
238 void hostname1_proxy_new_for_bus (
240 GDBusProxyFlags flags
,
242 const gchar
*object_path
,
243 GCancellable
*cancellable
,
244 GAsyncReadyCallback callback
,
246 Hostname1
*hostname1_proxy_new_for_bus_finish (
249 Hostname1
*hostname1_proxy_new_for_bus_sync (
251 GDBusProxyFlags flags
,
253 const gchar
*object_path
,
254 GCancellable
*cancellable
,
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))
267 typedef struct _Hostname1Skeleton Hostname1Skeleton
;
268 typedef struct _Hostname1SkeletonClass Hostname1SkeletonClass
;
269 typedef struct _Hostname1SkeletonPrivate Hostname1SkeletonPrivate
;
271 struct _Hostname1Skeleton
274 GDBusInterfaceSkeleton parent_instance
;
275 Hostname1SkeletonPrivate
*priv
;
278 struct _Hostname1SkeletonClass
280 GDBusInterfaceSkeletonClass parent_class
;
283 GType
hostname1_skeleton_get_type (void) G_GNUC_CONST
;
285 Hostname1
*hostname1_skeleton_new (void);
290 #endif /* __SRC_INTERFACES_HOSTNAMED_HOSTNAMED_GEN_H__ */