add script for generating interface types (gdbus-codegen)
[systembsd.git] / src / interfaces / timedated / timedated-gen.h
CommitLineData
6f9962ec 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 __TIMEDATED_GEN_H__
8#define __TIMEDATED_GEN_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.freedesktop.timedate1 */
17
18#define TIMEDATED_TYPE_ (timedated__get_type ())
19#define TIMEDATED_(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TIMEDATED_TYPE_, Timedated))
20#define TIMEDATED_IS_(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TIMEDATED_TYPE_))
21#define TIMEDATED__GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TIMEDATED_TYPE_, TimedatedIface))
22
23struct _Timedated;
24typedef struct _Timedated Timedated;
25typedef struct _TimedatedIface TimedatedIface;
26
27struct _TimedatedIface
28{
29 GTypeInterface parent_iface;
30
31
32 gboolean (*handle_set_local_rtc) (
33 Timedated *object,
34 GDBusMethodInvocation *invocation,
35 gboolean arg_local_rtc,
36 gboolean arg_fix_system,
37 gboolean arg_user_interaction);
38
39 gboolean (*handle_set_ntp) (
40 Timedated *object,
41 GDBusMethodInvocation *invocation,
42 gboolean arg_use_ntp,
43 gboolean arg_user_interaction);
44
45 gboolean (*handle_set_time) (
46 Timedated *object,
47 GDBusMethodInvocation *invocation,
48 gint64 arg_usec_utc,
49 gboolean arg_relative,
50 gboolean arg_user_interaction);
51
52 gboolean (*handle_set_timezone) (
53 Timedated *object,
54 GDBusMethodInvocation *invocation,
55 const gchar *arg_timezone,
56 gboolean arg_user_interaction);
57
58 gboolean (*get_local_rtc) (Timedated *object);
59
60 gboolean (*get_ntp) (Timedated *object);
61
62 const gchar * (*get_timezone) (Timedated *object);
63
64};
65
66GType timedated__get_type (void) G_GNUC_CONST;
67
68GDBusInterfaceInfo *timedated__interface_info (void);
69guint timedated__override_properties (GObjectClass *klass, guint property_id_begin);
70
71
72/* D-Bus method call completion functions: */
73void timedated__complete_set_time (
74 Timedated *object,
75 GDBusMethodInvocation *invocation);
76
77void timedated__complete_set_timezone (
78 Timedated *object,
79 GDBusMethodInvocation *invocation);
80
81void timedated__complete_set_local_rtc (
82 Timedated *object,
83 GDBusMethodInvocation *invocation);
84
85void timedated__complete_set_ntp (
86 Timedated *object,
87 GDBusMethodInvocation *invocation);
88
89
90
91/* D-Bus method calls: */
92void timedated__call_set_time (
93 Timedated *proxy,
94 gint64 arg_usec_utc,
95 gboolean arg_relative,
96 gboolean arg_user_interaction,
97 GCancellable *cancellable,
98 GAsyncReadyCallback callback,
99 gpointer user_data);
100
101gboolean timedated__call_set_time_finish (
102 Timedated *proxy,
103 GAsyncResult *res,
104 GError **error);
105
106gboolean timedated__call_set_time_sync (
107 Timedated *proxy,
108 gint64 arg_usec_utc,
109 gboolean arg_relative,
110 gboolean arg_user_interaction,
111 GCancellable *cancellable,
112 GError **error);
113
114void timedated__call_set_timezone (
115 Timedated *proxy,
116 const gchar *arg_timezone,
117 gboolean arg_user_interaction,
118 GCancellable *cancellable,
119 GAsyncReadyCallback callback,
120 gpointer user_data);
121
122gboolean timedated__call_set_timezone_finish (
123 Timedated *proxy,
124 GAsyncResult *res,
125 GError **error);
126
127gboolean timedated__call_set_timezone_sync (
128 Timedated *proxy,
129 const gchar *arg_timezone,
130 gboolean arg_user_interaction,
131 GCancellable *cancellable,
132 GError **error);
133
134void timedated__call_set_local_rtc (
135 Timedated *proxy,
136 gboolean arg_local_rtc,
137 gboolean arg_fix_system,
138 gboolean arg_user_interaction,
139 GCancellable *cancellable,
140 GAsyncReadyCallback callback,
141 gpointer user_data);
142
143gboolean timedated__call_set_local_rtc_finish (
144 Timedated *proxy,
145 GAsyncResult *res,
146 GError **error);
147
148gboolean timedated__call_set_local_rtc_sync (
149 Timedated *proxy,
150 gboolean arg_local_rtc,
151 gboolean arg_fix_system,
152 gboolean arg_user_interaction,
153 GCancellable *cancellable,
154 GError **error);
155
156void timedated__call_set_ntp (
157 Timedated *proxy,
158 gboolean arg_use_ntp,
159 gboolean arg_user_interaction,
160 GCancellable *cancellable,
161 GAsyncReadyCallback callback,
162 gpointer user_data);
163
164gboolean timedated__call_set_ntp_finish (
165 Timedated *proxy,
166 GAsyncResult *res,
167 GError **error);
168
169gboolean timedated__call_set_ntp_sync (
170 Timedated *proxy,
171 gboolean arg_use_ntp,
172 gboolean arg_user_interaction,
173 GCancellable *cancellable,
174 GError **error);
175
176
177
178/* D-Bus property accessors: */
179const gchar *timedated__get_timezone (Timedated *object);
180gchar *timedated__dup_timezone (Timedated *object);
181void timedated__set_timezone (Timedated *object, const gchar *value);
182
183gboolean timedated__get_local_rtc (Timedated *object);
184void timedated__set_local_rtc (Timedated *object, gboolean value);
185
186gboolean timedated__get_ntp (Timedated *object);
187void timedated__set_ntp (Timedated *object, gboolean value);
188
189
190/* ---- */
191
192#define TIMEDATED_TYPE__PROXY (timedated__proxy_get_type ())
193#define TIMEDATED__PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TIMEDATED_TYPE__PROXY, TimedatedProxy))
194#define TIMEDATED__PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TIMEDATED_TYPE__PROXY, TimedatedProxyClass))
195#define TIMEDATED__PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TIMEDATED_TYPE__PROXY, TimedatedProxyClass))
196#define TIMEDATED_IS__PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TIMEDATED_TYPE__PROXY))
197#define TIMEDATED_IS__PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TIMEDATED_TYPE__PROXY))
198
199typedef struct _TimedatedProxy TimedatedProxy;
200typedef struct _TimedatedProxyClass TimedatedProxyClass;
201typedef struct _TimedatedProxyPrivate TimedatedProxyPrivate;
202
203struct _TimedatedProxy
204{
205 /*< private >*/
206 GDBusProxy parent_instance;
207 TimedatedProxyPrivate *priv;
208};
209
210struct _TimedatedProxyClass
211{
212 GDBusProxyClass parent_class;
213};
214
215GType timedated__proxy_get_type (void) G_GNUC_CONST;
216
217void timedated__proxy_new (
218 GDBusConnection *connection,
219 GDBusProxyFlags flags,
220 const gchar *name,
221 const gchar *object_path,
222 GCancellable *cancellable,
223 GAsyncReadyCallback callback,
224 gpointer user_data);
225Timedated *timedated__proxy_new_finish (
226 GAsyncResult *res,
227 GError **error);
228Timedated *timedated__proxy_new_sync (
229 GDBusConnection *connection,
230 GDBusProxyFlags flags,
231 const gchar *name,
232 const gchar *object_path,
233 GCancellable *cancellable,
234 GError **error);
235
236void timedated__proxy_new_for_bus (
237 GBusType bus_type,
238 GDBusProxyFlags flags,
239 const gchar *name,
240 const gchar *object_path,
241 GCancellable *cancellable,
242 GAsyncReadyCallback callback,
243 gpointer user_data);
244Timedated *timedated__proxy_new_for_bus_finish (
245 GAsyncResult *res,
246 GError **error);
247Timedated *timedated__proxy_new_for_bus_sync (
248 GBusType bus_type,
249 GDBusProxyFlags flags,
250 const gchar *name,
251 const gchar *object_path,
252 GCancellable *cancellable,
253 GError **error);
254
255
256/* ---- */
257
258#define TIMEDATED_TYPE__SKELETON (timedated__skeleton_get_type ())
259#define TIMEDATED__SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TIMEDATED_TYPE__SKELETON, TimedatedSkeleton))
260#define TIMEDATED__SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TIMEDATED_TYPE__SKELETON, TimedatedSkeletonClass))
261#define TIMEDATED__SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TIMEDATED_TYPE__SKELETON, TimedatedSkeletonClass))
262#define TIMEDATED_IS__SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TIMEDATED_TYPE__SKELETON))
263#define TIMEDATED_IS__SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TIMEDATED_TYPE__SKELETON))
264
265typedef struct _TimedatedSkeleton TimedatedSkeleton;
266typedef struct _TimedatedSkeletonClass TimedatedSkeletonClass;
267typedef struct _TimedatedSkeletonPrivate TimedatedSkeletonPrivate;
268
269struct _TimedatedSkeleton
270{
271 /*< private >*/
272 GDBusInterfaceSkeleton parent_instance;
273 TimedatedSkeletonPrivate *priv;
274};
275
276struct _TimedatedSkeletonClass
277{
278 GDBusInterfaceSkeletonClass parent_class;
279};
280
281GType timedated__skeleton_get_type (void) G_GNUC_CONST;
282
283Timedated *timedated__skeleton_new (void);
284
285
286G_END_DECLS
287
288#endif /* __TIMEDATED_GEN_H__ */