blob: 9fd88ff2ee9ab9fcf44e47188d088585ac5e5a7e [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_FLASH_H__
8#define __INTERFACES_FLASH_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.openbmc.Flash */
17
18#define TYPE_FLASH (flash_get_type ())
19#define FLASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH, Flash))
20#define IS_FLASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH))
21#define FLASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH, FlashIface))
22
23struct _Flash;
24typedef struct _Flash Flash;
25typedef struct _FlashIface FlashIface;
26
27struct _FlashIface
28{
29 GTypeInterface parent_iface;
30
31
32 gboolean (*handle_erase) (
33 Flash *object,
34 GDBusMethodInvocation *invocation);
35
36 gboolean (*handle_init) (
37 Flash *object,
38 GDBusMethodInvocation *invocation);
39
40 gboolean (*handle_update_via_file) (
41 Flash *object,
42 GDBusMethodInvocation *invocation,
43 const gchar *arg_file);
44
45 gboolean (*handle_update_via_http) (
46 Flash *object,
47 GDBusMethodInvocation *invocation,
48 const gchar *arg_url);
49
50 void (*updated) (
51 Flash *object);
52
53};
54
55GType flash_get_type (void) G_GNUC_CONST;
56
57GDBusInterfaceInfo *flash_interface_info (void);
58guint flash_override_properties (GObjectClass *klass, guint property_id_begin);
59
60
61/* D-Bus method call completion functions: */
62void flash_complete_update_via_file (
63 Flash *object,
64 GDBusMethodInvocation *invocation);
65
66void flash_complete_update_via_http (
67 Flash *object,
68 GDBusMethodInvocation *invocation);
69
70void flash_complete_erase (
71 Flash *object,
72 GDBusMethodInvocation *invocation);
73
74void flash_complete_init (
75 Flash *object,
76 GDBusMethodInvocation *invocation);
77
78
79
80/* D-Bus signal emissions functions: */
81void flash_emit_updated (
82 Flash *object);
83
84
85
86/* D-Bus method calls: */
87void flash_call_update_via_file (
88 Flash *proxy,
89 const gchar *arg_file,
90 GCancellable *cancellable,
91 GAsyncReadyCallback callback,
92 gpointer user_data);
93
94gboolean flash_call_update_via_file_finish (
95 Flash *proxy,
96 GAsyncResult *res,
97 GError **error);
98
99gboolean flash_call_update_via_file_sync (
100 Flash *proxy,
101 const gchar *arg_file,
102 GCancellable *cancellable,
103 GError **error);
104
105void flash_call_update_via_http (
106 Flash *proxy,
107 const gchar *arg_url,
108 GCancellable *cancellable,
109 GAsyncReadyCallback callback,
110 gpointer user_data);
111
112gboolean flash_call_update_via_http_finish (
113 Flash *proxy,
114 GAsyncResult *res,
115 GError **error);
116
117gboolean flash_call_update_via_http_sync (
118 Flash *proxy,
119 const gchar *arg_url,
120 GCancellable *cancellable,
121 GError **error);
122
123void flash_call_erase (
124 Flash *proxy,
125 GCancellable *cancellable,
126 GAsyncReadyCallback callback,
127 gpointer user_data);
128
129gboolean flash_call_erase_finish (
130 Flash *proxy,
131 GAsyncResult *res,
132 GError **error);
133
134gboolean flash_call_erase_sync (
135 Flash *proxy,
136 GCancellable *cancellable,
137 GError **error);
138
139void flash_call_init (
140 Flash *proxy,
141 GCancellable *cancellable,
142 GAsyncReadyCallback callback,
143 gpointer user_data);
144
145gboolean flash_call_init_finish (
146 Flash *proxy,
147 GAsyncResult *res,
148 GError **error);
149
150gboolean flash_call_init_sync (
151 Flash *proxy,
152 GCancellable *cancellable,
153 GError **error);
154
155
156
157/* ---- */
158
159#define TYPE_FLASH_PROXY (flash_proxy_get_type ())
160#define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy))
161#define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass))
162#define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass))
163#define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY))
164#define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY))
165
166typedef struct _FlashProxy FlashProxy;
167typedef struct _FlashProxyClass FlashProxyClass;
168typedef struct _FlashProxyPrivate FlashProxyPrivate;
169
170struct _FlashProxy
171{
172 /*< private >*/
173 GDBusProxy parent_instance;
174 FlashProxyPrivate *priv;
175};
176
177struct _FlashProxyClass
178{
179 GDBusProxyClass parent_class;
180};
181
182GType flash_proxy_get_type (void) G_GNUC_CONST;
183
184void flash_proxy_new (
185 GDBusConnection *connection,
186 GDBusProxyFlags flags,
187 const gchar *name,
188 const gchar *object_path,
189 GCancellable *cancellable,
190 GAsyncReadyCallback callback,
191 gpointer user_data);
192Flash *flash_proxy_new_finish (
193 GAsyncResult *res,
194 GError **error);
195Flash *flash_proxy_new_sync (
196 GDBusConnection *connection,
197 GDBusProxyFlags flags,
198 const gchar *name,
199 const gchar *object_path,
200 GCancellable *cancellable,
201 GError **error);
202
203void flash_proxy_new_for_bus (
204 GBusType bus_type,
205 GDBusProxyFlags flags,
206 const gchar *name,
207 const gchar *object_path,
208 GCancellable *cancellable,
209 GAsyncReadyCallback callback,
210 gpointer user_data);
211Flash *flash_proxy_new_for_bus_finish (
212 GAsyncResult *res,
213 GError **error);
214Flash *flash_proxy_new_for_bus_sync (
215 GBusType bus_type,
216 GDBusProxyFlags flags,
217 const gchar *name,
218 const gchar *object_path,
219 GCancellable *cancellable,
220 GError **error);
221
222
223/* ---- */
224
225#define TYPE_FLASH_SKELETON (flash_skeleton_get_type ())
226#define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton))
227#define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass))
228#define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass))
229#define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON))
230#define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON))
231
232typedef struct _FlashSkeleton FlashSkeleton;
233typedef struct _FlashSkeletonClass FlashSkeletonClass;
234typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate;
235
236struct _FlashSkeleton
237{
238 /*< private >*/
239 GDBusInterfaceSkeleton parent_instance;
240 FlashSkeletonPrivate *priv;
241};
242
243struct _FlashSkeletonClass
244{
245 GDBusInterfaceSkeletonClass parent_class;
246};
247
248GType flash_skeleton_get_type (void) G_GNUC_CONST;
249
250Flash *flash_skeleton_new (void);
251
252
253/* ---- */
254
255#define TYPE_OBJECT (object_get_type ())
256#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
257#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
258#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
259
260struct _Object;
261typedef struct _Object Object;
262typedef struct _ObjectIface ObjectIface;
263
264struct _ObjectIface
265{
266 GTypeInterface parent_iface;
267};
268
269GType object_get_type (void) G_GNUC_CONST;
270
271Flash *object_get_flash (Object *object);
272Flash *object_peek_flash (Object *object);
273
274#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
275#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
276#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
277#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
278#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
279#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
280
281typedef struct _ObjectProxy ObjectProxy;
282typedef struct _ObjectProxyClass ObjectProxyClass;
283typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
284
285struct _ObjectProxy
286{
287 /*< private >*/
288 GDBusObjectProxy parent_instance;
289 ObjectProxyPrivate *priv;
290};
291
292struct _ObjectProxyClass
293{
294 GDBusObjectProxyClass parent_class;
295};
296
297GType object_proxy_get_type (void) G_GNUC_CONST;
298ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
299
300#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
301#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
302#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
303#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
304#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
305#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
306
307typedef struct _ObjectSkeleton ObjectSkeleton;
308typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
309typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
310
311struct _ObjectSkeleton
312{
313 /*< private >*/
314 GDBusObjectSkeleton parent_instance;
315 ObjectSkeletonPrivate *priv;
316};
317
318struct _ObjectSkeletonClass
319{
320 GDBusObjectSkeletonClass parent_class;
321};
322
323GType object_skeleton_get_type (void) G_GNUC_CONST;
324ObjectSkeleton *object_skeleton_new (const gchar *object_path);
325void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_);
326
327/* ---- */
328
329#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
330#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
331#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
332#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
333#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
334#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
335
336typedef struct _ObjectManagerClient ObjectManagerClient;
337typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
338typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
339
340struct _ObjectManagerClient
341{
342 /*< private >*/
343 GDBusObjectManagerClient parent_instance;
344 ObjectManagerClientPrivate *priv;
345};
346
347struct _ObjectManagerClientClass
348{
349 GDBusObjectManagerClientClass parent_class;
350};
351
352GType object_manager_client_get_type (void) G_GNUC_CONST;
353
354GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
355
356void object_manager_client_new (
357 GDBusConnection *connection,
358 GDBusObjectManagerClientFlags flags,
359 const gchar *name,
360 const gchar *object_path,
361 GCancellable *cancellable,
362 GAsyncReadyCallback callback,
363 gpointer user_data);
364GDBusObjectManager *object_manager_client_new_finish (
365 GAsyncResult *res,
366 GError **error);
367GDBusObjectManager *object_manager_client_new_sync (
368 GDBusConnection *connection,
369 GDBusObjectManagerClientFlags flags,
370 const gchar *name,
371 const gchar *object_path,
372 GCancellable *cancellable,
373 GError **error);
374
375void object_manager_client_new_for_bus (
376 GBusType bus_type,
377 GDBusObjectManagerClientFlags flags,
378 const gchar *name,
379 const gchar *object_path,
380 GCancellable *cancellable,
381 GAsyncReadyCallback callback,
382 gpointer user_data);
383GDBusObjectManager *object_manager_client_new_for_bus_finish (
384 GAsyncResult *res,
385 GError **error);
386GDBusObjectManager *object_manager_client_new_for_bus_sync (
387 GBusType bus_type,
388 GDBusObjectManagerClientFlags flags,
389 const gchar *name,
390 const gchar *object_path,
391 GCancellable *cancellable,
392 GError **error);
393
394
395G_END_DECLS
396
397#endif /* __INTERFACES_FLASH_H__ */