blob: e3e543501b9ffec2b5ff80f9840eb1b236dbf732 [file] [log] [blame]
Norman Jamesdc95ef72015-08-27 21:27:03 -05001/*
2 * Generated by gdbus-codegen 2.40.2. DO NOT EDIT.
3 *
4 * The license of this code is the same as for the source it was derived from.
5 */
6
7#ifndef __INTERFACES_SENSOR_THRESHOLD_H__
8#define __INTERFACES_SENSOR_THRESHOLD_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.openbmc.SensorIntegerThreshold */
17
18#define TYPE_SENSOR_INTEGER_THRESHOLD (sensor_integer_threshold_get_type ())
19#define SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThreshold))
20#define IS_SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD))
21#define SENSOR_INTEGER_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThresholdIface))
22
23struct _SensorIntegerThreshold;
24typedef struct _SensorIntegerThreshold SensorIntegerThreshold;
25typedef struct _SensorIntegerThresholdIface SensorIntegerThresholdIface;
26
27struct _SensorIntegerThresholdIface
28{
29 GTypeInterface parent_iface;
30
31
32
33 gboolean (*handle_get_threshold_state) (
34 SensorIntegerThreshold *object,
35 GDBusMethodInvocation *invocation);
36
37 gboolean (*handle_set_thresholds) (
38 SensorIntegerThreshold *object,
39 GDBusMethodInvocation *invocation,
40 gint arg_lower_critical,
41 gint arg_lower_warning,
42 gint arg_upper_warning,
43 gint arg_upper_critical);
44
45 gint (*get_threshold_lower_warning) (SensorIntegerThreshold *object);
46
47 gint (*get_threshold_state) (SensorIntegerThreshold *object);
48
49 gint (*get_threshold_upper_critical) (SensorIntegerThreshold *object);
50
51 gint (*get_threshold_upper_warning) (SensorIntegerThreshold *object);
52
53 void (*critical) (
54 SensorIntegerThreshold *object);
55
56 void (*warning) (
57 SensorIntegerThreshold *object);
58
59};
60
61GType sensor_integer_threshold_get_type (void) G_GNUC_CONST;
62
63GDBusInterfaceInfo *sensor_integer_threshold_interface_info (void);
64guint sensor_integer_threshold_override_properties (GObjectClass *klass, guint property_id_begin);
65
66
67/* D-Bus method call completion functions: */
68void sensor_integer_threshold_complete_set_thresholds (
69 SensorIntegerThreshold *object,
70 GDBusMethodInvocation *invocation);
71
72void sensor_integer_threshold_complete_get_threshold_state (
73 SensorIntegerThreshold *object,
74 GDBusMethodInvocation *invocation,
75 gint threshold_state);
76
77
78
79/* D-Bus signal emissions functions: */
80void sensor_integer_threshold_emit_warning (
81 SensorIntegerThreshold *object);
82
83void sensor_integer_threshold_emit_critical (
84 SensorIntegerThreshold *object);
85
86
87
88/* D-Bus method calls: */
89void sensor_integer_threshold_call_set_thresholds (
90 SensorIntegerThreshold *proxy,
91 gint arg_lower_critical,
92 gint arg_lower_warning,
93 gint arg_upper_warning,
94 gint arg_upper_critical,
95 GCancellable *cancellable,
96 GAsyncReadyCallback callback,
97 gpointer user_data);
98
99gboolean sensor_integer_threshold_call_set_thresholds_finish (
100 SensorIntegerThreshold *proxy,
101 GAsyncResult *res,
102 GError **error);
103
104gboolean sensor_integer_threshold_call_set_thresholds_sync (
105 SensorIntegerThreshold *proxy,
106 gint arg_lower_critical,
107 gint arg_lower_warning,
108 gint arg_upper_warning,
109 gint arg_upper_critical,
110 GCancellable *cancellable,
111 GError **error);
112
113void sensor_integer_threshold_call_get_threshold_state (
114 SensorIntegerThreshold *proxy,
115 GCancellable *cancellable,
116 GAsyncReadyCallback callback,
117 gpointer user_data);
118
119gboolean sensor_integer_threshold_call_get_threshold_state_finish (
120 SensorIntegerThreshold *proxy,
121 gint *out_threshold_state,
122 GAsyncResult *res,
123 GError **error);
124
125gboolean sensor_integer_threshold_call_get_threshold_state_sync (
126 SensorIntegerThreshold *proxy,
127 gint *out_threshold_state,
128 GCancellable *cancellable,
129 GError **error);
130
131
132
133/* D-Bus property accessors: */
134gint sensor_integer_threshold_get_threshold_lower_warning (SensorIntegerThreshold *object);
135void sensor_integer_threshold_set_threshold_lower_warning (SensorIntegerThreshold *object, gint value);
136
137gint sensor_integer_threshold_get_threshold_upper_warning (SensorIntegerThreshold *object);
138void sensor_integer_threshold_set_threshold_upper_warning (SensorIntegerThreshold *object, gint value);
139
140gint sensor_integer_threshold_get_threshold_upper_critical (SensorIntegerThreshold *object);
141void sensor_integer_threshold_set_threshold_upper_critical (SensorIntegerThreshold *object, gint value);
142
143gint sensor_integer_threshold_get_threshold_state (SensorIntegerThreshold *object);
144void sensor_integer_threshold_set_threshold_state (SensorIntegerThreshold *object, gint value);
145
146
147/* ---- */
148
149#define TYPE_SENSOR_INTEGER_THRESHOLD_PROXY (sensor_integer_threshold_proxy_get_type ())
150#define SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxy))
151#define SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass))
152#define SENSOR_INTEGER_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass))
153#define IS_SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY))
154#define IS_SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY))
155
156typedef struct _SensorIntegerThresholdProxy SensorIntegerThresholdProxy;
157typedef struct _SensorIntegerThresholdProxyClass SensorIntegerThresholdProxyClass;
158typedef struct _SensorIntegerThresholdProxyPrivate SensorIntegerThresholdProxyPrivate;
159
160struct _SensorIntegerThresholdProxy
161{
162 /*< private >*/
163 GDBusProxy parent_instance;
164 SensorIntegerThresholdProxyPrivate *priv;
165};
166
167struct _SensorIntegerThresholdProxyClass
168{
169 GDBusProxyClass parent_class;
170};
171
172GType sensor_integer_threshold_proxy_get_type (void) G_GNUC_CONST;
173
174void sensor_integer_threshold_proxy_new (
175 GDBusConnection *connection,
176 GDBusProxyFlags flags,
177 const gchar *name,
178 const gchar *object_path,
179 GCancellable *cancellable,
180 GAsyncReadyCallback callback,
181 gpointer user_data);
182SensorIntegerThreshold *sensor_integer_threshold_proxy_new_finish (
183 GAsyncResult *res,
184 GError **error);
185SensorIntegerThreshold *sensor_integer_threshold_proxy_new_sync (
186 GDBusConnection *connection,
187 GDBusProxyFlags flags,
188 const gchar *name,
189 const gchar *object_path,
190 GCancellable *cancellable,
191 GError **error);
192
193void sensor_integer_threshold_proxy_new_for_bus (
194 GBusType bus_type,
195 GDBusProxyFlags flags,
196 const gchar *name,
197 const gchar *object_path,
198 GCancellable *cancellable,
199 GAsyncReadyCallback callback,
200 gpointer user_data);
201SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_finish (
202 GAsyncResult *res,
203 GError **error);
204SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_sync (
205 GBusType bus_type,
206 GDBusProxyFlags flags,
207 const gchar *name,
208 const gchar *object_path,
209 GCancellable *cancellable,
210 GError **error);
211
212
213/* ---- */
214
215#define TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON (sensor_integer_threshold_skeleton_get_type ())
216#define SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeleton))
217#define SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass))
218#define SENSOR_INTEGER_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass))
219#define IS_SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON))
220#define IS_SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON))
221
222typedef struct _SensorIntegerThresholdSkeleton SensorIntegerThresholdSkeleton;
223typedef struct _SensorIntegerThresholdSkeletonClass SensorIntegerThresholdSkeletonClass;
224typedef struct _SensorIntegerThresholdSkeletonPrivate SensorIntegerThresholdSkeletonPrivate;
225
226struct _SensorIntegerThresholdSkeleton
227{
228 /*< private >*/
229 GDBusInterfaceSkeleton parent_instance;
230 SensorIntegerThresholdSkeletonPrivate *priv;
231};
232
233struct _SensorIntegerThresholdSkeletonClass
234{
235 GDBusInterfaceSkeletonClass parent_class;
236};
237
238GType sensor_integer_threshold_skeleton_get_type (void) G_GNUC_CONST;
239
240SensorIntegerThreshold *sensor_integer_threshold_skeleton_new (void);
241
242
243/* ---- */
244
245#define TYPE_OBJECT (object_get_type ())
246#define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
247#define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
248#define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
249
250struct _Object;
251typedef struct _Object Object;
252typedef struct _ObjectIface ObjectIface;
253
254struct _ObjectIface
255{
256 GTypeInterface parent_iface;
257};
258
259GType object_get_type (void) G_GNUC_CONST;
260
261SensorIntegerThreshold *object_get_sensor_integer_threshold (Object *object);
262SensorIntegerThreshold *object_peek_sensor_integer_threshold (Object *object);
263
264#define TYPE_OBJECT_PROXY (object_proxy_get_type ())
265#define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
266#define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
267#define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
268#define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
269#define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
270
271typedef struct _ObjectProxy ObjectProxy;
272typedef struct _ObjectProxyClass ObjectProxyClass;
273typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
274
275struct _ObjectProxy
276{
277 /*< private >*/
278 GDBusObjectProxy parent_instance;
279 ObjectProxyPrivate *priv;
280};
281
282struct _ObjectProxyClass
283{
284 GDBusObjectProxyClass parent_class;
285};
286
287GType object_proxy_get_type (void) G_GNUC_CONST;
288ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
289
290#define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
291#define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
292#define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
293#define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
294#define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
295#define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
296
297typedef struct _ObjectSkeleton ObjectSkeleton;
298typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
299typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
300
301struct _ObjectSkeleton
302{
303 /*< private >*/
304 GDBusObjectSkeleton parent_instance;
305 ObjectSkeletonPrivate *priv;
306};
307
308struct _ObjectSkeletonClass
309{
310 GDBusObjectSkeletonClass parent_class;
311};
312
313GType object_skeleton_get_type (void) G_GNUC_CONST;
314ObjectSkeleton *object_skeleton_new (const gchar *object_path);
315void object_skeleton_set_sensor_integer_threshold (ObjectSkeleton *object, SensorIntegerThreshold *interface_);
316
317/* ---- */
318
319#define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
320#define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
321#define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
322#define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
323#define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
324#define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
325
326typedef struct _ObjectManagerClient ObjectManagerClient;
327typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
328typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
329
330struct _ObjectManagerClient
331{
332 /*< private >*/
333 GDBusObjectManagerClient parent_instance;
334 ObjectManagerClientPrivate *priv;
335};
336
337struct _ObjectManagerClientClass
338{
339 GDBusObjectManagerClientClass parent_class;
340};
341
342GType object_manager_client_get_type (void) G_GNUC_CONST;
343
344GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
345
346void object_manager_client_new (
347 GDBusConnection *connection,
348 GDBusObjectManagerClientFlags flags,
349 const gchar *name,
350 const gchar *object_path,
351 GCancellable *cancellable,
352 GAsyncReadyCallback callback,
353 gpointer user_data);
354GDBusObjectManager *object_manager_client_new_finish (
355 GAsyncResult *res,
356 GError **error);
357GDBusObjectManager *object_manager_client_new_sync (
358 GDBusConnection *connection,
359 GDBusObjectManagerClientFlags flags,
360 const gchar *name,
361 const gchar *object_path,
362 GCancellable *cancellable,
363 GError **error);
364
365void object_manager_client_new_for_bus (
366 GBusType bus_type,
367 GDBusObjectManagerClientFlags flags,
368 const gchar *name,
369 const gchar *object_path,
370 GCancellable *cancellable,
371 GAsyncReadyCallback callback,
372 gpointer user_data);
373GDBusObjectManager *object_manager_client_new_for_bus_finish (
374 GAsyncResult *res,
375 GError **error);
376GDBusObjectManager *object_manager_client_new_for_bus_sync (
377 GBusType bus_type,
378 GDBusObjectManagerClientFlags flags,
379 const gchar *name,
380 const gchar *object_path,
381 GCancellable *cancellable,
382 GError **error);
383
384
385G_END_DECLS
386
387#endif /* __INTERFACES_SENSOR_THRESHOLD_H__ */