blob: c244ec3637207b40306f233de09b9525b76abfa5 [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
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 James90baede2015-09-02 20:32:49 -050041 gboolean (*handle_init) (
Norman Jamese7594922015-08-27 14:25:24 -050042 SensorInteger *object,
43 GDBusMethodInvocation *invocation);
44
Norman Jamescc7ae122015-08-24 14:26:09 -050045 gboolean (*handle_set_poll_interval) (
46 SensorInteger *object,
47 GDBusMethodInvocation *invocation,
48 gint arg_poll_interval);
49
Norman James90baede2015-09-02 20:32:49 -050050 gboolean (*handle_set_value) (
Norman James3f97c5d2015-08-26 17:44:14 -050051 SensorInteger *object,
52 GDBusMethodInvocation *invocation,
Norman James90baede2015-09-02 20:32:49 -050053 gint arg_value);
Norman James3f97c5d2015-08-26 17:44:14 -050054
Norman James90baede2015-09-02 20:32:49 -050055 gint (*get_heatbeat) (SensorInteger *object);
Norman Jamescc7ae122015-08-24 14:26:09 -050056
57 gint (*get_poll_interval) (SensorInteger *object);
58
Norman Jamese2765102015-08-19 22:00:55 -050059 const gchar * (*get_units) (SensorInteger *object);
60
61 gint (*get_value) (SensorInteger *object);
62
63 void (*changed) (
64 SensorInteger *object,
Norman James90baede2015-09-02 20:32:49 -050065 gint arg_value,
66 const gchar *arg_units);
Norman Jamese2765102015-08-19 22:00:55 -050067
Norman James90baede2015-09-02 20:32:49 -050068 void (*heartbeat) (
69 SensorInteger *object,
70 const gchar *arg_bus_name);
Norman James3f97c5d2015-08-26 17:44:14 -050071
Norman Jamese2765102015-08-19 22:00:55 -050072};
73
74GType sensor_integer_get_type (void) G_GNUC_CONST;
75
76GDBusInterfaceInfo *sensor_integer_interface_info (void);
77guint sensor_integer_override_properties (GObjectClass *klass, guint property_id_begin);
78
79
80/* D-Bus method call completion functions: */
Norman James90baede2015-09-02 20:32:49 -050081void sensor_integer_complete_init (
82 SensorInteger *object,
83 GDBusMethodInvocation *invocation);
84
Norman Jamese2765102015-08-19 22:00:55 -050085void sensor_integer_complete_get_value (
86 SensorInteger *object,
87 GDBusMethodInvocation *invocation,
88 gint value);
89
Norman James90baede2015-09-02 20:32:49 -050090void sensor_integer_complete_set_value (
91 SensorInteger *object,
92 GDBusMethodInvocation *invocation);
93
Norman Jamese2765102015-08-19 22:00:55 -050094void sensor_integer_complete_get_units (
95 SensorInteger *object,
96 GDBusMethodInvocation *invocation,
97 const gchar *units);
98
Norman Jamescc7ae122015-08-24 14:26:09 -050099void sensor_integer_complete_set_poll_interval (
100 SensorInteger *object,
101 GDBusMethodInvocation *invocation);
102
Norman Jamese2765102015-08-19 22:00:55 -0500103
104
105/* D-Bus signal emissions functions: */
106void sensor_integer_emit_changed (
107 SensorInteger *object,
Norman James90baede2015-09-02 20:32:49 -0500108 gint arg_value,
109 const gchar *arg_units);
Norman Jamese2765102015-08-19 22:00:55 -0500110
Norman James90baede2015-09-02 20:32:49 -0500111void sensor_integer_emit_heartbeat (
112 SensorInteger *object,
113 const gchar *arg_bus_name);
Norman James3f97c5d2015-08-26 17:44:14 -0500114
Norman Jamese2765102015-08-19 22:00:55 -0500115
116
117/* D-Bus method calls: */
Norman James90baede2015-09-02 20:32:49 -0500118void sensor_integer_call_init (
119 SensorInteger *proxy,
120 GCancellable *cancellable,
121 GAsyncReadyCallback callback,
122 gpointer user_data);
123
124gboolean sensor_integer_call_init_finish (
125 SensorInteger *proxy,
126 GAsyncResult *res,
127 GError **error);
128
129gboolean sensor_integer_call_init_sync (
130 SensorInteger *proxy,
131 GCancellable *cancellable,
132 GError **error);
133
Norman Jamese2765102015-08-19 22:00:55 -0500134void sensor_integer_call_get_value (
135 SensorInteger *proxy,
136 GCancellable *cancellable,
137 GAsyncReadyCallback callback,
138 gpointer user_data);
139
140gboolean sensor_integer_call_get_value_finish (
141 SensorInteger *proxy,
142 gint *out_value,
143 GAsyncResult *res,
144 GError **error);
145
146gboolean sensor_integer_call_get_value_sync (
147 SensorInteger *proxy,
148 gint *out_value,
149 GCancellable *cancellable,
150 GError **error);
151
Norman James90baede2015-09-02 20:32:49 -0500152void sensor_integer_call_set_value (
153 SensorInteger *proxy,
154 gint arg_value,
155 GCancellable *cancellable,
156 GAsyncReadyCallback callback,
157 gpointer user_data);
158
159gboolean sensor_integer_call_set_value_finish (
160 SensorInteger *proxy,
161 GAsyncResult *res,
162 GError **error);
163
164gboolean sensor_integer_call_set_value_sync (
165 SensorInteger *proxy,
166 gint arg_value,
167 GCancellable *cancellable,
168 GError **error);
169
Norman Jamese2765102015-08-19 22:00:55 -0500170void sensor_integer_call_get_units (
171 SensorInteger *proxy,
172 GCancellable *cancellable,
173 GAsyncReadyCallback callback,
174 gpointer user_data);
175
176gboolean sensor_integer_call_get_units_finish (
177 SensorInteger *proxy,
178 gchar **out_units,
179 GAsyncResult *res,
180 GError **error);
181
182gboolean sensor_integer_call_get_units_sync (
183 SensorInteger *proxy,
184 gchar **out_units,
185 GCancellable *cancellable,
186 GError **error);
187
Norman Jamescc7ae122015-08-24 14:26:09 -0500188void sensor_integer_call_set_poll_interval (
189 SensorInteger *proxy,
190 gint arg_poll_interval,
191 GCancellable *cancellable,
192 GAsyncReadyCallback callback,
193 gpointer user_data);
194
195gboolean sensor_integer_call_set_poll_interval_finish (
196 SensorInteger *proxy,
197 GAsyncResult *res,
198 GError **error);
199
200gboolean sensor_integer_call_set_poll_interval_sync (
201 SensorInteger *proxy,
202 gint arg_poll_interval,
203 GCancellable *cancellable,
204 GError **error);
205
Norman Jamese2765102015-08-19 22:00:55 -0500206
207
208/* D-Bus property accessors: */
209gint sensor_integer_get_value (SensorInteger *object);
210void sensor_integer_set_value (SensorInteger *object, gint value);
211
212const gchar *sensor_integer_get_units (SensorInteger *object);
213gchar *sensor_integer_dup_units (SensorInteger *object);
214void sensor_integer_set_units (SensorInteger *object, const gchar *value);
215
Norman Jamescc7ae122015-08-24 14:26:09 -0500216gint sensor_integer_get_poll_interval (SensorInteger *object);
217void sensor_integer_set_poll_interval (SensorInteger *object, gint value);
218
Norman James90baede2015-09-02 20:32:49 -0500219gint sensor_integer_get_heatbeat (SensorInteger *object);
220void sensor_integer_set_heatbeat (SensorInteger *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500221
Norman Jamese2765102015-08-19 22:00:55 -0500222
223/* ---- */
224
225#define TYPE_SENSOR_INTEGER_PROXY (sensor_integer_proxy_get_type ())
226#define SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxy))
227#define SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass))
228#define SENSOR_INTEGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass))
229#define IS_SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_PROXY))
230#define IS_SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_PROXY))
231
232typedef struct _SensorIntegerProxy SensorIntegerProxy;
233typedef struct _SensorIntegerProxyClass SensorIntegerProxyClass;
234typedef struct _SensorIntegerProxyPrivate SensorIntegerProxyPrivate;
235
236struct _SensorIntegerProxy
237{
238 /*< private >*/
239 GDBusProxy parent_instance;
240 SensorIntegerProxyPrivate *priv;
241};
242
243struct _SensorIntegerProxyClass
244{
245 GDBusProxyClass parent_class;
246};
247
248GType sensor_integer_proxy_get_type (void) G_GNUC_CONST;
249
250void sensor_integer_proxy_new (
251 GDBusConnection *connection,
252 GDBusProxyFlags flags,
253 const gchar *name,
254 const gchar *object_path,
255 GCancellable *cancellable,
256 GAsyncReadyCallback callback,
257 gpointer user_data);
258SensorInteger *sensor_integer_proxy_new_finish (
259 GAsyncResult *res,
260 GError **error);
261SensorInteger *sensor_integer_proxy_new_sync (
262 GDBusConnection *connection,
263 GDBusProxyFlags flags,
264 const gchar *name,
265 const gchar *object_path,
266 GCancellable *cancellable,
267 GError **error);
268
269void sensor_integer_proxy_new_for_bus (
270 GBusType bus_type,
271 GDBusProxyFlags flags,
272 const gchar *name,
273 const gchar *object_path,
274 GCancellable *cancellable,
275 GAsyncReadyCallback callback,
276 gpointer user_data);
277SensorInteger *sensor_integer_proxy_new_for_bus_finish (
278 GAsyncResult *res,
279 GError **error);
280SensorInteger *sensor_integer_proxy_new_for_bus_sync (
281 GBusType bus_type,
282 GDBusProxyFlags flags,
283 const gchar *name,
284 const gchar *object_path,
285 GCancellable *cancellable,
286 GError **error);
287
288
289/* ---- */
290
291#define TYPE_SENSOR_INTEGER_SKELETON (sensor_integer_skeleton_get_type ())
292#define SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeleton))
293#define SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass))
294#define SENSOR_INTEGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass))
295#define IS_SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SKELETON))
296#define IS_SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SKELETON))
297
298typedef struct _SensorIntegerSkeleton SensorIntegerSkeleton;
299typedef struct _SensorIntegerSkeletonClass SensorIntegerSkeletonClass;
300typedef struct _SensorIntegerSkeletonPrivate SensorIntegerSkeletonPrivate;
301
302struct _SensorIntegerSkeleton
303{
304 /*< private >*/
305 GDBusInterfaceSkeleton parent_instance;
306 SensorIntegerSkeletonPrivate *priv;
307};
308
309struct _SensorIntegerSkeletonClass
310{
311 GDBusInterfaceSkeletonClass parent_class;
312};
313
314GType sensor_integer_skeleton_get_type (void) G_GNUC_CONST;
315
316SensorInteger *sensor_integer_skeleton_new (void);
317
318
319/* ------------------------------------------------------------------------ */
320/* Declarations for org.openbmc.SensorString */
321
322#define TYPE_SENSOR_STRING (sensor_string_get_type ())
323#define SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING, SensorString))
324#define IS_SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING))
325#define SENSOR_STRING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_STRING, SensorStringIface))
326
327struct _SensorString;
328typedef struct _SensorString SensorString;
329typedef struct _SensorStringIface SensorStringIface;
330
331struct _SensorStringIface
332{
333 GTypeInterface parent_iface;
334
335
336
337 gboolean (*handle_get_units) (
338 SensorString *object,
339 GDBusMethodInvocation *invocation);
340
341 gboolean (*handle_get_value) (
342 SensorString *object,
343 GDBusMethodInvocation *invocation);
344
345 const gchar * (*get_units) (SensorString *object);
346
347 gint (*get_value) (SensorString *object);
348
349 void (*changed) (
350 SensorString *object,
351 const gchar *arg_value);
352
353};
354
355GType sensor_string_get_type (void) G_GNUC_CONST;
356
357GDBusInterfaceInfo *sensor_string_interface_info (void);
358guint sensor_string_override_properties (GObjectClass *klass, guint property_id_begin);
359
360
361/* D-Bus method call completion functions: */
362void sensor_string_complete_get_value (
363 SensorString *object,
364 GDBusMethodInvocation *invocation,
365 const gchar *value);
366
367void sensor_string_complete_get_units (
368 SensorString *object,
369 GDBusMethodInvocation *invocation,
370 const gchar *units);
371
372
373
374/* D-Bus signal emissions functions: */
375void sensor_string_emit_changed (
376 SensorString *object,
377 const gchar *arg_value);
378
379
380
381/* D-Bus method calls: */
382void sensor_string_call_get_value (
383 SensorString *proxy,
384 GCancellable *cancellable,
385 GAsyncReadyCallback callback,
386 gpointer user_data);
387
388gboolean sensor_string_call_get_value_finish (
389 SensorString *proxy,
390 gchar **out_value,
391 GAsyncResult *res,
392 GError **error);
393
394gboolean sensor_string_call_get_value_sync (
395 SensorString *proxy,
396 gchar **out_value,
397 GCancellable *cancellable,
398 GError **error);
399
400void sensor_string_call_get_units (
401 SensorString *proxy,
402 GCancellable *cancellable,
403 GAsyncReadyCallback callback,
404 gpointer user_data);
405
406gboolean sensor_string_call_get_units_finish (
407 SensorString *proxy,
408 gchar **out_units,
409 GAsyncResult *res,
410 GError **error);
411
412gboolean sensor_string_call_get_units_sync (
413 SensorString *proxy,
414 gchar **out_units,
415 GCancellable *cancellable,
416 GError **error);
417
418
419
420/* D-Bus property accessors: */
421gint sensor_string_get_value (SensorString *object);
422void sensor_string_set_value (SensorString *object, gint value);
423
424const gchar *sensor_string_get_units (SensorString *object);
425gchar *sensor_string_dup_units (SensorString *object);
426void sensor_string_set_units (SensorString *object, const gchar *value);
427
428
429/* ---- */
430
431#define TYPE_SENSOR_STRING_PROXY (sensor_string_proxy_get_type ())
432#define SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxy))
433#define SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass))
434#define SENSOR_STRING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass))
435#define IS_SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_PROXY))
436#define IS_SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_PROXY))
437
438typedef struct _SensorStringProxy SensorStringProxy;
439typedef struct _SensorStringProxyClass SensorStringProxyClass;
440typedef struct _SensorStringProxyPrivate SensorStringProxyPrivate;
441
442struct _SensorStringProxy
443{
444 /*< private >*/
445 GDBusProxy parent_instance;
446 SensorStringProxyPrivate *priv;
447};
448
449struct _SensorStringProxyClass
450{
451 GDBusProxyClass parent_class;
452};
453
454GType sensor_string_proxy_get_type (void) G_GNUC_CONST;
455
456void sensor_string_proxy_new (
457 GDBusConnection *connection,
458 GDBusProxyFlags flags,
459 const gchar *name,
460 const gchar *object_path,
461 GCancellable *cancellable,
462 GAsyncReadyCallback callback,
463 gpointer user_data);
464SensorString *sensor_string_proxy_new_finish (
465 GAsyncResult *res,
466 GError **error);
467SensorString *sensor_string_proxy_new_sync (
468 GDBusConnection *connection,
469 GDBusProxyFlags flags,
470 const gchar *name,
471 const gchar *object_path,
472 GCancellable *cancellable,
473 GError **error);
474
475void sensor_string_proxy_new_for_bus (
476 GBusType bus_type,
477 GDBusProxyFlags flags,
478 const gchar *name,
479 const gchar *object_path,
480 GCancellable *cancellable,
481 GAsyncReadyCallback callback,
482 gpointer user_data);
483SensorString *sensor_string_proxy_new_for_bus_finish (
484 GAsyncResult *res,
485 GError **error);
486SensorString *sensor_string_proxy_new_for_bus_sync (
487 GBusType bus_type,
488 GDBusProxyFlags flags,
489 const gchar *name,
490 const gchar *object_path,
491 GCancellable *cancellable,
492 GError **error);
493
494
495/* ---- */
496
497#define TYPE_SENSOR_STRING_SKELETON (sensor_string_skeleton_get_type ())
498#define SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeleton))
499#define SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass))
500#define SENSOR_STRING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass))
501#define IS_SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_SKELETON))
502#define IS_SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_SKELETON))
503
504typedef struct _SensorStringSkeleton SensorStringSkeleton;
505typedef struct _SensorStringSkeletonClass SensorStringSkeletonClass;
506typedef struct _SensorStringSkeletonPrivate SensorStringSkeletonPrivate;
507
508struct _SensorStringSkeleton
509{
510 /*< private >*/
511 GDBusInterfaceSkeleton parent_instance;
512 SensorStringSkeletonPrivate *priv;
513};
514
515struct _SensorStringSkeletonClass
516{
517 GDBusInterfaceSkeletonClass parent_class;
518};
519
520GType sensor_string_skeleton_get_type (void) G_GNUC_CONST;
521
522SensorString *sensor_string_skeleton_new (void);
523
524
525/* ------------------------------------------------------------------------ */
Norman Jamescc7ae122015-08-24 14:26:09 -0500526/* Declarations for org.openbmc.SensorIntegerThreshold */
527
528#define TYPE_SENSOR_INTEGER_THRESHOLD (sensor_integer_threshold_get_type ())
529#define SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThreshold))
530#define IS_SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD))
531#define SENSOR_INTEGER_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThresholdIface))
532
533struct _SensorIntegerThreshold;
534typedef struct _SensorIntegerThreshold SensorIntegerThreshold;
535typedef struct _SensorIntegerThresholdIface SensorIntegerThresholdIface;
536
537struct _SensorIntegerThresholdIface
538{
539 GTypeInterface parent_iface;
540
541
542
Norman James90baede2015-09-02 20:32:49 -0500543 gboolean (*handle_get_state) (
544 SensorIntegerThreshold *object,
545 GDBusMethodInvocation *invocation);
546
547 gboolean (*handle_set) (
Norman Jamescc7ae122015-08-24 14:26:09 -0500548 SensorIntegerThreshold *object,
549 GDBusMethodInvocation *invocation,
Norman James90baede2015-09-02 20:32:49 -0500550 gint arg_lower_critical,
551 gint arg_lower_warning,
552 gint arg_upper_warning,
553 gint arg_upper_critical);
Norman Jamescc7ae122015-08-24 14:26:09 -0500554
Norman James90baede2015-09-02 20:32:49 -0500555 gint (*get_lower_critical) (SensorIntegerThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500556
Norman James90baede2015-09-02 20:32:49 -0500557 gint (*get_lower_warning) (SensorIntegerThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500558
Norman James90baede2015-09-02 20:32:49 -0500559 gint (*get_state) (SensorIntegerThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500560
Norman James90baede2015-09-02 20:32:49 -0500561 gint (*get_upper_critical) (SensorIntegerThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500562
Norman James90baede2015-09-02 20:32:49 -0500563 gint (*get_upper_warning) (SensorIntegerThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500564
565 void (*critical) (
Norman James90baede2015-09-02 20:32:49 -0500566 SensorIntegerThreshold *object);
567
568 void (*normal) (
569 SensorIntegerThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500570
571 void (*warning) (
Norman James90baede2015-09-02 20:32:49 -0500572 SensorIntegerThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500573
574};
575
576GType sensor_integer_threshold_get_type (void) G_GNUC_CONST;
577
578GDBusInterfaceInfo *sensor_integer_threshold_interface_info (void);
579guint sensor_integer_threshold_override_properties (GObjectClass *klass, guint property_id_begin);
580
581
582/* D-Bus method call completion functions: */
Norman James90baede2015-09-02 20:32:49 -0500583void sensor_integer_threshold_complete_set (
Norman Jamescc7ae122015-08-24 14:26:09 -0500584 SensorIntegerThreshold *object,
585 GDBusMethodInvocation *invocation);
586
Norman James90baede2015-09-02 20:32:49 -0500587void sensor_integer_threshold_complete_get_state (
Norman Jamescc7ae122015-08-24 14:26:09 -0500588 SensorIntegerThreshold *object,
Norman James90baede2015-09-02 20:32:49 -0500589 GDBusMethodInvocation *invocation,
590 gint state);
Norman Jamescc7ae122015-08-24 14:26:09 -0500591
592
593
594/* D-Bus signal emissions functions: */
Norman Jamescc7ae122015-08-24 14:26:09 -0500595void sensor_integer_threshold_emit_warning (
Norman James90baede2015-09-02 20:32:49 -0500596 SensorIntegerThreshold *object);
597
598void sensor_integer_threshold_emit_critical (
599 SensorIntegerThreshold *object);
600
601void sensor_integer_threshold_emit_normal (
602 SensorIntegerThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500603
604
605
606/* D-Bus method calls: */
Norman James90baede2015-09-02 20:32:49 -0500607void sensor_integer_threshold_call_set (
Norman Jamescc7ae122015-08-24 14:26:09 -0500608 SensorIntegerThreshold *proxy,
Norman James90baede2015-09-02 20:32:49 -0500609 gint arg_lower_critical,
610 gint arg_lower_warning,
611 gint arg_upper_warning,
612 gint arg_upper_critical,
Norman Jamescc7ae122015-08-24 14:26:09 -0500613 GCancellable *cancellable,
614 GAsyncReadyCallback callback,
615 gpointer user_data);
616
Norman James90baede2015-09-02 20:32:49 -0500617gboolean sensor_integer_threshold_call_set_finish (
Norman Jamescc7ae122015-08-24 14:26:09 -0500618 SensorIntegerThreshold *proxy,
619 GAsyncResult *res,
620 GError **error);
621
Norman James90baede2015-09-02 20:32:49 -0500622gboolean sensor_integer_threshold_call_set_sync (
Norman Jamescc7ae122015-08-24 14:26:09 -0500623 SensorIntegerThreshold *proxy,
Norman James90baede2015-09-02 20:32:49 -0500624 gint arg_lower_critical,
625 gint arg_lower_warning,
626 gint arg_upper_warning,
627 gint arg_upper_critical,
Norman Jamescc7ae122015-08-24 14:26:09 -0500628 GCancellable *cancellable,
629 GError **error);
630
Norman James90baede2015-09-02 20:32:49 -0500631void sensor_integer_threshold_call_get_state (
Norman Jamescc7ae122015-08-24 14:26:09 -0500632 SensorIntegerThreshold *proxy,
Norman Jamescc7ae122015-08-24 14:26:09 -0500633 GCancellable *cancellable,
634 GAsyncReadyCallback callback,
635 gpointer user_data);
636
Norman James90baede2015-09-02 20:32:49 -0500637gboolean sensor_integer_threshold_call_get_state_finish (
Norman Jamescc7ae122015-08-24 14:26:09 -0500638 SensorIntegerThreshold *proxy,
Norman James90baede2015-09-02 20:32:49 -0500639 gint *out_state,
Norman Jamescc7ae122015-08-24 14:26:09 -0500640 GAsyncResult *res,
641 GError **error);
642
Norman James90baede2015-09-02 20:32:49 -0500643gboolean sensor_integer_threshold_call_get_state_sync (
Norman Jamescc7ae122015-08-24 14:26:09 -0500644 SensorIntegerThreshold *proxy,
Norman James90baede2015-09-02 20:32:49 -0500645 gint *out_state,
Norman Jamescc7ae122015-08-24 14:26:09 -0500646 GCancellable *cancellable,
647 GError **error);
648
649
650
651/* D-Bus property accessors: */
Norman James90baede2015-09-02 20:32:49 -0500652gint sensor_integer_threshold_get_lower_critical (SensorIntegerThreshold *object);
653void sensor_integer_threshold_set_lower_critical (SensorIntegerThreshold *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500654
Norman James90baede2015-09-02 20:32:49 -0500655gint sensor_integer_threshold_get_lower_warning (SensorIntegerThreshold *object);
656void sensor_integer_threshold_set_lower_warning (SensorIntegerThreshold *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500657
Norman James90baede2015-09-02 20:32:49 -0500658gint sensor_integer_threshold_get_upper_warning (SensorIntegerThreshold *object);
659void sensor_integer_threshold_set_upper_warning (SensorIntegerThreshold *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500660
Norman James90baede2015-09-02 20:32:49 -0500661gint sensor_integer_threshold_get_upper_critical (SensorIntegerThreshold *object);
662void sensor_integer_threshold_set_upper_critical (SensorIntegerThreshold *object, gint value);
663
664gint sensor_integer_threshold_get_state (SensorIntegerThreshold *object);
665void sensor_integer_threshold_set_state (SensorIntegerThreshold *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500666
667
668/* ---- */
669
670#define TYPE_SENSOR_INTEGER_THRESHOLD_PROXY (sensor_integer_threshold_proxy_get_type ())
671#define SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxy))
672#define SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass))
673#define SENSOR_INTEGER_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass))
674#define IS_SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY))
675#define IS_SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY))
676
677typedef struct _SensorIntegerThresholdProxy SensorIntegerThresholdProxy;
678typedef struct _SensorIntegerThresholdProxyClass SensorIntegerThresholdProxyClass;
679typedef struct _SensorIntegerThresholdProxyPrivate SensorIntegerThresholdProxyPrivate;
680
681struct _SensorIntegerThresholdProxy
682{
683 /*< private >*/
684 GDBusProxy parent_instance;
685 SensorIntegerThresholdProxyPrivate *priv;
686};
687
688struct _SensorIntegerThresholdProxyClass
689{
690 GDBusProxyClass parent_class;
691};
692
693GType sensor_integer_threshold_proxy_get_type (void) G_GNUC_CONST;
694
695void sensor_integer_threshold_proxy_new (
696 GDBusConnection *connection,
697 GDBusProxyFlags flags,
698 const gchar *name,
699 const gchar *object_path,
700 GCancellable *cancellable,
701 GAsyncReadyCallback callback,
702 gpointer user_data);
703SensorIntegerThreshold *sensor_integer_threshold_proxy_new_finish (
704 GAsyncResult *res,
705 GError **error);
706SensorIntegerThreshold *sensor_integer_threshold_proxy_new_sync (
707 GDBusConnection *connection,
708 GDBusProxyFlags flags,
709 const gchar *name,
710 const gchar *object_path,
711 GCancellable *cancellable,
712 GError **error);
713
714void sensor_integer_threshold_proxy_new_for_bus (
715 GBusType bus_type,
716 GDBusProxyFlags flags,
717 const gchar *name,
718 const gchar *object_path,
719 GCancellable *cancellable,
720 GAsyncReadyCallback callback,
721 gpointer user_data);
722SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_finish (
723 GAsyncResult *res,
724 GError **error);
725SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_sync (
726 GBusType bus_type,
727 GDBusProxyFlags flags,
728 const gchar *name,
729 const gchar *object_path,
730 GCancellable *cancellable,
731 GError **error);
732
733
734/* ---- */
735
736#define TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON (sensor_integer_threshold_skeleton_get_type ())
737#define SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeleton))
738#define SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass))
739#define SENSOR_INTEGER_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass))
740#define IS_SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON))
741#define IS_SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON))
742
743typedef struct _SensorIntegerThresholdSkeleton SensorIntegerThresholdSkeleton;
744typedef struct _SensorIntegerThresholdSkeletonClass SensorIntegerThresholdSkeletonClass;
745typedef struct _SensorIntegerThresholdSkeletonPrivate SensorIntegerThresholdSkeletonPrivate;
746
747struct _SensorIntegerThresholdSkeleton
748{
749 /*< private >*/
750 GDBusInterfaceSkeleton parent_instance;
751 SensorIntegerThresholdSkeletonPrivate *priv;
752};
753
754struct _SensorIntegerThresholdSkeletonClass
755{
756 GDBusInterfaceSkeletonClass parent_class;
757};
758
759GType sensor_integer_threshold_skeleton_get_type (void) G_GNUC_CONST;
760
761SensorIntegerThreshold *sensor_integer_threshold_skeleton_new (void);
762
763
Norman James90baede2015-09-02 20:32:49 -0500764/* ------------------------------------------------------------------------ */
765/* Declarations for org.openbmc.SensorI2c */
766
767#define TYPE_SENSOR_I2C (sensor_i2c_get_type ())
768#define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c))
769#define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C))
770#define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface))
771
772struct _SensorI2c;
773typedef struct _SensorI2c SensorI2c;
774typedef struct _SensorI2cIface SensorI2cIface;
775
776struct _SensorI2cIface
777{
778 GTypeInterface parent_iface;
779
780 const gchar * (*get_address) (SensorI2c *object);
781
782 const gchar * (*get_dev_path) (SensorI2c *object);
783
784};
785
786GType sensor_i2c_get_type (void) G_GNUC_CONST;
787
788GDBusInterfaceInfo *sensor_i2c_interface_info (void);
789guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin);
790
791
792/* D-Bus property accessors: */
793const gchar *sensor_i2c_get_dev_path (SensorI2c *object);
794gchar *sensor_i2c_dup_dev_path (SensorI2c *object);
795void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value);
796
797const gchar *sensor_i2c_get_address (SensorI2c *object);
798gchar *sensor_i2c_dup_address (SensorI2c *object);
799void sensor_i2c_set_address (SensorI2c *object, const gchar *value);
800
801
802/* ---- */
803
804#define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ())
805#define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy))
806#define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass))
807#define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass))
808#define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY))
809#define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY))
810
811typedef struct _SensorI2cProxy SensorI2cProxy;
812typedef struct _SensorI2cProxyClass SensorI2cProxyClass;
813typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate;
814
815struct _SensorI2cProxy
816{
817 /*< private >*/
818 GDBusProxy parent_instance;
819 SensorI2cProxyPrivate *priv;
820};
821
822struct _SensorI2cProxyClass
823{
824 GDBusProxyClass parent_class;
825};
826
827GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST;
828
829void sensor_i2c_proxy_new (
830 GDBusConnection *connection,
831 GDBusProxyFlags flags,
832 const gchar *name,
833 const gchar *object_path,
834 GCancellable *cancellable,
835 GAsyncReadyCallback callback,
836 gpointer user_data);
837SensorI2c *sensor_i2c_proxy_new_finish (
838 GAsyncResult *res,
839 GError **error);
840SensorI2c *sensor_i2c_proxy_new_sync (
841 GDBusConnection *connection,
842 GDBusProxyFlags flags,
843 const gchar *name,
844 const gchar *object_path,
845 GCancellable *cancellable,
846 GError **error);
847
848void sensor_i2c_proxy_new_for_bus (
849 GBusType bus_type,
850 GDBusProxyFlags flags,
851 const gchar *name,
852 const gchar *object_path,
853 GCancellable *cancellable,
854 GAsyncReadyCallback callback,
855 gpointer user_data);
856SensorI2c *sensor_i2c_proxy_new_for_bus_finish (
857 GAsyncResult *res,
858 GError **error);
859SensorI2c *sensor_i2c_proxy_new_for_bus_sync (
860 GBusType bus_type,
861 GDBusProxyFlags flags,
862 const gchar *name,
863 const gchar *object_path,
864 GCancellable *cancellable,
865 GError **error);
866
867
868/* ---- */
869
870#define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ())
871#define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton))
872#define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass))
873#define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass))
874#define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON))
875#define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON))
876
877typedef struct _SensorI2cSkeleton SensorI2cSkeleton;
878typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass;
879typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate;
880
881struct _SensorI2cSkeleton
882{
883 /*< private >*/
884 GDBusInterfaceSkeleton parent_instance;
885 SensorI2cSkeletonPrivate *priv;
886};
887
888struct _SensorI2cSkeletonClass
889{
890 GDBusInterfaceSkeletonClass parent_class;
891};
892
893GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST;
894
895SensorI2c *sensor_i2c_skeleton_new (void);
896
897
Norman Jamese2765102015-08-19 22:00:55 -0500898/* ---- */
899
900#define TYPE_OBJECT (object_get_type ())
901#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
902#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
903#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
904
905struct _Object;
906typedef struct _Object Object;
907typedef struct _ObjectIface ObjectIface;
908
909struct _ObjectIface
910{
911 GTypeInterface parent_iface;
912};
913
914GType object_get_type (void) G_GNUC_CONST;
915
916SensorInteger *object_get_sensor_integer (Object *object);
917SensorString *object_get_sensor_string (Object *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500918SensorIntegerThreshold *object_get_sensor_integer_threshold (Object *object);
Norman James90baede2015-09-02 20:32:49 -0500919SensorI2c *object_get_sensor_i2c (Object *object);
Norman Jamese2765102015-08-19 22:00:55 -0500920SensorInteger *object_peek_sensor_integer (Object *object);
921SensorString *object_peek_sensor_string (Object *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500922SensorIntegerThreshold *object_peek_sensor_integer_threshold (Object *object);
Norman James90baede2015-09-02 20:32:49 -0500923SensorI2c *object_peek_sensor_i2c (Object *object);
Norman Jamese2765102015-08-19 22:00:55 -0500924
925#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
926#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
927#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
928#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
929#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
930#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
931
932typedef struct _ObjectProxy ObjectProxy;
933typedef struct _ObjectProxyClass ObjectProxyClass;
934typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
935
936struct _ObjectProxy
937{
938 /*< private >*/
939 GDBusObjectProxy parent_instance;
940 ObjectProxyPrivate *priv;
941};
942
943struct _ObjectProxyClass
944{
945 GDBusObjectProxyClass parent_class;
946};
947
948GType object_proxy_get_type (void) G_GNUC_CONST;
949ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
950
951#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
952#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
953#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
954#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
955#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
956#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
957
958typedef struct _ObjectSkeleton ObjectSkeleton;
959typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
960typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
961
962struct _ObjectSkeleton
963{
964 /*< private >*/
965 GDBusObjectSkeleton parent_instance;
966 ObjectSkeletonPrivate *priv;
967};
968
969struct _ObjectSkeletonClass
970{
971 GDBusObjectSkeletonClass parent_class;
972};
973
974GType object_skeleton_get_type (void) G_GNUC_CONST;
975ObjectSkeleton *object_skeleton_new (const gchar *object_path);
976void object_skeleton_set_sensor_integer (ObjectSkeleton *object, SensorInteger *interface_);
977void object_skeleton_set_sensor_string (ObjectSkeleton *object, SensorString *interface_);
Norman Jamescc7ae122015-08-24 14:26:09 -0500978void object_skeleton_set_sensor_integer_threshold (ObjectSkeleton *object, SensorIntegerThreshold *interface_);
Norman James90baede2015-09-02 20:32:49 -0500979void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_);
Norman Jamese2765102015-08-19 22:00:55 -0500980
981/* ---- */
982
983#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
984#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
985#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
986#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
987#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
988#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
989
990typedef struct _ObjectManagerClient ObjectManagerClient;
991typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
992typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
993
994struct _ObjectManagerClient
995{
996 /*< private >*/
997 GDBusObjectManagerClient parent_instance;
998 ObjectManagerClientPrivate *priv;
999};
1000
1001struct _ObjectManagerClientClass
1002{
1003 GDBusObjectManagerClientClass parent_class;
1004};
1005
1006GType object_manager_client_get_type (void) G_GNUC_CONST;
1007
1008GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
1009
1010void object_manager_client_new (
1011 GDBusConnection *connection,
1012 GDBusObjectManagerClientFlags flags,
1013 const gchar *name,
1014 const gchar *object_path,
1015 GCancellable *cancellable,
1016 GAsyncReadyCallback callback,
1017 gpointer user_data);
1018GDBusObjectManager *object_manager_client_new_finish (
1019 GAsyncResult *res,
1020 GError **error);
1021GDBusObjectManager *object_manager_client_new_sync (
1022 GDBusConnection *connection,
1023 GDBusObjectManagerClientFlags flags,
1024 const gchar *name,
1025 const gchar *object_path,
1026 GCancellable *cancellable,
1027 GError **error);
1028
1029void object_manager_client_new_for_bus (
1030 GBusType bus_type,
1031 GDBusObjectManagerClientFlags flags,
1032 const gchar *name,
1033 const gchar *object_path,
1034 GCancellable *cancellable,
1035 GAsyncReadyCallback callback,
1036 gpointer user_data);
1037GDBusObjectManager *object_manager_client_new_for_bus_finish (
1038 GAsyncResult *res,
1039 GError **error);
1040GDBusObjectManager *object_manager_client_new_for_bus_sync (
1041 GBusType bus_type,
1042 GDBusObjectManagerClientFlags flags,
1043 const gchar *name,
1044 const gchar *object_path,
1045 GCancellable *cancellable,
1046 GError **error);
1047
1048
1049G_END_DECLS
1050
1051#endif /* __INTERFACES_SENSOR_H__ */