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