blob: 78c7bd5b8df8da2521850ee3af8c78212570c6fb [file] [log] [blame]
Norman Jamesce46e3e2015-08-30 22:25: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_CONTROL_H__
8#define __INTERFACES_CONTROL_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.openbmc.Control */
17
18#define TYPE_CONTROL (control_get_type ())
19#define CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL, Control))
20#define IS_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL))
21#define CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL, ControlIface))
22
23struct _Control;
24typedef struct _Control Control;
25typedef struct _ControlIface ControlIface;
26
27struct _ControlIface
28{
29 GTypeInterface parent_iface;
30
31
32
Norman James9e6acf92015-09-08 07:00:04 -050033 gboolean (*handle_init) (
Norman Jamesce46e3e2015-08-30 22:25:55 -050034 Control *object,
Norman James9e6acf92015-09-08 07:00:04 -050035 GDBusMethodInvocation *invocation);
Norman Jamesce46e3e2015-08-30 22:25:55 -050036
37 gint (*get_heatbeat) (Control *object);
38
39 gint (*get_poll_interval) (Control *object);
40
41 void (*heartbeat) (
42 Control *object,
43 const gchar *arg_bus_name);
44
45};
46
47GType control_get_type (void) G_GNUC_CONST;
48
49GDBusInterfaceInfo *control_interface_info (void);
50guint control_override_properties (GObjectClass *klass, guint property_id_begin);
51
52
53/* D-Bus method call completion functions: */
Norman James9e6acf92015-09-08 07:00:04 -050054void control_complete_init (
Norman Jamesce46e3e2015-08-30 22:25:55 -050055 Control *object,
56 GDBusMethodInvocation *invocation);
57
58
59
60/* D-Bus signal emissions functions: */
61void control_emit_heartbeat (
62 Control *object,
63 const gchar *arg_bus_name);
64
65
66
67/* D-Bus method calls: */
Norman James9e6acf92015-09-08 07:00:04 -050068void control_call_init (
Norman Jamesce46e3e2015-08-30 22:25:55 -050069 Control *proxy,
Norman Jamesce46e3e2015-08-30 22:25:55 -050070 GCancellable *cancellable,
71 GAsyncReadyCallback callback,
72 gpointer user_data);
73
Norman James9e6acf92015-09-08 07:00:04 -050074gboolean control_call_init_finish (
Norman Jamesce46e3e2015-08-30 22:25:55 -050075 Control *proxy,
76 GAsyncResult *res,
77 GError **error);
78
Norman James9e6acf92015-09-08 07:00:04 -050079gboolean control_call_init_sync (
Norman Jamesce46e3e2015-08-30 22:25:55 -050080 Control *proxy,
Norman Jamesce46e3e2015-08-30 22:25:55 -050081 GCancellable *cancellable,
82 GError **error);
83
84
85
86/* D-Bus property accessors: */
87gint control_get_poll_interval (Control *object);
88void control_set_poll_interval (Control *object, gint value);
89
90gint control_get_heatbeat (Control *object);
91void control_set_heatbeat (Control *object, gint value);
92
93
94/* ---- */
95
96#define TYPE_CONTROL_PROXY (control_proxy_get_type ())
97#define CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_PROXY, ControlProxy))
98#define CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_PROXY, ControlProxyClass))
99#define CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_PROXY, ControlProxyClass))
100#define IS_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_PROXY))
101#define IS_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_PROXY))
102
103typedef struct _ControlProxy ControlProxy;
104typedef struct _ControlProxyClass ControlProxyClass;
105typedef struct _ControlProxyPrivate ControlProxyPrivate;
106
107struct _ControlProxy
108{
109 /*< private >*/
110 GDBusProxy parent_instance;
111 ControlProxyPrivate *priv;
112};
113
114struct _ControlProxyClass
115{
116 GDBusProxyClass parent_class;
117};
118
119GType control_proxy_get_type (void) G_GNUC_CONST;
120
121void control_proxy_new (
122 GDBusConnection *connection,
123 GDBusProxyFlags flags,
124 const gchar *name,
125 const gchar *object_path,
126 GCancellable *cancellable,
127 GAsyncReadyCallback callback,
128 gpointer user_data);
129Control *control_proxy_new_finish (
130 GAsyncResult *res,
131 GError **error);
132Control *control_proxy_new_sync (
133 GDBusConnection *connection,
134 GDBusProxyFlags flags,
135 const gchar *name,
136 const gchar *object_path,
137 GCancellable *cancellable,
138 GError **error);
139
140void control_proxy_new_for_bus (
141 GBusType bus_type,
142 GDBusProxyFlags flags,
143 const gchar *name,
144 const gchar *object_path,
145 GCancellable *cancellable,
146 GAsyncReadyCallback callback,
147 gpointer user_data);
148Control *control_proxy_new_for_bus_finish (
149 GAsyncResult *res,
150 GError **error);
151Control *control_proxy_new_for_bus_sync (
152 GBusType bus_type,
153 GDBusProxyFlags flags,
154 const gchar *name,
155 const gchar *object_path,
156 GCancellable *cancellable,
157 GError **error);
158
159
160/* ---- */
161
162#define TYPE_CONTROL_SKELETON (control_skeleton_get_type ())
163#define CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_SKELETON, ControlSkeleton))
164#define CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_SKELETON, ControlSkeletonClass))
165#define CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_SKELETON, ControlSkeletonClass))
166#define IS_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_SKELETON))
167#define IS_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_SKELETON))
168
169typedef struct _ControlSkeleton ControlSkeleton;
170typedef struct _ControlSkeletonClass ControlSkeletonClass;
171typedef struct _ControlSkeletonPrivate ControlSkeletonPrivate;
172
173struct _ControlSkeleton
174{
175 /*< private >*/
176 GDBusInterfaceSkeleton parent_instance;
177 ControlSkeletonPrivate *priv;
178};
179
180struct _ControlSkeletonClass
181{
182 GDBusInterfaceSkeletonClass parent_class;
183};
184
185GType control_skeleton_get_type (void) G_GNUC_CONST;
186
187Control *control_skeleton_new (void);
188
189
190/* ------------------------------------------------------------------------ */
191/* Declarations for org.openbmc.control.Host */
192
193#define TYPE_CONTROL_HOST (control_host_get_type ())
194#define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost))
195#define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST))
196#define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface))
197
198struct _ControlHost;
199typedef struct _ControlHost ControlHost;
200typedef struct _ControlHostIface ControlHostIface;
201
202struct _ControlHostIface
203{
204 GTypeInterface parent_iface;
205
206
207 gboolean (*handle_boot) (
208 ControlHost *object,
209 GDBusMethodInvocation *invocation);
210
211 gboolean (*handle_reboot) (
212 ControlHost *object,
213 GDBusMethodInvocation *invocation);
214
215 gboolean (*handle_shutdown) (
216 ControlHost *object,
217 GDBusMethodInvocation *invocation);
218
219 void (*booted) (
220 ControlHost *object);
221
222};
223
224GType control_host_get_type (void) G_GNUC_CONST;
225
226GDBusInterfaceInfo *control_host_interface_info (void);
227guint control_host_override_properties (GObjectClass *klass, guint property_id_begin);
228
229
230/* D-Bus method call completion functions: */
231void control_host_complete_boot (
232 ControlHost *object,
233 GDBusMethodInvocation *invocation);
234
235void control_host_complete_shutdown (
236 ControlHost *object,
237 GDBusMethodInvocation *invocation);
238
239void control_host_complete_reboot (
240 ControlHost *object,
241 GDBusMethodInvocation *invocation);
242
243
244
245/* D-Bus signal emissions functions: */
246void control_host_emit_booted (
247 ControlHost *object);
248
249
250
251/* D-Bus method calls: */
252void control_host_call_boot (
253 ControlHost *proxy,
254 GCancellable *cancellable,
255 GAsyncReadyCallback callback,
256 gpointer user_data);
257
258gboolean control_host_call_boot_finish (
259 ControlHost *proxy,
260 GAsyncResult *res,
261 GError **error);
262
263gboolean control_host_call_boot_sync (
264 ControlHost *proxy,
265 GCancellable *cancellable,
266 GError **error);
267
268void control_host_call_shutdown (
269 ControlHost *proxy,
270 GCancellable *cancellable,
271 GAsyncReadyCallback callback,
272 gpointer user_data);
273
274gboolean control_host_call_shutdown_finish (
275 ControlHost *proxy,
276 GAsyncResult *res,
277 GError **error);
278
279gboolean control_host_call_shutdown_sync (
280 ControlHost *proxy,
281 GCancellable *cancellable,
282 GError **error);
283
284void control_host_call_reboot (
285 ControlHost *proxy,
286 GCancellable *cancellable,
287 GAsyncReadyCallback callback,
288 gpointer user_data);
289
290gboolean control_host_call_reboot_finish (
291 ControlHost *proxy,
292 GAsyncResult *res,
293 GError **error);
294
295gboolean control_host_call_reboot_sync (
296 ControlHost *proxy,
297 GCancellable *cancellable,
298 GError **error);
299
300
301
302/* ---- */
303
304#define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ())
305#define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy))
306#define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass))
307#define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass))
308#define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY))
309#define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY))
310
311typedef struct _ControlHostProxy ControlHostProxy;
312typedef struct _ControlHostProxyClass ControlHostProxyClass;
313typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate;
314
315struct _ControlHostProxy
316{
317 /*< private >*/
318 GDBusProxy parent_instance;
319 ControlHostProxyPrivate *priv;
320};
321
322struct _ControlHostProxyClass
323{
324 GDBusProxyClass parent_class;
325};
326
327GType control_host_proxy_get_type (void) G_GNUC_CONST;
328
329void control_host_proxy_new (
330 GDBusConnection *connection,
331 GDBusProxyFlags flags,
332 const gchar *name,
333 const gchar *object_path,
334 GCancellable *cancellable,
335 GAsyncReadyCallback callback,
336 gpointer user_data);
337ControlHost *control_host_proxy_new_finish (
338 GAsyncResult *res,
339 GError **error);
340ControlHost *control_host_proxy_new_sync (
341 GDBusConnection *connection,
342 GDBusProxyFlags flags,
343 const gchar *name,
344 const gchar *object_path,
345 GCancellable *cancellable,
346 GError **error);
347
348void control_host_proxy_new_for_bus (
349 GBusType bus_type,
350 GDBusProxyFlags flags,
351 const gchar *name,
352 const gchar *object_path,
353 GCancellable *cancellable,
354 GAsyncReadyCallback callback,
355 gpointer user_data);
356ControlHost *control_host_proxy_new_for_bus_finish (
357 GAsyncResult *res,
358 GError **error);
359ControlHost *control_host_proxy_new_for_bus_sync (
360 GBusType bus_type,
361 GDBusProxyFlags flags,
362 const gchar *name,
363 const gchar *object_path,
364 GCancellable *cancellable,
365 GError **error);
366
367
368/* ---- */
369
370#define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ())
371#define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton))
372#define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass))
373#define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass))
374#define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON))
375#define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON))
376
377typedef struct _ControlHostSkeleton ControlHostSkeleton;
378typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass;
379typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate;
380
381struct _ControlHostSkeleton
382{
383 /*< private >*/
384 GDBusInterfaceSkeleton parent_instance;
385 ControlHostSkeletonPrivate *priv;
386};
387
388struct _ControlHostSkeletonClass
389{
390 GDBusInterfaceSkeletonClass parent_class;
391};
392
393GType control_host_skeleton_get_type (void) G_GNUC_CONST;
394
395ControlHost *control_host_skeleton_new (void);
396
397
398/* ------------------------------------------------------------------------ */
399/* Declarations for org.openbmc.control.Power */
400
401#define TYPE_CONTROL_POWER (control_power_get_type ())
402#define CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER, ControlPower))
403#define IS_CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER))
404#define CONTROL_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_POWER, ControlPowerIface))
405
406struct _ControlPower;
407typedef struct _ControlPower ControlPower;
408typedef struct _ControlPowerIface ControlPowerIface;
409
410struct _ControlPowerIface
411{
412 GTypeInterface parent_iface;
413
414
415
416 gboolean (*handle_get_power_state) (
417 ControlPower *object,
418 GDBusMethodInvocation *invocation);
419
420 gboolean (*handle_set_power_state) (
421 ControlPower *object,
422 GDBusMethodInvocation *invocation,
423 gint arg_state);
424
425 gint (*get_pgood) (ControlPower *object);
426
427 gint (*get_state) (ControlPower *object);
428
429 void (*power_good) (
430 ControlPower *object);
431
432 void (*power_lost) (
433 ControlPower *object);
434
435};
436
437GType control_power_get_type (void) G_GNUC_CONST;
438
439GDBusInterfaceInfo *control_power_interface_info (void);
440guint control_power_override_properties (GObjectClass *klass, guint property_id_begin);
441
442
443/* D-Bus method call completion functions: */
444void control_power_complete_set_power_state (
445 ControlPower *object,
446 GDBusMethodInvocation *invocation);
447
448void control_power_complete_get_power_state (
449 ControlPower *object,
450 GDBusMethodInvocation *invocation,
451 gint state);
452
453
454
455/* D-Bus signal emissions functions: */
456void control_power_emit_power_good (
457 ControlPower *object);
458
459void control_power_emit_power_lost (
460 ControlPower *object);
461
462
463
464/* D-Bus method calls: */
465void control_power_call_set_power_state (
466 ControlPower *proxy,
467 gint arg_state,
468 GCancellable *cancellable,
469 GAsyncReadyCallback callback,
470 gpointer user_data);
471
472gboolean control_power_call_set_power_state_finish (
473 ControlPower *proxy,
474 GAsyncResult *res,
475 GError **error);
476
477gboolean control_power_call_set_power_state_sync (
478 ControlPower *proxy,
479 gint arg_state,
480 GCancellable *cancellable,
481 GError **error);
482
483void control_power_call_get_power_state (
484 ControlPower *proxy,
485 GCancellable *cancellable,
486 GAsyncReadyCallback callback,
487 gpointer user_data);
488
489gboolean control_power_call_get_power_state_finish (
490 ControlPower *proxy,
491 gint *out_state,
492 GAsyncResult *res,
493 GError **error);
494
495gboolean control_power_call_get_power_state_sync (
496 ControlPower *proxy,
497 gint *out_state,
498 GCancellable *cancellable,
499 GError **error);
500
501
502
503/* D-Bus property accessors: */
504gint control_power_get_pgood (ControlPower *object);
505void control_power_set_pgood (ControlPower *object, gint value);
506
507gint control_power_get_state (ControlPower *object);
508void control_power_set_state (ControlPower *object, gint value);
509
510
511/* ---- */
512
513#define TYPE_CONTROL_POWER_PROXY (control_power_proxy_get_type ())
514#define CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxy))
515#define CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass))
516#define CONTROL_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass))
517#define IS_CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_PROXY))
518#define IS_CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_PROXY))
519
520typedef struct _ControlPowerProxy ControlPowerProxy;
521typedef struct _ControlPowerProxyClass ControlPowerProxyClass;
522typedef struct _ControlPowerProxyPrivate ControlPowerProxyPrivate;
523
524struct _ControlPowerProxy
525{
526 /*< private >*/
527 GDBusProxy parent_instance;
528 ControlPowerProxyPrivate *priv;
529};
530
531struct _ControlPowerProxyClass
532{
533 GDBusProxyClass parent_class;
534};
535
536GType control_power_proxy_get_type (void) G_GNUC_CONST;
537
538void control_power_proxy_new (
539 GDBusConnection *connection,
540 GDBusProxyFlags flags,
541 const gchar *name,
542 const gchar *object_path,
543 GCancellable *cancellable,
544 GAsyncReadyCallback callback,
545 gpointer user_data);
546ControlPower *control_power_proxy_new_finish (
547 GAsyncResult *res,
548 GError **error);
549ControlPower *control_power_proxy_new_sync (
550 GDBusConnection *connection,
551 GDBusProxyFlags flags,
552 const gchar *name,
553 const gchar *object_path,
554 GCancellable *cancellable,
555 GError **error);
556
557void control_power_proxy_new_for_bus (
558 GBusType bus_type,
559 GDBusProxyFlags flags,
560 const gchar *name,
561 const gchar *object_path,
562 GCancellable *cancellable,
563 GAsyncReadyCallback callback,
564 gpointer user_data);
565ControlPower *control_power_proxy_new_for_bus_finish (
566 GAsyncResult *res,
567 GError **error);
568ControlPower *control_power_proxy_new_for_bus_sync (
569 GBusType bus_type,
570 GDBusProxyFlags flags,
571 const gchar *name,
572 const gchar *object_path,
573 GCancellable *cancellable,
574 GError **error);
575
576
577/* ---- */
578
579#define TYPE_CONTROL_POWER_SKELETON (control_power_skeleton_get_type ())
580#define CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeleton))
581#define CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass))
582#define CONTROL_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass))
583#define IS_CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_SKELETON))
584#define IS_CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_SKELETON))
585
586typedef struct _ControlPowerSkeleton ControlPowerSkeleton;
587typedef struct _ControlPowerSkeletonClass ControlPowerSkeletonClass;
588typedef struct _ControlPowerSkeletonPrivate ControlPowerSkeletonPrivate;
589
590struct _ControlPowerSkeleton
591{
592 /*< private >*/
593 GDBusInterfaceSkeleton parent_instance;
594 ControlPowerSkeletonPrivate *priv;
595};
596
597struct _ControlPowerSkeletonClass
598{
599 GDBusInterfaceSkeletonClass parent_class;
600};
601
602GType control_power_skeleton_get_type (void) G_GNUC_CONST;
603
604ControlPower *control_power_skeleton_new (void);
605
606
607/* ------------------------------------------------------------------------ */
608/* Declarations for org.openbmc.EventLog */
609
610#define TYPE_EVENT_LOG (event_log_get_type ())
611#define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog))
612#define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG))
613#define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface))
614
615struct _EventLog;
616typedef struct _EventLog EventLog;
617typedef struct _EventLogIface EventLogIface;
618
619struct _EventLogIface
620{
621 GTypeInterface parent_iface;
622
623 void (*event_log) (
624 EventLog *object,
625 GVariant *arg_message);
626
627};
628
629GType event_log_get_type (void) G_GNUC_CONST;
630
631GDBusInterfaceInfo *event_log_interface_info (void);
632guint event_log_override_properties (GObjectClass *klass, guint property_id_begin);
633
634
635/* D-Bus signal emissions functions: */
636void event_log_emit_event_log (
637 EventLog *object,
638 GVariant *arg_message);
639
640
641
642/* ---- */
643
644#define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ())
645#define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy))
646#define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass))
647#define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass))
648#define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY))
649#define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY))
650
651typedef struct _EventLogProxy EventLogProxy;
652typedef struct _EventLogProxyClass EventLogProxyClass;
653typedef struct _EventLogProxyPrivate EventLogProxyPrivate;
654
655struct _EventLogProxy
656{
657 /*< private >*/
658 GDBusProxy parent_instance;
659 EventLogProxyPrivate *priv;
660};
661
662struct _EventLogProxyClass
663{
664 GDBusProxyClass parent_class;
665};
666
667GType event_log_proxy_get_type (void) G_GNUC_CONST;
668
669void event_log_proxy_new (
670 GDBusConnection *connection,
671 GDBusProxyFlags flags,
672 const gchar *name,
673 const gchar *object_path,
674 GCancellable *cancellable,
675 GAsyncReadyCallback callback,
676 gpointer user_data);
677EventLog *event_log_proxy_new_finish (
678 GAsyncResult *res,
679 GError **error);
680EventLog *event_log_proxy_new_sync (
681 GDBusConnection *connection,
682 GDBusProxyFlags flags,
683 const gchar *name,
684 const gchar *object_path,
685 GCancellable *cancellable,
686 GError **error);
687
688void event_log_proxy_new_for_bus (
689 GBusType bus_type,
690 GDBusProxyFlags flags,
691 const gchar *name,
692 const gchar *object_path,
693 GCancellable *cancellable,
694 GAsyncReadyCallback callback,
695 gpointer user_data);
696EventLog *event_log_proxy_new_for_bus_finish (
697 GAsyncResult *res,
698 GError **error);
699EventLog *event_log_proxy_new_for_bus_sync (
700 GBusType bus_type,
701 GDBusProxyFlags flags,
702 const gchar *name,
703 const gchar *object_path,
704 GCancellable *cancellable,
705 GError **error);
706
707
708/* ---- */
709
710#define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ())
711#define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton))
712#define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass))
713#define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass))
714#define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON))
715#define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON))
716
717typedef struct _EventLogSkeleton EventLogSkeleton;
718typedef struct _EventLogSkeletonClass EventLogSkeletonClass;
719typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate;
720
721struct _EventLogSkeleton
722{
723 /*< private >*/
724 GDBusInterfaceSkeleton parent_instance;
725 EventLogSkeletonPrivate *priv;
726};
727
728struct _EventLogSkeletonClass
729{
730 GDBusInterfaceSkeletonClass parent_class;
731};
732
733GType event_log_skeleton_get_type (void) G_GNUC_CONST;
734
735EventLog *event_log_skeleton_new (void);
736
737
738/* ---- */
739
740#define TYPE_OBJECT (object_get_type ())
741#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
742#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
743#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
744
745struct _Object;
746typedef struct _Object Object;
747typedef struct _ObjectIface ObjectIface;
748
749struct _ObjectIface
750{
751 GTypeInterface parent_iface;
752};
753
754GType object_get_type (void) G_GNUC_CONST;
755
756Control *object_get_control (Object *object);
757ControlHost *object_get_control_host (Object *object);
758ControlPower *object_get_control_power (Object *object);
759EventLog *object_get_event_log (Object *object);
760Control *object_peek_control (Object *object);
761ControlHost *object_peek_control_host (Object *object);
762ControlPower *object_peek_control_power (Object *object);
763EventLog *object_peek_event_log (Object *object);
764
765#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
766#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
767#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
768#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
769#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
770#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
771
772typedef struct _ObjectProxy ObjectProxy;
773typedef struct _ObjectProxyClass ObjectProxyClass;
774typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
775
776struct _ObjectProxy
777{
778 /*< private >*/
779 GDBusObjectProxy parent_instance;
780 ObjectProxyPrivate *priv;
781};
782
783struct _ObjectProxyClass
784{
785 GDBusObjectProxyClass parent_class;
786};
787
788GType object_proxy_get_type (void) G_GNUC_CONST;
789ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
790
791#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
792#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
793#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
794#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
795#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
796#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
797
798typedef struct _ObjectSkeleton ObjectSkeleton;
799typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
800typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
801
802struct _ObjectSkeleton
803{
804 /*< private >*/
805 GDBusObjectSkeleton parent_instance;
806 ObjectSkeletonPrivate *priv;
807};
808
809struct _ObjectSkeletonClass
810{
811 GDBusObjectSkeletonClass parent_class;
812};
813
814GType object_skeleton_get_type (void) G_GNUC_CONST;
815ObjectSkeleton *object_skeleton_new (const gchar *object_path);
816void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_);
817void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_);
818void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_);
819void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_);
820
821/* ---- */
822
823#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
824#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
825#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
826#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
827#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
828#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
829
830typedef struct _ObjectManagerClient ObjectManagerClient;
831typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
832typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
833
834struct _ObjectManagerClient
835{
836 /*< private >*/
837 GDBusObjectManagerClient parent_instance;
838 ObjectManagerClientPrivate *priv;
839};
840
841struct _ObjectManagerClientClass
842{
843 GDBusObjectManagerClientClass parent_class;
844};
845
846GType object_manager_client_get_type (void) G_GNUC_CONST;
847
848GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
849
850void object_manager_client_new (
851 GDBusConnection *connection,
852 GDBusObjectManagerClientFlags flags,
853 const gchar *name,
854 const gchar *object_path,
855 GCancellable *cancellable,
856 GAsyncReadyCallback callback,
857 gpointer user_data);
858GDBusObjectManager *object_manager_client_new_finish (
859 GAsyncResult *res,
860 GError **error);
861GDBusObjectManager *object_manager_client_new_sync (
862 GDBusConnection *connection,
863 GDBusObjectManagerClientFlags flags,
864 const gchar *name,
865 const gchar *object_path,
866 GCancellable *cancellable,
867 GError **error);
868
869void object_manager_client_new_for_bus (
870 GBusType bus_type,
871 GDBusObjectManagerClientFlags flags,
872 const gchar *name,
873 const gchar *object_path,
874 GCancellable *cancellable,
875 GAsyncReadyCallback callback,
876 gpointer user_data);
877GDBusObjectManager *object_manager_client_new_for_bus_finish (
878 GAsyncResult *res,
879 GError **error);
880GDBusObjectManager *object_manager_client_new_for_bus_sync (
881 GBusType bus_type,
882 GDBusObjectManagerClientFlags flags,
883 const gchar *name,
884 const gchar *object_path,
885 GCancellable *cancellable,
886 GError **error);
887
888
889G_END_DECLS
890
891#endif /* __INTERFACES_CONTROL_H__ */