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