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