blob: 3e764c1515d75d0816612f8385e78b3efa8931f5 [file] [log] [blame]
Norman James362a80f2015-09-14 14:04:39 -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_OPENBMC_INTF_H__
8#define __INTERFACES_OPENBMC_INTF_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.openbmc.Occ */
17
18#define TYPE_OCC (occ_get_type ())
19#define OCC(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OCC, Occ))
20#define IS_OCC(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OCC))
21#define OCC_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OCC, OccIface))
22
23struct _Occ;
24typedef struct _Occ Occ;
25typedef struct _OccIface OccIface;
26
27struct _OccIface
28{
29 GTypeInterface parent_iface;
30
31
32 gboolean (*handle_collect) (
33 Occ *object,
34 GDBusMethodInvocation *invocation);
35
36 gboolean (*handle_init) (
37 Occ *object,
38 GDBusMethodInvocation *invocation);
39
40 gint (*get_poll_interval) (Occ *object);
41
42 const gchar * (*get_state) (Occ *object);
43
44};
45
46GType occ_get_type (void) G_GNUC_CONST;
47
48GDBusInterfaceInfo *occ_interface_info (void);
49guint occ_override_properties (GObjectClass *klass, guint property_id_begin);
50
51
52/* D-Bus method call completion functions: */
53void occ_complete_init (
54 Occ *object,
55 GDBusMethodInvocation *invocation);
56
57void occ_complete_collect (
58 Occ *object,
59 GDBusMethodInvocation *invocation);
60
61
62
63/* D-Bus method calls: */
64void occ_call_init (
65 Occ *proxy,
66 GCancellable *cancellable,
67 GAsyncReadyCallback callback,
68 gpointer user_data);
69
70gboolean occ_call_init_finish (
71 Occ *proxy,
72 GAsyncResult *res,
73 GError **error);
74
75gboolean occ_call_init_sync (
76 Occ *proxy,
77 GCancellable *cancellable,
78 GError **error);
79
80void occ_call_collect (
81 Occ *proxy,
82 GCancellable *cancellable,
83 GAsyncReadyCallback callback,
84 gpointer user_data);
85
86gboolean occ_call_collect_finish (
87 Occ *proxy,
88 GAsyncResult *res,
89 GError **error);
90
91gboolean occ_call_collect_sync (
92 Occ *proxy,
93 GCancellable *cancellable,
94 GError **error);
95
96
97
98/* D-Bus property accessors: */
99const gchar *occ_get_state (Occ *object);
100gchar *occ_dup_state (Occ *object);
101void occ_set_state (Occ *object, const gchar *value);
102
103gint occ_get_poll_interval (Occ *object);
104void occ_set_poll_interval (Occ *object, gint value);
105
106
107/* ---- */
108
109#define TYPE_OCC_PROXY (occ_proxy_get_type ())
110#define OCC_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OCC_PROXY, OccProxy))
111#define OCC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OCC_PROXY, OccProxyClass))
112#define OCC_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OCC_PROXY, OccProxyClass))
113#define IS_OCC_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OCC_PROXY))
114#define IS_OCC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OCC_PROXY))
115
116typedef struct _OccProxy OccProxy;
117typedef struct _OccProxyClass OccProxyClass;
118typedef struct _OccProxyPrivate OccProxyPrivate;
119
120struct _OccProxy
121{
122 /*< private >*/
123 GDBusProxy parent_instance;
124 OccProxyPrivate *priv;
125};
126
127struct _OccProxyClass
128{
129 GDBusProxyClass parent_class;
130};
131
132GType occ_proxy_get_type (void) G_GNUC_CONST;
133
134void occ_proxy_new (
135 GDBusConnection *connection,
136 GDBusProxyFlags flags,
137 const gchar *name,
138 const gchar *object_path,
139 GCancellable *cancellable,
140 GAsyncReadyCallback callback,
141 gpointer user_data);
142Occ *occ_proxy_new_finish (
143 GAsyncResult *res,
144 GError **error);
145Occ *occ_proxy_new_sync (
146 GDBusConnection *connection,
147 GDBusProxyFlags flags,
148 const gchar *name,
149 const gchar *object_path,
150 GCancellable *cancellable,
151 GError **error);
152
153void occ_proxy_new_for_bus (
154 GBusType bus_type,
155 GDBusProxyFlags flags,
156 const gchar *name,
157 const gchar *object_path,
158 GCancellable *cancellable,
159 GAsyncReadyCallback callback,
160 gpointer user_data);
161Occ *occ_proxy_new_for_bus_finish (
162 GAsyncResult *res,
163 GError **error);
164Occ *occ_proxy_new_for_bus_sync (
165 GBusType bus_type,
166 GDBusProxyFlags flags,
167 const gchar *name,
168 const gchar *object_path,
169 GCancellable *cancellable,
170 GError **error);
171
172
173/* ---- */
174
175#define TYPE_OCC_SKELETON (occ_skeleton_get_type ())
176#define OCC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OCC_SKELETON, OccSkeleton))
177#define OCC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OCC_SKELETON, OccSkeletonClass))
178#define OCC_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OCC_SKELETON, OccSkeletonClass))
179#define IS_OCC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OCC_SKELETON))
180#define IS_OCC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OCC_SKELETON))
181
182typedef struct _OccSkeleton OccSkeleton;
183typedef struct _OccSkeletonClass OccSkeletonClass;
184typedef struct _OccSkeletonPrivate OccSkeletonPrivate;
185
186struct _OccSkeleton
187{
188 /*< private >*/
189 GDBusInterfaceSkeleton parent_instance;
190 OccSkeletonPrivate *priv;
191};
192
193struct _OccSkeletonClass
194{
195 GDBusInterfaceSkeletonClass parent_class;
196};
197
198GType occ_skeleton_get_type (void) G_GNUC_CONST;
199
200Occ *occ_skeleton_new (void);
201
202
203/* ------------------------------------------------------------------------ */
204/* Declarations for org.openbmc.Fan */
205
206#define TYPE_FAN (fan_get_type ())
207#define FAN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN, Fan))
208#define IS_FAN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN))
209#define FAN_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FAN, FanIface))
210
211struct _Fan;
212typedef struct _Fan Fan;
213typedef struct _FanIface FanIface;
214
215struct _FanIface
216{
217 GTypeInterface parent_iface;
218
219
220
221 gboolean (*handle_get_speed) (
222 Fan *object,
223 GDBusMethodInvocation *invocation);
224
225 gboolean (*handle_set_cooling_zone) (
226 Fan *object,
227 GDBusMethodInvocation *invocation,
228 gint arg_cooling_zone);
229
230 gboolean (*handle_set_speed) (
231 Fan *object,
232 GDBusMethodInvocation *invocation,
233 gint arg_speed);
234
235 gint (*get_cooling_zone) (Fan *object);
236
237 gint (*get_pwm_num) (Fan *object);
238
239 gint (*get_speed) (Fan *object);
240
241 void (*speed_changed) (
242 Fan *object,
243 gint arg_speed);
244
245 void (*tach_error) (
246 Fan *object);
247
248};
249
250GType fan_get_type (void) G_GNUC_CONST;
251
252GDBusInterfaceInfo *fan_interface_info (void);
253guint fan_override_properties (GObjectClass *klass, guint property_id_begin);
254
255
256/* D-Bus method call completion functions: */
257void fan_complete_set_cooling_zone (
258 Fan *object,
259 GDBusMethodInvocation *invocation);
260
261void fan_complete_get_speed (
262 Fan *object,
263 GDBusMethodInvocation *invocation,
264 gint speed);
265
266void fan_complete_set_speed (
267 Fan *object,
268 GDBusMethodInvocation *invocation);
269
270
271
272/* D-Bus signal emissions functions: */
273void fan_emit_speed_changed (
274 Fan *object,
275 gint arg_speed);
276
277void fan_emit_tach_error (
278 Fan *object);
279
280
281
282/* D-Bus method calls: */
283void fan_call_set_cooling_zone (
284 Fan *proxy,
285 gint arg_cooling_zone,
286 GCancellable *cancellable,
287 GAsyncReadyCallback callback,
288 gpointer user_data);
289
290gboolean fan_call_set_cooling_zone_finish (
291 Fan *proxy,
292 GAsyncResult *res,
293 GError **error);
294
295gboolean fan_call_set_cooling_zone_sync (
296 Fan *proxy,
297 gint arg_cooling_zone,
298 GCancellable *cancellable,
299 GError **error);
300
301void fan_call_get_speed (
302 Fan *proxy,
303 GCancellable *cancellable,
304 GAsyncReadyCallback callback,
305 gpointer user_data);
306
307gboolean fan_call_get_speed_finish (
308 Fan *proxy,
309 gint *out_speed,
310 GAsyncResult *res,
311 GError **error);
312
313gboolean fan_call_get_speed_sync (
314 Fan *proxy,
315 gint *out_speed,
316 GCancellable *cancellable,
317 GError **error);
318
319void fan_call_set_speed (
320 Fan *proxy,
321 gint arg_speed,
322 GCancellable *cancellable,
323 GAsyncReadyCallback callback,
324 gpointer user_data);
325
326gboolean fan_call_set_speed_finish (
327 Fan *proxy,
328 GAsyncResult *res,
329 GError **error);
330
331gboolean fan_call_set_speed_sync (
332 Fan *proxy,
333 gint arg_speed,
334 GCancellable *cancellable,
335 GError **error);
336
337
338
339/* D-Bus property accessors: */
340gint fan_get_speed (Fan *object);
341void fan_set_speed (Fan *object, gint value);
342
343gint fan_get_cooling_zone (Fan *object);
344void fan_set_cooling_zone (Fan *object, gint value);
345
346gint fan_get_pwm_num (Fan *object);
347void fan_set_pwm_num (Fan *object, gint value);
348
349
350/* ---- */
351
352#define TYPE_FAN_PROXY (fan_proxy_get_type ())
353#define FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN_PROXY, FanProxy))
354#define FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FAN_PROXY, FanProxyClass))
355#define FAN_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FAN_PROXY, FanProxyClass))
356#define IS_FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN_PROXY))
357#define IS_FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FAN_PROXY))
358
359typedef struct _FanProxy FanProxy;
360typedef struct _FanProxyClass FanProxyClass;
361typedef struct _FanProxyPrivate FanProxyPrivate;
362
363struct _FanProxy
364{
365 /*< private >*/
366 GDBusProxy parent_instance;
367 FanProxyPrivate *priv;
368};
369
370struct _FanProxyClass
371{
372 GDBusProxyClass parent_class;
373};
374
375GType fan_proxy_get_type (void) G_GNUC_CONST;
376
377void fan_proxy_new (
378 GDBusConnection *connection,
379 GDBusProxyFlags flags,
380 const gchar *name,
381 const gchar *object_path,
382 GCancellable *cancellable,
383 GAsyncReadyCallback callback,
384 gpointer user_data);
385Fan *fan_proxy_new_finish (
386 GAsyncResult *res,
387 GError **error);
388Fan *fan_proxy_new_sync (
389 GDBusConnection *connection,
390 GDBusProxyFlags flags,
391 const gchar *name,
392 const gchar *object_path,
393 GCancellable *cancellable,
394 GError **error);
395
396void fan_proxy_new_for_bus (
397 GBusType bus_type,
398 GDBusProxyFlags flags,
399 const gchar *name,
400 const gchar *object_path,
401 GCancellable *cancellable,
402 GAsyncReadyCallback callback,
403 gpointer user_data);
404Fan *fan_proxy_new_for_bus_finish (
405 GAsyncResult *res,
406 GError **error);
407Fan *fan_proxy_new_for_bus_sync (
408 GBusType bus_type,
409 GDBusProxyFlags flags,
410 const gchar *name,
411 const gchar *object_path,
412 GCancellable *cancellable,
413 GError **error);
414
415
416/* ---- */
417
418#define TYPE_FAN_SKELETON (fan_skeleton_get_type ())
419#define FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN_SKELETON, FanSkeleton))
420#define FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FAN_SKELETON, FanSkeletonClass))
421#define FAN_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FAN_SKELETON, FanSkeletonClass))
422#define IS_FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN_SKELETON))
423#define IS_FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FAN_SKELETON))
424
425typedef struct _FanSkeleton FanSkeleton;
426typedef struct _FanSkeletonClass FanSkeletonClass;
427typedef struct _FanSkeletonPrivate FanSkeletonPrivate;
428
429struct _FanSkeleton
430{
431 /*< private >*/
432 GDBusInterfaceSkeleton parent_instance;
433 FanSkeletonPrivate *priv;
434};
435
436struct _FanSkeletonClass
437{
438 GDBusInterfaceSkeletonClass parent_class;
439};
440
441GType fan_skeleton_get_type (void) G_GNUC_CONST;
442
443Fan *fan_skeleton_new (void);
444
445
446/* ------------------------------------------------------------------------ */
447/* Declarations for org.openbmc.SensorValue */
448
449#define TYPE_SENSOR_VALUE (sensor_value_get_type ())
450#define SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE, SensorValue))
451#define IS_SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE))
452#define SENSOR_VALUE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_VALUE, SensorValueIface))
453
454struct _SensorValue;
455typedef struct _SensorValue SensorValue;
456typedef struct _SensorValueIface SensorValueIface;
457
458struct _SensorValueIface
459{
460 GTypeInterface parent_iface;
461
462
463
464 gboolean (*handle_get_value) (
465 SensorValue *object,
466 GDBusMethodInvocation *invocation);
467
468 gboolean (*handle_init) (
469 SensorValue *object,
470 GDBusMethodInvocation *invocation);
471
472 gboolean (*handle_set_value) (
473 SensorValue *object,
474 GDBusMethodInvocation *invocation,
475 GVariant *arg_value);
476
477 gint (*get_heatbeat) (SensorValue *object);
478
479 guchar (*get_ipmi_entity_id) (SensorValue *object);
480
481 guchar (*get_ipmi_id) (SensorValue *object);
482
483 gint (*get_poll_interval) (SensorValue *object);
484
485 gboolean (*get_settable) (SensorValue *object);
486
487 const gchar * (*get_units) (SensorValue *object);
488
489 GVariant * (*get_value) (SensorValue *object);
490
491 void (*changed) (
492 SensorValue *object,
493 GVariant *arg_value,
494 const gchar *arg_units);
495
Norman James32e74e22015-09-15 21:28:06 -0500496 void (*error) (
497 SensorValue *object);
498
Norman James362a80f2015-09-14 14:04:39 -0500499 void (*heartbeat) (
500 SensorValue *object,
501 const gchar *arg_bus_name);
502
503};
504
505GType sensor_value_get_type (void) G_GNUC_CONST;
506
507GDBusInterfaceInfo *sensor_value_interface_info (void);
508guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin);
509
510
511/* D-Bus method call completion functions: */
512void sensor_value_complete_init (
513 SensorValue *object,
514 GDBusMethodInvocation *invocation);
515
516void sensor_value_complete_get_value (
517 SensorValue *object,
518 GDBusMethodInvocation *invocation,
519 GVariant *value);
520
521void sensor_value_complete_set_value (
522 SensorValue *object,
523 GDBusMethodInvocation *invocation);
524
525
526
527/* D-Bus signal emissions functions: */
528void sensor_value_emit_changed (
529 SensorValue *object,
530 GVariant *arg_value,
531 const gchar *arg_units);
532
Norman James32e74e22015-09-15 21:28:06 -0500533void sensor_value_emit_error (
534 SensorValue *object);
535
Norman James362a80f2015-09-14 14:04:39 -0500536void sensor_value_emit_heartbeat (
537 SensorValue *object,
538 const gchar *arg_bus_name);
539
540
541
542/* D-Bus method calls: */
543void sensor_value_call_init (
544 SensorValue *proxy,
545 GCancellable *cancellable,
546 GAsyncReadyCallback callback,
547 gpointer user_data);
548
549gboolean sensor_value_call_init_finish (
550 SensorValue *proxy,
551 GAsyncResult *res,
552 GError **error);
553
554gboolean sensor_value_call_init_sync (
555 SensorValue *proxy,
556 GCancellable *cancellable,
557 GError **error);
558
559void sensor_value_call_get_value (
560 SensorValue *proxy,
561 GCancellable *cancellable,
562 GAsyncReadyCallback callback,
563 gpointer user_data);
564
565gboolean sensor_value_call_get_value_finish (
566 SensorValue *proxy,
567 GVariant **out_value,
568 GAsyncResult *res,
569 GError **error);
570
571gboolean sensor_value_call_get_value_sync (
572 SensorValue *proxy,
573 GVariant **out_value,
574 GCancellable *cancellable,
575 GError **error);
576
577void sensor_value_call_set_value (
578 SensorValue *proxy,
579 GVariant *arg_value,
580 GCancellable *cancellable,
581 GAsyncReadyCallback callback,
582 gpointer user_data);
583
584gboolean sensor_value_call_set_value_finish (
585 SensorValue *proxy,
586 GAsyncResult *res,
587 GError **error);
588
589gboolean sensor_value_call_set_value_sync (
590 SensorValue *proxy,
591 GVariant *arg_value,
592 GCancellable *cancellable,
593 GError **error);
594
595
596
597/* D-Bus property accessors: */
598GVariant *sensor_value_get_value (SensorValue *object);
599GVariant *sensor_value_dup_value (SensorValue *object);
600void sensor_value_set_value (SensorValue *object, GVariant *value);
601
602const gchar *sensor_value_get_units (SensorValue *object);
603gchar *sensor_value_dup_units (SensorValue *object);
604void sensor_value_set_units (SensorValue *object, const gchar *value);
605
606gint sensor_value_get_poll_interval (SensorValue *object);
607void sensor_value_set_poll_interval (SensorValue *object, gint value);
608
609gint sensor_value_get_heatbeat (SensorValue *object);
610void sensor_value_set_heatbeat (SensorValue *object, gint value);
611
612gboolean sensor_value_get_settable (SensorValue *object);
613void sensor_value_set_settable (SensorValue *object, gboolean value);
614
615guchar sensor_value_get_ipmi_entity_id (SensorValue *object);
616void sensor_value_set_ipmi_entity_id (SensorValue *object, guchar value);
617
618guchar sensor_value_get_ipmi_id (SensorValue *object);
619void sensor_value_set_ipmi_id (SensorValue *object, guchar value);
620
621
622/* ---- */
623
624#define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ())
625#define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy))
626#define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass))
627#define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass))
628#define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY))
629#define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY))
630
631typedef struct _SensorValueProxy SensorValueProxy;
632typedef struct _SensorValueProxyClass SensorValueProxyClass;
633typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate;
634
635struct _SensorValueProxy
636{
637 /*< private >*/
638 GDBusProxy parent_instance;
639 SensorValueProxyPrivate *priv;
640};
641
642struct _SensorValueProxyClass
643{
644 GDBusProxyClass parent_class;
645};
646
647GType sensor_value_proxy_get_type (void) G_GNUC_CONST;
648
649void sensor_value_proxy_new (
650 GDBusConnection *connection,
651 GDBusProxyFlags flags,
652 const gchar *name,
653 const gchar *object_path,
654 GCancellable *cancellable,
655 GAsyncReadyCallback callback,
656 gpointer user_data);
657SensorValue *sensor_value_proxy_new_finish (
658 GAsyncResult *res,
659 GError **error);
660SensorValue *sensor_value_proxy_new_sync (
661 GDBusConnection *connection,
662 GDBusProxyFlags flags,
663 const gchar *name,
664 const gchar *object_path,
665 GCancellable *cancellable,
666 GError **error);
667
668void sensor_value_proxy_new_for_bus (
669 GBusType bus_type,
670 GDBusProxyFlags flags,
671 const gchar *name,
672 const gchar *object_path,
673 GCancellable *cancellable,
674 GAsyncReadyCallback callback,
675 gpointer user_data);
676SensorValue *sensor_value_proxy_new_for_bus_finish (
677 GAsyncResult *res,
678 GError **error);
679SensorValue *sensor_value_proxy_new_for_bus_sync (
680 GBusType bus_type,
681 GDBusProxyFlags flags,
682 const gchar *name,
683 const gchar *object_path,
684 GCancellable *cancellable,
685 GError **error);
686
687
688/* ---- */
689
690#define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ())
691#define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton))
692#define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass))
693#define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass))
694#define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON))
695#define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON))
696
697typedef struct _SensorValueSkeleton SensorValueSkeleton;
698typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass;
699typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate;
700
701struct _SensorValueSkeleton
702{
703 /*< private >*/
704 GDBusInterfaceSkeleton parent_instance;
705 SensorValueSkeletonPrivate *priv;
706};
707
708struct _SensorValueSkeletonClass
709{
710 GDBusInterfaceSkeletonClass parent_class;
711};
712
713GType sensor_value_skeleton_get_type (void) G_GNUC_CONST;
714
715SensorValue *sensor_value_skeleton_new (void);
716
717
718/* ------------------------------------------------------------------------ */
719/* Declarations for org.openbmc.SensorThreshold */
720
721#define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ())
722#define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold))
723#define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD))
724#define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface))
725
726struct _SensorThreshold;
727typedef struct _SensorThreshold SensorThreshold;
728typedef struct _SensorThresholdIface SensorThresholdIface;
729
730struct _SensorThresholdIface
731{
732 GTypeInterface parent_iface;
733
734
735
736 gboolean (*handle_get_state) (
737 SensorThreshold *object,
738 GDBusMethodInvocation *invocation);
739
740 GVariant * (*get_lower_critical) (SensorThreshold *object);
741
742 GVariant * (*get_lower_warning) (SensorThreshold *object);
743
744 guchar (*get_state) (SensorThreshold *object);
745
746 GVariant * (*get_upper_critical) (SensorThreshold *object);
747
748 GVariant * (*get_upper_warning) (SensorThreshold *object);
749
750 void (*critical) (
751 SensorThreshold *object);
752
753 void (*normal) (
754 SensorThreshold *object);
755
756 void (*warning) (
757 SensorThreshold *object);
758
759};
760
761GType sensor_threshold_get_type (void) G_GNUC_CONST;
762
763GDBusInterfaceInfo *sensor_threshold_interface_info (void);
764guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin);
765
766
767/* D-Bus method call completion functions: */
768void sensor_threshold_complete_get_state (
769 SensorThreshold *object,
770 GDBusMethodInvocation *invocation,
771 guchar state);
772
773
774
775/* D-Bus signal emissions functions: */
776void sensor_threshold_emit_warning (
777 SensorThreshold *object);
778
779void sensor_threshold_emit_critical (
780 SensorThreshold *object);
781
782void sensor_threshold_emit_normal (
783 SensorThreshold *object);
784
785
786
787/* D-Bus method calls: */
788void sensor_threshold_call_get_state (
789 SensorThreshold *proxy,
790 GCancellable *cancellable,
791 GAsyncReadyCallback callback,
792 gpointer user_data);
793
794gboolean sensor_threshold_call_get_state_finish (
795 SensorThreshold *proxy,
796 guchar *out_state,
797 GAsyncResult *res,
798 GError **error);
799
800gboolean sensor_threshold_call_get_state_sync (
801 SensorThreshold *proxy,
802 guchar *out_state,
803 GCancellable *cancellable,
804 GError **error);
805
806
807
808/* D-Bus property accessors: */
809GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object);
810GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object);
811void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value);
812
813GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object);
814GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object);
815void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value);
816
817GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object);
818GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object);
819void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value);
820
821GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object);
822GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object);
823void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value);
824
825guchar sensor_threshold_get_state (SensorThreshold *object);
826void sensor_threshold_set_state (SensorThreshold *object, guchar value);
827
828
829/* ---- */
830
831#define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ())
832#define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy))
833#define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass))
834#define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass))
835#define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY))
836#define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY))
837
838typedef struct _SensorThresholdProxy SensorThresholdProxy;
839typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass;
840typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate;
841
842struct _SensorThresholdProxy
843{
844 /*< private >*/
845 GDBusProxy parent_instance;
846 SensorThresholdProxyPrivate *priv;
847};
848
849struct _SensorThresholdProxyClass
850{
851 GDBusProxyClass parent_class;
852};
853
854GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST;
855
856void sensor_threshold_proxy_new (
857 GDBusConnection *connection,
858 GDBusProxyFlags flags,
859 const gchar *name,
860 const gchar *object_path,
861 GCancellable *cancellable,
862 GAsyncReadyCallback callback,
863 gpointer user_data);
864SensorThreshold *sensor_threshold_proxy_new_finish (
865 GAsyncResult *res,
866 GError **error);
867SensorThreshold *sensor_threshold_proxy_new_sync (
868 GDBusConnection *connection,
869 GDBusProxyFlags flags,
870 const gchar *name,
871 const gchar *object_path,
872 GCancellable *cancellable,
873 GError **error);
874
875void sensor_threshold_proxy_new_for_bus (
876 GBusType bus_type,
877 GDBusProxyFlags flags,
878 const gchar *name,
879 const gchar *object_path,
880 GCancellable *cancellable,
881 GAsyncReadyCallback callback,
882 gpointer user_data);
883SensorThreshold *sensor_threshold_proxy_new_for_bus_finish (
884 GAsyncResult *res,
885 GError **error);
886SensorThreshold *sensor_threshold_proxy_new_for_bus_sync (
887 GBusType bus_type,
888 GDBusProxyFlags flags,
889 const gchar *name,
890 const gchar *object_path,
891 GCancellable *cancellable,
892 GError **error);
893
894
895/* ---- */
896
897#define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ())
898#define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton))
899#define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass))
900#define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass))
901#define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON))
902#define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON))
903
904typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton;
905typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass;
906typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate;
907
908struct _SensorThresholdSkeleton
909{
910 /*< private >*/
911 GDBusInterfaceSkeleton parent_instance;
912 SensorThresholdSkeletonPrivate *priv;
913};
914
915struct _SensorThresholdSkeletonClass
916{
917 GDBusInterfaceSkeletonClass parent_class;
918};
919
920GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST;
921
922SensorThreshold *sensor_threshold_skeleton_new (void);
923
924
925/* ------------------------------------------------------------------------ */
926/* Declarations for org.openbmc.SensorI2c */
927
928#define TYPE_SENSOR_I2C (sensor_i2c_get_type ())
929#define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c))
930#define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C))
931#define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface))
932
933struct _SensorI2c;
934typedef struct _SensorI2c SensorI2c;
935typedef struct _SensorI2cIface SensorI2cIface;
936
937struct _SensorI2cIface
938{
939 GTypeInterface parent_iface;
940
941 const gchar * (*get_address) (SensorI2c *object);
942
943 const gchar * (*get_dev_path) (SensorI2c *object);
944
945};
946
947GType sensor_i2c_get_type (void) G_GNUC_CONST;
948
949GDBusInterfaceInfo *sensor_i2c_interface_info (void);
950guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin);
951
952
953/* D-Bus property accessors: */
954const gchar *sensor_i2c_get_dev_path (SensorI2c *object);
955gchar *sensor_i2c_dup_dev_path (SensorI2c *object);
956void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value);
957
958const gchar *sensor_i2c_get_address (SensorI2c *object);
959gchar *sensor_i2c_dup_address (SensorI2c *object);
960void sensor_i2c_set_address (SensorI2c *object, const gchar *value);
961
962
963/* ---- */
964
965#define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ())
966#define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy))
967#define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass))
968#define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass))
969#define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY))
970#define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY))
971
972typedef struct _SensorI2cProxy SensorI2cProxy;
973typedef struct _SensorI2cProxyClass SensorI2cProxyClass;
974typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate;
975
976struct _SensorI2cProxy
977{
978 /*< private >*/
979 GDBusProxy parent_instance;
980 SensorI2cProxyPrivate *priv;
981};
982
983struct _SensorI2cProxyClass
984{
985 GDBusProxyClass parent_class;
986};
987
988GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST;
989
990void sensor_i2c_proxy_new (
991 GDBusConnection *connection,
992 GDBusProxyFlags flags,
993 const gchar *name,
994 const gchar *object_path,
995 GCancellable *cancellable,
996 GAsyncReadyCallback callback,
997 gpointer user_data);
998SensorI2c *sensor_i2c_proxy_new_finish (
999 GAsyncResult *res,
1000 GError **error);
1001SensorI2c *sensor_i2c_proxy_new_sync (
1002 GDBusConnection *connection,
1003 GDBusProxyFlags flags,
1004 const gchar *name,
1005 const gchar *object_path,
1006 GCancellable *cancellable,
1007 GError **error);
1008
1009void sensor_i2c_proxy_new_for_bus (
1010 GBusType bus_type,
1011 GDBusProxyFlags flags,
1012 const gchar *name,
1013 const gchar *object_path,
1014 GCancellable *cancellable,
1015 GAsyncReadyCallback callback,
1016 gpointer user_data);
1017SensorI2c *sensor_i2c_proxy_new_for_bus_finish (
1018 GAsyncResult *res,
1019 GError **error);
1020SensorI2c *sensor_i2c_proxy_new_for_bus_sync (
1021 GBusType bus_type,
1022 GDBusProxyFlags flags,
1023 const gchar *name,
1024 const gchar *object_path,
1025 GCancellable *cancellable,
1026 GError **error);
1027
1028
1029/* ---- */
1030
1031#define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ())
1032#define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton))
1033#define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass))
1034#define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass))
1035#define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON))
1036#define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON))
1037
1038typedef struct _SensorI2cSkeleton SensorI2cSkeleton;
1039typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass;
1040typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate;
1041
1042struct _SensorI2cSkeleton
1043{
1044 /*< private >*/
1045 GDBusInterfaceSkeleton parent_instance;
1046 SensorI2cSkeletonPrivate *priv;
1047};
1048
1049struct _SensorI2cSkeletonClass
1050{
1051 GDBusInterfaceSkeletonClass parent_class;
1052};
1053
1054GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST;
1055
1056SensorI2c *sensor_i2c_skeleton_new (void);
1057
1058
1059/* ------------------------------------------------------------------------ */
1060/* Declarations for org.openbmc.SensorMatch */
1061
1062#define TYPE_SENSOR_MATCH (sensor_match_get_type ())
1063#define SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH, SensorMatch))
1064#define IS_SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH))
1065#define SENSOR_MATCH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_MATCH, SensorMatchIface))
1066
1067struct _SensorMatch;
1068typedef struct _SensorMatch SensorMatch;
1069typedef struct _SensorMatchIface SensorMatchIface;
1070
1071struct _SensorMatchIface
1072{
1073 GTypeInterface parent_iface;
1074
1075
1076 GVariant * (*get_match_value) (SensorMatch *object);
1077
1078 guchar (*get_state) (SensorMatch *object);
1079
1080 void (*sensor_match) (
1081 SensorMatch *object,
1082 guchar arg_state);
1083
1084};
1085
1086GType sensor_match_get_type (void) G_GNUC_CONST;
1087
1088GDBusInterfaceInfo *sensor_match_interface_info (void);
1089guint sensor_match_override_properties (GObjectClass *klass, guint property_id_begin);
1090
1091
1092/* D-Bus signal emissions functions: */
1093void sensor_match_emit_sensor_match (
1094 SensorMatch *object,
1095 guchar arg_state);
1096
1097
1098
1099/* D-Bus property accessors: */
1100GVariant *sensor_match_get_match_value (SensorMatch *object);
1101GVariant *sensor_match_dup_match_value (SensorMatch *object);
1102void sensor_match_set_match_value (SensorMatch *object, GVariant *value);
1103
1104guchar sensor_match_get_state (SensorMatch *object);
1105void sensor_match_set_state (SensorMatch *object, guchar value);
1106
1107
1108/* ---- */
1109
1110#define TYPE_SENSOR_MATCH_PROXY (sensor_match_proxy_get_type ())
1111#define SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxy))
1112#define SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass))
1113#define SENSOR_MATCH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass))
1114#define IS_SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_PROXY))
1115#define IS_SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_PROXY))
1116
1117typedef struct _SensorMatchProxy SensorMatchProxy;
1118typedef struct _SensorMatchProxyClass SensorMatchProxyClass;
1119typedef struct _SensorMatchProxyPrivate SensorMatchProxyPrivate;
1120
1121struct _SensorMatchProxy
1122{
1123 /*< private >*/
1124 GDBusProxy parent_instance;
1125 SensorMatchProxyPrivate *priv;
1126};
1127
1128struct _SensorMatchProxyClass
1129{
1130 GDBusProxyClass parent_class;
1131};
1132
1133GType sensor_match_proxy_get_type (void) G_GNUC_CONST;
1134
1135void sensor_match_proxy_new (
1136 GDBusConnection *connection,
1137 GDBusProxyFlags flags,
1138 const gchar *name,
1139 const gchar *object_path,
1140 GCancellable *cancellable,
1141 GAsyncReadyCallback callback,
1142 gpointer user_data);
1143SensorMatch *sensor_match_proxy_new_finish (
1144 GAsyncResult *res,
1145 GError **error);
1146SensorMatch *sensor_match_proxy_new_sync (
1147 GDBusConnection *connection,
1148 GDBusProxyFlags flags,
1149 const gchar *name,
1150 const gchar *object_path,
1151 GCancellable *cancellable,
1152 GError **error);
1153
1154void sensor_match_proxy_new_for_bus (
1155 GBusType bus_type,
1156 GDBusProxyFlags flags,
1157 const gchar *name,
1158 const gchar *object_path,
1159 GCancellable *cancellable,
1160 GAsyncReadyCallback callback,
1161 gpointer user_data);
1162SensorMatch *sensor_match_proxy_new_for_bus_finish (
1163 GAsyncResult *res,
1164 GError **error);
1165SensorMatch *sensor_match_proxy_new_for_bus_sync (
1166 GBusType bus_type,
1167 GDBusProxyFlags flags,
1168 const gchar *name,
1169 const gchar *object_path,
1170 GCancellable *cancellable,
1171 GError **error);
1172
1173
1174/* ---- */
1175
1176#define TYPE_SENSOR_MATCH_SKELETON (sensor_match_skeleton_get_type ())
1177#define SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeleton))
1178#define SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass))
1179#define SENSOR_MATCH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass))
1180#define IS_SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_SKELETON))
1181#define IS_SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_SKELETON))
1182
1183typedef struct _SensorMatchSkeleton SensorMatchSkeleton;
1184typedef struct _SensorMatchSkeletonClass SensorMatchSkeletonClass;
1185typedef struct _SensorMatchSkeletonPrivate SensorMatchSkeletonPrivate;
1186
1187struct _SensorMatchSkeleton
1188{
1189 /*< private >*/
1190 GDBusInterfaceSkeleton parent_instance;
1191 SensorMatchSkeletonPrivate *priv;
1192};
1193
1194struct _SensorMatchSkeletonClass
1195{
1196 GDBusInterfaceSkeletonClass parent_class;
1197};
1198
1199GType sensor_match_skeleton_get_type (void) G_GNUC_CONST;
1200
1201SensorMatch *sensor_match_skeleton_new (void);
1202
1203
1204/* ------------------------------------------------------------------------ */
1205/* Declarations for org.openbmc.Process */
1206
1207#define TYPE_PROCESS (process_get_type ())
1208#define PROCESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS, Process))
1209#define IS_PROCESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS))
1210#define PROCESS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_PROCESS, ProcessIface))
1211
1212struct _Process;
1213typedef struct _Process Process;
1214typedef struct _ProcessIface ProcessIface;
1215
1216struct _ProcessIface
1217{
1218 GTypeInterface parent_iface;
1219
1220 gboolean (*handle_stop) (
1221 Process *object,
1222 GDBusMethodInvocation *invocation);
1223
1224};
1225
1226GType process_get_type (void) G_GNUC_CONST;
1227
1228GDBusInterfaceInfo *process_interface_info (void);
1229guint process_override_properties (GObjectClass *klass, guint property_id_begin);
1230
1231
1232/* D-Bus method call completion functions: */
1233void process_complete_stop (
1234 Process *object,
1235 GDBusMethodInvocation *invocation);
1236
1237
1238
1239/* D-Bus method calls: */
1240void process_call_stop (
1241 Process *proxy,
1242 GCancellable *cancellable,
1243 GAsyncReadyCallback callback,
1244 gpointer user_data);
1245
1246gboolean process_call_stop_finish (
1247 Process *proxy,
1248 GAsyncResult *res,
1249 GError **error);
1250
1251gboolean process_call_stop_sync (
1252 Process *proxy,
1253 GCancellable *cancellable,
1254 GError **error);
1255
1256
1257
1258/* ---- */
1259
1260#define TYPE_PROCESS_PROXY (process_proxy_get_type ())
1261#define PROCESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS_PROXY, ProcessProxy))
1262#define PROCESS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_PROCESS_PROXY, ProcessProxyClass))
1263#define PROCESS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_PROCESS_PROXY, ProcessProxyClass))
1264#define IS_PROCESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS_PROXY))
1265#define IS_PROCESS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_PROCESS_PROXY))
1266
1267typedef struct _ProcessProxy ProcessProxy;
1268typedef struct _ProcessProxyClass ProcessProxyClass;
1269typedef struct _ProcessProxyPrivate ProcessProxyPrivate;
1270
1271struct _ProcessProxy
1272{
1273 /*< private >*/
1274 GDBusProxy parent_instance;
1275 ProcessProxyPrivate *priv;
1276};
1277
1278struct _ProcessProxyClass
1279{
1280 GDBusProxyClass parent_class;
1281};
1282
1283GType process_proxy_get_type (void) G_GNUC_CONST;
1284
1285void process_proxy_new (
1286 GDBusConnection *connection,
1287 GDBusProxyFlags flags,
1288 const gchar *name,
1289 const gchar *object_path,
1290 GCancellable *cancellable,
1291 GAsyncReadyCallback callback,
1292 gpointer user_data);
1293Process *process_proxy_new_finish (
1294 GAsyncResult *res,
1295 GError **error);
1296Process *process_proxy_new_sync (
1297 GDBusConnection *connection,
1298 GDBusProxyFlags flags,
1299 const gchar *name,
1300 const gchar *object_path,
1301 GCancellable *cancellable,
1302 GError **error);
1303
1304void process_proxy_new_for_bus (
1305 GBusType bus_type,
1306 GDBusProxyFlags flags,
1307 const gchar *name,
1308 const gchar *object_path,
1309 GCancellable *cancellable,
1310 GAsyncReadyCallback callback,
1311 gpointer user_data);
1312Process *process_proxy_new_for_bus_finish (
1313 GAsyncResult *res,
1314 GError **error);
1315Process *process_proxy_new_for_bus_sync (
1316 GBusType bus_type,
1317 GDBusProxyFlags flags,
1318 const gchar *name,
1319 const gchar *object_path,
1320 GCancellable *cancellable,
1321 GError **error);
1322
1323
1324/* ---- */
1325
1326#define TYPE_PROCESS_SKELETON (process_skeleton_get_type ())
1327#define PROCESS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS_SKELETON, ProcessSkeleton))
1328#define PROCESS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_PROCESS_SKELETON, ProcessSkeletonClass))
1329#define PROCESS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_PROCESS_SKELETON, ProcessSkeletonClass))
1330#define IS_PROCESS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS_SKELETON))
1331#define IS_PROCESS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_PROCESS_SKELETON))
1332
1333typedef struct _ProcessSkeleton ProcessSkeleton;
1334typedef struct _ProcessSkeletonClass ProcessSkeletonClass;
1335typedef struct _ProcessSkeletonPrivate ProcessSkeletonPrivate;
1336
1337struct _ProcessSkeleton
1338{
1339 /*< private >*/
1340 GDBusInterfaceSkeleton parent_instance;
1341 ProcessSkeletonPrivate *priv;
1342};
1343
1344struct _ProcessSkeletonClass
1345{
1346 GDBusInterfaceSkeletonClass parent_class;
1347};
1348
1349GType process_skeleton_get_type (void) G_GNUC_CONST;
1350
1351Process *process_skeleton_new (void);
1352
1353
1354/* ------------------------------------------------------------------------ */
1355/* Declarations for org.openbmc.Control */
1356
1357#define TYPE_CONTROL (control_get_type ())
1358#define CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL, Control))
1359#define IS_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL))
1360#define CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL, ControlIface))
1361
1362struct _Control;
1363typedef struct _Control Control;
1364typedef struct _ControlIface ControlIface;
1365
1366struct _ControlIface
1367{
1368 GTypeInterface parent_iface;
1369
1370
1371
1372 gboolean (*handle_init) (
1373 Control *object,
1374 GDBusMethodInvocation *invocation);
1375
1376 gint (*get_heatbeat) (Control *object);
1377
1378 gint (*get_poll_interval) (Control *object);
1379
1380 void (*goto_system_state) (
1381 Control *object,
1382 const gchar *arg_state_name);
1383
1384 void (*heartbeat) (
1385 Control *object,
1386 const gchar *arg_bus_name);
1387
1388};
1389
1390GType control_get_type (void) G_GNUC_CONST;
1391
1392GDBusInterfaceInfo *control_interface_info (void);
1393guint control_override_properties (GObjectClass *klass, guint property_id_begin);
1394
1395
1396/* D-Bus method call completion functions: */
1397void control_complete_init (
1398 Control *object,
1399 GDBusMethodInvocation *invocation);
1400
1401
1402
1403/* D-Bus signal emissions functions: */
1404void control_emit_heartbeat (
1405 Control *object,
1406 const gchar *arg_bus_name);
1407
1408void control_emit_goto_system_state (
1409 Control *object,
1410 const gchar *arg_state_name);
1411
1412
1413
1414/* D-Bus method calls: */
1415void control_call_init (
1416 Control *proxy,
1417 GCancellable *cancellable,
1418 GAsyncReadyCallback callback,
1419 gpointer user_data);
1420
1421gboolean control_call_init_finish (
1422 Control *proxy,
1423 GAsyncResult *res,
1424 GError **error);
1425
1426gboolean control_call_init_sync (
1427 Control *proxy,
1428 GCancellable *cancellable,
1429 GError **error);
1430
1431
1432
1433/* D-Bus property accessors: */
1434gint control_get_poll_interval (Control *object);
1435void control_set_poll_interval (Control *object, gint value);
1436
1437gint control_get_heatbeat (Control *object);
1438void control_set_heatbeat (Control *object, gint value);
1439
1440
1441/* ---- */
1442
1443#define TYPE_CONTROL_PROXY (control_proxy_get_type ())
1444#define CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_PROXY, ControlProxy))
1445#define CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_PROXY, ControlProxyClass))
1446#define CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_PROXY, ControlProxyClass))
1447#define IS_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_PROXY))
1448#define IS_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_PROXY))
1449
1450typedef struct _ControlProxy ControlProxy;
1451typedef struct _ControlProxyClass ControlProxyClass;
1452typedef struct _ControlProxyPrivate ControlProxyPrivate;
1453
1454struct _ControlProxy
1455{
1456 /*< private >*/
1457 GDBusProxy parent_instance;
1458 ControlProxyPrivate *priv;
1459};
1460
1461struct _ControlProxyClass
1462{
1463 GDBusProxyClass parent_class;
1464};
1465
1466GType control_proxy_get_type (void) G_GNUC_CONST;
1467
1468void control_proxy_new (
1469 GDBusConnection *connection,
1470 GDBusProxyFlags flags,
1471 const gchar *name,
1472 const gchar *object_path,
1473 GCancellable *cancellable,
1474 GAsyncReadyCallback callback,
1475 gpointer user_data);
1476Control *control_proxy_new_finish (
1477 GAsyncResult *res,
1478 GError **error);
1479Control *control_proxy_new_sync (
1480 GDBusConnection *connection,
1481 GDBusProxyFlags flags,
1482 const gchar *name,
1483 const gchar *object_path,
1484 GCancellable *cancellable,
1485 GError **error);
1486
1487void control_proxy_new_for_bus (
1488 GBusType bus_type,
1489 GDBusProxyFlags flags,
1490 const gchar *name,
1491 const gchar *object_path,
1492 GCancellable *cancellable,
1493 GAsyncReadyCallback callback,
1494 gpointer user_data);
1495Control *control_proxy_new_for_bus_finish (
1496 GAsyncResult *res,
1497 GError **error);
1498Control *control_proxy_new_for_bus_sync (
1499 GBusType bus_type,
1500 GDBusProxyFlags flags,
1501 const gchar *name,
1502 const gchar *object_path,
1503 GCancellable *cancellable,
1504 GError **error);
1505
1506
1507/* ---- */
1508
1509#define TYPE_CONTROL_SKELETON (control_skeleton_get_type ())
1510#define CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_SKELETON, ControlSkeleton))
1511#define CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_SKELETON, ControlSkeletonClass))
1512#define CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_SKELETON, ControlSkeletonClass))
1513#define IS_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_SKELETON))
1514#define IS_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_SKELETON))
1515
1516typedef struct _ControlSkeleton ControlSkeleton;
1517typedef struct _ControlSkeletonClass ControlSkeletonClass;
1518typedef struct _ControlSkeletonPrivate ControlSkeletonPrivate;
1519
1520struct _ControlSkeleton
1521{
1522 /*< private >*/
1523 GDBusInterfaceSkeleton parent_instance;
1524 ControlSkeletonPrivate *priv;
1525};
1526
1527struct _ControlSkeletonClass
1528{
1529 GDBusInterfaceSkeletonClass parent_class;
1530};
1531
1532GType control_skeleton_get_type (void) G_GNUC_CONST;
1533
1534Control *control_skeleton_new (void);
1535
1536
1537/* ------------------------------------------------------------------------ */
1538/* Declarations for org.openbmc.control.Bmc */
1539
1540#define TYPE_CONTROL_BMC (control_bmc_get_type ())
1541#define CONTROL_BMC(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC, ControlBmc))
1542#define IS_CONTROL_BMC(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC))
1543#define CONTROL_BMC_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_BMC, ControlBmcIface))
1544
1545struct _ControlBmc;
1546typedef struct _ControlBmc ControlBmc;
1547typedef struct _ControlBmcIface ControlBmcIface;
1548
1549struct _ControlBmcIface
1550{
1551 GTypeInterface parent_iface;
1552
1553 gboolean (*handle_place_holder) (
1554 ControlBmc *object,
1555 GDBusMethodInvocation *invocation);
1556
1557};
1558
1559GType control_bmc_get_type (void) G_GNUC_CONST;
1560
1561GDBusInterfaceInfo *control_bmc_interface_info (void);
1562guint control_bmc_override_properties (GObjectClass *klass, guint property_id_begin);
1563
1564
1565/* D-Bus method call completion functions: */
1566void control_bmc_complete_place_holder (
1567 ControlBmc *object,
1568 GDBusMethodInvocation *invocation);
1569
1570
1571
1572/* D-Bus method calls: */
1573void control_bmc_call_place_holder (
1574 ControlBmc *proxy,
1575 GCancellable *cancellable,
1576 GAsyncReadyCallback callback,
1577 gpointer user_data);
1578
1579gboolean control_bmc_call_place_holder_finish (
1580 ControlBmc *proxy,
1581 GAsyncResult *res,
1582 GError **error);
1583
1584gboolean control_bmc_call_place_holder_sync (
1585 ControlBmc *proxy,
1586 GCancellable *cancellable,
1587 GError **error);
1588
1589
1590
1591/* ---- */
1592
1593#define TYPE_CONTROL_BMC_PROXY (control_bmc_proxy_get_type ())
1594#define CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxy))
1595#define CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass))
1596#define CONTROL_BMC_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass))
1597#define IS_CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_PROXY))
1598#define IS_CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_PROXY))
1599
1600typedef struct _ControlBmcProxy ControlBmcProxy;
1601typedef struct _ControlBmcProxyClass ControlBmcProxyClass;
1602typedef struct _ControlBmcProxyPrivate ControlBmcProxyPrivate;
1603
1604struct _ControlBmcProxy
1605{
1606 /*< private >*/
1607 GDBusProxy parent_instance;
1608 ControlBmcProxyPrivate *priv;
1609};
1610
1611struct _ControlBmcProxyClass
1612{
1613 GDBusProxyClass parent_class;
1614};
1615
1616GType control_bmc_proxy_get_type (void) G_GNUC_CONST;
1617
1618void control_bmc_proxy_new (
1619 GDBusConnection *connection,
1620 GDBusProxyFlags flags,
1621 const gchar *name,
1622 const gchar *object_path,
1623 GCancellable *cancellable,
1624 GAsyncReadyCallback callback,
1625 gpointer user_data);
1626ControlBmc *control_bmc_proxy_new_finish (
1627 GAsyncResult *res,
1628 GError **error);
1629ControlBmc *control_bmc_proxy_new_sync (
1630 GDBusConnection *connection,
1631 GDBusProxyFlags flags,
1632 const gchar *name,
1633 const gchar *object_path,
1634 GCancellable *cancellable,
1635 GError **error);
1636
1637void control_bmc_proxy_new_for_bus (
1638 GBusType bus_type,
1639 GDBusProxyFlags flags,
1640 const gchar *name,
1641 const gchar *object_path,
1642 GCancellable *cancellable,
1643 GAsyncReadyCallback callback,
1644 gpointer user_data);
1645ControlBmc *control_bmc_proxy_new_for_bus_finish (
1646 GAsyncResult *res,
1647 GError **error);
1648ControlBmc *control_bmc_proxy_new_for_bus_sync (
1649 GBusType bus_type,
1650 GDBusProxyFlags flags,
1651 const gchar *name,
1652 const gchar *object_path,
1653 GCancellable *cancellable,
1654 GError **error);
1655
1656
1657/* ---- */
1658
1659#define TYPE_CONTROL_BMC_SKELETON (control_bmc_skeleton_get_type ())
1660#define CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeleton))
1661#define CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass))
1662#define CONTROL_BMC_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass))
1663#define IS_CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_SKELETON))
1664#define IS_CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_SKELETON))
1665
1666typedef struct _ControlBmcSkeleton ControlBmcSkeleton;
1667typedef struct _ControlBmcSkeletonClass ControlBmcSkeletonClass;
1668typedef struct _ControlBmcSkeletonPrivate ControlBmcSkeletonPrivate;
1669
1670struct _ControlBmcSkeleton
1671{
1672 /*< private >*/
1673 GDBusInterfaceSkeleton parent_instance;
1674 ControlBmcSkeletonPrivate *priv;
1675};
1676
1677struct _ControlBmcSkeletonClass
1678{
1679 GDBusInterfaceSkeletonClass parent_class;
1680};
1681
1682GType control_bmc_skeleton_get_type (void) G_GNUC_CONST;
1683
1684ControlBmc *control_bmc_skeleton_new (void);
1685
1686
1687/* ------------------------------------------------------------------------ */
1688/* Declarations for org.openbmc.control.Host */
1689
1690#define TYPE_CONTROL_HOST (control_host_get_type ())
1691#define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost))
1692#define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST))
1693#define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface))
1694
1695struct _ControlHost;
1696typedef struct _ControlHost ControlHost;
1697typedef struct _ControlHostIface ControlHostIface;
1698
1699struct _ControlHostIface
1700{
1701 GTypeInterface parent_iface;
1702
1703
1704 gboolean (*handle_boot) (
1705 ControlHost *object,
1706 GDBusMethodInvocation *invocation);
1707
1708 gboolean (*handle_reboot) (
1709 ControlHost *object,
1710 GDBusMethodInvocation *invocation);
1711
1712 gboolean (*handle_shutdown) (
1713 ControlHost *object,
1714 GDBusMethodInvocation *invocation);
1715
1716 void (*booted) (
1717 ControlHost *object);
1718
1719};
1720
1721GType control_host_get_type (void) G_GNUC_CONST;
1722
1723GDBusInterfaceInfo *control_host_interface_info (void);
1724guint control_host_override_properties (GObjectClass *klass, guint property_id_begin);
1725
1726
1727/* D-Bus method call completion functions: */
1728void control_host_complete_boot (
1729 ControlHost *object,
1730 GDBusMethodInvocation *invocation);
1731
1732void control_host_complete_shutdown (
1733 ControlHost *object,
1734 GDBusMethodInvocation *invocation);
1735
1736void control_host_complete_reboot (
1737 ControlHost *object,
1738 GDBusMethodInvocation *invocation);
1739
1740
1741
1742/* D-Bus signal emissions functions: */
1743void control_host_emit_booted (
1744 ControlHost *object);
1745
1746
1747
1748/* D-Bus method calls: */
1749void control_host_call_boot (
1750 ControlHost *proxy,
1751 GCancellable *cancellable,
1752 GAsyncReadyCallback callback,
1753 gpointer user_data);
1754
1755gboolean control_host_call_boot_finish (
1756 ControlHost *proxy,
1757 GAsyncResult *res,
1758 GError **error);
1759
1760gboolean control_host_call_boot_sync (
1761 ControlHost *proxy,
1762 GCancellable *cancellable,
1763 GError **error);
1764
1765void control_host_call_shutdown (
1766 ControlHost *proxy,
1767 GCancellable *cancellable,
1768 GAsyncReadyCallback callback,
1769 gpointer user_data);
1770
1771gboolean control_host_call_shutdown_finish (
1772 ControlHost *proxy,
1773 GAsyncResult *res,
1774 GError **error);
1775
1776gboolean control_host_call_shutdown_sync (
1777 ControlHost *proxy,
1778 GCancellable *cancellable,
1779 GError **error);
1780
1781void control_host_call_reboot (
1782 ControlHost *proxy,
1783 GCancellable *cancellable,
1784 GAsyncReadyCallback callback,
1785 gpointer user_data);
1786
1787gboolean control_host_call_reboot_finish (
1788 ControlHost *proxy,
1789 GAsyncResult *res,
1790 GError **error);
1791
1792gboolean control_host_call_reboot_sync (
1793 ControlHost *proxy,
1794 GCancellable *cancellable,
1795 GError **error);
1796
1797
1798
1799/* ---- */
1800
1801#define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ())
1802#define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy))
1803#define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass))
1804#define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass))
1805#define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY))
1806#define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY))
1807
1808typedef struct _ControlHostProxy ControlHostProxy;
1809typedef struct _ControlHostProxyClass ControlHostProxyClass;
1810typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate;
1811
1812struct _ControlHostProxy
1813{
1814 /*< private >*/
1815 GDBusProxy parent_instance;
1816 ControlHostProxyPrivate *priv;
1817};
1818
1819struct _ControlHostProxyClass
1820{
1821 GDBusProxyClass parent_class;
1822};
1823
1824GType control_host_proxy_get_type (void) G_GNUC_CONST;
1825
1826void control_host_proxy_new (
1827 GDBusConnection *connection,
1828 GDBusProxyFlags flags,
1829 const gchar *name,
1830 const gchar *object_path,
1831 GCancellable *cancellable,
1832 GAsyncReadyCallback callback,
1833 gpointer user_data);
1834ControlHost *control_host_proxy_new_finish (
1835 GAsyncResult *res,
1836 GError **error);
1837ControlHost *control_host_proxy_new_sync (
1838 GDBusConnection *connection,
1839 GDBusProxyFlags flags,
1840 const gchar *name,
1841 const gchar *object_path,
1842 GCancellable *cancellable,
1843 GError **error);
1844
1845void control_host_proxy_new_for_bus (
1846 GBusType bus_type,
1847 GDBusProxyFlags flags,
1848 const gchar *name,
1849 const gchar *object_path,
1850 GCancellable *cancellable,
1851 GAsyncReadyCallback callback,
1852 gpointer user_data);
1853ControlHost *control_host_proxy_new_for_bus_finish (
1854 GAsyncResult *res,
1855 GError **error);
1856ControlHost *control_host_proxy_new_for_bus_sync (
1857 GBusType bus_type,
1858 GDBusProxyFlags flags,
1859 const gchar *name,
1860 const gchar *object_path,
1861 GCancellable *cancellable,
1862 GError **error);
1863
1864
1865/* ---- */
1866
1867#define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ())
1868#define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton))
1869#define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass))
1870#define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass))
1871#define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON))
1872#define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON))
1873
1874typedef struct _ControlHostSkeleton ControlHostSkeleton;
1875typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass;
1876typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate;
1877
1878struct _ControlHostSkeleton
1879{
1880 /*< private >*/
1881 GDBusInterfaceSkeleton parent_instance;
1882 ControlHostSkeletonPrivate *priv;
1883};
1884
1885struct _ControlHostSkeletonClass
1886{
1887 GDBusInterfaceSkeletonClass parent_class;
1888};
1889
1890GType control_host_skeleton_get_type (void) G_GNUC_CONST;
1891
1892ControlHost *control_host_skeleton_new (void);
1893
1894
1895/* ------------------------------------------------------------------------ */
1896/* Declarations for org.openbmc.control.Power */
1897
1898#define TYPE_CONTROL_POWER (control_power_get_type ())
1899#define CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER, ControlPower))
1900#define IS_CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER))
1901#define CONTROL_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_POWER, ControlPowerIface))
1902
1903struct _ControlPower;
1904typedef struct _ControlPower ControlPower;
1905typedef struct _ControlPowerIface ControlPowerIface;
1906
1907struct _ControlPowerIface
1908{
1909 GTypeInterface parent_iface;
1910
1911
1912
1913 gboolean (*handle_get_power_state) (
1914 ControlPower *object,
1915 GDBusMethodInvocation *invocation);
1916
1917 gboolean (*handle_set_power_state) (
1918 ControlPower *object,
1919 GDBusMethodInvocation *invocation,
1920 gint arg_state);
1921
1922 gint (*get_pgood) (ControlPower *object);
1923
Norman James32e74e22015-09-15 21:28:06 -05001924 gint (*get_pgood_timeout) (ControlPower *object);
1925
Norman James362a80f2015-09-14 14:04:39 -05001926 gint (*get_state) (ControlPower *object);
1927
1928 void (*power_good) (
1929 ControlPower *object);
1930
1931 void (*power_lost) (
1932 ControlPower *object);
1933
1934};
1935
1936GType control_power_get_type (void) G_GNUC_CONST;
1937
1938GDBusInterfaceInfo *control_power_interface_info (void);
1939guint control_power_override_properties (GObjectClass *klass, guint property_id_begin);
1940
1941
1942/* D-Bus method call completion functions: */
1943void control_power_complete_set_power_state (
1944 ControlPower *object,
1945 GDBusMethodInvocation *invocation);
1946
1947void control_power_complete_get_power_state (
1948 ControlPower *object,
1949 GDBusMethodInvocation *invocation,
1950 gint state);
1951
1952
1953
1954/* D-Bus signal emissions functions: */
1955void control_power_emit_power_good (
1956 ControlPower *object);
1957
1958void control_power_emit_power_lost (
1959 ControlPower *object);
1960
1961
1962
1963/* D-Bus method calls: */
1964void control_power_call_set_power_state (
1965 ControlPower *proxy,
1966 gint arg_state,
1967 GCancellable *cancellable,
1968 GAsyncReadyCallback callback,
1969 gpointer user_data);
1970
1971gboolean control_power_call_set_power_state_finish (
1972 ControlPower *proxy,
1973 GAsyncResult *res,
1974 GError **error);
1975
1976gboolean control_power_call_set_power_state_sync (
1977 ControlPower *proxy,
1978 gint arg_state,
1979 GCancellable *cancellable,
1980 GError **error);
1981
1982void control_power_call_get_power_state (
1983 ControlPower *proxy,
1984 GCancellable *cancellable,
1985 GAsyncReadyCallback callback,
1986 gpointer user_data);
1987
1988gboolean control_power_call_get_power_state_finish (
1989 ControlPower *proxy,
1990 gint *out_state,
1991 GAsyncResult *res,
1992 GError **error);
1993
1994gboolean control_power_call_get_power_state_sync (
1995 ControlPower *proxy,
1996 gint *out_state,
1997 GCancellable *cancellable,
1998 GError **error);
1999
2000
2001
2002/* D-Bus property accessors: */
2003gint control_power_get_pgood (ControlPower *object);
2004void control_power_set_pgood (ControlPower *object, gint value);
2005
2006gint control_power_get_state (ControlPower *object);
2007void control_power_set_state (ControlPower *object, gint value);
2008
Norman James32e74e22015-09-15 21:28:06 -05002009gint control_power_get_pgood_timeout (ControlPower *object);
2010void control_power_set_pgood_timeout (ControlPower *object, gint value);
2011
Norman James362a80f2015-09-14 14:04:39 -05002012
2013/* ---- */
2014
2015#define TYPE_CONTROL_POWER_PROXY (control_power_proxy_get_type ())
2016#define CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxy))
2017#define CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass))
2018#define CONTROL_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass))
2019#define IS_CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_PROXY))
2020#define IS_CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_PROXY))
2021
2022typedef struct _ControlPowerProxy ControlPowerProxy;
2023typedef struct _ControlPowerProxyClass ControlPowerProxyClass;
2024typedef struct _ControlPowerProxyPrivate ControlPowerProxyPrivate;
2025
2026struct _ControlPowerProxy
2027{
2028 /*< private >*/
2029 GDBusProxy parent_instance;
2030 ControlPowerProxyPrivate *priv;
2031};
2032
2033struct _ControlPowerProxyClass
2034{
2035 GDBusProxyClass parent_class;
2036};
2037
2038GType control_power_proxy_get_type (void) G_GNUC_CONST;
2039
2040void control_power_proxy_new (
2041 GDBusConnection *connection,
2042 GDBusProxyFlags flags,
2043 const gchar *name,
2044 const gchar *object_path,
2045 GCancellable *cancellable,
2046 GAsyncReadyCallback callback,
2047 gpointer user_data);
2048ControlPower *control_power_proxy_new_finish (
2049 GAsyncResult *res,
2050 GError **error);
2051ControlPower *control_power_proxy_new_sync (
2052 GDBusConnection *connection,
2053 GDBusProxyFlags flags,
2054 const gchar *name,
2055 const gchar *object_path,
2056 GCancellable *cancellable,
2057 GError **error);
2058
2059void control_power_proxy_new_for_bus (
2060 GBusType bus_type,
2061 GDBusProxyFlags flags,
2062 const gchar *name,
2063 const gchar *object_path,
2064 GCancellable *cancellable,
2065 GAsyncReadyCallback callback,
2066 gpointer user_data);
2067ControlPower *control_power_proxy_new_for_bus_finish (
2068 GAsyncResult *res,
2069 GError **error);
2070ControlPower *control_power_proxy_new_for_bus_sync (
2071 GBusType bus_type,
2072 GDBusProxyFlags flags,
2073 const gchar *name,
2074 const gchar *object_path,
2075 GCancellable *cancellable,
2076 GError **error);
2077
2078
2079/* ---- */
2080
2081#define TYPE_CONTROL_POWER_SKELETON (control_power_skeleton_get_type ())
2082#define CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeleton))
2083#define CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass))
2084#define CONTROL_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass))
2085#define IS_CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_SKELETON))
2086#define IS_CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_SKELETON))
2087
2088typedef struct _ControlPowerSkeleton ControlPowerSkeleton;
2089typedef struct _ControlPowerSkeletonClass ControlPowerSkeletonClass;
2090typedef struct _ControlPowerSkeletonPrivate ControlPowerSkeletonPrivate;
2091
2092struct _ControlPowerSkeleton
2093{
2094 /*< private >*/
2095 GDBusInterfaceSkeleton parent_instance;
2096 ControlPowerSkeletonPrivate *priv;
2097};
2098
2099struct _ControlPowerSkeletonClass
2100{
2101 GDBusInterfaceSkeletonClass parent_class;
2102};
2103
2104GType control_power_skeleton_get_type (void) G_GNUC_CONST;
2105
2106ControlPower *control_power_skeleton_new (void);
2107
2108
2109/* ------------------------------------------------------------------------ */
2110/* Declarations for org.openbmc.Watchdog */
2111
2112#define TYPE_WATCHDOG (watchdog_get_type ())
2113#define WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG, Watchdog))
2114#define IS_WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG))
2115#define WATCHDOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_WATCHDOG, WatchdogIface))
2116
2117struct _Watchdog;
2118typedef struct _Watchdog Watchdog;
2119typedef struct _WatchdogIface WatchdogIface;
2120
2121struct _WatchdogIface
2122{
2123 GTypeInterface parent_iface;
2124
2125
2126
2127 gboolean (*handle_poke) (
2128 Watchdog *object,
2129 GDBusMethodInvocation *invocation);
2130
2131 gboolean (*handle_start) (
2132 Watchdog *object,
2133 GDBusMethodInvocation *invocation);
2134
2135 gboolean (*handle_stop) (
2136 Watchdog *object,
2137 GDBusMethodInvocation *invocation);
2138
2139 gint (*get_poll_interval) (Watchdog *object);
2140
2141 gint (*get_watchdog) (Watchdog *object);
2142
2143 void (*watchdog_error) (
2144 Watchdog *object);
2145
2146};
2147
2148GType watchdog_get_type (void) G_GNUC_CONST;
2149
2150GDBusInterfaceInfo *watchdog_interface_info (void);
2151guint watchdog_override_properties (GObjectClass *klass, guint property_id_begin);
2152
2153
2154/* D-Bus method call completion functions: */
2155void watchdog_complete_start (
2156 Watchdog *object,
2157 GDBusMethodInvocation *invocation);
2158
2159void watchdog_complete_poke (
2160 Watchdog *object,
2161 GDBusMethodInvocation *invocation);
2162
2163void watchdog_complete_stop (
2164 Watchdog *object,
2165 GDBusMethodInvocation *invocation);
2166
2167
2168
2169/* D-Bus signal emissions functions: */
2170void watchdog_emit_watchdog_error (
2171 Watchdog *object);
2172
2173
2174
2175/* D-Bus method calls: */
2176void watchdog_call_start (
2177 Watchdog *proxy,
2178 GCancellable *cancellable,
2179 GAsyncReadyCallback callback,
2180 gpointer user_data);
2181
2182gboolean watchdog_call_start_finish (
2183 Watchdog *proxy,
2184 GAsyncResult *res,
2185 GError **error);
2186
2187gboolean watchdog_call_start_sync (
2188 Watchdog *proxy,
2189 GCancellable *cancellable,
2190 GError **error);
2191
2192void watchdog_call_poke (
2193 Watchdog *proxy,
2194 GCancellable *cancellable,
2195 GAsyncReadyCallback callback,
2196 gpointer user_data);
2197
2198gboolean watchdog_call_poke_finish (
2199 Watchdog *proxy,
2200 GAsyncResult *res,
2201 GError **error);
2202
2203gboolean watchdog_call_poke_sync (
2204 Watchdog *proxy,
2205 GCancellable *cancellable,
2206 GError **error);
2207
2208void watchdog_call_stop (
2209 Watchdog *proxy,
2210 GCancellable *cancellable,
2211 GAsyncReadyCallback callback,
2212 gpointer user_data);
2213
2214gboolean watchdog_call_stop_finish (
2215 Watchdog *proxy,
2216 GAsyncResult *res,
2217 GError **error);
2218
2219gboolean watchdog_call_stop_sync (
2220 Watchdog *proxy,
2221 GCancellable *cancellable,
2222 GError **error);
2223
2224
2225
2226/* D-Bus property accessors: */
2227gint watchdog_get_watchdog (Watchdog *object);
2228void watchdog_set_watchdog (Watchdog *object, gint value);
2229
2230gint watchdog_get_poll_interval (Watchdog *object);
2231void watchdog_set_poll_interval (Watchdog *object, gint value);
2232
2233
2234/* ---- */
2235
2236#define TYPE_WATCHDOG_PROXY (watchdog_proxy_get_type ())
2237#define WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_PROXY, WatchdogProxy))
2238#define WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_PROXY, WatchdogProxyClass))
2239#define WATCHDOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_PROXY, WatchdogProxyClass))
2240#define IS_WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_PROXY))
2241#define IS_WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_PROXY))
2242
2243typedef struct _WatchdogProxy WatchdogProxy;
2244typedef struct _WatchdogProxyClass WatchdogProxyClass;
2245typedef struct _WatchdogProxyPrivate WatchdogProxyPrivate;
2246
2247struct _WatchdogProxy
2248{
2249 /*< private >*/
2250 GDBusProxy parent_instance;
2251 WatchdogProxyPrivate *priv;
2252};
2253
2254struct _WatchdogProxyClass
2255{
2256 GDBusProxyClass parent_class;
2257};
2258
2259GType watchdog_proxy_get_type (void) G_GNUC_CONST;
2260
2261void watchdog_proxy_new (
2262 GDBusConnection *connection,
2263 GDBusProxyFlags flags,
2264 const gchar *name,
2265 const gchar *object_path,
2266 GCancellable *cancellable,
2267 GAsyncReadyCallback callback,
2268 gpointer user_data);
2269Watchdog *watchdog_proxy_new_finish (
2270 GAsyncResult *res,
2271 GError **error);
2272Watchdog *watchdog_proxy_new_sync (
2273 GDBusConnection *connection,
2274 GDBusProxyFlags flags,
2275 const gchar *name,
2276 const gchar *object_path,
2277 GCancellable *cancellable,
2278 GError **error);
2279
2280void watchdog_proxy_new_for_bus (
2281 GBusType bus_type,
2282 GDBusProxyFlags flags,
2283 const gchar *name,
2284 const gchar *object_path,
2285 GCancellable *cancellable,
2286 GAsyncReadyCallback callback,
2287 gpointer user_data);
2288Watchdog *watchdog_proxy_new_for_bus_finish (
2289 GAsyncResult *res,
2290 GError **error);
2291Watchdog *watchdog_proxy_new_for_bus_sync (
2292 GBusType bus_type,
2293 GDBusProxyFlags flags,
2294 const gchar *name,
2295 const gchar *object_path,
2296 GCancellable *cancellable,
2297 GError **error);
2298
2299
2300/* ---- */
2301
2302#define TYPE_WATCHDOG_SKELETON (watchdog_skeleton_get_type ())
2303#define WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeleton))
2304#define WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass))
2305#define WATCHDOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass))
2306#define IS_WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_SKELETON))
2307#define IS_WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_SKELETON))
2308
2309typedef struct _WatchdogSkeleton WatchdogSkeleton;
2310typedef struct _WatchdogSkeletonClass WatchdogSkeletonClass;
2311typedef struct _WatchdogSkeletonPrivate WatchdogSkeletonPrivate;
2312
2313struct _WatchdogSkeleton
2314{
2315 /*< private >*/
2316 GDBusInterfaceSkeleton parent_instance;
2317 WatchdogSkeletonPrivate *priv;
2318};
2319
2320struct _WatchdogSkeletonClass
2321{
2322 GDBusInterfaceSkeletonClass parent_class;
2323};
2324
2325GType watchdog_skeleton_get_type (void) G_GNUC_CONST;
2326
2327Watchdog *watchdog_skeleton_new (void);
2328
2329
2330/* ------------------------------------------------------------------------ */
2331/* Declarations for org.openbmc.EventLog */
2332
2333#define TYPE_EVENT_LOG (event_log_get_type ())
2334#define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog))
2335#define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG))
2336#define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface))
2337
2338struct _EventLog;
2339typedef struct _EventLog EventLog;
2340typedef struct _EventLogIface EventLogIface;
2341
2342struct _EventLogIface
2343{
2344 GTypeInterface parent_iface;
2345
Norman James362a80f2015-09-14 14:04:39 -05002346 void (*event_log) (
2347 EventLog *object,
Norman James8abb50c2015-09-16 10:58:16 -05002348 gint arg_priority,
Norman James32e74e22015-09-15 21:28:06 -05002349 const gchar *arg_message);
Norman James362a80f2015-09-14 14:04:39 -05002350
2351};
2352
2353GType event_log_get_type (void) G_GNUC_CONST;
2354
2355GDBusInterfaceInfo *event_log_interface_info (void);
2356guint event_log_override_properties (GObjectClass *klass, guint property_id_begin);
2357
2358
Norman James362a80f2015-09-14 14:04:39 -05002359/* D-Bus signal emissions functions: */
2360void event_log_emit_event_log (
2361 EventLog *object,
Norman James8abb50c2015-09-16 10:58:16 -05002362 gint arg_priority,
Norman James32e74e22015-09-15 21:28:06 -05002363 const gchar *arg_message);
Norman James362a80f2015-09-14 14:04:39 -05002364
2365
2366
Norman James362a80f2015-09-14 14:04:39 -05002367/* ---- */
2368
2369#define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ())
2370#define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy))
2371#define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass))
2372#define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass))
2373#define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY))
2374#define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY))
2375
2376typedef struct _EventLogProxy EventLogProxy;
2377typedef struct _EventLogProxyClass EventLogProxyClass;
2378typedef struct _EventLogProxyPrivate EventLogProxyPrivate;
2379
2380struct _EventLogProxy
2381{
2382 /*< private >*/
2383 GDBusProxy parent_instance;
2384 EventLogProxyPrivate *priv;
2385};
2386
2387struct _EventLogProxyClass
2388{
2389 GDBusProxyClass parent_class;
2390};
2391
2392GType event_log_proxy_get_type (void) G_GNUC_CONST;
2393
2394void event_log_proxy_new (
2395 GDBusConnection *connection,
2396 GDBusProxyFlags flags,
2397 const gchar *name,
2398 const gchar *object_path,
2399 GCancellable *cancellable,
2400 GAsyncReadyCallback callback,
2401 gpointer user_data);
2402EventLog *event_log_proxy_new_finish (
2403 GAsyncResult *res,
2404 GError **error);
2405EventLog *event_log_proxy_new_sync (
2406 GDBusConnection *connection,
2407 GDBusProxyFlags flags,
2408 const gchar *name,
2409 const gchar *object_path,
2410 GCancellable *cancellable,
2411 GError **error);
2412
2413void event_log_proxy_new_for_bus (
2414 GBusType bus_type,
2415 GDBusProxyFlags flags,
2416 const gchar *name,
2417 const gchar *object_path,
2418 GCancellable *cancellable,
2419 GAsyncReadyCallback callback,
2420 gpointer user_data);
2421EventLog *event_log_proxy_new_for_bus_finish (
2422 GAsyncResult *res,
2423 GError **error);
2424EventLog *event_log_proxy_new_for_bus_sync (
2425 GBusType bus_type,
2426 GDBusProxyFlags flags,
2427 const gchar *name,
2428 const gchar *object_path,
2429 GCancellable *cancellable,
2430 GError **error);
2431
2432
2433/* ---- */
2434
2435#define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ())
2436#define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton))
2437#define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass))
2438#define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass))
2439#define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON))
2440#define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON))
2441
2442typedef struct _EventLogSkeleton EventLogSkeleton;
2443typedef struct _EventLogSkeletonClass EventLogSkeletonClass;
2444typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate;
2445
2446struct _EventLogSkeleton
2447{
2448 /*< private >*/
2449 GDBusInterfaceSkeleton parent_instance;
2450 EventLogSkeletonPrivate *priv;
2451};
2452
2453struct _EventLogSkeletonClass
2454{
2455 GDBusInterfaceSkeletonClass parent_class;
2456};
2457
2458GType event_log_skeleton_get_type (void) G_GNUC_CONST;
2459
2460EventLog *event_log_skeleton_new (void);
2461
2462
2463/* ------------------------------------------------------------------------ */
2464/* Declarations for org.openbmc.Flash */
2465
2466#define TYPE_FLASH (flash_get_type ())
2467#define FLASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH, Flash))
2468#define IS_FLASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH))
2469#define FLASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH, FlashIface))
2470
2471struct _Flash;
2472typedef struct _Flash Flash;
2473typedef struct _FlashIface FlashIface;
2474
2475struct _FlashIface
2476{
2477 GTypeInterface parent_iface;
2478
2479
2480 gboolean (*handle_erase) (
2481 Flash *object,
2482 GDBusMethodInvocation *invocation);
2483
2484 gboolean (*handle_init) (
2485 Flash *object,
2486 GDBusMethodInvocation *invocation);
2487
2488 gboolean (*handle_update_via_file) (
2489 Flash *object,
2490 GDBusMethodInvocation *invocation,
2491 const gchar *arg_file);
2492
2493 gboolean (*handle_update_via_http) (
2494 Flash *object,
2495 GDBusMethodInvocation *invocation,
2496 const gchar *arg_url);
2497
2498 void (*updated) (
2499 Flash *object);
2500
2501};
2502
2503GType flash_get_type (void) G_GNUC_CONST;
2504
2505GDBusInterfaceInfo *flash_interface_info (void);
2506guint flash_override_properties (GObjectClass *klass, guint property_id_begin);
2507
2508
2509/* D-Bus method call completion functions: */
2510void flash_complete_update_via_file (
2511 Flash *object,
2512 GDBusMethodInvocation *invocation);
2513
2514void flash_complete_update_via_http (
2515 Flash *object,
2516 GDBusMethodInvocation *invocation);
2517
2518void flash_complete_erase (
2519 Flash *object,
2520 GDBusMethodInvocation *invocation);
2521
2522void flash_complete_init (
2523 Flash *object,
2524 GDBusMethodInvocation *invocation);
2525
2526
2527
2528/* D-Bus signal emissions functions: */
2529void flash_emit_updated (
2530 Flash *object);
2531
2532
2533
2534/* D-Bus method calls: */
2535void flash_call_update_via_file (
2536 Flash *proxy,
2537 const gchar *arg_file,
2538 GCancellable *cancellable,
2539 GAsyncReadyCallback callback,
2540 gpointer user_data);
2541
2542gboolean flash_call_update_via_file_finish (
2543 Flash *proxy,
2544 GAsyncResult *res,
2545 GError **error);
2546
2547gboolean flash_call_update_via_file_sync (
2548 Flash *proxy,
2549 const gchar *arg_file,
2550 GCancellable *cancellable,
2551 GError **error);
2552
2553void flash_call_update_via_http (
2554 Flash *proxy,
2555 const gchar *arg_url,
2556 GCancellable *cancellable,
2557 GAsyncReadyCallback callback,
2558 gpointer user_data);
2559
2560gboolean flash_call_update_via_http_finish (
2561 Flash *proxy,
2562 GAsyncResult *res,
2563 GError **error);
2564
2565gboolean flash_call_update_via_http_sync (
2566 Flash *proxy,
2567 const gchar *arg_url,
2568 GCancellable *cancellable,
2569 GError **error);
2570
2571void flash_call_erase (
2572 Flash *proxy,
2573 GCancellable *cancellable,
2574 GAsyncReadyCallback callback,
2575 gpointer user_data);
2576
2577gboolean flash_call_erase_finish (
2578 Flash *proxy,
2579 GAsyncResult *res,
2580 GError **error);
2581
2582gboolean flash_call_erase_sync (
2583 Flash *proxy,
2584 GCancellable *cancellable,
2585 GError **error);
2586
2587void flash_call_init (
2588 Flash *proxy,
2589 GCancellable *cancellable,
2590 GAsyncReadyCallback callback,
2591 gpointer user_data);
2592
2593gboolean flash_call_init_finish (
2594 Flash *proxy,
2595 GAsyncResult *res,
2596 GError **error);
2597
2598gboolean flash_call_init_sync (
2599 Flash *proxy,
2600 GCancellable *cancellable,
2601 GError **error);
2602
2603
2604
2605/* ---- */
2606
2607#define TYPE_FLASH_PROXY (flash_proxy_get_type ())
2608#define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy))
2609#define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass))
2610#define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass))
2611#define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY))
2612#define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY))
2613
2614typedef struct _FlashProxy FlashProxy;
2615typedef struct _FlashProxyClass FlashProxyClass;
2616typedef struct _FlashProxyPrivate FlashProxyPrivate;
2617
2618struct _FlashProxy
2619{
2620 /*< private >*/
2621 GDBusProxy parent_instance;
2622 FlashProxyPrivate *priv;
2623};
2624
2625struct _FlashProxyClass
2626{
2627 GDBusProxyClass parent_class;
2628};
2629
2630GType flash_proxy_get_type (void) G_GNUC_CONST;
2631
2632void flash_proxy_new (
2633 GDBusConnection *connection,
2634 GDBusProxyFlags flags,
2635 const gchar *name,
2636 const gchar *object_path,
2637 GCancellable *cancellable,
2638 GAsyncReadyCallback callback,
2639 gpointer user_data);
2640Flash *flash_proxy_new_finish (
2641 GAsyncResult *res,
2642 GError **error);
2643Flash *flash_proxy_new_sync (
2644 GDBusConnection *connection,
2645 GDBusProxyFlags flags,
2646 const gchar *name,
2647 const gchar *object_path,
2648 GCancellable *cancellable,
2649 GError **error);
2650
2651void flash_proxy_new_for_bus (
2652 GBusType bus_type,
2653 GDBusProxyFlags flags,
2654 const gchar *name,
2655 const gchar *object_path,
2656 GCancellable *cancellable,
2657 GAsyncReadyCallback callback,
2658 gpointer user_data);
2659Flash *flash_proxy_new_for_bus_finish (
2660 GAsyncResult *res,
2661 GError **error);
2662Flash *flash_proxy_new_for_bus_sync (
2663 GBusType bus_type,
2664 GDBusProxyFlags flags,
2665 const gchar *name,
2666 const gchar *object_path,
2667 GCancellable *cancellable,
2668 GError **error);
2669
2670
2671/* ---- */
2672
2673#define TYPE_FLASH_SKELETON (flash_skeleton_get_type ())
2674#define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton))
2675#define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass))
2676#define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass))
2677#define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON))
2678#define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON))
2679
2680typedef struct _FlashSkeleton FlashSkeleton;
2681typedef struct _FlashSkeletonClass FlashSkeletonClass;
2682typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate;
2683
2684struct _FlashSkeleton
2685{
2686 /*< private >*/
2687 GDBusInterfaceSkeleton parent_instance;
2688 FlashSkeletonPrivate *priv;
2689};
2690
2691struct _FlashSkeletonClass
2692{
2693 GDBusInterfaceSkeletonClass parent_class;
2694};
2695
2696GType flash_skeleton_get_type (void) G_GNUC_CONST;
2697
2698Flash *flash_skeleton_new (void);
2699
2700
2701/* ------------------------------------------------------------------------ */
2702/* Declarations for org.openbmc.Button */
2703
2704#define TYPE_BUTTON (button_get_type ())
2705#define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button))
2706#define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON))
2707#define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface))
2708
2709struct _Button;
2710typedef struct _Button Button;
2711typedef struct _ButtonIface ButtonIface;
2712
2713struct _ButtonIface
2714{
2715 GTypeInterface parent_iface;
2716
2717
2718
2719 gboolean (*handle_is_on) (
2720 Button *object,
2721 GDBusMethodInvocation *invocation);
2722
2723 gboolean (*handle_sim_button_long_press) (
2724 Button *object,
2725 GDBusMethodInvocation *invocation);
2726
2727 gboolean (*handle_sim_button_press) (
2728 Button *object,
2729 GDBusMethodInvocation *invocation);
2730
2731 gboolean (*get_state) (Button *object);
2732
2733 void (*button_pressed) (
2734 Button *object);
2735
2736 void (*button_pressed_long) (
2737 Button *object);
2738
2739 void (*button_release) (
2740 Button *object);
2741
2742};
2743
2744GType button_get_type (void) G_GNUC_CONST;
2745
2746GDBusInterfaceInfo *button_interface_info (void);
2747guint button_override_properties (GObjectClass *klass, guint property_id_begin);
2748
2749
2750/* D-Bus method call completion functions: */
2751void button_complete_is_on (
2752 Button *object,
2753 GDBusMethodInvocation *invocation,
2754 gboolean state);
2755
2756void button_complete_sim_button_press (
2757 Button *object,
2758 GDBusMethodInvocation *invocation);
2759
2760void button_complete_sim_button_long_press (
2761 Button *object,
2762 GDBusMethodInvocation *invocation);
2763
2764
2765
2766/* D-Bus signal emissions functions: */
2767void button_emit_button_release (
2768 Button *object);
2769
2770void button_emit_button_pressed (
2771 Button *object);
2772
2773void button_emit_button_pressed_long (
2774 Button *object);
2775
2776
2777
2778/* D-Bus method calls: */
2779void button_call_is_on (
2780 Button *proxy,
2781 GCancellable *cancellable,
2782 GAsyncReadyCallback callback,
2783 gpointer user_data);
2784
2785gboolean button_call_is_on_finish (
2786 Button *proxy,
2787 gboolean *out_state,
2788 GAsyncResult *res,
2789 GError **error);
2790
2791gboolean button_call_is_on_sync (
2792 Button *proxy,
2793 gboolean *out_state,
2794 GCancellable *cancellable,
2795 GError **error);
2796
2797void button_call_sim_button_press (
2798 Button *proxy,
2799 GCancellable *cancellable,
2800 GAsyncReadyCallback callback,
2801 gpointer user_data);
2802
2803gboolean button_call_sim_button_press_finish (
2804 Button *proxy,
2805 GAsyncResult *res,
2806 GError **error);
2807
2808gboolean button_call_sim_button_press_sync (
2809 Button *proxy,
2810 GCancellable *cancellable,
2811 GError **error);
2812
2813void button_call_sim_button_long_press (
2814 Button *proxy,
2815 GCancellable *cancellable,
2816 GAsyncReadyCallback callback,
2817 gpointer user_data);
2818
2819gboolean button_call_sim_button_long_press_finish (
2820 Button *proxy,
2821 GAsyncResult *res,
2822 GError **error);
2823
2824gboolean button_call_sim_button_long_press_sync (
2825 Button *proxy,
2826 GCancellable *cancellable,
2827 GError **error);
2828
2829
2830
2831/* D-Bus property accessors: */
2832gboolean button_get_state (Button *object);
2833void button_set_state (Button *object, gboolean value);
2834
2835
2836/* ---- */
2837
2838#define TYPE_BUTTON_PROXY (button_proxy_get_type ())
2839#define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy))
2840#define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass))
2841#define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass))
2842#define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY))
2843#define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY))
2844
2845typedef struct _ButtonProxy ButtonProxy;
2846typedef struct _ButtonProxyClass ButtonProxyClass;
2847typedef struct _ButtonProxyPrivate ButtonProxyPrivate;
2848
2849struct _ButtonProxy
2850{
2851 /*< private >*/
2852 GDBusProxy parent_instance;
2853 ButtonProxyPrivate *priv;
2854};
2855
2856struct _ButtonProxyClass
2857{
2858 GDBusProxyClass parent_class;
2859};
2860
2861GType button_proxy_get_type (void) G_GNUC_CONST;
2862
2863void button_proxy_new (
2864 GDBusConnection *connection,
2865 GDBusProxyFlags flags,
2866 const gchar *name,
2867 const gchar *object_path,
2868 GCancellable *cancellable,
2869 GAsyncReadyCallback callback,
2870 gpointer user_data);
2871Button *button_proxy_new_finish (
2872 GAsyncResult *res,
2873 GError **error);
2874Button *button_proxy_new_sync (
2875 GDBusConnection *connection,
2876 GDBusProxyFlags flags,
2877 const gchar *name,
2878 const gchar *object_path,
2879 GCancellable *cancellable,
2880 GError **error);
2881
2882void button_proxy_new_for_bus (
2883 GBusType bus_type,
2884 GDBusProxyFlags flags,
2885 const gchar *name,
2886 const gchar *object_path,
2887 GCancellable *cancellable,
2888 GAsyncReadyCallback callback,
2889 gpointer user_data);
2890Button *button_proxy_new_for_bus_finish (
2891 GAsyncResult *res,
2892 GError **error);
2893Button *button_proxy_new_for_bus_sync (
2894 GBusType bus_type,
2895 GDBusProxyFlags flags,
2896 const gchar *name,
2897 const gchar *object_path,
2898 GCancellable *cancellable,
2899 GError **error);
2900
2901
2902/* ---- */
2903
2904#define TYPE_BUTTON_SKELETON (button_skeleton_get_type ())
2905#define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton))
2906#define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass))
2907#define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass))
2908#define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON))
2909#define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON))
2910
2911typedef struct _ButtonSkeleton ButtonSkeleton;
2912typedef struct _ButtonSkeletonClass ButtonSkeletonClass;
2913typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate;
2914
2915struct _ButtonSkeleton
2916{
2917 /*< private >*/
2918 GDBusInterfaceSkeleton parent_instance;
2919 ButtonSkeletonPrivate *priv;
2920};
2921
2922struct _ButtonSkeletonClass
2923{
2924 GDBusInterfaceSkeletonClass parent_class;
2925};
2926
2927GType button_skeleton_get_type (void) G_GNUC_CONST;
2928
2929Button *button_skeleton_new (void);
2930
2931
2932/* ------------------------------------------------------------------------ */
2933/* Declarations for org.openbmc.Led */
2934
2935#define TYPE_LED (led_get_type ())
2936#define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led))
2937#define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED))
2938#define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface))
2939
2940struct _Led;
2941typedef struct _Led Led;
2942typedef struct _LedIface LedIface;
2943
2944struct _LedIface
2945{
2946 GTypeInterface parent_iface;
2947
2948
2949 gboolean (*handle_set_blink_fast) (
2950 Led *object,
2951 GDBusMethodInvocation *invocation);
2952
2953 gboolean (*handle_set_blink_slow) (
2954 Led *object,
2955 GDBusMethodInvocation *invocation);
2956
2957 gboolean (*handle_set_off) (
2958 Led *object,
2959 GDBusMethodInvocation *invocation);
2960
2961 gboolean (*handle_set_on) (
2962 Led *object,
2963 GDBusMethodInvocation *invocation);
2964
2965 gint (*get_color) (Led *object);
2966
2967 const gchar * (*get_function) (Led *object);
2968
2969};
2970
2971GType led_get_type (void) G_GNUC_CONST;
2972
2973GDBusInterfaceInfo *led_interface_info (void);
2974guint led_override_properties (GObjectClass *klass, guint property_id_begin);
2975
2976
2977/* D-Bus method call completion functions: */
2978void led_complete_set_on (
2979 Led *object,
2980 GDBusMethodInvocation *invocation);
2981
2982void led_complete_set_off (
2983 Led *object,
2984 GDBusMethodInvocation *invocation);
2985
2986void led_complete_set_blink_slow (
2987 Led *object,
2988 GDBusMethodInvocation *invocation);
2989
2990void led_complete_set_blink_fast (
2991 Led *object,
2992 GDBusMethodInvocation *invocation);
2993
2994
2995
2996/* D-Bus method calls: */
2997void led_call_set_on (
2998 Led *proxy,
2999 GCancellable *cancellable,
3000 GAsyncReadyCallback callback,
3001 gpointer user_data);
3002
3003gboolean led_call_set_on_finish (
3004 Led *proxy,
3005 GAsyncResult *res,
3006 GError **error);
3007
3008gboolean led_call_set_on_sync (
3009 Led *proxy,
3010 GCancellable *cancellable,
3011 GError **error);
3012
3013void led_call_set_off (
3014 Led *proxy,
3015 GCancellable *cancellable,
3016 GAsyncReadyCallback callback,
3017 gpointer user_data);
3018
3019gboolean led_call_set_off_finish (
3020 Led *proxy,
3021 GAsyncResult *res,
3022 GError **error);
3023
3024gboolean led_call_set_off_sync (
3025 Led *proxy,
3026 GCancellable *cancellable,
3027 GError **error);
3028
3029void led_call_set_blink_slow (
3030 Led *proxy,
3031 GCancellable *cancellable,
3032 GAsyncReadyCallback callback,
3033 gpointer user_data);
3034
3035gboolean led_call_set_blink_slow_finish (
3036 Led *proxy,
3037 GAsyncResult *res,
3038 GError **error);
3039
3040gboolean led_call_set_blink_slow_sync (
3041 Led *proxy,
3042 GCancellable *cancellable,
3043 GError **error);
3044
3045void led_call_set_blink_fast (
3046 Led *proxy,
3047 GCancellable *cancellable,
3048 GAsyncReadyCallback callback,
3049 gpointer user_data);
3050
3051gboolean led_call_set_blink_fast_finish (
3052 Led *proxy,
3053 GAsyncResult *res,
3054 GError **error);
3055
3056gboolean led_call_set_blink_fast_sync (
3057 Led *proxy,
3058 GCancellable *cancellable,
3059 GError **error);
3060
3061
3062
3063/* D-Bus property accessors: */
3064gint led_get_color (Led *object);
3065void led_set_color (Led *object, gint value);
3066
3067const gchar *led_get_function (Led *object);
3068gchar *led_dup_function (Led *object);
3069void led_set_function (Led *object, const gchar *value);
3070
3071
3072/* ---- */
3073
3074#define TYPE_LED_PROXY (led_proxy_get_type ())
3075#define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy))
3076#define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass))
3077#define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass))
3078#define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY))
3079#define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY))
3080
3081typedef struct _LedProxy LedProxy;
3082typedef struct _LedProxyClass LedProxyClass;
3083typedef struct _LedProxyPrivate LedProxyPrivate;
3084
3085struct _LedProxy
3086{
3087 /*< private >*/
3088 GDBusProxy parent_instance;
3089 LedProxyPrivate *priv;
3090};
3091
3092struct _LedProxyClass
3093{
3094 GDBusProxyClass parent_class;
3095};
3096
3097GType led_proxy_get_type (void) G_GNUC_CONST;
3098
3099void led_proxy_new (
3100 GDBusConnection *connection,
3101 GDBusProxyFlags flags,
3102 const gchar *name,
3103 const gchar *object_path,
3104 GCancellable *cancellable,
3105 GAsyncReadyCallback callback,
3106 gpointer user_data);
3107Led *led_proxy_new_finish (
3108 GAsyncResult *res,
3109 GError **error);
3110Led *led_proxy_new_sync (
3111 GDBusConnection *connection,
3112 GDBusProxyFlags flags,
3113 const gchar *name,
3114 const gchar *object_path,
3115 GCancellable *cancellable,
3116 GError **error);
3117
3118void led_proxy_new_for_bus (
3119 GBusType bus_type,
3120 GDBusProxyFlags flags,
3121 const gchar *name,
3122 const gchar *object_path,
3123 GCancellable *cancellable,
3124 GAsyncReadyCallback callback,
3125 gpointer user_data);
3126Led *led_proxy_new_for_bus_finish (
3127 GAsyncResult *res,
3128 GError **error);
3129Led *led_proxy_new_for_bus_sync (
3130 GBusType bus_type,
3131 GDBusProxyFlags flags,
3132 const gchar *name,
3133 const gchar *object_path,
3134 GCancellable *cancellable,
3135 GError **error);
3136
3137
3138/* ---- */
3139
3140#define TYPE_LED_SKELETON (led_skeleton_get_type ())
3141#define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton))
3142#define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass))
3143#define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass))
3144#define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON))
3145#define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON))
3146
3147typedef struct _LedSkeleton LedSkeleton;
3148typedef struct _LedSkeletonClass LedSkeletonClass;
3149typedef struct _LedSkeletonPrivate LedSkeletonPrivate;
3150
3151struct _LedSkeleton
3152{
3153 /*< private >*/
3154 GDBusInterfaceSkeleton parent_instance;
3155 LedSkeletonPrivate *priv;
3156};
3157
3158struct _LedSkeletonClass
3159{
3160 GDBusInterfaceSkeletonClass parent_class;
3161};
3162
3163GType led_skeleton_get_type (void) G_GNUC_CONST;
3164
3165Led *led_skeleton_new (void);
3166
3167
3168/* ---- */
3169
3170#define TYPE_OBJECT (object_get_type ())
3171#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
3172#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
3173#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
3174
3175struct _Object;
3176typedef struct _Object Object;
3177typedef struct _ObjectIface ObjectIface;
3178
3179struct _ObjectIface
3180{
3181 GTypeInterface parent_iface;
3182};
3183
3184GType object_get_type (void) G_GNUC_CONST;
3185
3186Occ *object_get_occ (Object *object);
3187Fan *object_get_fan (Object *object);
3188SensorValue *object_get_sensor_value (Object *object);
3189SensorThreshold *object_get_sensor_threshold (Object *object);
3190SensorI2c *object_get_sensor_i2c (Object *object);
3191SensorMatch *object_get_sensor_match (Object *object);
3192Process *object_get_process (Object *object);
3193Control *object_get_control (Object *object);
3194ControlBmc *object_get_control_bmc (Object *object);
3195ControlHost *object_get_control_host (Object *object);
3196ControlPower *object_get_control_power (Object *object);
3197Watchdog *object_get_watchdog (Object *object);
3198EventLog *object_get_event_log (Object *object);
3199Flash *object_get_flash (Object *object);
3200Button *object_get_button (Object *object);
3201Led *object_get_led (Object *object);
3202Occ *object_peek_occ (Object *object);
3203Fan *object_peek_fan (Object *object);
3204SensorValue *object_peek_sensor_value (Object *object);
3205SensorThreshold *object_peek_sensor_threshold (Object *object);
3206SensorI2c *object_peek_sensor_i2c (Object *object);
3207SensorMatch *object_peek_sensor_match (Object *object);
3208Process *object_peek_process (Object *object);
3209Control *object_peek_control (Object *object);
3210ControlBmc *object_peek_control_bmc (Object *object);
3211ControlHost *object_peek_control_host (Object *object);
3212ControlPower *object_peek_control_power (Object *object);
3213Watchdog *object_peek_watchdog (Object *object);
3214EventLog *object_peek_event_log (Object *object);
3215Flash *object_peek_flash (Object *object);
3216Button *object_peek_button (Object *object);
3217Led *object_peek_led (Object *object);
3218
3219#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
3220#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
3221#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
3222#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
3223#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
3224#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
3225
3226typedef struct _ObjectProxy ObjectProxy;
3227typedef struct _ObjectProxyClass ObjectProxyClass;
3228typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
3229
3230struct _ObjectProxy
3231{
3232 /*< private >*/
3233 GDBusObjectProxy parent_instance;
3234 ObjectProxyPrivate *priv;
3235};
3236
3237struct _ObjectProxyClass
3238{
3239 GDBusObjectProxyClass parent_class;
3240};
3241
3242GType object_proxy_get_type (void) G_GNUC_CONST;
3243ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
3244
3245#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
3246#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
3247#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
3248#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
3249#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
3250#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
3251
3252typedef struct _ObjectSkeleton ObjectSkeleton;
3253typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
3254typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
3255
3256struct _ObjectSkeleton
3257{
3258 /*< private >*/
3259 GDBusObjectSkeleton parent_instance;
3260 ObjectSkeletonPrivate *priv;
3261};
3262
3263struct _ObjectSkeletonClass
3264{
3265 GDBusObjectSkeletonClass parent_class;
3266};
3267
3268GType object_skeleton_get_type (void) G_GNUC_CONST;
3269ObjectSkeleton *object_skeleton_new (const gchar *object_path);
3270void object_skeleton_set_occ (ObjectSkeleton *object, Occ *interface_);
3271void object_skeleton_set_fan (ObjectSkeleton *object, Fan *interface_);
3272void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_);
3273void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_);
3274void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_);
3275void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_);
3276void object_skeleton_set_process (ObjectSkeleton *object, Process *interface_);
3277void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_);
3278void object_skeleton_set_control_bmc (ObjectSkeleton *object, ControlBmc *interface_);
3279void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_);
3280void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_);
3281void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_);
3282void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_);
3283void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_);
3284void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_);
3285void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_);
3286
3287/* ---- */
3288
3289#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
3290#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
3291#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
3292#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
3293#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
3294#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
3295
3296typedef struct _ObjectManagerClient ObjectManagerClient;
3297typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
3298typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
3299
3300struct _ObjectManagerClient
3301{
3302 /*< private >*/
3303 GDBusObjectManagerClient parent_instance;
3304 ObjectManagerClientPrivate *priv;
3305};
3306
3307struct _ObjectManagerClientClass
3308{
3309 GDBusObjectManagerClientClass parent_class;
3310};
3311
3312GType object_manager_client_get_type (void) G_GNUC_CONST;
3313
3314GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
3315
3316void object_manager_client_new (
3317 GDBusConnection *connection,
3318 GDBusObjectManagerClientFlags flags,
3319 const gchar *name,
3320 const gchar *object_path,
3321 GCancellable *cancellable,
3322 GAsyncReadyCallback callback,
3323 gpointer user_data);
3324GDBusObjectManager *object_manager_client_new_finish (
3325 GAsyncResult *res,
3326 GError **error);
3327GDBusObjectManager *object_manager_client_new_sync (
3328 GDBusConnection *connection,
3329 GDBusObjectManagerClientFlags flags,
3330 const gchar *name,
3331 const gchar *object_path,
3332 GCancellable *cancellable,
3333 GError **error);
3334
3335void object_manager_client_new_for_bus (
3336 GBusType bus_type,
3337 GDBusObjectManagerClientFlags flags,
3338 const gchar *name,
3339 const gchar *object_path,
3340 GCancellable *cancellable,
3341 GAsyncReadyCallback callback,
3342 gpointer user_data);
3343GDBusObjectManager *object_manager_client_new_for_bus_finish (
3344 GAsyncResult *res,
3345 GError **error);
3346GDBusObjectManager *object_manager_client_new_for_bus_sync (
3347 GBusType bus_type,
3348 GDBusObjectManagerClientFlags flags,
3349 const gchar *name,
3350 const gchar *object_path,
3351 GCancellable *cancellable,
3352 GError **error);
3353
3354
3355G_END_DECLS
3356
3357#endif /* __INTERFACES_OPENBMC_INTF_H__ */