blob: 551a9a8fd63c79ed855466d950d3860f568f9380 [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/* ------------------------------------------------------------------------ */
Norman James5d78b4d2015-09-05 13:34:34 -050016/* Declarations for org.openbmc.SensorValue */
Norman Jamese2765102015-08-19 22:00:55 -050017
Norman James5d78b4d2015-09-05 13:34:34 -050018#define TYPE_SENSOR_VALUE (sensor_value_get_type ())
19#define SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE, SensorValue))
20#define IS_SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE))
21#define SENSOR_VALUE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_VALUE, SensorValueIface))
Norman Jamese2765102015-08-19 22:00:55 -050022
Norman James5d78b4d2015-09-05 13:34:34 -050023struct _SensorValue;
24typedef struct _SensorValue SensorValue;
25typedef struct _SensorValueIface SensorValueIface;
Norman Jamese2765102015-08-19 22:00:55 -050026
Norman James5d78b4d2015-09-05 13:34:34 -050027struct _SensorValueIface
Norman Jamese2765102015-08-19 22:00:55 -050028{
29 GTypeInterface parent_iface;
30
31
32
Norman Jamese2765102015-08-19 22:00:55 -050033 gboolean (*handle_get_value) (
Norman James5d78b4d2015-09-05 13:34:34 -050034 SensorValue *object,
Norman Jamese2765102015-08-19 22:00:55 -050035 GDBusMethodInvocation *invocation);
36
Norman James90baede2015-09-02 20:32:49 -050037 gboolean (*handle_init) (
Norman James5d78b4d2015-09-05 13:34:34 -050038 SensorValue *object,
Norman Jamese7594922015-08-27 14:25:24 -050039 GDBusMethodInvocation *invocation);
40
Norman James90baede2015-09-02 20:32:49 -050041 gboolean (*handle_set_value) (
Norman James5d78b4d2015-09-05 13:34:34 -050042 SensorValue *object,
Norman James3f97c5d2015-08-26 17:44:14 -050043 GDBusMethodInvocation *invocation,
Norman James5d78b4d2015-09-05 13:34:34 -050044 GVariant *arg_value);
Norman James3f97c5d2015-08-26 17:44:14 -050045
Norman James5d78b4d2015-09-05 13:34:34 -050046 gint (*get_heatbeat) (SensorValue *object);
Norman Jamescc7ae122015-08-24 14:26:09 -050047
Norman James5d78b4d2015-09-05 13:34:34 -050048 gint (*get_poll_interval) (SensorValue *object);
Norman Jamescc7ae122015-08-24 14:26:09 -050049
Norman James9e6acf92015-09-08 07:00:04 -050050 gboolean (*get_settable) (SensorValue *object);
51
Norman James5d78b4d2015-09-05 13:34:34 -050052 const gchar * (*get_units) (SensorValue *object);
Norman Jamese2765102015-08-19 22:00:55 -050053
Norman James5d78b4d2015-09-05 13:34:34 -050054 GVariant * (*get_value) (SensorValue *object);
Norman Jamese2765102015-08-19 22:00:55 -050055
56 void (*changed) (
Norman James5d78b4d2015-09-05 13:34:34 -050057 SensorValue *object,
58 GVariant *arg_value,
Norman James90baede2015-09-02 20:32:49 -050059 const gchar *arg_units);
Norman Jamese2765102015-08-19 22:00:55 -050060
Norman James90baede2015-09-02 20:32:49 -050061 void (*heartbeat) (
Norman James5d78b4d2015-09-05 13:34:34 -050062 SensorValue *object,
Norman James90baede2015-09-02 20:32:49 -050063 const gchar *arg_bus_name);
Norman James3f97c5d2015-08-26 17:44:14 -050064
Norman Jamese2765102015-08-19 22:00:55 -050065};
66
Norman James5d78b4d2015-09-05 13:34:34 -050067GType sensor_value_get_type (void) G_GNUC_CONST;
Norman Jamese2765102015-08-19 22:00:55 -050068
Norman James5d78b4d2015-09-05 13:34:34 -050069GDBusInterfaceInfo *sensor_value_interface_info (void);
70guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin);
Norman Jamese2765102015-08-19 22:00:55 -050071
72
73/* D-Bus method call completion functions: */
Norman James5d78b4d2015-09-05 13:34:34 -050074void sensor_value_complete_init (
75 SensorValue *object,
Norman James90baede2015-09-02 20:32:49 -050076 GDBusMethodInvocation *invocation);
77
Norman James5d78b4d2015-09-05 13:34:34 -050078void sensor_value_complete_get_value (
79 SensorValue *object,
Norman Jamese2765102015-08-19 22:00:55 -050080 GDBusMethodInvocation *invocation,
Norman James5d78b4d2015-09-05 13:34:34 -050081 GVariant *value);
Norman Jamese2765102015-08-19 22:00:55 -050082
Norman James5d78b4d2015-09-05 13:34:34 -050083void sensor_value_complete_set_value (
84 SensorValue *object,
Norman Jamescc7ae122015-08-24 14:26:09 -050085 GDBusMethodInvocation *invocation);
86
Norman Jamese2765102015-08-19 22:00:55 -050087
88
89/* D-Bus signal emissions functions: */
Norman James5d78b4d2015-09-05 13:34:34 -050090void sensor_value_emit_changed (
91 SensorValue *object,
92 GVariant *arg_value,
Norman James90baede2015-09-02 20:32:49 -050093 const gchar *arg_units);
Norman Jamese2765102015-08-19 22:00:55 -050094
Norman James5d78b4d2015-09-05 13:34:34 -050095void sensor_value_emit_heartbeat (
96 SensorValue *object,
Norman James90baede2015-09-02 20:32:49 -050097 const gchar *arg_bus_name);
Norman James3f97c5d2015-08-26 17:44:14 -050098
Norman Jamese2765102015-08-19 22:00:55 -050099
100
101/* D-Bus method calls: */
Norman James5d78b4d2015-09-05 13:34:34 -0500102void sensor_value_call_init (
103 SensorValue *proxy,
Norman James90baede2015-09-02 20:32:49 -0500104 GCancellable *cancellable,
105 GAsyncReadyCallback callback,
106 gpointer user_data);
107
Norman James5d78b4d2015-09-05 13:34:34 -0500108gboolean sensor_value_call_init_finish (
109 SensorValue *proxy,
Norman James90baede2015-09-02 20:32:49 -0500110 GAsyncResult *res,
111 GError **error);
112
Norman James5d78b4d2015-09-05 13:34:34 -0500113gboolean sensor_value_call_init_sync (
114 SensorValue *proxy,
Norman James90baede2015-09-02 20:32:49 -0500115 GCancellable *cancellable,
116 GError **error);
117
Norman James5d78b4d2015-09-05 13:34:34 -0500118void sensor_value_call_get_value (
119 SensorValue *proxy,
Norman Jamese2765102015-08-19 22:00:55 -0500120 GCancellable *cancellable,
121 GAsyncReadyCallback callback,
122 gpointer user_data);
123
Norman James5d78b4d2015-09-05 13:34:34 -0500124gboolean sensor_value_call_get_value_finish (
125 SensorValue *proxy,
126 GVariant **out_value,
Norman Jamese2765102015-08-19 22:00:55 -0500127 GAsyncResult *res,
128 GError **error);
129
Norman James5d78b4d2015-09-05 13:34:34 -0500130gboolean sensor_value_call_get_value_sync (
131 SensorValue *proxy,
132 GVariant **out_value,
Norman Jamese2765102015-08-19 22:00:55 -0500133 GCancellable *cancellable,
134 GError **error);
135
Norman James5d78b4d2015-09-05 13:34:34 -0500136void sensor_value_call_set_value (
137 SensorValue *proxy,
138 GVariant *arg_value,
Norman James90baede2015-09-02 20:32:49 -0500139 GCancellable *cancellable,
140 GAsyncReadyCallback callback,
141 gpointer user_data);
142
Norman James5d78b4d2015-09-05 13:34:34 -0500143gboolean sensor_value_call_set_value_finish (
144 SensorValue *proxy,
Norman James90baede2015-09-02 20:32:49 -0500145 GAsyncResult *res,
146 GError **error);
147
Norman James5d78b4d2015-09-05 13:34:34 -0500148gboolean sensor_value_call_set_value_sync (
149 SensorValue *proxy,
150 GVariant *arg_value,
Norman Jamescc7ae122015-08-24 14:26:09 -0500151 GCancellable *cancellable,
152 GError **error);
153
Norman Jamese2765102015-08-19 22:00:55 -0500154
155
156/* D-Bus property accessors: */
Norman James5d78b4d2015-09-05 13:34:34 -0500157GVariant *sensor_value_get_value (SensorValue *object);
158GVariant *sensor_value_dup_value (SensorValue *object);
159void sensor_value_set_value (SensorValue *object, GVariant *value);
Norman Jamese2765102015-08-19 22:00:55 -0500160
Norman James5d78b4d2015-09-05 13:34:34 -0500161const gchar *sensor_value_get_units (SensorValue *object);
162gchar *sensor_value_dup_units (SensorValue *object);
163void sensor_value_set_units (SensorValue *object, const gchar *value);
Norman Jamese2765102015-08-19 22:00:55 -0500164
Norman James5d78b4d2015-09-05 13:34:34 -0500165gint sensor_value_get_poll_interval (SensorValue *object);
166void sensor_value_set_poll_interval (SensorValue *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500167
Norman James5d78b4d2015-09-05 13:34:34 -0500168gint sensor_value_get_heatbeat (SensorValue *object);
169void sensor_value_set_heatbeat (SensorValue *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500170
Norman James9e6acf92015-09-08 07:00:04 -0500171gboolean sensor_value_get_settable (SensorValue *object);
172void sensor_value_set_settable (SensorValue *object, gboolean value);
173
Norman Jamese2765102015-08-19 22:00:55 -0500174
175/* ---- */
176
Norman James5d78b4d2015-09-05 13:34:34 -0500177#define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ())
178#define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy))
179#define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass))
180#define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass))
181#define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY))
182#define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY))
Norman Jamese2765102015-08-19 22:00:55 -0500183
Norman James5d78b4d2015-09-05 13:34:34 -0500184typedef struct _SensorValueProxy SensorValueProxy;
185typedef struct _SensorValueProxyClass SensorValueProxyClass;
186typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate;
Norman Jamese2765102015-08-19 22:00:55 -0500187
Norman James5d78b4d2015-09-05 13:34:34 -0500188struct _SensorValueProxy
Norman Jamese2765102015-08-19 22:00:55 -0500189{
190 /*< private >*/
191 GDBusProxy parent_instance;
Norman James5d78b4d2015-09-05 13:34:34 -0500192 SensorValueProxyPrivate *priv;
Norman Jamese2765102015-08-19 22:00:55 -0500193};
194
Norman James5d78b4d2015-09-05 13:34:34 -0500195struct _SensorValueProxyClass
Norman Jamese2765102015-08-19 22:00:55 -0500196{
197 GDBusProxyClass parent_class;
198};
199
Norman James5d78b4d2015-09-05 13:34:34 -0500200GType sensor_value_proxy_get_type (void) G_GNUC_CONST;
Norman Jamese2765102015-08-19 22:00:55 -0500201
Norman James5d78b4d2015-09-05 13:34:34 -0500202void sensor_value_proxy_new (
Norman Jamese2765102015-08-19 22:00:55 -0500203 GDBusConnection *connection,
204 GDBusProxyFlags flags,
205 const gchar *name,
206 const gchar *object_path,
207 GCancellable *cancellable,
208 GAsyncReadyCallback callback,
209 gpointer user_data);
Norman James5d78b4d2015-09-05 13:34:34 -0500210SensorValue *sensor_value_proxy_new_finish (
Norman Jamese2765102015-08-19 22:00:55 -0500211 GAsyncResult *res,
212 GError **error);
Norman James5d78b4d2015-09-05 13:34:34 -0500213SensorValue *sensor_value_proxy_new_sync (
Norman Jamese2765102015-08-19 22:00:55 -0500214 GDBusConnection *connection,
215 GDBusProxyFlags flags,
216 const gchar *name,
217 const gchar *object_path,
218 GCancellable *cancellable,
219 GError **error);
220
Norman James5d78b4d2015-09-05 13:34:34 -0500221void sensor_value_proxy_new_for_bus (
Norman Jamese2765102015-08-19 22:00:55 -0500222 GBusType bus_type,
223 GDBusProxyFlags flags,
224 const gchar *name,
225 const gchar *object_path,
226 GCancellable *cancellable,
227 GAsyncReadyCallback callback,
228 gpointer user_data);
Norman James5d78b4d2015-09-05 13:34:34 -0500229SensorValue *sensor_value_proxy_new_for_bus_finish (
Norman Jamese2765102015-08-19 22:00:55 -0500230 GAsyncResult *res,
231 GError **error);
Norman James5d78b4d2015-09-05 13:34:34 -0500232SensorValue *sensor_value_proxy_new_for_bus_sync (
Norman Jamese2765102015-08-19 22:00:55 -0500233 GBusType bus_type,
234 GDBusProxyFlags flags,
235 const gchar *name,
236 const gchar *object_path,
237 GCancellable *cancellable,
238 GError **error);
239
240
241/* ---- */
242
Norman James5d78b4d2015-09-05 13:34:34 -0500243#define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ())
244#define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton))
245#define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass))
246#define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass))
247#define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON))
248#define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON))
Norman Jamese2765102015-08-19 22:00:55 -0500249
Norman James5d78b4d2015-09-05 13:34:34 -0500250typedef struct _SensorValueSkeleton SensorValueSkeleton;
251typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass;
252typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate;
Norman Jamese2765102015-08-19 22:00:55 -0500253
Norman James5d78b4d2015-09-05 13:34:34 -0500254struct _SensorValueSkeleton
Norman Jamese2765102015-08-19 22:00:55 -0500255{
256 /*< private >*/
257 GDBusInterfaceSkeleton parent_instance;
Norman James5d78b4d2015-09-05 13:34:34 -0500258 SensorValueSkeletonPrivate *priv;
Norman Jamese2765102015-08-19 22:00:55 -0500259};
260
Norman James5d78b4d2015-09-05 13:34:34 -0500261struct _SensorValueSkeletonClass
Norman Jamese2765102015-08-19 22:00:55 -0500262{
263 GDBusInterfaceSkeletonClass parent_class;
264};
265
Norman James5d78b4d2015-09-05 13:34:34 -0500266GType sensor_value_skeleton_get_type (void) G_GNUC_CONST;
Norman Jamese2765102015-08-19 22:00:55 -0500267
Norman James5d78b4d2015-09-05 13:34:34 -0500268SensorValue *sensor_value_skeleton_new (void);
Norman Jamese2765102015-08-19 22:00:55 -0500269
270
271/* ------------------------------------------------------------------------ */
Norman James5d78b4d2015-09-05 13:34:34 -0500272/* Declarations for org.openbmc.SensorThreshold */
Norman Jamese2765102015-08-19 22:00:55 -0500273
Norman James5d78b4d2015-09-05 13:34:34 -0500274#define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ())
275#define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold))
276#define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD))
277#define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface))
Norman Jamese2765102015-08-19 22:00:55 -0500278
Norman James5d78b4d2015-09-05 13:34:34 -0500279struct _SensorThreshold;
280typedef struct _SensorThreshold SensorThreshold;
281typedef struct _SensorThresholdIface SensorThresholdIface;
Norman Jamese2765102015-08-19 22:00:55 -0500282
Norman James5d78b4d2015-09-05 13:34:34 -0500283struct _SensorThresholdIface
Norman Jamescc7ae122015-08-24 14:26:09 -0500284{
285 GTypeInterface parent_iface;
286
287
288
Norman James90baede2015-09-02 20:32:49 -0500289 gboolean (*handle_get_state) (
Norman James5d78b4d2015-09-05 13:34:34 -0500290 SensorThreshold *object,
Norman James90baede2015-09-02 20:32:49 -0500291 GDBusMethodInvocation *invocation);
292
Norman James5d78b4d2015-09-05 13:34:34 -0500293 GVariant * (*get_lower_critical) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500294
Norman James5d78b4d2015-09-05 13:34:34 -0500295 GVariant * (*get_lower_warning) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500296
Norman James5d78b4d2015-09-05 13:34:34 -0500297 guchar (*get_state) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500298
Norman James5d78b4d2015-09-05 13:34:34 -0500299 GVariant * (*get_upper_critical) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500300
Norman James5d78b4d2015-09-05 13:34:34 -0500301 GVariant * (*get_upper_warning) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500302
303 void (*critical) (
Norman James5d78b4d2015-09-05 13:34:34 -0500304 SensorThreshold *object);
Norman James90baede2015-09-02 20:32:49 -0500305
306 void (*normal) (
Norman James5d78b4d2015-09-05 13:34:34 -0500307 SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500308
309 void (*warning) (
Norman James5d78b4d2015-09-05 13:34:34 -0500310 SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500311
312};
313
Norman James5d78b4d2015-09-05 13:34:34 -0500314GType sensor_threshold_get_type (void) G_GNUC_CONST;
Norman Jamescc7ae122015-08-24 14:26:09 -0500315
Norman James5d78b4d2015-09-05 13:34:34 -0500316GDBusInterfaceInfo *sensor_threshold_interface_info (void);
317guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin);
Norman Jamescc7ae122015-08-24 14:26:09 -0500318
319
320/* D-Bus method call completion functions: */
Norman James5d78b4d2015-09-05 13:34:34 -0500321void sensor_threshold_complete_get_state (
322 SensorThreshold *object,
Norman James90baede2015-09-02 20:32:49 -0500323 GDBusMethodInvocation *invocation,
Norman James5d78b4d2015-09-05 13:34:34 -0500324 guchar state);
Norman Jamescc7ae122015-08-24 14:26:09 -0500325
326
327
328/* D-Bus signal emissions functions: */
Norman James5d78b4d2015-09-05 13:34:34 -0500329void sensor_threshold_emit_warning (
330 SensorThreshold *object);
Norman James90baede2015-09-02 20:32:49 -0500331
Norman James5d78b4d2015-09-05 13:34:34 -0500332void sensor_threshold_emit_critical (
333 SensorThreshold *object);
Norman James90baede2015-09-02 20:32:49 -0500334
Norman James5d78b4d2015-09-05 13:34:34 -0500335void sensor_threshold_emit_normal (
336 SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500337
338
339
340/* D-Bus method calls: */
Norman James5d78b4d2015-09-05 13:34:34 -0500341void sensor_threshold_call_get_state (
342 SensorThreshold *proxy,
Norman Jamescc7ae122015-08-24 14:26:09 -0500343 GCancellable *cancellable,
344 GAsyncReadyCallback callback,
345 gpointer user_data);
346
Norman James5d78b4d2015-09-05 13:34:34 -0500347gboolean sensor_threshold_call_get_state_finish (
348 SensorThreshold *proxy,
349 guchar *out_state,
Norman Jamescc7ae122015-08-24 14:26:09 -0500350 GAsyncResult *res,
351 GError **error);
352
Norman James5d78b4d2015-09-05 13:34:34 -0500353gboolean sensor_threshold_call_get_state_sync (
354 SensorThreshold *proxy,
355 guchar *out_state,
Norman Jamescc7ae122015-08-24 14:26:09 -0500356 GCancellable *cancellable,
357 GError **error);
358
359
360
361/* D-Bus property accessors: */
Norman James5d78b4d2015-09-05 13:34:34 -0500362GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object);
363GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object);
364void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500365
Norman James5d78b4d2015-09-05 13:34:34 -0500366GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object);
367GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object);
368void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500369
Norman James5d78b4d2015-09-05 13:34:34 -0500370GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object);
371GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object);
372void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500373
Norman James5d78b4d2015-09-05 13:34:34 -0500374GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object);
375GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object);
376void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value);
Norman James90baede2015-09-02 20:32:49 -0500377
Norman James5d78b4d2015-09-05 13:34:34 -0500378guchar sensor_threshold_get_state (SensorThreshold *object);
379void sensor_threshold_set_state (SensorThreshold *object, guchar value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500380
381
382/* ---- */
383
Norman James5d78b4d2015-09-05 13:34:34 -0500384#define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ())
385#define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy))
386#define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass))
387#define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass))
388#define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY))
389#define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY))
Norman Jamescc7ae122015-08-24 14:26:09 -0500390
Norman James5d78b4d2015-09-05 13:34:34 -0500391typedef struct _SensorThresholdProxy SensorThresholdProxy;
392typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass;
393typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate;
Norman Jamescc7ae122015-08-24 14:26:09 -0500394
Norman James5d78b4d2015-09-05 13:34:34 -0500395struct _SensorThresholdProxy
Norman Jamescc7ae122015-08-24 14:26:09 -0500396{
397 /*< private >*/
398 GDBusProxy parent_instance;
Norman James5d78b4d2015-09-05 13:34:34 -0500399 SensorThresholdProxyPrivate *priv;
Norman Jamescc7ae122015-08-24 14:26:09 -0500400};
401
Norman James5d78b4d2015-09-05 13:34:34 -0500402struct _SensorThresholdProxyClass
Norman Jamescc7ae122015-08-24 14:26:09 -0500403{
404 GDBusProxyClass parent_class;
405};
406
Norman James5d78b4d2015-09-05 13:34:34 -0500407GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST;
Norman Jamescc7ae122015-08-24 14:26:09 -0500408
Norman James5d78b4d2015-09-05 13:34:34 -0500409void sensor_threshold_proxy_new (
Norman Jamescc7ae122015-08-24 14:26:09 -0500410 GDBusConnection *connection,
411 GDBusProxyFlags flags,
412 const gchar *name,
413 const gchar *object_path,
414 GCancellable *cancellable,
415 GAsyncReadyCallback callback,
416 gpointer user_data);
Norman James5d78b4d2015-09-05 13:34:34 -0500417SensorThreshold *sensor_threshold_proxy_new_finish (
Norman Jamescc7ae122015-08-24 14:26:09 -0500418 GAsyncResult *res,
419 GError **error);
Norman James5d78b4d2015-09-05 13:34:34 -0500420SensorThreshold *sensor_threshold_proxy_new_sync (
Norman Jamescc7ae122015-08-24 14:26:09 -0500421 GDBusConnection *connection,
422 GDBusProxyFlags flags,
423 const gchar *name,
424 const gchar *object_path,
425 GCancellable *cancellable,
426 GError **error);
427
Norman James5d78b4d2015-09-05 13:34:34 -0500428void sensor_threshold_proxy_new_for_bus (
Norman Jamescc7ae122015-08-24 14:26:09 -0500429 GBusType bus_type,
430 GDBusProxyFlags flags,
431 const gchar *name,
432 const gchar *object_path,
433 GCancellable *cancellable,
434 GAsyncReadyCallback callback,
435 gpointer user_data);
Norman James5d78b4d2015-09-05 13:34:34 -0500436SensorThreshold *sensor_threshold_proxy_new_for_bus_finish (
Norman Jamescc7ae122015-08-24 14:26:09 -0500437 GAsyncResult *res,
438 GError **error);
Norman James5d78b4d2015-09-05 13:34:34 -0500439SensorThreshold *sensor_threshold_proxy_new_for_bus_sync (
Norman Jamescc7ae122015-08-24 14:26:09 -0500440 GBusType bus_type,
441 GDBusProxyFlags flags,
442 const gchar *name,
443 const gchar *object_path,
444 GCancellable *cancellable,
445 GError **error);
446
447
448/* ---- */
449
Norman James5d78b4d2015-09-05 13:34:34 -0500450#define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ())
451#define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton))
452#define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass))
453#define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass))
454#define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON))
455#define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON))
Norman Jamescc7ae122015-08-24 14:26:09 -0500456
Norman James5d78b4d2015-09-05 13:34:34 -0500457typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton;
458typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass;
459typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate;
Norman Jamescc7ae122015-08-24 14:26:09 -0500460
Norman James5d78b4d2015-09-05 13:34:34 -0500461struct _SensorThresholdSkeleton
Norman Jamescc7ae122015-08-24 14:26:09 -0500462{
463 /*< private >*/
464 GDBusInterfaceSkeleton parent_instance;
Norman James5d78b4d2015-09-05 13:34:34 -0500465 SensorThresholdSkeletonPrivate *priv;
Norman Jamescc7ae122015-08-24 14:26:09 -0500466};
467
Norman James5d78b4d2015-09-05 13:34:34 -0500468struct _SensorThresholdSkeletonClass
Norman Jamescc7ae122015-08-24 14:26:09 -0500469{
470 GDBusInterfaceSkeletonClass parent_class;
471};
472
Norman James5d78b4d2015-09-05 13:34:34 -0500473GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST;
Norman Jamescc7ae122015-08-24 14:26:09 -0500474
Norman James5d78b4d2015-09-05 13:34:34 -0500475SensorThreshold *sensor_threshold_skeleton_new (void);
Norman Jamescc7ae122015-08-24 14:26:09 -0500476
477
Norman James90baede2015-09-02 20:32:49 -0500478/* ------------------------------------------------------------------------ */
479/* Declarations for org.openbmc.SensorI2c */
480
481#define TYPE_SENSOR_I2C (sensor_i2c_get_type ())
482#define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c))
483#define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C))
484#define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface))
485
486struct _SensorI2c;
487typedef struct _SensorI2c SensorI2c;
488typedef struct _SensorI2cIface SensorI2cIface;
489
490struct _SensorI2cIface
491{
492 GTypeInterface parent_iface;
493
494 const gchar * (*get_address) (SensorI2c *object);
495
496 const gchar * (*get_dev_path) (SensorI2c *object);
497
498};
499
500GType sensor_i2c_get_type (void) G_GNUC_CONST;
501
502GDBusInterfaceInfo *sensor_i2c_interface_info (void);
503guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin);
504
505
506/* D-Bus property accessors: */
507const gchar *sensor_i2c_get_dev_path (SensorI2c *object);
508gchar *sensor_i2c_dup_dev_path (SensorI2c *object);
509void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value);
510
511const gchar *sensor_i2c_get_address (SensorI2c *object);
512gchar *sensor_i2c_dup_address (SensorI2c *object);
513void sensor_i2c_set_address (SensorI2c *object, const gchar *value);
514
515
516/* ---- */
517
518#define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ())
519#define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy))
520#define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass))
521#define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass))
522#define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY))
523#define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY))
524
525typedef struct _SensorI2cProxy SensorI2cProxy;
526typedef struct _SensorI2cProxyClass SensorI2cProxyClass;
527typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate;
528
529struct _SensorI2cProxy
530{
531 /*< private >*/
532 GDBusProxy parent_instance;
533 SensorI2cProxyPrivate *priv;
534};
535
536struct _SensorI2cProxyClass
537{
538 GDBusProxyClass parent_class;
539};
540
541GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST;
542
543void sensor_i2c_proxy_new (
544 GDBusConnection *connection,
545 GDBusProxyFlags flags,
546 const gchar *name,
547 const gchar *object_path,
548 GCancellable *cancellable,
549 GAsyncReadyCallback callback,
550 gpointer user_data);
551SensorI2c *sensor_i2c_proxy_new_finish (
552 GAsyncResult *res,
553 GError **error);
554SensorI2c *sensor_i2c_proxy_new_sync (
555 GDBusConnection *connection,
556 GDBusProxyFlags flags,
557 const gchar *name,
558 const gchar *object_path,
559 GCancellable *cancellable,
560 GError **error);
561
562void sensor_i2c_proxy_new_for_bus (
563 GBusType bus_type,
564 GDBusProxyFlags flags,
565 const gchar *name,
566 const gchar *object_path,
567 GCancellable *cancellable,
568 GAsyncReadyCallback callback,
569 gpointer user_data);
570SensorI2c *sensor_i2c_proxy_new_for_bus_finish (
571 GAsyncResult *res,
572 GError **error);
573SensorI2c *sensor_i2c_proxy_new_for_bus_sync (
574 GBusType bus_type,
575 GDBusProxyFlags flags,
576 const gchar *name,
577 const gchar *object_path,
578 GCancellable *cancellable,
579 GError **error);
580
581
582/* ---- */
583
584#define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ())
585#define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton))
586#define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass))
587#define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass))
588#define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON))
589#define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON))
590
591typedef struct _SensorI2cSkeleton SensorI2cSkeleton;
592typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass;
593typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate;
594
595struct _SensorI2cSkeleton
596{
597 /*< private >*/
598 GDBusInterfaceSkeleton parent_instance;
599 SensorI2cSkeletonPrivate *priv;
600};
601
602struct _SensorI2cSkeletonClass
603{
604 GDBusInterfaceSkeletonClass parent_class;
605};
606
607GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST;
608
609SensorI2c *sensor_i2c_skeleton_new (void);
610
611
Norman James9e6acf92015-09-08 07:00:04 -0500612/* ------------------------------------------------------------------------ */
613/* Declarations for org.openbmc.SensorMatch */
614
615#define TYPE_SENSOR_MATCH (sensor_match_get_type ())
616#define SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH, SensorMatch))
617#define IS_SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH))
618#define SENSOR_MATCH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_MATCH, SensorMatchIface))
619
620struct _SensorMatch;
621typedef struct _SensorMatch SensorMatch;
622typedef struct _SensorMatchIface SensorMatchIface;
623
624struct _SensorMatchIface
625{
626 GTypeInterface parent_iface;
627
628
629 GVariant * (*get_match_value) (SensorMatch *object);
630
631 guchar (*get_state) (SensorMatch *object);
632
633 void (*sensor_match) (
634 SensorMatch *object,
635 guchar arg_state);
636
637};
638
639GType sensor_match_get_type (void) G_GNUC_CONST;
640
641GDBusInterfaceInfo *sensor_match_interface_info (void);
642guint sensor_match_override_properties (GObjectClass *klass, guint property_id_begin);
643
644
645/* D-Bus signal emissions functions: */
646void sensor_match_emit_sensor_match (
647 SensorMatch *object,
648 guchar arg_state);
649
650
651
652/* D-Bus property accessors: */
653GVariant *sensor_match_get_match_value (SensorMatch *object);
654GVariant *sensor_match_dup_match_value (SensorMatch *object);
655void sensor_match_set_match_value (SensorMatch *object, GVariant *value);
656
657guchar sensor_match_get_state (SensorMatch *object);
658void sensor_match_set_state (SensorMatch *object, guchar value);
659
660
661/* ---- */
662
663#define TYPE_SENSOR_MATCH_PROXY (sensor_match_proxy_get_type ())
664#define SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxy))
665#define SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass))
666#define SENSOR_MATCH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass))
667#define IS_SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_PROXY))
668#define IS_SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_PROXY))
669
670typedef struct _SensorMatchProxy SensorMatchProxy;
671typedef struct _SensorMatchProxyClass SensorMatchProxyClass;
672typedef struct _SensorMatchProxyPrivate SensorMatchProxyPrivate;
673
674struct _SensorMatchProxy
675{
676 /*< private >*/
677 GDBusProxy parent_instance;
678 SensorMatchProxyPrivate *priv;
679};
680
681struct _SensorMatchProxyClass
682{
683 GDBusProxyClass parent_class;
684};
685
686GType sensor_match_proxy_get_type (void) G_GNUC_CONST;
687
688void sensor_match_proxy_new (
689 GDBusConnection *connection,
690 GDBusProxyFlags flags,
691 const gchar *name,
692 const gchar *object_path,
693 GCancellable *cancellable,
694 GAsyncReadyCallback callback,
695 gpointer user_data);
696SensorMatch *sensor_match_proxy_new_finish (
697 GAsyncResult *res,
698 GError **error);
699SensorMatch *sensor_match_proxy_new_sync (
700 GDBusConnection *connection,
701 GDBusProxyFlags flags,
702 const gchar *name,
703 const gchar *object_path,
704 GCancellable *cancellable,
705 GError **error);
706
707void sensor_match_proxy_new_for_bus (
708 GBusType bus_type,
709 GDBusProxyFlags flags,
710 const gchar *name,
711 const gchar *object_path,
712 GCancellable *cancellable,
713 GAsyncReadyCallback callback,
714 gpointer user_data);
715SensorMatch *sensor_match_proxy_new_for_bus_finish (
716 GAsyncResult *res,
717 GError **error);
718SensorMatch *sensor_match_proxy_new_for_bus_sync (
719 GBusType bus_type,
720 GDBusProxyFlags flags,
721 const gchar *name,
722 const gchar *object_path,
723 GCancellable *cancellable,
724 GError **error);
725
726
727/* ---- */
728
729#define TYPE_SENSOR_MATCH_SKELETON (sensor_match_skeleton_get_type ())
730#define SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeleton))
731#define SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass))
732#define SENSOR_MATCH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass))
733#define IS_SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_SKELETON))
734#define IS_SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_SKELETON))
735
736typedef struct _SensorMatchSkeleton SensorMatchSkeleton;
737typedef struct _SensorMatchSkeletonClass SensorMatchSkeletonClass;
738typedef struct _SensorMatchSkeletonPrivate SensorMatchSkeletonPrivate;
739
740struct _SensorMatchSkeleton
741{
742 /*< private >*/
743 GDBusInterfaceSkeleton parent_instance;
744 SensorMatchSkeletonPrivate *priv;
745};
746
747struct _SensorMatchSkeletonClass
748{
749 GDBusInterfaceSkeletonClass parent_class;
750};
751
752GType sensor_match_skeleton_get_type (void) G_GNUC_CONST;
753
754SensorMatch *sensor_match_skeleton_new (void);
755
756
Norman Jamese2765102015-08-19 22:00:55 -0500757/* ---- */
758
759#define TYPE_OBJECT (object_get_type ())
760#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
761#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
762#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
763
764struct _Object;
765typedef struct _Object Object;
766typedef struct _ObjectIface ObjectIface;
767
768struct _ObjectIface
769{
770 GTypeInterface parent_iface;
771};
772
773GType object_get_type (void) G_GNUC_CONST;
774
Norman James5d78b4d2015-09-05 13:34:34 -0500775SensorValue *object_get_sensor_value (Object *object);
776SensorThreshold *object_get_sensor_threshold (Object *object);
Norman James90baede2015-09-02 20:32:49 -0500777SensorI2c *object_get_sensor_i2c (Object *object);
Norman James9e6acf92015-09-08 07:00:04 -0500778SensorMatch *object_get_sensor_match (Object *object);
Norman James5d78b4d2015-09-05 13:34:34 -0500779SensorValue *object_peek_sensor_value (Object *object);
780SensorThreshold *object_peek_sensor_threshold (Object *object);
Norman James90baede2015-09-02 20:32:49 -0500781SensorI2c *object_peek_sensor_i2c (Object *object);
Norman James9e6acf92015-09-08 07:00:04 -0500782SensorMatch *object_peek_sensor_match (Object *object);
Norman Jamese2765102015-08-19 22:00:55 -0500783
784#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
785#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
786#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
787#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
788#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
789#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
790
791typedef struct _ObjectProxy ObjectProxy;
792typedef struct _ObjectProxyClass ObjectProxyClass;
793typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
794
795struct _ObjectProxy
796{
797 /*< private >*/
798 GDBusObjectProxy parent_instance;
799 ObjectProxyPrivate *priv;
800};
801
802struct _ObjectProxyClass
803{
804 GDBusObjectProxyClass parent_class;
805};
806
807GType object_proxy_get_type (void) G_GNUC_CONST;
808ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
809
810#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
811#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
812#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
813#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
814#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
815#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
816
817typedef struct _ObjectSkeleton ObjectSkeleton;
818typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
819typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
820
821struct _ObjectSkeleton
822{
823 /*< private >*/
824 GDBusObjectSkeleton parent_instance;
825 ObjectSkeletonPrivate *priv;
826};
827
828struct _ObjectSkeletonClass
829{
830 GDBusObjectSkeletonClass parent_class;
831};
832
833GType object_skeleton_get_type (void) G_GNUC_CONST;
834ObjectSkeleton *object_skeleton_new (const gchar *object_path);
Norman James5d78b4d2015-09-05 13:34:34 -0500835void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_);
836void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_);
Norman James90baede2015-09-02 20:32:49 -0500837void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_);
Norman James9e6acf92015-09-08 07:00:04 -0500838void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_);
Norman Jamese2765102015-08-19 22:00:55 -0500839
840/* ---- */
841
842#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
843#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
844#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
845#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
846#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
847#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
848
849typedef struct _ObjectManagerClient ObjectManagerClient;
850typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
851typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
852
853struct _ObjectManagerClient
854{
855 /*< private >*/
856 GDBusObjectManagerClient parent_instance;
857 ObjectManagerClientPrivate *priv;
858};
859
860struct _ObjectManagerClientClass
861{
862 GDBusObjectManagerClientClass parent_class;
863};
864
865GType object_manager_client_get_type (void) G_GNUC_CONST;
866
867GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
868
869void object_manager_client_new (
870 GDBusConnection *connection,
871 GDBusObjectManagerClientFlags flags,
872 const gchar *name,
873 const gchar *object_path,
874 GCancellable *cancellable,
875 GAsyncReadyCallback callback,
876 gpointer user_data);
877GDBusObjectManager *object_manager_client_new_finish (
878 GAsyncResult *res,
879 GError **error);
880GDBusObjectManager *object_manager_client_new_sync (
881 GDBusConnection *connection,
882 GDBusObjectManagerClientFlags flags,
883 const gchar *name,
884 const gchar *object_path,
885 GCancellable *cancellable,
886 GError **error);
887
888void object_manager_client_new_for_bus (
889 GBusType bus_type,
890 GDBusObjectManagerClientFlags flags,
891 const gchar *name,
892 const gchar *object_path,
893 GCancellable *cancellable,
894 GAsyncReadyCallback callback,
895 gpointer user_data);
896GDBusObjectManager *object_manager_client_new_for_bus_finish (
897 GAsyncResult *res,
898 GError **error);
899GDBusObjectManager *object_manager_client_new_for_bus_sync (
900 GBusType bus_type,
901 GDBusObjectManagerClientFlags flags,
902 const gchar *name,
903 const gchar *object_path,
904 GCancellable *cancellable,
905 GError **error);
906
907
908G_END_DECLS
909
910#endif /* __INTERFACES_SENSOR_H__ */