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