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