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