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