Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Generated by gdbus-codegen 2.40.2. DO NOT EDIT. |
| 3 | * |
| 4 | * The license of this code is the same as for the source it was derived from. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __INTERFACES_CONTROL_H__ |
| 8 | #define __INTERFACES_CONTROL_H__ |
| 9 | |
| 10 | #include <gio/gio.h> |
| 11 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
| 14 | |
| 15 | /* ------------------------------------------------------------------------ */ |
| 16 | /* Declarations for org.openbmc.Control */ |
| 17 | |
| 18 | #define TYPE_CONTROL (control_get_type ()) |
| 19 | #define CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL, Control)) |
| 20 | #define IS_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL)) |
| 21 | #define CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL, ControlIface)) |
| 22 | |
| 23 | struct _Control; |
| 24 | typedef struct _Control Control; |
| 25 | typedef struct _ControlIface ControlIface; |
| 26 | |
| 27 | struct _ControlIface |
| 28 | { |
| 29 | GTypeInterface parent_iface; |
| 30 | |
| 31 | |
| 32 | |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 33 | gboolean (*handle_init) ( |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 34 | Control *object, |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 35 | GDBusMethodInvocation *invocation); |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 36 | |
| 37 | gint (*get_heatbeat) (Control *object); |
| 38 | |
| 39 | gint (*get_poll_interval) (Control *object); |
| 40 | |
| 41 | void (*heartbeat) ( |
| 42 | Control *object, |
| 43 | const gchar *arg_bus_name); |
| 44 | |
| 45 | }; |
| 46 | |
| 47 | GType control_get_type (void) G_GNUC_CONST; |
| 48 | |
| 49 | GDBusInterfaceInfo *control_interface_info (void); |
| 50 | guint control_override_properties (GObjectClass *klass, guint property_id_begin); |
| 51 | |
| 52 | |
| 53 | /* D-Bus method call completion functions: */ |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 54 | void control_complete_init ( |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 55 | Control *object, |
| 56 | GDBusMethodInvocation *invocation); |
| 57 | |
| 58 | |
| 59 | |
| 60 | /* D-Bus signal emissions functions: */ |
| 61 | void control_emit_heartbeat ( |
| 62 | Control *object, |
| 63 | const gchar *arg_bus_name); |
| 64 | |
| 65 | |
| 66 | |
| 67 | /* D-Bus method calls: */ |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 68 | void control_call_init ( |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 69 | Control *proxy, |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 70 | GCancellable *cancellable, |
| 71 | GAsyncReadyCallback callback, |
| 72 | gpointer user_data); |
| 73 | |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 74 | gboolean control_call_init_finish ( |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 75 | Control *proxy, |
| 76 | GAsyncResult *res, |
| 77 | GError **error); |
| 78 | |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 79 | gboolean control_call_init_sync ( |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 80 | Control *proxy, |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 81 | GCancellable *cancellable, |
| 82 | GError **error); |
| 83 | |
| 84 | |
| 85 | |
| 86 | /* D-Bus property accessors: */ |
| 87 | gint control_get_poll_interval (Control *object); |
| 88 | void control_set_poll_interval (Control *object, gint value); |
| 89 | |
| 90 | gint control_get_heatbeat (Control *object); |
| 91 | void control_set_heatbeat (Control *object, gint value); |
| 92 | |
| 93 | |
| 94 | /* ---- */ |
| 95 | |
| 96 | #define TYPE_CONTROL_PROXY (control_proxy_get_type ()) |
| 97 | #define CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_PROXY, ControlProxy)) |
| 98 | #define CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_PROXY, ControlProxyClass)) |
| 99 | #define CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_PROXY, ControlProxyClass)) |
| 100 | #define IS_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_PROXY)) |
| 101 | #define IS_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_PROXY)) |
| 102 | |
| 103 | typedef struct _ControlProxy ControlProxy; |
| 104 | typedef struct _ControlProxyClass ControlProxyClass; |
| 105 | typedef struct _ControlProxyPrivate ControlProxyPrivate; |
| 106 | |
| 107 | struct _ControlProxy |
| 108 | { |
| 109 | /*< private >*/ |
| 110 | GDBusProxy parent_instance; |
| 111 | ControlProxyPrivate *priv; |
| 112 | }; |
| 113 | |
| 114 | struct _ControlProxyClass |
| 115 | { |
| 116 | GDBusProxyClass parent_class; |
| 117 | }; |
| 118 | |
| 119 | GType control_proxy_get_type (void) G_GNUC_CONST; |
| 120 | |
| 121 | void control_proxy_new ( |
| 122 | GDBusConnection *connection, |
| 123 | GDBusProxyFlags flags, |
| 124 | const gchar *name, |
| 125 | const gchar *object_path, |
| 126 | GCancellable *cancellable, |
| 127 | GAsyncReadyCallback callback, |
| 128 | gpointer user_data); |
| 129 | Control *control_proxy_new_finish ( |
| 130 | GAsyncResult *res, |
| 131 | GError **error); |
| 132 | Control *control_proxy_new_sync ( |
| 133 | GDBusConnection *connection, |
| 134 | GDBusProxyFlags flags, |
| 135 | const gchar *name, |
| 136 | const gchar *object_path, |
| 137 | GCancellable *cancellable, |
| 138 | GError **error); |
| 139 | |
| 140 | void control_proxy_new_for_bus ( |
| 141 | GBusType bus_type, |
| 142 | GDBusProxyFlags flags, |
| 143 | const gchar *name, |
| 144 | const gchar *object_path, |
| 145 | GCancellable *cancellable, |
| 146 | GAsyncReadyCallback callback, |
| 147 | gpointer user_data); |
| 148 | Control *control_proxy_new_for_bus_finish ( |
| 149 | GAsyncResult *res, |
| 150 | GError **error); |
| 151 | Control *control_proxy_new_for_bus_sync ( |
| 152 | GBusType bus_type, |
| 153 | GDBusProxyFlags flags, |
| 154 | const gchar *name, |
| 155 | const gchar *object_path, |
| 156 | GCancellable *cancellable, |
| 157 | GError **error); |
| 158 | |
| 159 | |
| 160 | /* ---- */ |
| 161 | |
| 162 | #define TYPE_CONTROL_SKELETON (control_skeleton_get_type ()) |
| 163 | #define CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_SKELETON, ControlSkeleton)) |
| 164 | #define CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) |
| 165 | #define CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) |
| 166 | #define IS_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_SKELETON)) |
| 167 | #define IS_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_SKELETON)) |
| 168 | |
| 169 | typedef struct _ControlSkeleton ControlSkeleton; |
| 170 | typedef struct _ControlSkeletonClass ControlSkeletonClass; |
| 171 | typedef struct _ControlSkeletonPrivate ControlSkeletonPrivate; |
| 172 | |
| 173 | struct _ControlSkeleton |
| 174 | { |
| 175 | /*< private >*/ |
| 176 | GDBusInterfaceSkeleton parent_instance; |
| 177 | ControlSkeletonPrivate *priv; |
| 178 | }; |
| 179 | |
| 180 | struct _ControlSkeletonClass |
| 181 | { |
| 182 | GDBusInterfaceSkeletonClass parent_class; |
| 183 | }; |
| 184 | |
| 185 | GType control_skeleton_get_type (void) G_GNUC_CONST; |
| 186 | |
| 187 | Control *control_skeleton_new (void); |
| 188 | |
| 189 | |
| 190 | /* ------------------------------------------------------------------------ */ |
| 191 | /* Declarations for org.openbmc.control.Host */ |
| 192 | |
| 193 | #define TYPE_CONTROL_HOST (control_host_get_type ()) |
| 194 | #define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost)) |
| 195 | #define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST)) |
| 196 | #define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface)) |
| 197 | |
| 198 | struct _ControlHost; |
| 199 | typedef struct _ControlHost ControlHost; |
| 200 | typedef struct _ControlHostIface ControlHostIface; |
| 201 | |
| 202 | struct _ControlHostIface |
| 203 | { |
| 204 | GTypeInterface parent_iface; |
| 205 | |
| 206 | |
| 207 | gboolean (*handle_boot) ( |
| 208 | ControlHost *object, |
| 209 | GDBusMethodInvocation *invocation); |
| 210 | |
| 211 | gboolean (*handle_reboot) ( |
| 212 | ControlHost *object, |
| 213 | GDBusMethodInvocation *invocation); |
| 214 | |
| 215 | gboolean (*handle_shutdown) ( |
| 216 | ControlHost *object, |
| 217 | GDBusMethodInvocation *invocation); |
| 218 | |
| 219 | void (*booted) ( |
| 220 | ControlHost *object); |
| 221 | |
| 222 | }; |
| 223 | |
| 224 | GType control_host_get_type (void) G_GNUC_CONST; |
| 225 | |
| 226 | GDBusInterfaceInfo *control_host_interface_info (void); |
| 227 | guint control_host_override_properties (GObjectClass *klass, guint property_id_begin); |
| 228 | |
| 229 | |
| 230 | /* D-Bus method call completion functions: */ |
| 231 | void control_host_complete_boot ( |
| 232 | ControlHost *object, |
| 233 | GDBusMethodInvocation *invocation); |
| 234 | |
| 235 | void control_host_complete_shutdown ( |
| 236 | ControlHost *object, |
| 237 | GDBusMethodInvocation *invocation); |
| 238 | |
| 239 | void control_host_complete_reboot ( |
| 240 | ControlHost *object, |
| 241 | GDBusMethodInvocation *invocation); |
| 242 | |
| 243 | |
| 244 | |
| 245 | /* D-Bus signal emissions functions: */ |
| 246 | void control_host_emit_booted ( |
| 247 | ControlHost *object); |
| 248 | |
| 249 | |
| 250 | |
| 251 | /* D-Bus method calls: */ |
| 252 | void control_host_call_boot ( |
| 253 | ControlHost *proxy, |
| 254 | GCancellable *cancellable, |
| 255 | GAsyncReadyCallback callback, |
| 256 | gpointer user_data); |
| 257 | |
| 258 | gboolean control_host_call_boot_finish ( |
| 259 | ControlHost *proxy, |
| 260 | GAsyncResult *res, |
| 261 | GError **error); |
| 262 | |
| 263 | gboolean control_host_call_boot_sync ( |
| 264 | ControlHost *proxy, |
| 265 | GCancellable *cancellable, |
| 266 | GError **error); |
| 267 | |
| 268 | void control_host_call_shutdown ( |
| 269 | ControlHost *proxy, |
| 270 | GCancellable *cancellable, |
| 271 | GAsyncReadyCallback callback, |
| 272 | gpointer user_data); |
| 273 | |
| 274 | gboolean control_host_call_shutdown_finish ( |
| 275 | ControlHost *proxy, |
| 276 | GAsyncResult *res, |
| 277 | GError **error); |
| 278 | |
| 279 | gboolean control_host_call_shutdown_sync ( |
| 280 | ControlHost *proxy, |
| 281 | GCancellable *cancellable, |
| 282 | GError **error); |
| 283 | |
| 284 | void control_host_call_reboot ( |
| 285 | ControlHost *proxy, |
| 286 | GCancellable *cancellable, |
| 287 | GAsyncReadyCallback callback, |
| 288 | gpointer user_data); |
| 289 | |
| 290 | gboolean control_host_call_reboot_finish ( |
| 291 | ControlHost *proxy, |
| 292 | GAsyncResult *res, |
| 293 | GError **error); |
| 294 | |
| 295 | gboolean control_host_call_reboot_sync ( |
| 296 | ControlHost *proxy, |
| 297 | GCancellable *cancellable, |
| 298 | GError **error); |
| 299 | |
| 300 | |
| 301 | |
| 302 | /* ---- */ |
| 303 | |
| 304 | #define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ()) |
| 305 | #define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy)) |
| 306 | #define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| 307 | #define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| 308 | #define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY)) |
| 309 | #define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY)) |
| 310 | |
| 311 | typedef struct _ControlHostProxy ControlHostProxy; |
| 312 | typedef struct _ControlHostProxyClass ControlHostProxyClass; |
| 313 | typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate; |
| 314 | |
| 315 | struct _ControlHostProxy |
| 316 | { |
| 317 | /*< private >*/ |
| 318 | GDBusProxy parent_instance; |
| 319 | ControlHostProxyPrivate *priv; |
| 320 | }; |
| 321 | |
| 322 | struct _ControlHostProxyClass |
| 323 | { |
| 324 | GDBusProxyClass parent_class; |
| 325 | }; |
| 326 | |
| 327 | GType control_host_proxy_get_type (void) G_GNUC_CONST; |
| 328 | |
| 329 | void control_host_proxy_new ( |
| 330 | GDBusConnection *connection, |
| 331 | GDBusProxyFlags flags, |
| 332 | const gchar *name, |
| 333 | const gchar *object_path, |
| 334 | GCancellable *cancellable, |
| 335 | GAsyncReadyCallback callback, |
| 336 | gpointer user_data); |
| 337 | ControlHost *control_host_proxy_new_finish ( |
| 338 | GAsyncResult *res, |
| 339 | GError **error); |
| 340 | ControlHost *control_host_proxy_new_sync ( |
| 341 | GDBusConnection *connection, |
| 342 | GDBusProxyFlags flags, |
| 343 | const gchar *name, |
| 344 | const gchar *object_path, |
| 345 | GCancellable *cancellable, |
| 346 | GError **error); |
| 347 | |
| 348 | void control_host_proxy_new_for_bus ( |
| 349 | GBusType bus_type, |
| 350 | GDBusProxyFlags flags, |
| 351 | const gchar *name, |
| 352 | const gchar *object_path, |
| 353 | GCancellable *cancellable, |
| 354 | GAsyncReadyCallback callback, |
| 355 | gpointer user_data); |
| 356 | ControlHost *control_host_proxy_new_for_bus_finish ( |
| 357 | GAsyncResult *res, |
| 358 | GError **error); |
| 359 | ControlHost *control_host_proxy_new_for_bus_sync ( |
| 360 | GBusType bus_type, |
| 361 | GDBusProxyFlags flags, |
| 362 | const gchar *name, |
| 363 | const gchar *object_path, |
| 364 | GCancellable *cancellable, |
| 365 | GError **error); |
| 366 | |
| 367 | |
| 368 | /* ---- */ |
| 369 | |
| 370 | #define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ()) |
| 371 | #define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton)) |
| 372 | #define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| 373 | #define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| 374 | #define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON)) |
| 375 | #define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON)) |
| 376 | |
| 377 | typedef struct _ControlHostSkeleton ControlHostSkeleton; |
| 378 | typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass; |
| 379 | typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate; |
| 380 | |
| 381 | struct _ControlHostSkeleton |
| 382 | { |
| 383 | /*< private >*/ |
| 384 | GDBusInterfaceSkeleton parent_instance; |
| 385 | ControlHostSkeletonPrivate *priv; |
| 386 | }; |
| 387 | |
| 388 | struct _ControlHostSkeletonClass |
| 389 | { |
| 390 | GDBusInterfaceSkeletonClass parent_class; |
| 391 | }; |
| 392 | |
| 393 | GType control_host_skeleton_get_type (void) G_GNUC_CONST; |
| 394 | |
| 395 | ControlHost *control_host_skeleton_new (void); |
| 396 | |
| 397 | |
| 398 | /* ------------------------------------------------------------------------ */ |
| 399 | /* Declarations for org.openbmc.control.Power */ |
| 400 | |
| 401 | #define TYPE_CONTROL_POWER (control_power_get_type ()) |
| 402 | #define CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER, ControlPower)) |
| 403 | #define IS_CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER)) |
| 404 | #define CONTROL_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_POWER, ControlPowerIface)) |
| 405 | |
| 406 | struct _ControlPower; |
| 407 | typedef struct _ControlPower ControlPower; |
| 408 | typedef struct _ControlPowerIface ControlPowerIface; |
| 409 | |
| 410 | struct _ControlPowerIface |
| 411 | { |
| 412 | GTypeInterface parent_iface; |
| 413 | |
| 414 | |
| 415 | |
| 416 | gboolean (*handle_get_power_state) ( |
| 417 | ControlPower *object, |
| 418 | GDBusMethodInvocation *invocation); |
| 419 | |
| 420 | gboolean (*handle_set_power_state) ( |
| 421 | ControlPower *object, |
| 422 | GDBusMethodInvocation *invocation, |
| 423 | gint arg_state); |
| 424 | |
| 425 | gint (*get_pgood) (ControlPower *object); |
| 426 | |
| 427 | gint (*get_state) (ControlPower *object); |
| 428 | |
| 429 | void (*power_good) ( |
| 430 | ControlPower *object); |
| 431 | |
| 432 | void (*power_lost) ( |
| 433 | ControlPower *object); |
| 434 | |
| 435 | }; |
| 436 | |
| 437 | GType control_power_get_type (void) G_GNUC_CONST; |
| 438 | |
| 439 | GDBusInterfaceInfo *control_power_interface_info (void); |
| 440 | guint control_power_override_properties (GObjectClass *klass, guint property_id_begin); |
| 441 | |
| 442 | |
| 443 | /* D-Bus method call completion functions: */ |
| 444 | void control_power_complete_set_power_state ( |
| 445 | ControlPower *object, |
| 446 | GDBusMethodInvocation *invocation); |
| 447 | |
| 448 | void control_power_complete_get_power_state ( |
| 449 | ControlPower *object, |
| 450 | GDBusMethodInvocation *invocation, |
| 451 | gint state); |
| 452 | |
| 453 | |
| 454 | |
| 455 | /* D-Bus signal emissions functions: */ |
| 456 | void control_power_emit_power_good ( |
| 457 | ControlPower *object); |
| 458 | |
| 459 | void control_power_emit_power_lost ( |
| 460 | ControlPower *object); |
| 461 | |
| 462 | |
| 463 | |
| 464 | /* D-Bus method calls: */ |
| 465 | void control_power_call_set_power_state ( |
| 466 | ControlPower *proxy, |
| 467 | gint arg_state, |
| 468 | GCancellable *cancellable, |
| 469 | GAsyncReadyCallback callback, |
| 470 | gpointer user_data); |
| 471 | |
| 472 | gboolean control_power_call_set_power_state_finish ( |
| 473 | ControlPower *proxy, |
| 474 | GAsyncResult *res, |
| 475 | GError **error); |
| 476 | |
| 477 | gboolean control_power_call_set_power_state_sync ( |
| 478 | ControlPower *proxy, |
| 479 | gint arg_state, |
| 480 | GCancellable *cancellable, |
| 481 | GError **error); |
| 482 | |
| 483 | void control_power_call_get_power_state ( |
| 484 | ControlPower *proxy, |
| 485 | GCancellable *cancellable, |
| 486 | GAsyncReadyCallback callback, |
| 487 | gpointer user_data); |
| 488 | |
| 489 | gboolean control_power_call_get_power_state_finish ( |
| 490 | ControlPower *proxy, |
| 491 | gint *out_state, |
| 492 | GAsyncResult *res, |
| 493 | GError **error); |
| 494 | |
| 495 | gboolean control_power_call_get_power_state_sync ( |
| 496 | ControlPower *proxy, |
| 497 | gint *out_state, |
| 498 | GCancellable *cancellable, |
| 499 | GError **error); |
| 500 | |
| 501 | |
| 502 | |
| 503 | /* D-Bus property accessors: */ |
| 504 | gint control_power_get_pgood (ControlPower *object); |
| 505 | void control_power_set_pgood (ControlPower *object, gint value); |
| 506 | |
| 507 | gint control_power_get_state (ControlPower *object); |
| 508 | void control_power_set_state (ControlPower *object, gint value); |
| 509 | |
| 510 | |
| 511 | /* ---- */ |
| 512 | |
| 513 | #define TYPE_CONTROL_POWER_PROXY (control_power_proxy_get_type ()) |
| 514 | #define CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxy)) |
| 515 | #define CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) |
| 516 | #define CONTROL_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) |
| 517 | #define IS_CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_PROXY)) |
| 518 | #define IS_CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_PROXY)) |
| 519 | |
| 520 | typedef struct _ControlPowerProxy ControlPowerProxy; |
| 521 | typedef struct _ControlPowerProxyClass ControlPowerProxyClass; |
| 522 | typedef struct _ControlPowerProxyPrivate ControlPowerProxyPrivate; |
| 523 | |
| 524 | struct _ControlPowerProxy |
| 525 | { |
| 526 | /*< private >*/ |
| 527 | GDBusProxy parent_instance; |
| 528 | ControlPowerProxyPrivate *priv; |
| 529 | }; |
| 530 | |
| 531 | struct _ControlPowerProxyClass |
| 532 | { |
| 533 | GDBusProxyClass parent_class; |
| 534 | }; |
| 535 | |
| 536 | GType control_power_proxy_get_type (void) G_GNUC_CONST; |
| 537 | |
| 538 | void control_power_proxy_new ( |
| 539 | GDBusConnection *connection, |
| 540 | GDBusProxyFlags flags, |
| 541 | const gchar *name, |
| 542 | const gchar *object_path, |
| 543 | GCancellable *cancellable, |
| 544 | GAsyncReadyCallback callback, |
| 545 | gpointer user_data); |
| 546 | ControlPower *control_power_proxy_new_finish ( |
| 547 | GAsyncResult *res, |
| 548 | GError **error); |
| 549 | ControlPower *control_power_proxy_new_sync ( |
| 550 | GDBusConnection *connection, |
| 551 | GDBusProxyFlags flags, |
| 552 | const gchar *name, |
| 553 | const gchar *object_path, |
| 554 | GCancellable *cancellable, |
| 555 | GError **error); |
| 556 | |
| 557 | void control_power_proxy_new_for_bus ( |
| 558 | GBusType bus_type, |
| 559 | GDBusProxyFlags flags, |
| 560 | const gchar *name, |
| 561 | const gchar *object_path, |
| 562 | GCancellable *cancellable, |
| 563 | GAsyncReadyCallback callback, |
| 564 | gpointer user_data); |
| 565 | ControlPower *control_power_proxy_new_for_bus_finish ( |
| 566 | GAsyncResult *res, |
| 567 | GError **error); |
| 568 | ControlPower *control_power_proxy_new_for_bus_sync ( |
| 569 | GBusType bus_type, |
| 570 | GDBusProxyFlags flags, |
| 571 | const gchar *name, |
| 572 | const gchar *object_path, |
| 573 | GCancellable *cancellable, |
| 574 | GError **error); |
| 575 | |
| 576 | |
| 577 | /* ---- */ |
| 578 | |
| 579 | #define TYPE_CONTROL_POWER_SKELETON (control_power_skeleton_get_type ()) |
| 580 | #define CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeleton)) |
| 581 | #define CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) |
| 582 | #define CONTROL_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) |
| 583 | #define IS_CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_SKELETON)) |
| 584 | #define IS_CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_SKELETON)) |
| 585 | |
| 586 | typedef struct _ControlPowerSkeleton ControlPowerSkeleton; |
| 587 | typedef struct _ControlPowerSkeletonClass ControlPowerSkeletonClass; |
| 588 | typedef struct _ControlPowerSkeletonPrivate ControlPowerSkeletonPrivate; |
| 589 | |
| 590 | struct _ControlPowerSkeleton |
| 591 | { |
| 592 | /*< private >*/ |
| 593 | GDBusInterfaceSkeleton parent_instance; |
| 594 | ControlPowerSkeletonPrivate *priv; |
| 595 | }; |
| 596 | |
| 597 | struct _ControlPowerSkeletonClass |
| 598 | { |
| 599 | GDBusInterfaceSkeletonClass parent_class; |
| 600 | }; |
| 601 | |
| 602 | GType control_power_skeleton_get_type (void) G_GNUC_CONST; |
| 603 | |
| 604 | ControlPower *control_power_skeleton_new (void); |
| 605 | |
| 606 | |
| 607 | /* ------------------------------------------------------------------------ */ |
| 608 | /* Declarations for org.openbmc.EventLog */ |
| 609 | |
| 610 | #define TYPE_EVENT_LOG (event_log_get_type ()) |
| 611 | #define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog)) |
| 612 | #define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG)) |
| 613 | #define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface)) |
| 614 | |
| 615 | struct _EventLog; |
| 616 | typedef struct _EventLog EventLog; |
| 617 | typedef struct _EventLogIface EventLogIface; |
| 618 | |
| 619 | struct _EventLogIface |
| 620 | { |
| 621 | GTypeInterface parent_iface; |
| 622 | |
| 623 | void (*event_log) ( |
| 624 | EventLog *object, |
| 625 | GVariant *arg_message); |
| 626 | |
| 627 | }; |
| 628 | |
| 629 | GType event_log_get_type (void) G_GNUC_CONST; |
| 630 | |
| 631 | GDBusInterfaceInfo *event_log_interface_info (void); |
| 632 | guint event_log_override_properties (GObjectClass *klass, guint property_id_begin); |
| 633 | |
| 634 | |
| 635 | /* D-Bus signal emissions functions: */ |
| 636 | void event_log_emit_event_log ( |
| 637 | EventLog *object, |
| 638 | GVariant *arg_message); |
| 639 | |
| 640 | |
| 641 | |
| 642 | /* ---- */ |
| 643 | |
| 644 | #define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ()) |
| 645 | #define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy)) |
| 646 | #define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| 647 | #define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| 648 | #define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY)) |
| 649 | #define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY)) |
| 650 | |
| 651 | typedef struct _EventLogProxy EventLogProxy; |
| 652 | typedef struct _EventLogProxyClass EventLogProxyClass; |
| 653 | typedef struct _EventLogProxyPrivate EventLogProxyPrivate; |
| 654 | |
| 655 | struct _EventLogProxy |
| 656 | { |
| 657 | /*< private >*/ |
| 658 | GDBusProxy parent_instance; |
| 659 | EventLogProxyPrivate *priv; |
| 660 | }; |
| 661 | |
| 662 | struct _EventLogProxyClass |
| 663 | { |
| 664 | GDBusProxyClass parent_class; |
| 665 | }; |
| 666 | |
| 667 | GType event_log_proxy_get_type (void) G_GNUC_CONST; |
| 668 | |
| 669 | void event_log_proxy_new ( |
| 670 | GDBusConnection *connection, |
| 671 | GDBusProxyFlags flags, |
| 672 | const gchar *name, |
| 673 | const gchar *object_path, |
| 674 | GCancellable *cancellable, |
| 675 | GAsyncReadyCallback callback, |
| 676 | gpointer user_data); |
| 677 | EventLog *event_log_proxy_new_finish ( |
| 678 | GAsyncResult *res, |
| 679 | GError **error); |
| 680 | EventLog *event_log_proxy_new_sync ( |
| 681 | GDBusConnection *connection, |
| 682 | GDBusProxyFlags flags, |
| 683 | const gchar *name, |
| 684 | const gchar *object_path, |
| 685 | GCancellable *cancellable, |
| 686 | GError **error); |
| 687 | |
| 688 | void event_log_proxy_new_for_bus ( |
| 689 | GBusType bus_type, |
| 690 | GDBusProxyFlags flags, |
| 691 | const gchar *name, |
| 692 | const gchar *object_path, |
| 693 | GCancellable *cancellable, |
| 694 | GAsyncReadyCallback callback, |
| 695 | gpointer user_data); |
| 696 | EventLog *event_log_proxy_new_for_bus_finish ( |
| 697 | GAsyncResult *res, |
| 698 | GError **error); |
| 699 | EventLog *event_log_proxy_new_for_bus_sync ( |
| 700 | GBusType bus_type, |
| 701 | GDBusProxyFlags flags, |
| 702 | const gchar *name, |
| 703 | const gchar *object_path, |
| 704 | GCancellable *cancellable, |
| 705 | GError **error); |
| 706 | |
| 707 | |
| 708 | /* ---- */ |
| 709 | |
| 710 | #define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ()) |
| 711 | #define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton)) |
| 712 | #define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| 713 | #define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| 714 | #define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON)) |
| 715 | #define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON)) |
| 716 | |
| 717 | typedef struct _EventLogSkeleton EventLogSkeleton; |
| 718 | typedef struct _EventLogSkeletonClass EventLogSkeletonClass; |
| 719 | typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate; |
| 720 | |
| 721 | struct _EventLogSkeleton |
| 722 | { |
| 723 | /*< private >*/ |
| 724 | GDBusInterfaceSkeleton parent_instance; |
| 725 | EventLogSkeletonPrivate *priv; |
| 726 | }; |
| 727 | |
| 728 | struct _EventLogSkeletonClass |
| 729 | { |
| 730 | GDBusInterfaceSkeletonClass parent_class; |
| 731 | }; |
| 732 | |
| 733 | GType event_log_skeleton_get_type (void) G_GNUC_CONST; |
| 734 | |
| 735 | EventLog *event_log_skeleton_new (void); |
| 736 | |
| 737 | |
| 738 | /* ---- */ |
| 739 | |
| 740 | #define TYPE_OBJECT (object_get_type ()) |
| 741 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 742 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 743 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 744 | |
| 745 | struct _Object; |
| 746 | typedef struct _Object Object; |
| 747 | typedef struct _ObjectIface ObjectIface; |
| 748 | |
| 749 | struct _ObjectIface |
| 750 | { |
| 751 | GTypeInterface parent_iface; |
| 752 | }; |
| 753 | |
| 754 | GType object_get_type (void) G_GNUC_CONST; |
| 755 | |
| 756 | Control *object_get_control (Object *object); |
| 757 | ControlHost *object_get_control_host (Object *object); |
| 758 | ControlPower *object_get_control_power (Object *object); |
| 759 | EventLog *object_get_event_log (Object *object); |
| 760 | Control *object_peek_control (Object *object); |
| 761 | ControlHost *object_peek_control_host (Object *object); |
| 762 | ControlPower *object_peek_control_power (Object *object); |
| 763 | EventLog *object_peek_event_log (Object *object); |
| 764 | |
| 765 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 766 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 767 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 768 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 769 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 770 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 771 | |
| 772 | typedef struct _ObjectProxy ObjectProxy; |
| 773 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 774 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 775 | |
| 776 | struct _ObjectProxy |
| 777 | { |
| 778 | /*< private >*/ |
| 779 | GDBusObjectProxy parent_instance; |
| 780 | ObjectProxyPrivate *priv; |
| 781 | }; |
| 782 | |
| 783 | struct _ObjectProxyClass |
| 784 | { |
| 785 | GDBusObjectProxyClass parent_class; |
| 786 | }; |
| 787 | |
| 788 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 789 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 790 | |
| 791 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 792 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 793 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 794 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 795 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 796 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 797 | |
| 798 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 799 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 800 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 801 | |
| 802 | struct _ObjectSkeleton |
| 803 | { |
| 804 | /*< private >*/ |
| 805 | GDBusObjectSkeleton parent_instance; |
| 806 | ObjectSkeletonPrivate *priv; |
| 807 | }; |
| 808 | |
| 809 | struct _ObjectSkeletonClass |
| 810 | { |
| 811 | GDBusObjectSkeletonClass parent_class; |
| 812 | }; |
| 813 | |
| 814 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 815 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 816 | void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_); |
| 817 | void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_); |
| 818 | void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_); |
| 819 | void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_); |
| 820 | |
| 821 | /* ---- */ |
| 822 | |
| 823 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 824 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 825 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 826 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 827 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 828 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 829 | |
| 830 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 831 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 832 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 833 | |
| 834 | struct _ObjectManagerClient |
| 835 | { |
| 836 | /*< private >*/ |
| 837 | GDBusObjectManagerClient parent_instance; |
| 838 | ObjectManagerClientPrivate *priv; |
| 839 | }; |
| 840 | |
| 841 | struct _ObjectManagerClientClass |
| 842 | { |
| 843 | GDBusObjectManagerClientClass parent_class; |
| 844 | }; |
| 845 | |
| 846 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 847 | |
| 848 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 849 | |
| 850 | void object_manager_client_new ( |
| 851 | GDBusConnection *connection, |
| 852 | GDBusObjectManagerClientFlags flags, |
| 853 | const gchar *name, |
| 854 | const gchar *object_path, |
| 855 | GCancellable *cancellable, |
| 856 | GAsyncReadyCallback callback, |
| 857 | gpointer user_data); |
| 858 | GDBusObjectManager *object_manager_client_new_finish ( |
| 859 | GAsyncResult *res, |
| 860 | GError **error); |
| 861 | GDBusObjectManager *object_manager_client_new_sync ( |
| 862 | GDBusConnection *connection, |
| 863 | GDBusObjectManagerClientFlags flags, |
| 864 | const gchar *name, |
| 865 | const gchar *object_path, |
| 866 | GCancellable *cancellable, |
| 867 | GError **error); |
| 868 | |
| 869 | void object_manager_client_new_for_bus ( |
| 870 | GBusType bus_type, |
| 871 | GDBusObjectManagerClientFlags flags, |
| 872 | const gchar *name, |
| 873 | const gchar *object_path, |
| 874 | GCancellable *cancellable, |
| 875 | GAsyncReadyCallback callback, |
| 876 | gpointer user_data); |
| 877 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 878 | GAsyncResult *res, |
| 879 | GError **error); |
| 880 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 881 | GBusType bus_type, |
| 882 | GDBusObjectManagerClientFlags flags, |
| 883 | const gchar *name, |
| 884 | const gchar *object_path, |
| 885 | GCancellable *cancellable, |
| 886 | GError **error); |
| 887 | |
| 888 | |
| 889 | G_END_DECLS |
| 890 | |
| 891 | #endif /* __INTERFACES_CONTROL_H__ */ |