blob: 9b3e15f5a71e8f14d05c6637198888f4011c52cc [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 James5d78b4d2015-09-05 13:34:34 -050050 const gchar * (*get_units) (SensorValue *object);
Norman Jamese2765102015-08-19 22:00:55 -050051
Norman James5d78b4d2015-09-05 13:34:34 -050052 GVariant * (*get_value) (SensorValue *object);
Norman Jamese2765102015-08-19 22:00:55 -050053
54 void (*changed) (
Norman James5d78b4d2015-09-05 13:34:34 -050055 SensorValue *object,
56 GVariant *arg_value,
Norman James90baede2015-09-02 20:32:49 -050057 const gchar *arg_units);
Norman Jamese2765102015-08-19 22:00:55 -050058
Norman James90baede2015-09-02 20:32:49 -050059 void (*heartbeat) (
Norman James5d78b4d2015-09-05 13:34:34 -050060 SensorValue *object,
Norman James90baede2015-09-02 20:32:49 -050061 const gchar *arg_bus_name);
Norman James3f97c5d2015-08-26 17:44:14 -050062
Norman Jamese2765102015-08-19 22:00:55 -050063};
64
Norman James5d78b4d2015-09-05 13:34:34 -050065GType sensor_value_get_type (void) G_GNUC_CONST;
Norman Jamese2765102015-08-19 22:00:55 -050066
Norman James5d78b4d2015-09-05 13:34:34 -050067GDBusInterfaceInfo *sensor_value_interface_info (void);
68guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin);
Norman Jamese2765102015-08-19 22:00:55 -050069
70
71/* D-Bus method call completion functions: */
Norman James5d78b4d2015-09-05 13:34:34 -050072void sensor_value_complete_init (
73 SensorValue *object,
Norman James90baede2015-09-02 20:32:49 -050074 GDBusMethodInvocation *invocation);
75
Norman James5d78b4d2015-09-05 13:34:34 -050076void sensor_value_complete_get_value (
77 SensorValue *object,
Norman Jamese2765102015-08-19 22:00:55 -050078 GDBusMethodInvocation *invocation,
Norman James5d78b4d2015-09-05 13:34:34 -050079 GVariant *value);
Norman Jamese2765102015-08-19 22:00:55 -050080
Norman James5d78b4d2015-09-05 13:34:34 -050081void sensor_value_complete_set_value (
82 SensorValue *object,
Norman Jamescc7ae122015-08-24 14:26:09 -050083 GDBusMethodInvocation *invocation);
84
Norman Jamese2765102015-08-19 22:00:55 -050085
86
87/* D-Bus signal emissions functions: */
Norman James5d78b4d2015-09-05 13:34:34 -050088void sensor_value_emit_changed (
89 SensorValue *object,
90 GVariant *arg_value,
Norman James90baede2015-09-02 20:32:49 -050091 const gchar *arg_units);
Norman Jamese2765102015-08-19 22:00:55 -050092
Norman James5d78b4d2015-09-05 13:34:34 -050093void sensor_value_emit_heartbeat (
94 SensorValue *object,
Norman James90baede2015-09-02 20:32:49 -050095 const gchar *arg_bus_name);
Norman James3f97c5d2015-08-26 17:44:14 -050096
Norman Jamese2765102015-08-19 22:00:55 -050097
98
99/* D-Bus method calls: */
Norman James5d78b4d2015-09-05 13:34:34 -0500100void sensor_value_call_init (
101 SensorValue *proxy,
Norman James90baede2015-09-02 20:32:49 -0500102 GCancellable *cancellable,
103 GAsyncReadyCallback callback,
104 gpointer user_data);
105
Norman James5d78b4d2015-09-05 13:34:34 -0500106gboolean sensor_value_call_init_finish (
107 SensorValue *proxy,
Norman James90baede2015-09-02 20:32:49 -0500108 GAsyncResult *res,
109 GError **error);
110
Norman James5d78b4d2015-09-05 13:34:34 -0500111gboolean sensor_value_call_init_sync (
112 SensorValue *proxy,
Norman James90baede2015-09-02 20:32:49 -0500113 GCancellable *cancellable,
114 GError **error);
115
Norman James5d78b4d2015-09-05 13:34:34 -0500116void sensor_value_call_get_value (
117 SensorValue *proxy,
Norman Jamese2765102015-08-19 22:00:55 -0500118 GCancellable *cancellable,
119 GAsyncReadyCallback callback,
120 gpointer user_data);
121
Norman James5d78b4d2015-09-05 13:34:34 -0500122gboolean sensor_value_call_get_value_finish (
123 SensorValue *proxy,
124 GVariant **out_value,
Norman Jamese2765102015-08-19 22:00:55 -0500125 GAsyncResult *res,
126 GError **error);
127
Norman James5d78b4d2015-09-05 13:34:34 -0500128gboolean sensor_value_call_get_value_sync (
129 SensorValue *proxy,
130 GVariant **out_value,
Norman Jamese2765102015-08-19 22:00:55 -0500131 GCancellable *cancellable,
132 GError **error);
133
Norman James5d78b4d2015-09-05 13:34:34 -0500134void sensor_value_call_set_value (
135 SensorValue *proxy,
136 GVariant *arg_value,
Norman James90baede2015-09-02 20:32:49 -0500137 GCancellable *cancellable,
138 GAsyncReadyCallback callback,
139 gpointer user_data);
140
Norman James5d78b4d2015-09-05 13:34:34 -0500141gboolean sensor_value_call_set_value_finish (
142 SensorValue *proxy,
Norman James90baede2015-09-02 20:32:49 -0500143 GAsyncResult *res,
144 GError **error);
145
Norman James5d78b4d2015-09-05 13:34:34 -0500146gboolean sensor_value_call_set_value_sync (
147 SensorValue *proxy,
148 GVariant *arg_value,
Norman Jamescc7ae122015-08-24 14:26:09 -0500149 GCancellable *cancellable,
150 GError **error);
151
Norman Jamese2765102015-08-19 22:00:55 -0500152
153
154/* D-Bus property accessors: */
Norman James5d78b4d2015-09-05 13:34:34 -0500155GVariant *sensor_value_get_value (SensorValue *object);
156GVariant *sensor_value_dup_value (SensorValue *object);
157void sensor_value_set_value (SensorValue *object, GVariant *value);
Norman Jamese2765102015-08-19 22:00:55 -0500158
Norman James5d78b4d2015-09-05 13:34:34 -0500159const gchar *sensor_value_get_units (SensorValue *object);
160gchar *sensor_value_dup_units (SensorValue *object);
161void sensor_value_set_units (SensorValue *object, const gchar *value);
Norman Jamese2765102015-08-19 22:00:55 -0500162
Norman James5d78b4d2015-09-05 13:34:34 -0500163gint sensor_value_get_poll_interval (SensorValue *object);
164void sensor_value_set_poll_interval (SensorValue *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500165
Norman James5d78b4d2015-09-05 13:34:34 -0500166gint sensor_value_get_heatbeat (SensorValue *object);
167void sensor_value_set_heatbeat (SensorValue *object, gint value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500168
Norman Jamese2765102015-08-19 22:00:55 -0500169
170/* ---- */
171
Norman James5d78b4d2015-09-05 13:34:34 -0500172#define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ())
173#define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy))
174#define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass))
175#define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass))
176#define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY))
177#define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY))
Norman Jamese2765102015-08-19 22:00:55 -0500178
Norman James5d78b4d2015-09-05 13:34:34 -0500179typedef struct _SensorValueProxy SensorValueProxy;
180typedef struct _SensorValueProxyClass SensorValueProxyClass;
181typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate;
Norman Jamese2765102015-08-19 22:00:55 -0500182
Norman James5d78b4d2015-09-05 13:34:34 -0500183struct _SensorValueProxy
Norman Jamese2765102015-08-19 22:00:55 -0500184{
185 /*< private >*/
186 GDBusProxy parent_instance;
Norman James5d78b4d2015-09-05 13:34:34 -0500187 SensorValueProxyPrivate *priv;
Norman Jamese2765102015-08-19 22:00:55 -0500188};
189
Norman James5d78b4d2015-09-05 13:34:34 -0500190struct _SensorValueProxyClass
Norman Jamese2765102015-08-19 22:00:55 -0500191{
192 GDBusProxyClass parent_class;
193};
194
Norman James5d78b4d2015-09-05 13:34:34 -0500195GType sensor_value_proxy_get_type (void) G_GNUC_CONST;
Norman Jamese2765102015-08-19 22:00:55 -0500196
Norman James5d78b4d2015-09-05 13:34:34 -0500197void sensor_value_proxy_new (
Norman Jamese2765102015-08-19 22:00:55 -0500198 GDBusConnection *connection,
199 GDBusProxyFlags flags,
200 const gchar *name,
201 const gchar *object_path,
202 GCancellable *cancellable,
203 GAsyncReadyCallback callback,
204 gpointer user_data);
Norman James5d78b4d2015-09-05 13:34:34 -0500205SensorValue *sensor_value_proxy_new_finish (
Norman Jamese2765102015-08-19 22:00:55 -0500206 GAsyncResult *res,
207 GError **error);
Norman James5d78b4d2015-09-05 13:34:34 -0500208SensorValue *sensor_value_proxy_new_sync (
Norman Jamese2765102015-08-19 22:00:55 -0500209 GDBusConnection *connection,
210 GDBusProxyFlags flags,
211 const gchar *name,
212 const gchar *object_path,
213 GCancellable *cancellable,
214 GError **error);
215
Norman James5d78b4d2015-09-05 13:34:34 -0500216void sensor_value_proxy_new_for_bus (
Norman Jamese2765102015-08-19 22:00:55 -0500217 GBusType bus_type,
218 GDBusProxyFlags flags,
219 const gchar *name,
220 const gchar *object_path,
221 GCancellable *cancellable,
222 GAsyncReadyCallback callback,
223 gpointer user_data);
Norman James5d78b4d2015-09-05 13:34:34 -0500224SensorValue *sensor_value_proxy_new_for_bus_finish (
Norman Jamese2765102015-08-19 22:00:55 -0500225 GAsyncResult *res,
226 GError **error);
Norman James5d78b4d2015-09-05 13:34:34 -0500227SensorValue *sensor_value_proxy_new_for_bus_sync (
Norman Jamese2765102015-08-19 22:00:55 -0500228 GBusType bus_type,
229 GDBusProxyFlags flags,
230 const gchar *name,
231 const gchar *object_path,
232 GCancellable *cancellable,
233 GError **error);
234
235
236/* ---- */
237
Norman James5d78b4d2015-09-05 13:34:34 -0500238#define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ())
239#define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton))
240#define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass))
241#define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass))
242#define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON))
243#define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON))
Norman Jamese2765102015-08-19 22:00:55 -0500244
Norman James5d78b4d2015-09-05 13:34:34 -0500245typedef struct _SensorValueSkeleton SensorValueSkeleton;
246typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass;
247typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate;
Norman Jamese2765102015-08-19 22:00:55 -0500248
Norman James5d78b4d2015-09-05 13:34:34 -0500249struct _SensorValueSkeleton
Norman Jamese2765102015-08-19 22:00:55 -0500250{
251 /*< private >*/
252 GDBusInterfaceSkeleton parent_instance;
Norman James5d78b4d2015-09-05 13:34:34 -0500253 SensorValueSkeletonPrivate *priv;
Norman Jamese2765102015-08-19 22:00:55 -0500254};
255
Norman James5d78b4d2015-09-05 13:34:34 -0500256struct _SensorValueSkeletonClass
Norman Jamese2765102015-08-19 22:00:55 -0500257{
258 GDBusInterfaceSkeletonClass parent_class;
259};
260
Norman James5d78b4d2015-09-05 13:34:34 -0500261GType sensor_value_skeleton_get_type (void) G_GNUC_CONST;
Norman Jamese2765102015-08-19 22:00:55 -0500262
Norman James5d78b4d2015-09-05 13:34:34 -0500263SensorValue *sensor_value_skeleton_new (void);
Norman Jamese2765102015-08-19 22:00:55 -0500264
265
266/* ------------------------------------------------------------------------ */
Norman James5d78b4d2015-09-05 13:34:34 -0500267/* Declarations for org.openbmc.SensorThreshold */
Norman Jamese2765102015-08-19 22:00:55 -0500268
Norman James5d78b4d2015-09-05 13:34:34 -0500269#define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ())
270#define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold))
271#define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD))
272#define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface))
Norman Jamese2765102015-08-19 22:00:55 -0500273
Norman James5d78b4d2015-09-05 13:34:34 -0500274struct _SensorThreshold;
275typedef struct _SensorThreshold SensorThreshold;
276typedef struct _SensorThresholdIface SensorThresholdIface;
Norman Jamese2765102015-08-19 22:00:55 -0500277
Norman James5d78b4d2015-09-05 13:34:34 -0500278struct _SensorThresholdIface
Norman Jamescc7ae122015-08-24 14:26:09 -0500279{
280 GTypeInterface parent_iface;
281
282
283
Norman James90baede2015-09-02 20:32:49 -0500284 gboolean (*handle_get_state) (
Norman James5d78b4d2015-09-05 13:34:34 -0500285 SensorThreshold *object,
Norman James90baede2015-09-02 20:32:49 -0500286 GDBusMethodInvocation *invocation);
287
Norman James5d78b4d2015-09-05 13:34:34 -0500288 GVariant * (*get_lower_critical) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500289
Norman James5d78b4d2015-09-05 13:34:34 -0500290 GVariant * (*get_lower_warning) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500291
Norman James5d78b4d2015-09-05 13:34:34 -0500292 guchar (*get_state) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500293
Norman James5d78b4d2015-09-05 13:34:34 -0500294 GVariant * (*get_upper_critical) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500295
Norman James5d78b4d2015-09-05 13:34:34 -0500296 GVariant * (*get_upper_warning) (SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500297
298 void (*critical) (
Norman James5d78b4d2015-09-05 13:34:34 -0500299 SensorThreshold *object);
Norman James90baede2015-09-02 20:32:49 -0500300
301 void (*normal) (
Norman James5d78b4d2015-09-05 13:34:34 -0500302 SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500303
304 void (*warning) (
Norman James5d78b4d2015-09-05 13:34:34 -0500305 SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500306
307};
308
Norman James5d78b4d2015-09-05 13:34:34 -0500309GType sensor_threshold_get_type (void) G_GNUC_CONST;
Norman Jamescc7ae122015-08-24 14:26:09 -0500310
Norman James5d78b4d2015-09-05 13:34:34 -0500311GDBusInterfaceInfo *sensor_threshold_interface_info (void);
312guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin);
Norman Jamescc7ae122015-08-24 14:26:09 -0500313
314
315/* D-Bus method call completion functions: */
Norman James5d78b4d2015-09-05 13:34:34 -0500316void sensor_threshold_complete_get_state (
317 SensorThreshold *object,
Norman James90baede2015-09-02 20:32:49 -0500318 GDBusMethodInvocation *invocation,
Norman James5d78b4d2015-09-05 13:34:34 -0500319 guchar state);
Norman Jamescc7ae122015-08-24 14:26:09 -0500320
321
322
323/* D-Bus signal emissions functions: */
Norman James5d78b4d2015-09-05 13:34:34 -0500324void sensor_threshold_emit_warning (
325 SensorThreshold *object);
Norman James90baede2015-09-02 20:32:49 -0500326
Norman James5d78b4d2015-09-05 13:34:34 -0500327void sensor_threshold_emit_critical (
328 SensorThreshold *object);
Norman James90baede2015-09-02 20:32:49 -0500329
Norman James5d78b4d2015-09-05 13:34:34 -0500330void sensor_threshold_emit_normal (
331 SensorThreshold *object);
Norman Jamescc7ae122015-08-24 14:26:09 -0500332
333
334
335/* D-Bus method calls: */
Norman James5d78b4d2015-09-05 13:34:34 -0500336void sensor_threshold_call_get_state (
337 SensorThreshold *proxy,
Norman Jamescc7ae122015-08-24 14:26:09 -0500338 GCancellable *cancellable,
339 GAsyncReadyCallback callback,
340 gpointer user_data);
341
Norman James5d78b4d2015-09-05 13:34:34 -0500342gboolean sensor_threshold_call_get_state_finish (
343 SensorThreshold *proxy,
344 guchar *out_state,
Norman Jamescc7ae122015-08-24 14:26:09 -0500345 GAsyncResult *res,
346 GError **error);
347
Norman James5d78b4d2015-09-05 13:34:34 -0500348gboolean sensor_threshold_call_get_state_sync (
349 SensorThreshold *proxy,
350 guchar *out_state,
Norman Jamescc7ae122015-08-24 14:26:09 -0500351 GCancellable *cancellable,
352 GError **error);
353
354
355
356/* D-Bus property accessors: */
Norman James5d78b4d2015-09-05 13:34:34 -0500357GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object);
358GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object);
359void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500360
Norman James5d78b4d2015-09-05 13:34:34 -0500361GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object);
362GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object);
363void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500364
Norman James5d78b4d2015-09-05 13:34:34 -0500365GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object);
366GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object);
367void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500368
Norman James5d78b4d2015-09-05 13:34:34 -0500369GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object);
370GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object);
371void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value);
Norman James90baede2015-09-02 20:32:49 -0500372
Norman James5d78b4d2015-09-05 13:34:34 -0500373guchar sensor_threshold_get_state (SensorThreshold *object);
374void sensor_threshold_set_state (SensorThreshold *object, guchar value);
Norman Jamescc7ae122015-08-24 14:26:09 -0500375
376
377/* ---- */
378
Norman James5d78b4d2015-09-05 13:34:34 -0500379#define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ())
380#define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy))
381#define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass))
382#define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass))
383#define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY))
384#define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY))
Norman Jamescc7ae122015-08-24 14:26:09 -0500385
Norman James5d78b4d2015-09-05 13:34:34 -0500386typedef struct _SensorThresholdProxy SensorThresholdProxy;
387typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass;
388typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate;
Norman Jamescc7ae122015-08-24 14:26:09 -0500389
Norman James5d78b4d2015-09-05 13:34:34 -0500390struct _SensorThresholdProxy
Norman Jamescc7ae122015-08-24 14:26:09 -0500391{
392 /*< private >*/
393 GDBusProxy parent_instance;
Norman James5d78b4d2015-09-05 13:34:34 -0500394 SensorThresholdProxyPrivate *priv;
Norman Jamescc7ae122015-08-24 14:26:09 -0500395};
396
Norman James5d78b4d2015-09-05 13:34:34 -0500397struct _SensorThresholdProxyClass
Norman Jamescc7ae122015-08-24 14:26:09 -0500398{
399 GDBusProxyClass parent_class;
400};
401
Norman James5d78b4d2015-09-05 13:34:34 -0500402GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST;
Norman Jamescc7ae122015-08-24 14:26:09 -0500403
Norman James5d78b4d2015-09-05 13:34:34 -0500404void sensor_threshold_proxy_new (
Norman Jamescc7ae122015-08-24 14:26:09 -0500405 GDBusConnection *connection,
406 GDBusProxyFlags flags,
407 const gchar *name,
408 const gchar *object_path,
409 GCancellable *cancellable,
410 GAsyncReadyCallback callback,
411 gpointer user_data);
Norman James5d78b4d2015-09-05 13:34:34 -0500412SensorThreshold *sensor_threshold_proxy_new_finish (
Norman Jamescc7ae122015-08-24 14:26:09 -0500413 GAsyncResult *res,
414 GError **error);
Norman James5d78b4d2015-09-05 13:34:34 -0500415SensorThreshold *sensor_threshold_proxy_new_sync (
Norman Jamescc7ae122015-08-24 14:26:09 -0500416 GDBusConnection *connection,
417 GDBusProxyFlags flags,
418 const gchar *name,
419 const gchar *object_path,
420 GCancellable *cancellable,
421 GError **error);
422
Norman James5d78b4d2015-09-05 13:34:34 -0500423void sensor_threshold_proxy_new_for_bus (
Norman Jamescc7ae122015-08-24 14:26:09 -0500424 GBusType bus_type,
425 GDBusProxyFlags flags,
426 const gchar *name,
427 const gchar *object_path,
428 GCancellable *cancellable,
429 GAsyncReadyCallback callback,
430 gpointer user_data);
Norman James5d78b4d2015-09-05 13:34:34 -0500431SensorThreshold *sensor_threshold_proxy_new_for_bus_finish (
Norman Jamescc7ae122015-08-24 14:26:09 -0500432 GAsyncResult *res,
433 GError **error);
Norman James5d78b4d2015-09-05 13:34:34 -0500434SensorThreshold *sensor_threshold_proxy_new_for_bus_sync (
Norman Jamescc7ae122015-08-24 14:26:09 -0500435 GBusType bus_type,
436 GDBusProxyFlags flags,
437 const gchar *name,
438 const gchar *object_path,
439 GCancellable *cancellable,
440 GError **error);
441
442
443/* ---- */
444
Norman James5d78b4d2015-09-05 13:34:34 -0500445#define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ())
446#define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton))
447#define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass))
448#define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass))
449#define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON))
450#define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON))
Norman Jamescc7ae122015-08-24 14:26:09 -0500451
Norman James5d78b4d2015-09-05 13:34:34 -0500452typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton;
453typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass;
454typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate;
Norman Jamescc7ae122015-08-24 14:26:09 -0500455
Norman James5d78b4d2015-09-05 13:34:34 -0500456struct _SensorThresholdSkeleton
Norman Jamescc7ae122015-08-24 14:26:09 -0500457{
458 /*< private >*/
459 GDBusInterfaceSkeleton parent_instance;
Norman James5d78b4d2015-09-05 13:34:34 -0500460 SensorThresholdSkeletonPrivate *priv;
Norman Jamescc7ae122015-08-24 14:26:09 -0500461};
462
Norman James5d78b4d2015-09-05 13:34:34 -0500463struct _SensorThresholdSkeletonClass
Norman Jamescc7ae122015-08-24 14:26:09 -0500464{
465 GDBusInterfaceSkeletonClass parent_class;
466};
467
Norman James5d78b4d2015-09-05 13:34:34 -0500468GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST;
Norman Jamescc7ae122015-08-24 14:26:09 -0500469
Norman James5d78b4d2015-09-05 13:34:34 -0500470SensorThreshold *sensor_threshold_skeleton_new (void);
Norman Jamescc7ae122015-08-24 14:26:09 -0500471
472
Norman James90baede2015-09-02 20:32:49 -0500473/* ------------------------------------------------------------------------ */
474/* Declarations for org.openbmc.SensorI2c */
475
476#define TYPE_SENSOR_I2C (sensor_i2c_get_type ())
477#define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c))
478#define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C))
479#define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface))
480
481struct _SensorI2c;
482typedef struct _SensorI2c SensorI2c;
483typedef struct _SensorI2cIface SensorI2cIface;
484
485struct _SensorI2cIface
486{
487 GTypeInterface parent_iface;
488
489 const gchar * (*get_address) (SensorI2c *object);
490
491 const gchar * (*get_dev_path) (SensorI2c *object);
492
493};
494
495GType sensor_i2c_get_type (void) G_GNUC_CONST;
496
497GDBusInterfaceInfo *sensor_i2c_interface_info (void);
498guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin);
499
500
501/* D-Bus property accessors: */
502const gchar *sensor_i2c_get_dev_path (SensorI2c *object);
503gchar *sensor_i2c_dup_dev_path (SensorI2c *object);
504void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value);
505
506const gchar *sensor_i2c_get_address (SensorI2c *object);
507gchar *sensor_i2c_dup_address (SensorI2c *object);
508void sensor_i2c_set_address (SensorI2c *object, const gchar *value);
509
510
511/* ---- */
512
513#define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ())
514#define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy))
515#define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass))
516#define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass))
517#define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY))
518#define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY))
519
520typedef struct _SensorI2cProxy SensorI2cProxy;
521typedef struct _SensorI2cProxyClass SensorI2cProxyClass;
522typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate;
523
524struct _SensorI2cProxy
525{
526 /*< private >*/
527 GDBusProxy parent_instance;
528 SensorI2cProxyPrivate *priv;
529};
530
531struct _SensorI2cProxyClass
532{
533 GDBusProxyClass parent_class;
534};
535
536GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST;
537
538void sensor_i2c_proxy_new (
539 GDBusConnection *connection,
540 GDBusProxyFlags flags,
541 const gchar *name,
542 const gchar *object_path,
543 GCancellable *cancellable,
544 GAsyncReadyCallback callback,
545 gpointer user_data);
546SensorI2c *sensor_i2c_proxy_new_finish (
547 GAsyncResult *res,
548 GError **error);
549SensorI2c *sensor_i2c_proxy_new_sync (
550 GDBusConnection *connection,
551 GDBusProxyFlags flags,
552 const gchar *name,
553 const gchar *object_path,
554 GCancellable *cancellable,
555 GError **error);
556
557void sensor_i2c_proxy_new_for_bus (
558 GBusType bus_type,
559 GDBusProxyFlags flags,
560 const gchar *name,
561 const gchar *object_path,
562 GCancellable *cancellable,
563 GAsyncReadyCallback callback,
564 gpointer user_data);
565SensorI2c *sensor_i2c_proxy_new_for_bus_finish (
566 GAsyncResult *res,
567 GError **error);
568SensorI2c *sensor_i2c_proxy_new_for_bus_sync (
569 GBusType bus_type,
570 GDBusProxyFlags flags,
571 const gchar *name,
572 const gchar *object_path,
573 GCancellable *cancellable,
574 GError **error);
575
576
577/* ---- */
578
579#define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ())
580#define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton))
581#define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass))
582#define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass))
583#define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON))
584#define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON))
585
586typedef struct _SensorI2cSkeleton SensorI2cSkeleton;
587typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass;
588typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate;
589
590struct _SensorI2cSkeleton
591{
592 /*< private >*/
593 GDBusInterfaceSkeleton parent_instance;
594 SensorI2cSkeletonPrivate *priv;
595};
596
597struct _SensorI2cSkeletonClass
598{
599 GDBusInterfaceSkeletonClass parent_class;
600};
601
602GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST;
603
604SensorI2c *sensor_i2c_skeleton_new (void);
605
606
Norman Jamese2765102015-08-19 22:00:55 -0500607/* ---- */
608
609#define TYPE_OBJECT (object_get_type ())
610#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
611#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
612#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
613
614struct _Object;
615typedef struct _Object Object;
616typedef struct _ObjectIface ObjectIface;
617
618struct _ObjectIface
619{
620 GTypeInterface parent_iface;
621};
622
623GType object_get_type (void) G_GNUC_CONST;
624
Norman James5d78b4d2015-09-05 13:34:34 -0500625SensorValue *object_get_sensor_value (Object *object);
626SensorThreshold *object_get_sensor_threshold (Object *object);
Norman James90baede2015-09-02 20:32:49 -0500627SensorI2c *object_get_sensor_i2c (Object *object);
Norman James5d78b4d2015-09-05 13:34:34 -0500628SensorValue *object_peek_sensor_value (Object *object);
629SensorThreshold *object_peek_sensor_threshold (Object *object);
Norman James90baede2015-09-02 20:32:49 -0500630SensorI2c *object_peek_sensor_i2c (Object *object);
Norman Jamese2765102015-08-19 22:00:55 -0500631
632#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
633#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
634#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
635#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
636#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
637#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
638
639typedef struct _ObjectProxy ObjectProxy;
640typedef struct _ObjectProxyClass ObjectProxyClass;
641typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
642
643struct _ObjectProxy
644{
645 /*< private >*/
646 GDBusObjectProxy parent_instance;
647 ObjectProxyPrivate *priv;
648};
649
650struct _ObjectProxyClass
651{
652 GDBusObjectProxyClass parent_class;
653};
654
655GType object_proxy_get_type (void) G_GNUC_CONST;
656ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
657
658#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
659#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
660#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
661#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
662#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
663#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
664
665typedef struct _ObjectSkeleton ObjectSkeleton;
666typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
667typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
668
669struct _ObjectSkeleton
670{
671 /*< private >*/
672 GDBusObjectSkeleton parent_instance;
673 ObjectSkeletonPrivate *priv;
674};
675
676struct _ObjectSkeletonClass
677{
678 GDBusObjectSkeletonClass parent_class;
679};
680
681GType object_skeleton_get_type (void) G_GNUC_CONST;
682ObjectSkeleton *object_skeleton_new (const gchar *object_path);
Norman James5d78b4d2015-09-05 13:34:34 -0500683void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_);
684void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_);
Norman James90baede2015-09-02 20:32:49 -0500685void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_);
Norman Jamese2765102015-08-19 22:00:55 -0500686
687/* ---- */
688
689#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
690#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
691#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
692#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
693#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
694#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
695
696typedef struct _ObjectManagerClient ObjectManagerClient;
697typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
698typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
699
700struct _ObjectManagerClient
701{
702 /*< private >*/
703 GDBusObjectManagerClient parent_instance;
704 ObjectManagerClientPrivate *priv;
705};
706
707struct _ObjectManagerClientClass
708{
709 GDBusObjectManagerClientClass parent_class;
710};
711
712GType object_manager_client_get_type (void) G_GNUC_CONST;
713
714GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
715
716void object_manager_client_new (
717 GDBusConnection *connection,
718 GDBusObjectManagerClientFlags flags,
719 const gchar *name,
720 const gchar *object_path,
721 GCancellable *cancellable,
722 GAsyncReadyCallback callback,
723 gpointer user_data);
724GDBusObjectManager *object_manager_client_new_finish (
725 GAsyncResult *res,
726 GError **error);
727GDBusObjectManager *object_manager_client_new_sync (
728 GDBusConnection *connection,
729 GDBusObjectManagerClientFlags flags,
730 const gchar *name,
731 const gchar *object_path,
732 GCancellable *cancellable,
733 GError **error);
734
735void object_manager_client_new_for_bus (
736 GBusType bus_type,
737 GDBusObjectManagerClientFlags flags,
738 const gchar *name,
739 const gchar *object_path,
740 GCancellable *cancellable,
741 GAsyncReadyCallback callback,
742 gpointer user_data);
743GDBusObjectManager *object_manager_client_new_for_bus_finish (
744 GAsyncResult *res,
745 GError **error);
746GDBusObjectManager *object_manager_client_new_for_bus_sync (
747 GBusType bus_type,
748 GDBusObjectManagerClientFlags flags,
749 const gchar *name,
750 const gchar *object_path,
751 GCancellable *cancellable,
752 GError **error);
753
754
755G_END_DECLS
756
757#endif /* __INTERFACES_SENSOR_H__ */