blob: 4b4be385160759eaf51ac703e71564a15d2e885a [file] [log] [blame]
Norman Jamese2765102015-08-19 22:00:55 -05001/*
2 * Generated by gdbus-codegen 2.40.2. DO NOT EDIT.
3 *
4 * The license of this code is the same as for the source it was derived from.
5 */
6
7#ifndef __INTERFACES_SENSOR_H__
8#define __INTERFACES_SENSOR_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.openbmc.SensorInteger */
17
18#define TYPE_SENSOR_INTEGER (sensor_integer_get_type ())
19#define SENSOR_INTEGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER, SensorInteger))
20#define IS_SENSOR_INTEGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER))
21#define SENSOR_INTEGER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER, SensorIntegerIface))
22
23struct _SensorInteger;
24typedef struct _SensorInteger SensorInteger;
25typedef struct _SensorIntegerIface SensorIntegerIface;
26
27struct _SensorIntegerIface
28{
29 GTypeInterface parent_iface;
30
31
32
Norman James3f97c5d2015-08-26 17:44:14 -050033 gboolean (*handle_get_threshold_state) (
34 SensorInteger *object,
35 GDBusMethodInvocation *invocation);
36
Norman Jamese2765102015-08-19 22:00:55 -050037 gboolean (*handle_get_units) (
38 SensorInteger *object,
39 GDBusMethodInvocation *invocation);
40
41 gboolean (*handle_get_value) (
42 SensorInteger *object,
43 GDBusMethodInvocation *invocation);
44
Norman Jamescc7ae122015-08-24 14:26:09 -050045 gboolean (*handle_set_config_data) (
46 SensorInteger *object,
47 GDBusMethodInvocation *invocation,
48 const gchar *const *arg_config);
49
50 gboolean (*handle_set_poll_interval) (
51 SensorInteger *object,
52 GDBusMethodInvocation *invocation,
53 gint arg_poll_interval);
54
Norman James3f97c5d2015-08-26 17:44:14 -050055 gboolean (*handle_set_thresholds) (
56 SensorInteger *object,
57 GDBusMethodInvocation *invocation,
58 gint arg_lower_critical,
59 gint arg_lower_warning,
60 gint arg_upper_warning,
61 gint arg_upper_critical);
62
Norman Jamescc7ae122015-08-24 14:26:09 -050063 gint (*get_changed_tolerance) (SensorInteger *object);
64
65 const gchar *const * (*get_config_data) (SensorInteger *object);
66
67 gint (*get_poll_interval) (SensorInteger *object);
68
Norman James3f97c5d2015-08-26 17:44:14 -050069 gint (*get_threshold_lower_critical) (SensorInteger *object);
70
71 gint (*get_threshold_lower_warning) (SensorInteger *object);
72
73 gint (*get_threshold_state) (SensorInteger *object);
74
75 gint (*get_threshold_upper_critical) (SensorInteger *object);
76
77 gint (*get_threshold_upper_warning) (SensorInteger *object);
78
Norman Jamese2765102015-08-19 22:00:55 -050079 const gchar * (*get_units) (SensorInteger *object);
80
81 gint (*get_value) (SensorInteger *object);
82
83 void (*changed) (
84 SensorInteger *object,
85 gint arg_value);
86
Norman James3f97c5d2015-08-26 17:44:14 -050087 void (*critical) (
88 SensorInteger *object);
89
90 void (*warning) (
91 SensorInteger *object);
92
Norman Jamese2765102015-08-19 22:00:55 -050093};
94
95GType sensor_integer_get_type (void) G_GNUC_CONST;
96
97GDBusInterfaceInfo *sensor_integer_interface_info (void);
98guint sensor_integer_override_properties (GObjectClass *klass, guint property_id_begin);
99
100
101/* D-Bus method call completion functions: */
102void sensor_integer_complete_get_value (
103 SensorInteger *object,
104 GDBusMethodInvocation *invocation,
105 gint value);
106
107void sensor_integer_complete_get_units (
108 SensorInteger *object,
109 GDBusMethodInvocation *invocation,
110 const gchar *units);
111
Norman James3f97c5d2015-08-26 17:44:14 -0500112void sensor_integer_complete_set_thresholds (
113 SensorInteger *object,
114 GDBusMethodInvocation *invocation);
115
Norman Jamescc7ae122015-08-24 14:26:09 -0500116void sensor_integer_complete_set_poll_interval (
117 SensorInteger *object,
118 GDBusMethodInvocation *invocation);
119
120void sensor_integer_complete_set_config_data (
121 SensorInteger *object,
122 GDBusMethodInvocation *invocation);
123
Norman James3f97c5d2015-08-26 17:44:14 -0500124void sensor_integer_complete_get_threshold_state (
Norman Jamescc7ae122015-08-24 14:26:09 -0500125 SensorInteger *object,
Norman James3f97c5d2015-08-26 17:44:14 -0500126 GDBusMethodInvocation *invocation,
127 gint threshold_state);
Norman Jamescc7ae122015-08-24 14:26:09 -0500128
Norman Jamese2765102015-08-19 22:00:55 -0500129
130
131/* D-Bus signal emissions functions: */
132void sensor_integer_emit_changed (
133 SensorInteger *object,
134 gint arg_value);
135
Norman James3f97c5d2015-08-26 17:44:14 -0500136void sensor_integer_emit_warning (
137 SensorInteger *object);
138
139void sensor_integer_emit_critical (
140 SensorInteger *object);
141
Norman Jamese2765102015-08-19 22:00:55 -0500142
143
144/* D-Bus method calls: */
145void sensor_integer_call_get_value (
146 SensorInteger *proxy,
147 GCancellable *cancellable,
148 GAsyncReadyCallback callback,
149 gpointer user_data);
150
151gboolean sensor_integer_call_get_value_finish (
152 SensorInteger *proxy,
153 gint *out_value,
154 GAsyncResult *res,
155 GError **error);
156
157gboolean sensor_integer_call_get_value_sync (
158 SensorInteger *proxy,
159 gint *out_value,
160 GCancellable *cancellable,
161 GError **error);
162
163void sensor_integer_call_get_units (
164 SensorInteger *proxy,
165 GCancellable *cancellable,
166 GAsyncReadyCallback callback,
167 gpointer user_data);
168
169gboolean sensor_integer_call_get_units_finish (
170 SensorInteger *proxy,
171 gchar **out_units,
172 GAsyncResult *res,
173 GError **error);
174
175gboolean sensor_integer_call_get_units_sync (
176 SensorInteger *proxy,
177 gchar **out_units,
178 GCancellable *cancellable,
179 GError **error);
180
Norman James3f97c5d2015-08-26 17:44:14 -0500181void sensor_integer_call_set_thresholds (
182 SensorInteger *proxy,
183 gint arg_lower_critical,
184 gint arg_lower_warning,
185 gint arg_upper_warning,
186 gint arg_upper_critical,
187 GCancellable *cancellable,
188 GAsyncReadyCallback callback,
189 gpointer user_data);
190
191gboolean sensor_integer_call_set_thresholds_finish (
192 SensorInteger *proxy,
193 GAsyncResult *res,
194 GError **error);
195
196gboolean sensor_integer_call_set_thresholds_sync (
197 SensorInteger *proxy,
198 gint arg_lower_critical,
199 gint arg_lower_warning,
200 gint arg_upper_warning,
201 gint arg_upper_critical,
202 GCancellable *cancellable,
203 GError **error);
204
Norman Jamescc7ae122015-08-24 14:26:09 -0500205void sensor_integer_call_set_poll_interval (
206 SensorInteger *proxy,
207 gint arg_poll_interval,
208 GCancellable *cancellable,
209 GAsyncReadyCallback callback,
210 gpointer user_data);
211
212gboolean sensor_integer_call_set_poll_interval_finish (
213 SensorInteger *proxy,
214 GAsyncResult *res,
215 GError **error);
216
217gboolean sensor_integer_call_set_poll_interval_sync (
218 SensorInteger *proxy,
219 gint arg_poll_interval,
220 GCancellable *cancellable,
221 GError **error);
222
223void sensor_integer_call_set_config_data (
224 SensorInteger *proxy,
225 const gchar *const *arg_config,
226 GCancellable *cancellable,
227 GAsyncReadyCallback callback,
228 gpointer user_data);
229
230gboolean sensor_integer_call_set_config_data_finish (
231 SensorInteger *proxy,
232 GAsyncResult *res,
233 GError **error);
234
235gboolean sensor_integer_call_set_config_data_sync (
236 SensorInteger *proxy,
237 const gchar *const *arg_config,
238 GCancellable *cancellable,
239 GError **error);
240
Norman James3f97c5d2015-08-26 17:44:14 -0500241void sensor_integer_call_get_threshold_state (
Norman Jamescc7ae122015-08-24 14:26:09 -0500242 SensorInteger *proxy,
243 GCancellable *cancellable,
244 GAsyncReadyCallback callback,
245 gpointer user_data);
246
Norman James3f97c5d2015-08-26 17:44:14 -0500247gboolean sensor_integer_call_get_threshold_state_finish (
Norman Jamescc7ae122015-08-24 14:26:09 -0500248 SensorInteger *proxy,
Norman James3f97c5d2015-08-26 17:44:14 -0500249 gint *out_threshold_state,
Norman Jamescc7ae122015-08-24 14:26:09 -0500250 GAsyncResult *res,
251 GError **error);
252
Norman James3f97c5d2015-08-26 17:44:14 -0500253gboolean sensor_integer_call_get_threshold_state_sync (
Norman Jamescc7ae122015-08-24 14:26:09 -0500254 SensorInteger *proxy,
Norman James3f97c5d2015-08-26 17:44:14 -0500255 gint *out_threshold_state,
Norman Jamescc7ae122015-08-24 14:26:09 -0500256 GCancellable *cancellable,
257 GError **error);
258
Norman Jamese2765102015-08-19 22:00:55 -0500259
260
261/* D-Bus property accessors: */
262gint sensor_integer_get_value (SensorInteger *object);
263void sensor_integer_set_value (SensorInteger *object, gint value);
264
265const gchar *sensor_integer_get_units (SensorInteger *object);
266gchar *sensor_integer_dup_units (SensorInteger *object);
267void sensor_integer_set_units (SensorInteger *object, const gchar *value);
268
Norman James3f97c5d2015-08-26 17:44:14 -0500269gint sensor_integer_get_threshold_lower_critical (SensorInteger *object);
270void sensor_integer_set_threshold_lower_critical (SensorInteger *object, gint value);
271
272gint sensor_integer_get_threshold_lower_warning (SensorInteger *object);
273void sensor_integer_set_threshold_lower_warning (SensorInteger *object, gint value);
274
275gint sensor_integer_get_threshold_upper_warning (SensorInteger *object);
276void sensor_integer_set_threshold_upper_warning (SensorInteger *object, gint value);
277
278gint sensor_integer_get_threshold_upper_critical (SensorInteger *object);
279void sensor_integer_set_threshold_upper_critical (SensorInteger *object, gint value);
280
281gint sensor_integer_get_threshold_state (SensorInteger *object);
282void sensor_integer_set_threshold_state (SensorInteger *object, gint value);
283
Norman Jamescc7ae122015-08-24 14:26:09 -0500284gint sensor_integer_get_poll_interval (SensorInteger *object);
285void sensor_integer_set_poll_interval (SensorInteger *object, gint value);
286
287const gchar *const *sensor_integer_get_config_data (SensorInteger *object);
288gchar **sensor_integer_dup_config_data (SensorInteger *object);
289void sensor_integer_set_config_data (SensorInteger *object, const gchar *const *value);
290
291gint sensor_integer_get_changed_tolerance (SensorInteger *object);
292void sensor_integer_set_changed_tolerance (SensorInteger *object, gint value);
293
Norman Jamese2765102015-08-19 22:00:55 -0500294
295/* ---- */
296
297#define TYPE_SENSOR_INTEGER_PROXY (sensor_integer_proxy_get_type ())
298#define SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxy))
299#define SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass))
300#define SENSOR_INTEGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass))
301#define IS_SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_PROXY))
302#define IS_SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_PROXY))
303
304typedef struct _SensorIntegerProxy SensorIntegerProxy;
305typedef struct _SensorIntegerProxyClass SensorIntegerProxyClass;
306typedef struct _SensorIntegerProxyPrivate SensorIntegerProxyPrivate;
307
308struct _SensorIntegerProxy
309{
310 /*< private >*/
311 GDBusProxy parent_instance;
312 SensorIntegerProxyPrivate *priv;
313};
314
315struct _SensorIntegerProxyClass
316{
317 GDBusProxyClass parent_class;
318};
319
320GType sensor_integer_proxy_get_type (void) G_GNUC_CONST;
321
322void sensor_integer_proxy_new (
323 GDBusConnection *connection,
324 GDBusProxyFlags flags,
325 const gchar *name,
326 const gchar *object_path,
327 GCancellable *cancellable,
328 GAsyncReadyCallback callback,
329 gpointer user_data);
330SensorInteger *sensor_integer_proxy_new_finish (
331 GAsyncResult *res,
332 GError **error);
333SensorInteger *sensor_integer_proxy_new_sync (
334 GDBusConnection *connection,
335 GDBusProxyFlags flags,
336 const gchar *name,
337 const gchar *object_path,
338 GCancellable *cancellable,
339 GError **error);
340
341void sensor_integer_proxy_new_for_bus (
342 GBusType bus_type,
343 GDBusProxyFlags flags,
344 const gchar *name,
345 const gchar *object_path,
346 GCancellable *cancellable,
347 GAsyncReadyCallback callback,
348 gpointer user_data);
349SensorInteger *sensor_integer_proxy_new_for_bus_finish (
350 GAsyncResult *res,
351 GError **error);
352SensorInteger *sensor_integer_proxy_new_for_bus_sync (
353 GBusType bus_type,
354 GDBusProxyFlags flags,
355 const gchar *name,
356 const gchar *object_path,
357 GCancellable *cancellable,
358 GError **error);
359
360
361/* ---- */
362
363#define TYPE_SENSOR_INTEGER_SKELETON (sensor_integer_skeleton_get_type ())
364#define SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeleton))
365#define SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass))
366#define SENSOR_INTEGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass))
367#define IS_SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SKELETON))
368#define IS_SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SKELETON))
369
370typedef struct _SensorIntegerSkeleton SensorIntegerSkeleton;
371typedef struct _SensorIntegerSkeletonClass SensorIntegerSkeletonClass;
372typedef struct _SensorIntegerSkeletonPrivate SensorIntegerSkeletonPrivate;
373
374struct _SensorIntegerSkeleton
375{
376 /*< private >*/
377 GDBusInterfaceSkeleton parent_instance;
378 SensorIntegerSkeletonPrivate *priv;
379};
380
381struct _SensorIntegerSkeletonClass
382{
383 GDBusInterfaceSkeletonClass parent_class;
384};
385
386GType sensor_integer_skeleton_get_type (void) G_GNUC_CONST;
387
388SensorInteger *sensor_integer_skeleton_new (void);
389
390
391/* ------------------------------------------------------------------------ */
392/* Declarations for org.openbmc.SensorString */
393
394#define TYPE_SENSOR_STRING (sensor_string_get_type ())
395#define SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING, SensorString))
396#define IS_SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING))
397#define SENSOR_STRING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_STRING, SensorStringIface))
398
399struct _SensorString;
400typedef struct _SensorString SensorString;
401typedef struct _SensorStringIface SensorStringIface;
402
403struct _SensorStringIface
404{
405 GTypeInterface parent_iface;
406
407
408
409 gboolean (*handle_get_units) (
410 SensorString *object,
411 GDBusMethodInvocation *invocation);
412
413 gboolean (*handle_get_value) (
414 SensorString *object,
415 GDBusMethodInvocation *invocation);
416
417 const gchar * (*get_units) (SensorString *object);
418
419 gint (*get_value) (SensorString *object);
420
421 void (*changed) (
422 SensorString *object,
423 const gchar *arg_value);
424
425};
426
427GType sensor_string_get_type (void) G_GNUC_CONST;
428
429GDBusInterfaceInfo *sensor_string_interface_info (void);
430guint sensor_string_override_properties (GObjectClass *klass, guint property_id_begin);
431
432
433/* D-Bus method call completion functions: */
434void sensor_string_complete_get_value (
435 SensorString *object,
436 GDBusMethodInvocation *invocation,
437 const gchar *value);
438
439void sensor_string_complete_get_units (
440 SensorString *object,
441 GDBusMethodInvocation *invocation,
442 const gchar *units);
443
444
445
446/* D-Bus signal emissions functions: */
447void sensor_string_emit_changed (
448 SensorString *object,
449 const gchar *arg_value);
450
451
452
453/* D-Bus method calls: */
454void sensor_string_call_get_value (
455 SensorString *proxy,
456 GCancellable *cancellable,
457 GAsyncReadyCallback callback,
458 gpointer user_data);
459
460gboolean sensor_string_call_get_value_finish (
461 SensorString *proxy,
462 gchar **out_value,
463 GAsyncResult *res,
464 GError **error);
465
466gboolean sensor_string_call_get_value_sync (
467 SensorString *proxy,
468 gchar **out_value,
469 GCancellable *cancellable,
470 GError **error);
471
472void sensor_string_call_get_units (
473 SensorString *proxy,
474 GCancellable *cancellable,
475 GAsyncReadyCallback callback,
476 gpointer user_data);
477
478gboolean sensor_string_call_get_units_finish (
479 SensorString *proxy,
480 gchar **out_units,
481 GAsyncResult *res,
482 GError **error);
483
484gboolean sensor_string_call_get_units_sync (
485 SensorString *proxy,
486 gchar **out_units,
487 GCancellable *cancellable,
488 GError **error);
489
490
491
492/* D-Bus property accessors: */
493gint sensor_string_get_value (SensorString *object);
494void sensor_string_set_value (SensorString *object, gint value);
495
496const gchar *sensor_string_get_units (SensorString *object);
497gchar *sensor_string_dup_units (SensorString *object);
498void sensor_string_set_units (SensorString *object, const gchar *value);
499
500
501/* ---- */
502
503#define TYPE_SENSOR_STRING_PROXY (sensor_string_proxy_get_type ())
504#define SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxy))
505#define SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass))
506#define SENSOR_STRING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass))
507#define IS_SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_PROXY))
508#define IS_SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_PROXY))
509
510typedef struct _SensorStringProxy SensorStringProxy;
511typedef struct _SensorStringProxyClass SensorStringProxyClass;
512typedef struct _SensorStringProxyPrivate SensorStringProxyPrivate;
513
514struct _SensorStringProxy
515{
516 /*< private >*/
517 GDBusProxy parent_instance;
518 SensorStringProxyPrivate *priv;
519};
520
521struct _SensorStringProxyClass
522{
523 GDBusProxyClass parent_class;
524};
525
526GType sensor_string_proxy_get_type (void) G_GNUC_CONST;
527
528void sensor_string_proxy_new (
529 GDBusConnection *connection,
530 GDBusProxyFlags flags,
531 const gchar *name,
532 const gchar *object_path,
533 GCancellable *cancellable,
534 GAsyncReadyCallback callback,
535 gpointer user_data);
536SensorString *sensor_string_proxy_new_finish (
537 GAsyncResult *res,
538 GError **error);
539SensorString *sensor_string_proxy_new_sync (
540 GDBusConnection *connection,
541 GDBusProxyFlags flags,
542 const gchar *name,
543 const gchar *object_path,
544 GCancellable *cancellable,
545 GError **error);
546
547void sensor_string_proxy_new_for_bus (
548 GBusType bus_type,
549 GDBusProxyFlags flags,
550 const gchar *name,
551 const gchar *object_path,
552 GCancellable *cancellable,
553 GAsyncReadyCallback callback,
554 gpointer user_data);
555SensorString *sensor_string_proxy_new_for_bus_finish (
556 GAsyncResult *res,
557 GError **error);
558SensorString *sensor_string_proxy_new_for_bus_sync (
559 GBusType bus_type,
560 GDBusProxyFlags flags,
561 const gchar *name,
562 const gchar *object_path,
563 GCancellable *cancellable,
564 GError **error);
565
566
567/* ---- */
568
569#define TYPE_SENSOR_STRING_SKELETON (sensor_string_skeleton_get_type ())
570#define SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeleton))
571#define SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass))
572#define SENSOR_STRING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass))
573#define IS_SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_SKELETON))
574#define IS_SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_SKELETON))
575
576typedef struct _SensorStringSkeleton SensorStringSkeleton;
577typedef struct _SensorStringSkeletonClass SensorStringSkeletonClass;
578typedef struct _SensorStringSkeletonPrivate SensorStringSkeletonPrivate;
579
580struct _SensorStringSkeleton
581{
582 /*< private >*/
583 GDBusInterfaceSkeleton parent_instance;
584 SensorStringSkeletonPrivate *priv;
585};
586
587struct _SensorStringSkeletonClass
588{
589 GDBusInterfaceSkeletonClass parent_class;
590};
591
592GType sensor_string_skeleton_get_type (void) G_GNUC_CONST;
593
594SensorString *sensor_string_skeleton_new (void);
595
596
597/* ------------------------------------------------------------------------ */
598/* Declarations for org.openbmc.SensorIntegerSettable */
599
600#define TYPE_SENSOR_INTEGER_SETTABLE (sensor_integer_settable_get_type ())
601#define SENSOR_INTEGER_SETTABLE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE, SensorIntegerSettable))
602#define IS_SENSOR_INTEGER_SETTABLE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE))
603#define SENSOR_INTEGER_SETTABLE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER_SETTABLE, SensorIntegerSettableIface))
604
605struct _SensorIntegerSettable;
606typedef struct _SensorIntegerSettable SensorIntegerSettable;
607typedef struct _SensorIntegerSettableIface SensorIntegerSettableIface;
608
609struct _SensorIntegerSettableIface
610{
611 GTypeInterface parent_iface;
612
613
614
615 gboolean (*handle_get_units) (
616 SensorIntegerSettable *object,
617 GDBusMethodInvocation *invocation);
618
619 gboolean (*handle_get_value) (
620 SensorIntegerSettable *object,
621 GDBusMethodInvocation *invocation);
622
623 gboolean (*handle_set_value) (
624 SensorIntegerSettable *object,
625 GDBusMethodInvocation *invocation,
626 gint arg_value);
627
628 const gchar * (*get_units) (SensorIntegerSettable *object);
629
630 gint (*get_value) (SensorIntegerSettable *object);
631
632 void (*changed) (
633 SensorIntegerSettable *object,
634 gint arg_value);
635
636};
637
638GType sensor_integer_settable_get_type (void) G_GNUC_CONST;
639
640GDBusInterfaceInfo *sensor_integer_settable_interface_info (void);
641guint sensor_integer_settable_override_properties (GObjectClass *klass, guint property_id_begin);
642
643
644/* D-Bus method call completion functions: */
645void sensor_integer_settable_complete_get_value (
646 SensorIntegerSettable *object,
647 GDBusMethodInvocation *invocation,
648 gint value);
649
650void sensor_integer_settable_complete_set_value (
651 SensorIntegerSettable *object,
652 GDBusMethodInvocation *invocation);
653
654void sensor_integer_settable_complete_get_units (
655 SensorIntegerSettable *object,
656 GDBusMethodInvocation *invocation,
657 const gchar *units);
658
659
660
661/* D-Bus signal emissions functions: */
662void sensor_integer_settable_emit_changed (
663 SensorIntegerSettable *object,
664 gint arg_value);
665
666
667
668/* D-Bus method calls: */
669void sensor_integer_settable_call_get_value (
670 SensorIntegerSettable *proxy,
671 GCancellable *cancellable,
672 GAsyncReadyCallback callback,
673 gpointer user_data);
674
675gboolean sensor_integer_settable_call_get_value_finish (
676 SensorIntegerSettable *proxy,
677 gint *out_value,
678 GAsyncResult *res,
679 GError **error);
680
681gboolean sensor_integer_settable_call_get_value_sync (
682 SensorIntegerSettable *proxy,
683 gint *out_value,
684 GCancellable *cancellable,
685 GError **error);
686
687void sensor_integer_settable_call_set_value (
688 SensorIntegerSettable *proxy,
689 gint arg_value,
690 GCancellable *cancellable,
691 GAsyncReadyCallback callback,
692 gpointer user_data);
693
694gboolean sensor_integer_settable_call_set_value_finish (
695 SensorIntegerSettable *proxy,
696 GAsyncResult *res,
697 GError **error);
698
699gboolean sensor_integer_settable_call_set_value_sync (
700 SensorIntegerSettable *proxy,
701 gint arg_value,
702 GCancellable *cancellable,
703 GError **error);
704
705void sensor_integer_settable_call_get_units (
706 SensorIntegerSettable *proxy,
707 GCancellable *cancellable,
708 GAsyncReadyCallback callback,
709 gpointer user_data);
710
711gboolean sensor_integer_settable_call_get_units_finish (
712 SensorIntegerSettable *proxy,
713 gchar **out_units,
714 GAsyncResult *res,
715 GError **error);
716
717gboolean sensor_integer_settable_call_get_units_sync (
718 SensorIntegerSettable *proxy,
719 gchar **out_units,
720 GCancellable *cancellable,
721 GError **error);
722
723
724
725/* D-Bus property accessors: */
726gint sensor_integer_settable_get_value (SensorIntegerSettable *object);
727void sensor_integer_settable_set_value (SensorIntegerSettable *object, gint value);
728
729const gchar *sensor_integer_settable_get_units (SensorIntegerSettable *object);
730gchar *sensor_integer_settable_dup_units (SensorIntegerSettable *object);
731void sensor_integer_settable_set_units (SensorIntegerSettable *object, const gchar *value);
732
733
734/* ---- */
735
736#define TYPE_SENSOR_INTEGER_SETTABLE_PROXY (sensor_integer_settable_proxy_get_type ())
737#define SENSOR_INTEGER_SETTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxy))
738#define SENSOR_INTEGER_SETTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxyClass))
739#define SENSOR_INTEGER_SETTABLE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxyClass))
740#define IS_SENSOR_INTEGER_SETTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY))
741#define IS_SENSOR_INTEGER_SETTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SETTABLE_PROXY))
742
743typedef struct _SensorIntegerSettableProxy SensorIntegerSettableProxy;
744typedef struct _SensorIntegerSettableProxyClass SensorIntegerSettableProxyClass;
745typedef struct _SensorIntegerSettableProxyPrivate SensorIntegerSettableProxyPrivate;
746
747struct _SensorIntegerSettableProxy
748{
749 /*< private >*/
750 GDBusProxy parent_instance;
751 SensorIntegerSettableProxyPrivate *priv;
752};
753
754struct _SensorIntegerSettableProxyClass
755{
756 GDBusProxyClass parent_class;
757};
758
759GType sensor_integer_settable_proxy_get_type (void) G_GNUC_CONST;
760
761void sensor_integer_settable_proxy_new (
762 GDBusConnection *connection,
763 GDBusProxyFlags flags,
764 const gchar *name,
765 const gchar *object_path,
766 GCancellable *cancellable,
767 GAsyncReadyCallback callback,
768 gpointer user_data);
769SensorIntegerSettable *sensor_integer_settable_proxy_new_finish (
770 GAsyncResult *res,
771 GError **error);
772SensorIntegerSettable *sensor_integer_settable_proxy_new_sync (
773 GDBusConnection *connection,
774 GDBusProxyFlags flags,
775 const gchar *name,
776 const gchar *object_path,
777 GCancellable *cancellable,
778 GError **error);
779
780void sensor_integer_settable_proxy_new_for_bus (
781 GBusType bus_type,
782 GDBusProxyFlags flags,
783 const gchar *name,
784 const gchar *object_path,
785 GCancellable *cancellable,
786 GAsyncReadyCallback callback,
787 gpointer user_data);
788SensorIntegerSettable *sensor_integer_settable_proxy_new_for_bus_finish (
789 GAsyncResult *res,
790 GError **error);
791SensorIntegerSettable *sensor_integer_settable_proxy_new_for_bus_sync (
792 GBusType bus_type,
793 GDBusProxyFlags flags,
794 const gchar *name,
795 const gchar *object_path,
796 GCancellable *cancellable,
797 GError **error);
798
799
800/* ---- */
801
802#define TYPE_SENSOR_INTEGER_SETTABLE_SKELETON (sensor_integer_settable_skeleton_get_type ())
803#define SENSOR_INTEGER_SETTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeleton))
804#define SENSOR_INTEGER_SETTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeletonClass))
805#define SENSOR_INTEGER_SETTABLE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeletonClass))
806#define IS_SENSOR_INTEGER_SETTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON))
807#define IS_SENSOR_INTEGER_SETTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON))
808
809typedef struct _SensorIntegerSettableSkeleton SensorIntegerSettableSkeleton;
810typedef struct _SensorIntegerSettableSkeletonClass SensorIntegerSettableSkeletonClass;
811typedef struct _SensorIntegerSettableSkeletonPrivate SensorIntegerSettableSkeletonPrivate;
812
813struct _SensorIntegerSettableSkeleton
814{
815 /*< private >*/
816 GDBusInterfaceSkeleton parent_instance;
817 SensorIntegerSettableSkeletonPrivate *priv;
818};
819
820struct _SensorIntegerSettableSkeletonClass
821{
822 GDBusInterfaceSkeletonClass parent_class;
823};
824
825GType sensor_integer_settable_skeleton_get_type (void) G_GNUC_CONST;
826
827SensorIntegerSettable *sensor_integer_settable_skeleton_new (void);
828
829
Norman Jamescc7ae122015-08-24 14:26:09 -0500830/* ------------------------------------------------------------------------ */
831/* Declarations for org.openbmc.SensorIntegerThreshold */
832
833#define TYPE_SENSOR_INTEGER_THRESHOLD (sensor_integer_threshold_get_type ())
834#define SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThreshold))
835#define IS_SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD))
836#define SENSOR_INTEGER_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThresholdIface))
837
838struct _SensorIntegerThreshold;
839typedef struct _SensorIntegerThreshold SensorIntegerThreshold;
840typedef struct _SensorIntegerThresholdIface SensorIntegerThresholdIface;
841
842struct _SensorIntegerThresholdIface
843{
844 GTypeInterface parent_iface;
845
846
847
848 gboolean (*handle_check) (
849 SensorIntegerThreshold *object,
850 GDBusMethodInvocation *invocation,
851 gint arg_value);
852
853 gboolean (*handle_set_thresholds) (
854 SensorIntegerThreshold *object,
855 GDBusMethodInvocation *invocation,
856 gint arg_critical_upper,
857 gint arg_critical_lower,
858 gint arg_warning_upper,
859 gint arg_warning_lower);
860
861 gint (*get_critical_lower) (SensorIntegerThreshold *object);
862
863 gint (*get_critical_upper) (SensorIntegerThreshold *object);
864
865 gint (*get_warning_lower) (SensorIntegerThreshold *object);
866
867 gint (*get_warning_upper) (SensorIntegerThreshold *object);
868
869 void (*critical) (
870 SensorIntegerThreshold *object,
871 gboolean arg_over);
872
873 void (*warning) (
874 SensorIntegerThreshold *object,
875 gboolean arg_over);
876
877};
878
879GType sensor_integer_threshold_get_type (void) G_GNUC_CONST;
880
881GDBusInterfaceInfo *sensor_integer_threshold_interface_info (void);
882guint sensor_integer_threshold_override_properties (GObjectClass *klass, guint property_id_begin);
883
884
885/* D-Bus method call completion functions: */
886void sensor_integer_threshold_complete_check (
887 SensorIntegerThreshold *object,
888 GDBusMethodInvocation *invocation);
889
890void sensor_integer_threshold_complete_set_thresholds (
891 SensorIntegerThreshold *object,
892 GDBusMethodInvocation *invocation);
893
894
895
896/* D-Bus signal emissions functions: */
897void sensor_integer_threshold_emit_critical (
898 SensorIntegerThreshold *object,
899 gboolean arg_over);
900
901void sensor_integer_threshold_emit_warning (
902 SensorIntegerThreshold *object,
903 gboolean arg_over);
904
905
906
907/* D-Bus method calls: */
908void sensor_integer_threshold_call_check (
909 SensorIntegerThreshold *proxy,
910 gint arg_value,
911 GCancellable *cancellable,
912 GAsyncReadyCallback callback,
913 gpointer user_data);
914
915gboolean sensor_integer_threshold_call_check_finish (
916 SensorIntegerThreshold *proxy,
917 GAsyncResult *res,
918 GError **error);
919
920gboolean sensor_integer_threshold_call_check_sync (
921 SensorIntegerThreshold *proxy,
922 gint arg_value,
923 GCancellable *cancellable,
924 GError **error);
925
926void sensor_integer_threshold_call_set_thresholds (
927 SensorIntegerThreshold *proxy,
928 gint arg_critical_upper,
929 gint arg_critical_lower,
930 gint arg_warning_upper,
931 gint arg_warning_lower,
932 GCancellable *cancellable,
933 GAsyncReadyCallback callback,
934 gpointer user_data);
935
936gboolean sensor_integer_threshold_call_set_thresholds_finish (
937 SensorIntegerThreshold *proxy,
938 GAsyncResult *res,
939 GError **error);
940
941gboolean sensor_integer_threshold_call_set_thresholds_sync (
942 SensorIntegerThreshold *proxy,
943 gint arg_critical_upper,
944 gint arg_critical_lower,
945 gint arg_warning_upper,
946 gint arg_warning_lower,
947 GCancellable *cancellable,
948 GError **error);
949
950
951
952/* D-Bus property accessors: */
953gint sensor_integer_threshold_get_critical_upper (SensorIntegerThreshold *object);
954void sensor_integer_threshold_set_critical_upper (SensorIntegerThreshold *object, gint value);
955
956gint sensor_integer_threshold_get_critical_lower (SensorIntegerThreshold *object);
957void sensor_integer_threshold_set_critical_lower (SensorIntegerThreshold *object, gint value);
958
959gint sensor_integer_threshold_get_warning_upper (SensorIntegerThreshold *object);
960void sensor_integer_threshold_set_warning_upper (SensorIntegerThreshold *object, gint value);
961
962gint sensor_integer_threshold_get_warning_lower (SensorIntegerThreshold *object);
963void sensor_integer_threshold_set_warning_lower (SensorIntegerThreshold *object, gint value);
964
965
966/* ---- */
967
968#define TYPE_SENSOR_INTEGER_THRESHOLD_PROXY (sensor_integer_threshold_proxy_get_type ())
969#define SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxy))
970#define SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass))
971#define SENSOR_INTEGER_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass))
972#define IS_SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY))
973#define IS_SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY))
974
975typedef struct _SensorIntegerThresholdProxy SensorIntegerThresholdProxy;
976typedef struct _SensorIntegerThresholdProxyClass SensorIntegerThresholdProxyClass;
977typedef struct _SensorIntegerThresholdProxyPrivate SensorIntegerThresholdProxyPrivate;
978
979struct _SensorIntegerThresholdProxy
980{
981 /*< private >*/
982 GDBusProxy parent_instance;
983 SensorIntegerThresholdProxyPrivate *priv;
984};
985
986struct _SensorIntegerThresholdProxyClass
987{
988 GDBusProxyClass parent_class;
989};
990
991GType sensor_integer_threshold_proxy_get_type (void) G_GNUC_CONST;
992
993void sensor_integer_threshold_proxy_new (
994 GDBusConnection *connection,
995 GDBusProxyFlags flags,
996 const gchar *name,
997 const gchar *object_path,
998 GCancellable *cancellable,
999 GAsyncReadyCallback callback,
1000 gpointer user_data);
1001SensorIntegerThreshold *sensor_integer_threshold_proxy_new_finish (
1002 GAsyncResult *res,
1003 GError **error);
1004SensorIntegerThreshold *sensor_integer_threshold_proxy_new_sync (
1005 GDBusConnection *connection,
1006 GDBusProxyFlags flags,
1007 const gchar *name,
1008 const gchar *object_path,
1009 GCancellable *cancellable,
1010 GError **error);
1011
1012void sensor_integer_threshold_proxy_new_for_bus (
1013 GBusType bus_type,
1014 GDBusProxyFlags flags,
1015 const gchar *name,
1016 const gchar *object_path,
1017 GCancellable *cancellable,
1018 GAsyncReadyCallback callback,
1019 gpointer user_data);
1020SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_finish (
1021 GAsyncResult *res,
1022 GError **error);
1023SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_sync (
1024 GBusType bus_type,
1025 GDBusProxyFlags flags,
1026 const gchar *name,
1027 const gchar *object_path,
1028 GCancellable *cancellable,
1029 GError **error);
1030
1031
1032/* ---- */
1033
1034#define TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON (sensor_integer_threshold_skeleton_get_type ())
1035#define SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeleton))
1036#define SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass))
1037#define SENSOR_INTEGER_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass))
1038#define IS_SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON))
1039#define IS_SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON))
1040
1041typedef struct _SensorIntegerThresholdSkeleton SensorIntegerThresholdSkeleton;
1042typedef struct _SensorIntegerThresholdSkeletonClass SensorIntegerThresholdSkeletonClass;
1043typedef struct _SensorIntegerThresholdSkeletonPrivate SensorIntegerThresholdSkeletonPrivate;
1044
1045struct _SensorIntegerThresholdSkeleton
1046{
1047 /*< private >*/
1048 GDBusInterfaceSkeleton parent_instance;
1049 SensorIntegerThresholdSkeletonPrivate *priv;
1050};
1051
1052struct _SensorIntegerThresholdSkeletonClass
1053{
1054 GDBusInterfaceSkeletonClass parent_class;
1055};
1056
1057GType sensor_integer_threshold_skeleton_get_type (void) G_GNUC_CONST;
1058
1059SensorIntegerThreshold *sensor_integer_threshold_skeleton_new (void);
1060
1061
Norman Jamese2765102015-08-19 22:00:55 -05001062/* ---- */
1063
1064#define TYPE_OBJECT (object_get_type ())
1065#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
1066#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
1067#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
1068
1069struct _Object;
1070typedef struct _Object Object;
1071typedef struct _ObjectIface ObjectIface;
1072
1073struct _ObjectIface
1074{
1075 GTypeInterface parent_iface;
1076};
1077
1078GType object_get_type (void) G_GNUC_CONST;
1079
1080SensorInteger *object_get_sensor_integer (Object *object);
1081SensorString *object_get_sensor_string (Object *object);
1082SensorIntegerSettable *object_get_sensor_integer_settable (Object *object);
Norman Jamescc7ae122015-08-24 14:26:09 -05001083SensorIntegerThreshold *object_get_sensor_integer_threshold (Object *object);
Norman Jamese2765102015-08-19 22:00:55 -05001084SensorInteger *object_peek_sensor_integer (Object *object);
1085SensorString *object_peek_sensor_string (Object *object);
1086SensorIntegerSettable *object_peek_sensor_integer_settable (Object *object);
Norman Jamescc7ae122015-08-24 14:26:09 -05001087SensorIntegerThreshold *object_peek_sensor_integer_threshold (Object *object);
Norman Jamese2765102015-08-19 22:00:55 -05001088
1089#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
1090#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
1091#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
1092#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
1093#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
1094#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
1095
1096typedef struct _ObjectProxy ObjectProxy;
1097typedef struct _ObjectProxyClass ObjectProxyClass;
1098typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
1099
1100struct _ObjectProxy
1101{
1102 /*< private >*/
1103 GDBusObjectProxy parent_instance;
1104 ObjectProxyPrivate *priv;
1105};
1106
1107struct _ObjectProxyClass
1108{
1109 GDBusObjectProxyClass parent_class;
1110};
1111
1112GType object_proxy_get_type (void) G_GNUC_CONST;
1113ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
1114
1115#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
1116#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
1117#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
1118#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
1119#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
1120#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
1121
1122typedef struct _ObjectSkeleton ObjectSkeleton;
1123typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
1124typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
1125
1126struct _ObjectSkeleton
1127{
1128 /*< private >*/
1129 GDBusObjectSkeleton parent_instance;
1130 ObjectSkeletonPrivate *priv;
1131};
1132
1133struct _ObjectSkeletonClass
1134{
1135 GDBusObjectSkeletonClass parent_class;
1136};
1137
1138GType object_skeleton_get_type (void) G_GNUC_CONST;
1139ObjectSkeleton *object_skeleton_new (const gchar *object_path);
1140void object_skeleton_set_sensor_integer (ObjectSkeleton *object, SensorInteger *interface_);
1141void object_skeleton_set_sensor_string (ObjectSkeleton *object, SensorString *interface_);
1142void object_skeleton_set_sensor_integer_settable (ObjectSkeleton *object, SensorIntegerSettable *interface_);
Norman Jamescc7ae122015-08-24 14:26:09 -05001143void object_skeleton_set_sensor_integer_threshold (ObjectSkeleton *object, SensorIntegerThreshold *interface_);
Norman Jamese2765102015-08-19 22:00:55 -05001144
1145/* ---- */
1146
1147#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
1148#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
1149#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
1150#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
1151#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
1152#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
1153
1154typedef struct _ObjectManagerClient ObjectManagerClient;
1155typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
1156typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
1157
1158struct _ObjectManagerClient
1159{
1160 /*< private >*/
1161 GDBusObjectManagerClient parent_instance;
1162 ObjectManagerClientPrivate *priv;
1163};
1164
1165struct _ObjectManagerClientClass
1166{
1167 GDBusObjectManagerClientClass parent_class;
1168};
1169
1170GType object_manager_client_get_type (void) G_GNUC_CONST;
1171
1172GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
1173
1174void object_manager_client_new (
1175 GDBusConnection *connection,
1176 GDBusObjectManagerClientFlags flags,
1177 const gchar *name,
1178 const gchar *object_path,
1179 GCancellable *cancellable,
1180 GAsyncReadyCallback callback,
1181 gpointer user_data);
1182GDBusObjectManager *object_manager_client_new_finish (
1183 GAsyncResult *res,
1184 GError **error);
1185GDBusObjectManager *object_manager_client_new_sync (
1186 GDBusConnection *connection,
1187 GDBusObjectManagerClientFlags flags,
1188 const gchar *name,
1189 const gchar *object_path,
1190 GCancellable *cancellable,
1191 GError **error);
1192
1193void object_manager_client_new_for_bus (
1194 GBusType bus_type,
1195 GDBusObjectManagerClientFlags flags,
1196 const gchar *name,
1197 const gchar *object_path,
1198 GCancellable *cancellable,
1199 GAsyncReadyCallback callback,
1200 gpointer user_data);
1201GDBusObjectManager *object_manager_client_new_for_bus_finish (
1202 GAsyncResult *res,
1203 GError **error);
1204GDBusObjectManager *object_manager_client_new_for_bus_sync (
1205 GBusType bus_type,
1206 GDBusObjectManagerClientFlags flags,
1207 const gchar *name,
1208 const gchar *object_path,
1209 GCancellable *cancellable,
1210 GError **error);
1211
1212
1213G_END_DECLS
1214
1215#endif /* __INTERFACES_SENSOR_H__ */