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