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