blob: ccbd7cfe29f9d89b9a238893d5ece42117372fb9 [file] [log] [blame]
Norman Jamese2765102015-08-19 22:00:55 -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_HOST_CONTROL_H__
8#define __INTERFACES_HOST_CONTROL_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.openbmc.HostControl */
17
18#define TYPE_HOST_CONTROL (host_control_get_type ())
19#define HOST_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL, HostControl))
20#define IS_HOST_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL))
21#define HOST_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOST_CONTROL, HostControlIface))
22
23struct _HostControl;
24typedef struct _HostControl HostControl;
25typedef struct _HostControlIface HostControlIface;
26
27struct _HostControlIface
28{
29 GTypeInterface parent_iface;
30
31
32 gboolean (*handle_boot) (
33 HostControl *object,
34 GDBusMethodInvocation *invocation);
35
36 gboolean (*handle_shutdown) (
37 HostControl *object,
38 GDBusMethodInvocation *invocation);
39
40 void (*booted) (
41 HostControl *object);
42
43};
44
45GType host_control_get_type (void) G_GNUC_CONST;
46
47GDBusInterfaceInfo *host_control_interface_info (void);
48guint host_control_override_properties (GObjectClass *klass, guint property_id_begin);
49
50
51/* D-Bus method call completion functions: */
52void host_control_complete_boot (
53 HostControl *object,
54 GDBusMethodInvocation *invocation);
55
56void host_control_complete_shutdown (
57 HostControl *object,
58 GDBusMethodInvocation *invocation);
59
60
61
62/* D-Bus signal emissions functions: */
63void host_control_emit_booted (
64 HostControl *object);
65
66
67
68/* D-Bus method calls: */
69void host_control_call_boot (
70 HostControl *proxy,
71 GCancellable *cancellable,
72 GAsyncReadyCallback callback,
73 gpointer user_data);
74
75gboolean host_control_call_boot_finish (
76 HostControl *proxy,
77 GAsyncResult *res,
78 GError **error);
79
80gboolean host_control_call_boot_sync (
81 HostControl *proxy,
82 GCancellable *cancellable,
83 GError **error);
84
85void host_control_call_shutdown (
86 HostControl *proxy,
87 GCancellable *cancellable,
88 GAsyncReadyCallback callback,
89 gpointer user_data);
90
91gboolean host_control_call_shutdown_finish (
92 HostControl *proxy,
93 GAsyncResult *res,
94 GError **error);
95
96gboolean host_control_call_shutdown_sync (
97 HostControl *proxy,
98 GCancellable *cancellable,
99 GError **error);
100
101
102
103/* ---- */
104
105#define TYPE_HOST_CONTROL_PROXY (host_control_proxy_get_type ())
106#define HOST_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL_PROXY, HostControlProxy))
107#define HOST_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_CONTROL_PROXY, HostControlProxyClass))
108#define HOST_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_CONTROL_PROXY, HostControlProxyClass))
109#define IS_HOST_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL_PROXY))
110#define IS_HOST_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_CONTROL_PROXY))
111
112typedef struct _HostControlProxy HostControlProxy;
113typedef struct _HostControlProxyClass HostControlProxyClass;
114typedef struct _HostControlProxyPrivate HostControlProxyPrivate;
115
116struct _HostControlProxy
117{
118 /*< private >*/
119 GDBusProxy parent_instance;
120 HostControlProxyPrivate *priv;
121};
122
123struct _HostControlProxyClass
124{
125 GDBusProxyClass parent_class;
126};
127
128GType host_control_proxy_get_type (void) G_GNUC_CONST;
129
130void host_control_proxy_new (
131 GDBusConnection *connection,
132 GDBusProxyFlags flags,
133 const gchar *name,
134 const gchar *object_path,
135 GCancellable *cancellable,
136 GAsyncReadyCallback callback,
137 gpointer user_data);
138HostControl *host_control_proxy_new_finish (
139 GAsyncResult *res,
140 GError **error);
141HostControl *host_control_proxy_new_sync (
142 GDBusConnection *connection,
143 GDBusProxyFlags flags,
144 const gchar *name,
145 const gchar *object_path,
146 GCancellable *cancellable,
147 GError **error);
148
149void host_control_proxy_new_for_bus (
150 GBusType bus_type,
151 GDBusProxyFlags flags,
152 const gchar *name,
153 const gchar *object_path,
154 GCancellable *cancellable,
155 GAsyncReadyCallback callback,
156 gpointer user_data);
157HostControl *host_control_proxy_new_for_bus_finish (
158 GAsyncResult *res,
159 GError **error);
160HostControl *host_control_proxy_new_for_bus_sync (
161 GBusType bus_type,
162 GDBusProxyFlags flags,
163 const gchar *name,
164 const gchar *object_path,
165 GCancellable *cancellable,
166 GError **error);
167
168
169/* ---- */
170
171#define TYPE_HOST_CONTROL_SKELETON (host_control_skeleton_get_type ())
172#define HOST_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL_SKELETON, HostControlSkeleton))
173#define HOST_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_CONTROL_SKELETON, HostControlSkeletonClass))
174#define HOST_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_CONTROL_SKELETON, HostControlSkeletonClass))
175#define IS_HOST_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL_SKELETON))
176#define IS_HOST_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_CONTROL_SKELETON))
177
178typedef struct _HostControlSkeleton HostControlSkeleton;
179typedef struct _HostControlSkeletonClass HostControlSkeletonClass;
180typedef struct _HostControlSkeletonPrivate HostControlSkeletonPrivate;
181
182struct _HostControlSkeleton
183{
184 /*< private >*/
185 GDBusInterfaceSkeleton parent_instance;
186 HostControlSkeletonPrivate *priv;
187};
188
189struct _HostControlSkeletonClass
190{
191 GDBusInterfaceSkeletonClass parent_class;
192};
193
194GType host_control_skeleton_get_type (void) G_GNUC_CONST;
195
196HostControl *host_control_skeleton_new (void);
197
198
199/* ---- */
200
201#define TYPE_OBJECT (object_get_type ())
202#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
203#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
204#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
205
206struct _Object;
207typedef struct _Object Object;
208typedef struct _ObjectIface ObjectIface;
209
210struct _ObjectIface
211{
212 GTypeInterface parent_iface;
213};
214
215GType object_get_type (void) G_GNUC_CONST;
216
217HostControl *object_get_host_control (Object *object);
218HostControl *object_peek_host_control (Object *object);
219
220#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
221#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
222#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
223#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
224#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
225#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
226
227typedef struct _ObjectProxy ObjectProxy;
228typedef struct _ObjectProxyClass ObjectProxyClass;
229typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
230
231struct _ObjectProxy
232{
233 /*< private >*/
234 GDBusObjectProxy parent_instance;
235 ObjectProxyPrivate *priv;
236};
237
238struct _ObjectProxyClass
239{
240 GDBusObjectProxyClass parent_class;
241};
242
243GType object_proxy_get_type (void) G_GNUC_CONST;
244ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
245
246#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
247#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
248#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
249#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
250#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
251#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
252
253typedef struct _ObjectSkeleton ObjectSkeleton;
254typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
255typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
256
257struct _ObjectSkeleton
258{
259 /*< private >*/
260 GDBusObjectSkeleton parent_instance;
261 ObjectSkeletonPrivate *priv;
262};
263
264struct _ObjectSkeletonClass
265{
266 GDBusObjectSkeletonClass parent_class;
267};
268
269GType object_skeleton_get_type (void) G_GNUC_CONST;
270ObjectSkeleton *object_skeleton_new (const gchar *object_path);
271void object_skeleton_set_host_control (ObjectSkeleton *object, HostControl *interface_);
272
273/* ---- */
274
275#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
276#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
277#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
278#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
279#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
280#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
281
282typedef struct _ObjectManagerClient ObjectManagerClient;
283typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
284typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
285
286struct _ObjectManagerClient
287{
288 /*< private >*/
289 GDBusObjectManagerClient parent_instance;
290 ObjectManagerClientPrivate *priv;
291};
292
293struct _ObjectManagerClientClass
294{
295 GDBusObjectManagerClientClass parent_class;
296};
297
298GType object_manager_client_get_type (void) G_GNUC_CONST;
299
300GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
301
302void object_manager_client_new (
303 GDBusConnection *connection,
304 GDBusObjectManagerClientFlags flags,
305 const gchar *name,
306 const gchar *object_path,
307 GCancellable *cancellable,
308 GAsyncReadyCallback callback,
309 gpointer user_data);
310GDBusObjectManager *object_manager_client_new_finish (
311 GAsyncResult *res,
312 GError **error);
313GDBusObjectManager *object_manager_client_new_sync (
314 GDBusConnection *connection,
315 GDBusObjectManagerClientFlags flags,
316 const gchar *name,
317 const gchar *object_path,
318 GCancellable *cancellable,
319 GError **error);
320
321void object_manager_client_new_for_bus (
322 GBusType bus_type,
323 GDBusObjectManagerClientFlags flags,
324 const gchar *name,
325 const gchar *object_path,
326 GCancellable *cancellable,
327 GAsyncReadyCallback callback,
328 gpointer user_data);
329GDBusObjectManager *object_manager_client_new_for_bus_finish (
330 GAsyncResult *res,
331 GError **error);
332GDBusObjectManager *object_manager_client_new_for_bus_sync (
333 GBusType bus_type,
334 GDBusObjectManagerClientFlags flags,
335 const gchar *name,
336 const gchar *object_path,
337 GCancellable *cancellable,
338 GError **error);
339
340
341G_END_DECLS
342
343#endif /* __INTERFACES_HOST_CONTROL_H__ */