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