blob: 2736f4bdbc169ec582c0408d5e2f47ef44aaa105 [file] [log] [blame]
Norman James9e6acf92015-09-08 07:00:04 -05001/*
2 * Generated by gdbus-codegen 2.40.2. 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 __INTERFACES_WATCHDOG_H__
8#define __INTERFACES_WATCHDOG_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.openbmc.Watchdog */
17
18#define TYPE_WATCHDOG (watchdog_get_type ())
19#define WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG, Watchdog))
20#define IS_WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG))
21#define WATCHDOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_WATCHDOG, WatchdogIface))
22
23struct _Watchdog;
24typedef struct _Watchdog Watchdog;
25typedef struct _WatchdogIface WatchdogIface;
26
27struct _WatchdogIface
28{
29 GTypeInterface parent_iface;
30
31
32
33 gboolean (*handle_poke) (
34 Watchdog *object,
35 GDBusMethodInvocation *invocation);
36
37 gboolean (*handle_start) (
38 Watchdog *object,
39 GDBusMethodInvocation *invocation);
40
41 gboolean (*handle_stop) (
42 Watchdog *object,
43 GDBusMethodInvocation *invocation);
44
45 gint (*get_poll_interval) (Watchdog *object);
46
47 gint (*get_watchdog) (Watchdog *object);
48
49 void (*watchdog_error) (
50 Watchdog *object);
51
52};
53
54GType watchdog_get_type (void) G_GNUC_CONST;
55
56GDBusInterfaceInfo *watchdog_interface_info (void);
57guint watchdog_override_properties (GObjectClass *klass, guint property_id_begin);
58
59
60/* D-Bus method call completion functions: */
61void watchdog_complete_start (
62 Watchdog *object,
63 GDBusMethodInvocation *invocation);
64
65void watchdog_complete_poke (
66 Watchdog *object,
67 GDBusMethodInvocation *invocation);
68
69void watchdog_complete_stop (
70 Watchdog *object,
71 GDBusMethodInvocation *invocation);
72
73
74
75/* D-Bus signal emissions functions: */
76void watchdog_emit_watchdog_error (
77 Watchdog *object);
78
79
80
81/* D-Bus method calls: */
82void watchdog_call_start (
83 Watchdog *proxy,
84 GCancellable *cancellable,
85 GAsyncReadyCallback callback,
86 gpointer user_data);
87
88gboolean watchdog_call_start_finish (
89 Watchdog *proxy,
90 GAsyncResult *res,
91 GError **error);
92
93gboolean watchdog_call_start_sync (
94 Watchdog *proxy,
95 GCancellable *cancellable,
96 GError **error);
97
98void watchdog_call_poke (
99 Watchdog *proxy,
100 GCancellable *cancellable,
101 GAsyncReadyCallback callback,
102 gpointer user_data);
103
104gboolean watchdog_call_poke_finish (
105 Watchdog *proxy,
106 GAsyncResult *res,
107 GError **error);
108
109gboolean watchdog_call_poke_sync (
110 Watchdog *proxy,
111 GCancellable *cancellable,
112 GError **error);
113
114void watchdog_call_stop (
115 Watchdog *proxy,
116 GCancellable *cancellable,
117 GAsyncReadyCallback callback,
118 gpointer user_data);
119
120gboolean watchdog_call_stop_finish (
121 Watchdog *proxy,
122 GAsyncResult *res,
123 GError **error);
124
125gboolean watchdog_call_stop_sync (
126 Watchdog *proxy,
127 GCancellable *cancellable,
128 GError **error);
129
130
131
132/* D-Bus property accessors: */
133gint watchdog_get_watchdog (Watchdog *object);
134void watchdog_set_watchdog (Watchdog *object, gint value);
135
136gint watchdog_get_poll_interval (Watchdog *object);
137void watchdog_set_poll_interval (Watchdog *object, gint value);
138
139
140/* ---- */
141
142#define TYPE_WATCHDOG_PROXY (watchdog_proxy_get_type ())
143#define WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_PROXY, WatchdogProxy))
144#define WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_PROXY, WatchdogProxyClass))
145#define WATCHDOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_PROXY, WatchdogProxyClass))
146#define IS_WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_PROXY))
147#define IS_WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_PROXY))
148
149typedef struct _WatchdogProxy WatchdogProxy;
150typedef struct _WatchdogProxyClass WatchdogProxyClass;
151typedef struct _WatchdogProxyPrivate WatchdogProxyPrivate;
152
153struct _WatchdogProxy
154{
155 /*< private >*/
156 GDBusProxy parent_instance;
157 WatchdogProxyPrivate *priv;
158};
159
160struct _WatchdogProxyClass
161{
162 GDBusProxyClass parent_class;
163};
164
165GType watchdog_proxy_get_type (void) G_GNUC_CONST;
166
167void watchdog_proxy_new (
168 GDBusConnection *connection,
169 GDBusProxyFlags flags,
170 const gchar *name,
171 const gchar *object_path,
172 GCancellable *cancellable,
173 GAsyncReadyCallback callback,
174 gpointer user_data);
175Watchdog *watchdog_proxy_new_finish (
176 GAsyncResult *res,
177 GError **error);
178Watchdog *watchdog_proxy_new_sync (
179 GDBusConnection *connection,
180 GDBusProxyFlags flags,
181 const gchar *name,
182 const gchar *object_path,
183 GCancellable *cancellable,
184 GError **error);
185
186void watchdog_proxy_new_for_bus (
187 GBusType bus_type,
188 GDBusProxyFlags flags,
189 const gchar *name,
190 const gchar *object_path,
191 GCancellable *cancellable,
192 GAsyncReadyCallback callback,
193 gpointer user_data);
194Watchdog *watchdog_proxy_new_for_bus_finish (
195 GAsyncResult *res,
196 GError **error);
197Watchdog *watchdog_proxy_new_for_bus_sync (
198 GBusType bus_type,
199 GDBusProxyFlags flags,
200 const gchar *name,
201 const gchar *object_path,
202 GCancellable *cancellable,
203 GError **error);
204
205
206/* ---- */
207
208#define TYPE_WATCHDOG_SKELETON (watchdog_skeleton_get_type ())
209#define WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeleton))
210#define WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass))
211#define WATCHDOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass))
212#define IS_WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_SKELETON))
213#define IS_WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_SKELETON))
214
215typedef struct _WatchdogSkeleton WatchdogSkeleton;
216typedef struct _WatchdogSkeletonClass WatchdogSkeletonClass;
217typedef struct _WatchdogSkeletonPrivate WatchdogSkeletonPrivate;
218
219struct _WatchdogSkeleton
220{
221 /*< private >*/
222 GDBusInterfaceSkeleton parent_instance;
223 WatchdogSkeletonPrivate *priv;
224};
225
226struct _WatchdogSkeletonClass
227{
228 GDBusInterfaceSkeletonClass parent_class;
229};
230
231GType watchdog_skeleton_get_type (void) G_GNUC_CONST;
232
233Watchdog *watchdog_skeleton_new (void);
234
235
236/* ---- */
237
238#define TYPE_OBJECT (object_get_type ())
239#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
240#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
241#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
242
243struct _Object;
244typedef struct _Object Object;
245typedef struct _ObjectIface ObjectIface;
246
247struct _ObjectIface
248{
249 GTypeInterface parent_iface;
250};
251
252GType object_get_type (void) G_GNUC_CONST;
253
254Watchdog *object_get_watchdog (Object *object);
255Watchdog *object_peek_watchdog (Object *object);
256
257#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
258#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
259#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
260#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
261#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
262#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
263
264typedef struct _ObjectProxy ObjectProxy;
265typedef struct _ObjectProxyClass ObjectProxyClass;
266typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
267
268struct _ObjectProxy
269{
270 /*< private >*/
271 GDBusObjectProxy parent_instance;
272 ObjectProxyPrivate *priv;
273};
274
275struct _ObjectProxyClass
276{
277 GDBusObjectProxyClass parent_class;
278};
279
280GType object_proxy_get_type (void) G_GNUC_CONST;
281ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
282
283#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
284#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
285#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
286#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
287#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
288#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
289
290typedef struct _ObjectSkeleton ObjectSkeleton;
291typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
292typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
293
294struct _ObjectSkeleton
295{
296 /*< private >*/
297 GDBusObjectSkeleton parent_instance;
298 ObjectSkeletonPrivate *priv;
299};
300
301struct _ObjectSkeletonClass
302{
303 GDBusObjectSkeletonClass parent_class;
304};
305
306GType object_skeleton_get_type (void) G_GNUC_CONST;
307ObjectSkeleton *object_skeleton_new (const gchar *object_path);
308void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_);
309
310/* ---- */
311
312#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
313#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
314#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
315#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
316#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
317#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
318
319typedef struct _ObjectManagerClient ObjectManagerClient;
320typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
321typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
322
323struct _ObjectManagerClient
324{
325 /*< private >*/
326 GDBusObjectManagerClient parent_instance;
327 ObjectManagerClientPrivate *priv;
328};
329
330struct _ObjectManagerClientClass
331{
332 GDBusObjectManagerClientClass parent_class;
333};
334
335GType object_manager_client_get_type (void) G_GNUC_CONST;
336
337GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
338
339void object_manager_client_new (
340 GDBusConnection *connection,
341 GDBusObjectManagerClientFlags flags,
342 const gchar *name,
343 const gchar *object_path,
344 GCancellable *cancellable,
345 GAsyncReadyCallback callback,
346 gpointer user_data);
347GDBusObjectManager *object_manager_client_new_finish (
348 GAsyncResult *res,
349 GError **error);
350GDBusObjectManager *object_manager_client_new_sync (
351 GDBusConnection *connection,
352 GDBusObjectManagerClientFlags flags,
353 const gchar *name,
354 const gchar *object_path,
355 GCancellable *cancellable,
356 GError **error);
357
358void object_manager_client_new_for_bus (
359 GBusType bus_type,
360 GDBusObjectManagerClientFlags flags,
361 const gchar *name,
362 const gchar *object_path,
363 GCancellable *cancellable,
364 GAsyncReadyCallback callback,
365 gpointer user_data);
366GDBusObjectManager *object_manager_client_new_for_bus_finish (
367 GAsyncResult *res,
368 GError **error);
369GDBusObjectManager *object_manager_client_new_for_bus_sync (
370 GBusType bus_type,
371 GDBusObjectManagerClientFlags flags,
372 const gchar *name,
373 const gchar *object_path,
374 GCancellable *cancellable,
375 GError **error);
376
377
378G_END_DECLS
379
380#endif /* __INTERFACES_WATCHDOG_H__ */