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