blob: 4a1d7d68ee84ee9c91004970965b7f5a56b34092 [file] [log] [blame]
Norman James362a80f2015-09-14 14:04:39 -05001/*
Brad Bishop6bbf6462016-06-21 15:12:19 -04002 * Generated by gdbus-codegen 2.42.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
Williamf784d752016-01-19 12:28:49 +08001720 gboolean (*handle_warm_reset) (
Norman James362a80f2015-09-14 14:04:39 -05001721 ControlBmc *object,
1722 GDBusMethodInvocation *invocation);
1723
1724};
1725
1726GType control_bmc_get_type (void) G_GNUC_CONST;
1727
1728GDBusInterfaceInfo *control_bmc_interface_info (void);
1729guint control_bmc_override_properties (GObjectClass *klass, guint property_id_begin);
1730
1731
1732/* D-Bus method call completion functions: */
Williamf784d752016-01-19 12:28:49 +08001733void control_bmc_complete_warm_reset (
Norman James362a80f2015-09-14 14:04:39 -05001734 ControlBmc *object,
1735 GDBusMethodInvocation *invocation);
1736
1737
1738
1739/* D-Bus method calls: */
Williamf784d752016-01-19 12:28:49 +08001740void control_bmc_call_warm_reset (
Norman James362a80f2015-09-14 14:04:39 -05001741 ControlBmc *proxy,
1742 GCancellable *cancellable,
1743 GAsyncReadyCallback callback,
1744 gpointer user_data);
1745
Williamf784d752016-01-19 12:28:49 +08001746gboolean control_bmc_call_warm_reset_finish (
Norman James362a80f2015-09-14 14:04:39 -05001747 ControlBmc *proxy,
1748 GAsyncResult *res,
1749 GError **error);
1750
Williamf784d752016-01-19 12:28:49 +08001751gboolean control_bmc_call_warm_reset_sync (
Norman James362a80f2015-09-14 14:04:39 -05001752 ControlBmc *proxy,
1753 GCancellable *cancellable,
1754 GError **error);
1755
1756
1757
1758/* ---- */
1759
1760#define TYPE_CONTROL_BMC_PROXY (control_bmc_proxy_get_type ())
1761#define CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxy))
1762#define CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass))
1763#define CONTROL_BMC_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass))
1764#define IS_CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_PROXY))
1765#define IS_CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_PROXY))
1766
1767typedef struct _ControlBmcProxy ControlBmcProxy;
1768typedef struct _ControlBmcProxyClass ControlBmcProxyClass;
1769typedef struct _ControlBmcProxyPrivate ControlBmcProxyPrivate;
1770
1771struct _ControlBmcProxy
1772{
1773 /*< private >*/
1774 GDBusProxy parent_instance;
1775 ControlBmcProxyPrivate *priv;
1776};
1777
1778struct _ControlBmcProxyClass
1779{
1780 GDBusProxyClass parent_class;
1781};
1782
1783GType control_bmc_proxy_get_type (void) G_GNUC_CONST;
1784
1785void control_bmc_proxy_new (
1786 GDBusConnection *connection,
1787 GDBusProxyFlags flags,
1788 const gchar *name,
1789 const gchar *object_path,
1790 GCancellable *cancellable,
1791 GAsyncReadyCallback callback,
1792 gpointer user_data);
1793ControlBmc *control_bmc_proxy_new_finish (
1794 GAsyncResult *res,
1795 GError **error);
1796ControlBmc *control_bmc_proxy_new_sync (
1797 GDBusConnection *connection,
1798 GDBusProxyFlags flags,
1799 const gchar *name,
1800 const gchar *object_path,
1801 GCancellable *cancellable,
1802 GError **error);
1803
1804void control_bmc_proxy_new_for_bus (
1805 GBusType bus_type,
1806 GDBusProxyFlags flags,
1807 const gchar *name,
1808 const gchar *object_path,
1809 GCancellable *cancellable,
1810 GAsyncReadyCallback callback,
1811 gpointer user_data);
1812ControlBmc *control_bmc_proxy_new_for_bus_finish (
1813 GAsyncResult *res,
1814 GError **error);
1815ControlBmc *control_bmc_proxy_new_for_bus_sync (
1816 GBusType bus_type,
1817 GDBusProxyFlags flags,
1818 const gchar *name,
1819 const gchar *object_path,
1820 GCancellable *cancellable,
1821 GError **error);
1822
1823
1824/* ---- */
1825
1826#define TYPE_CONTROL_BMC_SKELETON (control_bmc_skeleton_get_type ())
1827#define CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeleton))
1828#define CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass))
1829#define CONTROL_BMC_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass))
1830#define IS_CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_SKELETON))
1831#define IS_CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_SKELETON))
1832
1833typedef struct _ControlBmcSkeleton ControlBmcSkeleton;
1834typedef struct _ControlBmcSkeletonClass ControlBmcSkeletonClass;
1835typedef struct _ControlBmcSkeletonPrivate ControlBmcSkeletonPrivate;
1836
1837struct _ControlBmcSkeleton
1838{
1839 /*< private >*/
1840 GDBusInterfaceSkeleton parent_instance;
1841 ControlBmcSkeletonPrivate *priv;
1842};
1843
1844struct _ControlBmcSkeletonClass
1845{
1846 GDBusInterfaceSkeletonClass parent_class;
1847};
1848
1849GType control_bmc_skeleton_get_type (void) G_GNUC_CONST;
1850
1851ControlBmc *control_bmc_skeleton_new (void);
1852
1853
1854/* ------------------------------------------------------------------------ */
1855/* Declarations for org.openbmc.control.Host */
1856
1857#define TYPE_CONTROL_HOST (control_host_get_type ())
1858#define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost))
1859#define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST))
1860#define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface))
1861
1862struct _ControlHost;
1863typedef struct _ControlHost ControlHost;
1864typedef struct _ControlHostIface ControlHostIface;
1865
1866struct _ControlHostIface
1867{
1868 GTypeInterface parent_iface;
1869
1870
Norman James493996c2015-10-31 17:27:13 -05001871
Norman James362a80f2015-09-14 14:04:39 -05001872 gboolean (*handle_boot) (
1873 ControlHost *object,
1874 GDBusMethodInvocation *invocation);
1875
1876 gboolean (*handle_reboot) (
1877 ControlHost *object,
1878 GDBusMethodInvocation *invocation);
1879
1880 gboolean (*handle_shutdown) (
1881 ControlHost *object,
1882 GDBusMethodInvocation *invocation);
1883
Norman James493996c2015-10-31 17:27:13 -05001884 gint (*get_debug_mode) (ControlHost *object);
1885
1886 const gchar * (*get_flash_side) (ControlHost *object);
1887
Norman James362a80f2015-09-14 14:04:39 -05001888 void (*booted) (
1889 ControlHost *object);
1890
1891};
1892
1893GType control_host_get_type (void) G_GNUC_CONST;
1894
1895GDBusInterfaceInfo *control_host_interface_info (void);
1896guint control_host_override_properties (GObjectClass *klass, guint property_id_begin);
1897
1898
1899/* D-Bus method call completion functions: */
1900void control_host_complete_boot (
1901 ControlHost *object,
1902 GDBusMethodInvocation *invocation);
1903
1904void control_host_complete_shutdown (
1905 ControlHost *object,
1906 GDBusMethodInvocation *invocation);
1907
1908void control_host_complete_reboot (
1909 ControlHost *object,
1910 GDBusMethodInvocation *invocation);
1911
1912
1913
1914/* D-Bus signal emissions functions: */
1915void control_host_emit_booted (
1916 ControlHost *object);
1917
1918
1919
1920/* D-Bus method calls: */
1921void control_host_call_boot (
1922 ControlHost *proxy,
1923 GCancellable *cancellable,
1924 GAsyncReadyCallback callback,
1925 gpointer user_data);
1926
1927gboolean control_host_call_boot_finish (
1928 ControlHost *proxy,
1929 GAsyncResult *res,
1930 GError **error);
1931
1932gboolean control_host_call_boot_sync (
1933 ControlHost *proxy,
1934 GCancellable *cancellable,
1935 GError **error);
1936
1937void control_host_call_shutdown (
1938 ControlHost *proxy,
1939 GCancellable *cancellable,
1940 GAsyncReadyCallback callback,
1941 gpointer user_data);
1942
1943gboolean control_host_call_shutdown_finish (
1944 ControlHost *proxy,
1945 GAsyncResult *res,
1946 GError **error);
1947
1948gboolean control_host_call_shutdown_sync (
1949 ControlHost *proxy,
1950 GCancellable *cancellable,
1951 GError **error);
1952
1953void control_host_call_reboot (
1954 ControlHost *proxy,
1955 GCancellable *cancellable,
1956 GAsyncReadyCallback callback,
1957 gpointer user_data);
1958
1959gboolean control_host_call_reboot_finish (
1960 ControlHost *proxy,
1961 GAsyncResult *res,
1962 GError **error);
1963
1964gboolean control_host_call_reboot_sync (
1965 ControlHost *proxy,
1966 GCancellable *cancellable,
1967 GError **error);
1968
1969
1970
Norman James493996c2015-10-31 17:27:13 -05001971/* D-Bus property accessors: */
1972gint control_host_get_debug_mode (ControlHost *object);
1973void control_host_set_debug_mode (ControlHost *object, gint value);
1974
1975const gchar *control_host_get_flash_side (ControlHost *object);
1976gchar *control_host_dup_flash_side (ControlHost *object);
1977void control_host_set_flash_side (ControlHost *object, const gchar *value);
1978
1979
Norman James362a80f2015-09-14 14:04:39 -05001980/* ---- */
1981
1982#define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ())
1983#define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy))
1984#define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass))
1985#define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass))
1986#define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY))
1987#define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY))
1988
1989typedef struct _ControlHostProxy ControlHostProxy;
1990typedef struct _ControlHostProxyClass ControlHostProxyClass;
1991typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate;
1992
1993struct _ControlHostProxy
1994{
1995 /*< private >*/
1996 GDBusProxy parent_instance;
1997 ControlHostProxyPrivate *priv;
1998};
1999
2000struct _ControlHostProxyClass
2001{
2002 GDBusProxyClass parent_class;
2003};
2004
2005GType control_host_proxy_get_type (void) G_GNUC_CONST;
2006
2007void control_host_proxy_new (
2008 GDBusConnection *connection,
2009 GDBusProxyFlags flags,
2010 const gchar *name,
2011 const gchar *object_path,
2012 GCancellable *cancellable,
2013 GAsyncReadyCallback callback,
2014 gpointer user_data);
2015ControlHost *control_host_proxy_new_finish (
2016 GAsyncResult *res,
2017 GError **error);
2018ControlHost *control_host_proxy_new_sync (
2019 GDBusConnection *connection,
2020 GDBusProxyFlags flags,
2021 const gchar *name,
2022 const gchar *object_path,
2023 GCancellable *cancellable,
2024 GError **error);
2025
2026void control_host_proxy_new_for_bus (
2027 GBusType bus_type,
2028 GDBusProxyFlags flags,
2029 const gchar *name,
2030 const gchar *object_path,
2031 GCancellable *cancellable,
2032 GAsyncReadyCallback callback,
2033 gpointer user_data);
2034ControlHost *control_host_proxy_new_for_bus_finish (
2035 GAsyncResult *res,
2036 GError **error);
2037ControlHost *control_host_proxy_new_for_bus_sync (
2038 GBusType bus_type,
2039 GDBusProxyFlags flags,
2040 const gchar *name,
2041 const gchar *object_path,
2042 GCancellable *cancellable,
2043 GError **error);
2044
2045
2046/* ---- */
2047
2048#define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ())
2049#define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton))
2050#define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass))
2051#define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass))
2052#define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON))
2053#define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON))
2054
2055typedef struct _ControlHostSkeleton ControlHostSkeleton;
2056typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass;
2057typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate;
2058
2059struct _ControlHostSkeleton
2060{
2061 /*< private >*/
2062 GDBusInterfaceSkeleton parent_instance;
2063 ControlHostSkeletonPrivate *priv;
2064};
2065
2066struct _ControlHostSkeletonClass
2067{
2068 GDBusInterfaceSkeletonClass parent_class;
2069};
2070
2071GType control_host_skeleton_get_type (void) G_GNUC_CONST;
2072
2073ControlHost *control_host_skeleton_new (void);
2074
2075
2076/* ------------------------------------------------------------------------ */
2077/* Declarations for org.openbmc.control.Power */
2078
2079#define TYPE_CONTROL_POWER (control_power_get_type ())
2080#define CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER, ControlPower))
2081#define IS_CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER))
2082#define CONTROL_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_POWER, ControlPowerIface))
2083
2084struct _ControlPower;
2085typedef struct _ControlPower ControlPower;
2086typedef struct _ControlPowerIface ControlPowerIface;
2087
2088struct _ControlPowerIface
2089{
2090 GTypeInterface parent_iface;
2091
2092
2093
2094 gboolean (*handle_get_power_state) (
2095 ControlPower *object,
2096 GDBusMethodInvocation *invocation);
2097
2098 gboolean (*handle_set_power_state) (
2099 ControlPower *object,
2100 GDBusMethodInvocation *invocation,
2101 gint arg_state);
2102
2103 gint (*get_pgood) (ControlPower *object);
2104
Norman James32e74e22015-09-15 21:28:06 -05002105 gint (*get_pgood_timeout) (ControlPower *object);
2106
Norman James362a80f2015-09-14 14:04:39 -05002107 gint (*get_state) (ControlPower *object);
2108
2109 void (*power_good) (
2110 ControlPower *object);
2111
2112 void (*power_lost) (
2113 ControlPower *object);
2114
2115};
2116
2117GType control_power_get_type (void) G_GNUC_CONST;
2118
2119GDBusInterfaceInfo *control_power_interface_info (void);
2120guint control_power_override_properties (GObjectClass *klass, guint property_id_begin);
2121
2122
2123/* D-Bus method call completion functions: */
2124void control_power_complete_set_power_state (
2125 ControlPower *object,
2126 GDBusMethodInvocation *invocation);
2127
2128void control_power_complete_get_power_state (
2129 ControlPower *object,
2130 GDBusMethodInvocation *invocation,
2131 gint state);
2132
2133
2134
2135/* D-Bus signal emissions functions: */
2136void control_power_emit_power_good (
2137 ControlPower *object);
2138
2139void control_power_emit_power_lost (
2140 ControlPower *object);
2141
2142
2143
2144/* D-Bus method calls: */
2145void control_power_call_set_power_state (
2146 ControlPower *proxy,
2147 gint arg_state,
2148 GCancellable *cancellable,
2149 GAsyncReadyCallback callback,
2150 gpointer user_data);
2151
2152gboolean control_power_call_set_power_state_finish (
2153 ControlPower *proxy,
2154 GAsyncResult *res,
2155 GError **error);
2156
2157gboolean control_power_call_set_power_state_sync (
2158 ControlPower *proxy,
2159 gint arg_state,
2160 GCancellable *cancellable,
2161 GError **error);
2162
2163void control_power_call_get_power_state (
2164 ControlPower *proxy,
2165 GCancellable *cancellable,
2166 GAsyncReadyCallback callback,
2167 gpointer user_data);
2168
2169gboolean control_power_call_get_power_state_finish (
2170 ControlPower *proxy,
2171 gint *out_state,
2172 GAsyncResult *res,
2173 GError **error);
2174
2175gboolean control_power_call_get_power_state_sync (
2176 ControlPower *proxy,
2177 gint *out_state,
2178 GCancellable *cancellable,
2179 GError **error);
2180
2181
2182
2183/* D-Bus property accessors: */
2184gint control_power_get_pgood (ControlPower *object);
2185void control_power_set_pgood (ControlPower *object, gint value);
2186
2187gint control_power_get_state (ControlPower *object);
2188void control_power_set_state (ControlPower *object, gint value);
2189
Norman James32e74e22015-09-15 21:28:06 -05002190gint control_power_get_pgood_timeout (ControlPower *object);
2191void control_power_set_pgood_timeout (ControlPower *object, gint value);
2192
Norman James362a80f2015-09-14 14:04:39 -05002193
2194/* ---- */
2195
2196#define TYPE_CONTROL_POWER_PROXY (control_power_proxy_get_type ())
2197#define CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxy))
2198#define CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass))
2199#define CONTROL_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass))
2200#define IS_CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_PROXY))
2201#define IS_CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_PROXY))
2202
2203typedef struct _ControlPowerProxy ControlPowerProxy;
2204typedef struct _ControlPowerProxyClass ControlPowerProxyClass;
2205typedef struct _ControlPowerProxyPrivate ControlPowerProxyPrivate;
2206
2207struct _ControlPowerProxy
2208{
2209 /*< private >*/
2210 GDBusProxy parent_instance;
2211 ControlPowerProxyPrivate *priv;
2212};
2213
2214struct _ControlPowerProxyClass
2215{
2216 GDBusProxyClass parent_class;
2217};
2218
2219GType control_power_proxy_get_type (void) G_GNUC_CONST;
2220
2221void control_power_proxy_new (
2222 GDBusConnection *connection,
2223 GDBusProxyFlags flags,
2224 const gchar *name,
2225 const gchar *object_path,
2226 GCancellable *cancellable,
2227 GAsyncReadyCallback callback,
2228 gpointer user_data);
2229ControlPower *control_power_proxy_new_finish (
2230 GAsyncResult *res,
2231 GError **error);
2232ControlPower *control_power_proxy_new_sync (
2233 GDBusConnection *connection,
2234 GDBusProxyFlags flags,
2235 const gchar *name,
2236 const gchar *object_path,
2237 GCancellable *cancellable,
2238 GError **error);
2239
2240void control_power_proxy_new_for_bus (
2241 GBusType bus_type,
2242 GDBusProxyFlags flags,
2243 const gchar *name,
2244 const gchar *object_path,
2245 GCancellable *cancellable,
2246 GAsyncReadyCallback callback,
2247 gpointer user_data);
2248ControlPower *control_power_proxy_new_for_bus_finish (
2249 GAsyncResult *res,
2250 GError **error);
2251ControlPower *control_power_proxy_new_for_bus_sync (
2252 GBusType bus_type,
2253 GDBusProxyFlags flags,
2254 const gchar *name,
2255 const gchar *object_path,
2256 GCancellable *cancellable,
2257 GError **error);
2258
2259
2260/* ---- */
2261
2262#define TYPE_CONTROL_POWER_SKELETON (control_power_skeleton_get_type ())
2263#define CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeleton))
2264#define CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass))
2265#define CONTROL_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass))
2266#define IS_CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_SKELETON))
2267#define IS_CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_SKELETON))
2268
2269typedef struct _ControlPowerSkeleton ControlPowerSkeleton;
2270typedef struct _ControlPowerSkeletonClass ControlPowerSkeletonClass;
2271typedef struct _ControlPowerSkeletonPrivate ControlPowerSkeletonPrivate;
2272
2273struct _ControlPowerSkeleton
2274{
2275 /*< private >*/
2276 GDBusInterfaceSkeleton parent_instance;
2277 ControlPowerSkeletonPrivate *priv;
2278};
2279
2280struct _ControlPowerSkeletonClass
2281{
2282 GDBusInterfaceSkeletonClass parent_class;
2283};
2284
2285GType control_power_skeleton_get_type (void) G_GNUC_CONST;
2286
2287ControlPower *control_power_skeleton_new (void);
2288
2289
2290/* ------------------------------------------------------------------------ */
Adriana Kobylakfd778822016-06-16 09:08:37 -05002291/* Declarations for org.openbmc.control.Checkstop */
2292
2293#define TYPE_CONTROL_CHECKSTOP (control_checkstop_get_type ())
2294#define CONTROL_CHECKSTOP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP, ControlCheckstop))
2295#define IS_CONTROL_CHECKSTOP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP))
2296#define CONTROL_CHECKSTOP_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_CHECKSTOP, ControlCheckstopIface))
2297
2298struct _ControlCheckstop;
2299typedef struct _ControlCheckstop ControlCheckstop;
2300typedef struct _ControlCheckstopIface ControlCheckstopIface;
2301
2302struct _ControlCheckstopIface
2303{
2304 GTypeInterface parent_iface;
2305};
2306
2307GType control_checkstop_get_type (void) G_GNUC_CONST;
2308
2309GDBusInterfaceInfo *control_checkstop_interface_info (void);
2310guint control_checkstop_override_properties (GObjectClass *klass, guint property_id_begin);
2311
2312
2313/* ---- */
2314
2315#define TYPE_CONTROL_CHECKSTOP_PROXY (control_checkstop_proxy_get_type ())
2316#define CONTROL_CHECKSTOP_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxy))
2317#define CONTROL_CHECKSTOP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxyClass))
2318#define CONTROL_CHECKSTOP_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxyClass))
2319#define IS_CONTROL_CHECKSTOP_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP_PROXY))
2320#define IS_CONTROL_CHECKSTOP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_CHECKSTOP_PROXY))
2321
2322typedef struct _ControlCheckstopProxy ControlCheckstopProxy;
2323typedef struct _ControlCheckstopProxyClass ControlCheckstopProxyClass;
2324typedef struct _ControlCheckstopProxyPrivate ControlCheckstopProxyPrivate;
2325
2326struct _ControlCheckstopProxy
2327{
2328 /*< private >*/
2329 GDBusProxy parent_instance;
2330 ControlCheckstopProxyPrivate *priv;
2331};
2332
2333struct _ControlCheckstopProxyClass
2334{
2335 GDBusProxyClass parent_class;
2336};
2337
2338GType control_checkstop_proxy_get_type (void) G_GNUC_CONST;
2339
2340void control_checkstop_proxy_new (
2341 GDBusConnection *connection,
2342 GDBusProxyFlags flags,
2343 const gchar *name,
2344 const gchar *object_path,
2345 GCancellable *cancellable,
2346 GAsyncReadyCallback callback,
2347 gpointer user_data);
2348ControlCheckstop *control_checkstop_proxy_new_finish (
2349 GAsyncResult *res,
2350 GError **error);
2351ControlCheckstop *control_checkstop_proxy_new_sync (
2352 GDBusConnection *connection,
2353 GDBusProxyFlags flags,
2354 const gchar *name,
2355 const gchar *object_path,
2356 GCancellable *cancellable,
2357 GError **error);
2358
2359void control_checkstop_proxy_new_for_bus (
2360 GBusType bus_type,
2361 GDBusProxyFlags flags,
2362 const gchar *name,
2363 const gchar *object_path,
2364 GCancellable *cancellable,
2365 GAsyncReadyCallback callback,
2366 gpointer user_data);
2367ControlCheckstop *control_checkstop_proxy_new_for_bus_finish (
2368 GAsyncResult *res,
2369 GError **error);
2370ControlCheckstop *control_checkstop_proxy_new_for_bus_sync (
2371 GBusType bus_type,
2372 GDBusProxyFlags flags,
2373 const gchar *name,
2374 const gchar *object_path,
2375 GCancellable *cancellable,
2376 GError **error);
2377
2378
2379/* ---- */
2380
2381#define TYPE_CONTROL_CHECKSTOP_SKELETON (control_checkstop_skeleton_get_type ())
2382#define CONTROL_CHECKSTOP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeleton))
2383#define CONTROL_CHECKSTOP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeletonClass))
2384#define CONTROL_CHECKSTOP_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeletonClass))
2385#define IS_CONTROL_CHECKSTOP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP_SKELETON))
2386#define IS_CONTROL_CHECKSTOP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_CHECKSTOP_SKELETON))
2387
2388typedef struct _ControlCheckstopSkeleton ControlCheckstopSkeleton;
2389typedef struct _ControlCheckstopSkeletonClass ControlCheckstopSkeletonClass;
2390typedef struct _ControlCheckstopSkeletonPrivate ControlCheckstopSkeletonPrivate;
2391
2392struct _ControlCheckstopSkeleton
2393{
2394 /*< private >*/
2395 GDBusInterfaceSkeleton parent_instance;
2396 ControlCheckstopSkeletonPrivate *priv;
2397};
2398
2399struct _ControlCheckstopSkeletonClass
2400{
2401 GDBusInterfaceSkeletonClass parent_class;
2402};
2403
2404GType control_checkstop_skeleton_get_type (void) G_GNUC_CONST;
2405
2406ControlCheckstop *control_checkstop_skeleton_new (void);
2407
2408
2409/* ------------------------------------------------------------------------ */
Norman James362a80f2015-09-14 14:04:39 -05002410/* Declarations for org.openbmc.Watchdog */
2411
2412#define TYPE_WATCHDOG (watchdog_get_type ())
2413#define WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG, Watchdog))
2414#define IS_WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG))
2415#define WATCHDOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_WATCHDOG, WatchdogIface))
2416
2417struct _Watchdog;
2418typedef struct _Watchdog Watchdog;
2419typedef struct _WatchdogIface WatchdogIface;
2420
2421struct _WatchdogIface
2422{
2423 GTypeInterface parent_iface;
2424
2425
2426
2427 gboolean (*handle_poke) (
2428 Watchdog *object,
2429 GDBusMethodInvocation *invocation);
2430
Adriana Kobylak2cb27752015-10-19 16:23:14 -05002431 gboolean (*handle_set) (
2432 Watchdog *object,
2433 GDBusMethodInvocation *invocation,
2434 gint arg_interval);
2435
Norman James362a80f2015-09-14 14:04:39 -05002436 gboolean (*handle_start) (
2437 Watchdog *object,
2438 GDBusMethodInvocation *invocation);
2439
2440 gboolean (*handle_stop) (
2441 Watchdog *object,
2442 GDBusMethodInvocation *invocation);
2443
2444 gint (*get_poll_interval) (Watchdog *object);
2445
2446 gint (*get_watchdog) (Watchdog *object);
2447
2448 void (*watchdog_error) (
2449 Watchdog *object);
2450
2451};
2452
2453GType watchdog_get_type (void) G_GNUC_CONST;
2454
2455GDBusInterfaceInfo *watchdog_interface_info (void);
2456guint watchdog_override_properties (GObjectClass *klass, guint property_id_begin);
2457
2458
2459/* D-Bus method call completion functions: */
2460void watchdog_complete_start (
2461 Watchdog *object,
2462 GDBusMethodInvocation *invocation);
2463
2464void watchdog_complete_poke (
2465 Watchdog *object,
2466 GDBusMethodInvocation *invocation);
2467
2468void watchdog_complete_stop (
2469 Watchdog *object,
2470 GDBusMethodInvocation *invocation);
2471
Adriana Kobylak2cb27752015-10-19 16:23:14 -05002472void watchdog_complete_set (
2473 Watchdog *object,
2474 GDBusMethodInvocation *invocation);
2475
Norman James362a80f2015-09-14 14:04:39 -05002476
2477
2478/* D-Bus signal emissions functions: */
2479void watchdog_emit_watchdog_error (
2480 Watchdog *object);
2481
2482
2483
2484/* D-Bus method calls: */
2485void watchdog_call_start (
2486 Watchdog *proxy,
2487 GCancellable *cancellable,
2488 GAsyncReadyCallback callback,
2489 gpointer user_data);
2490
2491gboolean watchdog_call_start_finish (
2492 Watchdog *proxy,
2493 GAsyncResult *res,
2494 GError **error);
2495
2496gboolean watchdog_call_start_sync (
2497 Watchdog *proxy,
2498 GCancellable *cancellable,
2499 GError **error);
2500
2501void watchdog_call_poke (
2502 Watchdog *proxy,
2503 GCancellable *cancellable,
2504 GAsyncReadyCallback callback,
2505 gpointer user_data);
2506
2507gboolean watchdog_call_poke_finish (
2508 Watchdog *proxy,
2509 GAsyncResult *res,
2510 GError **error);
2511
2512gboolean watchdog_call_poke_sync (
2513 Watchdog *proxy,
2514 GCancellable *cancellable,
2515 GError **error);
2516
2517void watchdog_call_stop (
2518 Watchdog *proxy,
2519 GCancellable *cancellable,
2520 GAsyncReadyCallback callback,
2521 gpointer user_data);
2522
2523gboolean watchdog_call_stop_finish (
2524 Watchdog *proxy,
2525 GAsyncResult *res,
2526 GError **error);
2527
2528gboolean watchdog_call_stop_sync (
2529 Watchdog *proxy,
2530 GCancellable *cancellable,
2531 GError **error);
2532
Adriana Kobylak2cb27752015-10-19 16:23:14 -05002533void watchdog_call_set (
2534 Watchdog *proxy,
2535 gint arg_interval,
2536 GCancellable *cancellable,
2537 GAsyncReadyCallback callback,
2538 gpointer user_data);
2539
2540gboolean watchdog_call_set_finish (
2541 Watchdog *proxy,
2542 GAsyncResult *res,
2543 GError **error);
2544
2545gboolean watchdog_call_set_sync (
2546 Watchdog *proxy,
2547 gint arg_interval,
2548 GCancellable *cancellable,
2549 GError **error);
2550
Norman James362a80f2015-09-14 14:04:39 -05002551
2552
2553/* D-Bus property accessors: */
2554gint watchdog_get_watchdog (Watchdog *object);
2555void watchdog_set_watchdog (Watchdog *object, gint value);
2556
2557gint watchdog_get_poll_interval (Watchdog *object);
2558void watchdog_set_poll_interval (Watchdog *object, gint value);
2559
2560
2561/* ---- */
2562
2563#define TYPE_WATCHDOG_PROXY (watchdog_proxy_get_type ())
2564#define WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_PROXY, WatchdogProxy))
2565#define WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_PROXY, WatchdogProxyClass))
2566#define WATCHDOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_PROXY, WatchdogProxyClass))
2567#define IS_WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_PROXY))
2568#define IS_WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_PROXY))
2569
2570typedef struct _WatchdogProxy WatchdogProxy;
2571typedef struct _WatchdogProxyClass WatchdogProxyClass;
2572typedef struct _WatchdogProxyPrivate WatchdogProxyPrivate;
2573
2574struct _WatchdogProxy
2575{
2576 /*< private >*/
2577 GDBusProxy parent_instance;
2578 WatchdogProxyPrivate *priv;
2579};
2580
2581struct _WatchdogProxyClass
2582{
2583 GDBusProxyClass parent_class;
2584};
2585
2586GType watchdog_proxy_get_type (void) G_GNUC_CONST;
2587
2588void watchdog_proxy_new (
2589 GDBusConnection *connection,
2590 GDBusProxyFlags flags,
2591 const gchar *name,
2592 const gchar *object_path,
2593 GCancellable *cancellable,
2594 GAsyncReadyCallback callback,
2595 gpointer user_data);
2596Watchdog *watchdog_proxy_new_finish (
2597 GAsyncResult *res,
2598 GError **error);
2599Watchdog *watchdog_proxy_new_sync (
2600 GDBusConnection *connection,
2601 GDBusProxyFlags flags,
2602 const gchar *name,
2603 const gchar *object_path,
2604 GCancellable *cancellable,
2605 GError **error);
2606
2607void watchdog_proxy_new_for_bus (
2608 GBusType bus_type,
2609 GDBusProxyFlags flags,
2610 const gchar *name,
2611 const gchar *object_path,
2612 GCancellable *cancellable,
2613 GAsyncReadyCallback callback,
2614 gpointer user_data);
2615Watchdog *watchdog_proxy_new_for_bus_finish (
2616 GAsyncResult *res,
2617 GError **error);
2618Watchdog *watchdog_proxy_new_for_bus_sync (
2619 GBusType bus_type,
2620 GDBusProxyFlags flags,
2621 const gchar *name,
2622 const gchar *object_path,
2623 GCancellable *cancellable,
2624 GError **error);
2625
2626
2627/* ---- */
2628
2629#define TYPE_WATCHDOG_SKELETON (watchdog_skeleton_get_type ())
2630#define WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeleton))
2631#define WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass))
2632#define WATCHDOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass))
2633#define IS_WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_SKELETON))
2634#define IS_WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_SKELETON))
2635
2636typedef struct _WatchdogSkeleton WatchdogSkeleton;
2637typedef struct _WatchdogSkeletonClass WatchdogSkeletonClass;
2638typedef struct _WatchdogSkeletonPrivate WatchdogSkeletonPrivate;
2639
2640struct _WatchdogSkeleton
2641{
2642 /*< private >*/
2643 GDBusInterfaceSkeleton parent_instance;
2644 WatchdogSkeletonPrivate *priv;
2645};
2646
2647struct _WatchdogSkeletonClass
2648{
2649 GDBusInterfaceSkeletonClass parent_class;
2650};
2651
2652GType watchdog_skeleton_get_type (void) G_GNUC_CONST;
2653
2654Watchdog *watchdog_skeleton_new (void);
2655
2656
2657/* ------------------------------------------------------------------------ */
2658/* Declarations for org.openbmc.EventLog */
2659
2660#define TYPE_EVENT_LOG (event_log_get_type ())
2661#define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog))
2662#define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG))
2663#define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface))
2664
2665struct _EventLog;
2666typedef struct _EventLog EventLog;
2667typedef struct _EventLogIface EventLogIface;
2668
2669struct _EventLogIface
2670{
2671 GTypeInterface parent_iface;
2672
Norman James2d1ee892015-09-16 23:13:45 -05002673
2674 gboolean (*handle_get_event_log) (
2675 EventLog *object,
2676 GDBusMethodInvocation *invocation);
2677
Norman James362a80f2015-09-14 14:04:39 -05002678 void (*event_log) (
2679 EventLog *object,
Norman James8abb50c2015-09-16 10:58:16 -05002680 gint arg_priority,
Norman James88872672015-09-21 16:51:35 -05002681 const gchar *arg_message,
2682 gint arg_rc);
Norman James362a80f2015-09-14 14:04:39 -05002683
2684};
2685
2686GType event_log_get_type (void) G_GNUC_CONST;
2687
2688GDBusInterfaceInfo *event_log_interface_info (void);
2689guint event_log_override_properties (GObjectClass *klass, guint property_id_begin);
2690
2691
Norman James2d1ee892015-09-16 23:13:45 -05002692/* D-Bus method call completion functions: */
2693void event_log_complete_get_event_log (
2694 EventLog *object,
2695 GDBusMethodInvocation *invocation,
2696 GVariant *log);
2697
2698
2699
Norman James362a80f2015-09-14 14:04:39 -05002700/* D-Bus signal emissions functions: */
2701void event_log_emit_event_log (
2702 EventLog *object,
Norman James8abb50c2015-09-16 10:58:16 -05002703 gint arg_priority,
Norman James88872672015-09-21 16:51:35 -05002704 const gchar *arg_message,
2705 gint arg_rc);
Norman James362a80f2015-09-14 14:04:39 -05002706
2707
2708
Norman James2d1ee892015-09-16 23:13:45 -05002709/* D-Bus method calls: */
2710void event_log_call_get_event_log (
2711 EventLog *proxy,
2712 GCancellable *cancellable,
2713 GAsyncReadyCallback callback,
2714 gpointer user_data);
2715
2716gboolean event_log_call_get_event_log_finish (
2717 EventLog *proxy,
2718 GVariant **out_log,
2719 GAsyncResult *res,
2720 GError **error);
2721
2722gboolean event_log_call_get_event_log_sync (
2723 EventLog *proxy,
2724 GVariant **out_log,
2725 GCancellable *cancellable,
2726 GError **error);
2727
2728
2729
Norman James362a80f2015-09-14 14:04:39 -05002730/* ---- */
2731
2732#define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ())
2733#define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy))
2734#define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass))
2735#define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass))
2736#define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY))
2737#define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY))
2738
2739typedef struct _EventLogProxy EventLogProxy;
2740typedef struct _EventLogProxyClass EventLogProxyClass;
2741typedef struct _EventLogProxyPrivate EventLogProxyPrivate;
2742
2743struct _EventLogProxy
2744{
2745 /*< private >*/
2746 GDBusProxy parent_instance;
2747 EventLogProxyPrivate *priv;
2748};
2749
2750struct _EventLogProxyClass
2751{
2752 GDBusProxyClass parent_class;
2753};
2754
2755GType event_log_proxy_get_type (void) G_GNUC_CONST;
2756
2757void event_log_proxy_new (
2758 GDBusConnection *connection,
2759 GDBusProxyFlags flags,
2760 const gchar *name,
2761 const gchar *object_path,
2762 GCancellable *cancellable,
2763 GAsyncReadyCallback callback,
2764 gpointer user_data);
2765EventLog *event_log_proxy_new_finish (
2766 GAsyncResult *res,
2767 GError **error);
2768EventLog *event_log_proxy_new_sync (
2769 GDBusConnection *connection,
2770 GDBusProxyFlags flags,
2771 const gchar *name,
2772 const gchar *object_path,
2773 GCancellable *cancellable,
2774 GError **error);
2775
2776void event_log_proxy_new_for_bus (
2777 GBusType bus_type,
2778 GDBusProxyFlags flags,
2779 const gchar *name,
2780 const gchar *object_path,
2781 GCancellable *cancellable,
2782 GAsyncReadyCallback callback,
2783 gpointer user_data);
2784EventLog *event_log_proxy_new_for_bus_finish (
2785 GAsyncResult *res,
2786 GError **error);
2787EventLog *event_log_proxy_new_for_bus_sync (
2788 GBusType bus_type,
2789 GDBusProxyFlags flags,
2790 const gchar *name,
2791 const gchar *object_path,
2792 GCancellable *cancellable,
2793 GError **error);
2794
2795
2796/* ---- */
2797
2798#define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ())
2799#define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton))
2800#define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass))
2801#define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass))
2802#define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON))
2803#define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON))
2804
2805typedef struct _EventLogSkeleton EventLogSkeleton;
2806typedef struct _EventLogSkeletonClass EventLogSkeletonClass;
2807typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate;
2808
2809struct _EventLogSkeleton
2810{
2811 /*< private >*/
2812 GDBusInterfaceSkeleton parent_instance;
2813 EventLogSkeletonPrivate *priv;
2814};
2815
2816struct _EventLogSkeletonClass
2817{
2818 GDBusInterfaceSkeletonClass parent_class;
2819};
2820
2821GType event_log_skeleton_get_type (void) G_GNUC_CONST;
2822
2823EventLog *event_log_skeleton_new (void);
2824
2825
2826/* ------------------------------------------------------------------------ */
2827/* Declarations for org.openbmc.Flash */
2828
2829#define TYPE_FLASH (flash_get_type ())
2830#define FLASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH, Flash))
2831#define IS_FLASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH))
2832#define FLASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH, FlashIface))
2833
2834struct _Flash;
2835typedef struct _Flash Flash;
2836typedef struct _FlashIface FlashIface;
2837
2838struct _FlashIface
2839{
2840 GTypeInterface parent_iface;
2841
2842
Norman James18998182015-10-11 21:54:53 -05002843
Norman James166acf42015-10-22 07:11:51 -05002844 gboolean (*handle_done) (
2845 Flash *object,
2846 GDBusMethodInvocation *invocation);
2847
2848 gboolean (*handle_error) (
2849 Flash *object,
2850 GDBusMethodInvocation *invocation,
2851 const gchar *arg_message);
2852
Norman James362a80f2015-09-14 14:04:39 -05002853 gboolean (*handle_init) (
2854 Flash *object,
2855 GDBusMethodInvocation *invocation);
2856
Norman Jamesdbcffbd2015-10-06 16:53:06 -05002857 gboolean (*handle_update) (
Norman James362a80f2015-09-14 14:04:39 -05002858 Flash *object,
2859 GDBusMethodInvocation *invocation,
Norman Jamesdbcffbd2015-10-06 16:53:06 -05002860 const gchar *arg_filename);
Norman James362a80f2015-09-14 14:04:39 -05002861
Norman Jamesf066e872015-10-07 15:29:51 -05002862 gboolean (*handle_update_via_tftp) (
2863 Flash *object,
2864 GDBusMethodInvocation *invocation,
2865 const gchar *arg_url,
2866 const gchar *arg_filename);
2867
Norman James18998182015-10-11 21:54:53 -05002868 const gchar * (*get_filename) (Flash *object);
2869
2870 const gchar * (*get_flasher_instance) (Flash *object);
2871
2872 const gchar * (*get_flasher_name) (Flash *object);
2873
2874 const gchar * (*get_flasher_path) (Flash *object);
2875
Norman James166acf42015-10-22 07:11:51 -05002876 const gchar * (*get_status) (Flash *object);
2877
Norman Jamesf066e872015-10-07 15:29:51 -05002878 void (*download) (
2879 Flash *object,
2880 const gchar *arg_url,
2881 const gchar *arg_filename);
2882
Norman James362a80f2015-09-14 14:04:39 -05002883 void (*updated) (
2884 Flash *object);
2885
2886};
2887
2888GType flash_get_type (void) G_GNUC_CONST;
2889
2890GDBusInterfaceInfo *flash_interface_info (void);
2891guint flash_override_properties (GObjectClass *klass, guint property_id_begin);
2892
2893
2894/* D-Bus method call completion functions: */
Norman Jamesdbcffbd2015-10-06 16:53:06 -05002895void flash_complete_update (
Norman James362a80f2015-09-14 14:04:39 -05002896 Flash *object,
2897 GDBusMethodInvocation *invocation);
2898
Norman James166acf42015-10-22 07:11:51 -05002899void flash_complete_error (
2900 Flash *object,
2901 GDBusMethodInvocation *invocation);
2902
2903void flash_complete_done (
2904 Flash *object,
2905 GDBusMethodInvocation *invocation);
2906
Norman Jamesf066e872015-10-07 15:29:51 -05002907void flash_complete_update_via_tftp (
2908 Flash *object,
2909 GDBusMethodInvocation *invocation);
2910
Norman James362a80f2015-09-14 14:04:39 -05002911void flash_complete_init (
2912 Flash *object,
2913 GDBusMethodInvocation *invocation);
2914
2915
2916
2917/* D-Bus signal emissions functions: */
2918void flash_emit_updated (
2919 Flash *object);
2920
Norman Jamesf066e872015-10-07 15:29:51 -05002921void flash_emit_download (
2922 Flash *object,
2923 const gchar *arg_url,
2924 const gchar *arg_filename);
2925
Norman James362a80f2015-09-14 14:04:39 -05002926
2927
2928/* D-Bus method calls: */
Norman Jamesdbcffbd2015-10-06 16:53:06 -05002929void flash_call_update (
Norman James362a80f2015-09-14 14:04:39 -05002930 Flash *proxy,
Norman Jamesdbcffbd2015-10-06 16:53:06 -05002931 const gchar *arg_filename,
Norman James362a80f2015-09-14 14:04:39 -05002932 GCancellable *cancellable,
2933 GAsyncReadyCallback callback,
2934 gpointer user_data);
2935
Norman Jamesdbcffbd2015-10-06 16:53:06 -05002936gboolean flash_call_update_finish (
Norman James362a80f2015-09-14 14:04:39 -05002937 Flash *proxy,
2938 GAsyncResult *res,
2939 GError **error);
2940
Norman Jamesdbcffbd2015-10-06 16:53:06 -05002941gboolean flash_call_update_sync (
Norman James362a80f2015-09-14 14:04:39 -05002942 Flash *proxy,
Norman Jamesdbcffbd2015-10-06 16:53:06 -05002943 const gchar *arg_filename,
Norman James362a80f2015-09-14 14:04:39 -05002944 GCancellable *cancellable,
2945 GError **error);
2946
Norman James166acf42015-10-22 07:11:51 -05002947void flash_call_error (
2948 Flash *proxy,
2949 const gchar *arg_message,
2950 GCancellable *cancellable,
2951 GAsyncReadyCallback callback,
2952 gpointer user_data);
2953
2954gboolean flash_call_error_finish (
2955 Flash *proxy,
2956 GAsyncResult *res,
2957 GError **error);
2958
2959gboolean flash_call_error_sync (
2960 Flash *proxy,
2961 const gchar *arg_message,
2962 GCancellable *cancellable,
2963 GError **error);
2964
2965void flash_call_done (
2966 Flash *proxy,
2967 GCancellable *cancellable,
2968 GAsyncReadyCallback callback,
2969 gpointer user_data);
2970
2971gboolean flash_call_done_finish (
2972 Flash *proxy,
2973 GAsyncResult *res,
2974 GError **error);
2975
2976gboolean flash_call_done_sync (
2977 Flash *proxy,
2978 GCancellable *cancellable,
2979 GError **error);
2980
Norman Jamesf066e872015-10-07 15:29:51 -05002981void flash_call_update_via_tftp (
2982 Flash *proxy,
2983 const gchar *arg_url,
2984 const gchar *arg_filename,
2985 GCancellable *cancellable,
2986 GAsyncReadyCallback callback,
2987 gpointer user_data);
2988
2989gboolean flash_call_update_via_tftp_finish (
2990 Flash *proxy,
2991 GAsyncResult *res,
2992 GError **error);
2993
2994gboolean flash_call_update_via_tftp_sync (
2995 Flash *proxy,
2996 const gchar *arg_url,
2997 const gchar *arg_filename,
2998 GCancellable *cancellable,
2999 GError **error);
3000
Norman James362a80f2015-09-14 14:04:39 -05003001void flash_call_init (
3002 Flash *proxy,
3003 GCancellable *cancellable,
3004 GAsyncReadyCallback callback,
3005 gpointer user_data);
3006
3007gboolean flash_call_init_finish (
3008 Flash *proxy,
3009 GAsyncResult *res,
3010 GError **error);
3011
3012gboolean flash_call_init_sync (
3013 Flash *proxy,
3014 GCancellable *cancellable,
3015 GError **error);
3016
3017
3018
Norman James18998182015-10-11 21:54:53 -05003019/* D-Bus property accessors: */
3020const gchar *flash_get_filename (Flash *object);
3021gchar *flash_dup_filename (Flash *object);
3022void flash_set_filename (Flash *object, const gchar *value);
3023
3024const gchar *flash_get_flasher_path (Flash *object);
3025gchar *flash_dup_flasher_path (Flash *object);
3026void flash_set_flasher_path (Flash *object, const gchar *value);
3027
3028const gchar *flash_get_flasher_name (Flash *object);
3029gchar *flash_dup_flasher_name (Flash *object);
3030void flash_set_flasher_name (Flash *object, const gchar *value);
3031
3032const gchar *flash_get_flasher_instance (Flash *object);
3033gchar *flash_dup_flasher_instance (Flash *object);
3034void flash_set_flasher_instance (Flash *object, const gchar *value);
3035
Norman James166acf42015-10-22 07:11:51 -05003036const gchar *flash_get_status (Flash *object);
3037gchar *flash_dup_status (Flash *object);
3038void flash_set_status (Flash *object, const gchar *value);
3039
Norman James18998182015-10-11 21:54:53 -05003040
Norman James362a80f2015-09-14 14:04:39 -05003041/* ---- */
3042
3043#define TYPE_FLASH_PROXY (flash_proxy_get_type ())
3044#define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy))
3045#define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass))
3046#define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass))
3047#define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY))
3048#define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY))
3049
3050typedef struct _FlashProxy FlashProxy;
3051typedef struct _FlashProxyClass FlashProxyClass;
3052typedef struct _FlashProxyPrivate FlashProxyPrivate;
3053
3054struct _FlashProxy
3055{
3056 /*< private >*/
3057 GDBusProxy parent_instance;
3058 FlashProxyPrivate *priv;
3059};
3060
3061struct _FlashProxyClass
3062{
3063 GDBusProxyClass parent_class;
3064};
3065
3066GType flash_proxy_get_type (void) G_GNUC_CONST;
3067
3068void flash_proxy_new (
3069 GDBusConnection *connection,
3070 GDBusProxyFlags flags,
3071 const gchar *name,
3072 const gchar *object_path,
3073 GCancellable *cancellable,
3074 GAsyncReadyCallback callback,
3075 gpointer user_data);
3076Flash *flash_proxy_new_finish (
3077 GAsyncResult *res,
3078 GError **error);
3079Flash *flash_proxy_new_sync (
3080 GDBusConnection *connection,
3081 GDBusProxyFlags flags,
3082 const gchar *name,
3083 const gchar *object_path,
3084 GCancellable *cancellable,
3085 GError **error);
3086
3087void flash_proxy_new_for_bus (
3088 GBusType bus_type,
3089 GDBusProxyFlags flags,
3090 const gchar *name,
3091 const gchar *object_path,
3092 GCancellable *cancellable,
3093 GAsyncReadyCallback callback,
3094 gpointer user_data);
3095Flash *flash_proxy_new_for_bus_finish (
3096 GAsyncResult *res,
3097 GError **error);
3098Flash *flash_proxy_new_for_bus_sync (
3099 GBusType bus_type,
3100 GDBusProxyFlags flags,
3101 const gchar *name,
3102 const gchar *object_path,
3103 GCancellable *cancellable,
3104 GError **error);
3105
3106
3107/* ---- */
3108
3109#define TYPE_FLASH_SKELETON (flash_skeleton_get_type ())
3110#define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton))
3111#define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass))
3112#define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass))
3113#define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON))
3114#define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON))
3115
3116typedef struct _FlashSkeleton FlashSkeleton;
3117typedef struct _FlashSkeletonClass FlashSkeletonClass;
3118typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate;
3119
3120struct _FlashSkeleton
3121{
3122 /*< private >*/
3123 GDBusInterfaceSkeleton parent_instance;
3124 FlashSkeletonPrivate *priv;
3125};
3126
3127struct _FlashSkeletonClass
3128{
3129 GDBusInterfaceSkeletonClass parent_class;
3130};
3131
3132GType flash_skeleton_get_type (void) G_GNUC_CONST;
3133
3134Flash *flash_skeleton_new (void);
3135
3136
3137/* ------------------------------------------------------------------------ */
Norman James18998182015-10-11 21:54:53 -05003138/* Declarations for org.openbmc.FlashControl */
3139
3140#define TYPE_FLASH_CONTROL (flash_control_get_type ())
3141#define FLASH_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL, FlashControl))
3142#define IS_FLASH_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL))
3143#define FLASH_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH_CONTROL, FlashControlIface))
3144
3145struct _FlashControl;
3146typedef struct _FlashControl FlashControl;
3147typedef struct _FlashControlIface FlashControlIface;
3148
3149struct _FlashControlIface
3150{
3151 GTypeInterface parent_iface;
3152
3153
3154
3155 gboolean (*handle_flash) (
3156 FlashControl *object,
3157 GDBusMethodInvocation *invocation,
3158 const gchar *arg_type,
3159 const gchar *arg_filename);
3160
3161 const gchar * (*get_filename) (FlashControl *object);
3162
3163 const gchar * (*get_type_) (FlashControl *object);
3164
3165 void (*done) (
3166 FlashControl *object,
3167 const gchar *arg_filename);
3168
3169 void (*error) (
3170 FlashControl *object,
3171 const gchar *arg_filename);
3172
3173 void (*progress) (
3174 FlashControl *object,
3175 const gchar *arg_filename,
3176 guchar arg_progress);
3177
3178};
3179
3180GType flash_control_get_type (void) G_GNUC_CONST;
3181
3182GDBusInterfaceInfo *flash_control_interface_info (void);
3183guint flash_control_override_properties (GObjectClass *klass, guint property_id_begin);
3184
3185
3186/* D-Bus method call completion functions: */
3187void flash_control_complete_flash (
3188 FlashControl *object,
3189 GDBusMethodInvocation *invocation);
3190
3191
3192
3193/* D-Bus signal emissions functions: */
3194void flash_control_emit_done (
3195 FlashControl *object,
3196 const gchar *arg_filename);
3197
3198void flash_control_emit_error (
3199 FlashControl *object,
3200 const gchar *arg_filename);
3201
3202void flash_control_emit_progress (
3203 FlashControl *object,
3204 const gchar *arg_filename,
3205 guchar arg_progress);
3206
3207
3208
3209/* D-Bus method calls: */
3210void flash_control_call_flash (
3211 FlashControl *proxy,
3212 const gchar *arg_type,
3213 const gchar *arg_filename,
3214 GCancellable *cancellable,
3215 GAsyncReadyCallback callback,
3216 gpointer user_data);
3217
3218gboolean flash_control_call_flash_finish (
3219 FlashControl *proxy,
3220 GAsyncResult *res,
3221 GError **error);
3222
3223gboolean flash_control_call_flash_sync (
3224 FlashControl *proxy,
3225 const gchar *arg_type,
3226 const gchar *arg_filename,
3227 GCancellable *cancellable,
3228 GError **error);
3229
3230
3231
3232/* D-Bus property accessors: */
3233const gchar *flash_control_get_filename (FlashControl *object);
3234gchar *flash_control_dup_filename (FlashControl *object);
3235void flash_control_set_filename (FlashControl *object, const gchar *value);
3236
3237const gchar *flash_control_get_type_ (FlashControl *object);
3238gchar *flash_control_dup_type_ (FlashControl *object);
3239void flash_control_set_type_ (FlashControl *object, const gchar *value);
3240
3241
3242/* ---- */
3243
3244#define TYPE_FLASH_CONTROL_PROXY (flash_control_proxy_get_type ())
3245#define FLASH_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL_PROXY, FlashControlProxy))
3246#define FLASH_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_CONTROL_PROXY, FlashControlProxyClass))
3247#define FLASH_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_CONTROL_PROXY, FlashControlProxyClass))
3248#define IS_FLASH_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL_PROXY))
3249#define IS_FLASH_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_CONTROL_PROXY))
3250
3251typedef struct _FlashControlProxy FlashControlProxy;
3252typedef struct _FlashControlProxyClass FlashControlProxyClass;
3253typedef struct _FlashControlProxyPrivate FlashControlProxyPrivate;
3254
3255struct _FlashControlProxy
3256{
3257 /*< private >*/
3258 GDBusProxy parent_instance;
3259 FlashControlProxyPrivate *priv;
3260};
3261
3262struct _FlashControlProxyClass
3263{
3264 GDBusProxyClass parent_class;
3265};
3266
3267GType flash_control_proxy_get_type (void) G_GNUC_CONST;
3268
3269void flash_control_proxy_new (
3270 GDBusConnection *connection,
3271 GDBusProxyFlags flags,
3272 const gchar *name,
3273 const gchar *object_path,
3274 GCancellable *cancellable,
3275 GAsyncReadyCallback callback,
3276 gpointer user_data);
3277FlashControl *flash_control_proxy_new_finish (
3278 GAsyncResult *res,
3279 GError **error);
3280FlashControl *flash_control_proxy_new_sync (
3281 GDBusConnection *connection,
3282 GDBusProxyFlags flags,
3283 const gchar *name,
3284 const gchar *object_path,
3285 GCancellable *cancellable,
3286 GError **error);
3287
3288void flash_control_proxy_new_for_bus (
3289 GBusType bus_type,
3290 GDBusProxyFlags flags,
3291 const gchar *name,
3292 const gchar *object_path,
3293 GCancellable *cancellable,
3294 GAsyncReadyCallback callback,
3295 gpointer user_data);
3296FlashControl *flash_control_proxy_new_for_bus_finish (
3297 GAsyncResult *res,
3298 GError **error);
3299FlashControl *flash_control_proxy_new_for_bus_sync (
3300 GBusType bus_type,
3301 GDBusProxyFlags flags,
3302 const gchar *name,
3303 const gchar *object_path,
3304 GCancellable *cancellable,
3305 GError **error);
3306
3307
3308/* ---- */
3309
3310#define TYPE_FLASH_CONTROL_SKELETON (flash_control_skeleton_get_type ())
3311#define FLASH_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeleton))
3312#define FLASH_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeletonClass))
3313#define FLASH_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeletonClass))
3314#define IS_FLASH_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL_SKELETON))
3315#define IS_FLASH_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_CONTROL_SKELETON))
3316
3317typedef struct _FlashControlSkeleton FlashControlSkeleton;
3318typedef struct _FlashControlSkeletonClass FlashControlSkeletonClass;
3319typedef struct _FlashControlSkeletonPrivate FlashControlSkeletonPrivate;
3320
3321struct _FlashControlSkeleton
3322{
3323 /*< private >*/
3324 GDBusInterfaceSkeleton parent_instance;
3325 FlashControlSkeletonPrivate *priv;
3326};
3327
3328struct _FlashControlSkeletonClass
3329{
3330 GDBusInterfaceSkeletonClass parent_class;
3331};
3332
3333GType flash_control_skeleton_get_type (void) G_GNUC_CONST;
3334
3335FlashControl *flash_control_skeleton_new (void);
3336
3337
3338/* ------------------------------------------------------------------------ */
Norman James362a80f2015-09-14 14:04:39 -05003339/* Declarations for org.openbmc.Button */
3340
3341#define TYPE_BUTTON (button_get_type ())
3342#define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button))
3343#define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON))
3344#define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface))
3345
3346struct _Button;
3347typedef struct _Button Button;
3348typedef struct _ButtonIface ButtonIface;
3349
3350struct _ButtonIface
3351{
3352 GTypeInterface parent_iface;
3353
3354
3355
3356 gboolean (*handle_is_on) (
3357 Button *object,
3358 GDBusMethodInvocation *invocation);
3359
Norman James493996c2015-10-31 17:27:13 -05003360 gboolean (*handle_sim_long_press) (
Norman James362a80f2015-09-14 14:04:39 -05003361 Button *object,
3362 GDBusMethodInvocation *invocation);
3363
Norman James493996c2015-10-31 17:27:13 -05003364 gboolean (*handle_sim_press) (
Norman James362a80f2015-09-14 14:04:39 -05003365 Button *object,
3366 GDBusMethodInvocation *invocation);
3367
3368 gboolean (*get_state) (Button *object);
3369
Norman James493996c2015-10-31 17:27:13 -05003370 guint64 (*get_timer) (Button *object);
3371
3372 void (*pressed) (
Norman James362a80f2015-09-14 14:04:39 -05003373 Button *object);
3374
Norman James493996c2015-10-31 17:27:13 -05003375 void (*pressed_long) (
Norman James362a80f2015-09-14 14:04:39 -05003376 Button *object);
3377
Norman James493996c2015-10-31 17:27:13 -05003378 void (*released) (
Norman James362a80f2015-09-14 14:04:39 -05003379 Button *object);
3380
3381};
3382
3383GType button_get_type (void) G_GNUC_CONST;
3384
3385GDBusInterfaceInfo *button_interface_info (void);
3386guint button_override_properties (GObjectClass *klass, guint property_id_begin);
3387
3388
3389/* D-Bus method call completion functions: */
3390void button_complete_is_on (
3391 Button *object,
3392 GDBusMethodInvocation *invocation,
3393 gboolean state);
3394
Norman James493996c2015-10-31 17:27:13 -05003395void button_complete_sim_press (
Norman James362a80f2015-09-14 14:04:39 -05003396 Button *object,
3397 GDBusMethodInvocation *invocation);
3398
Norman James493996c2015-10-31 17:27:13 -05003399void button_complete_sim_long_press (
Norman James362a80f2015-09-14 14:04:39 -05003400 Button *object,
3401 GDBusMethodInvocation *invocation);
3402
3403
3404
3405/* D-Bus signal emissions functions: */
Norman James493996c2015-10-31 17:27:13 -05003406void button_emit_released (
Norman James362a80f2015-09-14 14:04:39 -05003407 Button *object);
3408
Norman James493996c2015-10-31 17:27:13 -05003409void button_emit_pressed (
Norman James362a80f2015-09-14 14:04:39 -05003410 Button *object);
3411
Norman James493996c2015-10-31 17:27:13 -05003412void button_emit_pressed_long (
Norman James362a80f2015-09-14 14:04:39 -05003413 Button *object);
3414
3415
3416
3417/* D-Bus method calls: */
3418void button_call_is_on (
3419 Button *proxy,
3420 GCancellable *cancellable,
3421 GAsyncReadyCallback callback,
3422 gpointer user_data);
3423
3424gboolean button_call_is_on_finish (
3425 Button *proxy,
3426 gboolean *out_state,
3427 GAsyncResult *res,
3428 GError **error);
3429
3430gboolean button_call_is_on_sync (
3431 Button *proxy,
3432 gboolean *out_state,
3433 GCancellable *cancellable,
3434 GError **error);
3435
Norman James493996c2015-10-31 17:27:13 -05003436void button_call_sim_press (
Norman James362a80f2015-09-14 14:04:39 -05003437 Button *proxy,
3438 GCancellable *cancellable,
3439 GAsyncReadyCallback callback,
3440 gpointer user_data);
3441
Norman James493996c2015-10-31 17:27:13 -05003442gboolean button_call_sim_press_finish (
Norman James362a80f2015-09-14 14:04:39 -05003443 Button *proxy,
3444 GAsyncResult *res,
3445 GError **error);
3446
Norman James493996c2015-10-31 17:27:13 -05003447gboolean button_call_sim_press_sync (
Norman James362a80f2015-09-14 14:04:39 -05003448 Button *proxy,
3449 GCancellable *cancellable,
3450 GError **error);
3451
Norman James493996c2015-10-31 17:27:13 -05003452void button_call_sim_long_press (
Norman James362a80f2015-09-14 14:04:39 -05003453 Button *proxy,
3454 GCancellable *cancellable,
3455 GAsyncReadyCallback callback,
3456 gpointer user_data);
3457
Norman James493996c2015-10-31 17:27:13 -05003458gboolean button_call_sim_long_press_finish (
Norman James362a80f2015-09-14 14:04:39 -05003459 Button *proxy,
3460 GAsyncResult *res,
3461 GError **error);
3462
Norman James493996c2015-10-31 17:27:13 -05003463gboolean button_call_sim_long_press_sync (
Norman James362a80f2015-09-14 14:04:39 -05003464 Button *proxy,
3465 GCancellable *cancellable,
3466 GError **error);
3467
3468
3469
3470/* D-Bus property accessors: */
3471gboolean button_get_state (Button *object);
3472void button_set_state (Button *object, gboolean value);
3473
Norman James493996c2015-10-31 17:27:13 -05003474guint64 button_get_timer (Button *object);
3475void button_set_timer (Button *object, guint64 value);
3476
Norman James362a80f2015-09-14 14:04:39 -05003477
3478/* ---- */
3479
3480#define TYPE_BUTTON_PROXY (button_proxy_get_type ())
3481#define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy))
3482#define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass))
3483#define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass))
3484#define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY))
3485#define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY))
3486
3487typedef struct _ButtonProxy ButtonProxy;
3488typedef struct _ButtonProxyClass ButtonProxyClass;
3489typedef struct _ButtonProxyPrivate ButtonProxyPrivate;
3490
3491struct _ButtonProxy
3492{
3493 /*< private >*/
3494 GDBusProxy parent_instance;
3495 ButtonProxyPrivate *priv;
3496};
3497
3498struct _ButtonProxyClass
3499{
3500 GDBusProxyClass parent_class;
3501};
3502
3503GType button_proxy_get_type (void) G_GNUC_CONST;
3504
3505void button_proxy_new (
3506 GDBusConnection *connection,
3507 GDBusProxyFlags flags,
3508 const gchar *name,
3509 const gchar *object_path,
3510 GCancellable *cancellable,
3511 GAsyncReadyCallback callback,
3512 gpointer user_data);
3513Button *button_proxy_new_finish (
3514 GAsyncResult *res,
3515 GError **error);
3516Button *button_proxy_new_sync (
3517 GDBusConnection *connection,
3518 GDBusProxyFlags flags,
3519 const gchar *name,
3520 const gchar *object_path,
3521 GCancellable *cancellable,
3522 GError **error);
3523
3524void button_proxy_new_for_bus (
3525 GBusType bus_type,
3526 GDBusProxyFlags flags,
3527 const gchar *name,
3528 const gchar *object_path,
3529 GCancellable *cancellable,
3530 GAsyncReadyCallback callback,
3531 gpointer user_data);
3532Button *button_proxy_new_for_bus_finish (
3533 GAsyncResult *res,
3534 GError **error);
3535Button *button_proxy_new_for_bus_sync (
3536 GBusType bus_type,
3537 GDBusProxyFlags flags,
3538 const gchar *name,
3539 const gchar *object_path,
3540 GCancellable *cancellable,
3541 GError **error);
3542
3543
3544/* ---- */
3545
3546#define TYPE_BUTTON_SKELETON (button_skeleton_get_type ())
3547#define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton))
3548#define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass))
3549#define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass))
3550#define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON))
3551#define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON))
3552
3553typedef struct _ButtonSkeleton ButtonSkeleton;
3554typedef struct _ButtonSkeletonClass ButtonSkeletonClass;
3555typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate;
3556
3557struct _ButtonSkeleton
3558{
3559 /*< private >*/
3560 GDBusInterfaceSkeleton parent_instance;
3561 ButtonSkeletonPrivate *priv;
3562};
3563
3564struct _ButtonSkeletonClass
3565{
3566 GDBusInterfaceSkeletonClass parent_class;
3567};
3568
3569GType button_skeleton_get_type (void) G_GNUC_CONST;
3570
3571Button *button_skeleton_new (void);
3572
3573
3574/* ------------------------------------------------------------------------ */
3575/* Declarations for org.openbmc.Led */
3576
3577#define TYPE_LED (led_get_type ())
3578#define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led))
3579#define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED))
3580#define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface))
3581
3582struct _Led;
3583typedef struct _Led Led;
3584typedef struct _LedIface LedIface;
3585
3586struct _LedIface
3587{
3588 GTypeInterface parent_iface;
3589
3590
3591 gboolean (*handle_set_blink_fast) (
3592 Led *object,
3593 GDBusMethodInvocation *invocation);
3594
3595 gboolean (*handle_set_blink_slow) (
3596 Led *object,
3597 GDBusMethodInvocation *invocation);
3598
3599 gboolean (*handle_set_off) (
3600 Led *object,
3601 GDBusMethodInvocation *invocation);
3602
3603 gboolean (*handle_set_on) (
3604 Led *object,
3605 GDBusMethodInvocation *invocation);
3606
3607 gint (*get_color) (Led *object);
3608
3609 const gchar * (*get_function) (Led *object);
3610
Norman James493996c2015-10-31 17:27:13 -05003611 const gchar * (*get_state) (Led *object);
3612
Norman James362a80f2015-09-14 14:04:39 -05003613};
3614
3615GType led_get_type (void) G_GNUC_CONST;
3616
3617GDBusInterfaceInfo *led_interface_info (void);
3618guint led_override_properties (GObjectClass *klass, guint property_id_begin);
3619
3620
3621/* D-Bus method call completion functions: */
3622void led_complete_set_on (
3623 Led *object,
3624 GDBusMethodInvocation *invocation);
3625
3626void led_complete_set_off (
3627 Led *object,
3628 GDBusMethodInvocation *invocation);
3629
3630void led_complete_set_blink_slow (
3631 Led *object,
3632 GDBusMethodInvocation *invocation);
3633
3634void led_complete_set_blink_fast (
3635 Led *object,
3636 GDBusMethodInvocation *invocation);
3637
3638
3639
3640/* D-Bus method calls: */
3641void led_call_set_on (
3642 Led *proxy,
3643 GCancellable *cancellable,
3644 GAsyncReadyCallback callback,
3645 gpointer user_data);
3646
3647gboolean led_call_set_on_finish (
3648 Led *proxy,
3649 GAsyncResult *res,
3650 GError **error);
3651
3652gboolean led_call_set_on_sync (
3653 Led *proxy,
3654 GCancellable *cancellable,
3655 GError **error);
3656
3657void led_call_set_off (
3658 Led *proxy,
3659 GCancellable *cancellable,
3660 GAsyncReadyCallback callback,
3661 gpointer user_data);
3662
3663gboolean led_call_set_off_finish (
3664 Led *proxy,
3665 GAsyncResult *res,
3666 GError **error);
3667
3668gboolean led_call_set_off_sync (
3669 Led *proxy,
3670 GCancellable *cancellable,
3671 GError **error);
3672
3673void led_call_set_blink_slow (
3674 Led *proxy,
3675 GCancellable *cancellable,
3676 GAsyncReadyCallback callback,
3677 gpointer user_data);
3678
3679gboolean led_call_set_blink_slow_finish (
3680 Led *proxy,
3681 GAsyncResult *res,
3682 GError **error);
3683
3684gboolean led_call_set_blink_slow_sync (
3685 Led *proxy,
3686 GCancellable *cancellable,
3687 GError **error);
3688
3689void led_call_set_blink_fast (
3690 Led *proxy,
3691 GCancellable *cancellable,
3692 GAsyncReadyCallback callback,
3693 gpointer user_data);
3694
3695gboolean led_call_set_blink_fast_finish (
3696 Led *proxy,
3697 GAsyncResult *res,
3698 GError **error);
3699
3700gboolean led_call_set_blink_fast_sync (
3701 Led *proxy,
3702 GCancellable *cancellable,
3703 GError **error);
3704
3705
3706
3707/* D-Bus property accessors: */
3708gint led_get_color (Led *object);
3709void led_set_color (Led *object, gint value);
3710
3711const gchar *led_get_function (Led *object);
3712gchar *led_dup_function (Led *object);
3713void led_set_function (Led *object, const gchar *value);
3714
Norman James493996c2015-10-31 17:27:13 -05003715const gchar *led_get_state (Led *object);
3716gchar *led_dup_state (Led *object);
3717void led_set_state (Led *object, const gchar *value);
3718
Norman James362a80f2015-09-14 14:04:39 -05003719
3720/* ---- */
3721
3722#define TYPE_LED_PROXY (led_proxy_get_type ())
3723#define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy))
3724#define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass))
3725#define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass))
3726#define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY))
3727#define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY))
3728
3729typedef struct _LedProxy LedProxy;
3730typedef struct _LedProxyClass LedProxyClass;
3731typedef struct _LedProxyPrivate LedProxyPrivate;
3732
3733struct _LedProxy
3734{
3735 /*< private >*/
3736 GDBusProxy parent_instance;
3737 LedProxyPrivate *priv;
3738};
3739
3740struct _LedProxyClass
3741{
3742 GDBusProxyClass parent_class;
3743};
3744
3745GType led_proxy_get_type (void) G_GNUC_CONST;
3746
3747void led_proxy_new (
3748 GDBusConnection *connection,
3749 GDBusProxyFlags flags,
3750 const gchar *name,
3751 const gchar *object_path,
3752 GCancellable *cancellable,
3753 GAsyncReadyCallback callback,
3754 gpointer user_data);
3755Led *led_proxy_new_finish (
3756 GAsyncResult *res,
3757 GError **error);
3758Led *led_proxy_new_sync (
3759 GDBusConnection *connection,
3760 GDBusProxyFlags flags,
3761 const gchar *name,
3762 const gchar *object_path,
3763 GCancellable *cancellable,
3764 GError **error);
3765
3766void led_proxy_new_for_bus (
3767 GBusType bus_type,
3768 GDBusProxyFlags flags,
3769 const gchar *name,
3770 const gchar *object_path,
3771 GCancellable *cancellable,
3772 GAsyncReadyCallback callback,
3773 gpointer user_data);
3774Led *led_proxy_new_for_bus_finish (
3775 GAsyncResult *res,
3776 GError **error);
3777Led *led_proxy_new_for_bus_sync (
3778 GBusType bus_type,
3779 GDBusProxyFlags flags,
3780 const gchar *name,
3781 const gchar *object_path,
3782 GCancellable *cancellable,
3783 GError **error);
3784
3785
3786/* ---- */
3787
3788#define TYPE_LED_SKELETON (led_skeleton_get_type ())
3789#define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton))
3790#define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass))
3791#define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass))
3792#define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON))
3793#define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON))
3794
3795typedef struct _LedSkeleton LedSkeleton;
3796typedef struct _LedSkeletonClass LedSkeletonClass;
3797typedef struct _LedSkeletonPrivate LedSkeletonPrivate;
3798
3799struct _LedSkeleton
3800{
3801 /*< private >*/
3802 GDBusInterfaceSkeleton parent_instance;
3803 LedSkeletonPrivate *priv;
3804};
3805
3806struct _LedSkeletonClass
3807{
3808 GDBusInterfaceSkeletonClass parent_class;
3809};
3810
3811GType led_skeleton_get_type (void) G_GNUC_CONST;
3812
3813Led *led_skeleton_new (void);
3814
3815
Norman Jamesdbcffbd2015-10-06 16:53:06 -05003816/* ------------------------------------------------------------------------ */
3817/* Declarations for org.openbmc.HostIpmi */
3818
3819#define TYPE_HOST_IPMI (host_ipmi_get_type ())
3820#define HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI, HostIpmi))
3821#define IS_HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI))
3822#define HOST_IPMI_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOST_IPMI, HostIpmiIface))
3823
3824struct _HostIpmi;
3825typedef struct _HostIpmi HostIpmi;
3826typedef struct _HostIpmiIface HostIpmiIface;
3827
3828struct _HostIpmiIface
3829{
3830 GTypeInterface parent_iface;
3831
3832
3833 gboolean (*handle_send_message) (
3834 HostIpmi *object,
3835 GDBusMethodInvocation *invocation,
3836 guchar arg_seq,
3837 guchar arg_netfn,
3838 guchar arg_cmd,
3839 const gchar *arg_data);
3840
3841 void (*received_message) (
3842 HostIpmi *object,
3843 guchar arg_seq,
3844 guchar arg_netfn,
3845 guchar arg_cmd,
3846 const gchar *arg_data);
3847
3848};
3849
3850GType host_ipmi_get_type (void) G_GNUC_CONST;
3851
3852GDBusInterfaceInfo *host_ipmi_interface_info (void);
3853guint host_ipmi_override_properties (GObjectClass *klass, guint property_id_begin);
3854
3855
3856/* D-Bus method call completion functions: */
3857void host_ipmi_complete_send_message (
3858 HostIpmi *object,
3859 GDBusMethodInvocation *invocation,
3860 gint64 unnamed_arg4);
3861
3862
3863
3864/* D-Bus signal emissions functions: */
3865void host_ipmi_emit_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
3874/* D-Bus method calls: */
3875void host_ipmi_call_send_message (
3876 HostIpmi *proxy,
3877 guchar arg_seq,
3878 guchar arg_netfn,
3879 guchar arg_cmd,
3880 const gchar *arg_data,
3881 GCancellable *cancellable,
3882 GAsyncReadyCallback callback,
3883 gpointer user_data);
3884
3885gboolean host_ipmi_call_send_message_finish (
3886 HostIpmi *proxy,
3887 gint64 *out_unnamed_arg4,
3888 GAsyncResult *res,
3889 GError **error);
3890
3891gboolean host_ipmi_call_send_message_sync (
3892 HostIpmi *proxy,
3893 guchar arg_seq,
3894 guchar arg_netfn,
3895 guchar arg_cmd,
3896 const gchar *arg_data,
3897 gint64 *out_unnamed_arg4,
3898 GCancellable *cancellable,
3899 GError **error);
3900
3901
3902
3903/* ---- */
3904
3905#define TYPE_HOST_IPMI_PROXY (host_ipmi_proxy_get_type ())
3906#define HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxy))
3907#define HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass))
3908#define HOST_IPMI_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass))
3909#define IS_HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_PROXY))
3910#define IS_HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_PROXY))
3911
3912typedef struct _HostIpmiProxy HostIpmiProxy;
3913typedef struct _HostIpmiProxyClass HostIpmiProxyClass;
3914typedef struct _HostIpmiProxyPrivate HostIpmiProxyPrivate;
3915
3916struct _HostIpmiProxy
3917{
3918 /*< private >*/
3919 GDBusProxy parent_instance;
3920 HostIpmiProxyPrivate *priv;
3921};
3922
3923struct _HostIpmiProxyClass
3924{
3925 GDBusProxyClass parent_class;
3926};
3927
3928GType host_ipmi_proxy_get_type (void) G_GNUC_CONST;
3929
3930void host_ipmi_proxy_new (
3931 GDBusConnection *connection,
3932 GDBusProxyFlags flags,
3933 const gchar *name,
3934 const gchar *object_path,
3935 GCancellable *cancellable,
3936 GAsyncReadyCallback callback,
3937 gpointer user_data);
3938HostIpmi *host_ipmi_proxy_new_finish (
3939 GAsyncResult *res,
3940 GError **error);
3941HostIpmi *host_ipmi_proxy_new_sync (
3942 GDBusConnection *connection,
3943 GDBusProxyFlags flags,
3944 const gchar *name,
3945 const gchar *object_path,
3946 GCancellable *cancellable,
3947 GError **error);
3948
3949void host_ipmi_proxy_new_for_bus (
3950 GBusType bus_type,
3951 GDBusProxyFlags flags,
3952 const gchar *name,
3953 const gchar *object_path,
3954 GCancellable *cancellable,
3955 GAsyncReadyCallback callback,
3956 gpointer user_data);
3957HostIpmi *host_ipmi_proxy_new_for_bus_finish (
3958 GAsyncResult *res,
3959 GError **error);
3960HostIpmi *host_ipmi_proxy_new_for_bus_sync (
3961 GBusType bus_type,
3962 GDBusProxyFlags flags,
3963 const gchar *name,
3964 const gchar *object_path,
3965 GCancellable *cancellable,
3966 GError **error);
3967
3968
3969/* ---- */
3970
3971#define TYPE_HOST_IPMI_SKELETON (host_ipmi_skeleton_get_type ())
3972#define HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeleton))
3973#define HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass))
3974#define HOST_IPMI_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass))
3975#define IS_HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_SKELETON))
3976#define IS_HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_SKELETON))
3977
3978typedef struct _HostIpmiSkeleton HostIpmiSkeleton;
3979typedef struct _HostIpmiSkeletonClass HostIpmiSkeletonClass;
3980typedef struct _HostIpmiSkeletonPrivate HostIpmiSkeletonPrivate;
3981
3982struct _HostIpmiSkeleton
3983{
3984 /*< private >*/
3985 GDBusInterfaceSkeleton parent_instance;
3986 HostIpmiSkeletonPrivate *priv;
3987};
3988
3989struct _HostIpmiSkeletonClass
3990{
3991 GDBusInterfaceSkeletonClass parent_class;
3992};
3993
3994GType host_ipmi_skeleton_get_type (void) G_GNUC_CONST;
3995
3996HostIpmi *host_ipmi_skeleton_new (void);
3997
3998
Norman James362a80f2015-09-14 14:04:39 -05003999/* ---- */
4000
4001#define TYPE_OBJECT (object_get_type ())
4002#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
4003#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
4004#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
4005
4006struct _Object;
4007typedef struct _Object Object;
4008typedef struct _ObjectIface ObjectIface;
4009
4010struct _ObjectIface
4011{
4012 GTypeInterface parent_iface;
4013};
4014
4015GType object_get_type (void) G_GNUC_CONST;
4016
Norman James5236a8f2015-11-05 20:39:31 -06004017Hwmon *object_get_hwmon (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004018Fan *object_get_fan (Object *object);
4019SensorValue *object_get_sensor_value (Object *object);
4020SensorThreshold *object_get_sensor_threshold (Object *object);
4021SensorI2c *object_get_sensor_i2c (Object *object);
4022SensorMatch *object_get_sensor_match (Object *object);
4023Process *object_get_process (Object *object);
Norman James18998182015-10-11 21:54:53 -05004024SharedResource *object_get_shared_resource (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004025Control *object_get_control (Object *object);
4026ControlBmc *object_get_control_bmc (Object *object);
4027ControlHost *object_get_control_host (Object *object);
4028ControlPower *object_get_control_power (Object *object);
Adriana Kobylakfd778822016-06-16 09:08:37 -05004029ControlCheckstop *object_get_control_checkstop (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004030Watchdog *object_get_watchdog (Object *object);
4031EventLog *object_get_event_log (Object *object);
4032Flash *object_get_flash (Object *object);
Norman James18998182015-10-11 21:54:53 -05004033FlashControl *object_get_flash_control (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004034Button *object_get_button (Object *object);
4035Led *object_get_led (Object *object);
Norman Jamesdbcffbd2015-10-06 16:53:06 -05004036HostIpmi *object_get_host_ipmi (Object *object);
Norman James5236a8f2015-11-05 20:39:31 -06004037Hwmon *object_peek_hwmon (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004038Fan *object_peek_fan (Object *object);
4039SensorValue *object_peek_sensor_value (Object *object);
4040SensorThreshold *object_peek_sensor_threshold (Object *object);
4041SensorI2c *object_peek_sensor_i2c (Object *object);
4042SensorMatch *object_peek_sensor_match (Object *object);
4043Process *object_peek_process (Object *object);
Norman James18998182015-10-11 21:54:53 -05004044SharedResource *object_peek_shared_resource (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004045Control *object_peek_control (Object *object);
4046ControlBmc *object_peek_control_bmc (Object *object);
4047ControlHost *object_peek_control_host (Object *object);
4048ControlPower *object_peek_control_power (Object *object);
Adriana Kobylakfd778822016-06-16 09:08:37 -05004049ControlCheckstop *object_peek_control_checkstop (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004050Watchdog *object_peek_watchdog (Object *object);
4051EventLog *object_peek_event_log (Object *object);
4052Flash *object_peek_flash (Object *object);
Norman James18998182015-10-11 21:54:53 -05004053FlashControl *object_peek_flash_control (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004054Button *object_peek_button (Object *object);
4055Led *object_peek_led (Object *object);
Norman Jamesdbcffbd2015-10-06 16:53:06 -05004056HostIpmi *object_peek_host_ipmi (Object *object);
Norman James362a80f2015-09-14 14:04:39 -05004057
4058#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
4059#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
4060#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
4061#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
4062#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
4063#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
4064
4065typedef struct _ObjectProxy ObjectProxy;
4066typedef struct _ObjectProxyClass ObjectProxyClass;
4067typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
4068
4069struct _ObjectProxy
4070{
4071 /*< private >*/
4072 GDBusObjectProxy parent_instance;
4073 ObjectProxyPrivate *priv;
4074};
4075
4076struct _ObjectProxyClass
4077{
4078 GDBusObjectProxyClass parent_class;
4079};
4080
4081GType object_proxy_get_type (void) G_GNUC_CONST;
4082ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
4083
4084#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
4085#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
4086#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
4087#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
4088#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
4089#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
4090
4091typedef struct _ObjectSkeleton ObjectSkeleton;
4092typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
4093typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
4094
4095struct _ObjectSkeleton
4096{
4097 /*< private >*/
4098 GDBusObjectSkeleton parent_instance;
4099 ObjectSkeletonPrivate *priv;
4100};
4101
4102struct _ObjectSkeletonClass
4103{
4104 GDBusObjectSkeletonClass parent_class;
4105};
4106
4107GType object_skeleton_get_type (void) G_GNUC_CONST;
4108ObjectSkeleton *object_skeleton_new (const gchar *object_path);
Norman James5236a8f2015-11-05 20:39:31 -06004109void object_skeleton_set_hwmon (ObjectSkeleton *object, Hwmon *interface_);
Norman James362a80f2015-09-14 14:04:39 -05004110void object_skeleton_set_fan (ObjectSkeleton *object, Fan *interface_);
4111void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_);
Norman James362a80f2015-09-14 14:04:39 -05004112void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_);
4113void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_);
4114void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_);
4115void object_skeleton_set_process (ObjectSkeleton *object, Process *interface_);
Norman James18998182015-10-11 21:54:53 -05004116void object_skeleton_set_shared_resource (ObjectSkeleton *object, SharedResource *interface_);
Norman James362a80f2015-09-14 14:04:39 -05004117void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_);
4118void object_skeleton_set_control_bmc (ObjectSkeleton *object, ControlBmc *interface_);
4119void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_);
4120void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_);
Adriana Kobylakfd778822016-06-16 09:08:37 -05004121void object_skeleton_set_control_checkstop (ObjectSkeleton *object, ControlCheckstop *interface_);
Norman James362a80f2015-09-14 14:04:39 -05004122void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_);
4123void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_);
4124void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_);
Norman James18998182015-10-11 21:54:53 -05004125void object_skeleton_set_flash_control (ObjectSkeleton *object, FlashControl *interface_);
Norman James362a80f2015-09-14 14:04:39 -05004126void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_);
4127void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_);
Norman Jamesdbcffbd2015-10-06 16:53:06 -05004128void object_skeleton_set_host_ipmi (ObjectSkeleton *object, HostIpmi *interface_);
Norman James362a80f2015-09-14 14:04:39 -05004129
4130/* ---- */
4131
4132#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
4133#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
4134#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
4135#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
4136#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
4137#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
4138
4139typedef struct _ObjectManagerClient ObjectManagerClient;
4140typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
4141typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
4142
4143struct _ObjectManagerClient
4144{
4145 /*< private >*/
4146 GDBusObjectManagerClient parent_instance;
4147 ObjectManagerClientPrivate *priv;
4148};
4149
4150struct _ObjectManagerClientClass
4151{
4152 GDBusObjectManagerClientClass parent_class;
4153};
4154
4155GType object_manager_client_get_type (void) G_GNUC_CONST;
4156
4157GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
4158
4159void object_manager_client_new (
4160 GDBusConnection *connection,
4161 GDBusObjectManagerClientFlags flags,
4162 const gchar *name,
4163 const gchar *object_path,
4164 GCancellable *cancellable,
4165 GAsyncReadyCallback callback,
4166 gpointer user_data);
4167GDBusObjectManager *object_manager_client_new_finish (
4168 GAsyncResult *res,
4169 GError **error);
4170GDBusObjectManager *object_manager_client_new_sync (
4171 GDBusConnection *connection,
4172 GDBusObjectManagerClientFlags flags,
4173 const gchar *name,
4174 const gchar *object_path,
4175 GCancellable *cancellable,
4176 GError **error);
4177
4178void object_manager_client_new_for_bus (
4179 GBusType bus_type,
4180 GDBusObjectManagerClientFlags flags,
4181 const gchar *name,
4182 const gchar *object_path,
4183 GCancellable *cancellable,
4184 GAsyncReadyCallback callback,
4185 gpointer user_data);
4186GDBusObjectManager *object_manager_client_new_for_bus_finish (
4187 GAsyncResult *res,
4188 GError **error);
4189GDBusObjectManager *object_manager_client_new_for_bus_sync (
4190 GBusType bus_type,
4191 GDBusObjectManagerClientFlags flags,
4192 const gchar *name,
4193 const gchar *object_path,
4194 GCancellable *cancellable,
4195 GError **error);
4196
4197
4198G_END_DECLS
4199
Brad Bishop8a8b0032016-06-27 12:08:08 -04004200#endif /* __OPENBMC_INTF_H__ */