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