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