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 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 2521 | gboolean (*handle_update_via_tftp) ( |
| 2522 | Flash *object, |
| 2523 | GDBusMethodInvocation *invocation, |
| 2524 | const gchar *arg_url, |
| 2525 | const gchar *arg_filename); |
| 2526 | |
| 2527 | void (*download) ( |
| 2528 | Flash *object, |
| 2529 | const gchar *arg_url, |
| 2530 | const gchar *arg_filename); |
| 2531 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2532 | void (*updated) ( |
| 2533 | Flash *object); |
| 2534 | |
| 2535 | }; |
| 2536 | |
| 2537 | GType flash_get_type (void) G_GNUC_CONST; |
| 2538 | |
| 2539 | GDBusInterfaceInfo *flash_interface_info (void); |
| 2540 | guint flash_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2541 | |
| 2542 | |
| 2543 | /* D-Bus method call completion functions: */ |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2544 | void flash_complete_update ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2545 | Flash *object, |
| 2546 | GDBusMethodInvocation *invocation); |
| 2547 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 2548 | void flash_complete_update_via_tftp ( |
| 2549 | Flash *object, |
| 2550 | GDBusMethodInvocation *invocation); |
| 2551 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2552 | void flash_complete_init ( |
| 2553 | Flash *object, |
| 2554 | GDBusMethodInvocation *invocation); |
| 2555 | |
| 2556 | |
| 2557 | |
| 2558 | /* D-Bus signal emissions functions: */ |
| 2559 | void flash_emit_updated ( |
| 2560 | Flash *object); |
| 2561 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 2562 | void flash_emit_download ( |
| 2563 | Flash *object, |
| 2564 | const gchar *arg_url, |
| 2565 | const gchar *arg_filename); |
| 2566 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2567 | |
| 2568 | |
| 2569 | /* D-Bus method calls: */ |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2570 | void flash_call_update ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2571 | Flash *proxy, |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2572 | const gchar *arg_filename, |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2573 | GCancellable *cancellable, |
| 2574 | GAsyncReadyCallback callback, |
| 2575 | gpointer user_data); |
| 2576 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2577 | gboolean flash_call_update_finish ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2578 | Flash *proxy, |
| 2579 | GAsyncResult *res, |
| 2580 | GError **error); |
| 2581 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2582 | gboolean flash_call_update_sync ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2583 | Flash *proxy, |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2584 | const gchar *arg_filename, |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2585 | GCancellable *cancellable, |
| 2586 | GError **error); |
| 2587 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 2588 | void flash_call_update_via_tftp ( |
| 2589 | Flash *proxy, |
| 2590 | const gchar *arg_url, |
| 2591 | const gchar *arg_filename, |
| 2592 | GCancellable *cancellable, |
| 2593 | GAsyncReadyCallback callback, |
| 2594 | gpointer user_data); |
| 2595 | |
| 2596 | gboolean flash_call_update_via_tftp_finish ( |
| 2597 | Flash *proxy, |
| 2598 | GAsyncResult *res, |
| 2599 | GError **error); |
| 2600 | |
| 2601 | gboolean flash_call_update_via_tftp_sync ( |
| 2602 | Flash *proxy, |
| 2603 | const gchar *arg_url, |
| 2604 | const gchar *arg_filename, |
| 2605 | GCancellable *cancellable, |
| 2606 | GError **error); |
| 2607 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2608 | void flash_call_init ( |
| 2609 | Flash *proxy, |
| 2610 | GCancellable *cancellable, |
| 2611 | GAsyncReadyCallback callback, |
| 2612 | gpointer user_data); |
| 2613 | |
| 2614 | gboolean flash_call_init_finish ( |
| 2615 | Flash *proxy, |
| 2616 | GAsyncResult *res, |
| 2617 | GError **error); |
| 2618 | |
| 2619 | gboolean flash_call_init_sync ( |
| 2620 | Flash *proxy, |
| 2621 | GCancellable *cancellable, |
| 2622 | GError **error); |
| 2623 | |
| 2624 | |
| 2625 | |
| 2626 | /* ---- */ |
| 2627 | |
| 2628 | #define TYPE_FLASH_PROXY (flash_proxy_get_type ()) |
| 2629 | #define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy)) |
| 2630 | #define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass)) |
| 2631 | #define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass)) |
| 2632 | #define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY)) |
| 2633 | #define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY)) |
| 2634 | |
| 2635 | typedef struct _FlashProxy FlashProxy; |
| 2636 | typedef struct _FlashProxyClass FlashProxyClass; |
| 2637 | typedef struct _FlashProxyPrivate FlashProxyPrivate; |
| 2638 | |
| 2639 | struct _FlashProxy |
| 2640 | { |
| 2641 | /*< private >*/ |
| 2642 | GDBusProxy parent_instance; |
| 2643 | FlashProxyPrivate *priv; |
| 2644 | }; |
| 2645 | |
| 2646 | struct _FlashProxyClass |
| 2647 | { |
| 2648 | GDBusProxyClass parent_class; |
| 2649 | }; |
| 2650 | |
| 2651 | GType flash_proxy_get_type (void) G_GNUC_CONST; |
| 2652 | |
| 2653 | void flash_proxy_new ( |
| 2654 | GDBusConnection *connection, |
| 2655 | GDBusProxyFlags flags, |
| 2656 | const gchar *name, |
| 2657 | const gchar *object_path, |
| 2658 | GCancellable *cancellable, |
| 2659 | GAsyncReadyCallback callback, |
| 2660 | gpointer user_data); |
| 2661 | Flash *flash_proxy_new_finish ( |
| 2662 | GAsyncResult *res, |
| 2663 | GError **error); |
| 2664 | Flash *flash_proxy_new_sync ( |
| 2665 | GDBusConnection *connection, |
| 2666 | GDBusProxyFlags flags, |
| 2667 | const gchar *name, |
| 2668 | const gchar *object_path, |
| 2669 | GCancellable *cancellable, |
| 2670 | GError **error); |
| 2671 | |
| 2672 | void flash_proxy_new_for_bus ( |
| 2673 | GBusType bus_type, |
| 2674 | GDBusProxyFlags flags, |
| 2675 | const gchar *name, |
| 2676 | const gchar *object_path, |
| 2677 | GCancellable *cancellable, |
| 2678 | GAsyncReadyCallback callback, |
| 2679 | gpointer user_data); |
| 2680 | Flash *flash_proxy_new_for_bus_finish ( |
| 2681 | GAsyncResult *res, |
| 2682 | GError **error); |
| 2683 | Flash *flash_proxy_new_for_bus_sync ( |
| 2684 | GBusType bus_type, |
| 2685 | GDBusProxyFlags flags, |
| 2686 | const gchar *name, |
| 2687 | const gchar *object_path, |
| 2688 | GCancellable *cancellable, |
| 2689 | GError **error); |
| 2690 | |
| 2691 | |
| 2692 | /* ---- */ |
| 2693 | |
| 2694 | #define TYPE_FLASH_SKELETON (flash_skeleton_get_type ()) |
| 2695 | #define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton)) |
| 2696 | #define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass)) |
| 2697 | #define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass)) |
| 2698 | #define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON)) |
| 2699 | #define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON)) |
| 2700 | |
| 2701 | typedef struct _FlashSkeleton FlashSkeleton; |
| 2702 | typedef struct _FlashSkeletonClass FlashSkeletonClass; |
| 2703 | typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate; |
| 2704 | |
| 2705 | struct _FlashSkeleton |
| 2706 | { |
| 2707 | /*< private >*/ |
| 2708 | GDBusInterfaceSkeleton parent_instance; |
| 2709 | FlashSkeletonPrivate *priv; |
| 2710 | }; |
| 2711 | |
| 2712 | struct _FlashSkeletonClass |
| 2713 | { |
| 2714 | GDBusInterfaceSkeletonClass parent_class; |
| 2715 | }; |
| 2716 | |
| 2717 | GType flash_skeleton_get_type (void) G_GNUC_CONST; |
| 2718 | |
| 2719 | Flash *flash_skeleton_new (void); |
| 2720 | |
| 2721 | |
| 2722 | /* ------------------------------------------------------------------------ */ |
| 2723 | /* Declarations for org.openbmc.Button */ |
| 2724 | |
| 2725 | #define TYPE_BUTTON (button_get_type ()) |
| 2726 | #define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button)) |
| 2727 | #define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON)) |
| 2728 | #define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface)) |
| 2729 | |
| 2730 | struct _Button; |
| 2731 | typedef struct _Button Button; |
| 2732 | typedef struct _ButtonIface ButtonIface; |
| 2733 | |
| 2734 | struct _ButtonIface |
| 2735 | { |
| 2736 | GTypeInterface parent_iface; |
| 2737 | |
| 2738 | |
| 2739 | |
| 2740 | gboolean (*handle_is_on) ( |
| 2741 | Button *object, |
| 2742 | GDBusMethodInvocation *invocation); |
| 2743 | |
| 2744 | gboolean (*handle_sim_button_long_press) ( |
| 2745 | Button *object, |
| 2746 | GDBusMethodInvocation *invocation); |
| 2747 | |
| 2748 | gboolean (*handle_sim_button_press) ( |
| 2749 | Button *object, |
| 2750 | GDBusMethodInvocation *invocation); |
| 2751 | |
| 2752 | gboolean (*get_state) (Button *object); |
| 2753 | |
| 2754 | void (*button_pressed) ( |
| 2755 | Button *object); |
| 2756 | |
| 2757 | void (*button_pressed_long) ( |
| 2758 | Button *object); |
| 2759 | |
| 2760 | void (*button_release) ( |
| 2761 | Button *object); |
| 2762 | |
| 2763 | }; |
| 2764 | |
| 2765 | GType button_get_type (void) G_GNUC_CONST; |
| 2766 | |
| 2767 | GDBusInterfaceInfo *button_interface_info (void); |
| 2768 | guint button_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2769 | |
| 2770 | |
| 2771 | /* D-Bus method call completion functions: */ |
| 2772 | void button_complete_is_on ( |
| 2773 | Button *object, |
| 2774 | GDBusMethodInvocation *invocation, |
| 2775 | gboolean state); |
| 2776 | |
| 2777 | void button_complete_sim_button_press ( |
| 2778 | Button *object, |
| 2779 | GDBusMethodInvocation *invocation); |
| 2780 | |
| 2781 | void button_complete_sim_button_long_press ( |
| 2782 | Button *object, |
| 2783 | GDBusMethodInvocation *invocation); |
| 2784 | |
| 2785 | |
| 2786 | |
| 2787 | /* D-Bus signal emissions functions: */ |
| 2788 | void button_emit_button_release ( |
| 2789 | Button *object); |
| 2790 | |
| 2791 | void button_emit_button_pressed ( |
| 2792 | Button *object); |
| 2793 | |
| 2794 | void button_emit_button_pressed_long ( |
| 2795 | Button *object); |
| 2796 | |
| 2797 | |
| 2798 | |
| 2799 | /* D-Bus method calls: */ |
| 2800 | void button_call_is_on ( |
| 2801 | Button *proxy, |
| 2802 | GCancellable *cancellable, |
| 2803 | GAsyncReadyCallback callback, |
| 2804 | gpointer user_data); |
| 2805 | |
| 2806 | gboolean button_call_is_on_finish ( |
| 2807 | Button *proxy, |
| 2808 | gboolean *out_state, |
| 2809 | GAsyncResult *res, |
| 2810 | GError **error); |
| 2811 | |
| 2812 | gboolean button_call_is_on_sync ( |
| 2813 | Button *proxy, |
| 2814 | gboolean *out_state, |
| 2815 | GCancellable *cancellable, |
| 2816 | GError **error); |
| 2817 | |
| 2818 | void button_call_sim_button_press ( |
| 2819 | Button *proxy, |
| 2820 | GCancellable *cancellable, |
| 2821 | GAsyncReadyCallback callback, |
| 2822 | gpointer user_data); |
| 2823 | |
| 2824 | gboolean button_call_sim_button_press_finish ( |
| 2825 | Button *proxy, |
| 2826 | GAsyncResult *res, |
| 2827 | GError **error); |
| 2828 | |
| 2829 | gboolean button_call_sim_button_press_sync ( |
| 2830 | Button *proxy, |
| 2831 | GCancellable *cancellable, |
| 2832 | GError **error); |
| 2833 | |
| 2834 | void button_call_sim_button_long_press ( |
| 2835 | Button *proxy, |
| 2836 | GCancellable *cancellable, |
| 2837 | GAsyncReadyCallback callback, |
| 2838 | gpointer user_data); |
| 2839 | |
| 2840 | gboolean button_call_sim_button_long_press_finish ( |
| 2841 | Button *proxy, |
| 2842 | GAsyncResult *res, |
| 2843 | GError **error); |
| 2844 | |
| 2845 | gboolean button_call_sim_button_long_press_sync ( |
| 2846 | Button *proxy, |
| 2847 | GCancellable *cancellable, |
| 2848 | GError **error); |
| 2849 | |
| 2850 | |
| 2851 | |
| 2852 | /* D-Bus property accessors: */ |
| 2853 | gboolean button_get_state (Button *object); |
| 2854 | void button_set_state (Button *object, gboolean value); |
| 2855 | |
| 2856 | |
| 2857 | /* ---- */ |
| 2858 | |
| 2859 | #define TYPE_BUTTON_PROXY (button_proxy_get_type ()) |
| 2860 | #define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy)) |
| 2861 | #define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass)) |
| 2862 | #define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass)) |
| 2863 | #define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY)) |
| 2864 | #define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY)) |
| 2865 | |
| 2866 | typedef struct _ButtonProxy ButtonProxy; |
| 2867 | typedef struct _ButtonProxyClass ButtonProxyClass; |
| 2868 | typedef struct _ButtonProxyPrivate ButtonProxyPrivate; |
| 2869 | |
| 2870 | struct _ButtonProxy |
| 2871 | { |
| 2872 | /*< private >*/ |
| 2873 | GDBusProxy parent_instance; |
| 2874 | ButtonProxyPrivate *priv; |
| 2875 | }; |
| 2876 | |
| 2877 | struct _ButtonProxyClass |
| 2878 | { |
| 2879 | GDBusProxyClass parent_class; |
| 2880 | }; |
| 2881 | |
| 2882 | GType button_proxy_get_type (void) G_GNUC_CONST; |
| 2883 | |
| 2884 | void button_proxy_new ( |
| 2885 | GDBusConnection *connection, |
| 2886 | GDBusProxyFlags flags, |
| 2887 | const gchar *name, |
| 2888 | const gchar *object_path, |
| 2889 | GCancellable *cancellable, |
| 2890 | GAsyncReadyCallback callback, |
| 2891 | gpointer user_data); |
| 2892 | Button *button_proxy_new_finish ( |
| 2893 | GAsyncResult *res, |
| 2894 | GError **error); |
| 2895 | Button *button_proxy_new_sync ( |
| 2896 | GDBusConnection *connection, |
| 2897 | GDBusProxyFlags flags, |
| 2898 | const gchar *name, |
| 2899 | const gchar *object_path, |
| 2900 | GCancellable *cancellable, |
| 2901 | GError **error); |
| 2902 | |
| 2903 | void button_proxy_new_for_bus ( |
| 2904 | GBusType bus_type, |
| 2905 | GDBusProxyFlags flags, |
| 2906 | const gchar *name, |
| 2907 | const gchar *object_path, |
| 2908 | GCancellable *cancellable, |
| 2909 | GAsyncReadyCallback callback, |
| 2910 | gpointer user_data); |
| 2911 | Button *button_proxy_new_for_bus_finish ( |
| 2912 | GAsyncResult *res, |
| 2913 | GError **error); |
| 2914 | Button *button_proxy_new_for_bus_sync ( |
| 2915 | GBusType bus_type, |
| 2916 | GDBusProxyFlags flags, |
| 2917 | const gchar *name, |
| 2918 | const gchar *object_path, |
| 2919 | GCancellable *cancellable, |
| 2920 | GError **error); |
| 2921 | |
| 2922 | |
| 2923 | /* ---- */ |
| 2924 | |
| 2925 | #define TYPE_BUTTON_SKELETON (button_skeleton_get_type ()) |
| 2926 | #define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton)) |
| 2927 | #define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) |
| 2928 | #define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) |
| 2929 | #define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON)) |
| 2930 | #define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON)) |
| 2931 | |
| 2932 | typedef struct _ButtonSkeleton ButtonSkeleton; |
| 2933 | typedef struct _ButtonSkeletonClass ButtonSkeletonClass; |
| 2934 | typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate; |
| 2935 | |
| 2936 | struct _ButtonSkeleton |
| 2937 | { |
| 2938 | /*< private >*/ |
| 2939 | GDBusInterfaceSkeleton parent_instance; |
| 2940 | ButtonSkeletonPrivate *priv; |
| 2941 | }; |
| 2942 | |
| 2943 | struct _ButtonSkeletonClass |
| 2944 | { |
| 2945 | GDBusInterfaceSkeletonClass parent_class; |
| 2946 | }; |
| 2947 | |
| 2948 | GType button_skeleton_get_type (void) G_GNUC_CONST; |
| 2949 | |
| 2950 | Button *button_skeleton_new (void); |
| 2951 | |
| 2952 | |
| 2953 | /* ------------------------------------------------------------------------ */ |
| 2954 | /* Declarations for org.openbmc.Led */ |
| 2955 | |
| 2956 | #define TYPE_LED (led_get_type ()) |
| 2957 | #define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led)) |
| 2958 | #define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED)) |
| 2959 | #define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface)) |
| 2960 | |
| 2961 | struct _Led; |
| 2962 | typedef struct _Led Led; |
| 2963 | typedef struct _LedIface LedIface; |
| 2964 | |
| 2965 | struct _LedIface |
| 2966 | { |
| 2967 | GTypeInterface parent_iface; |
| 2968 | |
| 2969 | |
| 2970 | gboolean (*handle_set_blink_fast) ( |
| 2971 | Led *object, |
| 2972 | GDBusMethodInvocation *invocation); |
| 2973 | |
| 2974 | gboolean (*handle_set_blink_slow) ( |
| 2975 | Led *object, |
| 2976 | GDBusMethodInvocation *invocation); |
| 2977 | |
| 2978 | gboolean (*handle_set_off) ( |
| 2979 | Led *object, |
| 2980 | GDBusMethodInvocation *invocation); |
| 2981 | |
| 2982 | gboolean (*handle_set_on) ( |
| 2983 | Led *object, |
| 2984 | GDBusMethodInvocation *invocation); |
| 2985 | |
| 2986 | gint (*get_color) (Led *object); |
| 2987 | |
| 2988 | const gchar * (*get_function) (Led *object); |
| 2989 | |
| 2990 | }; |
| 2991 | |
| 2992 | GType led_get_type (void) G_GNUC_CONST; |
| 2993 | |
| 2994 | GDBusInterfaceInfo *led_interface_info (void); |
| 2995 | guint led_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2996 | |
| 2997 | |
| 2998 | /* D-Bus method call completion functions: */ |
| 2999 | void led_complete_set_on ( |
| 3000 | Led *object, |
| 3001 | GDBusMethodInvocation *invocation); |
| 3002 | |
| 3003 | void led_complete_set_off ( |
| 3004 | Led *object, |
| 3005 | GDBusMethodInvocation *invocation); |
| 3006 | |
| 3007 | void led_complete_set_blink_slow ( |
| 3008 | Led *object, |
| 3009 | GDBusMethodInvocation *invocation); |
| 3010 | |
| 3011 | void led_complete_set_blink_fast ( |
| 3012 | Led *object, |
| 3013 | GDBusMethodInvocation *invocation); |
| 3014 | |
| 3015 | |
| 3016 | |
| 3017 | /* D-Bus method calls: */ |
| 3018 | void led_call_set_on ( |
| 3019 | Led *proxy, |
| 3020 | GCancellable *cancellable, |
| 3021 | GAsyncReadyCallback callback, |
| 3022 | gpointer user_data); |
| 3023 | |
| 3024 | gboolean led_call_set_on_finish ( |
| 3025 | Led *proxy, |
| 3026 | GAsyncResult *res, |
| 3027 | GError **error); |
| 3028 | |
| 3029 | gboolean led_call_set_on_sync ( |
| 3030 | Led *proxy, |
| 3031 | GCancellable *cancellable, |
| 3032 | GError **error); |
| 3033 | |
| 3034 | void led_call_set_off ( |
| 3035 | Led *proxy, |
| 3036 | GCancellable *cancellable, |
| 3037 | GAsyncReadyCallback callback, |
| 3038 | gpointer user_data); |
| 3039 | |
| 3040 | gboolean led_call_set_off_finish ( |
| 3041 | Led *proxy, |
| 3042 | GAsyncResult *res, |
| 3043 | GError **error); |
| 3044 | |
| 3045 | gboolean led_call_set_off_sync ( |
| 3046 | Led *proxy, |
| 3047 | GCancellable *cancellable, |
| 3048 | GError **error); |
| 3049 | |
| 3050 | void led_call_set_blink_slow ( |
| 3051 | Led *proxy, |
| 3052 | GCancellable *cancellable, |
| 3053 | GAsyncReadyCallback callback, |
| 3054 | gpointer user_data); |
| 3055 | |
| 3056 | gboolean led_call_set_blink_slow_finish ( |
| 3057 | Led *proxy, |
| 3058 | GAsyncResult *res, |
| 3059 | GError **error); |
| 3060 | |
| 3061 | gboolean led_call_set_blink_slow_sync ( |
| 3062 | Led *proxy, |
| 3063 | GCancellable *cancellable, |
| 3064 | GError **error); |
| 3065 | |
| 3066 | void led_call_set_blink_fast ( |
| 3067 | Led *proxy, |
| 3068 | GCancellable *cancellable, |
| 3069 | GAsyncReadyCallback callback, |
| 3070 | gpointer user_data); |
| 3071 | |
| 3072 | gboolean led_call_set_blink_fast_finish ( |
| 3073 | Led *proxy, |
| 3074 | GAsyncResult *res, |
| 3075 | GError **error); |
| 3076 | |
| 3077 | gboolean led_call_set_blink_fast_sync ( |
| 3078 | Led *proxy, |
| 3079 | GCancellable *cancellable, |
| 3080 | GError **error); |
| 3081 | |
| 3082 | |
| 3083 | |
| 3084 | /* D-Bus property accessors: */ |
| 3085 | gint led_get_color (Led *object); |
| 3086 | void led_set_color (Led *object, gint value); |
| 3087 | |
| 3088 | const gchar *led_get_function (Led *object); |
| 3089 | gchar *led_dup_function (Led *object); |
| 3090 | void led_set_function (Led *object, const gchar *value); |
| 3091 | |
| 3092 | |
| 3093 | /* ---- */ |
| 3094 | |
| 3095 | #define TYPE_LED_PROXY (led_proxy_get_type ()) |
| 3096 | #define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy)) |
| 3097 | #define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass)) |
| 3098 | #define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass)) |
| 3099 | #define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY)) |
| 3100 | #define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY)) |
| 3101 | |
| 3102 | typedef struct _LedProxy LedProxy; |
| 3103 | typedef struct _LedProxyClass LedProxyClass; |
| 3104 | typedef struct _LedProxyPrivate LedProxyPrivate; |
| 3105 | |
| 3106 | struct _LedProxy |
| 3107 | { |
| 3108 | /*< private >*/ |
| 3109 | GDBusProxy parent_instance; |
| 3110 | LedProxyPrivate *priv; |
| 3111 | }; |
| 3112 | |
| 3113 | struct _LedProxyClass |
| 3114 | { |
| 3115 | GDBusProxyClass parent_class; |
| 3116 | }; |
| 3117 | |
| 3118 | GType led_proxy_get_type (void) G_GNUC_CONST; |
| 3119 | |
| 3120 | void led_proxy_new ( |
| 3121 | GDBusConnection *connection, |
| 3122 | GDBusProxyFlags flags, |
| 3123 | const gchar *name, |
| 3124 | const gchar *object_path, |
| 3125 | GCancellable *cancellable, |
| 3126 | GAsyncReadyCallback callback, |
| 3127 | gpointer user_data); |
| 3128 | Led *led_proxy_new_finish ( |
| 3129 | GAsyncResult *res, |
| 3130 | GError **error); |
| 3131 | Led *led_proxy_new_sync ( |
| 3132 | GDBusConnection *connection, |
| 3133 | GDBusProxyFlags flags, |
| 3134 | const gchar *name, |
| 3135 | const gchar *object_path, |
| 3136 | GCancellable *cancellable, |
| 3137 | GError **error); |
| 3138 | |
| 3139 | void led_proxy_new_for_bus ( |
| 3140 | GBusType bus_type, |
| 3141 | GDBusProxyFlags flags, |
| 3142 | const gchar *name, |
| 3143 | const gchar *object_path, |
| 3144 | GCancellable *cancellable, |
| 3145 | GAsyncReadyCallback callback, |
| 3146 | gpointer user_data); |
| 3147 | Led *led_proxy_new_for_bus_finish ( |
| 3148 | GAsyncResult *res, |
| 3149 | GError **error); |
| 3150 | Led *led_proxy_new_for_bus_sync ( |
| 3151 | GBusType bus_type, |
| 3152 | GDBusProxyFlags flags, |
| 3153 | const gchar *name, |
| 3154 | const gchar *object_path, |
| 3155 | GCancellable *cancellable, |
| 3156 | GError **error); |
| 3157 | |
| 3158 | |
| 3159 | /* ---- */ |
| 3160 | |
| 3161 | #define TYPE_LED_SKELETON (led_skeleton_get_type ()) |
| 3162 | #define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton)) |
| 3163 | #define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass)) |
| 3164 | #define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass)) |
| 3165 | #define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON)) |
| 3166 | #define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON)) |
| 3167 | |
| 3168 | typedef struct _LedSkeleton LedSkeleton; |
| 3169 | typedef struct _LedSkeletonClass LedSkeletonClass; |
| 3170 | typedef struct _LedSkeletonPrivate LedSkeletonPrivate; |
| 3171 | |
| 3172 | struct _LedSkeleton |
| 3173 | { |
| 3174 | /*< private >*/ |
| 3175 | GDBusInterfaceSkeleton parent_instance; |
| 3176 | LedSkeletonPrivate *priv; |
| 3177 | }; |
| 3178 | |
| 3179 | struct _LedSkeletonClass |
| 3180 | { |
| 3181 | GDBusInterfaceSkeletonClass parent_class; |
| 3182 | }; |
| 3183 | |
| 3184 | GType led_skeleton_get_type (void) G_GNUC_CONST; |
| 3185 | |
| 3186 | Led *led_skeleton_new (void); |
| 3187 | |
| 3188 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3189 | /* ------------------------------------------------------------------------ */ |
| 3190 | /* Declarations for org.openbmc.HostIpmi */ |
| 3191 | |
| 3192 | #define TYPE_HOST_IPMI (host_ipmi_get_type ()) |
| 3193 | #define HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI, HostIpmi)) |
| 3194 | #define IS_HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI)) |
| 3195 | #define HOST_IPMI_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOST_IPMI, HostIpmiIface)) |
| 3196 | |
| 3197 | struct _HostIpmi; |
| 3198 | typedef struct _HostIpmi HostIpmi; |
| 3199 | typedef struct _HostIpmiIface HostIpmiIface; |
| 3200 | |
| 3201 | struct _HostIpmiIface |
| 3202 | { |
| 3203 | GTypeInterface parent_iface; |
| 3204 | |
| 3205 | |
| 3206 | gboolean (*handle_send_message) ( |
| 3207 | HostIpmi *object, |
| 3208 | GDBusMethodInvocation *invocation, |
| 3209 | guchar arg_seq, |
| 3210 | guchar arg_netfn, |
| 3211 | guchar arg_cmd, |
| 3212 | const gchar *arg_data); |
| 3213 | |
| 3214 | void (*received_message) ( |
| 3215 | HostIpmi *object, |
| 3216 | guchar arg_seq, |
| 3217 | guchar arg_netfn, |
| 3218 | guchar arg_cmd, |
| 3219 | const gchar *arg_data); |
| 3220 | |
| 3221 | }; |
| 3222 | |
| 3223 | GType host_ipmi_get_type (void) G_GNUC_CONST; |
| 3224 | |
| 3225 | GDBusInterfaceInfo *host_ipmi_interface_info (void); |
| 3226 | guint host_ipmi_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3227 | |
| 3228 | |
| 3229 | /* D-Bus method call completion functions: */ |
| 3230 | void host_ipmi_complete_send_message ( |
| 3231 | HostIpmi *object, |
| 3232 | GDBusMethodInvocation *invocation, |
| 3233 | gint64 unnamed_arg4); |
| 3234 | |
| 3235 | |
| 3236 | |
| 3237 | /* D-Bus signal emissions functions: */ |
| 3238 | void host_ipmi_emit_received_message ( |
| 3239 | HostIpmi *object, |
| 3240 | guchar arg_seq, |
| 3241 | guchar arg_netfn, |
| 3242 | guchar arg_cmd, |
| 3243 | const gchar *arg_data); |
| 3244 | |
| 3245 | |
| 3246 | |
| 3247 | /* D-Bus method calls: */ |
| 3248 | void host_ipmi_call_send_message ( |
| 3249 | HostIpmi *proxy, |
| 3250 | guchar arg_seq, |
| 3251 | guchar arg_netfn, |
| 3252 | guchar arg_cmd, |
| 3253 | const gchar *arg_data, |
| 3254 | GCancellable *cancellable, |
| 3255 | GAsyncReadyCallback callback, |
| 3256 | gpointer user_data); |
| 3257 | |
| 3258 | gboolean host_ipmi_call_send_message_finish ( |
| 3259 | HostIpmi *proxy, |
| 3260 | gint64 *out_unnamed_arg4, |
| 3261 | GAsyncResult *res, |
| 3262 | GError **error); |
| 3263 | |
| 3264 | gboolean host_ipmi_call_send_message_sync ( |
| 3265 | HostIpmi *proxy, |
| 3266 | guchar arg_seq, |
| 3267 | guchar arg_netfn, |
| 3268 | guchar arg_cmd, |
| 3269 | const gchar *arg_data, |
| 3270 | gint64 *out_unnamed_arg4, |
| 3271 | GCancellable *cancellable, |
| 3272 | GError **error); |
| 3273 | |
| 3274 | |
| 3275 | |
| 3276 | /* ---- */ |
| 3277 | |
| 3278 | #define TYPE_HOST_IPMI_PROXY (host_ipmi_proxy_get_type ()) |
| 3279 | #define HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxy)) |
| 3280 | #define HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass)) |
| 3281 | #define HOST_IPMI_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass)) |
| 3282 | #define IS_HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_PROXY)) |
| 3283 | #define IS_HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_PROXY)) |
| 3284 | |
| 3285 | typedef struct _HostIpmiProxy HostIpmiProxy; |
| 3286 | typedef struct _HostIpmiProxyClass HostIpmiProxyClass; |
| 3287 | typedef struct _HostIpmiProxyPrivate HostIpmiProxyPrivate; |
| 3288 | |
| 3289 | struct _HostIpmiProxy |
| 3290 | { |
| 3291 | /*< private >*/ |
| 3292 | GDBusProxy parent_instance; |
| 3293 | HostIpmiProxyPrivate *priv; |
| 3294 | }; |
| 3295 | |
| 3296 | struct _HostIpmiProxyClass |
| 3297 | { |
| 3298 | GDBusProxyClass parent_class; |
| 3299 | }; |
| 3300 | |
| 3301 | GType host_ipmi_proxy_get_type (void) G_GNUC_CONST; |
| 3302 | |
| 3303 | void host_ipmi_proxy_new ( |
| 3304 | GDBusConnection *connection, |
| 3305 | GDBusProxyFlags flags, |
| 3306 | const gchar *name, |
| 3307 | const gchar *object_path, |
| 3308 | GCancellable *cancellable, |
| 3309 | GAsyncReadyCallback callback, |
| 3310 | gpointer user_data); |
| 3311 | HostIpmi *host_ipmi_proxy_new_finish ( |
| 3312 | GAsyncResult *res, |
| 3313 | GError **error); |
| 3314 | HostIpmi *host_ipmi_proxy_new_sync ( |
| 3315 | GDBusConnection *connection, |
| 3316 | GDBusProxyFlags flags, |
| 3317 | const gchar *name, |
| 3318 | const gchar *object_path, |
| 3319 | GCancellable *cancellable, |
| 3320 | GError **error); |
| 3321 | |
| 3322 | void host_ipmi_proxy_new_for_bus ( |
| 3323 | GBusType bus_type, |
| 3324 | GDBusProxyFlags flags, |
| 3325 | const gchar *name, |
| 3326 | const gchar *object_path, |
| 3327 | GCancellable *cancellable, |
| 3328 | GAsyncReadyCallback callback, |
| 3329 | gpointer user_data); |
| 3330 | HostIpmi *host_ipmi_proxy_new_for_bus_finish ( |
| 3331 | GAsyncResult *res, |
| 3332 | GError **error); |
| 3333 | HostIpmi *host_ipmi_proxy_new_for_bus_sync ( |
| 3334 | GBusType bus_type, |
| 3335 | GDBusProxyFlags flags, |
| 3336 | const gchar *name, |
| 3337 | const gchar *object_path, |
| 3338 | GCancellable *cancellable, |
| 3339 | GError **error); |
| 3340 | |
| 3341 | |
| 3342 | /* ---- */ |
| 3343 | |
| 3344 | #define TYPE_HOST_IPMI_SKELETON (host_ipmi_skeleton_get_type ()) |
| 3345 | #define HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeleton)) |
| 3346 | #define HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass)) |
| 3347 | #define HOST_IPMI_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass)) |
| 3348 | #define IS_HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_SKELETON)) |
| 3349 | #define IS_HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_SKELETON)) |
| 3350 | |
| 3351 | typedef struct _HostIpmiSkeleton HostIpmiSkeleton; |
| 3352 | typedef struct _HostIpmiSkeletonClass HostIpmiSkeletonClass; |
| 3353 | typedef struct _HostIpmiSkeletonPrivate HostIpmiSkeletonPrivate; |
| 3354 | |
| 3355 | struct _HostIpmiSkeleton |
| 3356 | { |
| 3357 | /*< private >*/ |
| 3358 | GDBusInterfaceSkeleton parent_instance; |
| 3359 | HostIpmiSkeletonPrivate *priv; |
| 3360 | }; |
| 3361 | |
| 3362 | struct _HostIpmiSkeletonClass |
| 3363 | { |
| 3364 | GDBusInterfaceSkeletonClass parent_class; |
| 3365 | }; |
| 3366 | |
| 3367 | GType host_ipmi_skeleton_get_type (void) G_GNUC_CONST; |
| 3368 | |
| 3369 | HostIpmi *host_ipmi_skeleton_new (void); |
| 3370 | |
| 3371 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3372 | /* ---- */ |
| 3373 | |
| 3374 | #define TYPE_OBJECT (object_get_type ()) |
| 3375 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 3376 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 3377 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 3378 | |
| 3379 | struct _Object; |
| 3380 | typedef struct _Object Object; |
| 3381 | typedef struct _ObjectIface ObjectIface; |
| 3382 | |
| 3383 | struct _ObjectIface |
| 3384 | { |
| 3385 | GTypeInterface parent_iface; |
| 3386 | }; |
| 3387 | |
| 3388 | GType object_get_type (void) G_GNUC_CONST; |
| 3389 | |
| 3390 | Occ *object_get_occ (Object *object); |
| 3391 | Fan *object_get_fan (Object *object); |
| 3392 | SensorValue *object_get_sensor_value (Object *object); |
| 3393 | SensorThreshold *object_get_sensor_threshold (Object *object); |
| 3394 | SensorI2c *object_get_sensor_i2c (Object *object); |
| 3395 | SensorMatch *object_get_sensor_match (Object *object); |
| 3396 | Process *object_get_process (Object *object); |
| 3397 | Control *object_get_control (Object *object); |
| 3398 | ControlBmc *object_get_control_bmc (Object *object); |
| 3399 | ControlHost *object_get_control_host (Object *object); |
| 3400 | ControlPower *object_get_control_power (Object *object); |
| 3401 | Watchdog *object_get_watchdog (Object *object); |
| 3402 | EventLog *object_get_event_log (Object *object); |
| 3403 | Flash *object_get_flash (Object *object); |
| 3404 | Button *object_get_button (Object *object); |
| 3405 | Led *object_get_led (Object *object); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3406 | HostIpmi *object_get_host_ipmi (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3407 | Occ *object_peek_occ (Object *object); |
| 3408 | Fan *object_peek_fan (Object *object); |
| 3409 | SensorValue *object_peek_sensor_value (Object *object); |
| 3410 | SensorThreshold *object_peek_sensor_threshold (Object *object); |
| 3411 | SensorI2c *object_peek_sensor_i2c (Object *object); |
| 3412 | SensorMatch *object_peek_sensor_match (Object *object); |
| 3413 | Process *object_peek_process (Object *object); |
| 3414 | Control *object_peek_control (Object *object); |
| 3415 | ControlBmc *object_peek_control_bmc (Object *object); |
| 3416 | ControlHost *object_peek_control_host (Object *object); |
| 3417 | ControlPower *object_peek_control_power (Object *object); |
| 3418 | Watchdog *object_peek_watchdog (Object *object); |
| 3419 | EventLog *object_peek_event_log (Object *object); |
| 3420 | Flash *object_peek_flash (Object *object); |
| 3421 | Button *object_peek_button (Object *object); |
| 3422 | Led *object_peek_led (Object *object); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3423 | HostIpmi *object_peek_host_ipmi (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3424 | |
| 3425 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 3426 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 3427 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 3428 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 3429 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 3430 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 3431 | |
| 3432 | typedef struct _ObjectProxy ObjectProxy; |
| 3433 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 3434 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 3435 | |
| 3436 | struct _ObjectProxy |
| 3437 | { |
| 3438 | /*< private >*/ |
| 3439 | GDBusObjectProxy parent_instance; |
| 3440 | ObjectProxyPrivate *priv; |
| 3441 | }; |
| 3442 | |
| 3443 | struct _ObjectProxyClass |
| 3444 | { |
| 3445 | GDBusObjectProxyClass parent_class; |
| 3446 | }; |
| 3447 | |
| 3448 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 3449 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 3450 | |
| 3451 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 3452 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 3453 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 3454 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 3455 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 3456 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 3457 | |
| 3458 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 3459 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 3460 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 3461 | |
| 3462 | struct _ObjectSkeleton |
| 3463 | { |
| 3464 | /*< private >*/ |
| 3465 | GDBusObjectSkeleton parent_instance; |
| 3466 | ObjectSkeletonPrivate *priv; |
| 3467 | }; |
| 3468 | |
| 3469 | struct _ObjectSkeletonClass |
| 3470 | { |
| 3471 | GDBusObjectSkeletonClass parent_class; |
| 3472 | }; |
| 3473 | |
| 3474 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 3475 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 3476 | void object_skeleton_set_occ (ObjectSkeleton *object, Occ *interface_); |
| 3477 | void object_skeleton_set_fan (ObjectSkeleton *object, Fan *interface_); |
| 3478 | void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3479 | void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_); |
| 3480 | void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_); |
| 3481 | void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_); |
| 3482 | void object_skeleton_set_process (ObjectSkeleton *object, Process *interface_); |
| 3483 | void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_); |
| 3484 | void object_skeleton_set_control_bmc (ObjectSkeleton *object, ControlBmc *interface_); |
| 3485 | void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_); |
| 3486 | void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_); |
| 3487 | void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_); |
| 3488 | void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_); |
| 3489 | void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_); |
| 3490 | void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_); |
| 3491 | void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3492 | void object_skeleton_set_host_ipmi (ObjectSkeleton *object, HostIpmi *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3493 | |
| 3494 | /* ---- */ |
| 3495 | |
| 3496 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 3497 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 3498 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 3499 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 3500 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 3501 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 3502 | |
| 3503 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 3504 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 3505 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 3506 | |
| 3507 | struct _ObjectManagerClient |
| 3508 | { |
| 3509 | /*< private >*/ |
| 3510 | GDBusObjectManagerClient parent_instance; |
| 3511 | ObjectManagerClientPrivate *priv; |
| 3512 | }; |
| 3513 | |
| 3514 | struct _ObjectManagerClientClass |
| 3515 | { |
| 3516 | GDBusObjectManagerClientClass parent_class; |
| 3517 | }; |
| 3518 | |
| 3519 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 3520 | |
| 3521 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 3522 | |
| 3523 | void object_manager_client_new ( |
| 3524 | GDBusConnection *connection, |
| 3525 | GDBusObjectManagerClientFlags flags, |
| 3526 | const gchar *name, |
| 3527 | const gchar *object_path, |
| 3528 | GCancellable *cancellable, |
| 3529 | GAsyncReadyCallback callback, |
| 3530 | gpointer user_data); |
| 3531 | GDBusObjectManager *object_manager_client_new_finish ( |
| 3532 | GAsyncResult *res, |
| 3533 | GError **error); |
| 3534 | GDBusObjectManager *object_manager_client_new_sync ( |
| 3535 | GDBusConnection *connection, |
| 3536 | GDBusObjectManagerClientFlags flags, |
| 3537 | const gchar *name, |
| 3538 | const gchar *object_path, |
| 3539 | GCancellable *cancellable, |
| 3540 | GError **error); |
| 3541 | |
| 3542 | void object_manager_client_new_for_bus ( |
| 3543 | GBusType bus_type, |
| 3544 | GDBusObjectManagerClientFlags flags, |
| 3545 | const gchar *name, |
| 3546 | const gchar *object_path, |
| 3547 | GCancellable *cancellable, |
| 3548 | GAsyncReadyCallback callback, |
| 3549 | gpointer user_data); |
| 3550 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 3551 | GAsyncResult *res, |
| 3552 | GError **error); |
| 3553 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 3554 | GBusType bus_type, |
| 3555 | GDBusObjectManagerClientFlags flags, |
| 3556 | const gchar *name, |
| 3557 | const gchar *object_path, |
| 3558 | GCancellable *cancellable, |
| 3559 | GError **error); |
| 3560 | |
| 3561 | |
| 3562 | G_END_DECLS |
| 3563 | |
| 3564 | #endif /* __INTERFACES_OPENBMC_INTF_H__ */ |