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