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