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