1 /* 2 * Generated by gdbus-codegen 2.48.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 __OPENBMC_INTF_H__ 8 #define __OPENBMC_INTF_H__ 9 10 #include <gio/gio.h> 11 12 G_BEGIN_DECLS 13 14 15 /* ------------------------------------------------------------------------ */ 16 /* Declarations for org.openbmc.Hwmon */ 17 18 #define TYPE_HWMON (hwmon_get_type ()) 19 #define HWMON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HWMON, Hwmon)) 20 #define IS_HWMON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HWMON)) 21 #define HWMON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HWMON, HwmonIface)) 22 23 struct _Hwmon; 24 typedef struct _Hwmon Hwmon; 25 typedef struct _HwmonIface HwmonIface; 26 27 struct _HwmonIface 28 { 29 GTypeInterface parent_iface; 30 31 gint (*get_poll_interval) (Hwmon *object); 32 33 gint (*get_scale) (Hwmon *object); 34 35 const gchar * (*get_sysfs_path) (Hwmon *object); 36 37 }; 38 39 GType hwmon_get_type (void) G_GNUC_CONST; 40 41 GDBusInterfaceInfo *hwmon_interface_info (void); 42 guint hwmon_override_properties (GObjectClass *klass, guint property_id_begin); 43 44 45 /* D-Bus property accessors: */ 46 gint hwmon_get_poll_interval (Hwmon *object); 47 void hwmon_set_poll_interval (Hwmon *object, gint value); 48 49 const gchar *hwmon_get_sysfs_path (Hwmon *object); 50 gchar *hwmon_dup_sysfs_path (Hwmon *object); 51 void hwmon_set_sysfs_path (Hwmon *object, const gchar *value); 52 53 gint hwmon_get_scale (Hwmon *object); 54 void hwmon_set_scale (Hwmon *object, gint value); 55 56 57 /* ---- */ 58 59 #define TYPE_HWMON_PROXY (hwmon_proxy_get_type ()) 60 #define HWMON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HWMON_PROXY, HwmonProxy)) 61 #define HWMON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HWMON_PROXY, HwmonProxyClass)) 62 #define HWMON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HWMON_PROXY, HwmonProxyClass)) 63 #define IS_HWMON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HWMON_PROXY)) 64 #define IS_HWMON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HWMON_PROXY)) 65 66 typedef struct _HwmonProxy HwmonProxy; 67 typedef struct _HwmonProxyClass HwmonProxyClass; 68 typedef struct _HwmonProxyPrivate HwmonProxyPrivate; 69 70 struct _HwmonProxy 71 { 72 /*< private >*/ 73 GDBusProxy parent_instance; 74 HwmonProxyPrivate *priv; 75 }; 76 77 struct _HwmonProxyClass 78 { 79 GDBusProxyClass parent_class; 80 }; 81 82 GType hwmon_proxy_get_type (void) G_GNUC_CONST; 83 84 #if GLIB_CHECK_VERSION(2, 44, 0) 85 G_DEFINE_AUTOPTR_CLEANUP_FUNC (HwmonProxy, g_object_unref) 86 #endif 87 88 void hwmon_proxy_new ( 89 GDBusConnection *connection, 90 GDBusProxyFlags flags, 91 const gchar *name, 92 const gchar *object_path, 93 GCancellable *cancellable, 94 GAsyncReadyCallback callback, 95 gpointer user_data); 96 Hwmon *hwmon_proxy_new_finish ( 97 GAsyncResult *res, 98 GError **error); 99 Hwmon *hwmon_proxy_new_sync ( 100 GDBusConnection *connection, 101 GDBusProxyFlags flags, 102 const gchar *name, 103 const gchar *object_path, 104 GCancellable *cancellable, 105 GError **error); 106 107 void hwmon_proxy_new_for_bus ( 108 GBusType bus_type, 109 GDBusProxyFlags flags, 110 const gchar *name, 111 const gchar *object_path, 112 GCancellable *cancellable, 113 GAsyncReadyCallback callback, 114 gpointer user_data); 115 Hwmon *hwmon_proxy_new_for_bus_finish ( 116 GAsyncResult *res, 117 GError **error); 118 Hwmon *hwmon_proxy_new_for_bus_sync ( 119 GBusType bus_type, 120 GDBusProxyFlags flags, 121 const gchar *name, 122 const gchar *object_path, 123 GCancellable *cancellable, 124 GError **error); 125 126 127 /* ---- */ 128 129 #define TYPE_HWMON_SKELETON (hwmon_skeleton_get_type ()) 130 #define HWMON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HWMON_SKELETON, HwmonSkeleton)) 131 #define HWMON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HWMON_SKELETON, HwmonSkeletonClass)) 132 #define HWMON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HWMON_SKELETON, HwmonSkeletonClass)) 133 #define IS_HWMON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HWMON_SKELETON)) 134 #define IS_HWMON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HWMON_SKELETON)) 135 136 typedef struct _HwmonSkeleton HwmonSkeleton; 137 typedef struct _HwmonSkeletonClass HwmonSkeletonClass; 138 typedef struct _HwmonSkeletonPrivate HwmonSkeletonPrivate; 139 140 struct _HwmonSkeleton 141 { 142 /*< private >*/ 143 GDBusInterfaceSkeleton parent_instance; 144 HwmonSkeletonPrivate *priv; 145 }; 146 147 struct _HwmonSkeletonClass 148 { 149 GDBusInterfaceSkeletonClass parent_class; 150 }; 151 152 GType hwmon_skeleton_get_type (void) G_GNUC_CONST; 153 154 #if GLIB_CHECK_VERSION(2, 44, 0) 155 G_DEFINE_AUTOPTR_CLEANUP_FUNC (HwmonSkeleton, g_object_unref) 156 #endif 157 158 Hwmon *hwmon_skeleton_new (void); 159 160 161 /* ------------------------------------------------------------------------ */ 162 /* Declarations for org.openbmc.Fan */ 163 164 #define TYPE_FAN (fan_get_type ()) 165 #define FAN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN, Fan)) 166 #define IS_FAN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN)) 167 #define FAN_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FAN, FanIface)) 168 169 struct _Fan; 170 typedef struct _Fan Fan; 171 typedef struct _FanIface FanIface; 172 173 struct _FanIface 174 { 175 GTypeInterface parent_iface; 176 177 178 179 gboolean (*handle_get_speed) ( 180 Fan *object, 181 GDBusMethodInvocation *invocation); 182 183 gboolean (*handle_set_cooling_zone) ( 184 Fan *object, 185 GDBusMethodInvocation *invocation, 186 gint arg_cooling_zone); 187 188 gboolean (*handle_set_speed) ( 189 Fan *object, 190 GDBusMethodInvocation *invocation, 191 gint arg_speed); 192 193 gint (*get_cooling_zone) (Fan *object); 194 195 gint (*get_pwm_num) (Fan *object); 196 197 gint (*get_speed) (Fan *object); 198 199 void (*speed_changed) ( 200 Fan *object, 201 gint arg_speed); 202 203 void (*tach_error) ( 204 Fan *object); 205 206 }; 207 208 GType fan_get_type (void) G_GNUC_CONST; 209 210 GDBusInterfaceInfo *fan_interface_info (void); 211 guint fan_override_properties (GObjectClass *klass, guint property_id_begin); 212 213 214 /* D-Bus method call completion functions: */ 215 void fan_complete_set_cooling_zone ( 216 Fan *object, 217 GDBusMethodInvocation *invocation); 218 219 void fan_complete_get_speed ( 220 Fan *object, 221 GDBusMethodInvocation *invocation, 222 gint speed); 223 224 void fan_complete_set_speed ( 225 Fan *object, 226 GDBusMethodInvocation *invocation); 227 228 229 230 /* D-Bus signal emissions functions: */ 231 void fan_emit_speed_changed ( 232 Fan *object, 233 gint arg_speed); 234 235 void fan_emit_tach_error ( 236 Fan *object); 237 238 239 240 /* D-Bus method calls: */ 241 void fan_call_set_cooling_zone ( 242 Fan *proxy, 243 gint arg_cooling_zone, 244 GCancellable *cancellable, 245 GAsyncReadyCallback callback, 246 gpointer user_data); 247 248 gboolean fan_call_set_cooling_zone_finish ( 249 Fan *proxy, 250 GAsyncResult *res, 251 GError **error); 252 253 gboolean fan_call_set_cooling_zone_sync ( 254 Fan *proxy, 255 gint arg_cooling_zone, 256 GCancellable *cancellable, 257 GError **error); 258 259 void fan_call_get_speed ( 260 Fan *proxy, 261 GCancellable *cancellable, 262 GAsyncReadyCallback callback, 263 gpointer user_data); 264 265 gboolean fan_call_get_speed_finish ( 266 Fan *proxy, 267 gint *out_speed, 268 GAsyncResult *res, 269 GError **error); 270 271 gboolean fan_call_get_speed_sync ( 272 Fan *proxy, 273 gint *out_speed, 274 GCancellable *cancellable, 275 GError **error); 276 277 void fan_call_set_speed ( 278 Fan *proxy, 279 gint arg_speed, 280 GCancellable *cancellable, 281 GAsyncReadyCallback callback, 282 gpointer user_data); 283 284 gboolean fan_call_set_speed_finish ( 285 Fan *proxy, 286 GAsyncResult *res, 287 GError **error); 288 289 gboolean fan_call_set_speed_sync ( 290 Fan *proxy, 291 gint arg_speed, 292 GCancellable *cancellable, 293 GError **error); 294 295 296 297 /* D-Bus property accessors: */ 298 gint fan_get_speed (Fan *object); 299 void fan_set_speed (Fan *object, gint value); 300 301 gint fan_get_cooling_zone (Fan *object); 302 void fan_set_cooling_zone (Fan *object, gint value); 303 304 gint fan_get_pwm_num (Fan *object); 305 void fan_set_pwm_num (Fan *object, gint value); 306 307 308 /* ---- */ 309 310 #define TYPE_FAN_PROXY (fan_proxy_get_type ()) 311 #define FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN_PROXY, FanProxy)) 312 #define FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FAN_PROXY, FanProxyClass)) 313 #define FAN_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FAN_PROXY, FanProxyClass)) 314 #define IS_FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN_PROXY)) 315 #define IS_FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FAN_PROXY)) 316 317 typedef struct _FanProxy FanProxy; 318 typedef struct _FanProxyClass FanProxyClass; 319 typedef struct _FanProxyPrivate FanProxyPrivate; 320 321 struct _FanProxy 322 { 323 /*< private >*/ 324 GDBusProxy parent_instance; 325 FanProxyPrivate *priv; 326 }; 327 328 struct _FanProxyClass 329 { 330 GDBusProxyClass parent_class; 331 }; 332 333 GType fan_proxy_get_type (void) G_GNUC_CONST; 334 335 #if GLIB_CHECK_VERSION(2, 44, 0) 336 G_DEFINE_AUTOPTR_CLEANUP_FUNC (FanProxy, g_object_unref) 337 #endif 338 339 void fan_proxy_new ( 340 GDBusConnection *connection, 341 GDBusProxyFlags flags, 342 const gchar *name, 343 const gchar *object_path, 344 GCancellable *cancellable, 345 GAsyncReadyCallback callback, 346 gpointer user_data); 347 Fan *fan_proxy_new_finish ( 348 GAsyncResult *res, 349 GError **error); 350 Fan *fan_proxy_new_sync ( 351 GDBusConnection *connection, 352 GDBusProxyFlags flags, 353 const gchar *name, 354 const gchar *object_path, 355 GCancellable *cancellable, 356 GError **error); 357 358 void fan_proxy_new_for_bus ( 359 GBusType bus_type, 360 GDBusProxyFlags flags, 361 const gchar *name, 362 const gchar *object_path, 363 GCancellable *cancellable, 364 GAsyncReadyCallback callback, 365 gpointer user_data); 366 Fan *fan_proxy_new_for_bus_finish ( 367 GAsyncResult *res, 368 GError **error); 369 Fan *fan_proxy_new_for_bus_sync ( 370 GBusType bus_type, 371 GDBusProxyFlags flags, 372 const gchar *name, 373 const gchar *object_path, 374 GCancellable *cancellable, 375 GError **error); 376 377 378 /* ---- */ 379 380 #define TYPE_FAN_SKELETON (fan_skeleton_get_type ()) 381 #define FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN_SKELETON, FanSkeleton)) 382 #define FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FAN_SKELETON, FanSkeletonClass)) 383 #define FAN_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FAN_SKELETON, FanSkeletonClass)) 384 #define IS_FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN_SKELETON)) 385 #define IS_FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FAN_SKELETON)) 386 387 typedef struct _FanSkeleton FanSkeleton; 388 typedef struct _FanSkeletonClass FanSkeletonClass; 389 typedef struct _FanSkeletonPrivate FanSkeletonPrivate; 390 391 struct _FanSkeleton 392 { 393 /*< private >*/ 394 GDBusInterfaceSkeleton parent_instance; 395 FanSkeletonPrivate *priv; 396 }; 397 398 struct _FanSkeletonClass 399 { 400 GDBusInterfaceSkeletonClass parent_class; 401 }; 402 403 GType fan_skeleton_get_type (void) G_GNUC_CONST; 404 405 #if GLIB_CHECK_VERSION(2, 44, 0) 406 G_DEFINE_AUTOPTR_CLEANUP_FUNC (FanSkeleton, g_object_unref) 407 #endif 408 409 Fan *fan_skeleton_new (void); 410 411 412 /* ------------------------------------------------------------------------ */ 413 /* Declarations for org.openbmc.SensorValue */ 414 415 #define TYPE_SENSOR_VALUE (sensor_value_get_type ()) 416 #define SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE, SensorValue)) 417 #define IS_SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE)) 418 #define SENSOR_VALUE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_VALUE, SensorValueIface)) 419 420 struct _SensorValue; 421 typedef struct _SensorValue SensorValue; 422 typedef struct _SensorValueIface SensorValueIface; 423 424 struct _SensorValueIface 425 { 426 GTypeInterface parent_iface; 427 428 429 430 gboolean (*handle_get_value) ( 431 SensorValue *object, 432 GDBusMethodInvocation *invocation); 433 434 gboolean (*handle_init) ( 435 SensorValue *object, 436 GDBusMethodInvocation *invocation); 437 438 gboolean (*handle_set_value) ( 439 SensorValue *object, 440 GDBusMethodInvocation *invocation, 441 GVariant *arg_value); 442 443 gint (*get_heatbeat) (SensorValue *object); 444 445 gint (*get_poll_interval) (SensorValue *object); 446 447 gboolean (*get_settable) (SensorValue *object); 448 449 const gchar * (*get_units) (SensorValue *object); 450 451 GVariant * (*get_value) (SensorValue *object); 452 453 void (*changed) ( 454 SensorValue *object, 455 GVariant *arg_value, 456 const gchar *arg_units); 457 458 void (*error) ( 459 SensorValue *object); 460 461 void (*heartbeat) ( 462 SensorValue *object, 463 const gchar *arg_bus_name); 464 465 }; 466 467 GType sensor_value_get_type (void) G_GNUC_CONST; 468 469 GDBusInterfaceInfo *sensor_value_interface_info (void); 470 guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin); 471 472 473 /* D-Bus method call completion functions: */ 474 void sensor_value_complete_init ( 475 SensorValue *object, 476 GDBusMethodInvocation *invocation); 477 478 void sensor_value_complete_get_value ( 479 SensorValue *object, 480 GDBusMethodInvocation *invocation, 481 GVariant *value); 482 483 void sensor_value_complete_set_value ( 484 SensorValue *object, 485 GDBusMethodInvocation *invocation); 486 487 488 489 /* D-Bus signal emissions functions: */ 490 void sensor_value_emit_changed ( 491 SensorValue *object, 492 GVariant *arg_value, 493 const gchar *arg_units); 494 495 void sensor_value_emit_error ( 496 SensorValue *object); 497 498 void sensor_value_emit_heartbeat ( 499 SensorValue *object, 500 const gchar *arg_bus_name); 501 502 503 504 /* D-Bus method calls: */ 505 void sensor_value_call_init ( 506 SensorValue *proxy, 507 GCancellable *cancellable, 508 GAsyncReadyCallback callback, 509 gpointer user_data); 510 511 gboolean sensor_value_call_init_finish ( 512 SensorValue *proxy, 513 GAsyncResult *res, 514 GError **error); 515 516 gboolean sensor_value_call_init_sync ( 517 SensorValue *proxy, 518 GCancellable *cancellable, 519 GError **error); 520 521 void sensor_value_call_get_value ( 522 SensorValue *proxy, 523 GCancellable *cancellable, 524 GAsyncReadyCallback callback, 525 gpointer user_data); 526 527 gboolean sensor_value_call_get_value_finish ( 528 SensorValue *proxy, 529 GVariant **out_value, 530 GAsyncResult *res, 531 GError **error); 532 533 gboolean sensor_value_call_get_value_sync ( 534 SensorValue *proxy, 535 GVariant **out_value, 536 GCancellable *cancellable, 537 GError **error); 538 539 void sensor_value_call_set_value ( 540 SensorValue *proxy, 541 GVariant *arg_value, 542 GCancellable *cancellable, 543 GAsyncReadyCallback callback, 544 gpointer user_data); 545 546 gboolean sensor_value_call_set_value_finish ( 547 SensorValue *proxy, 548 GAsyncResult *res, 549 GError **error); 550 551 gboolean sensor_value_call_set_value_sync ( 552 SensorValue *proxy, 553 GVariant *arg_value, 554 GCancellable *cancellable, 555 GError **error); 556 557 558 559 /* D-Bus property accessors: */ 560 GVariant *sensor_value_get_value (SensorValue *object); 561 GVariant *sensor_value_dup_value (SensorValue *object); 562 void sensor_value_set_value (SensorValue *object, GVariant *value); 563 564 const gchar *sensor_value_get_units (SensorValue *object); 565 gchar *sensor_value_dup_units (SensorValue *object); 566 void sensor_value_set_units (SensorValue *object, const gchar *value); 567 568 gint sensor_value_get_poll_interval (SensorValue *object); 569 void sensor_value_set_poll_interval (SensorValue *object, gint value); 570 571 gint sensor_value_get_heatbeat (SensorValue *object); 572 void sensor_value_set_heatbeat (SensorValue *object, gint value); 573 574 gboolean sensor_value_get_settable (SensorValue *object); 575 void sensor_value_set_settable (SensorValue *object, gboolean value); 576 577 578 /* ---- */ 579 580 #define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ()) 581 #define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy)) 582 #define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) 583 #define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) 584 #define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY)) 585 #define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY)) 586 587 typedef struct _SensorValueProxy SensorValueProxy; 588 typedef struct _SensorValueProxyClass SensorValueProxyClass; 589 typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate; 590 591 struct _SensorValueProxy 592 { 593 /*< private >*/ 594 GDBusProxy parent_instance; 595 SensorValueProxyPrivate *priv; 596 }; 597 598 struct _SensorValueProxyClass 599 { 600 GDBusProxyClass parent_class; 601 }; 602 603 GType sensor_value_proxy_get_type (void) G_GNUC_CONST; 604 605 #if GLIB_CHECK_VERSION(2, 44, 0) 606 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorValueProxy, g_object_unref) 607 #endif 608 609 void sensor_value_proxy_new ( 610 GDBusConnection *connection, 611 GDBusProxyFlags flags, 612 const gchar *name, 613 const gchar *object_path, 614 GCancellable *cancellable, 615 GAsyncReadyCallback callback, 616 gpointer user_data); 617 SensorValue *sensor_value_proxy_new_finish ( 618 GAsyncResult *res, 619 GError **error); 620 SensorValue *sensor_value_proxy_new_sync ( 621 GDBusConnection *connection, 622 GDBusProxyFlags flags, 623 const gchar *name, 624 const gchar *object_path, 625 GCancellable *cancellable, 626 GError **error); 627 628 void sensor_value_proxy_new_for_bus ( 629 GBusType bus_type, 630 GDBusProxyFlags flags, 631 const gchar *name, 632 const gchar *object_path, 633 GCancellable *cancellable, 634 GAsyncReadyCallback callback, 635 gpointer user_data); 636 SensorValue *sensor_value_proxy_new_for_bus_finish ( 637 GAsyncResult *res, 638 GError **error); 639 SensorValue *sensor_value_proxy_new_for_bus_sync ( 640 GBusType bus_type, 641 GDBusProxyFlags flags, 642 const gchar *name, 643 const gchar *object_path, 644 GCancellable *cancellable, 645 GError **error); 646 647 648 /* ---- */ 649 650 #define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ()) 651 #define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton)) 652 #define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) 653 #define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) 654 #define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON)) 655 #define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON)) 656 657 typedef struct _SensorValueSkeleton SensorValueSkeleton; 658 typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass; 659 typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate; 660 661 struct _SensorValueSkeleton 662 { 663 /*< private >*/ 664 GDBusInterfaceSkeleton parent_instance; 665 SensorValueSkeletonPrivate *priv; 666 }; 667 668 struct _SensorValueSkeletonClass 669 { 670 GDBusInterfaceSkeletonClass parent_class; 671 }; 672 673 GType sensor_value_skeleton_get_type (void) G_GNUC_CONST; 674 675 #if GLIB_CHECK_VERSION(2, 44, 0) 676 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorValueSkeleton, g_object_unref) 677 #endif 678 679 SensorValue *sensor_value_skeleton_new (void); 680 681 682 /* ------------------------------------------------------------------------ */ 683 /* Declarations for org.openbmc.SensorThreshold */ 684 685 #define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ()) 686 #define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold)) 687 #define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD)) 688 #define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface)) 689 690 struct _SensorThreshold; 691 typedef struct _SensorThreshold SensorThreshold; 692 typedef struct _SensorThresholdIface SensorThresholdIface; 693 694 struct _SensorThresholdIface 695 { 696 GTypeInterface parent_iface; 697 698 699 700 gboolean (*handle_get_state) ( 701 SensorThreshold *object, 702 GDBusMethodInvocation *invocation); 703 704 GVariant * (*get_lower_critical) (SensorThreshold *object); 705 706 GVariant * (*get_lower_warning) (SensorThreshold *object); 707 708 guchar (*get_state) (SensorThreshold *object); 709 710 GVariant * (*get_upper_critical) (SensorThreshold *object); 711 712 GVariant * (*get_upper_warning) (SensorThreshold *object); 713 714 void (*critical) ( 715 SensorThreshold *object); 716 717 void (*normal) ( 718 SensorThreshold *object); 719 720 void (*warning) ( 721 SensorThreshold *object); 722 723 }; 724 725 GType sensor_threshold_get_type (void) G_GNUC_CONST; 726 727 GDBusInterfaceInfo *sensor_threshold_interface_info (void); 728 guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin); 729 730 731 /* D-Bus method call completion functions: */ 732 void sensor_threshold_complete_get_state ( 733 SensorThreshold *object, 734 GDBusMethodInvocation *invocation, 735 guchar state); 736 737 738 739 /* D-Bus signal emissions functions: */ 740 void sensor_threshold_emit_warning ( 741 SensorThreshold *object); 742 743 void sensor_threshold_emit_critical ( 744 SensorThreshold *object); 745 746 void sensor_threshold_emit_normal ( 747 SensorThreshold *object); 748 749 750 751 /* D-Bus method calls: */ 752 void sensor_threshold_call_get_state ( 753 SensorThreshold *proxy, 754 GCancellable *cancellable, 755 GAsyncReadyCallback callback, 756 gpointer user_data); 757 758 gboolean sensor_threshold_call_get_state_finish ( 759 SensorThreshold *proxy, 760 guchar *out_state, 761 GAsyncResult *res, 762 GError **error); 763 764 gboolean sensor_threshold_call_get_state_sync ( 765 SensorThreshold *proxy, 766 guchar *out_state, 767 GCancellable *cancellable, 768 GError **error); 769 770 771 772 /* D-Bus property accessors: */ 773 GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object); 774 GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object); 775 void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value); 776 777 GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object); 778 GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object); 779 void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value); 780 781 GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object); 782 GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object); 783 void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value); 784 785 GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object); 786 GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object); 787 void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value); 788 789 guchar sensor_threshold_get_state (SensorThreshold *object); 790 void sensor_threshold_set_state (SensorThreshold *object, guchar value); 791 792 793 /* ---- */ 794 795 #define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ()) 796 #define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy)) 797 #define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) 798 #define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) 799 #define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY)) 800 #define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY)) 801 802 typedef struct _SensorThresholdProxy SensorThresholdProxy; 803 typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass; 804 typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate; 805 806 struct _SensorThresholdProxy 807 { 808 /*< private >*/ 809 GDBusProxy parent_instance; 810 SensorThresholdProxyPrivate *priv; 811 }; 812 813 struct _SensorThresholdProxyClass 814 { 815 GDBusProxyClass parent_class; 816 }; 817 818 GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST; 819 820 #if GLIB_CHECK_VERSION(2, 44, 0) 821 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorThresholdProxy, g_object_unref) 822 #endif 823 824 void sensor_threshold_proxy_new ( 825 GDBusConnection *connection, 826 GDBusProxyFlags flags, 827 const gchar *name, 828 const gchar *object_path, 829 GCancellable *cancellable, 830 GAsyncReadyCallback callback, 831 gpointer user_data); 832 SensorThreshold *sensor_threshold_proxy_new_finish ( 833 GAsyncResult *res, 834 GError **error); 835 SensorThreshold *sensor_threshold_proxy_new_sync ( 836 GDBusConnection *connection, 837 GDBusProxyFlags flags, 838 const gchar *name, 839 const gchar *object_path, 840 GCancellable *cancellable, 841 GError **error); 842 843 void sensor_threshold_proxy_new_for_bus ( 844 GBusType bus_type, 845 GDBusProxyFlags flags, 846 const gchar *name, 847 const gchar *object_path, 848 GCancellable *cancellable, 849 GAsyncReadyCallback callback, 850 gpointer user_data); 851 SensorThreshold *sensor_threshold_proxy_new_for_bus_finish ( 852 GAsyncResult *res, 853 GError **error); 854 SensorThreshold *sensor_threshold_proxy_new_for_bus_sync ( 855 GBusType bus_type, 856 GDBusProxyFlags flags, 857 const gchar *name, 858 const gchar *object_path, 859 GCancellable *cancellable, 860 GError **error); 861 862 863 /* ---- */ 864 865 #define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ()) 866 #define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton)) 867 #define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) 868 #define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) 869 #define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON)) 870 #define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON)) 871 872 typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton; 873 typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass; 874 typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate; 875 876 struct _SensorThresholdSkeleton 877 { 878 /*< private >*/ 879 GDBusInterfaceSkeleton parent_instance; 880 SensorThresholdSkeletonPrivate *priv; 881 }; 882 883 struct _SensorThresholdSkeletonClass 884 { 885 GDBusInterfaceSkeletonClass parent_class; 886 }; 887 888 GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST; 889 890 #if GLIB_CHECK_VERSION(2, 44, 0) 891 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorThresholdSkeleton, g_object_unref) 892 #endif 893 894 SensorThreshold *sensor_threshold_skeleton_new (void); 895 896 897 /* ------------------------------------------------------------------------ */ 898 /* Declarations for org.openbmc.SensorI2c */ 899 900 #define TYPE_SENSOR_I2C (sensor_i2c_get_type ()) 901 #define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c)) 902 #define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C)) 903 #define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface)) 904 905 struct _SensorI2c; 906 typedef struct _SensorI2c SensorI2c; 907 typedef struct _SensorI2cIface SensorI2cIface; 908 909 struct _SensorI2cIface 910 { 911 GTypeInterface parent_iface; 912 913 const gchar * (*get_address) (SensorI2c *object); 914 915 const gchar * (*get_dev_path) (SensorI2c *object); 916 917 }; 918 919 GType sensor_i2c_get_type (void) G_GNUC_CONST; 920 921 GDBusInterfaceInfo *sensor_i2c_interface_info (void); 922 guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin); 923 924 925 /* D-Bus property accessors: */ 926 const gchar *sensor_i2c_get_dev_path (SensorI2c *object); 927 gchar *sensor_i2c_dup_dev_path (SensorI2c *object); 928 void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value); 929 930 const gchar *sensor_i2c_get_address (SensorI2c *object); 931 gchar *sensor_i2c_dup_address (SensorI2c *object); 932 void sensor_i2c_set_address (SensorI2c *object, const gchar *value); 933 934 935 /* ---- */ 936 937 #define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ()) 938 #define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy)) 939 #define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) 940 #define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) 941 #define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY)) 942 #define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY)) 943 944 typedef struct _SensorI2cProxy SensorI2cProxy; 945 typedef struct _SensorI2cProxyClass SensorI2cProxyClass; 946 typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate; 947 948 struct _SensorI2cProxy 949 { 950 /*< private >*/ 951 GDBusProxy parent_instance; 952 SensorI2cProxyPrivate *priv; 953 }; 954 955 struct _SensorI2cProxyClass 956 { 957 GDBusProxyClass parent_class; 958 }; 959 960 GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST; 961 962 #if GLIB_CHECK_VERSION(2, 44, 0) 963 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorI2cProxy, g_object_unref) 964 #endif 965 966 void sensor_i2c_proxy_new ( 967 GDBusConnection *connection, 968 GDBusProxyFlags flags, 969 const gchar *name, 970 const gchar *object_path, 971 GCancellable *cancellable, 972 GAsyncReadyCallback callback, 973 gpointer user_data); 974 SensorI2c *sensor_i2c_proxy_new_finish ( 975 GAsyncResult *res, 976 GError **error); 977 SensorI2c *sensor_i2c_proxy_new_sync ( 978 GDBusConnection *connection, 979 GDBusProxyFlags flags, 980 const gchar *name, 981 const gchar *object_path, 982 GCancellable *cancellable, 983 GError **error); 984 985 void sensor_i2c_proxy_new_for_bus ( 986 GBusType bus_type, 987 GDBusProxyFlags flags, 988 const gchar *name, 989 const gchar *object_path, 990 GCancellable *cancellable, 991 GAsyncReadyCallback callback, 992 gpointer user_data); 993 SensorI2c *sensor_i2c_proxy_new_for_bus_finish ( 994 GAsyncResult *res, 995 GError **error); 996 SensorI2c *sensor_i2c_proxy_new_for_bus_sync ( 997 GBusType bus_type, 998 GDBusProxyFlags flags, 999 const gchar *name, 1000 const gchar *object_path, 1001 GCancellable *cancellable, 1002 GError **error); 1003 1004 1005 /* ---- */ 1006 1007 #define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ()) 1008 #define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton)) 1009 #define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) 1010 #define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) 1011 #define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON)) 1012 #define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON)) 1013 1014 typedef struct _SensorI2cSkeleton SensorI2cSkeleton; 1015 typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass; 1016 typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate; 1017 1018 struct _SensorI2cSkeleton 1019 { 1020 /*< private >*/ 1021 GDBusInterfaceSkeleton parent_instance; 1022 SensorI2cSkeletonPrivate *priv; 1023 }; 1024 1025 struct _SensorI2cSkeletonClass 1026 { 1027 GDBusInterfaceSkeletonClass parent_class; 1028 }; 1029 1030 GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST; 1031 1032 #if GLIB_CHECK_VERSION(2, 44, 0) 1033 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorI2cSkeleton, g_object_unref) 1034 #endif 1035 1036 SensorI2c *sensor_i2c_skeleton_new (void); 1037 1038 1039 /* ------------------------------------------------------------------------ */ 1040 /* Declarations for org.openbmc.SensorMatch */ 1041 1042 #define TYPE_SENSOR_MATCH (sensor_match_get_type ()) 1043 #define SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH, SensorMatch)) 1044 #define IS_SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH)) 1045 #define SENSOR_MATCH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_MATCH, SensorMatchIface)) 1046 1047 struct _SensorMatch; 1048 typedef struct _SensorMatch SensorMatch; 1049 typedef struct _SensorMatchIface SensorMatchIface; 1050 1051 struct _SensorMatchIface 1052 { 1053 GTypeInterface parent_iface; 1054 1055 1056 GVariant * (*get_match_value) (SensorMatch *object); 1057 1058 guchar (*get_state) (SensorMatch *object); 1059 1060 void (*sensor_match) ( 1061 SensorMatch *object, 1062 guchar arg_state); 1063 1064 }; 1065 1066 GType sensor_match_get_type (void) G_GNUC_CONST; 1067 1068 GDBusInterfaceInfo *sensor_match_interface_info (void); 1069 guint sensor_match_override_properties (GObjectClass *klass, guint property_id_begin); 1070 1071 1072 /* D-Bus signal emissions functions: */ 1073 void sensor_match_emit_sensor_match ( 1074 SensorMatch *object, 1075 guchar arg_state); 1076 1077 1078 1079 /* D-Bus property accessors: */ 1080 GVariant *sensor_match_get_match_value (SensorMatch *object); 1081 GVariant *sensor_match_dup_match_value (SensorMatch *object); 1082 void sensor_match_set_match_value (SensorMatch *object, GVariant *value); 1083 1084 guchar sensor_match_get_state (SensorMatch *object); 1085 void sensor_match_set_state (SensorMatch *object, guchar value); 1086 1087 1088 /* ---- */ 1089 1090 #define TYPE_SENSOR_MATCH_PROXY (sensor_match_proxy_get_type ()) 1091 #define SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxy)) 1092 #define SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) 1093 #define SENSOR_MATCH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) 1094 #define IS_SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_PROXY)) 1095 #define IS_SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_PROXY)) 1096 1097 typedef struct _SensorMatchProxy SensorMatchProxy; 1098 typedef struct _SensorMatchProxyClass SensorMatchProxyClass; 1099 typedef struct _SensorMatchProxyPrivate SensorMatchProxyPrivate; 1100 1101 struct _SensorMatchProxy 1102 { 1103 /*< private >*/ 1104 GDBusProxy parent_instance; 1105 SensorMatchProxyPrivate *priv; 1106 }; 1107 1108 struct _SensorMatchProxyClass 1109 { 1110 GDBusProxyClass parent_class; 1111 }; 1112 1113 GType sensor_match_proxy_get_type (void) G_GNUC_CONST; 1114 1115 #if GLIB_CHECK_VERSION(2, 44, 0) 1116 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorMatchProxy, g_object_unref) 1117 #endif 1118 1119 void sensor_match_proxy_new ( 1120 GDBusConnection *connection, 1121 GDBusProxyFlags flags, 1122 const gchar *name, 1123 const gchar *object_path, 1124 GCancellable *cancellable, 1125 GAsyncReadyCallback callback, 1126 gpointer user_data); 1127 SensorMatch *sensor_match_proxy_new_finish ( 1128 GAsyncResult *res, 1129 GError **error); 1130 SensorMatch *sensor_match_proxy_new_sync ( 1131 GDBusConnection *connection, 1132 GDBusProxyFlags flags, 1133 const gchar *name, 1134 const gchar *object_path, 1135 GCancellable *cancellable, 1136 GError **error); 1137 1138 void sensor_match_proxy_new_for_bus ( 1139 GBusType bus_type, 1140 GDBusProxyFlags flags, 1141 const gchar *name, 1142 const gchar *object_path, 1143 GCancellable *cancellable, 1144 GAsyncReadyCallback callback, 1145 gpointer user_data); 1146 SensorMatch *sensor_match_proxy_new_for_bus_finish ( 1147 GAsyncResult *res, 1148 GError **error); 1149 SensorMatch *sensor_match_proxy_new_for_bus_sync ( 1150 GBusType bus_type, 1151 GDBusProxyFlags flags, 1152 const gchar *name, 1153 const gchar *object_path, 1154 GCancellable *cancellable, 1155 GError **error); 1156 1157 1158 /* ---- */ 1159 1160 #define TYPE_SENSOR_MATCH_SKELETON (sensor_match_skeleton_get_type ()) 1161 #define SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeleton)) 1162 #define SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) 1163 #define SENSOR_MATCH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) 1164 #define IS_SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_SKELETON)) 1165 #define IS_SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_SKELETON)) 1166 1167 typedef struct _SensorMatchSkeleton SensorMatchSkeleton; 1168 typedef struct _SensorMatchSkeletonClass SensorMatchSkeletonClass; 1169 typedef struct _SensorMatchSkeletonPrivate SensorMatchSkeletonPrivate; 1170 1171 struct _SensorMatchSkeleton 1172 { 1173 /*< private >*/ 1174 GDBusInterfaceSkeleton parent_instance; 1175 SensorMatchSkeletonPrivate *priv; 1176 }; 1177 1178 struct _SensorMatchSkeletonClass 1179 { 1180 GDBusInterfaceSkeletonClass parent_class; 1181 }; 1182 1183 GType sensor_match_skeleton_get_type (void) G_GNUC_CONST; 1184 1185 #if GLIB_CHECK_VERSION(2, 44, 0) 1186 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorMatchSkeleton, g_object_unref) 1187 #endif 1188 1189 SensorMatch *sensor_match_skeleton_new (void); 1190 1191 1192 /* ------------------------------------------------------------------------ */ 1193 /* Declarations for org.openbmc.Process */ 1194 1195 #define TYPE_PROCESS (process_get_type ()) 1196 #define PROCESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS, Process)) 1197 #define IS_PROCESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS)) 1198 #define PROCESS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_PROCESS, ProcessIface)) 1199 1200 struct _Process; 1201 typedef struct _Process Process; 1202 typedef struct _ProcessIface ProcessIface; 1203 1204 struct _ProcessIface 1205 { 1206 GTypeInterface parent_iface; 1207 1208 gboolean (*handle_stop) ( 1209 Process *object, 1210 GDBusMethodInvocation *invocation); 1211 1212 }; 1213 1214 GType process_get_type (void) G_GNUC_CONST; 1215 1216 GDBusInterfaceInfo *process_interface_info (void); 1217 guint process_override_properties (GObjectClass *klass, guint property_id_begin); 1218 1219 1220 /* D-Bus method call completion functions: */ 1221 void process_complete_stop ( 1222 Process *object, 1223 GDBusMethodInvocation *invocation); 1224 1225 1226 1227 /* D-Bus method calls: */ 1228 void process_call_stop ( 1229 Process *proxy, 1230 GCancellable *cancellable, 1231 GAsyncReadyCallback callback, 1232 gpointer user_data); 1233 1234 gboolean process_call_stop_finish ( 1235 Process *proxy, 1236 GAsyncResult *res, 1237 GError **error); 1238 1239 gboolean process_call_stop_sync ( 1240 Process *proxy, 1241 GCancellable *cancellable, 1242 GError **error); 1243 1244 1245 1246 /* ---- */ 1247 1248 #define TYPE_PROCESS_PROXY (process_proxy_get_type ()) 1249 #define PROCESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS_PROXY, ProcessProxy)) 1250 #define PROCESS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_PROCESS_PROXY, ProcessProxyClass)) 1251 #define PROCESS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_PROCESS_PROXY, ProcessProxyClass)) 1252 #define IS_PROCESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS_PROXY)) 1253 #define IS_PROCESS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_PROCESS_PROXY)) 1254 1255 typedef struct _ProcessProxy ProcessProxy; 1256 typedef struct _ProcessProxyClass ProcessProxyClass; 1257 typedef struct _ProcessProxyPrivate ProcessProxyPrivate; 1258 1259 struct _ProcessProxy 1260 { 1261 /*< private >*/ 1262 GDBusProxy parent_instance; 1263 ProcessProxyPrivate *priv; 1264 }; 1265 1266 struct _ProcessProxyClass 1267 { 1268 GDBusProxyClass parent_class; 1269 }; 1270 1271 GType process_proxy_get_type (void) G_GNUC_CONST; 1272 1273 #if GLIB_CHECK_VERSION(2, 44, 0) 1274 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProcessProxy, g_object_unref) 1275 #endif 1276 1277 void process_proxy_new ( 1278 GDBusConnection *connection, 1279 GDBusProxyFlags flags, 1280 const gchar *name, 1281 const gchar *object_path, 1282 GCancellable *cancellable, 1283 GAsyncReadyCallback callback, 1284 gpointer user_data); 1285 Process *process_proxy_new_finish ( 1286 GAsyncResult *res, 1287 GError **error); 1288 Process *process_proxy_new_sync ( 1289 GDBusConnection *connection, 1290 GDBusProxyFlags flags, 1291 const gchar *name, 1292 const gchar *object_path, 1293 GCancellable *cancellable, 1294 GError **error); 1295 1296 void process_proxy_new_for_bus ( 1297 GBusType bus_type, 1298 GDBusProxyFlags flags, 1299 const gchar *name, 1300 const gchar *object_path, 1301 GCancellable *cancellable, 1302 GAsyncReadyCallback callback, 1303 gpointer user_data); 1304 Process *process_proxy_new_for_bus_finish ( 1305 GAsyncResult *res, 1306 GError **error); 1307 Process *process_proxy_new_for_bus_sync ( 1308 GBusType bus_type, 1309 GDBusProxyFlags flags, 1310 const gchar *name, 1311 const gchar *object_path, 1312 GCancellable *cancellable, 1313 GError **error); 1314 1315 1316 /* ---- */ 1317 1318 #define TYPE_PROCESS_SKELETON (process_skeleton_get_type ()) 1319 #define PROCESS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS_SKELETON, ProcessSkeleton)) 1320 #define PROCESS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_PROCESS_SKELETON, ProcessSkeletonClass)) 1321 #define PROCESS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_PROCESS_SKELETON, ProcessSkeletonClass)) 1322 #define IS_PROCESS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS_SKELETON)) 1323 #define IS_PROCESS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_PROCESS_SKELETON)) 1324 1325 typedef struct _ProcessSkeleton ProcessSkeleton; 1326 typedef struct _ProcessSkeletonClass ProcessSkeletonClass; 1327 typedef struct _ProcessSkeletonPrivate ProcessSkeletonPrivate; 1328 1329 struct _ProcessSkeleton 1330 { 1331 /*< private >*/ 1332 GDBusInterfaceSkeleton parent_instance; 1333 ProcessSkeletonPrivate *priv; 1334 }; 1335 1336 struct _ProcessSkeletonClass 1337 { 1338 GDBusInterfaceSkeletonClass parent_class; 1339 }; 1340 1341 GType process_skeleton_get_type (void) G_GNUC_CONST; 1342 1343 #if GLIB_CHECK_VERSION(2, 44, 0) 1344 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProcessSkeleton, g_object_unref) 1345 #endif 1346 1347 Process *process_skeleton_new (void); 1348 1349 1350 /* ------------------------------------------------------------------------ */ 1351 /* Declarations for org.openbmc.SharedResource */ 1352 1353 #define TYPE_SHARED_RESOURCE (shared_resource_get_type ()) 1354 #define SHARED_RESOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SHARED_RESOURCE, SharedResource)) 1355 #define IS_SHARED_RESOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SHARED_RESOURCE)) 1356 #define SHARED_RESOURCE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SHARED_RESOURCE, SharedResourceIface)) 1357 1358 struct _SharedResource; 1359 typedef struct _SharedResource SharedResource; 1360 typedef struct _SharedResourceIface SharedResourceIface; 1361 1362 struct _SharedResourceIface 1363 { 1364 GTypeInterface parent_iface; 1365 1366 1367 gboolean (*handle_is_locked) ( 1368 SharedResource *object, 1369 GDBusMethodInvocation *invocation); 1370 1371 gboolean (*handle_lock) ( 1372 SharedResource *object, 1373 GDBusMethodInvocation *invocation, 1374 const gchar *arg_name); 1375 1376 gboolean (*handle_unlock) ( 1377 SharedResource *object, 1378 GDBusMethodInvocation *invocation); 1379 1380 gboolean (*get_lock) (SharedResource *object); 1381 1382 const gchar * (*get_name) (SharedResource *object); 1383 1384 }; 1385 1386 GType shared_resource_get_type (void) G_GNUC_CONST; 1387 1388 GDBusInterfaceInfo *shared_resource_interface_info (void); 1389 guint shared_resource_override_properties (GObjectClass *klass, guint property_id_begin); 1390 1391 1392 /* D-Bus method call completion functions: */ 1393 void shared_resource_complete_lock ( 1394 SharedResource *object, 1395 GDBusMethodInvocation *invocation); 1396 1397 void shared_resource_complete_unlock ( 1398 SharedResource *object, 1399 GDBusMethodInvocation *invocation); 1400 1401 void shared_resource_complete_is_locked ( 1402 SharedResource *object, 1403 GDBusMethodInvocation *invocation, 1404 gboolean lock, 1405 const gchar *name); 1406 1407 1408 1409 /* D-Bus method calls: */ 1410 void shared_resource_call_lock ( 1411 SharedResource *proxy, 1412 const gchar *arg_name, 1413 GCancellable *cancellable, 1414 GAsyncReadyCallback callback, 1415 gpointer user_data); 1416 1417 gboolean shared_resource_call_lock_finish ( 1418 SharedResource *proxy, 1419 GAsyncResult *res, 1420 GError **error); 1421 1422 gboolean shared_resource_call_lock_sync ( 1423 SharedResource *proxy, 1424 const gchar *arg_name, 1425 GCancellable *cancellable, 1426 GError **error); 1427 1428 void shared_resource_call_unlock ( 1429 SharedResource *proxy, 1430 GCancellable *cancellable, 1431 GAsyncReadyCallback callback, 1432 gpointer user_data); 1433 1434 gboolean shared_resource_call_unlock_finish ( 1435 SharedResource *proxy, 1436 GAsyncResult *res, 1437 GError **error); 1438 1439 gboolean shared_resource_call_unlock_sync ( 1440 SharedResource *proxy, 1441 GCancellable *cancellable, 1442 GError **error); 1443 1444 void shared_resource_call_is_locked ( 1445 SharedResource *proxy, 1446 GCancellable *cancellable, 1447 GAsyncReadyCallback callback, 1448 gpointer user_data); 1449 1450 gboolean shared_resource_call_is_locked_finish ( 1451 SharedResource *proxy, 1452 gboolean *out_lock, 1453 gchar **out_name, 1454 GAsyncResult *res, 1455 GError **error); 1456 1457 gboolean shared_resource_call_is_locked_sync ( 1458 SharedResource *proxy, 1459 gboolean *out_lock, 1460 gchar **out_name, 1461 GCancellable *cancellable, 1462 GError **error); 1463 1464 1465 1466 /* D-Bus property accessors: */ 1467 gboolean shared_resource_get_lock (SharedResource *object); 1468 void shared_resource_set_lock (SharedResource *object, gboolean value); 1469 1470 const gchar *shared_resource_get_name (SharedResource *object); 1471 gchar *shared_resource_dup_name (SharedResource *object); 1472 void shared_resource_set_name (SharedResource *object, const gchar *value); 1473 1474 1475 /* ---- */ 1476 1477 #define TYPE_SHARED_RESOURCE_PROXY (shared_resource_proxy_get_type ()) 1478 #define SHARED_RESOURCE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SHARED_RESOURCE_PROXY, SharedResourceProxy)) 1479 #define SHARED_RESOURCE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SHARED_RESOURCE_PROXY, SharedResourceProxyClass)) 1480 #define SHARED_RESOURCE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SHARED_RESOURCE_PROXY, SharedResourceProxyClass)) 1481 #define IS_SHARED_RESOURCE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SHARED_RESOURCE_PROXY)) 1482 #define IS_SHARED_RESOURCE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SHARED_RESOURCE_PROXY)) 1483 1484 typedef struct _SharedResourceProxy SharedResourceProxy; 1485 typedef struct _SharedResourceProxyClass SharedResourceProxyClass; 1486 typedef struct _SharedResourceProxyPrivate SharedResourceProxyPrivate; 1487 1488 struct _SharedResourceProxy 1489 { 1490 /*< private >*/ 1491 GDBusProxy parent_instance; 1492 SharedResourceProxyPrivate *priv; 1493 }; 1494 1495 struct _SharedResourceProxyClass 1496 { 1497 GDBusProxyClass parent_class; 1498 }; 1499 1500 GType shared_resource_proxy_get_type (void) G_GNUC_CONST; 1501 1502 #if GLIB_CHECK_VERSION(2, 44, 0) 1503 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SharedResourceProxy, g_object_unref) 1504 #endif 1505 1506 void shared_resource_proxy_new ( 1507 GDBusConnection *connection, 1508 GDBusProxyFlags flags, 1509 const gchar *name, 1510 const gchar *object_path, 1511 GCancellable *cancellable, 1512 GAsyncReadyCallback callback, 1513 gpointer user_data); 1514 SharedResource *shared_resource_proxy_new_finish ( 1515 GAsyncResult *res, 1516 GError **error); 1517 SharedResource *shared_resource_proxy_new_sync ( 1518 GDBusConnection *connection, 1519 GDBusProxyFlags flags, 1520 const gchar *name, 1521 const gchar *object_path, 1522 GCancellable *cancellable, 1523 GError **error); 1524 1525 void shared_resource_proxy_new_for_bus ( 1526 GBusType bus_type, 1527 GDBusProxyFlags flags, 1528 const gchar *name, 1529 const gchar *object_path, 1530 GCancellable *cancellable, 1531 GAsyncReadyCallback callback, 1532 gpointer user_data); 1533 SharedResource *shared_resource_proxy_new_for_bus_finish ( 1534 GAsyncResult *res, 1535 GError **error); 1536 SharedResource *shared_resource_proxy_new_for_bus_sync ( 1537 GBusType bus_type, 1538 GDBusProxyFlags flags, 1539 const gchar *name, 1540 const gchar *object_path, 1541 GCancellable *cancellable, 1542 GError **error); 1543 1544 1545 /* ---- */ 1546 1547 #define TYPE_SHARED_RESOURCE_SKELETON (shared_resource_skeleton_get_type ()) 1548 #define SHARED_RESOURCE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SHARED_RESOURCE_SKELETON, SharedResourceSkeleton)) 1549 #define SHARED_RESOURCE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SHARED_RESOURCE_SKELETON, SharedResourceSkeletonClass)) 1550 #define SHARED_RESOURCE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SHARED_RESOURCE_SKELETON, SharedResourceSkeletonClass)) 1551 #define IS_SHARED_RESOURCE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SHARED_RESOURCE_SKELETON)) 1552 #define IS_SHARED_RESOURCE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SHARED_RESOURCE_SKELETON)) 1553 1554 typedef struct _SharedResourceSkeleton SharedResourceSkeleton; 1555 typedef struct _SharedResourceSkeletonClass SharedResourceSkeletonClass; 1556 typedef struct _SharedResourceSkeletonPrivate SharedResourceSkeletonPrivate; 1557 1558 struct _SharedResourceSkeleton 1559 { 1560 /*< private >*/ 1561 GDBusInterfaceSkeleton parent_instance; 1562 SharedResourceSkeletonPrivate *priv; 1563 }; 1564 1565 struct _SharedResourceSkeletonClass 1566 { 1567 GDBusInterfaceSkeletonClass parent_class; 1568 }; 1569 1570 GType shared_resource_skeleton_get_type (void) G_GNUC_CONST; 1571 1572 #if GLIB_CHECK_VERSION(2, 44, 0) 1573 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SharedResourceSkeleton, g_object_unref) 1574 #endif 1575 1576 SharedResource *shared_resource_skeleton_new (void); 1577 1578 1579 /* ------------------------------------------------------------------------ */ 1580 /* Declarations for org.openbmc.Control */ 1581 1582 #define TYPE_CONTROL (control_get_type ()) 1583 #define CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL, Control)) 1584 #define IS_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL)) 1585 #define CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL, ControlIface)) 1586 1587 struct _Control; 1588 typedef struct _Control Control; 1589 typedef struct _ControlIface ControlIface; 1590 1591 struct _ControlIface 1592 { 1593 GTypeInterface parent_iface; 1594 1595 1596 1597 gboolean (*handle_init) ( 1598 Control *object, 1599 GDBusMethodInvocation *invocation); 1600 1601 gint (*get_heatbeat) (Control *object); 1602 1603 gint (*get_poll_interval) (Control *object); 1604 1605 void (*heartbeat) ( 1606 Control *object, 1607 const gchar *arg_bus_name); 1608 1609 void (*started) ( 1610 Control *object); 1611 1612 }; 1613 1614 GType control_get_type (void) G_GNUC_CONST; 1615 1616 GDBusInterfaceInfo *control_interface_info (void); 1617 guint control_override_properties (GObjectClass *klass, guint property_id_begin); 1618 1619 1620 /* D-Bus method call completion functions: */ 1621 void control_complete_init ( 1622 Control *object, 1623 GDBusMethodInvocation *invocation); 1624 1625 1626 1627 /* D-Bus signal emissions functions: */ 1628 void control_emit_heartbeat ( 1629 Control *object, 1630 const gchar *arg_bus_name); 1631 1632 void control_emit_started ( 1633 Control *object); 1634 1635 1636 1637 /* D-Bus method calls: */ 1638 void control_call_init ( 1639 Control *proxy, 1640 GCancellable *cancellable, 1641 GAsyncReadyCallback callback, 1642 gpointer user_data); 1643 1644 gboolean control_call_init_finish ( 1645 Control *proxy, 1646 GAsyncResult *res, 1647 GError **error); 1648 1649 gboolean control_call_init_sync ( 1650 Control *proxy, 1651 GCancellable *cancellable, 1652 GError **error); 1653 1654 1655 1656 /* D-Bus property accessors: */ 1657 gint control_get_poll_interval (Control *object); 1658 void control_set_poll_interval (Control *object, gint value); 1659 1660 gint control_get_heatbeat (Control *object); 1661 void control_set_heatbeat (Control *object, gint value); 1662 1663 1664 /* ---- */ 1665 1666 #define TYPE_CONTROL_PROXY (control_proxy_get_type ()) 1667 #define CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_PROXY, ControlProxy)) 1668 #define CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_PROXY, ControlProxyClass)) 1669 #define CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_PROXY, ControlProxyClass)) 1670 #define IS_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_PROXY)) 1671 #define IS_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_PROXY)) 1672 1673 typedef struct _ControlProxy ControlProxy; 1674 typedef struct _ControlProxyClass ControlProxyClass; 1675 typedef struct _ControlProxyPrivate ControlProxyPrivate; 1676 1677 struct _ControlProxy 1678 { 1679 /*< private >*/ 1680 GDBusProxy parent_instance; 1681 ControlProxyPrivate *priv; 1682 }; 1683 1684 struct _ControlProxyClass 1685 { 1686 GDBusProxyClass parent_class; 1687 }; 1688 1689 GType control_proxy_get_type (void) G_GNUC_CONST; 1690 1691 #if GLIB_CHECK_VERSION(2, 44, 0) 1692 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlProxy, g_object_unref) 1693 #endif 1694 1695 void control_proxy_new ( 1696 GDBusConnection *connection, 1697 GDBusProxyFlags flags, 1698 const gchar *name, 1699 const gchar *object_path, 1700 GCancellable *cancellable, 1701 GAsyncReadyCallback callback, 1702 gpointer user_data); 1703 Control *control_proxy_new_finish ( 1704 GAsyncResult *res, 1705 GError **error); 1706 Control *control_proxy_new_sync ( 1707 GDBusConnection *connection, 1708 GDBusProxyFlags flags, 1709 const gchar *name, 1710 const gchar *object_path, 1711 GCancellable *cancellable, 1712 GError **error); 1713 1714 void control_proxy_new_for_bus ( 1715 GBusType bus_type, 1716 GDBusProxyFlags flags, 1717 const gchar *name, 1718 const gchar *object_path, 1719 GCancellable *cancellable, 1720 GAsyncReadyCallback callback, 1721 gpointer user_data); 1722 Control *control_proxy_new_for_bus_finish ( 1723 GAsyncResult *res, 1724 GError **error); 1725 Control *control_proxy_new_for_bus_sync ( 1726 GBusType bus_type, 1727 GDBusProxyFlags flags, 1728 const gchar *name, 1729 const gchar *object_path, 1730 GCancellable *cancellable, 1731 GError **error); 1732 1733 1734 /* ---- */ 1735 1736 #define TYPE_CONTROL_SKELETON (control_skeleton_get_type ()) 1737 #define CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_SKELETON, ControlSkeleton)) 1738 #define CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) 1739 #define CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) 1740 #define IS_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_SKELETON)) 1741 #define IS_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_SKELETON)) 1742 1743 typedef struct _ControlSkeleton ControlSkeleton; 1744 typedef struct _ControlSkeletonClass ControlSkeletonClass; 1745 typedef struct _ControlSkeletonPrivate ControlSkeletonPrivate; 1746 1747 struct _ControlSkeleton 1748 { 1749 /*< private >*/ 1750 GDBusInterfaceSkeleton parent_instance; 1751 ControlSkeletonPrivate *priv; 1752 }; 1753 1754 struct _ControlSkeletonClass 1755 { 1756 GDBusInterfaceSkeletonClass parent_class; 1757 }; 1758 1759 GType control_skeleton_get_type (void) G_GNUC_CONST; 1760 1761 #if GLIB_CHECK_VERSION(2, 44, 0) 1762 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlSkeleton, g_object_unref) 1763 #endif 1764 1765 Control *control_skeleton_new (void); 1766 1767 1768 /* ------------------------------------------------------------------------ */ 1769 /* Declarations for org.openbmc.control.Bmc */ 1770 1771 #define TYPE_CONTROL_BMC (control_bmc_get_type ()) 1772 #define CONTROL_BMC(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC, ControlBmc)) 1773 #define IS_CONTROL_BMC(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC)) 1774 #define CONTROL_BMC_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_BMC, ControlBmcIface)) 1775 1776 struct _ControlBmc; 1777 typedef struct _ControlBmc ControlBmc; 1778 typedef struct _ControlBmcIface ControlBmcIface; 1779 1780 struct _ControlBmcIface 1781 { 1782 GTypeInterface parent_iface; 1783 1784 gboolean (*handle_cold_reset) ( 1785 ControlBmc *object, 1786 GDBusMethodInvocation *invocation); 1787 1788 gboolean (*handle_warm_reset) ( 1789 ControlBmc *object, 1790 GDBusMethodInvocation *invocation); 1791 1792 }; 1793 1794 GType control_bmc_get_type (void) G_GNUC_CONST; 1795 1796 GDBusInterfaceInfo *control_bmc_interface_info (void); 1797 guint control_bmc_override_properties (GObjectClass *klass, guint property_id_begin); 1798 1799 1800 /* D-Bus method call completion functions: */ 1801 void control_bmc_complete_cold_reset ( 1802 ControlBmc *object, 1803 GDBusMethodInvocation *invocation); 1804 1805 void control_bmc_complete_warm_reset ( 1806 ControlBmc *object, 1807 GDBusMethodInvocation *invocation); 1808 1809 1810 1811 /* D-Bus method calls: */ 1812 void control_bmc_call_cold_reset ( 1813 ControlBmc *proxy, 1814 GCancellable *cancellable, 1815 GAsyncReadyCallback callback, 1816 gpointer user_data); 1817 1818 gboolean control_bmc_call_cold_reset_finish ( 1819 ControlBmc *proxy, 1820 GAsyncResult *res, 1821 GError **error); 1822 1823 gboolean control_bmc_call_cold_reset_sync ( 1824 ControlBmc *proxy, 1825 GCancellable *cancellable, 1826 GError **error); 1827 1828 void control_bmc_call_warm_reset ( 1829 ControlBmc *proxy, 1830 GCancellable *cancellable, 1831 GAsyncReadyCallback callback, 1832 gpointer user_data); 1833 1834 gboolean control_bmc_call_warm_reset_finish ( 1835 ControlBmc *proxy, 1836 GAsyncResult *res, 1837 GError **error); 1838 1839 gboolean control_bmc_call_warm_reset_sync ( 1840 ControlBmc *proxy, 1841 GCancellable *cancellable, 1842 GError **error); 1843 1844 1845 1846 /* ---- */ 1847 1848 #define TYPE_CONTROL_BMC_PROXY (control_bmc_proxy_get_type ()) 1849 #define CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxy)) 1850 #define CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass)) 1851 #define CONTROL_BMC_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass)) 1852 #define IS_CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_PROXY)) 1853 #define IS_CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_PROXY)) 1854 1855 typedef struct _ControlBmcProxy ControlBmcProxy; 1856 typedef struct _ControlBmcProxyClass ControlBmcProxyClass; 1857 typedef struct _ControlBmcProxyPrivate ControlBmcProxyPrivate; 1858 1859 struct _ControlBmcProxy 1860 { 1861 /*< private >*/ 1862 GDBusProxy parent_instance; 1863 ControlBmcProxyPrivate *priv; 1864 }; 1865 1866 struct _ControlBmcProxyClass 1867 { 1868 GDBusProxyClass parent_class; 1869 }; 1870 1871 GType control_bmc_proxy_get_type (void) G_GNUC_CONST; 1872 1873 #if GLIB_CHECK_VERSION(2, 44, 0) 1874 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlBmcProxy, g_object_unref) 1875 #endif 1876 1877 void control_bmc_proxy_new ( 1878 GDBusConnection *connection, 1879 GDBusProxyFlags flags, 1880 const gchar *name, 1881 const gchar *object_path, 1882 GCancellable *cancellable, 1883 GAsyncReadyCallback callback, 1884 gpointer user_data); 1885 ControlBmc *control_bmc_proxy_new_finish ( 1886 GAsyncResult *res, 1887 GError **error); 1888 ControlBmc *control_bmc_proxy_new_sync ( 1889 GDBusConnection *connection, 1890 GDBusProxyFlags flags, 1891 const gchar *name, 1892 const gchar *object_path, 1893 GCancellable *cancellable, 1894 GError **error); 1895 1896 void control_bmc_proxy_new_for_bus ( 1897 GBusType bus_type, 1898 GDBusProxyFlags flags, 1899 const gchar *name, 1900 const gchar *object_path, 1901 GCancellable *cancellable, 1902 GAsyncReadyCallback callback, 1903 gpointer user_data); 1904 ControlBmc *control_bmc_proxy_new_for_bus_finish ( 1905 GAsyncResult *res, 1906 GError **error); 1907 ControlBmc *control_bmc_proxy_new_for_bus_sync ( 1908 GBusType bus_type, 1909 GDBusProxyFlags flags, 1910 const gchar *name, 1911 const gchar *object_path, 1912 GCancellable *cancellable, 1913 GError **error); 1914 1915 1916 /* ---- */ 1917 1918 #define TYPE_CONTROL_BMC_SKELETON (control_bmc_skeleton_get_type ()) 1919 #define CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeleton)) 1920 #define CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass)) 1921 #define CONTROL_BMC_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass)) 1922 #define IS_CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_SKELETON)) 1923 #define IS_CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_SKELETON)) 1924 1925 typedef struct _ControlBmcSkeleton ControlBmcSkeleton; 1926 typedef struct _ControlBmcSkeletonClass ControlBmcSkeletonClass; 1927 typedef struct _ControlBmcSkeletonPrivate ControlBmcSkeletonPrivate; 1928 1929 struct _ControlBmcSkeleton 1930 { 1931 /*< private >*/ 1932 GDBusInterfaceSkeleton parent_instance; 1933 ControlBmcSkeletonPrivate *priv; 1934 }; 1935 1936 struct _ControlBmcSkeletonClass 1937 { 1938 GDBusInterfaceSkeletonClass parent_class; 1939 }; 1940 1941 GType control_bmc_skeleton_get_type (void) G_GNUC_CONST; 1942 1943 #if GLIB_CHECK_VERSION(2, 44, 0) 1944 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlBmcSkeleton, g_object_unref) 1945 #endif 1946 1947 ControlBmc *control_bmc_skeleton_new (void); 1948 1949 1950 /* ------------------------------------------------------------------------ */ 1951 /* Declarations for org.openbmc.control.Host */ 1952 1953 #define TYPE_CONTROL_HOST (control_host_get_type ()) 1954 #define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost)) 1955 #define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST)) 1956 #define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface)) 1957 1958 struct _ControlHost; 1959 typedef struct _ControlHost ControlHost; 1960 typedef struct _ControlHostIface ControlHostIface; 1961 1962 struct _ControlHostIface 1963 { 1964 GTypeInterface parent_iface; 1965 1966 1967 1968 gboolean (*handle_boot) ( 1969 ControlHost *object, 1970 GDBusMethodInvocation *invocation); 1971 1972 gboolean (*handle_reboot) ( 1973 ControlHost *object, 1974 GDBusMethodInvocation *invocation); 1975 1976 gboolean (*handle_shutdown) ( 1977 ControlHost *object, 1978 GDBusMethodInvocation *invocation); 1979 1980 gint (*get_debug_mode) (ControlHost *object); 1981 1982 const gchar * (*get_flash_side) (ControlHost *object); 1983 1984 void (*booted) ( 1985 ControlHost *object); 1986 1987 }; 1988 1989 GType control_host_get_type (void) G_GNUC_CONST; 1990 1991 GDBusInterfaceInfo *control_host_interface_info (void); 1992 guint control_host_override_properties (GObjectClass *klass, guint property_id_begin); 1993 1994 1995 /* D-Bus method call completion functions: */ 1996 void control_host_complete_boot ( 1997 ControlHost *object, 1998 GDBusMethodInvocation *invocation); 1999 2000 void control_host_complete_shutdown ( 2001 ControlHost *object, 2002 GDBusMethodInvocation *invocation); 2003 2004 void control_host_complete_reboot ( 2005 ControlHost *object, 2006 GDBusMethodInvocation *invocation); 2007 2008 2009 2010 /* D-Bus signal emissions functions: */ 2011 void control_host_emit_booted ( 2012 ControlHost *object); 2013 2014 2015 2016 /* D-Bus method calls: */ 2017 void control_host_call_boot ( 2018 ControlHost *proxy, 2019 GCancellable *cancellable, 2020 GAsyncReadyCallback callback, 2021 gpointer user_data); 2022 2023 gboolean control_host_call_boot_finish ( 2024 ControlHost *proxy, 2025 GAsyncResult *res, 2026 GError **error); 2027 2028 gboolean control_host_call_boot_sync ( 2029 ControlHost *proxy, 2030 GCancellable *cancellable, 2031 GError **error); 2032 2033 void control_host_call_shutdown ( 2034 ControlHost *proxy, 2035 GCancellable *cancellable, 2036 GAsyncReadyCallback callback, 2037 gpointer user_data); 2038 2039 gboolean control_host_call_shutdown_finish ( 2040 ControlHost *proxy, 2041 GAsyncResult *res, 2042 GError **error); 2043 2044 gboolean control_host_call_shutdown_sync ( 2045 ControlHost *proxy, 2046 GCancellable *cancellable, 2047 GError **error); 2048 2049 void control_host_call_reboot ( 2050 ControlHost *proxy, 2051 GCancellable *cancellable, 2052 GAsyncReadyCallback callback, 2053 gpointer user_data); 2054 2055 gboolean control_host_call_reboot_finish ( 2056 ControlHost *proxy, 2057 GAsyncResult *res, 2058 GError **error); 2059 2060 gboolean control_host_call_reboot_sync ( 2061 ControlHost *proxy, 2062 GCancellable *cancellable, 2063 GError **error); 2064 2065 2066 2067 /* D-Bus property accessors: */ 2068 gint control_host_get_debug_mode (ControlHost *object); 2069 void control_host_set_debug_mode (ControlHost *object, gint value); 2070 2071 const gchar *control_host_get_flash_side (ControlHost *object); 2072 gchar *control_host_dup_flash_side (ControlHost *object); 2073 void control_host_set_flash_side (ControlHost *object, const gchar *value); 2074 2075 2076 /* ---- */ 2077 2078 #define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ()) 2079 #define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy)) 2080 #define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) 2081 #define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) 2082 #define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY)) 2083 #define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY)) 2084 2085 typedef struct _ControlHostProxy ControlHostProxy; 2086 typedef struct _ControlHostProxyClass ControlHostProxyClass; 2087 typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate; 2088 2089 struct _ControlHostProxy 2090 { 2091 /*< private >*/ 2092 GDBusProxy parent_instance; 2093 ControlHostProxyPrivate *priv; 2094 }; 2095 2096 struct _ControlHostProxyClass 2097 { 2098 GDBusProxyClass parent_class; 2099 }; 2100 2101 GType control_host_proxy_get_type (void) G_GNUC_CONST; 2102 2103 #if GLIB_CHECK_VERSION(2, 44, 0) 2104 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlHostProxy, g_object_unref) 2105 #endif 2106 2107 void control_host_proxy_new ( 2108 GDBusConnection *connection, 2109 GDBusProxyFlags flags, 2110 const gchar *name, 2111 const gchar *object_path, 2112 GCancellable *cancellable, 2113 GAsyncReadyCallback callback, 2114 gpointer user_data); 2115 ControlHost *control_host_proxy_new_finish ( 2116 GAsyncResult *res, 2117 GError **error); 2118 ControlHost *control_host_proxy_new_sync ( 2119 GDBusConnection *connection, 2120 GDBusProxyFlags flags, 2121 const gchar *name, 2122 const gchar *object_path, 2123 GCancellable *cancellable, 2124 GError **error); 2125 2126 void control_host_proxy_new_for_bus ( 2127 GBusType bus_type, 2128 GDBusProxyFlags flags, 2129 const gchar *name, 2130 const gchar *object_path, 2131 GCancellable *cancellable, 2132 GAsyncReadyCallback callback, 2133 gpointer user_data); 2134 ControlHost *control_host_proxy_new_for_bus_finish ( 2135 GAsyncResult *res, 2136 GError **error); 2137 ControlHost *control_host_proxy_new_for_bus_sync ( 2138 GBusType bus_type, 2139 GDBusProxyFlags flags, 2140 const gchar *name, 2141 const gchar *object_path, 2142 GCancellable *cancellable, 2143 GError **error); 2144 2145 2146 /* ---- */ 2147 2148 #define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ()) 2149 #define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton)) 2150 #define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) 2151 #define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) 2152 #define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON)) 2153 #define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON)) 2154 2155 typedef struct _ControlHostSkeleton ControlHostSkeleton; 2156 typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass; 2157 typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate; 2158 2159 struct _ControlHostSkeleton 2160 { 2161 /*< private >*/ 2162 GDBusInterfaceSkeleton parent_instance; 2163 ControlHostSkeletonPrivate *priv; 2164 }; 2165 2166 struct _ControlHostSkeletonClass 2167 { 2168 GDBusInterfaceSkeletonClass parent_class; 2169 }; 2170 2171 GType control_host_skeleton_get_type (void) G_GNUC_CONST; 2172 2173 #if GLIB_CHECK_VERSION(2, 44, 0) 2174 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlHostSkeleton, g_object_unref) 2175 #endif 2176 2177 ControlHost *control_host_skeleton_new (void); 2178 2179 2180 /* ------------------------------------------------------------------------ */ 2181 /* Declarations for org.openbmc.control.Power */ 2182 2183 #define TYPE_CONTROL_POWER (control_power_get_type ()) 2184 #define CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER, ControlPower)) 2185 #define IS_CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER)) 2186 #define CONTROL_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_POWER, ControlPowerIface)) 2187 2188 struct _ControlPower; 2189 typedef struct _ControlPower ControlPower; 2190 typedef struct _ControlPowerIface ControlPowerIface; 2191 2192 struct _ControlPowerIface 2193 { 2194 GTypeInterface parent_iface; 2195 2196 2197 2198 gboolean (*handle_get_power_state) ( 2199 ControlPower *object, 2200 GDBusMethodInvocation *invocation); 2201 2202 gboolean (*handle_set_power_state) ( 2203 ControlPower *object, 2204 GDBusMethodInvocation *invocation, 2205 gint arg_state); 2206 2207 gint (*get_pgood) (ControlPower *object); 2208 2209 gint (*get_pgood_timeout) (ControlPower *object); 2210 2211 gint (*get_state) (ControlPower *object); 2212 2213 void (*power_good) ( 2214 ControlPower *object); 2215 2216 void (*power_lost) ( 2217 ControlPower *object); 2218 2219 }; 2220 2221 GType control_power_get_type (void) G_GNUC_CONST; 2222 2223 GDBusInterfaceInfo *control_power_interface_info (void); 2224 guint control_power_override_properties (GObjectClass *klass, guint property_id_begin); 2225 2226 2227 /* D-Bus method call completion functions: */ 2228 void control_power_complete_set_power_state ( 2229 ControlPower *object, 2230 GDBusMethodInvocation *invocation); 2231 2232 void control_power_complete_get_power_state ( 2233 ControlPower *object, 2234 GDBusMethodInvocation *invocation, 2235 gint state); 2236 2237 2238 2239 /* D-Bus signal emissions functions: */ 2240 void control_power_emit_power_good ( 2241 ControlPower *object); 2242 2243 void control_power_emit_power_lost ( 2244 ControlPower *object); 2245 2246 2247 2248 /* D-Bus method calls: */ 2249 void control_power_call_set_power_state ( 2250 ControlPower *proxy, 2251 gint arg_state, 2252 GCancellable *cancellable, 2253 GAsyncReadyCallback callback, 2254 gpointer user_data); 2255 2256 gboolean control_power_call_set_power_state_finish ( 2257 ControlPower *proxy, 2258 GAsyncResult *res, 2259 GError **error); 2260 2261 gboolean control_power_call_set_power_state_sync ( 2262 ControlPower *proxy, 2263 gint arg_state, 2264 GCancellable *cancellable, 2265 GError **error); 2266 2267 void control_power_call_get_power_state ( 2268 ControlPower *proxy, 2269 GCancellable *cancellable, 2270 GAsyncReadyCallback callback, 2271 gpointer user_data); 2272 2273 gboolean control_power_call_get_power_state_finish ( 2274 ControlPower *proxy, 2275 gint *out_state, 2276 GAsyncResult *res, 2277 GError **error); 2278 2279 gboolean control_power_call_get_power_state_sync ( 2280 ControlPower *proxy, 2281 gint *out_state, 2282 GCancellable *cancellable, 2283 GError **error); 2284 2285 2286 2287 /* D-Bus property accessors: */ 2288 gint control_power_get_pgood (ControlPower *object); 2289 void control_power_set_pgood (ControlPower *object, gint value); 2290 2291 gint control_power_get_state (ControlPower *object); 2292 void control_power_set_state (ControlPower *object, gint value); 2293 2294 gint control_power_get_pgood_timeout (ControlPower *object); 2295 void control_power_set_pgood_timeout (ControlPower *object, gint value); 2296 2297 2298 /* ---- */ 2299 2300 #define TYPE_CONTROL_POWER_PROXY (control_power_proxy_get_type ()) 2301 #define CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxy)) 2302 #define CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) 2303 #define CONTROL_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) 2304 #define IS_CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_PROXY)) 2305 #define IS_CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_PROXY)) 2306 2307 typedef struct _ControlPowerProxy ControlPowerProxy; 2308 typedef struct _ControlPowerProxyClass ControlPowerProxyClass; 2309 typedef struct _ControlPowerProxyPrivate ControlPowerProxyPrivate; 2310 2311 struct _ControlPowerProxy 2312 { 2313 /*< private >*/ 2314 GDBusProxy parent_instance; 2315 ControlPowerProxyPrivate *priv; 2316 }; 2317 2318 struct _ControlPowerProxyClass 2319 { 2320 GDBusProxyClass parent_class; 2321 }; 2322 2323 GType control_power_proxy_get_type (void) G_GNUC_CONST; 2324 2325 #if GLIB_CHECK_VERSION(2, 44, 0) 2326 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlPowerProxy, g_object_unref) 2327 #endif 2328 2329 void control_power_proxy_new ( 2330 GDBusConnection *connection, 2331 GDBusProxyFlags flags, 2332 const gchar *name, 2333 const gchar *object_path, 2334 GCancellable *cancellable, 2335 GAsyncReadyCallback callback, 2336 gpointer user_data); 2337 ControlPower *control_power_proxy_new_finish ( 2338 GAsyncResult *res, 2339 GError **error); 2340 ControlPower *control_power_proxy_new_sync ( 2341 GDBusConnection *connection, 2342 GDBusProxyFlags flags, 2343 const gchar *name, 2344 const gchar *object_path, 2345 GCancellable *cancellable, 2346 GError **error); 2347 2348 void control_power_proxy_new_for_bus ( 2349 GBusType bus_type, 2350 GDBusProxyFlags flags, 2351 const gchar *name, 2352 const gchar *object_path, 2353 GCancellable *cancellable, 2354 GAsyncReadyCallback callback, 2355 gpointer user_data); 2356 ControlPower *control_power_proxy_new_for_bus_finish ( 2357 GAsyncResult *res, 2358 GError **error); 2359 ControlPower *control_power_proxy_new_for_bus_sync ( 2360 GBusType bus_type, 2361 GDBusProxyFlags flags, 2362 const gchar *name, 2363 const gchar *object_path, 2364 GCancellable *cancellable, 2365 GError **error); 2366 2367 2368 /* ---- */ 2369 2370 #define TYPE_CONTROL_POWER_SKELETON (control_power_skeleton_get_type ()) 2371 #define CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeleton)) 2372 #define CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) 2373 #define CONTROL_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) 2374 #define IS_CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_SKELETON)) 2375 #define IS_CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_SKELETON)) 2376 2377 typedef struct _ControlPowerSkeleton ControlPowerSkeleton; 2378 typedef struct _ControlPowerSkeletonClass ControlPowerSkeletonClass; 2379 typedef struct _ControlPowerSkeletonPrivate ControlPowerSkeletonPrivate; 2380 2381 struct _ControlPowerSkeleton 2382 { 2383 /*< private >*/ 2384 GDBusInterfaceSkeleton parent_instance; 2385 ControlPowerSkeletonPrivate *priv; 2386 }; 2387 2388 struct _ControlPowerSkeletonClass 2389 { 2390 GDBusInterfaceSkeletonClass parent_class; 2391 }; 2392 2393 GType control_power_skeleton_get_type (void) G_GNUC_CONST; 2394 2395 #if GLIB_CHECK_VERSION(2, 44, 0) 2396 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlPowerSkeleton, g_object_unref) 2397 #endif 2398 2399 ControlPower *control_power_skeleton_new (void); 2400 2401 2402 /* ------------------------------------------------------------------------ */ 2403 /* Declarations for org.openbmc.control.Checkstop */ 2404 2405 #define TYPE_CONTROL_CHECKSTOP (control_checkstop_get_type ()) 2406 #define CONTROL_CHECKSTOP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP, ControlCheckstop)) 2407 #define IS_CONTROL_CHECKSTOP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP)) 2408 #define CONTROL_CHECKSTOP_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_CHECKSTOP, ControlCheckstopIface)) 2409 2410 struct _ControlCheckstop; 2411 typedef struct _ControlCheckstop ControlCheckstop; 2412 typedef struct _ControlCheckstopIface ControlCheckstopIface; 2413 2414 struct _ControlCheckstopIface 2415 { 2416 GTypeInterface parent_iface; 2417 }; 2418 2419 GType control_checkstop_get_type (void) G_GNUC_CONST; 2420 2421 GDBusInterfaceInfo *control_checkstop_interface_info (void); 2422 guint control_checkstop_override_properties (GObjectClass *klass, guint property_id_begin); 2423 2424 2425 /* ---- */ 2426 2427 #define TYPE_CONTROL_CHECKSTOP_PROXY (control_checkstop_proxy_get_type ()) 2428 #define CONTROL_CHECKSTOP_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxy)) 2429 #define CONTROL_CHECKSTOP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxyClass)) 2430 #define CONTROL_CHECKSTOP_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxyClass)) 2431 #define IS_CONTROL_CHECKSTOP_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP_PROXY)) 2432 #define IS_CONTROL_CHECKSTOP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_CHECKSTOP_PROXY)) 2433 2434 typedef struct _ControlCheckstopProxy ControlCheckstopProxy; 2435 typedef struct _ControlCheckstopProxyClass ControlCheckstopProxyClass; 2436 typedef struct _ControlCheckstopProxyPrivate ControlCheckstopProxyPrivate; 2437 2438 struct _ControlCheckstopProxy 2439 { 2440 /*< private >*/ 2441 GDBusProxy parent_instance; 2442 ControlCheckstopProxyPrivate *priv; 2443 }; 2444 2445 struct _ControlCheckstopProxyClass 2446 { 2447 GDBusProxyClass parent_class; 2448 }; 2449 2450 GType control_checkstop_proxy_get_type (void) G_GNUC_CONST; 2451 2452 #if GLIB_CHECK_VERSION(2, 44, 0) 2453 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlCheckstopProxy, g_object_unref) 2454 #endif 2455 2456 void control_checkstop_proxy_new ( 2457 GDBusConnection *connection, 2458 GDBusProxyFlags flags, 2459 const gchar *name, 2460 const gchar *object_path, 2461 GCancellable *cancellable, 2462 GAsyncReadyCallback callback, 2463 gpointer user_data); 2464 ControlCheckstop *control_checkstop_proxy_new_finish ( 2465 GAsyncResult *res, 2466 GError **error); 2467 ControlCheckstop *control_checkstop_proxy_new_sync ( 2468 GDBusConnection *connection, 2469 GDBusProxyFlags flags, 2470 const gchar *name, 2471 const gchar *object_path, 2472 GCancellable *cancellable, 2473 GError **error); 2474 2475 void control_checkstop_proxy_new_for_bus ( 2476 GBusType bus_type, 2477 GDBusProxyFlags flags, 2478 const gchar *name, 2479 const gchar *object_path, 2480 GCancellable *cancellable, 2481 GAsyncReadyCallback callback, 2482 gpointer user_data); 2483 ControlCheckstop *control_checkstop_proxy_new_for_bus_finish ( 2484 GAsyncResult *res, 2485 GError **error); 2486 ControlCheckstop *control_checkstop_proxy_new_for_bus_sync ( 2487 GBusType bus_type, 2488 GDBusProxyFlags flags, 2489 const gchar *name, 2490 const gchar *object_path, 2491 GCancellable *cancellable, 2492 GError **error); 2493 2494 2495 /* ---- */ 2496 2497 #define TYPE_CONTROL_CHECKSTOP_SKELETON (control_checkstop_skeleton_get_type ()) 2498 #define CONTROL_CHECKSTOP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeleton)) 2499 #define CONTROL_CHECKSTOP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeletonClass)) 2500 #define CONTROL_CHECKSTOP_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeletonClass)) 2501 #define IS_CONTROL_CHECKSTOP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP_SKELETON)) 2502 #define IS_CONTROL_CHECKSTOP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_CHECKSTOP_SKELETON)) 2503 2504 typedef struct _ControlCheckstopSkeleton ControlCheckstopSkeleton; 2505 typedef struct _ControlCheckstopSkeletonClass ControlCheckstopSkeletonClass; 2506 typedef struct _ControlCheckstopSkeletonPrivate ControlCheckstopSkeletonPrivate; 2507 2508 struct _ControlCheckstopSkeleton 2509 { 2510 /*< private >*/ 2511 GDBusInterfaceSkeleton parent_instance; 2512 ControlCheckstopSkeletonPrivate *priv; 2513 }; 2514 2515 struct _ControlCheckstopSkeletonClass 2516 { 2517 GDBusInterfaceSkeletonClass parent_class; 2518 }; 2519 2520 GType control_checkstop_skeleton_get_type (void) G_GNUC_CONST; 2521 2522 #if GLIB_CHECK_VERSION(2, 44, 0) 2523 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlCheckstopSkeleton, g_object_unref) 2524 #endif 2525 2526 ControlCheckstop *control_checkstop_skeleton_new (void); 2527 2528 2529 /* ------------------------------------------------------------------------ */ 2530 /* Declarations for org.openbmc.Watchdog */ 2531 2532 #define TYPE_WATCHDOG (watchdog_get_type ()) 2533 #define WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG, Watchdog)) 2534 #define IS_WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG)) 2535 #define WATCHDOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_WATCHDOG, WatchdogIface)) 2536 2537 struct _Watchdog; 2538 typedef struct _Watchdog Watchdog; 2539 typedef struct _WatchdogIface WatchdogIface; 2540 2541 struct _WatchdogIface 2542 { 2543 GTypeInterface parent_iface; 2544 2545 2546 2547 gboolean (*handle_poke) ( 2548 Watchdog *object, 2549 GDBusMethodInvocation *invocation); 2550 2551 gboolean (*handle_set) ( 2552 Watchdog *object, 2553 GDBusMethodInvocation *invocation, 2554 gint arg_interval); 2555 2556 gboolean (*handle_start) ( 2557 Watchdog *object, 2558 GDBusMethodInvocation *invocation); 2559 2560 gboolean (*handle_stop) ( 2561 Watchdog *object, 2562 GDBusMethodInvocation *invocation); 2563 2564 gint (*get_poll_interval) (Watchdog *object); 2565 2566 gint (*get_watchdog) (Watchdog *object); 2567 2568 void (*watchdog_error) ( 2569 Watchdog *object); 2570 2571 }; 2572 2573 GType watchdog_get_type (void) G_GNUC_CONST; 2574 2575 GDBusInterfaceInfo *watchdog_interface_info (void); 2576 guint watchdog_override_properties (GObjectClass *klass, guint property_id_begin); 2577 2578 2579 /* D-Bus method call completion functions: */ 2580 void watchdog_complete_start ( 2581 Watchdog *object, 2582 GDBusMethodInvocation *invocation); 2583 2584 void watchdog_complete_poke ( 2585 Watchdog *object, 2586 GDBusMethodInvocation *invocation); 2587 2588 void watchdog_complete_stop ( 2589 Watchdog *object, 2590 GDBusMethodInvocation *invocation); 2591 2592 void watchdog_complete_set ( 2593 Watchdog *object, 2594 GDBusMethodInvocation *invocation); 2595 2596 2597 2598 /* D-Bus signal emissions functions: */ 2599 void watchdog_emit_watchdog_error ( 2600 Watchdog *object); 2601 2602 2603 2604 /* D-Bus method calls: */ 2605 void watchdog_call_start ( 2606 Watchdog *proxy, 2607 GCancellable *cancellable, 2608 GAsyncReadyCallback callback, 2609 gpointer user_data); 2610 2611 gboolean watchdog_call_start_finish ( 2612 Watchdog *proxy, 2613 GAsyncResult *res, 2614 GError **error); 2615 2616 gboolean watchdog_call_start_sync ( 2617 Watchdog *proxy, 2618 GCancellable *cancellable, 2619 GError **error); 2620 2621 void watchdog_call_poke ( 2622 Watchdog *proxy, 2623 GCancellable *cancellable, 2624 GAsyncReadyCallback callback, 2625 gpointer user_data); 2626 2627 gboolean watchdog_call_poke_finish ( 2628 Watchdog *proxy, 2629 GAsyncResult *res, 2630 GError **error); 2631 2632 gboolean watchdog_call_poke_sync ( 2633 Watchdog *proxy, 2634 GCancellable *cancellable, 2635 GError **error); 2636 2637 void watchdog_call_stop ( 2638 Watchdog *proxy, 2639 GCancellable *cancellable, 2640 GAsyncReadyCallback callback, 2641 gpointer user_data); 2642 2643 gboolean watchdog_call_stop_finish ( 2644 Watchdog *proxy, 2645 GAsyncResult *res, 2646 GError **error); 2647 2648 gboolean watchdog_call_stop_sync ( 2649 Watchdog *proxy, 2650 GCancellable *cancellable, 2651 GError **error); 2652 2653 void watchdog_call_set ( 2654 Watchdog *proxy, 2655 gint arg_interval, 2656 GCancellable *cancellable, 2657 GAsyncReadyCallback callback, 2658 gpointer user_data); 2659 2660 gboolean watchdog_call_set_finish ( 2661 Watchdog *proxy, 2662 GAsyncResult *res, 2663 GError **error); 2664 2665 gboolean watchdog_call_set_sync ( 2666 Watchdog *proxy, 2667 gint arg_interval, 2668 GCancellable *cancellable, 2669 GError **error); 2670 2671 2672 2673 /* D-Bus property accessors: */ 2674 gint watchdog_get_watchdog (Watchdog *object); 2675 void watchdog_set_watchdog (Watchdog *object, gint value); 2676 2677 gint watchdog_get_poll_interval (Watchdog *object); 2678 void watchdog_set_poll_interval (Watchdog *object, gint value); 2679 2680 2681 /* ---- */ 2682 2683 #define TYPE_WATCHDOG_PROXY (watchdog_proxy_get_type ()) 2684 #define WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_PROXY, WatchdogProxy)) 2685 #define WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) 2686 #define WATCHDOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) 2687 #define IS_WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_PROXY)) 2688 #define IS_WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_PROXY)) 2689 2690 typedef struct _WatchdogProxy WatchdogProxy; 2691 typedef struct _WatchdogProxyClass WatchdogProxyClass; 2692 typedef struct _WatchdogProxyPrivate WatchdogProxyPrivate; 2693 2694 struct _WatchdogProxy 2695 { 2696 /*< private >*/ 2697 GDBusProxy parent_instance; 2698 WatchdogProxyPrivate *priv; 2699 }; 2700 2701 struct _WatchdogProxyClass 2702 { 2703 GDBusProxyClass parent_class; 2704 }; 2705 2706 GType watchdog_proxy_get_type (void) G_GNUC_CONST; 2707 2708 #if GLIB_CHECK_VERSION(2, 44, 0) 2709 G_DEFINE_AUTOPTR_CLEANUP_FUNC (WatchdogProxy, g_object_unref) 2710 #endif 2711 2712 void watchdog_proxy_new ( 2713 GDBusConnection *connection, 2714 GDBusProxyFlags flags, 2715 const gchar *name, 2716 const gchar *object_path, 2717 GCancellable *cancellable, 2718 GAsyncReadyCallback callback, 2719 gpointer user_data); 2720 Watchdog *watchdog_proxy_new_finish ( 2721 GAsyncResult *res, 2722 GError **error); 2723 Watchdog *watchdog_proxy_new_sync ( 2724 GDBusConnection *connection, 2725 GDBusProxyFlags flags, 2726 const gchar *name, 2727 const gchar *object_path, 2728 GCancellable *cancellable, 2729 GError **error); 2730 2731 void watchdog_proxy_new_for_bus ( 2732 GBusType bus_type, 2733 GDBusProxyFlags flags, 2734 const gchar *name, 2735 const gchar *object_path, 2736 GCancellable *cancellable, 2737 GAsyncReadyCallback callback, 2738 gpointer user_data); 2739 Watchdog *watchdog_proxy_new_for_bus_finish ( 2740 GAsyncResult *res, 2741 GError **error); 2742 Watchdog *watchdog_proxy_new_for_bus_sync ( 2743 GBusType bus_type, 2744 GDBusProxyFlags flags, 2745 const gchar *name, 2746 const gchar *object_path, 2747 GCancellable *cancellable, 2748 GError **error); 2749 2750 2751 /* ---- */ 2752 2753 #define TYPE_WATCHDOG_SKELETON (watchdog_skeleton_get_type ()) 2754 #define WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeleton)) 2755 #define WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) 2756 #define WATCHDOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) 2757 #define IS_WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_SKELETON)) 2758 #define IS_WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_SKELETON)) 2759 2760 typedef struct _WatchdogSkeleton WatchdogSkeleton; 2761 typedef struct _WatchdogSkeletonClass WatchdogSkeletonClass; 2762 typedef struct _WatchdogSkeletonPrivate WatchdogSkeletonPrivate; 2763 2764 struct _WatchdogSkeleton 2765 { 2766 /*< private >*/ 2767 GDBusInterfaceSkeleton parent_instance; 2768 WatchdogSkeletonPrivate *priv; 2769 }; 2770 2771 struct _WatchdogSkeletonClass 2772 { 2773 GDBusInterfaceSkeletonClass parent_class; 2774 }; 2775 2776 GType watchdog_skeleton_get_type (void) G_GNUC_CONST; 2777 2778 #if GLIB_CHECK_VERSION(2, 44, 0) 2779 G_DEFINE_AUTOPTR_CLEANUP_FUNC (WatchdogSkeleton, g_object_unref) 2780 #endif 2781 2782 Watchdog *watchdog_skeleton_new (void); 2783 2784 2785 /* ------------------------------------------------------------------------ */ 2786 /* Declarations for org.openbmc.EventLog */ 2787 2788 #define TYPE_EVENT_LOG (event_log_get_type ()) 2789 #define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog)) 2790 #define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG)) 2791 #define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface)) 2792 2793 struct _EventLog; 2794 typedef struct _EventLog EventLog; 2795 typedef struct _EventLogIface EventLogIface; 2796 2797 struct _EventLogIface 2798 { 2799 GTypeInterface parent_iface; 2800 2801 2802 gboolean (*handle_get_event_log) ( 2803 EventLog *object, 2804 GDBusMethodInvocation *invocation); 2805 2806 void (*event_log) ( 2807 EventLog *object, 2808 gint arg_priority, 2809 const gchar *arg_message, 2810 gint arg_rc); 2811 2812 }; 2813 2814 GType event_log_get_type (void) G_GNUC_CONST; 2815 2816 GDBusInterfaceInfo *event_log_interface_info (void); 2817 guint event_log_override_properties (GObjectClass *klass, guint property_id_begin); 2818 2819 2820 /* D-Bus method call completion functions: */ 2821 void event_log_complete_get_event_log ( 2822 EventLog *object, 2823 GDBusMethodInvocation *invocation, 2824 GVariant *log); 2825 2826 2827 2828 /* D-Bus signal emissions functions: */ 2829 void event_log_emit_event_log ( 2830 EventLog *object, 2831 gint arg_priority, 2832 const gchar *arg_message, 2833 gint arg_rc); 2834 2835 2836 2837 /* D-Bus method calls: */ 2838 void event_log_call_get_event_log ( 2839 EventLog *proxy, 2840 GCancellable *cancellable, 2841 GAsyncReadyCallback callback, 2842 gpointer user_data); 2843 2844 gboolean event_log_call_get_event_log_finish ( 2845 EventLog *proxy, 2846 GVariant **out_log, 2847 GAsyncResult *res, 2848 GError **error); 2849 2850 gboolean event_log_call_get_event_log_sync ( 2851 EventLog *proxy, 2852 GVariant **out_log, 2853 GCancellable *cancellable, 2854 GError **error); 2855 2856 2857 2858 /* ---- */ 2859 2860 #define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ()) 2861 #define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy)) 2862 #define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) 2863 #define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) 2864 #define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY)) 2865 #define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY)) 2866 2867 typedef struct _EventLogProxy EventLogProxy; 2868 typedef struct _EventLogProxyClass EventLogProxyClass; 2869 typedef struct _EventLogProxyPrivate EventLogProxyPrivate; 2870 2871 struct _EventLogProxy 2872 { 2873 /*< private >*/ 2874 GDBusProxy parent_instance; 2875 EventLogProxyPrivate *priv; 2876 }; 2877 2878 struct _EventLogProxyClass 2879 { 2880 GDBusProxyClass parent_class; 2881 }; 2882 2883 GType event_log_proxy_get_type (void) G_GNUC_CONST; 2884 2885 #if GLIB_CHECK_VERSION(2, 44, 0) 2886 G_DEFINE_AUTOPTR_CLEANUP_FUNC (EventLogProxy, g_object_unref) 2887 #endif 2888 2889 void event_log_proxy_new ( 2890 GDBusConnection *connection, 2891 GDBusProxyFlags flags, 2892 const gchar *name, 2893 const gchar *object_path, 2894 GCancellable *cancellable, 2895 GAsyncReadyCallback callback, 2896 gpointer user_data); 2897 EventLog *event_log_proxy_new_finish ( 2898 GAsyncResult *res, 2899 GError **error); 2900 EventLog *event_log_proxy_new_sync ( 2901 GDBusConnection *connection, 2902 GDBusProxyFlags flags, 2903 const gchar *name, 2904 const gchar *object_path, 2905 GCancellable *cancellable, 2906 GError **error); 2907 2908 void event_log_proxy_new_for_bus ( 2909 GBusType bus_type, 2910 GDBusProxyFlags flags, 2911 const gchar *name, 2912 const gchar *object_path, 2913 GCancellable *cancellable, 2914 GAsyncReadyCallback callback, 2915 gpointer user_data); 2916 EventLog *event_log_proxy_new_for_bus_finish ( 2917 GAsyncResult *res, 2918 GError **error); 2919 EventLog *event_log_proxy_new_for_bus_sync ( 2920 GBusType bus_type, 2921 GDBusProxyFlags flags, 2922 const gchar *name, 2923 const gchar *object_path, 2924 GCancellable *cancellable, 2925 GError **error); 2926 2927 2928 /* ---- */ 2929 2930 #define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ()) 2931 #define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton)) 2932 #define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) 2933 #define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) 2934 #define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON)) 2935 #define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON)) 2936 2937 typedef struct _EventLogSkeleton EventLogSkeleton; 2938 typedef struct _EventLogSkeletonClass EventLogSkeletonClass; 2939 typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate; 2940 2941 struct _EventLogSkeleton 2942 { 2943 /*< private >*/ 2944 GDBusInterfaceSkeleton parent_instance; 2945 EventLogSkeletonPrivate *priv; 2946 }; 2947 2948 struct _EventLogSkeletonClass 2949 { 2950 GDBusInterfaceSkeletonClass parent_class; 2951 }; 2952 2953 GType event_log_skeleton_get_type (void) G_GNUC_CONST; 2954 2955 #if GLIB_CHECK_VERSION(2, 44, 0) 2956 G_DEFINE_AUTOPTR_CLEANUP_FUNC (EventLogSkeleton, g_object_unref) 2957 #endif 2958 2959 EventLog *event_log_skeleton_new (void); 2960 2961 2962 /* ------------------------------------------------------------------------ */ 2963 /* Declarations for org.openbmc.Flash */ 2964 2965 #define TYPE_FLASH (flash_get_type ()) 2966 #define FLASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH, Flash)) 2967 #define IS_FLASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH)) 2968 #define FLASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH, FlashIface)) 2969 2970 struct _Flash; 2971 typedef struct _Flash Flash; 2972 typedef struct _FlashIface FlashIface; 2973 2974 struct _FlashIface 2975 { 2976 GTypeInterface parent_iface; 2977 2978 2979 2980 gboolean (*handle_done) ( 2981 Flash *object, 2982 GDBusMethodInvocation *invocation); 2983 2984 gboolean (*handle_error) ( 2985 Flash *object, 2986 GDBusMethodInvocation *invocation, 2987 const gchar *arg_message); 2988 2989 gboolean (*handle_init) ( 2990 Flash *object, 2991 GDBusMethodInvocation *invocation); 2992 2993 gboolean (*handle_update) ( 2994 Flash *object, 2995 GDBusMethodInvocation *invocation, 2996 const gchar *arg_filename); 2997 2998 gboolean (*handle_update_via_tftp) ( 2999 Flash *object, 3000 GDBusMethodInvocation *invocation, 3001 const gchar *arg_url, 3002 const gchar *arg_filename); 3003 3004 const gchar * (*get_filename) (Flash *object); 3005 3006 const gchar * (*get_flasher_instance) (Flash *object); 3007 3008 const gchar * (*get_flasher_name) (Flash *object); 3009 3010 const gchar * (*get_flasher_path) (Flash *object); 3011 3012 const gchar * (*get_status) (Flash *object); 3013 3014 void (*download) ( 3015 Flash *object, 3016 const gchar *arg_url, 3017 const gchar *arg_filename); 3018 3019 void (*updated) ( 3020 Flash *object); 3021 3022 }; 3023 3024 GType flash_get_type (void) G_GNUC_CONST; 3025 3026 GDBusInterfaceInfo *flash_interface_info (void); 3027 guint flash_override_properties (GObjectClass *klass, guint property_id_begin); 3028 3029 3030 /* D-Bus method call completion functions: */ 3031 void flash_complete_update ( 3032 Flash *object, 3033 GDBusMethodInvocation *invocation); 3034 3035 void flash_complete_error ( 3036 Flash *object, 3037 GDBusMethodInvocation *invocation); 3038 3039 void flash_complete_done ( 3040 Flash *object, 3041 GDBusMethodInvocation *invocation); 3042 3043 void flash_complete_update_via_tftp ( 3044 Flash *object, 3045 GDBusMethodInvocation *invocation); 3046 3047 void flash_complete_init ( 3048 Flash *object, 3049 GDBusMethodInvocation *invocation); 3050 3051 3052 3053 /* D-Bus signal emissions functions: */ 3054 void flash_emit_updated ( 3055 Flash *object); 3056 3057 void flash_emit_download ( 3058 Flash *object, 3059 const gchar *arg_url, 3060 const gchar *arg_filename); 3061 3062 3063 3064 /* D-Bus method calls: */ 3065 void flash_call_update ( 3066 Flash *proxy, 3067 const gchar *arg_filename, 3068 GCancellable *cancellable, 3069 GAsyncReadyCallback callback, 3070 gpointer user_data); 3071 3072 gboolean flash_call_update_finish ( 3073 Flash *proxy, 3074 GAsyncResult *res, 3075 GError **error); 3076 3077 gboolean flash_call_update_sync ( 3078 Flash *proxy, 3079 const gchar *arg_filename, 3080 GCancellable *cancellable, 3081 GError **error); 3082 3083 void flash_call_error ( 3084 Flash *proxy, 3085 const gchar *arg_message, 3086 GCancellable *cancellable, 3087 GAsyncReadyCallback callback, 3088 gpointer user_data); 3089 3090 gboolean flash_call_error_finish ( 3091 Flash *proxy, 3092 GAsyncResult *res, 3093 GError **error); 3094 3095 gboolean flash_call_error_sync ( 3096 Flash *proxy, 3097 const gchar *arg_message, 3098 GCancellable *cancellable, 3099 GError **error); 3100 3101 void flash_call_done ( 3102 Flash *proxy, 3103 GCancellable *cancellable, 3104 GAsyncReadyCallback callback, 3105 gpointer user_data); 3106 3107 gboolean flash_call_done_finish ( 3108 Flash *proxy, 3109 GAsyncResult *res, 3110 GError **error); 3111 3112 gboolean flash_call_done_sync ( 3113 Flash *proxy, 3114 GCancellable *cancellable, 3115 GError **error); 3116 3117 void flash_call_update_via_tftp ( 3118 Flash *proxy, 3119 const gchar *arg_url, 3120 const gchar *arg_filename, 3121 GCancellable *cancellable, 3122 GAsyncReadyCallback callback, 3123 gpointer user_data); 3124 3125 gboolean flash_call_update_via_tftp_finish ( 3126 Flash *proxy, 3127 GAsyncResult *res, 3128 GError **error); 3129 3130 gboolean flash_call_update_via_tftp_sync ( 3131 Flash *proxy, 3132 const gchar *arg_url, 3133 const gchar *arg_filename, 3134 GCancellable *cancellable, 3135 GError **error); 3136 3137 void flash_call_init ( 3138 Flash *proxy, 3139 GCancellable *cancellable, 3140 GAsyncReadyCallback callback, 3141 gpointer user_data); 3142 3143 gboolean flash_call_init_finish ( 3144 Flash *proxy, 3145 GAsyncResult *res, 3146 GError **error); 3147 3148 gboolean flash_call_init_sync ( 3149 Flash *proxy, 3150 GCancellable *cancellable, 3151 GError **error); 3152 3153 3154 3155 /* D-Bus property accessors: */ 3156 const gchar *flash_get_filename (Flash *object); 3157 gchar *flash_dup_filename (Flash *object); 3158 void flash_set_filename (Flash *object, const gchar *value); 3159 3160 const gchar *flash_get_flasher_path (Flash *object); 3161 gchar *flash_dup_flasher_path (Flash *object); 3162 void flash_set_flasher_path (Flash *object, const gchar *value); 3163 3164 const gchar *flash_get_flasher_name (Flash *object); 3165 gchar *flash_dup_flasher_name (Flash *object); 3166 void flash_set_flasher_name (Flash *object, const gchar *value); 3167 3168 const gchar *flash_get_flasher_instance (Flash *object); 3169 gchar *flash_dup_flasher_instance (Flash *object); 3170 void flash_set_flasher_instance (Flash *object, const gchar *value); 3171 3172 const gchar *flash_get_status (Flash *object); 3173 gchar *flash_dup_status (Flash *object); 3174 void flash_set_status (Flash *object, const gchar *value); 3175 3176 3177 /* ---- */ 3178 3179 #define TYPE_FLASH_PROXY (flash_proxy_get_type ()) 3180 #define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy)) 3181 #define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass)) 3182 #define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass)) 3183 #define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY)) 3184 #define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY)) 3185 3186 typedef struct _FlashProxy FlashProxy; 3187 typedef struct _FlashProxyClass FlashProxyClass; 3188 typedef struct _FlashProxyPrivate FlashProxyPrivate; 3189 3190 struct _FlashProxy 3191 { 3192 /*< private >*/ 3193 GDBusProxy parent_instance; 3194 FlashProxyPrivate *priv; 3195 }; 3196 3197 struct _FlashProxyClass 3198 { 3199 GDBusProxyClass parent_class; 3200 }; 3201 3202 GType flash_proxy_get_type (void) G_GNUC_CONST; 3203 3204 #if GLIB_CHECK_VERSION(2, 44, 0) 3205 G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlashProxy, g_object_unref) 3206 #endif 3207 3208 void flash_proxy_new ( 3209 GDBusConnection *connection, 3210 GDBusProxyFlags flags, 3211 const gchar *name, 3212 const gchar *object_path, 3213 GCancellable *cancellable, 3214 GAsyncReadyCallback callback, 3215 gpointer user_data); 3216 Flash *flash_proxy_new_finish ( 3217 GAsyncResult *res, 3218 GError **error); 3219 Flash *flash_proxy_new_sync ( 3220 GDBusConnection *connection, 3221 GDBusProxyFlags flags, 3222 const gchar *name, 3223 const gchar *object_path, 3224 GCancellable *cancellable, 3225 GError **error); 3226 3227 void flash_proxy_new_for_bus ( 3228 GBusType bus_type, 3229 GDBusProxyFlags flags, 3230 const gchar *name, 3231 const gchar *object_path, 3232 GCancellable *cancellable, 3233 GAsyncReadyCallback callback, 3234 gpointer user_data); 3235 Flash *flash_proxy_new_for_bus_finish ( 3236 GAsyncResult *res, 3237 GError **error); 3238 Flash *flash_proxy_new_for_bus_sync ( 3239 GBusType bus_type, 3240 GDBusProxyFlags flags, 3241 const gchar *name, 3242 const gchar *object_path, 3243 GCancellable *cancellable, 3244 GError **error); 3245 3246 3247 /* ---- */ 3248 3249 #define TYPE_FLASH_SKELETON (flash_skeleton_get_type ()) 3250 #define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton)) 3251 #define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass)) 3252 #define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass)) 3253 #define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON)) 3254 #define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON)) 3255 3256 typedef struct _FlashSkeleton FlashSkeleton; 3257 typedef struct _FlashSkeletonClass FlashSkeletonClass; 3258 typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate; 3259 3260 struct _FlashSkeleton 3261 { 3262 /*< private >*/ 3263 GDBusInterfaceSkeleton parent_instance; 3264 FlashSkeletonPrivate *priv; 3265 }; 3266 3267 struct _FlashSkeletonClass 3268 { 3269 GDBusInterfaceSkeletonClass parent_class; 3270 }; 3271 3272 GType flash_skeleton_get_type (void) G_GNUC_CONST; 3273 3274 #if GLIB_CHECK_VERSION(2, 44, 0) 3275 G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlashSkeleton, g_object_unref) 3276 #endif 3277 3278 Flash *flash_skeleton_new (void); 3279 3280 3281 /* ------------------------------------------------------------------------ */ 3282 /* Declarations for org.openbmc.FlashControl */ 3283 3284 #define TYPE_FLASH_CONTROL (flash_control_get_type ()) 3285 #define FLASH_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL, FlashControl)) 3286 #define IS_FLASH_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL)) 3287 #define FLASH_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH_CONTROL, FlashControlIface)) 3288 3289 struct _FlashControl; 3290 typedef struct _FlashControl FlashControl; 3291 typedef struct _FlashControlIface FlashControlIface; 3292 3293 struct _FlashControlIface 3294 { 3295 GTypeInterface parent_iface; 3296 3297 3298 3299 gboolean (*handle_flash) ( 3300 FlashControl *object, 3301 GDBusMethodInvocation *invocation, 3302 const gchar *arg_type, 3303 const gchar *arg_filename); 3304 3305 const gchar * (*get_filename) (FlashControl *object); 3306 3307 const gchar * (*get_type_) (FlashControl *object); 3308 3309 void (*done) ( 3310 FlashControl *object, 3311 const gchar *arg_filename); 3312 3313 void (*error) ( 3314 FlashControl *object, 3315 const gchar *arg_filename); 3316 3317 void (*progress) ( 3318 FlashControl *object, 3319 const gchar *arg_filename, 3320 guchar arg_progress); 3321 3322 }; 3323 3324 GType flash_control_get_type (void) G_GNUC_CONST; 3325 3326 GDBusInterfaceInfo *flash_control_interface_info (void); 3327 guint flash_control_override_properties (GObjectClass *klass, guint property_id_begin); 3328 3329 3330 /* D-Bus method call completion functions: */ 3331 void flash_control_complete_flash ( 3332 FlashControl *object, 3333 GDBusMethodInvocation *invocation); 3334 3335 3336 3337 /* D-Bus signal emissions functions: */ 3338 void flash_control_emit_done ( 3339 FlashControl *object, 3340 const gchar *arg_filename); 3341 3342 void flash_control_emit_error ( 3343 FlashControl *object, 3344 const gchar *arg_filename); 3345 3346 void flash_control_emit_progress ( 3347 FlashControl *object, 3348 const gchar *arg_filename, 3349 guchar arg_progress); 3350 3351 3352 3353 /* D-Bus method calls: */ 3354 void flash_control_call_flash ( 3355 FlashControl *proxy, 3356 const gchar *arg_type, 3357 const gchar *arg_filename, 3358 GCancellable *cancellable, 3359 GAsyncReadyCallback callback, 3360 gpointer user_data); 3361 3362 gboolean flash_control_call_flash_finish ( 3363 FlashControl *proxy, 3364 GAsyncResult *res, 3365 GError **error); 3366 3367 gboolean flash_control_call_flash_sync ( 3368 FlashControl *proxy, 3369 const gchar *arg_type, 3370 const gchar *arg_filename, 3371 GCancellable *cancellable, 3372 GError **error); 3373 3374 3375 3376 /* D-Bus property accessors: */ 3377 const gchar *flash_control_get_filename (FlashControl *object); 3378 gchar *flash_control_dup_filename (FlashControl *object); 3379 void flash_control_set_filename (FlashControl *object, const gchar *value); 3380 3381 const gchar *flash_control_get_type_ (FlashControl *object); 3382 gchar *flash_control_dup_type_ (FlashControl *object); 3383 void flash_control_set_type_ (FlashControl *object, const gchar *value); 3384 3385 3386 /* ---- */ 3387 3388 #define TYPE_FLASH_CONTROL_PROXY (flash_control_proxy_get_type ()) 3389 #define FLASH_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL_PROXY, FlashControlProxy)) 3390 #define FLASH_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_CONTROL_PROXY, FlashControlProxyClass)) 3391 #define FLASH_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_CONTROL_PROXY, FlashControlProxyClass)) 3392 #define IS_FLASH_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL_PROXY)) 3393 #define IS_FLASH_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_CONTROL_PROXY)) 3394 3395 typedef struct _FlashControlProxy FlashControlProxy; 3396 typedef struct _FlashControlProxyClass FlashControlProxyClass; 3397 typedef struct _FlashControlProxyPrivate FlashControlProxyPrivate; 3398 3399 struct _FlashControlProxy 3400 { 3401 /*< private >*/ 3402 GDBusProxy parent_instance; 3403 FlashControlProxyPrivate *priv; 3404 }; 3405 3406 struct _FlashControlProxyClass 3407 { 3408 GDBusProxyClass parent_class; 3409 }; 3410 3411 GType flash_control_proxy_get_type (void) G_GNUC_CONST; 3412 3413 #if GLIB_CHECK_VERSION(2, 44, 0) 3414 G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlashControlProxy, g_object_unref) 3415 #endif 3416 3417 void flash_control_proxy_new ( 3418 GDBusConnection *connection, 3419 GDBusProxyFlags flags, 3420 const gchar *name, 3421 const gchar *object_path, 3422 GCancellable *cancellable, 3423 GAsyncReadyCallback callback, 3424 gpointer user_data); 3425 FlashControl *flash_control_proxy_new_finish ( 3426 GAsyncResult *res, 3427 GError **error); 3428 FlashControl *flash_control_proxy_new_sync ( 3429 GDBusConnection *connection, 3430 GDBusProxyFlags flags, 3431 const gchar *name, 3432 const gchar *object_path, 3433 GCancellable *cancellable, 3434 GError **error); 3435 3436 void flash_control_proxy_new_for_bus ( 3437 GBusType bus_type, 3438 GDBusProxyFlags flags, 3439 const gchar *name, 3440 const gchar *object_path, 3441 GCancellable *cancellable, 3442 GAsyncReadyCallback callback, 3443 gpointer user_data); 3444 FlashControl *flash_control_proxy_new_for_bus_finish ( 3445 GAsyncResult *res, 3446 GError **error); 3447 FlashControl *flash_control_proxy_new_for_bus_sync ( 3448 GBusType bus_type, 3449 GDBusProxyFlags flags, 3450 const gchar *name, 3451 const gchar *object_path, 3452 GCancellable *cancellable, 3453 GError **error); 3454 3455 3456 /* ---- */ 3457 3458 #define TYPE_FLASH_CONTROL_SKELETON (flash_control_skeleton_get_type ()) 3459 #define FLASH_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeleton)) 3460 #define FLASH_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeletonClass)) 3461 #define FLASH_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeletonClass)) 3462 #define IS_FLASH_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL_SKELETON)) 3463 #define IS_FLASH_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_CONTROL_SKELETON)) 3464 3465 typedef struct _FlashControlSkeleton FlashControlSkeleton; 3466 typedef struct _FlashControlSkeletonClass FlashControlSkeletonClass; 3467 typedef struct _FlashControlSkeletonPrivate FlashControlSkeletonPrivate; 3468 3469 struct _FlashControlSkeleton 3470 { 3471 /*< private >*/ 3472 GDBusInterfaceSkeleton parent_instance; 3473 FlashControlSkeletonPrivate *priv; 3474 }; 3475 3476 struct _FlashControlSkeletonClass 3477 { 3478 GDBusInterfaceSkeletonClass parent_class; 3479 }; 3480 3481 GType flash_control_skeleton_get_type (void) G_GNUC_CONST; 3482 3483 #if GLIB_CHECK_VERSION(2, 44, 0) 3484 G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlashControlSkeleton, g_object_unref) 3485 #endif 3486 3487 FlashControl *flash_control_skeleton_new (void); 3488 3489 3490 /* ------------------------------------------------------------------------ */ 3491 /* Declarations for org.openbmc.Button */ 3492 3493 #define TYPE_BUTTON (button_get_type ()) 3494 #define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button)) 3495 #define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON)) 3496 #define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface)) 3497 3498 struct _Button; 3499 typedef struct _Button Button; 3500 typedef struct _ButtonIface ButtonIface; 3501 3502 struct _ButtonIface 3503 { 3504 GTypeInterface parent_iface; 3505 3506 3507 3508 gboolean (*handle_is_on) ( 3509 Button *object, 3510 GDBusMethodInvocation *invocation); 3511 3512 gboolean (*handle_sim_long_press) ( 3513 Button *object, 3514 GDBusMethodInvocation *invocation); 3515 3516 gboolean (*handle_sim_press) ( 3517 Button *object, 3518 GDBusMethodInvocation *invocation); 3519 3520 gboolean (*get_state) (Button *object); 3521 3522 guint64 (*get_timer) (Button *object); 3523 3524 void (*pressed) ( 3525 Button *object); 3526 3527 void (*pressed_long) ( 3528 Button *object); 3529 3530 void (*released) ( 3531 Button *object); 3532 3533 }; 3534 3535 GType button_get_type (void) G_GNUC_CONST; 3536 3537 GDBusInterfaceInfo *button_interface_info (void); 3538 guint button_override_properties (GObjectClass *klass, guint property_id_begin); 3539 3540 3541 /* D-Bus method call completion functions: */ 3542 void button_complete_is_on ( 3543 Button *object, 3544 GDBusMethodInvocation *invocation, 3545 gboolean state); 3546 3547 void button_complete_sim_press ( 3548 Button *object, 3549 GDBusMethodInvocation *invocation); 3550 3551 void button_complete_sim_long_press ( 3552 Button *object, 3553 GDBusMethodInvocation *invocation); 3554 3555 3556 3557 /* D-Bus signal emissions functions: */ 3558 void button_emit_released ( 3559 Button *object); 3560 3561 void button_emit_pressed ( 3562 Button *object); 3563 3564 void button_emit_pressed_long ( 3565 Button *object); 3566 3567 3568 3569 /* D-Bus method calls: */ 3570 void button_call_is_on ( 3571 Button *proxy, 3572 GCancellable *cancellable, 3573 GAsyncReadyCallback callback, 3574 gpointer user_data); 3575 3576 gboolean button_call_is_on_finish ( 3577 Button *proxy, 3578 gboolean *out_state, 3579 GAsyncResult *res, 3580 GError **error); 3581 3582 gboolean button_call_is_on_sync ( 3583 Button *proxy, 3584 gboolean *out_state, 3585 GCancellable *cancellable, 3586 GError **error); 3587 3588 void button_call_sim_press ( 3589 Button *proxy, 3590 GCancellable *cancellable, 3591 GAsyncReadyCallback callback, 3592 gpointer user_data); 3593 3594 gboolean button_call_sim_press_finish ( 3595 Button *proxy, 3596 GAsyncResult *res, 3597 GError **error); 3598 3599 gboolean button_call_sim_press_sync ( 3600 Button *proxy, 3601 GCancellable *cancellable, 3602 GError **error); 3603 3604 void button_call_sim_long_press ( 3605 Button *proxy, 3606 GCancellable *cancellable, 3607 GAsyncReadyCallback callback, 3608 gpointer user_data); 3609 3610 gboolean button_call_sim_long_press_finish ( 3611 Button *proxy, 3612 GAsyncResult *res, 3613 GError **error); 3614 3615 gboolean button_call_sim_long_press_sync ( 3616 Button *proxy, 3617 GCancellable *cancellable, 3618 GError **error); 3619 3620 3621 3622 /* D-Bus property accessors: */ 3623 gboolean button_get_state (Button *object); 3624 void button_set_state (Button *object, gboolean value); 3625 3626 guint64 button_get_timer (Button *object); 3627 void button_set_timer (Button *object, guint64 value); 3628 3629 3630 /* ---- */ 3631 3632 #define TYPE_BUTTON_PROXY (button_proxy_get_type ()) 3633 #define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy)) 3634 #define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass)) 3635 #define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass)) 3636 #define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY)) 3637 #define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY)) 3638 3639 typedef struct _ButtonProxy ButtonProxy; 3640 typedef struct _ButtonProxyClass ButtonProxyClass; 3641 typedef struct _ButtonProxyPrivate ButtonProxyPrivate; 3642 3643 struct _ButtonProxy 3644 { 3645 /*< private >*/ 3646 GDBusProxy parent_instance; 3647 ButtonProxyPrivate *priv; 3648 }; 3649 3650 struct _ButtonProxyClass 3651 { 3652 GDBusProxyClass parent_class; 3653 }; 3654 3655 GType button_proxy_get_type (void) G_GNUC_CONST; 3656 3657 #if GLIB_CHECK_VERSION(2, 44, 0) 3658 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ButtonProxy, g_object_unref) 3659 #endif 3660 3661 void button_proxy_new ( 3662 GDBusConnection *connection, 3663 GDBusProxyFlags flags, 3664 const gchar *name, 3665 const gchar *object_path, 3666 GCancellable *cancellable, 3667 GAsyncReadyCallback callback, 3668 gpointer user_data); 3669 Button *button_proxy_new_finish ( 3670 GAsyncResult *res, 3671 GError **error); 3672 Button *button_proxy_new_sync ( 3673 GDBusConnection *connection, 3674 GDBusProxyFlags flags, 3675 const gchar *name, 3676 const gchar *object_path, 3677 GCancellable *cancellable, 3678 GError **error); 3679 3680 void button_proxy_new_for_bus ( 3681 GBusType bus_type, 3682 GDBusProxyFlags flags, 3683 const gchar *name, 3684 const gchar *object_path, 3685 GCancellable *cancellable, 3686 GAsyncReadyCallback callback, 3687 gpointer user_data); 3688 Button *button_proxy_new_for_bus_finish ( 3689 GAsyncResult *res, 3690 GError **error); 3691 Button *button_proxy_new_for_bus_sync ( 3692 GBusType bus_type, 3693 GDBusProxyFlags flags, 3694 const gchar *name, 3695 const gchar *object_path, 3696 GCancellable *cancellable, 3697 GError **error); 3698 3699 3700 /* ---- */ 3701 3702 #define TYPE_BUTTON_SKELETON (button_skeleton_get_type ()) 3703 #define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton)) 3704 #define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) 3705 #define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) 3706 #define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON)) 3707 #define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON)) 3708 3709 typedef struct _ButtonSkeleton ButtonSkeleton; 3710 typedef struct _ButtonSkeletonClass ButtonSkeletonClass; 3711 typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate; 3712 3713 struct _ButtonSkeleton 3714 { 3715 /*< private >*/ 3716 GDBusInterfaceSkeleton parent_instance; 3717 ButtonSkeletonPrivate *priv; 3718 }; 3719 3720 struct _ButtonSkeletonClass 3721 { 3722 GDBusInterfaceSkeletonClass parent_class; 3723 }; 3724 3725 GType button_skeleton_get_type (void) G_GNUC_CONST; 3726 3727 #if GLIB_CHECK_VERSION(2, 44, 0) 3728 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ButtonSkeleton, g_object_unref) 3729 #endif 3730 3731 Button *button_skeleton_new (void); 3732 3733 3734 /* ------------------------------------------------------------------------ */ 3735 /* Declarations for org.openbmc.Led */ 3736 3737 #define TYPE_LED (led_get_type ()) 3738 #define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led)) 3739 #define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED)) 3740 #define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface)) 3741 3742 struct _Led; 3743 typedef struct _Led Led; 3744 typedef struct _LedIface LedIface; 3745 3746 struct _LedIface 3747 { 3748 GTypeInterface parent_iface; 3749 3750 3751 gboolean (*handle_set_blink_fast) ( 3752 Led *object, 3753 GDBusMethodInvocation *invocation); 3754 3755 gboolean (*handle_set_blink_slow) ( 3756 Led *object, 3757 GDBusMethodInvocation *invocation); 3758 3759 gboolean (*handle_set_off) ( 3760 Led *object, 3761 GDBusMethodInvocation *invocation); 3762 3763 gboolean (*handle_set_on) ( 3764 Led *object, 3765 GDBusMethodInvocation *invocation); 3766 3767 gint (*get_color) (Led *object); 3768 3769 const gchar * (*get_function) (Led *object); 3770 3771 const gchar * (*get_state) (Led *object); 3772 3773 }; 3774 3775 GType led_get_type (void) G_GNUC_CONST; 3776 3777 GDBusInterfaceInfo *led_interface_info (void); 3778 guint led_override_properties (GObjectClass *klass, guint property_id_begin); 3779 3780 3781 /* D-Bus method call completion functions: */ 3782 void led_complete_set_on ( 3783 Led *object, 3784 GDBusMethodInvocation *invocation); 3785 3786 void led_complete_set_off ( 3787 Led *object, 3788 GDBusMethodInvocation *invocation); 3789 3790 void led_complete_set_blink_slow ( 3791 Led *object, 3792 GDBusMethodInvocation *invocation); 3793 3794 void led_complete_set_blink_fast ( 3795 Led *object, 3796 GDBusMethodInvocation *invocation); 3797 3798 3799 3800 /* D-Bus method calls: */ 3801 void led_call_set_on ( 3802 Led *proxy, 3803 GCancellable *cancellable, 3804 GAsyncReadyCallback callback, 3805 gpointer user_data); 3806 3807 gboolean led_call_set_on_finish ( 3808 Led *proxy, 3809 GAsyncResult *res, 3810 GError **error); 3811 3812 gboolean led_call_set_on_sync ( 3813 Led *proxy, 3814 GCancellable *cancellable, 3815 GError **error); 3816 3817 void led_call_set_off ( 3818 Led *proxy, 3819 GCancellable *cancellable, 3820 GAsyncReadyCallback callback, 3821 gpointer user_data); 3822 3823 gboolean led_call_set_off_finish ( 3824 Led *proxy, 3825 GAsyncResult *res, 3826 GError **error); 3827 3828 gboolean led_call_set_off_sync ( 3829 Led *proxy, 3830 GCancellable *cancellable, 3831 GError **error); 3832 3833 void led_call_set_blink_slow ( 3834 Led *proxy, 3835 GCancellable *cancellable, 3836 GAsyncReadyCallback callback, 3837 gpointer user_data); 3838 3839 gboolean led_call_set_blink_slow_finish ( 3840 Led *proxy, 3841 GAsyncResult *res, 3842 GError **error); 3843 3844 gboolean led_call_set_blink_slow_sync ( 3845 Led *proxy, 3846 GCancellable *cancellable, 3847 GError **error); 3848 3849 void led_call_set_blink_fast ( 3850 Led *proxy, 3851 GCancellable *cancellable, 3852 GAsyncReadyCallback callback, 3853 gpointer user_data); 3854 3855 gboolean led_call_set_blink_fast_finish ( 3856 Led *proxy, 3857 GAsyncResult *res, 3858 GError **error); 3859 3860 gboolean led_call_set_blink_fast_sync ( 3861 Led *proxy, 3862 GCancellable *cancellable, 3863 GError **error); 3864 3865 3866 3867 /* D-Bus property accessors: */ 3868 gint led_get_color (Led *object); 3869 void led_set_color (Led *object, gint value); 3870 3871 const gchar *led_get_function (Led *object); 3872 gchar *led_dup_function (Led *object); 3873 void led_set_function (Led *object, const gchar *value); 3874 3875 const gchar *led_get_state (Led *object); 3876 gchar *led_dup_state (Led *object); 3877 void led_set_state (Led *object, const gchar *value); 3878 3879 3880 /* ---- */ 3881 3882 #define TYPE_LED_PROXY (led_proxy_get_type ()) 3883 #define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy)) 3884 #define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass)) 3885 #define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass)) 3886 #define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY)) 3887 #define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY)) 3888 3889 typedef struct _LedProxy LedProxy; 3890 typedef struct _LedProxyClass LedProxyClass; 3891 typedef struct _LedProxyPrivate LedProxyPrivate; 3892 3893 struct _LedProxy 3894 { 3895 /*< private >*/ 3896 GDBusProxy parent_instance; 3897 LedProxyPrivate *priv; 3898 }; 3899 3900 struct _LedProxyClass 3901 { 3902 GDBusProxyClass parent_class; 3903 }; 3904 3905 GType led_proxy_get_type (void) G_GNUC_CONST; 3906 3907 #if GLIB_CHECK_VERSION(2, 44, 0) 3908 G_DEFINE_AUTOPTR_CLEANUP_FUNC (LedProxy, g_object_unref) 3909 #endif 3910 3911 void led_proxy_new ( 3912 GDBusConnection *connection, 3913 GDBusProxyFlags flags, 3914 const gchar *name, 3915 const gchar *object_path, 3916 GCancellable *cancellable, 3917 GAsyncReadyCallback callback, 3918 gpointer user_data); 3919 Led *led_proxy_new_finish ( 3920 GAsyncResult *res, 3921 GError **error); 3922 Led *led_proxy_new_sync ( 3923 GDBusConnection *connection, 3924 GDBusProxyFlags flags, 3925 const gchar *name, 3926 const gchar *object_path, 3927 GCancellable *cancellable, 3928 GError **error); 3929 3930 void led_proxy_new_for_bus ( 3931 GBusType bus_type, 3932 GDBusProxyFlags flags, 3933 const gchar *name, 3934 const gchar *object_path, 3935 GCancellable *cancellable, 3936 GAsyncReadyCallback callback, 3937 gpointer user_data); 3938 Led *led_proxy_new_for_bus_finish ( 3939 GAsyncResult *res, 3940 GError **error); 3941 Led *led_proxy_new_for_bus_sync ( 3942 GBusType bus_type, 3943 GDBusProxyFlags flags, 3944 const gchar *name, 3945 const gchar *object_path, 3946 GCancellable *cancellable, 3947 GError **error); 3948 3949 3950 /* ---- */ 3951 3952 #define TYPE_LED_SKELETON (led_skeleton_get_type ()) 3953 #define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton)) 3954 #define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass)) 3955 #define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass)) 3956 #define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON)) 3957 #define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON)) 3958 3959 typedef struct _LedSkeleton LedSkeleton; 3960 typedef struct _LedSkeletonClass LedSkeletonClass; 3961 typedef struct _LedSkeletonPrivate LedSkeletonPrivate; 3962 3963 struct _LedSkeleton 3964 { 3965 /*< private >*/ 3966 GDBusInterfaceSkeleton parent_instance; 3967 LedSkeletonPrivate *priv; 3968 }; 3969 3970 struct _LedSkeletonClass 3971 { 3972 GDBusInterfaceSkeletonClass parent_class; 3973 }; 3974 3975 GType led_skeleton_get_type (void) G_GNUC_CONST; 3976 3977 #if GLIB_CHECK_VERSION(2, 44, 0) 3978 G_DEFINE_AUTOPTR_CLEANUP_FUNC (LedSkeleton, g_object_unref) 3979 #endif 3980 3981 Led *led_skeleton_new (void); 3982 3983 3984 /* ------------------------------------------------------------------------ */ 3985 /* Declarations for org.openbmc.HostIpmi */ 3986 3987 #define TYPE_HOST_IPMI (host_ipmi_get_type ()) 3988 #define HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI, HostIpmi)) 3989 #define IS_HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI)) 3990 #define HOST_IPMI_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOST_IPMI, HostIpmiIface)) 3991 3992 struct _HostIpmi; 3993 typedef struct _HostIpmi HostIpmi; 3994 typedef struct _HostIpmiIface HostIpmiIface; 3995 3996 struct _HostIpmiIface 3997 { 3998 GTypeInterface parent_iface; 3999 4000 4001 gboolean (*handle_send_message) ( 4002 HostIpmi *object, 4003 GDBusMethodInvocation *invocation, 4004 guchar arg_seq, 4005 guchar arg_netfn, 4006 guchar arg_cmd, 4007 const gchar *arg_data); 4008 4009 void (*received_message) ( 4010 HostIpmi *object, 4011 guchar arg_seq, 4012 guchar arg_netfn, 4013 guchar arg_cmd, 4014 const gchar *arg_data); 4015 4016 }; 4017 4018 GType host_ipmi_get_type (void) G_GNUC_CONST; 4019 4020 GDBusInterfaceInfo *host_ipmi_interface_info (void); 4021 guint host_ipmi_override_properties (GObjectClass *klass, guint property_id_begin); 4022 4023 4024 /* D-Bus method call completion functions: */ 4025 void host_ipmi_complete_send_message ( 4026 HostIpmi *object, 4027 GDBusMethodInvocation *invocation, 4028 gint64 unnamed_arg4); 4029 4030 4031 4032 /* D-Bus signal emissions functions: */ 4033 void host_ipmi_emit_received_message ( 4034 HostIpmi *object, 4035 guchar arg_seq, 4036 guchar arg_netfn, 4037 guchar arg_cmd, 4038 const gchar *arg_data); 4039 4040 4041 4042 /* D-Bus method calls: */ 4043 void host_ipmi_call_send_message ( 4044 HostIpmi *proxy, 4045 guchar arg_seq, 4046 guchar arg_netfn, 4047 guchar arg_cmd, 4048 const gchar *arg_data, 4049 GCancellable *cancellable, 4050 GAsyncReadyCallback callback, 4051 gpointer user_data); 4052 4053 gboolean host_ipmi_call_send_message_finish ( 4054 HostIpmi *proxy, 4055 gint64 *out_unnamed_arg4, 4056 GAsyncResult *res, 4057 GError **error); 4058 4059 gboolean host_ipmi_call_send_message_sync ( 4060 HostIpmi *proxy, 4061 guchar arg_seq, 4062 guchar arg_netfn, 4063 guchar arg_cmd, 4064 const gchar *arg_data, 4065 gint64 *out_unnamed_arg4, 4066 GCancellable *cancellable, 4067 GError **error); 4068 4069 4070 4071 /* ---- */ 4072 4073 #define TYPE_HOST_IPMI_PROXY (host_ipmi_proxy_get_type ()) 4074 #define HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxy)) 4075 #define HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass)) 4076 #define HOST_IPMI_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass)) 4077 #define IS_HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_PROXY)) 4078 #define IS_HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_PROXY)) 4079 4080 typedef struct _HostIpmiProxy HostIpmiProxy; 4081 typedef struct _HostIpmiProxyClass HostIpmiProxyClass; 4082 typedef struct _HostIpmiProxyPrivate HostIpmiProxyPrivate; 4083 4084 struct _HostIpmiProxy 4085 { 4086 /*< private >*/ 4087 GDBusProxy parent_instance; 4088 HostIpmiProxyPrivate *priv; 4089 }; 4090 4091 struct _HostIpmiProxyClass 4092 { 4093 GDBusProxyClass parent_class; 4094 }; 4095 4096 GType host_ipmi_proxy_get_type (void) G_GNUC_CONST; 4097 4098 #if GLIB_CHECK_VERSION(2, 44, 0) 4099 G_DEFINE_AUTOPTR_CLEANUP_FUNC (HostIpmiProxy, g_object_unref) 4100 #endif 4101 4102 void host_ipmi_proxy_new ( 4103 GDBusConnection *connection, 4104 GDBusProxyFlags flags, 4105 const gchar *name, 4106 const gchar *object_path, 4107 GCancellable *cancellable, 4108 GAsyncReadyCallback callback, 4109 gpointer user_data); 4110 HostIpmi *host_ipmi_proxy_new_finish ( 4111 GAsyncResult *res, 4112 GError **error); 4113 HostIpmi *host_ipmi_proxy_new_sync ( 4114 GDBusConnection *connection, 4115 GDBusProxyFlags flags, 4116 const gchar *name, 4117 const gchar *object_path, 4118 GCancellable *cancellable, 4119 GError **error); 4120 4121 void host_ipmi_proxy_new_for_bus ( 4122 GBusType bus_type, 4123 GDBusProxyFlags flags, 4124 const gchar *name, 4125 const gchar *object_path, 4126 GCancellable *cancellable, 4127 GAsyncReadyCallback callback, 4128 gpointer user_data); 4129 HostIpmi *host_ipmi_proxy_new_for_bus_finish ( 4130 GAsyncResult *res, 4131 GError **error); 4132 HostIpmi *host_ipmi_proxy_new_for_bus_sync ( 4133 GBusType bus_type, 4134 GDBusProxyFlags flags, 4135 const gchar *name, 4136 const gchar *object_path, 4137 GCancellable *cancellable, 4138 GError **error); 4139 4140 4141 /* ---- */ 4142 4143 #define TYPE_HOST_IPMI_SKELETON (host_ipmi_skeleton_get_type ()) 4144 #define HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeleton)) 4145 #define HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass)) 4146 #define HOST_IPMI_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass)) 4147 #define IS_HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_SKELETON)) 4148 #define IS_HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_SKELETON)) 4149 4150 typedef struct _HostIpmiSkeleton HostIpmiSkeleton; 4151 typedef struct _HostIpmiSkeletonClass HostIpmiSkeletonClass; 4152 typedef struct _HostIpmiSkeletonPrivate HostIpmiSkeletonPrivate; 4153 4154 struct _HostIpmiSkeleton 4155 { 4156 /*< private >*/ 4157 GDBusInterfaceSkeleton parent_instance; 4158 HostIpmiSkeletonPrivate *priv; 4159 }; 4160 4161 struct _HostIpmiSkeletonClass 4162 { 4163 GDBusInterfaceSkeletonClass parent_class; 4164 }; 4165 4166 GType host_ipmi_skeleton_get_type (void) G_GNUC_CONST; 4167 4168 #if GLIB_CHECK_VERSION(2, 44, 0) 4169 G_DEFINE_AUTOPTR_CLEANUP_FUNC (HostIpmiSkeleton, g_object_unref) 4170 #endif 4171 4172 HostIpmi *host_ipmi_skeleton_new (void); 4173 4174 4175 /* ---- */ 4176 4177 #define TYPE_OBJECT (object_get_type ()) 4178 #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) 4179 #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) 4180 #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) 4181 4182 struct _Object; 4183 typedef struct _Object Object; 4184 typedef struct _ObjectIface ObjectIface; 4185 4186 struct _ObjectIface 4187 { 4188 GTypeInterface parent_iface; 4189 }; 4190 4191 GType object_get_type (void) G_GNUC_CONST; 4192 4193 Hwmon *object_get_hwmon (Object *object); 4194 Fan *object_get_fan (Object *object); 4195 SensorValue *object_get_sensor_value (Object *object); 4196 SensorThreshold *object_get_sensor_threshold (Object *object); 4197 SensorI2c *object_get_sensor_i2c (Object *object); 4198 SensorMatch *object_get_sensor_match (Object *object); 4199 Process *object_get_process (Object *object); 4200 SharedResource *object_get_shared_resource (Object *object); 4201 Control *object_get_control (Object *object); 4202 ControlBmc *object_get_control_bmc (Object *object); 4203 ControlHost *object_get_control_host (Object *object); 4204 ControlPower *object_get_control_power (Object *object); 4205 ControlCheckstop *object_get_control_checkstop (Object *object); 4206 Watchdog *object_get_watchdog (Object *object); 4207 EventLog *object_get_event_log (Object *object); 4208 Flash *object_get_flash (Object *object); 4209 FlashControl *object_get_flash_control (Object *object); 4210 Button *object_get_button (Object *object); 4211 Led *object_get_led (Object *object); 4212 HostIpmi *object_get_host_ipmi (Object *object); 4213 Hwmon *object_peek_hwmon (Object *object); 4214 Fan *object_peek_fan (Object *object); 4215 SensorValue *object_peek_sensor_value (Object *object); 4216 SensorThreshold *object_peek_sensor_threshold (Object *object); 4217 SensorI2c *object_peek_sensor_i2c (Object *object); 4218 SensorMatch *object_peek_sensor_match (Object *object); 4219 Process *object_peek_process (Object *object); 4220 SharedResource *object_peek_shared_resource (Object *object); 4221 Control *object_peek_control (Object *object); 4222 ControlBmc *object_peek_control_bmc (Object *object); 4223 ControlHost *object_peek_control_host (Object *object); 4224 ControlPower *object_peek_control_power (Object *object); 4225 ControlCheckstop *object_peek_control_checkstop (Object *object); 4226 Watchdog *object_peek_watchdog (Object *object); 4227 EventLog *object_peek_event_log (Object *object); 4228 Flash *object_peek_flash (Object *object); 4229 FlashControl *object_peek_flash_control (Object *object); 4230 Button *object_peek_button (Object *object); 4231 Led *object_peek_led (Object *object); 4232 HostIpmi *object_peek_host_ipmi (Object *object); 4233 4234 #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) 4235 #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) 4236 #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) 4237 #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) 4238 #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) 4239 #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) 4240 4241 typedef struct _ObjectProxy ObjectProxy; 4242 typedef struct _ObjectProxyClass ObjectProxyClass; 4243 typedef struct _ObjectProxyPrivate ObjectProxyPrivate; 4244 4245 struct _ObjectProxy 4246 { 4247 /*< private >*/ 4248 GDBusObjectProxy parent_instance; 4249 ObjectProxyPrivate *priv; 4250 }; 4251 4252 struct _ObjectProxyClass 4253 { 4254 GDBusObjectProxyClass parent_class; 4255 }; 4256 4257 GType object_proxy_get_type (void) G_GNUC_CONST; 4258 4259 #if GLIB_CHECK_VERSION(2, 44, 0) 4260 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ObjectProxy, g_object_unref) 4261 #endif 4262 4263 ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); 4264 4265 #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) 4266 #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) 4267 #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) 4268 #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) 4269 #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) 4270 #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) 4271 4272 typedef struct _ObjectSkeleton ObjectSkeleton; 4273 typedef struct _ObjectSkeletonClass ObjectSkeletonClass; 4274 typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; 4275 4276 struct _ObjectSkeleton 4277 { 4278 /*< private >*/ 4279 GDBusObjectSkeleton parent_instance; 4280 ObjectSkeletonPrivate *priv; 4281 }; 4282 4283 struct _ObjectSkeletonClass 4284 { 4285 GDBusObjectSkeletonClass parent_class; 4286 }; 4287 4288 GType object_skeleton_get_type (void) G_GNUC_CONST; 4289 4290 #if GLIB_CHECK_VERSION(2, 44, 0) 4291 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ObjectSkeleton, g_object_unref) 4292 #endif 4293 4294 ObjectSkeleton *object_skeleton_new (const gchar *object_path); 4295 void object_skeleton_set_hwmon (ObjectSkeleton *object, Hwmon *interface_); 4296 void object_skeleton_set_fan (ObjectSkeleton *object, Fan *interface_); 4297 void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_); 4298 void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_); 4299 void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_); 4300 void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_); 4301 void object_skeleton_set_process (ObjectSkeleton *object, Process *interface_); 4302 void object_skeleton_set_shared_resource (ObjectSkeleton *object, SharedResource *interface_); 4303 void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_); 4304 void object_skeleton_set_control_bmc (ObjectSkeleton *object, ControlBmc *interface_); 4305 void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_); 4306 void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_); 4307 void object_skeleton_set_control_checkstop (ObjectSkeleton *object, ControlCheckstop *interface_); 4308 void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_); 4309 void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_); 4310 void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_); 4311 void object_skeleton_set_flash_control (ObjectSkeleton *object, FlashControl *interface_); 4312 void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_); 4313 void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_); 4314 void object_skeleton_set_host_ipmi (ObjectSkeleton *object, HostIpmi *interface_); 4315 4316 /* ---- */ 4317 4318 #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) 4319 #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) 4320 #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) 4321 #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) 4322 #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) 4323 #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) 4324 4325 typedef struct _ObjectManagerClient ObjectManagerClient; 4326 typedef struct _ObjectManagerClientClass ObjectManagerClientClass; 4327 typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; 4328 4329 struct _ObjectManagerClient 4330 { 4331 /*< private >*/ 4332 GDBusObjectManagerClient parent_instance; 4333 ObjectManagerClientPrivate *priv; 4334 }; 4335 4336 struct _ObjectManagerClientClass 4337 { 4338 GDBusObjectManagerClientClass parent_class; 4339 }; 4340 4341 #if GLIB_CHECK_VERSION(2, 44, 0) 4342 G_DEFINE_AUTOPTR_CLEANUP_FUNC (ObjectManagerClient, g_object_unref) 4343 #endif 4344 4345 GType object_manager_client_get_type (void) G_GNUC_CONST; 4346 4347 GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); 4348 4349 void object_manager_client_new ( 4350 GDBusConnection *connection, 4351 GDBusObjectManagerClientFlags flags, 4352 const gchar *name, 4353 const gchar *object_path, 4354 GCancellable *cancellable, 4355 GAsyncReadyCallback callback, 4356 gpointer user_data); 4357 GDBusObjectManager *object_manager_client_new_finish ( 4358 GAsyncResult *res, 4359 GError **error); 4360 GDBusObjectManager *object_manager_client_new_sync ( 4361 GDBusConnection *connection, 4362 GDBusObjectManagerClientFlags flags, 4363 const gchar *name, 4364 const gchar *object_path, 4365 GCancellable *cancellable, 4366 GError **error); 4367 4368 void object_manager_client_new_for_bus ( 4369 GBusType bus_type, 4370 GDBusObjectManagerClientFlags flags, 4371 const gchar *name, 4372 const gchar *object_path, 4373 GCancellable *cancellable, 4374 GAsyncReadyCallback callback, 4375 gpointer user_data); 4376 GDBusObjectManager *object_manager_client_new_for_bus_finish ( 4377 GAsyncResult *res, 4378 GError **error); 4379 GDBusObjectManager *object_manager_client_new_for_bus_sync ( 4380 GBusType bus_type, 4381 GDBusObjectManagerClientFlags flags, 4382 const gchar *name, 4383 const gchar *object_path, 4384 GCancellable *cancellable, 4385 GError **error); 4386 4387 4388 G_END_DECLS 4389 4390 #endif /* __OPENBMC_INTF_H__ */ 4391