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