blob: 851a2be1916983ef1073e307bb935bbdb00a528e [file] [log] [blame]
Norman Jamesdc95ef72015-08-27 21:27:03 -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_SENSOR2_H__
8#define __INTERFACES_SENSOR2_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
33 gboolean (*handle_get_units) (
34 SensorInteger *object,
35 GDBusMethodInvocation *invocation);
36
37 gboolean (*handle_get_value) (
38 SensorInteger *object,
39 GDBusMethodInvocation *invocation);
40
41 gboolean (*handle_set_config_data) (
42 SensorInteger *object,
43 GDBusMethodInvocation *invocation,
44 const gchar *const *arg_config);
45
46 gboolean (*handle_set_poll_interval) (
47 SensorInteger *object,
48 GDBusMethodInvocation *invocation,
49 gint arg_poll_interval);
50
51 gboolean (*handle_set_value) (
52 SensorInteger *object,
53 GDBusMethodInvocation *invocation,
54 gint arg_value);
55
56 const gchar *const * (*get_config_data) (SensorInteger *object);
57
58 gint (*get_heatbeat) (SensorInteger *object);
59
60 gint (*get_poll_interval) (SensorInteger *object);
61
62 const gchar * (*get_units) (SensorInteger *object);
63
64 gint (*get_value) (SensorInteger *object);
65
66 void (*changed) (
67 SensorInteger *object,
68 gint arg_value);
69
70 void (*heartbeat) (
71 SensorInteger *object,
72 const gchar *arg_bus_name);
73
74};
75
76GType sensor_integer_get_type (void) G_GNUC_CONST;
77
78GDBusInterfaceInfo *sensor_integer_interface_info (void);
79guint sensor_integer_override_properties (GObjectClass *klass, guint property_id_begin);
80
81
82/* D-Bus method call completion functions: */
83void sensor_integer_complete_get_value (
84 SensorInteger *object,
85 GDBusMethodInvocation *invocation,
86 gint value);
87
88void sensor_integer_complete_set_value (
89 SensorInteger *object,
90 GDBusMethodInvocation *invocation);
91
92void sensor_integer_complete_get_units (
93 SensorInteger *object,
94 GDBusMethodInvocation *invocation,
95 const gchar *units);
96
97void sensor_integer_complete_set_poll_interval (
98 SensorInteger *object,
99 GDBusMethodInvocation *invocation);
100
101void sensor_integer_complete_set_config_data (
102 SensorInteger *object,
103 GDBusMethodInvocation *invocation);
104
105
106
107/* D-Bus signal emissions functions: */
108void sensor_integer_emit_changed (
109 SensorInteger *object,
110 gint arg_value);
111
112void sensor_integer_emit_heartbeat (
113 SensorInteger *object,
114 const gchar *arg_bus_name);
115
116
117
118/* D-Bus method calls: */
119void sensor_integer_call_get_value (
120 SensorInteger *proxy,
121 GCancellable *cancellable,
122 GAsyncReadyCallback callback,
123 gpointer user_data);
124
125gboolean sensor_integer_call_get_value_finish (
126 SensorInteger *proxy,
127 gint *out_value,
128 GAsyncResult *res,
129 GError **error);
130
131gboolean sensor_integer_call_get_value_sync (
132 SensorInteger *proxy,
133 gint *out_value,
134 GCancellable *cancellable,
135 GError **error);
136
137void sensor_integer_call_set_value (
138 SensorInteger *proxy,
139 gint arg_value,
140 GCancellable *cancellable,
141 GAsyncReadyCallback callback,
142 gpointer user_data);
143
144gboolean sensor_integer_call_set_value_finish (
145 SensorInteger *proxy,
146 GAsyncResult *res,
147 GError **error);
148
149gboolean sensor_integer_call_set_value_sync (
150 SensorInteger *proxy,
151 gint arg_value,
152 GCancellable *cancellable,
153 GError **error);
154
155void sensor_integer_call_get_units (
156 SensorInteger *proxy,
157 GCancellable *cancellable,
158 GAsyncReadyCallback callback,
159 gpointer user_data);
160
161gboolean sensor_integer_call_get_units_finish (
162 SensorInteger *proxy,
163 gchar **out_units,
164 GAsyncResult *res,
165 GError **error);
166
167gboolean sensor_integer_call_get_units_sync (
168 SensorInteger *proxy,
169 gchar **out_units,
170 GCancellable *cancellable,
171 GError **error);
172
173void sensor_integer_call_set_poll_interval (
174 SensorInteger *proxy,
175 gint arg_poll_interval,
176 GCancellable *cancellable,
177 GAsyncReadyCallback callback,
178 gpointer user_data);
179
180gboolean sensor_integer_call_set_poll_interval_finish (
181 SensorInteger *proxy,
182 GAsyncResult *res,
183 GError **error);
184
185gboolean sensor_integer_call_set_poll_interval_sync (
186 SensorInteger *proxy,
187 gint arg_poll_interval,
188 GCancellable *cancellable,
189 GError **error);
190
191void sensor_integer_call_set_config_data (
192 SensorInteger *proxy,
193 const gchar *const *arg_config,
194 GCancellable *cancellable,
195 GAsyncReadyCallback callback,
196 gpointer user_data);
197
198gboolean sensor_integer_call_set_config_data_finish (
199 SensorInteger *proxy,
200 GAsyncResult *res,
201 GError **error);
202
203gboolean sensor_integer_call_set_config_data_sync (
204 SensorInteger *proxy,
205 const gchar *const *arg_config,
206 GCancellable *cancellable,
207 GError **error);
208
209
210
211/* D-Bus property accessors: */
212gint sensor_integer_get_value (SensorInteger *object);
213void sensor_integer_set_value (SensorInteger *object, gint value);
214
215const gchar *sensor_integer_get_units (SensorInteger *object);
216gchar *sensor_integer_dup_units (SensorInteger *object);
217void sensor_integer_set_units (SensorInteger *object, const gchar *value);
218
219gint sensor_integer_get_poll_interval (SensorInteger *object);
220void sensor_integer_set_poll_interval (SensorInteger *object, gint value);
221
222const gchar *const *sensor_integer_get_config_data (SensorInteger *object);
223gchar **sensor_integer_dup_config_data (SensorInteger *object);
224void sensor_integer_set_config_data (SensorInteger *object, const gchar *const *value);
225
226gint sensor_integer_get_heatbeat (SensorInteger *object);
227void sensor_integer_set_heatbeat (SensorInteger *object, gint value);
228
229
230/* ---- */
231
232#define TYPE_SENSOR_INTEGER_PROXY (sensor_integer_proxy_get_type ())
233#define SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxy))
234#define SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass))
235#define SENSOR_INTEGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass))
236#define IS_SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_PROXY))
237#define IS_SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_PROXY))
238
239typedef struct _SensorIntegerProxy SensorIntegerProxy;
240typedef struct _SensorIntegerProxyClass SensorIntegerProxyClass;
241typedef struct _SensorIntegerProxyPrivate SensorIntegerProxyPrivate;
242
243struct _SensorIntegerProxy
244{
245 /*< private >*/
246 GDBusProxy parent_instance;
247 SensorIntegerProxyPrivate *priv;
248};
249
250struct _SensorIntegerProxyClass
251{
252 GDBusProxyClass parent_class;
253};
254
255GType sensor_integer_proxy_get_type (void) G_GNUC_CONST;
256
257void sensor_integer_proxy_new (
258 GDBusConnection *connection,
259 GDBusProxyFlags flags,
260 const gchar *name,
261 const gchar *object_path,
262 GCancellable *cancellable,
263 GAsyncReadyCallback callback,
264 gpointer user_data);
265SensorInteger *sensor_integer_proxy_new_finish (
266 GAsyncResult *res,
267 GError **error);
268SensorInteger *sensor_integer_proxy_new_sync (
269 GDBusConnection *connection,
270 GDBusProxyFlags flags,
271 const gchar *name,
272 const gchar *object_path,
273 GCancellable *cancellable,
274 GError **error);
275
276void sensor_integer_proxy_new_for_bus (
277 GBusType bus_type,
278 GDBusProxyFlags flags,
279 const gchar *name,
280 const gchar *object_path,
281 GCancellable *cancellable,
282 GAsyncReadyCallback callback,
283 gpointer user_data);
284SensorInteger *sensor_integer_proxy_new_for_bus_finish (
285 GAsyncResult *res,
286 GError **error);
287SensorInteger *sensor_integer_proxy_new_for_bus_sync (
288 GBusType bus_type,
289 GDBusProxyFlags flags,
290 const gchar *name,
291 const gchar *object_path,
292 GCancellable *cancellable,
293 GError **error);
294
295
296/* ---- */
297
298#define TYPE_SENSOR_INTEGER_SKELETON (sensor_integer_skeleton_get_type ())
299#define SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeleton))
300#define SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass))
301#define SENSOR_INTEGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass))
302#define IS_SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SKELETON))
303#define IS_SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SKELETON))
304
305typedef struct _SensorIntegerSkeleton SensorIntegerSkeleton;
306typedef struct _SensorIntegerSkeletonClass SensorIntegerSkeletonClass;
307typedef struct _SensorIntegerSkeletonPrivate SensorIntegerSkeletonPrivate;
308
309struct _SensorIntegerSkeleton
310{
311 /*< private >*/
312 GDBusInterfaceSkeleton parent_instance;
313 SensorIntegerSkeletonPrivate *priv;
314};
315
316struct _SensorIntegerSkeletonClass
317{
318 GDBusInterfaceSkeletonClass parent_class;
319};
320
321GType sensor_integer_skeleton_get_type (void) G_GNUC_CONST;
322
323SensorInteger *sensor_integer_skeleton_new (void);
324
325
326/* ------------------------------------------------------------------------ */
327/* Declarations for org.openbmc.SensorString */
328
329#define TYPE_SENSOR_STRING (sensor_string_get_type ())
330#define SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING, SensorString))
331#define IS_SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING))
332#define SENSOR_STRING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_STRING, SensorStringIface))
333
334struct _SensorString;
335typedef struct _SensorString SensorString;
336typedef struct _SensorStringIface SensorStringIface;
337
338struct _SensorStringIface
339{
340 GTypeInterface parent_iface;
341
342
343
344 gboolean (*handle_get_units) (
345 SensorString *object,
346 GDBusMethodInvocation *invocation);
347
348 gboolean (*handle_get_value) (
349 SensorString *object,
350 GDBusMethodInvocation *invocation);
351
352 const gchar * (*get_units) (SensorString *object);
353
354 gint (*get_value) (SensorString *object);
355
356 void (*changed) (
357 SensorString *object,
358 const gchar *arg_value);
359
360};
361
362GType sensor_string_get_type (void) G_GNUC_CONST;
363
364GDBusInterfaceInfo *sensor_string_interface_info (void);
365guint sensor_string_override_properties (GObjectClass *klass, guint property_id_begin);
366
367
368/* D-Bus method call completion functions: */
369void sensor_string_complete_get_value (
370 SensorString *object,
371 GDBusMethodInvocation *invocation,
372 const gchar *value);
373
374void sensor_string_complete_get_units (
375 SensorString *object,
376 GDBusMethodInvocation *invocation,
377 const gchar *units);
378
379
380
381/* D-Bus signal emissions functions: */
382void sensor_string_emit_changed (
383 SensorString *object,
384 const gchar *arg_value);
385
386
387
388/* D-Bus method calls: */
389void sensor_string_call_get_value (
390 SensorString *proxy,
391 GCancellable *cancellable,
392 GAsyncReadyCallback callback,
393 gpointer user_data);
394
395gboolean sensor_string_call_get_value_finish (
396 SensorString *proxy,
397 gchar **out_value,
398 GAsyncResult *res,
399 GError **error);
400
401gboolean sensor_string_call_get_value_sync (
402 SensorString *proxy,
403 gchar **out_value,
404 GCancellable *cancellable,
405 GError **error);
406
407void sensor_string_call_get_units (
408 SensorString *proxy,
409 GCancellable *cancellable,
410 GAsyncReadyCallback callback,
411 gpointer user_data);
412
413gboolean sensor_string_call_get_units_finish (
414 SensorString *proxy,
415 gchar **out_units,
416 GAsyncResult *res,
417 GError **error);
418
419gboolean sensor_string_call_get_units_sync (
420 SensorString *proxy,
421 gchar **out_units,
422 GCancellable *cancellable,
423 GError **error);
424
425
426
427/* D-Bus property accessors: */
428gint sensor_string_get_value (SensorString *object);
429void sensor_string_set_value (SensorString *object, gint value);
430
431const gchar *sensor_string_get_units (SensorString *object);
432gchar *sensor_string_dup_units (SensorString *object);
433void sensor_string_set_units (SensorString *object, const gchar *value);
434
435
436/* ---- */
437
438#define TYPE_SENSOR_STRING_PROXY (sensor_string_proxy_get_type ())
439#define SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxy))
440#define SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass))
441#define SENSOR_STRING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass))
442#define IS_SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_PROXY))
443#define IS_SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_PROXY))
444
445typedef struct _SensorStringProxy SensorStringProxy;
446typedef struct _SensorStringProxyClass SensorStringProxyClass;
447typedef struct _SensorStringProxyPrivate SensorStringProxyPrivate;
448
449struct _SensorStringProxy
450{
451 /*< private >*/
452 GDBusProxy parent_instance;
453 SensorStringProxyPrivate *priv;
454};
455
456struct _SensorStringProxyClass
457{
458 GDBusProxyClass parent_class;
459};
460
461GType sensor_string_proxy_get_type (void) G_GNUC_CONST;
462
463void sensor_string_proxy_new (
464 GDBusConnection *connection,
465 GDBusProxyFlags flags,
466 const gchar *name,
467 const gchar *object_path,
468 GCancellable *cancellable,
469 GAsyncReadyCallback callback,
470 gpointer user_data);
471SensorString *sensor_string_proxy_new_finish (
472 GAsyncResult *res,
473 GError **error);
474SensorString *sensor_string_proxy_new_sync (
475 GDBusConnection *connection,
476 GDBusProxyFlags flags,
477 const gchar *name,
478 const gchar *object_path,
479 GCancellable *cancellable,
480 GError **error);
481
482void sensor_string_proxy_new_for_bus (
483 GBusType bus_type,
484 GDBusProxyFlags flags,
485 const gchar *name,
486 const gchar *object_path,
487 GCancellable *cancellable,
488 GAsyncReadyCallback callback,
489 gpointer user_data);
490SensorString *sensor_string_proxy_new_for_bus_finish (
491 GAsyncResult *res,
492 GError **error);
493SensorString *sensor_string_proxy_new_for_bus_sync (
494 GBusType bus_type,
495 GDBusProxyFlags flags,
496 const gchar *name,
497 const gchar *object_path,
498 GCancellable *cancellable,
499 GError **error);
500
501
502/* ---- */
503
504#define TYPE_SENSOR_STRING_SKELETON (sensor_string_skeleton_get_type ())
505#define SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeleton))
506#define SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass))
507#define SENSOR_STRING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass))
508#define IS_SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_SKELETON))
509#define IS_SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_SKELETON))
510
511typedef struct _SensorStringSkeleton SensorStringSkeleton;
512typedef struct _SensorStringSkeletonClass SensorStringSkeletonClass;
513typedef struct _SensorStringSkeletonPrivate SensorStringSkeletonPrivate;
514
515struct _SensorStringSkeleton
516{
517 /*< private >*/
518 GDBusInterfaceSkeleton parent_instance;
519 SensorStringSkeletonPrivate *priv;
520};
521
522struct _SensorStringSkeletonClass
523{
524 GDBusInterfaceSkeletonClass parent_class;
525};
526
527GType sensor_string_skeleton_get_type (void) G_GNUC_CONST;
528
529SensorString *sensor_string_skeleton_new (void);
530
531
532/* ------------------------------------------------------------------------ */
533/* Declarations for org.openbmc.SensorIntegerThreshold */
534
535#define TYPE_SENSOR_INTEGER_THRESHOLD (sensor_integer_threshold_get_type ())
536#define SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThreshold))
537#define IS_SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD))
538#define SENSOR_INTEGER_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThresholdIface))
539
540struct _SensorIntegerThreshold;
541typedef struct _SensorIntegerThreshold SensorIntegerThreshold;
542typedef struct _SensorIntegerThresholdIface SensorIntegerThresholdIface;
543
544struct _SensorIntegerThresholdIface
545{
546 GTypeInterface parent_iface;
547
548
549
550 gboolean (*handle_get_state) (
551 SensorIntegerThreshold *object,
552 GDBusMethodInvocation *invocation);
553
554 gboolean (*handle_set) (
555 SensorIntegerThreshold *object,
556 GDBusMethodInvocation *invocation,
557 gint arg_lower_critical,
558 gint arg_lower_warning,
559 gint arg_upper_warning,
560 gint arg_upper_critical);
561
562 gint (*get_lower_critical) (SensorIntegerThreshold *object);
563
564 gint (*get_lower_warning) (SensorIntegerThreshold *object);
565
566 gint (*get_state) (SensorIntegerThreshold *object);
567
568 gint (*get_upper_critical) (SensorIntegerThreshold *object);
569
570 gint (*get_upper_warning) (SensorIntegerThreshold *object);
571
572 void (*critical) (
573 SensorIntegerThreshold *object);
574
575 void (*warning) (
576 SensorIntegerThreshold *object);
577
578};
579
580GType sensor_integer_threshold_get_type (void) G_GNUC_CONST;
581
582GDBusInterfaceInfo *sensor_integer_threshold_interface_info (void);
583guint sensor_integer_threshold_override_properties (GObjectClass *klass, guint property_id_begin);
584
585
586/* D-Bus method call completion functions: */
587void sensor_integer_threshold_complete_set (
588 SensorIntegerThreshold *object,
589 GDBusMethodInvocation *invocation);
590
591void sensor_integer_threshold_complete_get_state (
592 SensorIntegerThreshold *object,
593 GDBusMethodInvocation *invocation,
594 gint state);
595
596
597
598/* D-Bus signal emissions functions: */
599void sensor_integer_threshold_emit_warning (
600 SensorIntegerThreshold *object);
601
602void sensor_integer_threshold_emit_critical (
603 SensorIntegerThreshold *object);
604
605
606
607/* D-Bus method calls: */
608void sensor_integer_threshold_call_set (
609 SensorIntegerThreshold *proxy,
610 gint arg_lower_critical,
611 gint arg_lower_warning,
612 gint arg_upper_warning,
613 gint arg_upper_critical,
614 GCancellable *cancellable,
615 GAsyncReadyCallback callback,
616 gpointer user_data);
617
618gboolean sensor_integer_threshold_call_set_finish (
619 SensorIntegerThreshold *proxy,
620 GAsyncResult *res,
621 GError **error);
622
623gboolean sensor_integer_threshold_call_set_sync (
624 SensorIntegerThreshold *proxy,
625 gint arg_lower_critical,
626 gint arg_lower_warning,
627 gint arg_upper_warning,
628 gint arg_upper_critical,
629 GCancellable *cancellable,
630 GError **error);
631
632void sensor_integer_threshold_call_get_state (
633 SensorIntegerThreshold *proxy,
634 GCancellable *cancellable,
635 GAsyncReadyCallback callback,
636 gpointer user_data);
637
638gboolean sensor_integer_threshold_call_get_state_finish (
639 SensorIntegerThreshold *proxy,
640 gint *out_state,
641 GAsyncResult *res,
642 GError **error);
643
644gboolean sensor_integer_threshold_call_get_state_sync (
645 SensorIntegerThreshold *proxy,
646 gint *out_state,
647 GCancellable *cancellable,
648 GError **error);
649
650
651
652/* D-Bus property accessors: */
653gint sensor_integer_threshold_get_lower_critical (SensorIntegerThreshold *object);
654void sensor_integer_threshold_set_lower_critical (SensorIntegerThreshold *object, gint value);
655
656gint sensor_integer_threshold_get_lower_warning (SensorIntegerThreshold *object);
657void sensor_integer_threshold_set_lower_warning (SensorIntegerThreshold *object, gint value);
658
659gint sensor_integer_threshold_get_upper_warning (SensorIntegerThreshold *object);
660void sensor_integer_threshold_set_upper_warning (SensorIntegerThreshold *object, gint value);
661
662gint sensor_integer_threshold_get_upper_critical (SensorIntegerThreshold *object);
663void sensor_integer_threshold_set_upper_critical (SensorIntegerThreshold *object, gint value);
664
665gint sensor_integer_threshold_get_state (SensorIntegerThreshold *object);
666void sensor_integer_threshold_set_state (SensorIntegerThreshold *object, gint value);
667
668
669/* ---- */
670
671#define TYPE_SENSOR_INTEGER_THRESHOLD_PROXY (sensor_integer_threshold_proxy_get_type ())
672#define SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxy))
673#define SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass))
674#define SENSOR_INTEGER_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass))
675#define IS_SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY))
676#define IS_SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY))
677
678typedef struct _SensorIntegerThresholdProxy SensorIntegerThresholdProxy;
679typedef struct _SensorIntegerThresholdProxyClass SensorIntegerThresholdProxyClass;
680typedef struct _SensorIntegerThresholdProxyPrivate SensorIntegerThresholdProxyPrivate;
681
682struct _SensorIntegerThresholdProxy
683{
684 /*< private >*/
685 GDBusProxy parent_instance;
686 SensorIntegerThresholdProxyPrivate *priv;
687};
688
689struct _SensorIntegerThresholdProxyClass
690{
691 GDBusProxyClass parent_class;
692};
693
694GType sensor_integer_threshold_proxy_get_type (void) G_GNUC_CONST;
695
696void sensor_integer_threshold_proxy_new (
697 GDBusConnection *connection,
698 GDBusProxyFlags flags,
699 const gchar *name,
700 const gchar *object_path,
701 GCancellable *cancellable,
702 GAsyncReadyCallback callback,
703 gpointer user_data);
704SensorIntegerThreshold *sensor_integer_threshold_proxy_new_finish (
705 GAsyncResult *res,
706 GError **error);
707SensorIntegerThreshold *sensor_integer_threshold_proxy_new_sync (
708 GDBusConnection *connection,
709 GDBusProxyFlags flags,
710 const gchar *name,
711 const gchar *object_path,
712 GCancellable *cancellable,
713 GError **error);
714
715void sensor_integer_threshold_proxy_new_for_bus (
716 GBusType bus_type,
717 GDBusProxyFlags flags,
718 const gchar *name,
719 const gchar *object_path,
720 GCancellable *cancellable,
721 GAsyncReadyCallback callback,
722 gpointer user_data);
723SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_finish (
724 GAsyncResult *res,
725 GError **error);
726SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_sync (
727 GBusType bus_type,
728 GDBusProxyFlags flags,
729 const gchar *name,
730 const gchar *object_path,
731 GCancellable *cancellable,
732 GError **error);
733
734
735/* ---- */
736
737#define TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON (sensor_integer_threshold_skeleton_get_type ())
738#define SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeleton))
739#define SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass))
740#define SENSOR_INTEGER_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass))
741#define IS_SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON))
742#define IS_SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON))
743
744typedef struct _SensorIntegerThresholdSkeleton SensorIntegerThresholdSkeleton;
745typedef struct _SensorIntegerThresholdSkeletonClass SensorIntegerThresholdSkeletonClass;
746typedef struct _SensorIntegerThresholdSkeletonPrivate SensorIntegerThresholdSkeletonPrivate;
747
748struct _SensorIntegerThresholdSkeleton
749{
750 /*< private >*/
751 GDBusInterfaceSkeleton parent_instance;
752 SensorIntegerThresholdSkeletonPrivate *priv;
753};
754
755struct _SensorIntegerThresholdSkeletonClass
756{
757 GDBusInterfaceSkeletonClass parent_class;
758};
759
760GType sensor_integer_threshold_skeleton_get_type (void) G_GNUC_CONST;
761
762SensorIntegerThreshold *sensor_integer_threshold_skeleton_new (void);
763
764
765/* ---- */
766
767#define TYPE_OBJECT (object_get_type ())
768#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
769#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
770#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
771
772struct _Object;
773typedef struct _Object Object;
774typedef struct _ObjectIface ObjectIface;
775
776struct _ObjectIface
777{
778 GTypeInterface parent_iface;
779};
780
781GType object_get_type (void) G_GNUC_CONST;
782
783SensorInteger *object_get_sensor_integer (Object *object);
784SensorString *object_get_sensor_string (Object *object);
785SensorIntegerThreshold *object_get_sensor_integer_threshold (Object *object);
786SensorInteger *object_peek_sensor_integer (Object *object);
787SensorString *object_peek_sensor_string (Object *object);
788SensorIntegerThreshold *object_peek_sensor_integer_threshold (Object *object);
789
790#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
791#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
792#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
793#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
794#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
795#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
796
797typedef struct _ObjectProxy ObjectProxy;
798typedef struct _ObjectProxyClass ObjectProxyClass;
799typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
800
801struct _ObjectProxy
802{
803 /*< private >*/
804 GDBusObjectProxy parent_instance;
805 ObjectProxyPrivate *priv;
806};
807
808struct _ObjectProxyClass
809{
810 GDBusObjectProxyClass parent_class;
811};
812
813GType object_proxy_get_type (void) G_GNUC_CONST;
814ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
815
816#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
817#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
818#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
819#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
820#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
821#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
822
823typedef struct _ObjectSkeleton ObjectSkeleton;
824typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
825typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
826
827struct _ObjectSkeleton
828{
829 /*< private >*/
830 GDBusObjectSkeleton parent_instance;
831 ObjectSkeletonPrivate *priv;
832};
833
834struct _ObjectSkeletonClass
835{
836 GDBusObjectSkeletonClass parent_class;
837};
838
839GType object_skeleton_get_type (void) G_GNUC_CONST;
840ObjectSkeleton *object_skeleton_new (const gchar *object_path);
841void object_skeleton_set_sensor_integer (ObjectSkeleton *object, SensorInteger *interface_);
842void object_skeleton_set_sensor_string (ObjectSkeleton *object, SensorString *interface_);
843void object_skeleton_set_sensor_integer_threshold (ObjectSkeleton *object, SensorIntegerThreshold *interface_);
844
845/* ---- */
846
847#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
848#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
849#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
850#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
851#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
852#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
853
854typedef struct _ObjectManagerClient ObjectManagerClient;
855typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
856typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
857
858struct _ObjectManagerClient
859{
860 /*< private >*/
861 GDBusObjectManagerClient parent_instance;
862 ObjectManagerClientPrivate *priv;
863};
864
865struct _ObjectManagerClientClass
866{
867 GDBusObjectManagerClientClass parent_class;
868};
869
870GType object_manager_client_get_type (void) G_GNUC_CONST;
871
872GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
873
874void object_manager_client_new (
875 GDBusConnection *connection,
876 GDBusObjectManagerClientFlags flags,
877 const gchar *name,
878 const gchar *object_path,
879 GCancellable *cancellable,
880 GAsyncReadyCallback callback,
881 gpointer user_data);
882GDBusObjectManager *object_manager_client_new_finish (
883 GAsyncResult *res,
884 GError **error);
885GDBusObjectManager *object_manager_client_new_sync (
886 GDBusConnection *connection,
887 GDBusObjectManagerClientFlags flags,
888 const gchar *name,
889 const gchar *object_path,
890 GCancellable *cancellable,
891 GError **error);
892
893void object_manager_client_new_for_bus (
894 GBusType bus_type,
895 GDBusObjectManagerClientFlags flags,
896 const gchar *name,
897 const gchar *object_path,
898 GCancellable *cancellable,
899 GAsyncReadyCallback callback,
900 gpointer user_data);
901GDBusObjectManager *object_manager_client_new_for_bus_finish (
902 GAsyncResult *res,
903 GError **error);
904GDBusObjectManager *object_manager_client_new_for_bus_sync (
905 GBusType bus_type,
906 GDBusObjectManagerClientFlags flags,
907 const gchar *name,
908 const gchar *object_path,
909 GCancellable *cancellable,
910 GError **error);
911
912
913G_END_DECLS
914
915#endif /* __INTERFACES_SENSOR2_H__ */