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