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