Norman James | 362a80f | 2015-09-14 14:04:39 -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_OPENBMC_INTF_H__ |
| 8 | #define __INTERFACES_OPENBMC_INTF_H__ |
| 9 | |
| 10 | #include <gio/gio.h> |
| 11 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
| 14 | |
| 15 | /* ------------------------------------------------------------------------ */ |
| 16 | /* Declarations for org.openbmc.Occ */ |
| 17 | |
| 18 | #define TYPE_OCC (occ_get_type ()) |
| 19 | #define OCC(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OCC, Occ)) |
| 20 | #define IS_OCC(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OCC)) |
| 21 | #define OCC_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OCC, OccIface)) |
| 22 | |
| 23 | struct _Occ; |
| 24 | typedef struct _Occ Occ; |
| 25 | typedef struct _OccIface OccIface; |
| 26 | |
| 27 | struct _OccIface |
| 28 | { |
| 29 | GTypeInterface parent_iface; |
| 30 | |
| 31 | |
| 32 | gboolean (*handle_collect) ( |
| 33 | Occ *object, |
| 34 | GDBusMethodInvocation *invocation); |
| 35 | |
| 36 | gboolean (*handle_init) ( |
| 37 | Occ *object, |
| 38 | GDBusMethodInvocation *invocation); |
| 39 | |
| 40 | gint (*get_poll_interval) (Occ *object); |
| 41 | |
| 42 | const gchar * (*get_state) (Occ *object); |
| 43 | |
| 44 | }; |
| 45 | |
| 46 | GType occ_get_type (void) G_GNUC_CONST; |
| 47 | |
| 48 | GDBusInterfaceInfo *occ_interface_info (void); |
| 49 | guint occ_override_properties (GObjectClass *klass, guint property_id_begin); |
| 50 | |
| 51 | |
| 52 | /* D-Bus method call completion functions: */ |
| 53 | void occ_complete_init ( |
| 54 | Occ *object, |
| 55 | GDBusMethodInvocation *invocation); |
| 56 | |
| 57 | void occ_complete_collect ( |
| 58 | Occ *object, |
| 59 | GDBusMethodInvocation *invocation); |
| 60 | |
| 61 | |
| 62 | |
| 63 | /* D-Bus method calls: */ |
| 64 | void occ_call_init ( |
| 65 | Occ *proxy, |
| 66 | GCancellable *cancellable, |
| 67 | GAsyncReadyCallback callback, |
| 68 | gpointer user_data); |
| 69 | |
| 70 | gboolean occ_call_init_finish ( |
| 71 | Occ *proxy, |
| 72 | GAsyncResult *res, |
| 73 | GError **error); |
| 74 | |
| 75 | gboolean occ_call_init_sync ( |
| 76 | Occ *proxy, |
| 77 | GCancellable *cancellable, |
| 78 | GError **error); |
| 79 | |
| 80 | void occ_call_collect ( |
| 81 | Occ *proxy, |
| 82 | GCancellable *cancellable, |
| 83 | GAsyncReadyCallback callback, |
| 84 | gpointer user_data); |
| 85 | |
| 86 | gboolean occ_call_collect_finish ( |
| 87 | Occ *proxy, |
| 88 | GAsyncResult *res, |
| 89 | GError **error); |
| 90 | |
| 91 | gboolean occ_call_collect_sync ( |
| 92 | Occ *proxy, |
| 93 | GCancellable *cancellable, |
| 94 | GError **error); |
| 95 | |
| 96 | |
| 97 | |
| 98 | /* D-Bus property accessors: */ |
| 99 | const gchar *occ_get_state (Occ *object); |
| 100 | gchar *occ_dup_state (Occ *object); |
| 101 | void occ_set_state (Occ *object, const gchar *value); |
| 102 | |
| 103 | gint occ_get_poll_interval (Occ *object); |
| 104 | void occ_set_poll_interval (Occ *object, gint value); |
| 105 | |
| 106 | |
| 107 | /* ---- */ |
| 108 | |
| 109 | #define TYPE_OCC_PROXY (occ_proxy_get_type ()) |
| 110 | #define OCC_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OCC_PROXY, OccProxy)) |
| 111 | #define OCC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OCC_PROXY, OccProxyClass)) |
| 112 | #define OCC_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OCC_PROXY, OccProxyClass)) |
| 113 | #define IS_OCC_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OCC_PROXY)) |
| 114 | #define IS_OCC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OCC_PROXY)) |
| 115 | |
| 116 | typedef struct _OccProxy OccProxy; |
| 117 | typedef struct _OccProxyClass OccProxyClass; |
| 118 | typedef struct _OccProxyPrivate OccProxyPrivate; |
| 119 | |
| 120 | struct _OccProxy |
| 121 | { |
| 122 | /*< private >*/ |
| 123 | GDBusProxy parent_instance; |
| 124 | OccProxyPrivate *priv; |
| 125 | }; |
| 126 | |
| 127 | struct _OccProxyClass |
| 128 | { |
| 129 | GDBusProxyClass parent_class; |
| 130 | }; |
| 131 | |
| 132 | GType occ_proxy_get_type (void) G_GNUC_CONST; |
| 133 | |
| 134 | void occ_proxy_new ( |
| 135 | GDBusConnection *connection, |
| 136 | GDBusProxyFlags flags, |
| 137 | const gchar *name, |
| 138 | const gchar *object_path, |
| 139 | GCancellable *cancellable, |
| 140 | GAsyncReadyCallback callback, |
| 141 | gpointer user_data); |
| 142 | Occ *occ_proxy_new_finish ( |
| 143 | GAsyncResult *res, |
| 144 | GError **error); |
| 145 | Occ *occ_proxy_new_sync ( |
| 146 | GDBusConnection *connection, |
| 147 | GDBusProxyFlags flags, |
| 148 | const gchar *name, |
| 149 | const gchar *object_path, |
| 150 | GCancellable *cancellable, |
| 151 | GError **error); |
| 152 | |
| 153 | void occ_proxy_new_for_bus ( |
| 154 | GBusType bus_type, |
| 155 | GDBusProxyFlags flags, |
| 156 | const gchar *name, |
| 157 | const gchar *object_path, |
| 158 | GCancellable *cancellable, |
| 159 | GAsyncReadyCallback callback, |
| 160 | gpointer user_data); |
| 161 | Occ *occ_proxy_new_for_bus_finish ( |
| 162 | GAsyncResult *res, |
| 163 | GError **error); |
| 164 | Occ *occ_proxy_new_for_bus_sync ( |
| 165 | GBusType bus_type, |
| 166 | GDBusProxyFlags flags, |
| 167 | const gchar *name, |
| 168 | const gchar *object_path, |
| 169 | GCancellable *cancellable, |
| 170 | GError **error); |
| 171 | |
| 172 | |
| 173 | /* ---- */ |
| 174 | |
| 175 | #define TYPE_OCC_SKELETON (occ_skeleton_get_type ()) |
| 176 | #define OCC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OCC_SKELETON, OccSkeleton)) |
| 177 | #define OCC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OCC_SKELETON, OccSkeletonClass)) |
| 178 | #define OCC_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OCC_SKELETON, OccSkeletonClass)) |
| 179 | #define IS_OCC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OCC_SKELETON)) |
| 180 | #define IS_OCC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OCC_SKELETON)) |
| 181 | |
| 182 | typedef struct _OccSkeleton OccSkeleton; |
| 183 | typedef struct _OccSkeletonClass OccSkeletonClass; |
| 184 | typedef struct _OccSkeletonPrivate OccSkeletonPrivate; |
| 185 | |
| 186 | struct _OccSkeleton |
| 187 | { |
| 188 | /*< private >*/ |
| 189 | GDBusInterfaceSkeleton parent_instance; |
| 190 | OccSkeletonPrivate *priv; |
| 191 | }; |
| 192 | |
| 193 | struct _OccSkeletonClass |
| 194 | { |
| 195 | GDBusInterfaceSkeletonClass parent_class; |
| 196 | }; |
| 197 | |
| 198 | GType occ_skeleton_get_type (void) G_GNUC_CONST; |
| 199 | |
| 200 | Occ *occ_skeleton_new (void); |
| 201 | |
| 202 | |
| 203 | /* ------------------------------------------------------------------------ */ |
| 204 | /* Declarations for org.openbmc.Fan */ |
| 205 | |
| 206 | #define TYPE_FAN (fan_get_type ()) |
| 207 | #define FAN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN, Fan)) |
| 208 | #define IS_FAN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN)) |
| 209 | #define FAN_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FAN, FanIface)) |
| 210 | |
| 211 | struct _Fan; |
| 212 | typedef struct _Fan Fan; |
| 213 | typedef struct _FanIface FanIface; |
| 214 | |
| 215 | struct _FanIface |
| 216 | { |
| 217 | GTypeInterface parent_iface; |
| 218 | |
| 219 | |
| 220 | |
| 221 | gboolean (*handle_get_speed) ( |
| 222 | Fan *object, |
| 223 | GDBusMethodInvocation *invocation); |
| 224 | |
| 225 | gboolean (*handle_set_cooling_zone) ( |
| 226 | Fan *object, |
| 227 | GDBusMethodInvocation *invocation, |
| 228 | gint arg_cooling_zone); |
| 229 | |
| 230 | gboolean (*handle_set_speed) ( |
| 231 | Fan *object, |
| 232 | GDBusMethodInvocation *invocation, |
| 233 | gint arg_speed); |
| 234 | |
| 235 | gint (*get_cooling_zone) (Fan *object); |
| 236 | |
| 237 | gint (*get_pwm_num) (Fan *object); |
| 238 | |
| 239 | gint (*get_speed) (Fan *object); |
| 240 | |
| 241 | void (*speed_changed) ( |
| 242 | Fan *object, |
| 243 | gint arg_speed); |
| 244 | |
| 245 | void (*tach_error) ( |
| 246 | Fan *object); |
| 247 | |
| 248 | }; |
| 249 | |
| 250 | GType fan_get_type (void) G_GNUC_CONST; |
| 251 | |
| 252 | GDBusInterfaceInfo *fan_interface_info (void); |
| 253 | guint fan_override_properties (GObjectClass *klass, guint property_id_begin); |
| 254 | |
| 255 | |
| 256 | /* D-Bus method call completion functions: */ |
| 257 | void fan_complete_set_cooling_zone ( |
| 258 | Fan *object, |
| 259 | GDBusMethodInvocation *invocation); |
| 260 | |
| 261 | void fan_complete_get_speed ( |
| 262 | Fan *object, |
| 263 | GDBusMethodInvocation *invocation, |
| 264 | gint speed); |
| 265 | |
| 266 | void fan_complete_set_speed ( |
| 267 | Fan *object, |
| 268 | GDBusMethodInvocation *invocation); |
| 269 | |
| 270 | |
| 271 | |
| 272 | /* D-Bus signal emissions functions: */ |
| 273 | void fan_emit_speed_changed ( |
| 274 | Fan *object, |
| 275 | gint arg_speed); |
| 276 | |
| 277 | void fan_emit_tach_error ( |
| 278 | Fan *object); |
| 279 | |
| 280 | |
| 281 | |
| 282 | /* D-Bus method calls: */ |
| 283 | void fan_call_set_cooling_zone ( |
| 284 | Fan *proxy, |
| 285 | gint arg_cooling_zone, |
| 286 | GCancellable *cancellable, |
| 287 | GAsyncReadyCallback callback, |
| 288 | gpointer user_data); |
| 289 | |
| 290 | gboolean fan_call_set_cooling_zone_finish ( |
| 291 | Fan *proxy, |
| 292 | GAsyncResult *res, |
| 293 | GError **error); |
| 294 | |
| 295 | gboolean fan_call_set_cooling_zone_sync ( |
| 296 | Fan *proxy, |
| 297 | gint arg_cooling_zone, |
| 298 | GCancellable *cancellable, |
| 299 | GError **error); |
| 300 | |
| 301 | void fan_call_get_speed ( |
| 302 | Fan *proxy, |
| 303 | GCancellable *cancellable, |
| 304 | GAsyncReadyCallback callback, |
| 305 | gpointer user_data); |
| 306 | |
| 307 | gboolean fan_call_get_speed_finish ( |
| 308 | Fan *proxy, |
| 309 | gint *out_speed, |
| 310 | GAsyncResult *res, |
| 311 | GError **error); |
| 312 | |
| 313 | gboolean fan_call_get_speed_sync ( |
| 314 | Fan *proxy, |
| 315 | gint *out_speed, |
| 316 | GCancellable *cancellable, |
| 317 | GError **error); |
| 318 | |
| 319 | void fan_call_set_speed ( |
| 320 | Fan *proxy, |
| 321 | gint arg_speed, |
| 322 | GCancellable *cancellable, |
| 323 | GAsyncReadyCallback callback, |
| 324 | gpointer user_data); |
| 325 | |
| 326 | gboolean fan_call_set_speed_finish ( |
| 327 | Fan *proxy, |
| 328 | GAsyncResult *res, |
| 329 | GError **error); |
| 330 | |
| 331 | gboolean fan_call_set_speed_sync ( |
| 332 | Fan *proxy, |
| 333 | gint arg_speed, |
| 334 | GCancellable *cancellable, |
| 335 | GError **error); |
| 336 | |
| 337 | |
| 338 | |
| 339 | /* D-Bus property accessors: */ |
| 340 | gint fan_get_speed (Fan *object); |
| 341 | void fan_set_speed (Fan *object, gint value); |
| 342 | |
| 343 | gint fan_get_cooling_zone (Fan *object); |
| 344 | void fan_set_cooling_zone (Fan *object, gint value); |
| 345 | |
| 346 | gint fan_get_pwm_num (Fan *object); |
| 347 | void fan_set_pwm_num (Fan *object, gint value); |
| 348 | |
| 349 | |
| 350 | /* ---- */ |
| 351 | |
| 352 | #define TYPE_FAN_PROXY (fan_proxy_get_type ()) |
| 353 | #define FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN_PROXY, FanProxy)) |
| 354 | #define FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FAN_PROXY, FanProxyClass)) |
| 355 | #define FAN_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FAN_PROXY, FanProxyClass)) |
| 356 | #define IS_FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN_PROXY)) |
| 357 | #define IS_FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FAN_PROXY)) |
| 358 | |
| 359 | typedef struct _FanProxy FanProxy; |
| 360 | typedef struct _FanProxyClass FanProxyClass; |
| 361 | typedef struct _FanProxyPrivate FanProxyPrivate; |
| 362 | |
| 363 | struct _FanProxy |
| 364 | { |
| 365 | /*< private >*/ |
| 366 | GDBusProxy parent_instance; |
| 367 | FanProxyPrivate *priv; |
| 368 | }; |
| 369 | |
| 370 | struct _FanProxyClass |
| 371 | { |
| 372 | GDBusProxyClass parent_class; |
| 373 | }; |
| 374 | |
| 375 | GType fan_proxy_get_type (void) G_GNUC_CONST; |
| 376 | |
| 377 | void fan_proxy_new ( |
| 378 | GDBusConnection *connection, |
| 379 | GDBusProxyFlags flags, |
| 380 | const gchar *name, |
| 381 | const gchar *object_path, |
| 382 | GCancellable *cancellable, |
| 383 | GAsyncReadyCallback callback, |
| 384 | gpointer user_data); |
| 385 | Fan *fan_proxy_new_finish ( |
| 386 | GAsyncResult *res, |
| 387 | GError **error); |
| 388 | Fan *fan_proxy_new_sync ( |
| 389 | GDBusConnection *connection, |
| 390 | GDBusProxyFlags flags, |
| 391 | const gchar *name, |
| 392 | const gchar *object_path, |
| 393 | GCancellable *cancellable, |
| 394 | GError **error); |
| 395 | |
| 396 | void fan_proxy_new_for_bus ( |
| 397 | GBusType bus_type, |
| 398 | GDBusProxyFlags flags, |
| 399 | const gchar *name, |
| 400 | const gchar *object_path, |
| 401 | GCancellable *cancellable, |
| 402 | GAsyncReadyCallback callback, |
| 403 | gpointer user_data); |
| 404 | Fan *fan_proxy_new_for_bus_finish ( |
| 405 | GAsyncResult *res, |
| 406 | GError **error); |
| 407 | Fan *fan_proxy_new_for_bus_sync ( |
| 408 | GBusType bus_type, |
| 409 | GDBusProxyFlags flags, |
| 410 | const gchar *name, |
| 411 | const gchar *object_path, |
| 412 | GCancellable *cancellable, |
| 413 | GError **error); |
| 414 | |
| 415 | |
| 416 | /* ---- */ |
| 417 | |
| 418 | #define TYPE_FAN_SKELETON (fan_skeleton_get_type ()) |
| 419 | #define FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN_SKELETON, FanSkeleton)) |
| 420 | #define FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FAN_SKELETON, FanSkeletonClass)) |
| 421 | #define FAN_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FAN_SKELETON, FanSkeletonClass)) |
| 422 | #define IS_FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN_SKELETON)) |
| 423 | #define IS_FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FAN_SKELETON)) |
| 424 | |
| 425 | typedef struct _FanSkeleton FanSkeleton; |
| 426 | typedef struct _FanSkeletonClass FanSkeletonClass; |
| 427 | typedef struct _FanSkeletonPrivate FanSkeletonPrivate; |
| 428 | |
| 429 | struct _FanSkeleton |
| 430 | { |
| 431 | /*< private >*/ |
| 432 | GDBusInterfaceSkeleton parent_instance; |
| 433 | FanSkeletonPrivate *priv; |
| 434 | }; |
| 435 | |
| 436 | struct _FanSkeletonClass |
| 437 | { |
| 438 | GDBusInterfaceSkeletonClass parent_class; |
| 439 | }; |
| 440 | |
| 441 | GType fan_skeleton_get_type (void) G_GNUC_CONST; |
| 442 | |
| 443 | Fan *fan_skeleton_new (void); |
| 444 | |
| 445 | |
| 446 | /* ------------------------------------------------------------------------ */ |
| 447 | /* Declarations for org.openbmc.SensorValue */ |
| 448 | |
| 449 | #define TYPE_SENSOR_VALUE (sensor_value_get_type ()) |
| 450 | #define SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE, SensorValue)) |
| 451 | #define IS_SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE)) |
| 452 | #define SENSOR_VALUE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_VALUE, SensorValueIface)) |
| 453 | |
| 454 | struct _SensorValue; |
| 455 | typedef struct _SensorValue SensorValue; |
| 456 | typedef struct _SensorValueIface SensorValueIface; |
| 457 | |
| 458 | struct _SensorValueIface |
| 459 | { |
| 460 | GTypeInterface parent_iface; |
| 461 | |
| 462 | |
| 463 | |
| 464 | gboolean (*handle_get_value) ( |
| 465 | SensorValue *object, |
| 466 | GDBusMethodInvocation *invocation); |
| 467 | |
| 468 | gboolean (*handle_init) ( |
| 469 | SensorValue *object, |
| 470 | GDBusMethodInvocation *invocation); |
| 471 | |
| 472 | gboolean (*handle_set_value) ( |
| 473 | SensorValue *object, |
| 474 | GDBusMethodInvocation *invocation, |
| 475 | GVariant *arg_value); |
| 476 | |
| 477 | gint (*get_heatbeat) (SensorValue *object); |
| 478 | |
| 479 | guchar (*get_ipmi_entity_id) (SensorValue *object); |
| 480 | |
| 481 | guchar (*get_ipmi_id) (SensorValue *object); |
| 482 | |
| 483 | gint (*get_poll_interval) (SensorValue *object); |
| 484 | |
| 485 | gboolean (*get_settable) (SensorValue *object); |
| 486 | |
| 487 | const gchar * (*get_units) (SensorValue *object); |
| 488 | |
| 489 | GVariant * (*get_value) (SensorValue *object); |
| 490 | |
| 491 | void (*changed) ( |
| 492 | SensorValue *object, |
| 493 | GVariant *arg_value, |
| 494 | const gchar *arg_units); |
| 495 | |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 496 | void (*error) ( |
| 497 | SensorValue *object); |
| 498 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 499 | void (*heartbeat) ( |
| 500 | SensorValue *object, |
| 501 | const gchar *arg_bus_name); |
| 502 | |
| 503 | }; |
| 504 | |
| 505 | GType sensor_value_get_type (void) G_GNUC_CONST; |
| 506 | |
| 507 | GDBusInterfaceInfo *sensor_value_interface_info (void); |
| 508 | guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin); |
| 509 | |
| 510 | |
| 511 | /* D-Bus method call completion functions: */ |
| 512 | void sensor_value_complete_init ( |
| 513 | SensorValue *object, |
| 514 | GDBusMethodInvocation *invocation); |
| 515 | |
| 516 | void sensor_value_complete_get_value ( |
| 517 | SensorValue *object, |
| 518 | GDBusMethodInvocation *invocation, |
| 519 | GVariant *value); |
| 520 | |
| 521 | void sensor_value_complete_set_value ( |
| 522 | SensorValue *object, |
| 523 | GDBusMethodInvocation *invocation); |
| 524 | |
| 525 | |
| 526 | |
| 527 | /* D-Bus signal emissions functions: */ |
| 528 | void sensor_value_emit_changed ( |
| 529 | SensorValue *object, |
| 530 | GVariant *arg_value, |
| 531 | const gchar *arg_units); |
| 532 | |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 533 | void sensor_value_emit_error ( |
| 534 | SensorValue *object); |
| 535 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 536 | void sensor_value_emit_heartbeat ( |
| 537 | SensorValue *object, |
| 538 | const gchar *arg_bus_name); |
| 539 | |
| 540 | |
| 541 | |
| 542 | /* D-Bus method calls: */ |
| 543 | void sensor_value_call_init ( |
| 544 | SensorValue *proxy, |
| 545 | GCancellable *cancellable, |
| 546 | GAsyncReadyCallback callback, |
| 547 | gpointer user_data); |
| 548 | |
| 549 | gboolean sensor_value_call_init_finish ( |
| 550 | SensorValue *proxy, |
| 551 | GAsyncResult *res, |
| 552 | GError **error); |
| 553 | |
| 554 | gboolean sensor_value_call_init_sync ( |
| 555 | SensorValue *proxy, |
| 556 | GCancellable *cancellable, |
| 557 | GError **error); |
| 558 | |
| 559 | void sensor_value_call_get_value ( |
| 560 | SensorValue *proxy, |
| 561 | GCancellable *cancellable, |
| 562 | GAsyncReadyCallback callback, |
| 563 | gpointer user_data); |
| 564 | |
| 565 | gboolean sensor_value_call_get_value_finish ( |
| 566 | SensorValue *proxy, |
| 567 | GVariant **out_value, |
| 568 | GAsyncResult *res, |
| 569 | GError **error); |
| 570 | |
| 571 | gboolean sensor_value_call_get_value_sync ( |
| 572 | SensorValue *proxy, |
| 573 | GVariant **out_value, |
| 574 | GCancellable *cancellable, |
| 575 | GError **error); |
| 576 | |
| 577 | void sensor_value_call_set_value ( |
| 578 | SensorValue *proxy, |
| 579 | GVariant *arg_value, |
| 580 | GCancellable *cancellable, |
| 581 | GAsyncReadyCallback callback, |
| 582 | gpointer user_data); |
| 583 | |
| 584 | gboolean sensor_value_call_set_value_finish ( |
| 585 | SensorValue *proxy, |
| 586 | GAsyncResult *res, |
| 587 | GError **error); |
| 588 | |
| 589 | gboolean sensor_value_call_set_value_sync ( |
| 590 | SensorValue *proxy, |
| 591 | GVariant *arg_value, |
| 592 | GCancellable *cancellable, |
| 593 | GError **error); |
| 594 | |
| 595 | |
| 596 | |
| 597 | /* D-Bus property accessors: */ |
| 598 | GVariant *sensor_value_get_value (SensorValue *object); |
| 599 | GVariant *sensor_value_dup_value (SensorValue *object); |
| 600 | void sensor_value_set_value (SensorValue *object, GVariant *value); |
| 601 | |
| 602 | const gchar *sensor_value_get_units (SensorValue *object); |
| 603 | gchar *sensor_value_dup_units (SensorValue *object); |
| 604 | void sensor_value_set_units (SensorValue *object, const gchar *value); |
| 605 | |
| 606 | gint sensor_value_get_poll_interval (SensorValue *object); |
| 607 | void sensor_value_set_poll_interval (SensorValue *object, gint value); |
| 608 | |
| 609 | gint sensor_value_get_heatbeat (SensorValue *object); |
| 610 | void sensor_value_set_heatbeat (SensorValue *object, gint value); |
| 611 | |
| 612 | gboolean sensor_value_get_settable (SensorValue *object); |
| 613 | void sensor_value_set_settable (SensorValue *object, gboolean value); |
| 614 | |
| 615 | guchar sensor_value_get_ipmi_entity_id (SensorValue *object); |
| 616 | void sensor_value_set_ipmi_entity_id (SensorValue *object, guchar value); |
| 617 | |
| 618 | guchar sensor_value_get_ipmi_id (SensorValue *object); |
| 619 | void sensor_value_set_ipmi_id (SensorValue *object, guchar value); |
| 620 | |
| 621 | |
| 622 | /* ---- */ |
| 623 | |
| 624 | #define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ()) |
| 625 | #define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy)) |
| 626 | #define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| 627 | #define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| 628 | #define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY)) |
| 629 | #define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY)) |
| 630 | |
| 631 | typedef struct _SensorValueProxy SensorValueProxy; |
| 632 | typedef struct _SensorValueProxyClass SensorValueProxyClass; |
| 633 | typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate; |
| 634 | |
| 635 | struct _SensorValueProxy |
| 636 | { |
| 637 | /*< private >*/ |
| 638 | GDBusProxy parent_instance; |
| 639 | SensorValueProxyPrivate *priv; |
| 640 | }; |
| 641 | |
| 642 | struct _SensorValueProxyClass |
| 643 | { |
| 644 | GDBusProxyClass parent_class; |
| 645 | }; |
| 646 | |
| 647 | GType sensor_value_proxy_get_type (void) G_GNUC_CONST; |
| 648 | |
| 649 | void sensor_value_proxy_new ( |
| 650 | GDBusConnection *connection, |
| 651 | GDBusProxyFlags flags, |
| 652 | const gchar *name, |
| 653 | const gchar *object_path, |
| 654 | GCancellable *cancellable, |
| 655 | GAsyncReadyCallback callback, |
| 656 | gpointer user_data); |
| 657 | SensorValue *sensor_value_proxy_new_finish ( |
| 658 | GAsyncResult *res, |
| 659 | GError **error); |
| 660 | SensorValue *sensor_value_proxy_new_sync ( |
| 661 | GDBusConnection *connection, |
| 662 | GDBusProxyFlags flags, |
| 663 | const gchar *name, |
| 664 | const gchar *object_path, |
| 665 | GCancellable *cancellable, |
| 666 | GError **error); |
| 667 | |
| 668 | void sensor_value_proxy_new_for_bus ( |
| 669 | GBusType bus_type, |
| 670 | GDBusProxyFlags flags, |
| 671 | const gchar *name, |
| 672 | const gchar *object_path, |
| 673 | GCancellable *cancellable, |
| 674 | GAsyncReadyCallback callback, |
| 675 | gpointer user_data); |
| 676 | SensorValue *sensor_value_proxy_new_for_bus_finish ( |
| 677 | GAsyncResult *res, |
| 678 | GError **error); |
| 679 | SensorValue *sensor_value_proxy_new_for_bus_sync ( |
| 680 | GBusType bus_type, |
| 681 | GDBusProxyFlags flags, |
| 682 | const gchar *name, |
| 683 | const gchar *object_path, |
| 684 | GCancellable *cancellable, |
| 685 | GError **error); |
| 686 | |
| 687 | |
| 688 | /* ---- */ |
| 689 | |
| 690 | #define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ()) |
| 691 | #define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton)) |
| 692 | #define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| 693 | #define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| 694 | #define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON)) |
| 695 | #define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON)) |
| 696 | |
| 697 | typedef struct _SensorValueSkeleton SensorValueSkeleton; |
| 698 | typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass; |
| 699 | typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate; |
| 700 | |
| 701 | struct _SensorValueSkeleton |
| 702 | { |
| 703 | /*< private >*/ |
| 704 | GDBusInterfaceSkeleton parent_instance; |
| 705 | SensorValueSkeletonPrivate *priv; |
| 706 | }; |
| 707 | |
| 708 | struct _SensorValueSkeletonClass |
| 709 | { |
| 710 | GDBusInterfaceSkeletonClass parent_class; |
| 711 | }; |
| 712 | |
| 713 | GType sensor_value_skeleton_get_type (void) G_GNUC_CONST; |
| 714 | |
| 715 | SensorValue *sensor_value_skeleton_new (void); |
| 716 | |
| 717 | |
| 718 | /* ------------------------------------------------------------------------ */ |
| 719 | /* Declarations for org.openbmc.SensorThreshold */ |
| 720 | |
| 721 | #define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ()) |
| 722 | #define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold)) |
| 723 | #define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD)) |
| 724 | #define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface)) |
| 725 | |
| 726 | struct _SensorThreshold; |
| 727 | typedef struct _SensorThreshold SensorThreshold; |
| 728 | typedef struct _SensorThresholdIface SensorThresholdIface; |
| 729 | |
| 730 | struct _SensorThresholdIface |
| 731 | { |
| 732 | GTypeInterface parent_iface; |
| 733 | |
| 734 | |
| 735 | |
| 736 | gboolean (*handle_get_state) ( |
| 737 | SensorThreshold *object, |
| 738 | GDBusMethodInvocation *invocation); |
| 739 | |
| 740 | GVariant * (*get_lower_critical) (SensorThreshold *object); |
| 741 | |
| 742 | GVariant * (*get_lower_warning) (SensorThreshold *object); |
| 743 | |
| 744 | guchar (*get_state) (SensorThreshold *object); |
| 745 | |
| 746 | GVariant * (*get_upper_critical) (SensorThreshold *object); |
| 747 | |
| 748 | GVariant * (*get_upper_warning) (SensorThreshold *object); |
| 749 | |
| 750 | void (*critical) ( |
| 751 | SensorThreshold *object); |
| 752 | |
| 753 | void (*normal) ( |
| 754 | SensorThreshold *object); |
| 755 | |
| 756 | void (*warning) ( |
| 757 | SensorThreshold *object); |
| 758 | |
| 759 | }; |
| 760 | |
| 761 | GType sensor_threshold_get_type (void) G_GNUC_CONST; |
| 762 | |
| 763 | GDBusInterfaceInfo *sensor_threshold_interface_info (void); |
| 764 | guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin); |
| 765 | |
| 766 | |
| 767 | /* D-Bus method call completion functions: */ |
| 768 | void sensor_threshold_complete_get_state ( |
| 769 | SensorThreshold *object, |
| 770 | GDBusMethodInvocation *invocation, |
| 771 | guchar state); |
| 772 | |
| 773 | |
| 774 | |
| 775 | /* D-Bus signal emissions functions: */ |
| 776 | void sensor_threshold_emit_warning ( |
| 777 | SensorThreshold *object); |
| 778 | |
| 779 | void sensor_threshold_emit_critical ( |
| 780 | SensorThreshold *object); |
| 781 | |
| 782 | void sensor_threshold_emit_normal ( |
| 783 | SensorThreshold *object); |
| 784 | |
| 785 | |
| 786 | |
| 787 | /* D-Bus method calls: */ |
| 788 | void sensor_threshold_call_get_state ( |
| 789 | SensorThreshold *proxy, |
| 790 | GCancellable *cancellable, |
| 791 | GAsyncReadyCallback callback, |
| 792 | gpointer user_data); |
| 793 | |
| 794 | gboolean sensor_threshold_call_get_state_finish ( |
| 795 | SensorThreshold *proxy, |
| 796 | guchar *out_state, |
| 797 | GAsyncResult *res, |
| 798 | GError **error); |
| 799 | |
| 800 | gboolean sensor_threshold_call_get_state_sync ( |
| 801 | SensorThreshold *proxy, |
| 802 | guchar *out_state, |
| 803 | GCancellable *cancellable, |
| 804 | GError **error); |
| 805 | |
| 806 | |
| 807 | |
| 808 | /* D-Bus property accessors: */ |
| 809 | GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object); |
| 810 | GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object); |
| 811 | void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value); |
| 812 | |
| 813 | GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object); |
| 814 | GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object); |
| 815 | void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value); |
| 816 | |
| 817 | GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object); |
| 818 | GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object); |
| 819 | void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value); |
| 820 | |
| 821 | GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object); |
| 822 | GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object); |
| 823 | void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value); |
| 824 | |
| 825 | guchar sensor_threshold_get_state (SensorThreshold *object); |
| 826 | void sensor_threshold_set_state (SensorThreshold *object, guchar value); |
| 827 | |
| 828 | |
| 829 | /* ---- */ |
| 830 | |
| 831 | #define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ()) |
| 832 | #define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy)) |
| 833 | #define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| 834 | #define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| 835 | #define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY)) |
| 836 | #define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY)) |
| 837 | |
| 838 | typedef struct _SensorThresholdProxy SensorThresholdProxy; |
| 839 | typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass; |
| 840 | typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate; |
| 841 | |
| 842 | struct _SensorThresholdProxy |
| 843 | { |
| 844 | /*< private >*/ |
| 845 | GDBusProxy parent_instance; |
| 846 | SensorThresholdProxyPrivate *priv; |
| 847 | }; |
| 848 | |
| 849 | struct _SensorThresholdProxyClass |
| 850 | { |
| 851 | GDBusProxyClass parent_class; |
| 852 | }; |
| 853 | |
| 854 | GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST; |
| 855 | |
| 856 | void sensor_threshold_proxy_new ( |
| 857 | GDBusConnection *connection, |
| 858 | GDBusProxyFlags flags, |
| 859 | const gchar *name, |
| 860 | const gchar *object_path, |
| 861 | GCancellable *cancellable, |
| 862 | GAsyncReadyCallback callback, |
| 863 | gpointer user_data); |
| 864 | SensorThreshold *sensor_threshold_proxy_new_finish ( |
| 865 | GAsyncResult *res, |
| 866 | GError **error); |
| 867 | SensorThreshold *sensor_threshold_proxy_new_sync ( |
| 868 | GDBusConnection *connection, |
| 869 | GDBusProxyFlags flags, |
| 870 | const gchar *name, |
| 871 | const gchar *object_path, |
| 872 | GCancellable *cancellable, |
| 873 | GError **error); |
| 874 | |
| 875 | void sensor_threshold_proxy_new_for_bus ( |
| 876 | GBusType bus_type, |
| 877 | GDBusProxyFlags flags, |
| 878 | const gchar *name, |
| 879 | const gchar *object_path, |
| 880 | GCancellable *cancellable, |
| 881 | GAsyncReadyCallback callback, |
| 882 | gpointer user_data); |
| 883 | SensorThreshold *sensor_threshold_proxy_new_for_bus_finish ( |
| 884 | GAsyncResult *res, |
| 885 | GError **error); |
| 886 | SensorThreshold *sensor_threshold_proxy_new_for_bus_sync ( |
| 887 | GBusType bus_type, |
| 888 | GDBusProxyFlags flags, |
| 889 | const gchar *name, |
| 890 | const gchar *object_path, |
| 891 | GCancellable *cancellable, |
| 892 | GError **error); |
| 893 | |
| 894 | |
| 895 | /* ---- */ |
| 896 | |
| 897 | #define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ()) |
| 898 | #define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton)) |
| 899 | #define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| 900 | #define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| 901 | #define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON)) |
| 902 | #define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON)) |
| 903 | |
| 904 | typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton; |
| 905 | typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass; |
| 906 | typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate; |
| 907 | |
| 908 | struct _SensorThresholdSkeleton |
| 909 | { |
| 910 | /*< private >*/ |
| 911 | GDBusInterfaceSkeleton parent_instance; |
| 912 | SensorThresholdSkeletonPrivate *priv; |
| 913 | }; |
| 914 | |
| 915 | struct _SensorThresholdSkeletonClass |
| 916 | { |
| 917 | GDBusInterfaceSkeletonClass parent_class; |
| 918 | }; |
| 919 | |
| 920 | GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST; |
| 921 | |
| 922 | SensorThreshold *sensor_threshold_skeleton_new (void); |
| 923 | |
| 924 | |
| 925 | /* ------------------------------------------------------------------------ */ |
| 926 | /* Declarations for org.openbmc.SensorI2c */ |
| 927 | |
| 928 | #define TYPE_SENSOR_I2C (sensor_i2c_get_type ()) |
| 929 | #define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c)) |
| 930 | #define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C)) |
| 931 | #define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface)) |
| 932 | |
| 933 | struct _SensorI2c; |
| 934 | typedef struct _SensorI2c SensorI2c; |
| 935 | typedef struct _SensorI2cIface SensorI2cIface; |
| 936 | |
| 937 | struct _SensorI2cIface |
| 938 | { |
| 939 | GTypeInterface parent_iface; |
| 940 | |
| 941 | const gchar * (*get_address) (SensorI2c *object); |
| 942 | |
| 943 | const gchar * (*get_dev_path) (SensorI2c *object); |
| 944 | |
| 945 | }; |
| 946 | |
| 947 | GType sensor_i2c_get_type (void) G_GNUC_CONST; |
| 948 | |
| 949 | GDBusInterfaceInfo *sensor_i2c_interface_info (void); |
| 950 | guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin); |
| 951 | |
| 952 | |
| 953 | /* D-Bus property accessors: */ |
| 954 | const gchar *sensor_i2c_get_dev_path (SensorI2c *object); |
| 955 | gchar *sensor_i2c_dup_dev_path (SensorI2c *object); |
| 956 | void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value); |
| 957 | |
| 958 | const gchar *sensor_i2c_get_address (SensorI2c *object); |
| 959 | gchar *sensor_i2c_dup_address (SensorI2c *object); |
| 960 | void sensor_i2c_set_address (SensorI2c *object, const gchar *value); |
| 961 | |
| 962 | |
| 963 | /* ---- */ |
| 964 | |
| 965 | #define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ()) |
| 966 | #define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy)) |
| 967 | #define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| 968 | #define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| 969 | #define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY)) |
| 970 | #define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY)) |
| 971 | |
| 972 | typedef struct _SensorI2cProxy SensorI2cProxy; |
| 973 | typedef struct _SensorI2cProxyClass SensorI2cProxyClass; |
| 974 | typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate; |
| 975 | |
| 976 | struct _SensorI2cProxy |
| 977 | { |
| 978 | /*< private >*/ |
| 979 | GDBusProxy parent_instance; |
| 980 | SensorI2cProxyPrivate *priv; |
| 981 | }; |
| 982 | |
| 983 | struct _SensorI2cProxyClass |
| 984 | { |
| 985 | GDBusProxyClass parent_class; |
| 986 | }; |
| 987 | |
| 988 | GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST; |
| 989 | |
| 990 | void sensor_i2c_proxy_new ( |
| 991 | GDBusConnection *connection, |
| 992 | GDBusProxyFlags flags, |
| 993 | const gchar *name, |
| 994 | const gchar *object_path, |
| 995 | GCancellable *cancellable, |
| 996 | GAsyncReadyCallback callback, |
| 997 | gpointer user_data); |
| 998 | SensorI2c *sensor_i2c_proxy_new_finish ( |
| 999 | GAsyncResult *res, |
| 1000 | GError **error); |
| 1001 | SensorI2c *sensor_i2c_proxy_new_sync ( |
| 1002 | GDBusConnection *connection, |
| 1003 | GDBusProxyFlags flags, |
| 1004 | const gchar *name, |
| 1005 | const gchar *object_path, |
| 1006 | GCancellable *cancellable, |
| 1007 | GError **error); |
| 1008 | |
| 1009 | void sensor_i2c_proxy_new_for_bus ( |
| 1010 | GBusType bus_type, |
| 1011 | GDBusProxyFlags flags, |
| 1012 | const gchar *name, |
| 1013 | const gchar *object_path, |
| 1014 | GCancellable *cancellable, |
| 1015 | GAsyncReadyCallback callback, |
| 1016 | gpointer user_data); |
| 1017 | SensorI2c *sensor_i2c_proxy_new_for_bus_finish ( |
| 1018 | GAsyncResult *res, |
| 1019 | GError **error); |
| 1020 | SensorI2c *sensor_i2c_proxy_new_for_bus_sync ( |
| 1021 | GBusType bus_type, |
| 1022 | GDBusProxyFlags flags, |
| 1023 | const gchar *name, |
| 1024 | const gchar *object_path, |
| 1025 | GCancellable *cancellable, |
| 1026 | GError **error); |
| 1027 | |
| 1028 | |
| 1029 | /* ---- */ |
| 1030 | |
| 1031 | #define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ()) |
| 1032 | #define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton)) |
| 1033 | #define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| 1034 | #define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| 1035 | #define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON)) |
| 1036 | #define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON)) |
| 1037 | |
| 1038 | typedef struct _SensorI2cSkeleton SensorI2cSkeleton; |
| 1039 | typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass; |
| 1040 | typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate; |
| 1041 | |
| 1042 | struct _SensorI2cSkeleton |
| 1043 | { |
| 1044 | /*< private >*/ |
| 1045 | GDBusInterfaceSkeleton parent_instance; |
| 1046 | SensorI2cSkeletonPrivate *priv; |
| 1047 | }; |
| 1048 | |
| 1049 | struct _SensorI2cSkeletonClass |
| 1050 | { |
| 1051 | GDBusInterfaceSkeletonClass parent_class; |
| 1052 | }; |
| 1053 | |
| 1054 | GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST; |
| 1055 | |
| 1056 | SensorI2c *sensor_i2c_skeleton_new (void); |
| 1057 | |
| 1058 | |
| 1059 | /* ------------------------------------------------------------------------ */ |
| 1060 | /* Declarations for org.openbmc.SensorMatch */ |
| 1061 | |
| 1062 | #define TYPE_SENSOR_MATCH (sensor_match_get_type ()) |
| 1063 | #define SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH, SensorMatch)) |
| 1064 | #define IS_SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH)) |
| 1065 | #define SENSOR_MATCH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_MATCH, SensorMatchIface)) |
| 1066 | |
| 1067 | struct _SensorMatch; |
| 1068 | typedef struct _SensorMatch SensorMatch; |
| 1069 | typedef struct _SensorMatchIface SensorMatchIface; |
| 1070 | |
| 1071 | struct _SensorMatchIface |
| 1072 | { |
| 1073 | GTypeInterface parent_iface; |
| 1074 | |
| 1075 | |
| 1076 | GVariant * (*get_match_value) (SensorMatch *object); |
| 1077 | |
| 1078 | guchar (*get_state) (SensorMatch *object); |
| 1079 | |
| 1080 | void (*sensor_match) ( |
| 1081 | SensorMatch *object, |
| 1082 | guchar arg_state); |
| 1083 | |
| 1084 | }; |
| 1085 | |
| 1086 | GType sensor_match_get_type (void) G_GNUC_CONST; |
| 1087 | |
| 1088 | GDBusInterfaceInfo *sensor_match_interface_info (void); |
| 1089 | guint sensor_match_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1090 | |
| 1091 | |
| 1092 | /* D-Bus signal emissions functions: */ |
| 1093 | void sensor_match_emit_sensor_match ( |
| 1094 | SensorMatch *object, |
| 1095 | guchar arg_state); |
| 1096 | |
| 1097 | |
| 1098 | |
| 1099 | /* D-Bus property accessors: */ |
| 1100 | GVariant *sensor_match_get_match_value (SensorMatch *object); |
| 1101 | GVariant *sensor_match_dup_match_value (SensorMatch *object); |
| 1102 | void sensor_match_set_match_value (SensorMatch *object, GVariant *value); |
| 1103 | |
| 1104 | guchar sensor_match_get_state (SensorMatch *object); |
| 1105 | void sensor_match_set_state (SensorMatch *object, guchar value); |
| 1106 | |
| 1107 | |
| 1108 | /* ---- */ |
| 1109 | |
| 1110 | #define TYPE_SENSOR_MATCH_PROXY (sensor_match_proxy_get_type ()) |
| 1111 | #define SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxy)) |
| 1112 | #define SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) |
| 1113 | #define SENSOR_MATCH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) |
| 1114 | #define IS_SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_PROXY)) |
| 1115 | #define IS_SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_PROXY)) |
| 1116 | |
| 1117 | typedef struct _SensorMatchProxy SensorMatchProxy; |
| 1118 | typedef struct _SensorMatchProxyClass SensorMatchProxyClass; |
| 1119 | typedef struct _SensorMatchProxyPrivate SensorMatchProxyPrivate; |
| 1120 | |
| 1121 | struct _SensorMatchProxy |
| 1122 | { |
| 1123 | /*< private >*/ |
| 1124 | GDBusProxy parent_instance; |
| 1125 | SensorMatchProxyPrivate *priv; |
| 1126 | }; |
| 1127 | |
| 1128 | struct _SensorMatchProxyClass |
| 1129 | { |
| 1130 | GDBusProxyClass parent_class; |
| 1131 | }; |
| 1132 | |
| 1133 | GType sensor_match_proxy_get_type (void) G_GNUC_CONST; |
| 1134 | |
| 1135 | void sensor_match_proxy_new ( |
| 1136 | GDBusConnection *connection, |
| 1137 | GDBusProxyFlags flags, |
| 1138 | const gchar *name, |
| 1139 | const gchar *object_path, |
| 1140 | GCancellable *cancellable, |
| 1141 | GAsyncReadyCallback callback, |
| 1142 | gpointer user_data); |
| 1143 | SensorMatch *sensor_match_proxy_new_finish ( |
| 1144 | GAsyncResult *res, |
| 1145 | GError **error); |
| 1146 | SensorMatch *sensor_match_proxy_new_sync ( |
| 1147 | GDBusConnection *connection, |
| 1148 | GDBusProxyFlags flags, |
| 1149 | const gchar *name, |
| 1150 | const gchar *object_path, |
| 1151 | GCancellable *cancellable, |
| 1152 | GError **error); |
| 1153 | |
| 1154 | void sensor_match_proxy_new_for_bus ( |
| 1155 | GBusType bus_type, |
| 1156 | GDBusProxyFlags flags, |
| 1157 | const gchar *name, |
| 1158 | const gchar *object_path, |
| 1159 | GCancellable *cancellable, |
| 1160 | GAsyncReadyCallback callback, |
| 1161 | gpointer user_data); |
| 1162 | SensorMatch *sensor_match_proxy_new_for_bus_finish ( |
| 1163 | GAsyncResult *res, |
| 1164 | GError **error); |
| 1165 | SensorMatch *sensor_match_proxy_new_for_bus_sync ( |
| 1166 | GBusType bus_type, |
| 1167 | GDBusProxyFlags flags, |
| 1168 | const gchar *name, |
| 1169 | const gchar *object_path, |
| 1170 | GCancellable *cancellable, |
| 1171 | GError **error); |
| 1172 | |
| 1173 | |
| 1174 | /* ---- */ |
| 1175 | |
| 1176 | #define TYPE_SENSOR_MATCH_SKELETON (sensor_match_skeleton_get_type ()) |
| 1177 | #define SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeleton)) |
| 1178 | #define SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) |
| 1179 | #define SENSOR_MATCH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) |
| 1180 | #define IS_SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_SKELETON)) |
| 1181 | #define IS_SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_SKELETON)) |
| 1182 | |
| 1183 | typedef struct _SensorMatchSkeleton SensorMatchSkeleton; |
| 1184 | typedef struct _SensorMatchSkeletonClass SensorMatchSkeletonClass; |
| 1185 | typedef struct _SensorMatchSkeletonPrivate SensorMatchSkeletonPrivate; |
| 1186 | |
| 1187 | struct _SensorMatchSkeleton |
| 1188 | { |
| 1189 | /*< private >*/ |
| 1190 | GDBusInterfaceSkeleton parent_instance; |
| 1191 | SensorMatchSkeletonPrivate *priv; |
| 1192 | }; |
| 1193 | |
| 1194 | struct _SensorMatchSkeletonClass |
| 1195 | { |
| 1196 | GDBusInterfaceSkeletonClass parent_class; |
| 1197 | }; |
| 1198 | |
| 1199 | GType sensor_match_skeleton_get_type (void) G_GNUC_CONST; |
| 1200 | |
| 1201 | SensorMatch *sensor_match_skeleton_new (void); |
| 1202 | |
| 1203 | |
| 1204 | /* ------------------------------------------------------------------------ */ |
| 1205 | /* Declarations for org.openbmc.Process */ |
| 1206 | |
| 1207 | #define TYPE_PROCESS (process_get_type ()) |
| 1208 | #define PROCESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS, Process)) |
| 1209 | #define IS_PROCESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS)) |
| 1210 | #define PROCESS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_PROCESS, ProcessIface)) |
| 1211 | |
| 1212 | struct _Process; |
| 1213 | typedef struct _Process Process; |
| 1214 | typedef struct _ProcessIface ProcessIface; |
| 1215 | |
| 1216 | struct _ProcessIface |
| 1217 | { |
| 1218 | GTypeInterface parent_iface; |
| 1219 | |
| 1220 | gboolean (*handle_stop) ( |
| 1221 | Process *object, |
| 1222 | GDBusMethodInvocation *invocation); |
| 1223 | |
| 1224 | }; |
| 1225 | |
| 1226 | GType process_get_type (void) G_GNUC_CONST; |
| 1227 | |
| 1228 | GDBusInterfaceInfo *process_interface_info (void); |
| 1229 | guint process_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1230 | |
| 1231 | |
| 1232 | /* D-Bus method call completion functions: */ |
| 1233 | void process_complete_stop ( |
| 1234 | Process *object, |
| 1235 | GDBusMethodInvocation *invocation); |
| 1236 | |
| 1237 | |
| 1238 | |
| 1239 | /* D-Bus method calls: */ |
| 1240 | void process_call_stop ( |
| 1241 | Process *proxy, |
| 1242 | GCancellable *cancellable, |
| 1243 | GAsyncReadyCallback callback, |
| 1244 | gpointer user_data); |
| 1245 | |
| 1246 | gboolean process_call_stop_finish ( |
| 1247 | Process *proxy, |
| 1248 | GAsyncResult *res, |
| 1249 | GError **error); |
| 1250 | |
| 1251 | gboolean process_call_stop_sync ( |
| 1252 | Process *proxy, |
| 1253 | GCancellable *cancellable, |
| 1254 | GError **error); |
| 1255 | |
| 1256 | |
| 1257 | |
| 1258 | /* ---- */ |
| 1259 | |
| 1260 | #define TYPE_PROCESS_PROXY (process_proxy_get_type ()) |
| 1261 | #define PROCESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS_PROXY, ProcessProxy)) |
| 1262 | #define PROCESS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_PROCESS_PROXY, ProcessProxyClass)) |
| 1263 | #define PROCESS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_PROCESS_PROXY, ProcessProxyClass)) |
| 1264 | #define IS_PROCESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS_PROXY)) |
| 1265 | #define IS_PROCESS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_PROCESS_PROXY)) |
| 1266 | |
| 1267 | typedef struct _ProcessProxy ProcessProxy; |
| 1268 | typedef struct _ProcessProxyClass ProcessProxyClass; |
| 1269 | typedef struct _ProcessProxyPrivate ProcessProxyPrivate; |
| 1270 | |
| 1271 | struct _ProcessProxy |
| 1272 | { |
| 1273 | /*< private >*/ |
| 1274 | GDBusProxy parent_instance; |
| 1275 | ProcessProxyPrivate *priv; |
| 1276 | }; |
| 1277 | |
| 1278 | struct _ProcessProxyClass |
| 1279 | { |
| 1280 | GDBusProxyClass parent_class; |
| 1281 | }; |
| 1282 | |
| 1283 | GType process_proxy_get_type (void) G_GNUC_CONST; |
| 1284 | |
| 1285 | void process_proxy_new ( |
| 1286 | GDBusConnection *connection, |
| 1287 | GDBusProxyFlags flags, |
| 1288 | const gchar *name, |
| 1289 | const gchar *object_path, |
| 1290 | GCancellable *cancellable, |
| 1291 | GAsyncReadyCallback callback, |
| 1292 | gpointer user_data); |
| 1293 | Process *process_proxy_new_finish ( |
| 1294 | GAsyncResult *res, |
| 1295 | GError **error); |
| 1296 | Process *process_proxy_new_sync ( |
| 1297 | GDBusConnection *connection, |
| 1298 | GDBusProxyFlags flags, |
| 1299 | const gchar *name, |
| 1300 | const gchar *object_path, |
| 1301 | GCancellable *cancellable, |
| 1302 | GError **error); |
| 1303 | |
| 1304 | void process_proxy_new_for_bus ( |
| 1305 | GBusType bus_type, |
| 1306 | GDBusProxyFlags flags, |
| 1307 | const gchar *name, |
| 1308 | const gchar *object_path, |
| 1309 | GCancellable *cancellable, |
| 1310 | GAsyncReadyCallback callback, |
| 1311 | gpointer user_data); |
| 1312 | Process *process_proxy_new_for_bus_finish ( |
| 1313 | GAsyncResult *res, |
| 1314 | GError **error); |
| 1315 | Process *process_proxy_new_for_bus_sync ( |
| 1316 | GBusType bus_type, |
| 1317 | GDBusProxyFlags flags, |
| 1318 | const gchar *name, |
| 1319 | const gchar *object_path, |
| 1320 | GCancellable *cancellable, |
| 1321 | GError **error); |
| 1322 | |
| 1323 | |
| 1324 | /* ---- */ |
| 1325 | |
| 1326 | #define TYPE_PROCESS_SKELETON (process_skeleton_get_type ()) |
| 1327 | #define PROCESS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS_SKELETON, ProcessSkeleton)) |
| 1328 | #define PROCESS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_PROCESS_SKELETON, ProcessSkeletonClass)) |
| 1329 | #define PROCESS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_PROCESS_SKELETON, ProcessSkeletonClass)) |
| 1330 | #define IS_PROCESS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS_SKELETON)) |
| 1331 | #define IS_PROCESS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_PROCESS_SKELETON)) |
| 1332 | |
| 1333 | typedef struct _ProcessSkeleton ProcessSkeleton; |
| 1334 | typedef struct _ProcessSkeletonClass ProcessSkeletonClass; |
| 1335 | typedef struct _ProcessSkeletonPrivate ProcessSkeletonPrivate; |
| 1336 | |
| 1337 | struct _ProcessSkeleton |
| 1338 | { |
| 1339 | /*< private >*/ |
| 1340 | GDBusInterfaceSkeleton parent_instance; |
| 1341 | ProcessSkeletonPrivate *priv; |
| 1342 | }; |
| 1343 | |
| 1344 | struct _ProcessSkeletonClass |
| 1345 | { |
| 1346 | GDBusInterfaceSkeletonClass parent_class; |
| 1347 | }; |
| 1348 | |
| 1349 | GType process_skeleton_get_type (void) G_GNUC_CONST; |
| 1350 | |
| 1351 | Process *process_skeleton_new (void); |
| 1352 | |
| 1353 | |
| 1354 | /* ------------------------------------------------------------------------ */ |
| 1355 | /* Declarations for org.openbmc.Control */ |
| 1356 | |
| 1357 | #define TYPE_CONTROL (control_get_type ()) |
| 1358 | #define CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL, Control)) |
| 1359 | #define IS_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL)) |
| 1360 | #define CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL, ControlIface)) |
| 1361 | |
| 1362 | struct _Control; |
| 1363 | typedef struct _Control Control; |
| 1364 | typedef struct _ControlIface ControlIface; |
| 1365 | |
| 1366 | struct _ControlIface |
| 1367 | { |
| 1368 | GTypeInterface parent_iface; |
| 1369 | |
| 1370 | |
| 1371 | |
| 1372 | gboolean (*handle_init) ( |
| 1373 | Control *object, |
| 1374 | GDBusMethodInvocation *invocation); |
| 1375 | |
| 1376 | gint (*get_heatbeat) (Control *object); |
| 1377 | |
| 1378 | gint (*get_poll_interval) (Control *object); |
| 1379 | |
| 1380 | void (*goto_system_state) ( |
| 1381 | Control *object, |
| 1382 | const gchar *arg_state_name); |
| 1383 | |
| 1384 | void (*heartbeat) ( |
| 1385 | Control *object, |
| 1386 | const gchar *arg_bus_name); |
| 1387 | |
| 1388 | }; |
| 1389 | |
| 1390 | GType control_get_type (void) G_GNUC_CONST; |
| 1391 | |
| 1392 | GDBusInterfaceInfo *control_interface_info (void); |
| 1393 | guint control_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1394 | |
| 1395 | |
| 1396 | /* D-Bus method call completion functions: */ |
| 1397 | void control_complete_init ( |
| 1398 | Control *object, |
| 1399 | GDBusMethodInvocation *invocation); |
| 1400 | |
| 1401 | |
| 1402 | |
| 1403 | /* D-Bus signal emissions functions: */ |
| 1404 | void control_emit_heartbeat ( |
| 1405 | Control *object, |
| 1406 | const gchar *arg_bus_name); |
| 1407 | |
| 1408 | void control_emit_goto_system_state ( |
| 1409 | Control *object, |
| 1410 | const gchar *arg_state_name); |
| 1411 | |
| 1412 | |
| 1413 | |
| 1414 | /* D-Bus method calls: */ |
| 1415 | void control_call_init ( |
| 1416 | Control *proxy, |
| 1417 | GCancellable *cancellable, |
| 1418 | GAsyncReadyCallback callback, |
| 1419 | gpointer user_data); |
| 1420 | |
| 1421 | gboolean control_call_init_finish ( |
| 1422 | Control *proxy, |
| 1423 | GAsyncResult *res, |
| 1424 | GError **error); |
| 1425 | |
| 1426 | gboolean control_call_init_sync ( |
| 1427 | Control *proxy, |
| 1428 | GCancellable *cancellable, |
| 1429 | GError **error); |
| 1430 | |
| 1431 | |
| 1432 | |
| 1433 | /* D-Bus property accessors: */ |
| 1434 | gint control_get_poll_interval (Control *object); |
| 1435 | void control_set_poll_interval (Control *object, gint value); |
| 1436 | |
| 1437 | gint control_get_heatbeat (Control *object); |
| 1438 | void control_set_heatbeat (Control *object, gint value); |
| 1439 | |
| 1440 | |
| 1441 | /* ---- */ |
| 1442 | |
| 1443 | #define TYPE_CONTROL_PROXY (control_proxy_get_type ()) |
| 1444 | #define CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_PROXY, ControlProxy)) |
| 1445 | #define CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_PROXY, ControlProxyClass)) |
| 1446 | #define CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_PROXY, ControlProxyClass)) |
| 1447 | #define IS_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_PROXY)) |
| 1448 | #define IS_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_PROXY)) |
| 1449 | |
| 1450 | typedef struct _ControlProxy ControlProxy; |
| 1451 | typedef struct _ControlProxyClass ControlProxyClass; |
| 1452 | typedef struct _ControlProxyPrivate ControlProxyPrivate; |
| 1453 | |
| 1454 | struct _ControlProxy |
| 1455 | { |
| 1456 | /*< private >*/ |
| 1457 | GDBusProxy parent_instance; |
| 1458 | ControlProxyPrivate *priv; |
| 1459 | }; |
| 1460 | |
| 1461 | struct _ControlProxyClass |
| 1462 | { |
| 1463 | GDBusProxyClass parent_class; |
| 1464 | }; |
| 1465 | |
| 1466 | GType control_proxy_get_type (void) G_GNUC_CONST; |
| 1467 | |
| 1468 | void control_proxy_new ( |
| 1469 | GDBusConnection *connection, |
| 1470 | GDBusProxyFlags flags, |
| 1471 | const gchar *name, |
| 1472 | const gchar *object_path, |
| 1473 | GCancellable *cancellable, |
| 1474 | GAsyncReadyCallback callback, |
| 1475 | gpointer user_data); |
| 1476 | Control *control_proxy_new_finish ( |
| 1477 | GAsyncResult *res, |
| 1478 | GError **error); |
| 1479 | Control *control_proxy_new_sync ( |
| 1480 | GDBusConnection *connection, |
| 1481 | GDBusProxyFlags flags, |
| 1482 | const gchar *name, |
| 1483 | const gchar *object_path, |
| 1484 | GCancellable *cancellable, |
| 1485 | GError **error); |
| 1486 | |
| 1487 | void control_proxy_new_for_bus ( |
| 1488 | GBusType bus_type, |
| 1489 | GDBusProxyFlags flags, |
| 1490 | const gchar *name, |
| 1491 | const gchar *object_path, |
| 1492 | GCancellable *cancellable, |
| 1493 | GAsyncReadyCallback callback, |
| 1494 | gpointer user_data); |
| 1495 | Control *control_proxy_new_for_bus_finish ( |
| 1496 | GAsyncResult *res, |
| 1497 | GError **error); |
| 1498 | Control *control_proxy_new_for_bus_sync ( |
| 1499 | GBusType bus_type, |
| 1500 | GDBusProxyFlags flags, |
| 1501 | const gchar *name, |
| 1502 | const gchar *object_path, |
| 1503 | GCancellable *cancellable, |
| 1504 | GError **error); |
| 1505 | |
| 1506 | |
| 1507 | /* ---- */ |
| 1508 | |
| 1509 | #define TYPE_CONTROL_SKELETON (control_skeleton_get_type ()) |
| 1510 | #define CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_SKELETON, ControlSkeleton)) |
| 1511 | #define CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) |
| 1512 | #define CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) |
| 1513 | #define IS_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_SKELETON)) |
| 1514 | #define IS_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_SKELETON)) |
| 1515 | |
| 1516 | typedef struct _ControlSkeleton ControlSkeleton; |
| 1517 | typedef struct _ControlSkeletonClass ControlSkeletonClass; |
| 1518 | typedef struct _ControlSkeletonPrivate ControlSkeletonPrivate; |
| 1519 | |
| 1520 | struct _ControlSkeleton |
| 1521 | { |
| 1522 | /*< private >*/ |
| 1523 | GDBusInterfaceSkeleton parent_instance; |
| 1524 | ControlSkeletonPrivate *priv; |
| 1525 | }; |
| 1526 | |
| 1527 | struct _ControlSkeletonClass |
| 1528 | { |
| 1529 | GDBusInterfaceSkeletonClass parent_class; |
| 1530 | }; |
| 1531 | |
| 1532 | GType control_skeleton_get_type (void) G_GNUC_CONST; |
| 1533 | |
| 1534 | Control *control_skeleton_new (void); |
| 1535 | |
| 1536 | |
| 1537 | /* ------------------------------------------------------------------------ */ |
| 1538 | /* Declarations for org.openbmc.control.Bmc */ |
| 1539 | |
| 1540 | #define TYPE_CONTROL_BMC (control_bmc_get_type ()) |
| 1541 | #define CONTROL_BMC(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC, ControlBmc)) |
| 1542 | #define IS_CONTROL_BMC(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC)) |
| 1543 | #define CONTROL_BMC_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_BMC, ControlBmcIface)) |
| 1544 | |
| 1545 | struct _ControlBmc; |
| 1546 | typedef struct _ControlBmc ControlBmc; |
| 1547 | typedef struct _ControlBmcIface ControlBmcIface; |
| 1548 | |
| 1549 | struct _ControlBmcIface |
| 1550 | { |
| 1551 | GTypeInterface parent_iface; |
| 1552 | |
| 1553 | gboolean (*handle_place_holder) ( |
| 1554 | ControlBmc *object, |
| 1555 | GDBusMethodInvocation *invocation); |
| 1556 | |
| 1557 | }; |
| 1558 | |
| 1559 | GType control_bmc_get_type (void) G_GNUC_CONST; |
| 1560 | |
| 1561 | GDBusInterfaceInfo *control_bmc_interface_info (void); |
| 1562 | guint control_bmc_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1563 | |
| 1564 | |
| 1565 | /* D-Bus method call completion functions: */ |
| 1566 | void control_bmc_complete_place_holder ( |
| 1567 | ControlBmc *object, |
| 1568 | GDBusMethodInvocation *invocation); |
| 1569 | |
| 1570 | |
| 1571 | |
| 1572 | /* D-Bus method calls: */ |
| 1573 | void control_bmc_call_place_holder ( |
| 1574 | ControlBmc *proxy, |
| 1575 | GCancellable *cancellable, |
| 1576 | GAsyncReadyCallback callback, |
| 1577 | gpointer user_data); |
| 1578 | |
| 1579 | gboolean control_bmc_call_place_holder_finish ( |
| 1580 | ControlBmc *proxy, |
| 1581 | GAsyncResult *res, |
| 1582 | GError **error); |
| 1583 | |
| 1584 | gboolean control_bmc_call_place_holder_sync ( |
| 1585 | ControlBmc *proxy, |
| 1586 | GCancellable *cancellable, |
| 1587 | GError **error); |
| 1588 | |
| 1589 | |
| 1590 | |
| 1591 | /* ---- */ |
| 1592 | |
| 1593 | #define TYPE_CONTROL_BMC_PROXY (control_bmc_proxy_get_type ()) |
| 1594 | #define CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxy)) |
| 1595 | #define CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass)) |
| 1596 | #define CONTROL_BMC_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass)) |
| 1597 | #define IS_CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_PROXY)) |
| 1598 | #define IS_CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_PROXY)) |
| 1599 | |
| 1600 | typedef struct _ControlBmcProxy ControlBmcProxy; |
| 1601 | typedef struct _ControlBmcProxyClass ControlBmcProxyClass; |
| 1602 | typedef struct _ControlBmcProxyPrivate ControlBmcProxyPrivate; |
| 1603 | |
| 1604 | struct _ControlBmcProxy |
| 1605 | { |
| 1606 | /*< private >*/ |
| 1607 | GDBusProxy parent_instance; |
| 1608 | ControlBmcProxyPrivate *priv; |
| 1609 | }; |
| 1610 | |
| 1611 | struct _ControlBmcProxyClass |
| 1612 | { |
| 1613 | GDBusProxyClass parent_class; |
| 1614 | }; |
| 1615 | |
| 1616 | GType control_bmc_proxy_get_type (void) G_GNUC_CONST; |
| 1617 | |
| 1618 | void control_bmc_proxy_new ( |
| 1619 | GDBusConnection *connection, |
| 1620 | GDBusProxyFlags flags, |
| 1621 | const gchar *name, |
| 1622 | const gchar *object_path, |
| 1623 | GCancellable *cancellable, |
| 1624 | GAsyncReadyCallback callback, |
| 1625 | gpointer user_data); |
| 1626 | ControlBmc *control_bmc_proxy_new_finish ( |
| 1627 | GAsyncResult *res, |
| 1628 | GError **error); |
| 1629 | ControlBmc *control_bmc_proxy_new_sync ( |
| 1630 | GDBusConnection *connection, |
| 1631 | GDBusProxyFlags flags, |
| 1632 | const gchar *name, |
| 1633 | const gchar *object_path, |
| 1634 | GCancellable *cancellable, |
| 1635 | GError **error); |
| 1636 | |
| 1637 | void control_bmc_proxy_new_for_bus ( |
| 1638 | GBusType bus_type, |
| 1639 | GDBusProxyFlags flags, |
| 1640 | const gchar *name, |
| 1641 | const gchar *object_path, |
| 1642 | GCancellable *cancellable, |
| 1643 | GAsyncReadyCallback callback, |
| 1644 | gpointer user_data); |
| 1645 | ControlBmc *control_bmc_proxy_new_for_bus_finish ( |
| 1646 | GAsyncResult *res, |
| 1647 | GError **error); |
| 1648 | ControlBmc *control_bmc_proxy_new_for_bus_sync ( |
| 1649 | GBusType bus_type, |
| 1650 | GDBusProxyFlags flags, |
| 1651 | const gchar *name, |
| 1652 | const gchar *object_path, |
| 1653 | GCancellable *cancellable, |
| 1654 | GError **error); |
| 1655 | |
| 1656 | |
| 1657 | /* ---- */ |
| 1658 | |
| 1659 | #define TYPE_CONTROL_BMC_SKELETON (control_bmc_skeleton_get_type ()) |
| 1660 | #define CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeleton)) |
| 1661 | #define CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass)) |
| 1662 | #define CONTROL_BMC_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass)) |
| 1663 | #define IS_CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_SKELETON)) |
| 1664 | #define IS_CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_SKELETON)) |
| 1665 | |
| 1666 | typedef struct _ControlBmcSkeleton ControlBmcSkeleton; |
| 1667 | typedef struct _ControlBmcSkeletonClass ControlBmcSkeletonClass; |
| 1668 | typedef struct _ControlBmcSkeletonPrivate ControlBmcSkeletonPrivate; |
| 1669 | |
| 1670 | struct _ControlBmcSkeleton |
| 1671 | { |
| 1672 | /*< private >*/ |
| 1673 | GDBusInterfaceSkeleton parent_instance; |
| 1674 | ControlBmcSkeletonPrivate *priv; |
| 1675 | }; |
| 1676 | |
| 1677 | struct _ControlBmcSkeletonClass |
| 1678 | { |
| 1679 | GDBusInterfaceSkeletonClass parent_class; |
| 1680 | }; |
| 1681 | |
| 1682 | GType control_bmc_skeleton_get_type (void) G_GNUC_CONST; |
| 1683 | |
| 1684 | ControlBmc *control_bmc_skeleton_new (void); |
| 1685 | |
| 1686 | |
| 1687 | /* ------------------------------------------------------------------------ */ |
| 1688 | /* Declarations for org.openbmc.control.Host */ |
| 1689 | |
| 1690 | #define TYPE_CONTROL_HOST (control_host_get_type ()) |
| 1691 | #define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost)) |
| 1692 | #define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST)) |
| 1693 | #define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface)) |
| 1694 | |
| 1695 | struct _ControlHost; |
| 1696 | typedef struct _ControlHost ControlHost; |
| 1697 | typedef struct _ControlHostIface ControlHostIface; |
| 1698 | |
| 1699 | struct _ControlHostIface |
| 1700 | { |
| 1701 | GTypeInterface parent_iface; |
| 1702 | |
| 1703 | |
| 1704 | gboolean (*handle_boot) ( |
| 1705 | ControlHost *object, |
| 1706 | GDBusMethodInvocation *invocation); |
| 1707 | |
| 1708 | gboolean (*handle_reboot) ( |
| 1709 | ControlHost *object, |
| 1710 | GDBusMethodInvocation *invocation); |
| 1711 | |
| 1712 | gboolean (*handle_shutdown) ( |
| 1713 | ControlHost *object, |
| 1714 | GDBusMethodInvocation *invocation); |
| 1715 | |
| 1716 | void (*booted) ( |
| 1717 | ControlHost *object); |
| 1718 | |
| 1719 | }; |
| 1720 | |
| 1721 | GType control_host_get_type (void) G_GNUC_CONST; |
| 1722 | |
| 1723 | GDBusInterfaceInfo *control_host_interface_info (void); |
| 1724 | guint control_host_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1725 | |
| 1726 | |
| 1727 | /* D-Bus method call completion functions: */ |
| 1728 | void control_host_complete_boot ( |
| 1729 | ControlHost *object, |
| 1730 | GDBusMethodInvocation *invocation); |
| 1731 | |
| 1732 | void control_host_complete_shutdown ( |
| 1733 | ControlHost *object, |
| 1734 | GDBusMethodInvocation *invocation); |
| 1735 | |
| 1736 | void control_host_complete_reboot ( |
| 1737 | ControlHost *object, |
| 1738 | GDBusMethodInvocation *invocation); |
| 1739 | |
| 1740 | |
| 1741 | |
| 1742 | /* D-Bus signal emissions functions: */ |
| 1743 | void control_host_emit_booted ( |
| 1744 | ControlHost *object); |
| 1745 | |
| 1746 | |
| 1747 | |
| 1748 | /* D-Bus method calls: */ |
| 1749 | void control_host_call_boot ( |
| 1750 | ControlHost *proxy, |
| 1751 | GCancellable *cancellable, |
| 1752 | GAsyncReadyCallback callback, |
| 1753 | gpointer user_data); |
| 1754 | |
| 1755 | gboolean control_host_call_boot_finish ( |
| 1756 | ControlHost *proxy, |
| 1757 | GAsyncResult *res, |
| 1758 | GError **error); |
| 1759 | |
| 1760 | gboolean control_host_call_boot_sync ( |
| 1761 | ControlHost *proxy, |
| 1762 | GCancellable *cancellable, |
| 1763 | GError **error); |
| 1764 | |
| 1765 | void control_host_call_shutdown ( |
| 1766 | ControlHost *proxy, |
| 1767 | GCancellable *cancellable, |
| 1768 | GAsyncReadyCallback callback, |
| 1769 | gpointer user_data); |
| 1770 | |
| 1771 | gboolean control_host_call_shutdown_finish ( |
| 1772 | ControlHost *proxy, |
| 1773 | GAsyncResult *res, |
| 1774 | GError **error); |
| 1775 | |
| 1776 | gboolean control_host_call_shutdown_sync ( |
| 1777 | ControlHost *proxy, |
| 1778 | GCancellable *cancellable, |
| 1779 | GError **error); |
| 1780 | |
| 1781 | void control_host_call_reboot ( |
| 1782 | ControlHost *proxy, |
| 1783 | GCancellable *cancellable, |
| 1784 | GAsyncReadyCallback callback, |
| 1785 | gpointer user_data); |
| 1786 | |
| 1787 | gboolean control_host_call_reboot_finish ( |
| 1788 | ControlHost *proxy, |
| 1789 | GAsyncResult *res, |
| 1790 | GError **error); |
| 1791 | |
| 1792 | gboolean control_host_call_reboot_sync ( |
| 1793 | ControlHost *proxy, |
| 1794 | GCancellable *cancellable, |
| 1795 | GError **error); |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | /* ---- */ |
| 1800 | |
| 1801 | #define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ()) |
| 1802 | #define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy)) |
| 1803 | #define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| 1804 | #define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| 1805 | #define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY)) |
| 1806 | #define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY)) |
| 1807 | |
| 1808 | typedef struct _ControlHostProxy ControlHostProxy; |
| 1809 | typedef struct _ControlHostProxyClass ControlHostProxyClass; |
| 1810 | typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate; |
| 1811 | |
| 1812 | struct _ControlHostProxy |
| 1813 | { |
| 1814 | /*< private >*/ |
| 1815 | GDBusProxy parent_instance; |
| 1816 | ControlHostProxyPrivate *priv; |
| 1817 | }; |
| 1818 | |
| 1819 | struct _ControlHostProxyClass |
| 1820 | { |
| 1821 | GDBusProxyClass parent_class; |
| 1822 | }; |
| 1823 | |
| 1824 | GType control_host_proxy_get_type (void) G_GNUC_CONST; |
| 1825 | |
| 1826 | void control_host_proxy_new ( |
| 1827 | GDBusConnection *connection, |
| 1828 | GDBusProxyFlags flags, |
| 1829 | const gchar *name, |
| 1830 | const gchar *object_path, |
| 1831 | GCancellable *cancellable, |
| 1832 | GAsyncReadyCallback callback, |
| 1833 | gpointer user_data); |
| 1834 | ControlHost *control_host_proxy_new_finish ( |
| 1835 | GAsyncResult *res, |
| 1836 | GError **error); |
| 1837 | ControlHost *control_host_proxy_new_sync ( |
| 1838 | GDBusConnection *connection, |
| 1839 | GDBusProxyFlags flags, |
| 1840 | const gchar *name, |
| 1841 | const gchar *object_path, |
| 1842 | GCancellable *cancellable, |
| 1843 | GError **error); |
| 1844 | |
| 1845 | void control_host_proxy_new_for_bus ( |
| 1846 | GBusType bus_type, |
| 1847 | GDBusProxyFlags flags, |
| 1848 | const gchar *name, |
| 1849 | const gchar *object_path, |
| 1850 | GCancellable *cancellable, |
| 1851 | GAsyncReadyCallback callback, |
| 1852 | gpointer user_data); |
| 1853 | ControlHost *control_host_proxy_new_for_bus_finish ( |
| 1854 | GAsyncResult *res, |
| 1855 | GError **error); |
| 1856 | ControlHost *control_host_proxy_new_for_bus_sync ( |
| 1857 | GBusType bus_type, |
| 1858 | GDBusProxyFlags flags, |
| 1859 | const gchar *name, |
| 1860 | const gchar *object_path, |
| 1861 | GCancellable *cancellable, |
| 1862 | GError **error); |
| 1863 | |
| 1864 | |
| 1865 | /* ---- */ |
| 1866 | |
| 1867 | #define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ()) |
| 1868 | #define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton)) |
| 1869 | #define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| 1870 | #define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| 1871 | #define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON)) |
| 1872 | #define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON)) |
| 1873 | |
| 1874 | typedef struct _ControlHostSkeleton ControlHostSkeleton; |
| 1875 | typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass; |
| 1876 | typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate; |
| 1877 | |
| 1878 | struct _ControlHostSkeleton |
| 1879 | { |
| 1880 | /*< private >*/ |
| 1881 | GDBusInterfaceSkeleton parent_instance; |
| 1882 | ControlHostSkeletonPrivate *priv; |
| 1883 | }; |
| 1884 | |
| 1885 | struct _ControlHostSkeletonClass |
| 1886 | { |
| 1887 | GDBusInterfaceSkeletonClass parent_class; |
| 1888 | }; |
| 1889 | |
| 1890 | GType control_host_skeleton_get_type (void) G_GNUC_CONST; |
| 1891 | |
| 1892 | ControlHost *control_host_skeleton_new (void); |
| 1893 | |
| 1894 | |
| 1895 | /* ------------------------------------------------------------------------ */ |
| 1896 | /* Declarations for org.openbmc.control.Power */ |
| 1897 | |
| 1898 | #define TYPE_CONTROL_POWER (control_power_get_type ()) |
| 1899 | #define CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER, ControlPower)) |
| 1900 | #define IS_CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER)) |
| 1901 | #define CONTROL_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_POWER, ControlPowerIface)) |
| 1902 | |
| 1903 | struct _ControlPower; |
| 1904 | typedef struct _ControlPower ControlPower; |
| 1905 | typedef struct _ControlPowerIface ControlPowerIface; |
| 1906 | |
| 1907 | struct _ControlPowerIface |
| 1908 | { |
| 1909 | GTypeInterface parent_iface; |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | gboolean (*handle_get_power_state) ( |
| 1914 | ControlPower *object, |
| 1915 | GDBusMethodInvocation *invocation); |
| 1916 | |
| 1917 | gboolean (*handle_set_power_state) ( |
| 1918 | ControlPower *object, |
| 1919 | GDBusMethodInvocation *invocation, |
| 1920 | gint arg_state); |
| 1921 | |
| 1922 | gint (*get_pgood) (ControlPower *object); |
| 1923 | |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 1924 | gint (*get_pgood_timeout) (ControlPower *object); |
| 1925 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1926 | gint (*get_state) (ControlPower *object); |
| 1927 | |
| 1928 | void (*power_good) ( |
| 1929 | ControlPower *object); |
| 1930 | |
| 1931 | void (*power_lost) ( |
| 1932 | ControlPower *object); |
| 1933 | |
| 1934 | }; |
| 1935 | |
| 1936 | GType control_power_get_type (void) G_GNUC_CONST; |
| 1937 | |
| 1938 | GDBusInterfaceInfo *control_power_interface_info (void); |
| 1939 | guint control_power_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1940 | |
| 1941 | |
| 1942 | /* D-Bus method call completion functions: */ |
| 1943 | void control_power_complete_set_power_state ( |
| 1944 | ControlPower *object, |
| 1945 | GDBusMethodInvocation *invocation); |
| 1946 | |
| 1947 | void control_power_complete_get_power_state ( |
| 1948 | ControlPower *object, |
| 1949 | GDBusMethodInvocation *invocation, |
| 1950 | gint state); |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | /* D-Bus signal emissions functions: */ |
| 1955 | void control_power_emit_power_good ( |
| 1956 | ControlPower *object); |
| 1957 | |
| 1958 | void control_power_emit_power_lost ( |
| 1959 | ControlPower *object); |
| 1960 | |
| 1961 | |
| 1962 | |
| 1963 | /* D-Bus method calls: */ |
| 1964 | void control_power_call_set_power_state ( |
| 1965 | ControlPower *proxy, |
| 1966 | gint arg_state, |
| 1967 | GCancellable *cancellable, |
| 1968 | GAsyncReadyCallback callback, |
| 1969 | gpointer user_data); |
| 1970 | |
| 1971 | gboolean control_power_call_set_power_state_finish ( |
| 1972 | ControlPower *proxy, |
| 1973 | GAsyncResult *res, |
| 1974 | GError **error); |
| 1975 | |
| 1976 | gboolean control_power_call_set_power_state_sync ( |
| 1977 | ControlPower *proxy, |
| 1978 | gint arg_state, |
| 1979 | GCancellable *cancellable, |
| 1980 | GError **error); |
| 1981 | |
| 1982 | void control_power_call_get_power_state ( |
| 1983 | ControlPower *proxy, |
| 1984 | GCancellable *cancellable, |
| 1985 | GAsyncReadyCallback callback, |
| 1986 | gpointer user_data); |
| 1987 | |
| 1988 | gboolean control_power_call_get_power_state_finish ( |
| 1989 | ControlPower *proxy, |
| 1990 | gint *out_state, |
| 1991 | GAsyncResult *res, |
| 1992 | GError **error); |
| 1993 | |
| 1994 | gboolean control_power_call_get_power_state_sync ( |
| 1995 | ControlPower *proxy, |
| 1996 | gint *out_state, |
| 1997 | GCancellable *cancellable, |
| 1998 | GError **error); |
| 1999 | |
| 2000 | |
| 2001 | |
| 2002 | /* D-Bus property accessors: */ |
| 2003 | gint control_power_get_pgood (ControlPower *object); |
| 2004 | void control_power_set_pgood (ControlPower *object, gint value); |
| 2005 | |
| 2006 | gint control_power_get_state (ControlPower *object); |
| 2007 | void control_power_set_state (ControlPower *object, gint value); |
| 2008 | |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 2009 | gint control_power_get_pgood_timeout (ControlPower *object); |
| 2010 | void control_power_set_pgood_timeout (ControlPower *object, gint value); |
| 2011 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2012 | |
| 2013 | /* ---- */ |
| 2014 | |
| 2015 | #define TYPE_CONTROL_POWER_PROXY (control_power_proxy_get_type ()) |
| 2016 | #define CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxy)) |
| 2017 | #define CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) |
| 2018 | #define CONTROL_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) |
| 2019 | #define IS_CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_PROXY)) |
| 2020 | #define IS_CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_PROXY)) |
| 2021 | |
| 2022 | typedef struct _ControlPowerProxy ControlPowerProxy; |
| 2023 | typedef struct _ControlPowerProxyClass ControlPowerProxyClass; |
| 2024 | typedef struct _ControlPowerProxyPrivate ControlPowerProxyPrivate; |
| 2025 | |
| 2026 | struct _ControlPowerProxy |
| 2027 | { |
| 2028 | /*< private >*/ |
| 2029 | GDBusProxy parent_instance; |
| 2030 | ControlPowerProxyPrivate *priv; |
| 2031 | }; |
| 2032 | |
| 2033 | struct _ControlPowerProxyClass |
| 2034 | { |
| 2035 | GDBusProxyClass parent_class; |
| 2036 | }; |
| 2037 | |
| 2038 | GType control_power_proxy_get_type (void) G_GNUC_CONST; |
| 2039 | |
| 2040 | void control_power_proxy_new ( |
| 2041 | GDBusConnection *connection, |
| 2042 | GDBusProxyFlags flags, |
| 2043 | const gchar *name, |
| 2044 | const gchar *object_path, |
| 2045 | GCancellable *cancellable, |
| 2046 | GAsyncReadyCallback callback, |
| 2047 | gpointer user_data); |
| 2048 | ControlPower *control_power_proxy_new_finish ( |
| 2049 | GAsyncResult *res, |
| 2050 | GError **error); |
| 2051 | ControlPower *control_power_proxy_new_sync ( |
| 2052 | GDBusConnection *connection, |
| 2053 | GDBusProxyFlags flags, |
| 2054 | const gchar *name, |
| 2055 | const gchar *object_path, |
| 2056 | GCancellable *cancellable, |
| 2057 | GError **error); |
| 2058 | |
| 2059 | void control_power_proxy_new_for_bus ( |
| 2060 | GBusType bus_type, |
| 2061 | GDBusProxyFlags flags, |
| 2062 | const gchar *name, |
| 2063 | const gchar *object_path, |
| 2064 | GCancellable *cancellable, |
| 2065 | GAsyncReadyCallback callback, |
| 2066 | gpointer user_data); |
| 2067 | ControlPower *control_power_proxy_new_for_bus_finish ( |
| 2068 | GAsyncResult *res, |
| 2069 | GError **error); |
| 2070 | ControlPower *control_power_proxy_new_for_bus_sync ( |
| 2071 | GBusType bus_type, |
| 2072 | GDBusProxyFlags flags, |
| 2073 | const gchar *name, |
| 2074 | const gchar *object_path, |
| 2075 | GCancellable *cancellable, |
| 2076 | GError **error); |
| 2077 | |
| 2078 | |
| 2079 | /* ---- */ |
| 2080 | |
| 2081 | #define TYPE_CONTROL_POWER_SKELETON (control_power_skeleton_get_type ()) |
| 2082 | #define CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeleton)) |
| 2083 | #define CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) |
| 2084 | #define CONTROL_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) |
| 2085 | #define IS_CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_SKELETON)) |
| 2086 | #define IS_CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_SKELETON)) |
| 2087 | |
| 2088 | typedef struct _ControlPowerSkeleton ControlPowerSkeleton; |
| 2089 | typedef struct _ControlPowerSkeletonClass ControlPowerSkeletonClass; |
| 2090 | typedef struct _ControlPowerSkeletonPrivate ControlPowerSkeletonPrivate; |
| 2091 | |
| 2092 | struct _ControlPowerSkeleton |
| 2093 | { |
| 2094 | /*< private >*/ |
| 2095 | GDBusInterfaceSkeleton parent_instance; |
| 2096 | ControlPowerSkeletonPrivate *priv; |
| 2097 | }; |
| 2098 | |
| 2099 | struct _ControlPowerSkeletonClass |
| 2100 | { |
| 2101 | GDBusInterfaceSkeletonClass parent_class; |
| 2102 | }; |
| 2103 | |
| 2104 | GType control_power_skeleton_get_type (void) G_GNUC_CONST; |
| 2105 | |
| 2106 | ControlPower *control_power_skeleton_new (void); |
| 2107 | |
| 2108 | |
| 2109 | /* ------------------------------------------------------------------------ */ |
| 2110 | /* Declarations for org.openbmc.Watchdog */ |
| 2111 | |
| 2112 | #define TYPE_WATCHDOG (watchdog_get_type ()) |
| 2113 | #define WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG, Watchdog)) |
| 2114 | #define IS_WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG)) |
| 2115 | #define WATCHDOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_WATCHDOG, WatchdogIface)) |
| 2116 | |
| 2117 | struct _Watchdog; |
| 2118 | typedef struct _Watchdog Watchdog; |
| 2119 | typedef struct _WatchdogIface WatchdogIface; |
| 2120 | |
| 2121 | struct _WatchdogIface |
| 2122 | { |
| 2123 | GTypeInterface parent_iface; |
| 2124 | |
| 2125 | |
| 2126 | |
| 2127 | gboolean (*handle_poke) ( |
| 2128 | Watchdog *object, |
| 2129 | GDBusMethodInvocation *invocation); |
| 2130 | |
| 2131 | gboolean (*handle_start) ( |
| 2132 | Watchdog *object, |
| 2133 | GDBusMethodInvocation *invocation); |
| 2134 | |
| 2135 | gboolean (*handle_stop) ( |
| 2136 | Watchdog *object, |
| 2137 | GDBusMethodInvocation *invocation); |
| 2138 | |
| 2139 | gint (*get_poll_interval) (Watchdog *object); |
| 2140 | |
| 2141 | gint (*get_watchdog) (Watchdog *object); |
| 2142 | |
| 2143 | void (*watchdog_error) ( |
| 2144 | Watchdog *object); |
| 2145 | |
| 2146 | }; |
| 2147 | |
| 2148 | GType watchdog_get_type (void) G_GNUC_CONST; |
| 2149 | |
| 2150 | GDBusInterfaceInfo *watchdog_interface_info (void); |
| 2151 | guint watchdog_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2152 | |
| 2153 | |
| 2154 | /* D-Bus method call completion functions: */ |
| 2155 | void watchdog_complete_start ( |
| 2156 | Watchdog *object, |
| 2157 | GDBusMethodInvocation *invocation); |
| 2158 | |
| 2159 | void watchdog_complete_poke ( |
| 2160 | Watchdog *object, |
| 2161 | GDBusMethodInvocation *invocation); |
| 2162 | |
| 2163 | void watchdog_complete_stop ( |
| 2164 | Watchdog *object, |
| 2165 | GDBusMethodInvocation *invocation); |
| 2166 | |
| 2167 | |
| 2168 | |
| 2169 | /* D-Bus signal emissions functions: */ |
| 2170 | void watchdog_emit_watchdog_error ( |
| 2171 | Watchdog *object); |
| 2172 | |
| 2173 | |
| 2174 | |
| 2175 | /* D-Bus method calls: */ |
| 2176 | void watchdog_call_start ( |
| 2177 | Watchdog *proxy, |
| 2178 | GCancellable *cancellable, |
| 2179 | GAsyncReadyCallback callback, |
| 2180 | gpointer user_data); |
| 2181 | |
| 2182 | gboolean watchdog_call_start_finish ( |
| 2183 | Watchdog *proxy, |
| 2184 | GAsyncResult *res, |
| 2185 | GError **error); |
| 2186 | |
| 2187 | gboolean watchdog_call_start_sync ( |
| 2188 | Watchdog *proxy, |
| 2189 | GCancellable *cancellable, |
| 2190 | GError **error); |
| 2191 | |
| 2192 | void watchdog_call_poke ( |
| 2193 | Watchdog *proxy, |
| 2194 | GCancellable *cancellable, |
| 2195 | GAsyncReadyCallback callback, |
| 2196 | gpointer user_data); |
| 2197 | |
| 2198 | gboolean watchdog_call_poke_finish ( |
| 2199 | Watchdog *proxy, |
| 2200 | GAsyncResult *res, |
| 2201 | GError **error); |
| 2202 | |
| 2203 | gboolean watchdog_call_poke_sync ( |
| 2204 | Watchdog *proxy, |
| 2205 | GCancellable *cancellable, |
| 2206 | GError **error); |
| 2207 | |
| 2208 | void watchdog_call_stop ( |
| 2209 | Watchdog *proxy, |
| 2210 | GCancellable *cancellable, |
| 2211 | GAsyncReadyCallback callback, |
| 2212 | gpointer user_data); |
| 2213 | |
| 2214 | gboolean watchdog_call_stop_finish ( |
| 2215 | Watchdog *proxy, |
| 2216 | GAsyncResult *res, |
| 2217 | GError **error); |
| 2218 | |
| 2219 | gboolean watchdog_call_stop_sync ( |
| 2220 | Watchdog *proxy, |
| 2221 | GCancellable *cancellable, |
| 2222 | GError **error); |
| 2223 | |
| 2224 | |
| 2225 | |
| 2226 | /* D-Bus property accessors: */ |
| 2227 | gint watchdog_get_watchdog (Watchdog *object); |
| 2228 | void watchdog_set_watchdog (Watchdog *object, gint value); |
| 2229 | |
| 2230 | gint watchdog_get_poll_interval (Watchdog *object); |
| 2231 | void watchdog_set_poll_interval (Watchdog *object, gint value); |
| 2232 | |
| 2233 | |
| 2234 | /* ---- */ |
| 2235 | |
| 2236 | #define TYPE_WATCHDOG_PROXY (watchdog_proxy_get_type ()) |
| 2237 | #define WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_PROXY, WatchdogProxy)) |
| 2238 | #define WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) |
| 2239 | #define WATCHDOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) |
| 2240 | #define IS_WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_PROXY)) |
| 2241 | #define IS_WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_PROXY)) |
| 2242 | |
| 2243 | typedef struct _WatchdogProxy WatchdogProxy; |
| 2244 | typedef struct _WatchdogProxyClass WatchdogProxyClass; |
| 2245 | typedef struct _WatchdogProxyPrivate WatchdogProxyPrivate; |
| 2246 | |
| 2247 | struct _WatchdogProxy |
| 2248 | { |
| 2249 | /*< private >*/ |
| 2250 | GDBusProxy parent_instance; |
| 2251 | WatchdogProxyPrivate *priv; |
| 2252 | }; |
| 2253 | |
| 2254 | struct _WatchdogProxyClass |
| 2255 | { |
| 2256 | GDBusProxyClass parent_class; |
| 2257 | }; |
| 2258 | |
| 2259 | GType watchdog_proxy_get_type (void) G_GNUC_CONST; |
| 2260 | |
| 2261 | void watchdog_proxy_new ( |
| 2262 | GDBusConnection *connection, |
| 2263 | GDBusProxyFlags flags, |
| 2264 | const gchar *name, |
| 2265 | const gchar *object_path, |
| 2266 | GCancellable *cancellable, |
| 2267 | GAsyncReadyCallback callback, |
| 2268 | gpointer user_data); |
| 2269 | Watchdog *watchdog_proxy_new_finish ( |
| 2270 | GAsyncResult *res, |
| 2271 | GError **error); |
| 2272 | Watchdog *watchdog_proxy_new_sync ( |
| 2273 | GDBusConnection *connection, |
| 2274 | GDBusProxyFlags flags, |
| 2275 | const gchar *name, |
| 2276 | const gchar *object_path, |
| 2277 | GCancellable *cancellable, |
| 2278 | GError **error); |
| 2279 | |
| 2280 | void watchdog_proxy_new_for_bus ( |
| 2281 | GBusType bus_type, |
| 2282 | GDBusProxyFlags flags, |
| 2283 | const gchar *name, |
| 2284 | const gchar *object_path, |
| 2285 | GCancellable *cancellable, |
| 2286 | GAsyncReadyCallback callback, |
| 2287 | gpointer user_data); |
| 2288 | Watchdog *watchdog_proxy_new_for_bus_finish ( |
| 2289 | GAsyncResult *res, |
| 2290 | GError **error); |
| 2291 | Watchdog *watchdog_proxy_new_for_bus_sync ( |
| 2292 | GBusType bus_type, |
| 2293 | GDBusProxyFlags flags, |
| 2294 | const gchar *name, |
| 2295 | const gchar *object_path, |
| 2296 | GCancellable *cancellable, |
| 2297 | GError **error); |
| 2298 | |
| 2299 | |
| 2300 | /* ---- */ |
| 2301 | |
| 2302 | #define TYPE_WATCHDOG_SKELETON (watchdog_skeleton_get_type ()) |
| 2303 | #define WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeleton)) |
| 2304 | #define WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) |
| 2305 | #define WATCHDOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) |
| 2306 | #define IS_WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_SKELETON)) |
| 2307 | #define IS_WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_SKELETON)) |
| 2308 | |
| 2309 | typedef struct _WatchdogSkeleton WatchdogSkeleton; |
| 2310 | typedef struct _WatchdogSkeletonClass WatchdogSkeletonClass; |
| 2311 | typedef struct _WatchdogSkeletonPrivate WatchdogSkeletonPrivate; |
| 2312 | |
| 2313 | struct _WatchdogSkeleton |
| 2314 | { |
| 2315 | /*< private >*/ |
| 2316 | GDBusInterfaceSkeleton parent_instance; |
| 2317 | WatchdogSkeletonPrivate *priv; |
| 2318 | }; |
| 2319 | |
| 2320 | struct _WatchdogSkeletonClass |
| 2321 | { |
| 2322 | GDBusInterfaceSkeletonClass parent_class; |
| 2323 | }; |
| 2324 | |
| 2325 | GType watchdog_skeleton_get_type (void) G_GNUC_CONST; |
| 2326 | |
| 2327 | Watchdog *watchdog_skeleton_new (void); |
| 2328 | |
| 2329 | |
| 2330 | /* ------------------------------------------------------------------------ */ |
| 2331 | /* Declarations for org.openbmc.EventLog */ |
| 2332 | |
| 2333 | #define TYPE_EVENT_LOG (event_log_get_type ()) |
| 2334 | #define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog)) |
| 2335 | #define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG)) |
| 2336 | #define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface)) |
| 2337 | |
| 2338 | struct _EventLog; |
| 2339 | typedef struct _EventLog EventLog; |
| 2340 | typedef struct _EventLogIface EventLogIface; |
| 2341 | |
| 2342 | struct _EventLogIface |
| 2343 | { |
| 2344 | GTypeInterface parent_iface; |
| 2345 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2346 | void (*event_log) ( |
| 2347 | EventLog *object, |
Norman James | 8abb50c | 2015-09-16 10:58:16 -0500 | [diff] [blame] | 2348 | gint arg_priority, |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 2349 | const gchar *arg_message); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2350 | |
| 2351 | }; |
| 2352 | |
| 2353 | GType event_log_get_type (void) G_GNUC_CONST; |
| 2354 | |
| 2355 | GDBusInterfaceInfo *event_log_interface_info (void); |
| 2356 | guint event_log_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2357 | |
| 2358 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2359 | /* D-Bus signal emissions functions: */ |
| 2360 | void event_log_emit_event_log ( |
| 2361 | EventLog *object, |
Norman James | 8abb50c | 2015-09-16 10:58:16 -0500 | [diff] [blame] | 2362 | gint arg_priority, |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 2363 | const gchar *arg_message); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2364 | |
| 2365 | |
| 2366 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2367 | /* ---- */ |
| 2368 | |
| 2369 | #define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ()) |
| 2370 | #define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy)) |
| 2371 | #define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| 2372 | #define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| 2373 | #define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY)) |
| 2374 | #define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY)) |
| 2375 | |
| 2376 | typedef struct _EventLogProxy EventLogProxy; |
| 2377 | typedef struct _EventLogProxyClass EventLogProxyClass; |
| 2378 | typedef struct _EventLogProxyPrivate EventLogProxyPrivate; |
| 2379 | |
| 2380 | struct _EventLogProxy |
| 2381 | { |
| 2382 | /*< private >*/ |
| 2383 | GDBusProxy parent_instance; |
| 2384 | EventLogProxyPrivate *priv; |
| 2385 | }; |
| 2386 | |
| 2387 | struct _EventLogProxyClass |
| 2388 | { |
| 2389 | GDBusProxyClass parent_class; |
| 2390 | }; |
| 2391 | |
| 2392 | GType event_log_proxy_get_type (void) G_GNUC_CONST; |
| 2393 | |
| 2394 | void event_log_proxy_new ( |
| 2395 | GDBusConnection *connection, |
| 2396 | GDBusProxyFlags flags, |
| 2397 | const gchar *name, |
| 2398 | const gchar *object_path, |
| 2399 | GCancellable *cancellable, |
| 2400 | GAsyncReadyCallback callback, |
| 2401 | gpointer user_data); |
| 2402 | EventLog *event_log_proxy_new_finish ( |
| 2403 | GAsyncResult *res, |
| 2404 | GError **error); |
| 2405 | EventLog *event_log_proxy_new_sync ( |
| 2406 | GDBusConnection *connection, |
| 2407 | GDBusProxyFlags flags, |
| 2408 | const gchar *name, |
| 2409 | const gchar *object_path, |
| 2410 | GCancellable *cancellable, |
| 2411 | GError **error); |
| 2412 | |
| 2413 | void event_log_proxy_new_for_bus ( |
| 2414 | GBusType bus_type, |
| 2415 | GDBusProxyFlags flags, |
| 2416 | const gchar *name, |
| 2417 | const gchar *object_path, |
| 2418 | GCancellable *cancellable, |
| 2419 | GAsyncReadyCallback callback, |
| 2420 | gpointer user_data); |
| 2421 | EventLog *event_log_proxy_new_for_bus_finish ( |
| 2422 | GAsyncResult *res, |
| 2423 | GError **error); |
| 2424 | EventLog *event_log_proxy_new_for_bus_sync ( |
| 2425 | GBusType bus_type, |
| 2426 | GDBusProxyFlags flags, |
| 2427 | const gchar *name, |
| 2428 | const gchar *object_path, |
| 2429 | GCancellable *cancellable, |
| 2430 | GError **error); |
| 2431 | |
| 2432 | |
| 2433 | /* ---- */ |
| 2434 | |
| 2435 | #define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ()) |
| 2436 | #define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton)) |
| 2437 | #define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| 2438 | #define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| 2439 | #define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON)) |
| 2440 | #define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON)) |
| 2441 | |
| 2442 | typedef struct _EventLogSkeleton EventLogSkeleton; |
| 2443 | typedef struct _EventLogSkeletonClass EventLogSkeletonClass; |
| 2444 | typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate; |
| 2445 | |
| 2446 | struct _EventLogSkeleton |
| 2447 | { |
| 2448 | /*< private >*/ |
| 2449 | GDBusInterfaceSkeleton parent_instance; |
| 2450 | EventLogSkeletonPrivate *priv; |
| 2451 | }; |
| 2452 | |
| 2453 | struct _EventLogSkeletonClass |
| 2454 | { |
| 2455 | GDBusInterfaceSkeletonClass parent_class; |
| 2456 | }; |
| 2457 | |
| 2458 | GType event_log_skeleton_get_type (void) G_GNUC_CONST; |
| 2459 | |
| 2460 | EventLog *event_log_skeleton_new (void); |
| 2461 | |
| 2462 | |
| 2463 | /* ------------------------------------------------------------------------ */ |
| 2464 | /* Declarations for org.openbmc.Flash */ |
| 2465 | |
| 2466 | #define TYPE_FLASH (flash_get_type ()) |
| 2467 | #define FLASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH, Flash)) |
| 2468 | #define IS_FLASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH)) |
| 2469 | #define FLASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH, FlashIface)) |
| 2470 | |
| 2471 | struct _Flash; |
| 2472 | typedef struct _Flash Flash; |
| 2473 | typedef struct _FlashIface FlashIface; |
| 2474 | |
| 2475 | struct _FlashIface |
| 2476 | { |
| 2477 | GTypeInterface parent_iface; |
| 2478 | |
| 2479 | |
| 2480 | gboolean (*handle_erase) ( |
| 2481 | Flash *object, |
| 2482 | GDBusMethodInvocation *invocation); |
| 2483 | |
| 2484 | gboolean (*handle_init) ( |
| 2485 | Flash *object, |
| 2486 | GDBusMethodInvocation *invocation); |
| 2487 | |
| 2488 | gboolean (*handle_update_via_file) ( |
| 2489 | Flash *object, |
| 2490 | GDBusMethodInvocation *invocation, |
| 2491 | const gchar *arg_file); |
| 2492 | |
| 2493 | gboolean (*handle_update_via_http) ( |
| 2494 | Flash *object, |
| 2495 | GDBusMethodInvocation *invocation, |
| 2496 | const gchar *arg_url); |
| 2497 | |
| 2498 | void (*updated) ( |
| 2499 | Flash *object); |
| 2500 | |
| 2501 | }; |
| 2502 | |
| 2503 | GType flash_get_type (void) G_GNUC_CONST; |
| 2504 | |
| 2505 | GDBusInterfaceInfo *flash_interface_info (void); |
| 2506 | guint flash_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2507 | |
| 2508 | |
| 2509 | /* D-Bus method call completion functions: */ |
| 2510 | void flash_complete_update_via_file ( |
| 2511 | Flash *object, |
| 2512 | GDBusMethodInvocation *invocation); |
| 2513 | |
| 2514 | void flash_complete_update_via_http ( |
| 2515 | Flash *object, |
| 2516 | GDBusMethodInvocation *invocation); |
| 2517 | |
| 2518 | void flash_complete_erase ( |
| 2519 | Flash *object, |
| 2520 | GDBusMethodInvocation *invocation); |
| 2521 | |
| 2522 | void flash_complete_init ( |
| 2523 | Flash *object, |
| 2524 | GDBusMethodInvocation *invocation); |
| 2525 | |
| 2526 | |
| 2527 | |
| 2528 | /* D-Bus signal emissions functions: */ |
| 2529 | void flash_emit_updated ( |
| 2530 | Flash *object); |
| 2531 | |
| 2532 | |
| 2533 | |
| 2534 | /* D-Bus method calls: */ |
| 2535 | void flash_call_update_via_file ( |
| 2536 | Flash *proxy, |
| 2537 | const gchar *arg_file, |
| 2538 | GCancellable *cancellable, |
| 2539 | GAsyncReadyCallback callback, |
| 2540 | gpointer user_data); |
| 2541 | |
| 2542 | gboolean flash_call_update_via_file_finish ( |
| 2543 | Flash *proxy, |
| 2544 | GAsyncResult *res, |
| 2545 | GError **error); |
| 2546 | |
| 2547 | gboolean flash_call_update_via_file_sync ( |
| 2548 | Flash *proxy, |
| 2549 | const gchar *arg_file, |
| 2550 | GCancellable *cancellable, |
| 2551 | GError **error); |
| 2552 | |
| 2553 | void flash_call_update_via_http ( |
| 2554 | Flash *proxy, |
| 2555 | const gchar *arg_url, |
| 2556 | GCancellable *cancellable, |
| 2557 | GAsyncReadyCallback callback, |
| 2558 | gpointer user_data); |
| 2559 | |
| 2560 | gboolean flash_call_update_via_http_finish ( |
| 2561 | Flash *proxy, |
| 2562 | GAsyncResult *res, |
| 2563 | GError **error); |
| 2564 | |
| 2565 | gboolean flash_call_update_via_http_sync ( |
| 2566 | Flash *proxy, |
| 2567 | const gchar *arg_url, |
| 2568 | GCancellable *cancellable, |
| 2569 | GError **error); |
| 2570 | |
| 2571 | void flash_call_erase ( |
| 2572 | Flash *proxy, |
| 2573 | GCancellable *cancellable, |
| 2574 | GAsyncReadyCallback callback, |
| 2575 | gpointer user_data); |
| 2576 | |
| 2577 | gboolean flash_call_erase_finish ( |
| 2578 | Flash *proxy, |
| 2579 | GAsyncResult *res, |
| 2580 | GError **error); |
| 2581 | |
| 2582 | gboolean flash_call_erase_sync ( |
| 2583 | Flash *proxy, |
| 2584 | GCancellable *cancellable, |
| 2585 | GError **error); |
| 2586 | |
| 2587 | void flash_call_init ( |
| 2588 | Flash *proxy, |
| 2589 | GCancellable *cancellable, |
| 2590 | GAsyncReadyCallback callback, |
| 2591 | gpointer user_data); |
| 2592 | |
| 2593 | gboolean flash_call_init_finish ( |
| 2594 | Flash *proxy, |
| 2595 | GAsyncResult *res, |
| 2596 | GError **error); |
| 2597 | |
| 2598 | gboolean flash_call_init_sync ( |
| 2599 | Flash *proxy, |
| 2600 | GCancellable *cancellable, |
| 2601 | GError **error); |
| 2602 | |
| 2603 | |
| 2604 | |
| 2605 | /* ---- */ |
| 2606 | |
| 2607 | #define TYPE_FLASH_PROXY (flash_proxy_get_type ()) |
| 2608 | #define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy)) |
| 2609 | #define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass)) |
| 2610 | #define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass)) |
| 2611 | #define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY)) |
| 2612 | #define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY)) |
| 2613 | |
| 2614 | typedef struct _FlashProxy FlashProxy; |
| 2615 | typedef struct _FlashProxyClass FlashProxyClass; |
| 2616 | typedef struct _FlashProxyPrivate FlashProxyPrivate; |
| 2617 | |
| 2618 | struct _FlashProxy |
| 2619 | { |
| 2620 | /*< private >*/ |
| 2621 | GDBusProxy parent_instance; |
| 2622 | FlashProxyPrivate *priv; |
| 2623 | }; |
| 2624 | |
| 2625 | struct _FlashProxyClass |
| 2626 | { |
| 2627 | GDBusProxyClass parent_class; |
| 2628 | }; |
| 2629 | |
| 2630 | GType flash_proxy_get_type (void) G_GNUC_CONST; |
| 2631 | |
| 2632 | void flash_proxy_new ( |
| 2633 | GDBusConnection *connection, |
| 2634 | GDBusProxyFlags flags, |
| 2635 | const gchar *name, |
| 2636 | const gchar *object_path, |
| 2637 | GCancellable *cancellable, |
| 2638 | GAsyncReadyCallback callback, |
| 2639 | gpointer user_data); |
| 2640 | Flash *flash_proxy_new_finish ( |
| 2641 | GAsyncResult *res, |
| 2642 | GError **error); |
| 2643 | Flash *flash_proxy_new_sync ( |
| 2644 | GDBusConnection *connection, |
| 2645 | GDBusProxyFlags flags, |
| 2646 | const gchar *name, |
| 2647 | const gchar *object_path, |
| 2648 | GCancellable *cancellable, |
| 2649 | GError **error); |
| 2650 | |
| 2651 | void flash_proxy_new_for_bus ( |
| 2652 | GBusType bus_type, |
| 2653 | GDBusProxyFlags flags, |
| 2654 | const gchar *name, |
| 2655 | const gchar *object_path, |
| 2656 | GCancellable *cancellable, |
| 2657 | GAsyncReadyCallback callback, |
| 2658 | gpointer user_data); |
| 2659 | Flash *flash_proxy_new_for_bus_finish ( |
| 2660 | GAsyncResult *res, |
| 2661 | GError **error); |
| 2662 | Flash *flash_proxy_new_for_bus_sync ( |
| 2663 | GBusType bus_type, |
| 2664 | GDBusProxyFlags flags, |
| 2665 | const gchar *name, |
| 2666 | const gchar *object_path, |
| 2667 | GCancellable *cancellable, |
| 2668 | GError **error); |
| 2669 | |
| 2670 | |
| 2671 | /* ---- */ |
| 2672 | |
| 2673 | #define TYPE_FLASH_SKELETON (flash_skeleton_get_type ()) |
| 2674 | #define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton)) |
| 2675 | #define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass)) |
| 2676 | #define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass)) |
| 2677 | #define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON)) |
| 2678 | #define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON)) |
| 2679 | |
| 2680 | typedef struct _FlashSkeleton FlashSkeleton; |
| 2681 | typedef struct _FlashSkeletonClass FlashSkeletonClass; |
| 2682 | typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate; |
| 2683 | |
| 2684 | struct _FlashSkeleton |
| 2685 | { |
| 2686 | /*< private >*/ |
| 2687 | GDBusInterfaceSkeleton parent_instance; |
| 2688 | FlashSkeletonPrivate *priv; |
| 2689 | }; |
| 2690 | |
| 2691 | struct _FlashSkeletonClass |
| 2692 | { |
| 2693 | GDBusInterfaceSkeletonClass parent_class; |
| 2694 | }; |
| 2695 | |
| 2696 | GType flash_skeleton_get_type (void) G_GNUC_CONST; |
| 2697 | |
| 2698 | Flash *flash_skeleton_new (void); |
| 2699 | |
| 2700 | |
| 2701 | /* ------------------------------------------------------------------------ */ |
| 2702 | /* Declarations for org.openbmc.Button */ |
| 2703 | |
| 2704 | #define TYPE_BUTTON (button_get_type ()) |
| 2705 | #define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button)) |
| 2706 | #define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON)) |
| 2707 | #define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface)) |
| 2708 | |
| 2709 | struct _Button; |
| 2710 | typedef struct _Button Button; |
| 2711 | typedef struct _ButtonIface ButtonIface; |
| 2712 | |
| 2713 | struct _ButtonIface |
| 2714 | { |
| 2715 | GTypeInterface parent_iface; |
| 2716 | |
| 2717 | |
| 2718 | |
| 2719 | gboolean (*handle_is_on) ( |
| 2720 | Button *object, |
| 2721 | GDBusMethodInvocation *invocation); |
| 2722 | |
| 2723 | gboolean (*handle_sim_button_long_press) ( |
| 2724 | Button *object, |
| 2725 | GDBusMethodInvocation *invocation); |
| 2726 | |
| 2727 | gboolean (*handle_sim_button_press) ( |
| 2728 | Button *object, |
| 2729 | GDBusMethodInvocation *invocation); |
| 2730 | |
| 2731 | gboolean (*get_state) (Button *object); |
| 2732 | |
| 2733 | void (*button_pressed) ( |
| 2734 | Button *object); |
| 2735 | |
| 2736 | void (*button_pressed_long) ( |
| 2737 | Button *object); |
| 2738 | |
| 2739 | void (*button_release) ( |
| 2740 | Button *object); |
| 2741 | |
| 2742 | }; |
| 2743 | |
| 2744 | GType button_get_type (void) G_GNUC_CONST; |
| 2745 | |
| 2746 | GDBusInterfaceInfo *button_interface_info (void); |
| 2747 | guint button_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2748 | |
| 2749 | |
| 2750 | /* D-Bus method call completion functions: */ |
| 2751 | void button_complete_is_on ( |
| 2752 | Button *object, |
| 2753 | GDBusMethodInvocation *invocation, |
| 2754 | gboolean state); |
| 2755 | |
| 2756 | void button_complete_sim_button_press ( |
| 2757 | Button *object, |
| 2758 | GDBusMethodInvocation *invocation); |
| 2759 | |
| 2760 | void button_complete_sim_button_long_press ( |
| 2761 | Button *object, |
| 2762 | GDBusMethodInvocation *invocation); |
| 2763 | |
| 2764 | |
| 2765 | |
| 2766 | /* D-Bus signal emissions functions: */ |
| 2767 | void button_emit_button_release ( |
| 2768 | Button *object); |
| 2769 | |
| 2770 | void button_emit_button_pressed ( |
| 2771 | Button *object); |
| 2772 | |
| 2773 | void button_emit_button_pressed_long ( |
| 2774 | Button *object); |
| 2775 | |
| 2776 | |
| 2777 | |
| 2778 | /* D-Bus method calls: */ |
| 2779 | void button_call_is_on ( |
| 2780 | Button *proxy, |
| 2781 | GCancellable *cancellable, |
| 2782 | GAsyncReadyCallback callback, |
| 2783 | gpointer user_data); |
| 2784 | |
| 2785 | gboolean button_call_is_on_finish ( |
| 2786 | Button *proxy, |
| 2787 | gboolean *out_state, |
| 2788 | GAsyncResult *res, |
| 2789 | GError **error); |
| 2790 | |
| 2791 | gboolean button_call_is_on_sync ( |
| 2792 | Button *proxy, |
| 2793 | gboolean *out_state, |
| 2794 | GCancellable *cancellable, |
| 2795 | GError **error); |
| 2796 | |
| 2797 | void button_call_sim_button_press ( |
| 2798 | Button *proxy, |
| 2799 | GCancellable *cancellable, |
| 2800 | GAsyncReadyCallback callback, |
| 2801 | gpointer user_data); |
| 2802 | |
| 2803 | gboolean button_call_sim_button_press_finish ( |
| 2804 | Button *proxy, |
| 2805 | GAsyncResult *res, |
| 2806 | GError **error); |
| 2807 | |
| 2808 | gboolean button_call_sim_button_press_sync ( |
| 2809 | Button *proxy, |
| 2810 | GCancellable *cancellable, |
| 2811 | GError **error); |
| 2812 | |
| 2813 | void button_call_sim_button_long_press ( |
| 2814 | Button *proxy, |
| 2815 | GCancellable *cancellable, |
| 2816 | GAsyncReadyCallback callback, |
| 2817 | gpointer user_data); |
| 2818 | |
| 2819 | gboolean button_call_sim_button_long_press_finish ( |
| 2820 | Button *proxy, |
| 2821 | GAsyncResult *res, |
| 2822 | GError **error); |
| 2823 | |
| 2824 | gboolean button_call_sim_button_long_press_sync ( |
| 2825 | Button *proxy, |
| 2826 | GCancellable *cancellable, |
| 2827 | GError **error); |
| 2828 | |
| 2829 | |
| 2830 | |
| 2831 | /* D-Bus property accessors: */ |
| 2832 | gboolean button_get_state (Button *object); |
| 2833 | void button_set_state (Button *object, gboolean value); |
| 2834 | |
| 2835 | |
| 2836 | /* ---- */ |
| 2837 | |
| 2838 | #define TYPE_BUTTON_PROXY (button_proxy_get_type ()) |
| 2839 | #define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy)) |
| 2840 | #define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass)) |
| 2841 | #define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass)) |
| 2842 | #define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY)) |
| 2843 | #define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY)) |
| 2844 | |
| 2845 | typedef struct _ButtonProxy ButtonProxy; |
| 2846 | typedef struct _ButtonProxyClass ButtonProxyClass; |
| 2847 | typedef struct _ButtonProxyPrivate ButtonProxyPrivate; |
| 2848 | |
| 2849 | struct _ButtonProxy |
| 2850 | { |
| 2851 | /*< private >*/ |
| 2852 | GDBusProxy parent_instance; |
| 2853 | ButtonProxyPrivate *priv; |
| 2854 | }; |
| 2855 | |
| 2856 | struct _ButtonProxyClass |
| 2857 | { |
| 2858 | GDBusProxyClass parent_class; |
| 2859 | }; |
| 2860 | |
| 2861 | GType button_proxy_get_type (void) G_GNUC_CONST; |
| 2862 | |
| 2863 | void button_proxy_new ( |
| 2864 | GDBusConnection *connection, |
| 2865 | GDBusProxyFlags flags, |
| 2866 | const gchar *name, |
| 2867 | const gchar *object_path, |
| 2868 | GCancellable *cancellable, |
| 2869 | GAsyncReadyCallback callback, |
| 2870 | gpointer user_data); |
| 2871 | Button *button_proxy_new_finish ( |
| 2872 | GAsyncResult *res, |
| 2873 | GError **error); |
| 2874 | Button *button_proxy_new_sync ( |
| 2875 | GDBusConnection *connection, |
| 2876 | GDBusProxyFlags flags, |
| 2877 | const gchar *name, |
| 2878 | const gchar *object_path, |
| 2879 | GCancellable *cancellable, |
| 2880 | GError **error); |
| 2881 | |
| 2882 | void button_proxy_new_for_bus ( |
| 2883 | GBusType bus_type, |
| 2884 | GDBusProxyFlags flags, |
| 2885 | const gchar *name, |
| 2886 | const gchar *object_path, |
| 2887 | GCancellable *cancellable, |
| 2888 | GAsyncReadyCallback callback, |
| 2889 | gpointer user_data); |
| 2890 | Button *button_proxy_new_for_bus_finish ( |
| 2891 | GAsyncResult *res, |
| 2892 | GError **error); |
| 2893 | Button *button_proxy_new_for_bus_sync ( |
| 2894 | GBusType bus_type, |
| 2895 | GDBusProxyFlags flags, |
| 2896 | const gchar *name, |
| 2897 | const gchar *object_path, |
| 2898 | GCancellable *cancellable, |
| 2899 | GError **error); |
| 2900 | |
| 2901 | |
| 2902 | /* ---- */ |
| 2903 | |
| 2904 | #define TYPE_BUTTON_SKELETON (button_skeleton_get_type ()) |
| 2905 | #define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton)) |
| 2906 | #define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) |
| 2907 | #define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) |
| 2908 | #define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON)) |
| 2909 | #define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON)) |
| 2910 | |
| 2911 | typedef struct _ButtonSkeleton ButtonSkeleton; |
| 2912 | typedef struct _ButtonSkeletonClass ButtonSkeletonClass; |
| 2913 | typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate; |
| 2914 | |
| 2915 | struct _ButtonSkeleton |
| 2916 | { |
| 2917 | /*< private >*/ |
| 2918 | GDBusInterfaceSkeleton parent_instance; |
| 2919 | ButtonSkeletonPrivate *priv; |
| 2920 | }; |
| 2921 | |
| 2922 | struct _ButtonSkeletonClass |
| 2923 | { |
| 2924 | GDBusInterfaceSkeletonClass parent_class; |
| 2925 | }; |
| 2926 | |
| 2927 | GType button_skeleton_get_type (void) G_GNUC_CONST; |
| 2928 | |
| 2929 | Button *button_skeleton_new (void); |
| 2930 | |
| 2931 | |
| 2932 | /* ------------------------------------------------------------------------ */ |
| 2933 | /* Declarations for org.openbmc.Led */ |
| 2934 | |
| 2935 | #define TYPE_LED (led_get_type ()) |
| 2936 | #define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led)) |
| 2937 | #define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED)) |
| 2938 | #define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface)) |
| 2939 | |
| 2940 | struct _Led; |
| 2941 | typedef struct _Led Led; |
| 2942 | typedef struct _LedIface LedIface; |
| 2943 | |
| 2944 | struct _LedIface |
| 2945 | { |
| 2946 | GTypeInterface parent_iface; |
| 2947 | |
| 2948 | |
| 2949 | gboolean (*handle_set_blink_fast) ( |
| 2950 | Led *object, |
| 2951 | GDBusMethodInvocation *invocation); |
| 2952 | |
| 2953 | gboolean (*handle_set_blink_slow) ( |
| 2954 | Led *object, |
| 2955 | GDBusMethodInvocation *invocation); |
| 2956 | |
| 2957 | gboolean (*handle_set_off) ( |
| 2958 | Led *object, |
| 2959 | GDBusMethodInvocation *invocation); |
| 2960 | |
| 2961 | gboolean (*handle_set_on) ( |
| 2962 | Led *object, |
| 2963 | GDBusMethodInvocation *invocation); |
| 2964 | |
| 2965 | gint (*get_color) (Led *object); |
| 2966 | |
| 2967 | const gchar * (*get_function) (Led *object); |
| 2968 | |
| 2969 | }; |
| 2970 | |
| 2971 | GType led_get_type (void) G_GNUC_CONST; |
| 2972 | |
| 2973 | GDBusInterfaceInfo *led_interface_info (void); |
| 2974 | guint led_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2975 | |
| 2976 | |
| 2977 | /* D-Bus method call completion functions: */ |
| 2978 | void led_complete_set_on ( |
| 2979 | Led *object, |
| 2980 | GDBusMethodInvocation *invocation); |
| 2981 | |
| 2982 | void led_complete_set_off ( |
| 2983 | Led *object, |
| 2984 | GDBusMethodInvocation *invocation); |
| 2985 | |
| 2986 | void led_complete_set_blink_slow ( |
| 2987 | Led *object, |
| 2988 | GDBusMethodInvocation *invocation); |
| 2989 | |
| 2990 | void led_complete_set_blink_fast ( |
| 2991 | Led *object, |
| 2992 | GDBusMethodInvocation *invocation); |
| 2993 | |
| 2994 | |
| 2995 | |
| 2996 | /* D-Bus method calls: */ |
| 2997 | void led_call_set_on ( |
| 2998 | Led *proxy, |
| 2999 | GCancellable *cancellable, |
| 3000 | GAsyncReadyCallback callback, |
| 3001 | gpointer user_data); |
| 3002 | |
| 3003 | gboolean led_call_set_on_finish ( |
| 3004 | Led *proxy, |
| 3005 | GAsyncResult *res, |
| 3006 | GError **error); |
| 3007 | |
| 3008 | gboolean led_call_set_on_sync ( |
| 3009 | Led *proxy, |
| 3010 | GCancellable *cancellable, |
| 3011 | GError **error); |
| 3012 | |
| 3013 | void led_call_set_off ( |
| 3014 | Led *proxy, |
| 3015 | GCancellable *cancellable, |
| 3016 | GAsyncReadyCallback callback, |
| 3017 | gpointer user_data); |
| 3018 | |
| 3019 | gboolean led_call_set_off_finish ( |
| 3020 | Led *proxy, |
| 3021 | GAsyncResult *res, |
| 3022 | GError **error); |
| 3023 | |
| 3024 | gboolean led_call_set_off_sync ( |
| 3025 | Led *proxy, |
| 3026 | GCancellable *cancellable, |
| 3027 | GError **error); |
| 3028 | |
| 3029 | void led_call_set_blink_slow ( |
| 3030 | Led *proxy, |
| 3031 | GCancellable *cancellable, |
| 3032 | GAsyncReadyCallback callback, |
| 3033 | gpointer user_data); |
| 3034 | |
| 3035 | gboolean led_call_set_blink_slow_finish ( |
| 3036 | Led *proxy, |
| 3037 | GAsyncResult *res, |
| 3038 | GError **error); |
| 3039 | |
| 3040 | gboolean led_call_set_blink_slow_sync ( |
| 3041 | Led *proxy, |
| 3042 | GCancellable *cancellable, |
| 3043 | GError **error); |
| 3044 | |
| 3045 | void led_call_set_blink_fast ( |
| 3046 | Led *proxy, |
| 3047 | GCancellable *cancellable, |
| 3048 | GAsyncReadyCallback callback, |
| 3049 | gpointer user_data); |
| 3050 | |
| 3051 | gboolean led_call_set_blink_fast_finish ( |
| 3052 | Led *proxy, |
| 3053 | GAsyncResult *res, |
| 3054 | GError **error); |
| 3055 | |
| 3056 | gboolean led_call_set_blink_fast_sync ( |
| 3057 | Led *proxy, |
| 3058 | GCancellable *cancellable, |
| 3059 | GError **error); |
| 3060 | |
| 3061 | |
| 3062 | |
| 3063 | /* D-Bus property accessors: */ |
| 3064 | gint led_get_color (Led *object); |
| 3065 | void led_set_color (Led *object, gint value); |
| 3066 | |
| 3067 | const gchar *led_get_function (Led *object); |
| 3068 | gchar *led_dup_function (Led *object); |
| 3069 | void led_set_function (Led *object, const gchar *value); |
| 3070 | |
| 3071 | |
| 3072 | /* ---- */ |
| 3073 | |
| 3074 | #define TYPE_LED_PROXY (led_proxy_get_type ()) |
| 3075 | #define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy)) |
| 3076 | #define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass)) |
| 3077 | #define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass)) |
| 3078 | #define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY)) |
| 3079 | #define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY)) |
| 3080 | |
| 3081 | typedef struct _LedProxy LedProxy; |
| 3082 | typedef struct _LedProxyClass LedProxyClass; |
| 3083 | typedef struct _LedProxyPrivate LedProxyPrivate; |
| 3084 | |
| 3085 | struct _LedProxy |
| 3086 | { |
| 3087 | /*< private >*/ |
| 3088 | GDBusProxy parent_instance; |
| 3089 | LedProxyPrivate *priv; |
| 3090 | }; |
| 3091 | |
| 3092 | struct _LedProxyClass |
| 3093 | { |
| 3094 | GDBusProxyClass parent_class; |
| 3095 | }; |
| 3096 | |
| 3097 | GType led_proxy_get_type (void) G_GNUC_CONST; |
| 3098 | |
| 3099 | void led_proxy_new ( |
| 3100 | GDBusConnection *connection, |
| 3101 | GDBusProxyFlags flags, |
| 3102 | const gchar *name, |
| 3103 | const gchar *object_path, |
| 3104 | GCancellable *cancellable, |
| 3105 | GAsyncReadyCallback callback, |
| 3106 | gpointer user_data); |
| 3107 | Led *led_proxy_new_finish ( |
| 3108 | GAsyncResult *res, |
| 3109 | GError **error); |
| 3110 | Led *led_proxy_new_sync ( |
| 3111 | GDBusConnection *connection, |
| 3112 | GDBusProxyFlags flags, |
| 3113 | const gchar *name, |
| 3114 | const gchar *object_path, |
| 3115 | GCancellable *cancellable, |
| 3116 | GError **error); |
| 3117 | |
| 3118 | void led_proxy_new_for_bus ( |
| 3119 | GBusType bus_type, |
| 3120 | GDBusProxyFlags flags, |
| 3121 | const gchar *name, |
| 3122 | const gchar *object_path, |
| 3123 | GCancellable *cancellable, |
| 3124 | GAsyncReadyCallback callback, |
| 3125 | gpointer user_data); |
| 3126 | Led *led_proxy_new_for_bus_finish ( |
| 3127 | GAsyncResult *res, |
| 3128 | GError **error); |
| 3129 | Led *led_proxy_new_for_bus_sync ( |
| 3130 | GBusType bus_type, |
| 3131 | GDBusProxyFlags flags, |
| 3132 | const gchar *name, |
| 3133 | const gchar *object_path, |
| 3134 | GCancellable *cancellable, |
| 3135 | GError **error); |
| 3136 | |
| 3137 | |
| 3138 | /* ---- */ |
| 3139 | |
| 3140 | #define TYPE_LED_SKELETON (led_skeleton_get_type ()) |
| 3141 | #define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton)) |
| 3142 | #define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass)) |
| 3143 | #define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass)) |
| 3144 | #define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON)) |
| 3145 | #define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON)) |
| 3146 | |
| 3147 | typedef struct _LedSkeleton LedSkeleton; |
| 3148 | typedef struct _LedSkeletonClass LedSkeletonClass; |
| 3149 | typedef struct _LedSkeletonPrivate LedSkeletonPrivate; |
| 3150 | |
| 3151 | struct _LedSkeleton |
| 3152 | { |
| 3153 | /*< private >*/ |
| 3154 | GDBusInterfaceSkeleton parent_instance; |
| 3155 | LedSkeletonPrivate *priv; |
| 3156 | }; |
| 3157 | |
| 3158 | struct _LedSkeletonClass |
| 3159 | { |
| 3160 | GDBusInterfaceSkeletonClass parent_class; |
| 3161 | }; |
| 3162 | |
| 3163 | GType led_skeleton_get_type (void) G_GNUC_CONST; |
| 3164 | |
| 3165 | Led *led_skeleton_new (void); |
| 3166 | |
| 3167 | |
| 3168 | /* ---- */ |
| 3169 | |
| 3170 | #define TYPE_OBJECT (object_get_type ()) |
| 3171 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 3172 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 3173 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 3174 | |
| 3175 | struct _Object; |
| 3176 | typedef struct _Object Object; |
| 3177 | typedef struct _ObjectIface ObjectIface; |
| 3178 | |
| 3179 | struct _ObjectIface |
| 3180 | { |
| 3181 | GTypeInterface parent_iface; |
| 3182 | }; |
| 3183 | |
| 3184 | GType object_get_type (void) G_GNUC_CONST; |
| 3185 | |
| 3186 | Occ *object_get_occ (Object *object); |
| 3187 | Fan *object_get_fan (Object *object); |
| 3188 | SensorValue *object_get_sensor_value (Object *object); |
| 3189 | SensorThreshold *object_get_sensor_threshold (Object *object); |
| 3190 | SensorI2c *object_get_sensor_i2c (Object *object); |
| 3191 | SensorMatch *object_get_sensor_match (Object *object); |
| 3192 | Process *object_get_process (Object *object); |
| 3193 | Control *object_get_control (Object *object); |
| 3194 | ControlBmc *object_get_control_bmc (Object *object); |
| 3195 | ControlHost *object_get_control_host (Object *object); |
| 3196 | ControlPower *object_get_control_power (Object *object); |
| 3197 | Watchdog *object_get_watchdog (Object *object); |
| 3198 | EventLog *object_get_event_log (Object *object); |
| 3199 | Flash *object_get_flash (Object *object); |
| 3200 | Button *object_get_button (Object *object); |
| 3201 | Led *object_get_led (Object *object); |
| 3202 | Occ *object_peek_occ (Object *object); |
| 3203 | Fan *object_peek_fan (Object *object); |
| 3204 | SensorValue *object_peek_sensor_value (Object *object); |
| 3205 | SensorThreshold *object_peek_sensor_threshold (Object *object); |
| 3206 | SensorI2c *object_peek_sensor_i2c (Object *object); |
| 3207 | SensorMatch *object_peek_sensor_match (Object *object); |
| 3208 | Process *object_peek_process (Object *object); |
| 3209 | Control *object_peek_control (Object *object); |
| 3210 | ControlBmc *object_peek_control_bmc (Object *object); |
| 3211 | ControlHost *object_peek_control_host (Object *object); |
| 3212 | ControlPower *object_peek_control_power (Object *object); |
| 3213 | Watchdog *object_peek_watchdog (Object *object); |
| 3214 | EventLog *object_peek_event_log (Object *object); |
| 3215 | Flash *object_peek_flash (Object *object); |
| 3216 | Button *object_peek_button (Object *object); |
| 3217 | Led *object_peek_led (Object *object); |
| 3218 | |
| 3219 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 3220 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 3221 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 3222 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 3223 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 3224 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 3225 | |
| 3226 | typedef struct _ObjectProxy ObjectProxy; |
| 3227 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 3228 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 3229 | |
| 3230 | struct _ObjectProxy |
| 3231 | { |
| 3232 | /*< private >*/ |
| 3233 | GDBusObjectProxy parent_instance; |
| 3234 | ObjectProxyPrivate *priv; |
| 3235 | }; |
| 3236 | |
| 3237 | struct _ObjectProxyClass |
| 3238 | { |
| 3239 | GDBusObjectProxyClass parent_class; |
| 3240 | }; |
| 3241 | |
| 3242 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 3243 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 3244 | |
| 3245 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 3246 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 3247 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 3248 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 3249 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 3250 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 3251 | |
| 3252 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 3253 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 3254 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 3255 | |
| 3256 | struct _ObjectSkeleton |
| 3257 | { |
| 3258 | /*< private >*/ |
| 3259 | GDBusObjectSkeleton parent_instance; |
| 3260 | ObjectSkeletonPrivate *priv; |
| 3261 | }; |
| 3262 | |
| 3263 | struct _ObjectSkeletonClass |
| 3264 | { |
| 3265 | GDBusObjectSkeletonClass parent_class; |
| 3266 | }; |
| 3267 | |
| 3268 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 3269 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 3270 | void object_skeleton_set_occ (ObjectSkeleton *object, Occ *interface_); |
| 3271 | void object_skeleton_set_fan (ObjectSkeleton *object, Fan *interface_); |
| 3272 | void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_); |
| 3273 | void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_); |
| 3274 | void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_); |
| 3275 | void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_); |
| 3276 | void object_skeleton_set_process (ObjectSkeleton *object, Process *interface_); |
| 3277 | void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_); |
| 3278 | void object_skeleton_set_control_bmc (ObjectSkeleton *object, ControlBmc *interface_); |
| 3279 | void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_); |
| 3280 | void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_); |
| 3281 | void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_); |
| 3282 | void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_); |
| 3283 | void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_); |
| 3284 | void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_); |
| 3285 | void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_); |
| 3286 | |
| 3287 | /* ---- */ |
| 3288 | |
| 3289 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 3290 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 3291 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 3292 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 3293 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 3294 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 3295 | |
| 3296 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 3297 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 3298 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 3299 | |
| 3300 | struct _ObjectManagerClient |
| 3301 | { |
| 3302 | /*< private >*/ |
| 3303 | GDBusObjectManagerClient parent_instance; |
| 3304 | ObjectManagerClientPrivate *priv; |
| 3305 | }; |
| 3306 | |
| 3307 | struct _ObjectManagerClientClass |
| 3308 | { |
| 3309 | GDBusObjectManagerClientClass parent_class; |
| 3310 | }; |
| 3311 | |
| 3312 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 3313 | |
| 3314 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 3315 | |
| 3316 | void object_manager_client_new ( |
| 3317 | GDBusConnection *connection, |
| 3318 | GDBusObjectManagerClientFlags flags, |
| 3319 | const gchar *name, |
| 3320 | const gchar *object_path, |
| 3321 | GCancellable *cancellable, |
| 3322 | GAsyncReadyCallback callback, |
| 3323 | gpointer user_data); |
| 3324 | GDBusObjectManager *object_manager_client_new_finish ( |
| 3325 | GAsyncResult *res, |
| 3326 | GError **error); |
| 3327 | GDBusObjectManager *object_manager_client_new_sync ( |
| 3328 | GDBusConnection *connection, |
| 3329 | GDBusObjectManagerClientFlags flags, |
| 3330 | const gchar *name, |
| 3331 | const gchar *object_path, |
| 3332 | GCancellable *cancellable, |
| 3333 | GError **error); |
| 3334 | |
| 3335 | void object_manager_client_new_for_bus ( |
| 3336 | GBusType bus_type, |
| 3337 | GDBusObjectManagerClientFlags flags, |
| 3338 | const gchar *name, |
| 3339 | const gchar *object_path, |
| 3340 | GCancellable *cancellable, |
| 3341 | GAsyncReadyCallback callback, |
| 3342 | gpointer user_data); |
| 3343 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 3344 | GAsyncResult *res, |
| 3345 | GError **error); |
| 3346 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 3347 | GBusType bus_type, |
| 3348 | GDBusObjectManagerClientFlags flags, |
| 3349 | const gchar *name, |
| 3350 | const gchar *object_path, |
| 3351 | GCancellable *cancellable, |
| 3352 | GError **error); |
| 3353 | |
| 3354 | |
| 3355 | G_END_DECLS |
| 3356 | |
| 3357 | #endif /* __INTERFACES_OPENBMC_INTF_H__ */ |