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