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