blob: 3ba6a298683ce5499e04fe0e8d762e3e289f0f98 [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
2512 gboolean (*handle_erase) (
2513 Flash *object,
2514 GDBusMethodInvocation *invocation);
2515
2516 gboolean (*handle_init) (
2517 Flash *object,
2518 GDBusMethodInvocation *invocation);
2519
2520 gboolean (*handle_update_via_file) (
2521 Flash *object,
2522 GDBusMethodInvocation *invocation,
2523 const gchar *arg_file);
2524
2525 gboolean (*handle_update_via_http) (
2526 Flash *object,
2527 GDBusMethodInvocation *invocation,
2528 const gchar *arg_url);
2529
2530 void (*updated) (
2531 Flash *object);
2532
2533};
2534
2535GType flash_get_type (void) G_GNUC_CONST;
2536
2537GDBusInterfaceInfo *flash_interface_info (void);
2538guint flash_override_properties (GObjectClass *klass, guint property_id_begin);
2539
2540
2541/* D-Bus method call completion functions: */
2542void flash_complete_update_via_file (
2543 Flash *object,
2544 GDBusMethodInvocation *invocation);
2545
2546void flash_complete_update_via_http (
2547 Flash *object,
2548 GDBusMethodInvocation *invocation);
2549
2550void flash_complete_erase (
2551 Flash *object,
2552 GDBusMethodInvocation *invocation);
2553
2554void flash_complete_init (
2555 Flash *object,
2556 GDBusMethodInvocation *invocation);
2557
2558
2559
2560/* D-Bus signal emissions functions: */
2561void flash_emit_updated (
2562 Flash *object);
2563
2564
2565
2566/* D-Bus method calls: */
2567void flash_call_update_via_file (
2568 Flash *proxy,
2569 const gchar *arg_file,
2570 GCancellable *cancellable,
2571 GAsyncReadyCallback callback,
2572 gpointer user_data);
2573
2574gboolean flash_call_update_via_file_finish (
2575 Flash *proxy,
2576 GAsyncResult *res,
2577 GError **error);
2578
2579gboolean flash_call_update_via_file_sync (
2580 Flash *proxy,
2581 const gchar *arg_file,
2582 GCancellable *cancellable,
2583 GError **error);
2584
2585void flash_call_update_via_http (
2586 Flash *proxy,
2587 const gchar *arg_url,
2588 GCancellable *cancellable,
2589 GAsyncReadyCallback callback,
2590 gpointer user_data);
2591
2592gboolean flash_call_update_via_http_finish (
2593 Flash *proxy,
2594 GAsyncResult *res,
2595 GError **error);
2596
2597gboolean flash_call_update_via_http_sync (
2598 Flash *proxy,
2599 const gchar *arg_url,
2600 GCancellable *cancellable,
2601 GError **error);
2602
2603void flash_call_erase (
2604 Flash *proxy,
2605 GCancellable *cancellable,
2606 GAsyncReadyCallback callback,
2607 gpointer user_data);
2608
2609gboolean flash_call_erase_finish (
2610 Flash *proxy,
2611 GAsyncResult *res,
2612 GError **error);
2613
2614gboolean flash_call_erase_sync (
2615 Flash *proxy,
2616 GCancellable *cancellable,
2617 GError **error);
2618
2619void flash_call_init (
2620 Flash *proxy,
2621 GCancellable *cancellable,
2622 GAsyncReadyCallback callback,
2623 gpointer user_data);
2624
2625gboolean flash_call_init_finish (
2626 Flash *proxy,
2627 GAsyncResult *res,
2628 GError **error);
2629
2630gboolean flash_call_init_sync (
2631 Flash *proxy,
2632 GCancellable *cancellable,
2633 GError **error);
2634
2635
2636
2637/* ---- */
2638
2639#define TYPE_FLASH_PROXY (flash_proxy_get_type ())
2640#define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy))
2641#define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass))
2642#define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass))
2643#define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY))
2644#define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY))
2645
2646typedef struct _FlashProxy FlashProxy;
2647typedef struct _FlashProxyClass FlashProxyClass;
2648typedef struct _FlashProxyPrivate FlashProxyPrivate;
2649
2650struct _FlashProxy
2651{
2652 /*< private >*/
2653 GDBusProxy parent_instance;
2654 FlashProxyPrivate *priv;
2655};
2656
2657struct _FlashProxyClass
2658{
2659 GDBusProxyClass parent_class;
2660};
2661
2662GType flash_proxy_get_type (void) G_GNUC_CONST;
2663
2664void flash_proxy_new (
2665 GDBusConnection *connection,
2666 GDBusProxyFlags flags,
2667 const gchar *name,
2668 const gchar *object_path,
2669 GCancellable *cancellable,
2670 GAsyncReadyCallback callback,
2671 gpointer user_data);
2672Flash *flash_proxy_new_finish (
2673 GAsyncResult *res,
2674 GError **error);
2675Flash *flash_proxy_new_sync (
2676 GDBusConnection *connection,
2677 GDBusProxyFlags flags,
2678 const gchar *name,
2679 const gchar *object_path,
2680 GCancellable *cancellable,
2681 GError **error);
2682
2683void flash_proxy_new_for_bus (
2684 GBusType bus_type,
2685 GDBusProxyFlags flags,
2686 const gchar *name,
2687 const gchar *object_path,
2688 GCancellable *cancellable,
2689 GAsyncReadyCallback callback,
2690 gpointer user_data);
2691Flash *flash_proxy_new_for_bus_finish (
2692 GAsyncResult *res,
2693 GError **error);
2694Flash *flash_proxy_new_for_bus_sync (
2695 GBusType bus_type,
2696 GDBusProxyFlags flags,
2697 const gchar *name,
2698 const gchar *object_path,
2699 GCancellable *cancellable,
2700 GError **error);
2701
2702
2703/* ---- */
2704
2705#define TYPE_FLASH_SKELETON (flash_skeleton_get_type ())
2706#define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton))
2707#define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass))
2708#define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass))
2709#define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON))
2710#define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON))
2711
2712typedef struct _FlashSkeleton FlashSkeleton;
2713typedef struct _FlashSkeletonClass FlashSkeletonClass;
2714typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate;
2715
2716struct _FlashSkeleton
2717{
2718 /*< private >*/
2719 GDBusInterfaceSkeleton parent_instance;
2720 FlashSkeletonPrivate *priv;
2721};
2722
2723struct _FlashSkeletonClass
2724{
2725 GDBusInterfaceSkeletonClass parent_class;
2726};
2727
2728GType flash_skeleton_get_type (void) G_GNUC_CONST;
2729
2730Flash *flash_skeleton_new (void);
2731
2732
2733/* ------------------------------------------------------------------------ */
2734/* Declarations for org.openbmc.Button */
2735
2736#define TYPE_BUTTON (button_get_type ())
2737#define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button))
2738#define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON))
2739#define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface))
2740
2741struct _Button;
2742typedef struct _Button Button;
2743typedef struct _ButtonIface ButtonIface;
2744
2745struct _ButtonIface
2746{
2747 GTypeInterface parent_iface;
2748
2749
2750
2751 gboolean (*handle_is_on) (
2752 Button *object,
2753 GDBusMethodInvocation *invocation);
2754
2755 gboolean (*handle_sim_button_long_press) (
2756 Button *object,
2757 GDBusMethodInvocation *invocation);
2758
2759 gboolean (*handle_sim_button_press) (
2760 Button *object,
2761 GDBusMethodInvocation *invocation);
2762
2763 gboolean (*get_state) (Button *object);
2764
2765 void (*button_pressed) (
2766 Button *object);
2767
2768 void (*button_pressed_long) (
2769 Button *object);
2770
2771 void (*button_release) (
2772 Button *object);
2773
2774};
2775
2776GType button_get_type (void) G_GNUC_CONST;
2777
2778GDBusInterfaceInfo *button_interface_info (void);
2779guint button_override_properties (GObjectClass *klass, guint property_id_begin);
2780
2781
2782/* D-Bus method call completion functions: */
2783void button_complete_is_on (
2784 Button *object,
2785 GDBusMethodInvocation *invocation,
2786 gboolean state);
2787
2788void button_complete_sim_button_press (
2789 Button *object,
2790 GDBusMethodInvocation *invocation);
2791
2792void button_complete_sim_button_long_press (
2793 Button *object,
2794 GDBusMethodInvocation *invocation);
2795
2796
2797
2798/* D-Bus signal emissions functions: */
2799void button_emit_button_release (
2800 Button *object);
2801
2802void button_emit_button_pressed (
2803 Button *object);
2804
2805void button_emit_button_pressed_long (
2806 Button *object);
2807
2808
2809
2810/* D-Bus method calls: */
2811void button_call_is_on (
2812 Button *proxy,
2813 GCancellable *cancellable,
2814 GAsyncReadyCallback callback,
2815 gpointer user_data);
2816
2817gboolean button_call_is_on_finish (
2818 Button *proxy,
2819 gboolean *out_state,
2820 GAsyncResult *res,
2821 GError **error);
2822
2823gboolean button_call_is_on_sync (
2824 Button *proxy,
2825 gboolean *out_state,
2826 GCancellable *cancellable,
2827 GError **error);
2828
2829void button_call_sim_button_press (
2830 Button *proxy,
2831 GCancellable *cancellable,
2832 GAsyncReadyCallback callback,
2833 gpointer user_data);
2834
2835gboolean button_call_sim_button_press_finish (
2836 Button *proxy,
2837 GAsyncResult *res,
2838 GError **error);
2839
2840gboolean button_call_sim_button_press_sync (
2841 Button *proxy,
2842 GCancellable *cancellable,
2843 GError **error);
2844
2845void button_call_sim_button_long_press (
2846 Button *proxy,
2847 GCancellable *cancellable,
2848 GAsyncReadyCallback callback,
2849 gpointer user_data);
2850
2851gboolean button_call_sim_button_long_press_finish (
2852 Button *proxy,
2853 GAsyncResult *res,
2854 GError **error);
2855
2856gboolean button_call_sim_button_long_press_sync (
2857 Button *proxy,
2858 GCancellable *cancellable,
2859 GError **error);
2860
2861
2862
2863/* D-Bus property accessors: */
2864gboolean button_get_state (Button *object);
2865void button_set_state (Button *object, gboolean value);
2866
2867
2868/* ---- */
2869
2870#define TYPE_BUTTON_PROXY (button_proxy_get_type ())
2871#define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy))
2872#define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass))
2873#define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass))
2874#define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY))
2875#define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY))
2876
2877typedef struct _ButtonProxy ButtonProxy;
2878typedef struct _ButtonProxyClass ButtonProxyClass;
2879typedef struct _ButtonProxyPrivate ButtonProxyPrivate;
2880
2881struct _ButtonProxy
2882{
2883 /*< private >*/
2884 GDBusProxy parent_instance;
2885 ButtonProxyPrivate *priv;
2886};
2887
2888struct _ButtonProxyClass
2889{
2890 GDBusProxyClass parent_class;
2891};
2892
2893GType button_proxy_get_type (void) G_GNUC_CONST;
2894
2895void button_proxy_new (
2896 GDBusConnection *connection,
2897 GDBusProxyFlags flags,
2898 const gchar *name,
2899 const gchar *object_path,
2900 GCancellable *cancellable,
2901 GAsyncReadyCallback callback,
2902 gpointer user_data);
2903Button *button_proxy_new_finish (
2904 GAsyncResult *res,
2905 GError **error);
2906Button *button_proxy_new_sync (
2907 GDBusConnection *connection,
2908 GDBusProxyFlags flags,
2909 const gchar *name,
2910 const gchar *object_path,
2911 GCancellable *cancellable,
2912 GError **error);
2913
2914void button_proxy_new_for_bus (
2915 GBusType bus_type,
2916 GDBusProxyFlags flags,
2917 const gchar *name,
2918 const gchar *object_path,
2919 GCancellable *cancellable,
2920 GAsyncReadyCallback callback,
2921 gpointer user_data);
2922Button *button_proxy_new_for_bus_finish (
2923 GAsyncResult *res,
2924 GError **error);
2925Button *button_proxy_new_for_bus_sync (
2926 GBusType bus_type,
2927 GDBusProxyFlags flags,
2928 const gchar *name,
2929 const gchar *object_path,
2930 GCancellable *cancellable,
2931 GError **error);
2932
2933
2934/* ---- */
2935
2936#define TYPE_BUTTON_SKELETON (button_skeleton_get_type ())
2937#define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton))
2938#define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass))
2939#define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass))
2940#define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON))
2941#define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON))
2942
2943typedef struct _ButtonSkeleton ButtonSkeleton;
2944typedef struct _ButtonSkeletonClass ButtonSkeletonClass;
2945typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate;
2946
2947struct _ButtonSkeleton
2948{
2949 /*< private >*/
2950 GDBusInterfaceSkeleton parent_instance;
2951 ButtonSkeletonPrivate *priv;
2952};
2953
2954struct _ButtonSkeletonClass
2955{
2956 GDBusInterfaceSkeletonClass parent_class;
2957};
2958
2959GType button_skeleton_get_type (void) G_GNUC_CONST;
2960
2961Button *button_skeleton_new (void);
2962
2963
2964/* ------------------------------------------------------------------------ */
2965/* Declarations for org.openbmc.Led */
2966
2967#define TYPE_LED (led_get_type ())
2968#define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led))
2969#define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED))
2970#define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface))
2971
2972struct _Led;
2973typedef struct _Led Led;
2974typedef struct _LedIface LedIface;
2975
2976struct _LedIface
2977{
2978 GTypeInterface parent_iface;
2979
2980
2981 gboolean (*handle_set_blink_fast) (
2982 Led *object,
2983 GDBusMethodInvocation *invocation);
2984
2985 gboolean (*handle_set_blink_slow) (
2986 Led *object,
2987 GDBusMethodInvocation *invocation);
2988
2989 gboolean (*handle_set_off) (
2990 Led *object,
2991 GDBusMethodInvocation *invocation);
2992
2993 gboolean (*handle_set_on) (
2994 Led *object,
2995 GDBusMethodInvocation *invocation);
2996
2997 gint (*get_color) (Led *object);
2998
2999 const gchar * (*get_function) (Led *object);
3000
3001};
3002
3003GType led_get_type (void) G_GNUC_CONST;
3004
3005GDBusInterfaceInfo *led_interface_info (void);
3006guint led_override_properties (GObjectClass *klass, guint property_id_begin);
3007
3008
3009/* D-Bus method call completion functions: */
3010void led_complete_set_on (
3011 Led *object,
3012 GDBusMethodInvocation *invocation);
3013
3014void led_complete_set_off (
3015 Led *object,
3016 GDBusMethodInvocation *invocation);
3017
3018void led_complete_set_blink_slow (
3019 Led *object,
3020 GDBusMethodInvocation *invocation);
3021
3022void led_complete_set_blink_fast (
3023 Led *object,
3024 GDBusMethodInvocation *invocation);
3025
3026
3027
3028/* D-Bus method calls: */
3029void led_call_set_on (
3030 Led *proxy,
3031 GCancellable *cancellable,
3032 GAsyncReadyCallback callback,
3033 gpointer user_data);
3034
3035gboolean led_call_set_on_finish (
3036 Led *proxy,
3037 GAsyncResult *res,
3038 GError **error);
3039
3040gboolean led_call_set_on_sync (
3041 Led *proxy,
3042 GCancellable *cancellable,
3043 GError **error);
3044
3045void led_call_set_off (
3046 Led *proxy,
3047 GCancellable *cancellable,
3048 GAsyncReadyCallback callback,
3049 gpointer user_data);
3050
3051gboolean led_call_set_off_finish (
3052 Led *proxy,
3053 GAsyncResult *res,
3054 GError **error);
3055
3056gboolean led_call_set_off_sync (
3057 Led *proxy,
3058 GCancellable *cancellable,
3059 GError **error);
3060
3061void led_call_set_blink_slow (
3062 Led *proxy,
3063 GCancellable *cancellable,
3064 GAsyncReadyCallback callback,
3065 gpointer user_data);
3066
3067gboolean led_call_set_blink_slow_finish (
3068 Led *proxy,
3069 GAsyncResult *res,
3070 GError **error);
3071
3072gboolean led_call_set_blink_slow_sync (
3073 Led *proxy,
3074 GCancellable *cancellable,
3075 GError **error);
3076
3077void led_call_set_blink_fast (
3078 Led *proxy,
3079 GCancellable *cancellable,
3080 GAsyncReadyCallback callback,
3081 gpointer user_data);
3082
3083gboolean led_call_set_blink_fast_finish (
3084 Led *proxy,
3085 GAsyncResult *res,
3086 GError **error);
3087
3088gboolean led_call_set_blink_fast_sync (
3089 Led *proxy,
3090 GCancellable *cancellable,
3091 GError **error);
3092
3093
3094
3095/* D-Bus property accessors: */
3096gint led_get_color (Led *object);
3097void led_set_color (Led *object, gint value);
3098
3099const gchar *led_get_function (Led *object);
3100gchar *led_dup_function (Led *object);
3101void led_set_function (Led *object, const gchar *value);
3102
3103
3104/* ---- */
3105
3106#define TYPE_LED_PROXY (led_proxy_get_type ())
3107#define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy))
3108#define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass))
3109#define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass))
3110#define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY))
3111#define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY))
3112
3113typedef struct _LedProxy LedProxy;
3114typedef struct _LedProxyClass LedProxyClass;
3115typedef struct _LedProxyPrivate LedProxyPrivate;
3116
3117struct _LedProxy
3118{
3119 /*< private >*/
3120 GDBusProxy parent_instance;
3121 LedProxyPrivate *priv;
3122};
3123
3124struct _LedProxyClass
3125{
3126 GDBusProxyClass parent_class;
3127};
3128
3129GType led_proxy_get_type (void) G_GNUC_CONST;
3130
3131void led_proxy_new (
3132 GDBusConnection *connection,
3133 GDBusProxyFlags flags,
3134 const gchar *name,
3135 const gchar *object_path,
3136 GCancellable *cancellable,
3137 GAsyncReadyCallback callback,
3138 gpointer user_data);
3139Led *led_proxy_new_finish (
3140 GAsyncResult *res,
3141 GError **error);
3142Led *led_proxy_new_sync (
3143 GDBusConnection *connection,
3144 GDBusProxyFlags flags,
3145 const gchar *name,
3146 const gchar *object_path,
3147 GCancellable *cancellable,
3148 GError **error);
3149
3150void led_proxy_new_for_bus (
3151 GBusType bus_type,
3152 GDBusProxyFlags flags,
3153 const gchar *name,
3154 const gchar *object_path,
3155 GCancellable *cancellable,
3156 GAsyncReadyCallback callback,
3157 gpointer user_data);
3158Led *led_proxy_new_for_bus_finish (
3159 GAsyncResult *res,
3160 GError **error);
3161Led *led_proxy_new_for_bus_sync (
3162 GBusType bus_type,
3163 GDBusProxyFlags flags,
3164 const gchar *name,
3165 const gchar *object_path,
3166 GCancellable *cancellable,
3167 GError **error);
3168
3169
3170/* ---- */
3171
3172#define TYPE_LED_SKELETON (led_skeleton_get_type ())
3173#define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton))
3174#define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass))
3175#define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass))
3176#define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON))
3177#define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON))
3178
3179typedef struct _LedSkeleton LedSkeleton;
3180typedef struct _LedSkeletonClass LedSkeletonClass;
3181typedef struct _LedSkeletonPrivate LedSkeletonPrivate;
3182
3183struct _LedSkeleton
3184{
3185 /*< private >*/
3186 GDBusInterfaceSkeleton parent_instance;
3187 LedSkeletonPrivate *priv;
3188};
3189
3190struct _LedSkeletonClass
3191{
3192 GDBusInterfaceSkeletonClass parent_class;
3193};
3194
3195GType led_skeleton_get_type (void) G_GNUC_CONST;
3196
3197Led *led_skeleton_new (void);
3198
3199
3200/* ---- */
3201
3202#define TYPE_OBJECT (object_get_type ())
3203#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
3204#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
3205#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
3206
3207struct _Object;
3208typedef struct _Object Object;
3209typedef struct _ObjectIface ObjectIface;
3210
3211struct _ObjectIface
3212{
3213 GTypeInterface parent_iface;
3214};
3215
3216GType object_get_type (void) G_GNUC_CONST;
3217
3218Occ *object_get_occ (Object *object);
3219Fan *object_get_fan (Object *object);
3220SensorValue *object_get_sensor_value (Object *object);
3221SensorThreshold *object_get_sensor_threshold (Object *object);
3222SensorI2c *object_get_sensor_i2c (Object *object);
3223SensorMatch *object_get_sensor_match (Object *object);
3224Process *object_get_process (Object *object);
3225Control *object_get_control (Object *object);
3226ControlBmc *object_get_control_bmc (Object *object);
3227ControlHost *object_get_control_host (Object *object);
3228ControlPower *object_get_control_power (Object *object);
3229Watchdog *object_get_watchdog (Object *object);
3230EventLog *object_get_event_log (Object *object);
3231Flash *object_get_flash (Object *object);
3232Button *object_get_button (Object *object);
3233Led *object_get_led (Object *object);
3234Occ *object_peek_occ (Object *object);
3235Fan *object_peek_fan (Object *object);
3236SensorValue *object_peek_sensor_value (Object *object);
3237SensorThreshold *object_peek_sensor_threshold (Object *object);
3238SensorI2c *object_peek_sensor_i2c (Object *object);
3239SensorMatch *object_peek_sensor_match (Object *object);
3240Process *object_peek_process (Object *object);
3241Control *object_peek_control (Object *object);
3242ControlBmc *object_peek_control_bmc (Object *object);
3243ControlHost *object_peek_control_host (Object *object);
3244ControlPower *object_peek_control_power (Object *object);
3245Watchdog *object_peek_watchdog (Object *object);
3246EventLog *object_peek_event_log (Object *object);
3247Flash *object_peek_flash (Object *object);
3248Button *object_peek_button (Object *object);
3249Led *object_peek_led (Object *object);
3250
3251#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
3252#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
3253#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
3254#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
3255#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
3256#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
3257
3258typedef struct _ObjectProxy ObjectProxy;
3259typedef struct _ObjectProxyClass ObjectProxyClass;
3260typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
3261
3262struct _ObjectProxy
3263{
3264 /*< private >*/
3265 GDBusObjectProxy parent_instance;
3266 ObjectProxyPrivate *priv;
3267};
3268
3269struct _ObjectProxyClass
3270{
3271 GDBusObjectProxyClass parent_class;
3272};
3273
3274GType object_proxy_get_type (void) G_GNUC_CONST;
3275ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
3276
3277#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
3278#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
3279#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
3280#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
3281#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
3282#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
3283
3284typedef struct _ObjectSkeleton ObjectSkeleton;
3285typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
3286typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
3287
3288struct _ObjectSkeleton
3289{
3290 /*< private >*/
3291 GDBusObjectSkeleton parent_instance;
3292 ObjectSkeletonPrivate *priv;
3293};
3294
3295struct _ObjectSkeletonClass
3296{
3297 GDBusObjectSkeletonClass parent_class;
3298};
3299
3300GType object_skeleton_get_type (void) G_GNUC_CONST;
3301ObjectSkeleton *object_skeleton_new (const gchar *object_path);
3302void object_skeleton_set_occ (ObjectSkeleton *object, Occ *interface_);
3303void object_skeleton_set_fan (ObjectSkeleton *object, Fan *interface_);
3304void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_);
Norman James362a80f2015-09-14 14:04:39 -05003305void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_);
3306void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_);
3307void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_);
3308void object_skeleton_set_process (ObjectSkeleton *object, Process *interface_);
3309void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_);
3310void object_skeleton_set_control_bmc (ObjectSkeleton *object, ControlBmc *interface_);
3311void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_);
3312void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_);
3313void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_);
3314void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_);
3315void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_);
3316void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_);
3317void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_);
3318
3319/* ---- */
3320
3321#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
3322#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
3323#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
3324#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
3325#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
3326#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
3327
3328typedef struct _ObjectManagerClient ObjectManagerClient;
3329typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
3330typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
3331
3332struct _ObjectManagerClient
3333{
3334 /*< private >*/
3335 GDBusObjectManagerClient parent_instance;
3336 ObjectManagerClientPrivate *priv;
3337};
3338
3339struct _ObjectManagerClientClass
3340{
3341 GDBusObjectManagerClientClass parent_class;
3342};
3343
3344GType object_manager_client_get_type (void) G_GNUC_CONST;
3345
3346GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
3347
3348void object_manager_client_new (
3349 GDBusConnection *connection,
3350 GDBusObjectManagerClientFlags flags,
3351 const gchar *name,
3352 const gchar *object_path,
3353 GCancellable *cancellable,
3354 GAsyncReadyCallback callback,
3355 gpointer user_data);
3356GDBusObjectManager *object_manager_client_new_finish (
3357 GAsyncResult *res,
3358 GError **error);
3359GDBusObjectManager *object_manager_client_new_sync (
3360 GDBusConnection *connection,
3361 GDBusObjectManagerClientFlags flags,
3362 const gchar *name,
3363 const gchar *object_path,
3364 GCancellable *cancellable,
3365 GError **error);
3366
3367void object_manager_client_new_for_bus (
3368 GBusType bus_type,
3369 GDBusObjectManagerClientFlags flags,
3370 const gchar *name,
3371 const gchar *object_path,
3372 GCancellable *cancellable,
3373 GAsyncReadyCallback callback,
3374 gpointer user_data);
3375GDBusObjectManager *object_manager_client_new_for_bus_finish (
3376 GAsyncResult *res,
3377 GError **error);
3378GDBusObjectManager *object_manager_client_new_for_bus_sync (
3379 GBusType bus_type,
3380 GDBusObjectManagerClientFlags flags,
3381 const gchar *name,
3382 const gchar *object_path,
3383 GCancellable *cancellable,
3384 GError **error);
3385
3386
3387G_END_DECLS
3388
3389#endif /* __INTERFACES_OPENBMC_INTF_H__ */