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 | |
| 41 | const gchar * (*get_units) (SensorInteger *object); |
| 42 | |
| 43 | gint (*get_value) (SensorInteger *object); |
| 44 | |
| 45 | void (*changed) ( |
| 46 | SensorInteger *object, |
| 47 | gint arg_value); |
| 48 | |
| 49 | }; |
| 50 | |
| 51 | GType sensor_integer_get_type (void) G_GNUC_CONST; |
| 52 | |
| 53 | GDBusInterfaceInfo *sensor_integer_interface_info (void); |
| 54 | guint sensor_integer_override_properties (GObjectClass *klass, guint property_id_begin); |
| 55 | |
| 56 | |
| 57 | /* D-Bus method call completion functions: */ |
| 58 | void sensor_integer_complete_get_value ( |
| 59 | SensorInteger *object, |
| 60 | GDBusMethodInvocation *invocation, |
| 61 | gint value); |
| 62 | |
| 63 | void sensor_integer_complete_get_units ( |
| 64 | SensorInteger *object, |
| 65 | GDBusMethodInvocation *invocation, |
| 66 | const gchar *units); |
| 67 | |
| 68 | |
| 69 | |
| 70 | /* D-Bus signal emissions functions: */ |
| 71 | void sensor_integer_emit_changed ( |
| 72 | SensorInteger *object, |
| 73 | gint arg_value); |
| 74 | |
| 75 | |
| 76 | |
| 77 | /* D-Bus method calls: */ |
| 78 | void sensor_integer_call_get_value ( |
| 79 | SensorInteger *proxy, |
| 80 | GCancellable *cancellable, |
| 81 | GAsyncReadyCallback callback, |
| 82 | gpointer user_data); |
| 83 | |
| 84 | gboolean sensor_integer_call_get_value_finish ( |
| 85 | SensorInteger *proxy, |
| 86 | gint *out_value, |
| 87 | GAsyncResult *res, |
| 88 | GError **error); |
| 89 | |
| 90 | gboolean sensor_integer_call_get_value_sync ( |
| 91 | SensorInteger *proxy, |
| 92 | gint *out_value, |
| 93 | GCancellable *cancellable, |
| 94 | GError **error); |
| 95 | |
| 96 | void sensor_integer_call_get_units ( |
| 97 | SensorInteger *proxy, |
| 98 | GCancellable *cancellable, |
| 99 | GAsyncReadyCallback callback, |
| 100 | gpointer user_data); |
| 101 | |
| 102 | gboolean sensor_integer_call_get_units_finish ( |
| 103 | SensorInteger *proxy, |
| 104 | gchar **out_units, |
| 105 | GAsyncResult *res, |
| 106 | GError **error); |
| 107 | |
| 108 | gboolean sensor_integer_call_get_units_sync ( |
| 109 | SensorInteger *proxy, |
| 110 | gchar **out_units, |
| 111 | GCancellable *cancellable, |
| 112 | GError **error); |
| 113 | |
| 114 | |
| 115 | |
| 116 | /* D-Bus property accessors: */ |
| 117 | gint sensor_integer_get_value (SensorInteger *object); |
| 118 | void sensor_integer_set_value (SensorInteger *object, gint value); |
| 119 | |
| 120 | const gchar *sensor_integer_get_units (SensorInteger *object); |
| 121 | gchar *sensor_integer_dup_units (SensorInteger *object); |
| 122 | void sensor_integer_set_units (SensorInteger *object, const gchar *value); |
| 123 | |
| 124 | |
| 125 | /* ---- */ |
| 126 | |
| 127 | #define TYPE_SENSOR_INTEGER_PROXY (sensor_integer_proxy_get_type ()) |
| 128 | #define SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxy)) |
| 129 | #define SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass)) |
| 130 | #define SENSOR_INTEGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass)) |
| 131 | #define IS_SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_PROXY)) |
| 132 | #define IS_SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_PROXY)) |
| 133 | |
| 134 | typedef struct _SensorIntegerProxy SensorIntegerProxy; |
| 135 | typedef struct _SensorIntegerProxyClass SensorIntegerProxyClass; |
| 136 | typedef struct _SensorIntegerProxyPrivate SensorIntegerProxyPrivate; |
| 137 | |
| 138 | struct _SensorIntegerProxy |
| 139 | { |
| 140 | /*< private >*/ |
| 141 | GDBusProxy parent_instance; |
| 142 | SensorIntegerProxyPrivate *priv; |
| 143 | }; |
| 144 | |
| 145 | struct _SensorIntegerProxyClass |
| 146 | { |
| 147 | GDBusProxyClass parent_class; |
| 148 | }; |
| 149 | |
| 150 | GType sensor_integer_proxy_get_type (void) G_GNUC_CONST; |
| 151 | |
| 152 | void sensor_integer_proxy_new ( |
| 153 | GDBusConnection *connection, |
| 154 | GDBusProxyFlags flags, |
| 155 | const gchar *name, |
| 156 | const gchar *object_path, |
| 157 | GCancellable *cancellable, |
| 158 | GAsyncReadyCallback callback, |
| 159 | gpointer user_data); |
| 160 | SensorInteger *sensor_integer_proxy_new_finish ( |
| 161 | GAsyncResult *res, |
| 162 | GError **error); |
| 163 | SensorInteger *sensor_integer_proxy_new_sync ( |
| 164 | GDBusConnection *connection, |
| 165 | GDBusProxyFlags flags, |
| 166 | const gchar *name, |
| 167 | const gchar *object_path, |
| 168 | GCancellable *cancellable, |
| 169 | GError **error); |
| 170 | |
| 171 | void sensor_integer_proxy_new_for_bus ( |
| 172 | GBusType bus_type, |
| 173 | GDBusProxyFlags flags, |
| 174 | const gchar *name, |
| 175 | const gchar *object_path, |
| 176 | GCancellable *cancellable, |
| 177 | GAsyncReadyCallback callback, |
| 178 | gpointer user_data); |
| 179 | SensorInteger *sensor_integer_proxy_new_for_bus_finish ( |
| 180 | GAsyncResult *res, |
| 181 | GError **error); |
| 182 | SensorInteger *sensor_integer_proxy_new_for_bus_sync ( |
| 183 | GBusType bus_type, |
| 184 | GDBusProxyFlags flags, |
| 185 | const gchar *name, |
| 186 | const gchar *object_path, |
| 187 | GCancellable *cancellable, |
| 188 | GError **error); |
| 189 | |
| 190 | |
| 191 | /* ---- */ |
| 192 | |
| 193 | #define TYPE_SENSOR_INTEGER_SKELETON (sensor_integer_skeleton_get_type ()) |
| 194 | #define SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeleton)) |
| 195 | #define SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass)) |
| 196 | #define SENSOR_INTEGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass)) |
| 197 | #define IS_SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SKELETON)) |
| 198 | #define IS_SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SKELETON)) |
| 199 | |
| 200 | typedef struct _SensorIntegerSkeleton SensorIntegerSkeleton; |
| 201 | typedef struct _SensorIntegerSkeletonClass SensorIntegerSkeletonClass; |
| 202 | typedef struct _SensorIntegerSkeletonPrivate SensorIntegerSkeletonPrivate; |
| 203 | |
| 204 | struct _SensorIntegerSkeleton |
| 205 | { |
| 206 | /*< private >*/ |
| 207 | GDBusInterfaceSkeleton parent_instance; |
| 208 | SensorIntegerSkeletonPrivate *priv; |
| 209 | }; |
| 210 | |
| 211 | struct _SensorIntegerSkeletonClass |
| 212 | { |
| 213 | GDBusInterfaceSkeletonClass parent_class; |
| 214 | }; |
| 215 | |
| 216 | GType sensor_integer_skeleton_get_type (void) G_GNUC_CONST; |
| 217 | |
| 218 | SensorInteger *sensor_integer_skeleton_new (void); |
| 219 | |
| 220 | |
| 221 | /* ------------------------------------------------------------------------ */ |
| 222 | /* Declarations for org.openbmc.SensorString */ |
| 223 | |
| 224 | #define TYPE_SENSOR_STRING (sensor_string_get_type ()) |
| 225 | #define SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING, SensorString)) |
| 226 | #define IS_SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING)) |
| 227 | #define SENSOR_STRING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_STRING, SensorStringIface)) |
| 228 | |
| 229 | struct _SensorString; |
| 230 | typedef struct _SensorString SensorString; |
| 231 | typedef struct _SensorStringIface SensorStringIface; |
| 232 | |
| 233 | struct _SensorStringIface |
| 234 | { |
| 235 | GTypeInterface parent_iface; |
| 236 | |
| 237 | |
| 238 | |
| 239 | gboolean (*handle_get_units) ( |
| 240 | SensorString *object, |
| 241 | GDBusMethodInvocation *invocation); |
| 242 | |
| 243 | gboolean (*handle_get_value) ( |
| 244 | SensorString *object, |
| 245 | GDBusMethodInvocation *invocation); |
| 246 | |
| 247 | const gchar * (*get_units) (SensorString *object); |
| 248 | |
| 249 | gint (*get_value) (SensorString *object); |
| 250 | |
| 251 | void (*changed) ( |
| 252 | SensorString *object, |
| 253 | const gchar *arg_value); |
| 254 | |
| 255 | }; |
| 256 | |
| 257 | GType sensor_string_get_type (void) G_GNUC_CONST; |
| 258 | |
| 259 | GDBusInterfaceInfo *sensor_string_interface_info (void); |
| 260 | guint sensor_string_override_properties (GObjectClass *klass, guint property_id_begin); |
| 261 | |
| 262 | |
| 263 | /* D-Bus method call completion functions: */ |
| 264 | void sensor_string_complete_get_value ( |
| 265 | SensorString *object, |
| 266 | GDBusMethodInvocation *invocation, |
| 267 | const gchar *value); |
| 268 | |
| 269 | void sensor_string_complete_get_units ( |
| 270 | SensorString *object, |
| 271 | GDBusMethodInvocation *invocation, |
| 272 | const gchar *units); |
| 273 | |
| 274 | |
| 275 | |
| 276 | /* D-Bus signal emissions functions: */ |
| 277 | void sensor_string_emit_changed ( |
| 278 | SensorString *object, |
| 279 | const gchar *arg_value); |
| 280 | |
| 281 | |
| 282 | |
| 283 | /* D-Bus method calls: */ |
| 284 | void sensor_string_call_get_value ( |
| 285 | SensorString *proxy, |
| 286 | GCancellable *cancellable, |
| 287 | GAsyncReadyCallback callback, |
| 288 | gpointer user_data); |
| 289 | |
| 290 | gboolean sensor_string_call_get_value_finish ( |
| 291 | SensorString *proxy, |
| 292 | gchar **out_value, |
| 293 | GAsyncResult *res, |
| 294 | GError **error); |
| 295 | |
| 296 | gboolean sensor_string_call_get_value_sync ( |
| 297 | SensorString *proxy, |
| 298 | gchar **out_value, |
| 299 | GCancellable *cancellable, |
| 300 | GError **error); |
| 301 | |
| 302 | void sensor_string_call_get_units ( |
| 303 | SensorString *proxy, |
| 304 | GCancellable *cancellable, |
| 305 | GAsyncReadyCallback callback, |
| 306 | gpointer user_data); |
| 307 | |
| 308 | gboolean sensor_string_call_get_units_finish ( |
| 309 | SensorString *proxy, |
| 310 | gchar **out_units, |
| 311 | GAsyncResult *res, |
| 312 | GError **error); |
| 313 | |
| 314 | gboolean sensor_string_call_get_units_sync ( |
| 315 | SensorString *proxy, |
| 316 | gchar **out_units, |
| 317 | GCancellable *cancellable, |
| 318 | GError **error); |
| 319 | |
| 320 | |
| 321 | |
| 322 | /* D-Bus property accessors: */ |
| 323 | gint sensor_string_get_value (SensorString *object); |
| 324 | void sensor_string_set_value (SensorString *object, gint value); |
| 325 | |
| 326 | const gchar *sensor_string_get_units (SensorString *object); |
| 327 | gchar *sensor_string_dup_units (SensorString *object); |
| 328 | void sensor_string_set_units (SensorString *object, const gchar *value); |
| 329 | |
| 330 | |
| 331 | /* ---- */ |
| 332 | |
| 333 | #define TYPE_SENSOR_STRING_PROXY (sensor_string_proxy_get_type ()) |
| 334 | #define SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxy)) |
| 335 | #define SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass)) |
| 336 | #define SENSOR_STRING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass)) |
| 337 | #define IS_SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_PROXY)) |
| 338 | #define IS_SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_PROXY)) |
| 339 | |
| 340 | typedef struct _SensorStringProxy SensorStringProxy; |
| 341 | typedef struct _SensorStringProxyClass SensorStringProxyClass; |
| 342 | typedef struct _SensorStringProxyPrivate SensorStringProxyPrivate; |
| 343 | |
| 344 | struct _SensorStringProxy |
| 345 | { |
| 346 | /*< private >*/ |
| 347 | GDBusProxy parent_instance; |
| 348 | SensorStringProxyPrivate *priv; |
| 349 | }; |
| 350 | |
| 351 | struct _SensorStringProxyClass |
| 352 | { |
| 353 | GDBusProxyClass parent_class; |
| 354 | }; |
| 355 | |
| 356 | GType sensor_string_proxy_get_type (void) G_GNUC_CONST; |
| 357 | |
| 358 | void sensor_string_proxy_new ( |
| 359 | GDBusConnection *connection, |
| 360 | GDBusProxyFlags flags, |
| 361 | const gchar *name, |
| 362 | const gchar *object_path, |
| 363 | GCancellable *cancellable, |
| 364 | GAsyncReadyCallback callback, |
| 365 | gpointer user_data); |
| 366 | SensorString *sensor_string_proxy_new_finish ( |
| 367 | GAsyncResult *res, |
| 368 | GError **error); |
| 369 | SensorString *sensor_string_proxy_new_sync ( |
| 370 | GDBusConnection *connection, |
| 371 | GDBusProxyFlags flags, |
| 372 | const gchar *name, |
| 373 | const gchar *object_path, |
| 374 | GCancellable *cancellable, |
| 375 | GError **error); |
| 376 | |
| 377 | void sensor_string_proxy_new_for_bus ( |
| 378 | GBusType bus_type, |
| 379 | GDBusProxyFlags flags, |
| 380 | const gchar *name, |
| 381 | const gchar *object_path, |
| 382 | GCancellable *cancellable, |
| 383 | GAsyncReadyCallback callback, |
| 384 | gpointer user_data); |
| 385 | SensorString *sensor_string_proxy_new_for_bus_finish ( |
| 386 | GAsyncResult *res, |
| 387 | GError **error); |
| 388 | SensorString *sensor_string_proxy_new_for_bus_sync ( |
| 389 | GBusType bus_type, |
| 390 | GDBusProxyFlags flags, |
| 391 | const gchar *name, |
| 392 | const gchar *object_path, |
| 393 | GCancellable *cancellable, |
| 394 | GError **error); |
| 395 | |
| 396 | |
| 397 | /* ---- */ |
| 398 | |
| 399 | #define TYPE_SENSOR_STRING_SKELETON (sensor_string_skeleton_get_type ()) |
| 400 | #define SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeleton)) |
| 401 | #define SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass)) |
| 402 | #define SENSOR_STRING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass)) |
| 403 | #define IS_SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_SKELETON)) |
| 404 | #define IS_SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_SKELETON)) |
| 405 | |
| 406 | typedef struct _SensorStringSkeleton SensorStringSkeleton; |
| 407 | typedef struct _SensorStringSkeletonClass SensorStringSkeletonClass; |
| 408 | typedef struct _SensorStringSkeletonPrivate SensorStringSkeletonPrivate; |
| 409 | |
| 410 | struct _SensorStringSkeleton |
| 411 | { |
| 412 | /*< private >*/ |
| 413 | GDBusInterfaceSkeleton parent_instance; |
| 414 | SensorStringSkeletonPrivate *priv; |
| 415 | }; |
| 416 | |
| 417 | struct _SensorStringSkeletonClass |
| 418 | { |
| 419 | GDBusInterfaceSkeletonClass parent_class; |
| 420 | }; |
| 421 | |
| 422 | GType sensor_string_skeleton_get_type (void) G_GNUC_CONST; |
| 423 | |
| 424 | SensorString *sensor_string_skeleton_new (void); |
| 425 | |
| 426 | |
| 427 | /* ------------------------------------------------------------------------ */ |
| 428 | /* Declarations for org.openbmc.SensorIntegerSettable */ |
| 429 | |
| 430 | #define TYPE_SENSOR_INTEGER_SETTABLE (sensor_integer_settable_get_type ()) |
| 431 | #define SENSOR_INTEGER_SETTABLE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE, SensorIntegerSettable)) |
| 432 | #define IS_SENSOR_INTEGER_SETTABLE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE)) |
| 433 | #define SENSOR_INTEGER_SETTABLE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER_SETTABLE, SensorIntegerSettableIface)) |
| 434 | |
| 435 | struct _SensorIntegerSettable; |
| 436 | typedef struct _SensorIntegerSettable SensorIntegerSettable; |
| 437 | typedef struct _SensorIntegerSettableIface SensorIntegerSettableIface; |
| 438 | |
| 439 | struct _SensorIntegerSettableIface |
| 440 | { |
| 441 | GTypeInterface parent_iface; |
| 442 | |
| 443 | |
| 444 | |
| 445 | gboolean (*handle_get_units) ( |
| 446 | SensorIntegerSettable *object, |
| 447 | GDBusMethodInvocation *invocation); |
| 448 | |
| 449 | gboolean (*handle_get_value) ( |
| 450 | SensorIntegerSettable *object, |
| 451 | GDBusMethodInvocation *invocation); |
| 452 | |
| 453 | gboolean (*handle_set_value) ( |
| 454 | SensorIntegerSettable *object, |
| 455 | GDBusMethodInvocation *invocation, |
| 456 | gint arg_value); |
| 457 | |
| 458 | const gchar * (*get_units) (SensorIntegerSettable *object); |
| 459 | |
| 460 | gint (*get_value) (SensorIntegerSettable *object); |
| 461 | |
| 462 | void (*changed) ( |
| 463 | SensorIntegerSettable *object, |
| 464 | gint arg_value); |
| 465 | |
| 466 | }; |
| 467 | |
| 468 | GType sensor_integer_settable_get_type (void) G_GNUC_CONST; |
| 469 | |
| 470 | GDBusInterfaceInfo *sensor_integer_settable_interface_info (void); |
| 471 | guint sensor_integer_settable_override_properties (GObjectClass *klass, guint property_id_begin); |
| 472 | |
| 473 | |
| 474 | /* D-Bus method call completion functions: */ |
| 475 | void sensor_integer_settable_complete_get_value ( |
| 476 | SensorIntegerSettable *object, |
| 477 | GDBusMethodInvocation *invocation, |
| 478 | gint value); |
| 479 | |
| 480 | void sensor_integer_settable_complete_set_value ( |
| 481 | SensorIntegerSettable *object, |
| 482 | GDBusMethodInvocation *invocation); |
| 483 | |
| 484 | void sensor_integer_settable_complete_get_units ( |
| 485 | SensorIntegerSettable *object, |
| 486 | GDBusMethodInvocation *invocation, |
| 487 | const gchar *units); |
| 488 | |
| 489 | |
| 490 | |
| 491 | /* D-Bus signal emissions functions: */ |
| 492 | void sensor_integer_settable_emit_changed ( |
| 493 | SensorIntegerSettable *object, |
| 494 | gint arg_value); |
| 495 | |
| 496 | |
| 497 | |
| 498 | /* D-Bus method calls: */ |
| 499 | void sensor_integer_settable_call_get_value ( |
| 500 | SensorIntegerSettable *proxy, |
| 501 | GCancellable *cancellable, |
| 502 | GAsyncReadyCallback callback, |
| 503 | gpointer user_data); |
| 504 | |
| 505 | gboolean sensor_integer_settable_call_get_value_finish ( |
| 506 | SensorIntegerSettable *proxy, |
| 507 | gint *out_value, |
| 508 | GAsyncResult *res, |
| 509 | GError **error); |
| 510 | |
| 511 | gboolean sensor_integer_settable_call_get_value_sync ( |
| 512 | SensorIntegerSettable *proxy, |
| 513 | gint *out_value, |
| 514 | GCancellable *cancellable, |
| 515 | GError **error); |
| 516 | |
| 517 | void sensor_integer_settable_call_set_value ( |
| 518 | SensorIntegerSettable *proxy, |
| 519 | gint arg_value, |
| 520 | GCancellable *cancellable, |
| 521 | GAsyncReadyCallback callback, |
| 522 | gpointer user_data); |
| 523 | |
| 524 | gboolean sensor_integer_settable_call_set_value_finish ( |
| 525 | SensorIntegerSettable *proxy, |
| 526 | GAsyncResult *res, |
| 527 | GError **error); |
| 528 | |
| 529 | gboolean sensor_integer_settable_call_set_value_sync ( |
| 530 | SensorIntegerSettable *proxy, |
| 531 | gint arg_value, |
| 532 | GCancellable *cancellable, |
| 533 | GError **error); |
| 534 | |
| 535 | void sensor_integer_settable_call_get_units ( |
| 536 | SensorIntegerSettable *proxy, |
| 537 | GCancellable *cancellable, |
| 538 | GAsyncReadyCallback callback, |
| 539 | gpointer user_data); |
| 540 | |
| 541 | gboolean sensor_integer_settable_call_get_units_finish ( |
| 542 | SensorIntegerSettable *proxy, |
| 543 | gchar **out_units, |
| 544 | GAsyncResult *res, |
| 545 | GError **error); |
| 546 | |
| 547 | gboolean sensor_integer_settable_call_get_units_sync ( |
| 548 | SensorIntegerSettable *proxy, |
| 549 | gchar **out_units, |
| 550 | GCancellable *cancellable, |
| 551 | GError **error); |
| 552 | |
| 553 | |
| 554 | |
| 555 | /* D-Bus property accessors: */ |
| 556 | gint sensor_integer_settable_get_value (SensorIntegerSettable *object); |
| 557 | void sensor_integer_settable_set_value (SensorIntegerSettable *object, gint value); |
| 558 | |
| 559 | const gchar *sensor_integer_settable_get_units (SensorIntegerSettable *object); |
| 560 | gchar *sensor_integer_settable_dup_units (SensorIntegerSettable *object); |
| 561 | void sensor_integer_settable_set_units (SensorIntegerSettable *object, const gchar *value); |
| 562 | |
| 563 | |
| 564 | /* ---- */ |
| 565 | |
| 566 | #define TYPE_SENSOR_INTEGER_SETTABLE_PROXY (sensor_integer_settable_proxy_get_type ()) |
| 567 | #define SENSOR_INTEGER_SETTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxy)) |
| 568 | #define SENSOR_INTEGER_SETTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxyClass)) |
| 569 | #define SENSOR_INTEGER_SETTABLE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxyClass)) |
| 570 | #define IS_SENSOR_INTEGER_SETTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY)) |
| 571 | #define IS_SENSOR_INTEGER_SETTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SETTABLE_PROXY)) |
| 572 | |
| 573 | typedef struct _SensorIntegerSettableProxy SensorIntegerSettableProxy; |
| 574 | typedef struct _SensorIntegerSettableProxyClass SensorIntegerSettableProxyClass; |
| 575 | typedef struct _SensorIntegerSettableProxyPrivate SensorIntegerSettableProxyPrivate; |
| 576 | |
| 577 | struct _SensorIntegerSettableProxy |
| 578 | { |
| 579 | /*< private >*/ |
| 580 | GDBusProxy parent_instance; |
| 581 | SensorIntegerSettableProxyPrivate *priv; |
| 582 | }; |
| 583 | |
| 584 | struct _SensorIntegerSettableProxyClass |
| 585 | { |
| 586 | GDBusProxyClass parent_class; |
| 587 | }; |
| 588 | |
| 589 | GType sensor_integer_settable_proxy_get_type (void) G_GNUC_CONST; |
| 590 | |
| 591 | void sensor_integer_settable_proxy_new ( |
| 592 | GDBusConnection *connection, |
| 593 | GDBusProxyFlags flags, |
| 594 | const gchar *name, |
| 595 | const gchar *object_path, |
| 596 | GCancellable *cancellable, |
| 597 | GAsyncReadyCallback callback, |
| 598 | gpointer user_data); |
| 599 | SensorIntegerSettable *sensor_integer_settable_proxy_new_finish ( |
| 600 | GAsyncResult *res, |
| 601 | GError **error); |
| 602 | SensorIntegerSettable *sensor_integer_settable_proxy_new_sync ( |
| 603 | GDBusConnection *connection, |
| 604 | GDBusProxyFlags flags, |
| 605 | const gchar *name, |
| 606 | const gchar *object_path, |
| 607 | GCancellable *cancellable, |
| 608 | GError **error); |
| 609 | |
| 610 | void sensor_integer_settable_proxy_new_for_bus ( |
| 611 | GBusType bus_type, |
| 612 | GDBusProxyFlags flags, |
| 613 | const gchar *name, |
| 614 | const gchar *object_path, |
| 615 | GCancellable *cancellable, |
| 616 | GAsyncReadyCallback callback, |
| 617 | gpointer user_data); |
| 618 | SensorIntegerSettable *sensor_integer_settable_proxy_new_for_bus_finish ( |
| 619 | GAsyncResult *res, |
| 620 | GError **error); |
| 621 | SensorIntegerSettable *sensor_integer_settable_proxy_new_for_bus_sync ( |
| 622 | GBusType bus_type, |
| 623 | GDBusProxyFlags flags, |
| 624 | const gchar *name, |
| 625 | const gchar *object_path, |
| 626 | GCancellable *cancellable, |
| 627 | GError **error); |
| 628 | |
| 629 | |
| 630 | /* ---- */ |
| 631 | |
| 632 | #define TYPE_SENSOR_INTEGER_SETTABLE_SKELETON (sensor_integer_settable_skeleton_get_type ()) |
| 633 | #define SENSOR_INTEGER_SETTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeleton)) |
| 634 | #define SENSOR_INTEGER_SETTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeletonClass)) |
| 635 | #define SENSOR_INTEGER_SETTABLE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeletonClass)) |
| 636 | #define IS_SENSOR_INTEGER_SETTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON)) |
| 637 | #define IS_SENSOR_INTEGER_SETTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON)) |
| 638 | |
| 639 | typedef struct _SensorIntegerSettableSkeleton SensorIntegerSettableSkeleton; |
| 640 | typedef struct _SensorIntegerSettableSkeletonClass SensorIntegerSettableSkeletonClass; |
| 641 | typedef struct _SensorIntegerSettableSkeletonPrivate SensorIntegerSettableSkeletonPrivate; |
| 642 | |
| 643 | struct _SensorIntegerSettableSkeleton |
| 644 | { |
| 645 | /*< private >*/ |
| 646 | GDBusInterfaceSkeleton parent_instance; |
| 647 | SensorIntegerSettableSkeletonPrivate *priv; |
| 648 | }; |
| 649 | |
| 650 | struct _SensorIntegerSettableSkeletonClass |
| 651 | { |
| 652 | GDBusInterfaceSkeletonClass parent_class; |
| 653 | }; |
| 654 | |
| 655 | GType sensor_integer_settable_skeleton_get_type (void) G_GNUC_CONST; |
| 656 | |
| 657 | SensorIntegerSettable *sensor_integer_settable_skeleton_new (void); |
| 658 | |
| 659 | |
| 660 | /* ---- */ |
| 661 | |
| 662 | #define TYPE_OBJECT (object_get_type ()) |
| 663 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 664 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 665 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 666 | |
| 667 | struct _Object; |
| 668 | typedef struct _Object Object; |
| 669 | typedef struct _ObjectIface ObjectIface; |
| 670 | |
| 671 | struct _ObjectIface |
| 672 | { |
| 673 | GTypeInterface parent_iface; |
| 674 | }; |
| 675 | |
| 676 | GType object_get_type (void) G_GNUC_CONST; |
| 677 | |
| 678 | SensorInteger *object_get_sensor_integer (Object *object); |
| 679 | SensorString *object_get_sensor_string (Object *object); |
| 680 | SensorIntegerSettable *object_get_sensor_integer_settable (Object *object); |
| 681 | SensorInteger *object_peek_sensor_integer (Object *object); |
| 682 | SensorString *object_peek_sensor_string (Object *object); |
| 683 | SensorIntegerSettable *object_peek_sensor_integer_settable (Object *object); |
| 684 | |
| 685 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 686 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 687 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 688 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 689 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 690 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 691 | |
| 692 | typedef struct _ObjectProxy ObjectProxy; |
| 693 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 694 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 695 | |
| 696 | struct _ObjectProxy |
| 697 | { |
| 698 | /*< private >*/ |
| 699 | GDBusObjectProxy parent_instance; |
| 700 | ObjectProxyPrivate *priv; |
| 701 | }; |
| 702 | |
| 703 | struct _ObjectProxyClass |
| 704 | { |
| 705 | GDBusObjectProxyClass parent_class; |
| 706 | }; |
| 707 | |
| 708 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 709 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 710 | |
| 711 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 712 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 713 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 714 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 715 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 716 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 717 | |
| 718 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 719 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 720 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 721 | |
| 722 | struct _ObjectSkeleton |
| 723 | { |
| 724 | /*< private >*/ |
| 725 | GDBusObjectSkeleton parent_instance; |
| 726 | ObjectSkeletonPrivate *priv; |
| 727 | }; |
| 728 | |
| 729 | struct _ObjectSkeletonClass |
| 730 | { |
| 731 | GDBusObjectSkeletonClass parent_class; |
| 732 | }; |
| 733 | |
| 734 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 735 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 736 | void object_skeleton_set_sensor_integer (ObjectSkeleton *object, SensorInteger *interface_); |
| 737 | void object_skeleton_set_sensor_string (ObjectSkeleton *object, SensorString *interface_); |
| 738 | void object_skeleton_set_sensor_integer_settable (ObjectSkeleton *object, SensorIntegerSettable *interface_); |
| 739 | |
| 740 | /* ---- */ |
| 741 | |
| 742 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 743 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 744 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 745 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 746 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 747 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 748 | |
| 749 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 750 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 751 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 752 | |
| 753 | struct _ObjectManagerClient |
| 754 | { |
| 755 | /*< private >*/ |
| 756 | GDBusObjectManagerClient parent_instance; |
| 757 | ObjectManagerClientPrivate *priv; |
| 758 | }; |
| 759 | |
| 760 | struct _ObjectManagerClientClass |
| 761 | { |
| 762 | GDBusObjectManagerClientClass parent_class; |
| 763 | }; |
| 764 | |
| 765 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 766 | |
| 767 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 768 | |
| 769 | void object_manager_client_new ( |
| 770 | GDBusConnection *connection, |
| 771 | GDBusObjectManagerClientFlags flags, |
| 772 | const gchar *name, |
| 773 | const gchar *object_path, |
| 774 | GCancellable *cancellable, |
| 775 | GAsyncReadyCallback callback, |
| 776 | gpointer user_data); |
| 777 | GDBusObjectManager *object_manager_client_new_finish ( |
| 778 | GAsyncResult *res, |
| 779 | GError **error); |
| 780 | GDBusObjectManager *object_manager_client_new_sync ( |
| 781 | GDBusConnection *connection, |
| 782 | GDBusObjectManagerClientFlags flags, |
| 783 | const gchar *name, |
| 784 | const gchar *object_path, |
| 785 | GCancellable *cancellable, |
| 786 | GError **error); |
| 787 | |
| 788 | void object_manager_client_new_for_bus ( |
| 789 | GBusType bus_type, |
| 790 | GDBusObjectManagerClientFlags flags, |
| 791 | const gchar *name, |
| 792 | const gchar *object_path, |
| 793 | GCancellable *cancellable, |
| 794 | GAsyncReadyCallback callback, |
| 795 | gpointer user_data); |
| 796 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 797 | GAsyncResult *res, |
| 798 | GError **error); |
| 799 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 800 | GBusType bus_type, |
| 801 | GDBusObjectManagerClientFlags flags, |
| 802 | const gchar *name, |
| 803 | const gchar *object_path, |
| 804 | GCancellable *cancellable, |
| 805 | GError **error); |
| 806 | |
| 807 | |
| 808 | G_END_DECLS |
| 809 | |
| 810 | #endif /* __INTERFACES_SENSOR_H__ */ |