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