blob: e0c2f1efce64b56cd6f89d096a6c9b9df31e3068 [file] [log] [blame]
Norman Jamesfa2e76e2015-08-26 17:41:20 -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_CONTROL_HOST_H__
8#define __INTERFACES_CONTROL_HOST_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.openbmc.control.Host */
17
18#define TYPE_CONTROL_HOST (control_host_get_type ())
19#define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost))
20#define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST))
21#define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface))
22
23struct _ControlHost;
24typedef struct _ControlHost ControlHost;
25typedef struct _ControlHostIface ControlHostIface;
26
27struct _ControlHostIface
28{
29 GTypeInterface parent_iface;
30
31
32 gboolean (*handle_boot) (
33 ControlHost *object,
34 GDBusMethodInvocation *invocation);
35
36 gboolean (*handle_reboot) (
37 ControlHost *object,
38 GDBusMethodInvocation *invocation);
39
40 gboolean (*handle_shutdown) (
41 ControlHost *object,
42 GDBusMethodInvocation *invocation);
43
44 void (*booted) (
45 ControlHost *object);
46
47};
48
49GType control_host_get_type (void) G_GNUC_CONST;
50
51GDBusInterfaceInfo *control_host_interface_info (void);
52guint control_host_override_properties (GObjectClass *klass, guint property_id_begin);
53
54
55/* D-Bus method call completion functions: */
56void control_host_complete_boot (
57 ControlHost *object,
58 GDBusMethodInvocation *invocation);
59
60void control_host_complete_shutdown (
61 ControlHost *object,
62 GDBusMethodInvocation *invocation);
63
64void control_host_complete_reboot (
65 ControlHost *object,
66 GDBusMethodInvocation *invocation);
67
68
69
70/* D-Bus signal emissions functions: */
71void control_host_emit_booted (
72 ControlHost *object);
73
74
75
76/* D-Bus method calls: */
77void control_host_call_boot (
78 ControlHost *proxy,
79 GCancellable *cancellable,
80 GAsyncReadyCallback callback,
81 gpointer user_data);
82
83gboolean control_host_call_boot_finish (
84 ControlHost *proxy,
85 GAsyncResult *res,
86 GError **error);
87
88gboolean control_host_call_boot_sync (
89 ControlHost *proxy,
90 GCancellable *cancellable,
91 GError **error);
92
93void control_host_call_shutdown (
94 ControlHost *proxy,
95 GCancellable *cancellable,
96 GAsyncReadyCallback callback,
97 gpointer user_data);
98
99gboolean control_host_call_shutdown_finish (
100 ControlHost *proxy,
101 GAsyncResult *res,
102 GError **error);
103
104gboolean control_host_call_shutdown_sync (
105 ControlHost *proxy,
106 GCancellable *cancellable,
107 GError **error);
108
109void control_host_call_reboot (
110 ControlHost *proxy,
111 GCancellable *cancellable,
112 GAsyncReadyCallback callback,
113 gpointer user_data);
114
115gboolean control_host_call_reboot_finish (
116 ControlHost *proxy,
117 GAsyncResult *res,
118 GError **error);
119
120gboolean control_host_call_reboot_sync (
121 ControlHost *proxy,
122 GCancellable *cancellable,
123 GError **error);
124
125
126
127/* ---- */
128
129#define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ())
130#define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy))
131#define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass))
132#define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass))
133#define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY))
134#define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY))
135
136typedef struct _ControlHostProxy ControlHostProxy;
137typedef struct _ControlHostProxyClass ControlHostProxyClass;
138typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate;
139
140struct _ControlHostProxy
141{
142 /*< private >*/
143 GDBusProxy parent_instance;
144 ControlHostProxyPrivate *priv;
145};
146
147struct _ControlHostProxyClass
148{
149 GDBusProxyClass parent_class;
150};
151
152GType control_host_proxy_get_type (void) G_GNUC_CONST;
153
154void control_host_proxy_new (
155 GDBusConnection *connection,
156 GDBusProxyFlags flags,
157 const gchar *name,
158 const gchar *object_path,
159 GCancellable *cancellable,
160 GAsyncReadyCallback callback,
161 gpointer user_data);
162ControlHost *control_host_proxy_new_finish (
163 GAsyncResult *res,
164 GError **error);
165ControlHost *control_host_proxy_new_sync (
166 GDBusConnection *connection,
167 GDBusProxyFlags flags,
168 const gchar *name,
169 const gchar *object_path,
170 GCancellable *cancellable,
171 GError **error);
172
173void control_host_proxy_new_for_bus (
174 GBusType bus_type,
175 GDBusProxyFlags flags,
176 const gchar *name,
177 const gchar *object_path,
178 GCancellable *cancellable,
179 GAsyncReadyCallback callback,
180 gpointer user_data);
181ControlHost *control_host_proxy_new_for_bus_finish (
182 GAsyncResult *res,
183 GError **error);
184ControlHost *control_host_proxy_new_for_bus_sync (
185 GBusType bus_type,
186 GDBusProxyFlags flags,
187 const gchar *name,
188 const gchar *object_path,
189 GCancellable *cancellable,
190 GError **error);
191
192
193/* ---- */
194
195#define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ())
196#define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton))
197#define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass))
198#define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass))
199#define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON))
200#define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON))
201
202typedef struct _ControlHostSkeleton ControlHostSkeleton;
203typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass;
204typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate;
205
206struct _ControlHostSkeleton
207{
208 /*< private >*/
209 GDBusInterfaceSkeleton parent_instance;
210 ControlHostSkeletonPrivate *priv;
211};
212
213struct _ControlHostSkeletonClass
214{
215 GDBusInterfaceSkeletonClass parent_class;
216};
217
218GType control_host_skeleton_get_type (void) G_GNUC_CONST;
219
220ControlHost *control_host_skeleton_new (void);
221
222
223/* ---- */
224
225#define TYPE_OBJECT (object_get_type ())
226#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
227#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
228#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
229
230struct _Object;
231typedef struct _Object Object;
232typedef struct _ObjectIface ObjectIface;
233
234struct _ObjectIface
235{
236 GTypeInterface parent_iface;
237};
238
239GType object_get_type (void) G_GNUC_CONST;
240
241ControlHost *object_get_control_host (Object *object);
242ControlHost *object_peek_control_host (Object *object);
243
244#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
245#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
246#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
247#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
248#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
249#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
250
251typedef struct _ObjectProxy ObjectProxy;
252typedef struct _ObjectProxyClass ObjectProxyClass;
253typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
254
255struct _ObjectProxy
256{
257 /*< private >*/
258 GDBusObjectProxy parent_instance;
259 ObjectProxyPrivate *priv;
260};
261
262struct _ObjectProxyClass
263{
264 GDBusObjectProxyClass parent_class;
265};
266
267GType object_proxy_get_type (void) G_GNUC_CONST;
268ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
269
270#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
271#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
272#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
273#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
274#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
275#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
276
277typedef struct _ObjectSkeleton ObjectSkeleton;
278typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
279typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
280
281struct _ObjectSkeleton
282{
283 /*< private >*/
284 GDBusObjectSkeleton parent_instance;
285 ObjectSkeletonPrivate *priv;
286};
287
288struct _ObjectSkeletonClass
289{
290 GDBusObjectSkeletonClass parent_class;
291};
292
293GType object_skeleton_get_type (void) G_GNUC_CONST;
294ObjectSkeleton *object_skeleton_new (const gchar *object_path);
295void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_);
296
297/* ---- */
298
299#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
300#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
301#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
302#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
303#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
304#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
305
306typedef struct _ObjectManagerClient ObjectManagerClient;
307typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
308typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
309
310struct _ObjectManagerClient
311{
312 /*< private >*/
313 GDBusObjectManagerClient parent_instance;
314 ObjectManagerClientPrivate *priv;
315};
316
317struct _ObjectManagerClientClass
318{
319 GDBusObjectManagerClientClass parent_class;
320};
321
322GType object_manager_client_get_type (void) G_GNUC_CONST;
323
324GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
325
326void object_manager_client_new (
327 GDBusConnection *connection,
328 GDBusObjectManagerClientFlags flags,
329 const gchar *name,
330 const gchar *object_path,
331 GCancellable *cancellable,
332 GAsyncReadyCallback callback,
333 gpointer user_data);
334GDBusObjectManager *object_manager_client_new_finish (
335 GAsyncResult *res,
336 GError **error);
337GDBusObjectManager *object_manager_client_new_sync (
338 GDBusConnection *connection,
339 GDBusObjectManagerClientFlags flags,
340 const gchar *name,
341 const gchar *object_path,
342 GCancellable *cancellable,
343 GError **error);
344
345void object_manager_client_new_for_bus (
346 GBusType bus_type,
347 GDBusObjectManagerClientFlags flags,
348 const gchar *name,
349 const gchar *object_path,
350 GCancellable *cancellable,
351 GAsyncReadyCallback callback,
352 gpointer user_data);
353GDBusObjectManager *object_manager_client_new_for_bus_finish (
354 GAsyncResult *res,
355 GError **error);
356GDBusObjectManager *object_manager_client_new_for_bus_sync (
357 GBusType bus_type,
358 GDBusObjectManagerClientFlags flags,
359 const gchar *name,
360 const gchar *object_path,
361 GCancellable *cancellable,
362 GError **error);
363
364
365G_END_DECLS
366
367#endif /* __INTERFACES_CONTROL_HOST_H__ */