Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1 | /* |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 2 | * Generated by gdbus-codegen 2.44.1. 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 | /* ------------------------------------------------------------------------ */ |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 2424 | /* Declarations for org.openbmc.control.Checkstop */ |
| 2425 | |
| 2426 | #define TYPE_CONTROL_CHECKSTOP (control_checkstop_get_type ()) |
| 2427 | #define CONTROL_CHECKSTOP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP, ControlCheckstop)) |
| 2428 | #define IS_CONTROL_CHECKSTOP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP)) |
| 2429 | #define CONTROL_CHECKSTOP_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_CHECKSTOP, ControlCheckstopIface)) |
| 2430 | |
| 2431 | struct _ControlCheckstop; |
| 2432 | typedef struct _ControlCheckstop ControlCheckstop; |
| 2433 | typedef struct _ControlCheckstopIface ControlCheckstopIface; |
| 2434 | |
| 2435 | struct _ControlCheckstopIface |
| 2436 | { |
| 2437 | GTypeInterface parent_iface; |
| 2438 | }; |
| 2439 | |
| 2440 | GType control_checkstop_get_type (void) G_GNUC_CONST; |
| 2441 | |
| 2442 | GDBusInterfaceInfo *control_checkstop_interface_info (void); |
| 2443 | guint control_checkstop_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2444 | |
| 2445 | |
| 2446 | /* ---- */ |
| 2447 | |
| 2448 | #define TYPE_CONTROL_CHECKSTOP_PROXY (control_checkstop_proxy_get_type ()) |
| 2449 | #define CONTROL_CHECKSTOP_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxy)) |
| 2450 | #define CONTROL_CHECKSTOP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxyClass)) |
| 2451 | #define CONTROL_CHECKSTOP_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxyClass)) |
| 2452 | #define IS_CONTROL_CHECKSTOP_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP_PROXY)) |
| 2453 | #define IS_CONTROL_CHECKSTOP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_CHECKSTOP_PROXY)) |
| 2454 | |
| 2455 | typedef struct _ControlCheckstopProxy ControlCheckstopProxy; |
| 2456 | typedef struct _ControlCheckstopProxyClass ControlCheckstopProxyClass; |
| 2457 | typedef struct _ControlCheckstopProxyPrivate ControlCheckstopProxyPrivate; |
| 2458 | |
| 2459 | struct _ControlCheckstopProxy |
| 2460 | { |
| 2461 | /*< private >*/ |
| 2462 | GDBusProxy parent_instance; |
| 2463 | ControlCheckstopProxyPrivate *priv; |
| 2464 | }; |
| 2465 | |
| 2466 | struct _ControlCheckstopProxyClass |
| 2467 | { |
| 2468 | GDBusProxyClass parent_class; |
| 2469 | }; |
| 2470 | |
| 2471 | GType control_checkstop_proxy_get_type (void) G_GNUC_CONST; |
| 2472 | |
| 2473 | void control_checkstop_proxy_new ( |
| 2474 | GDBusConnection *connection, |
| 2475 | GDBusProxyFlags flags, |
| 2476 | const gchar *name, |
| 2477 | const gchar *object_path, |
| 2478 | GCancellable *cancellable, |
| 2479 | GAsyncReadyCallback callback, |
| 2480 | gpointer user_data); |
| 2481 | ControlCheckstop *control_checkstop_proxy_new_finish ( |
| 2482 | GAsyncResult *res, |
| 2483 | GError **error); |
| 2484 | ControlCheckstop *control_checkstop_proxy_new_sync ( |
| 2485 | GDBusConnection *connection, |
| 2486 | GDBusProxyFlags flags, |
| 2487 | const gchar *name, |
| 2488 | const gchar *object_path, |
| 2489 | GCancellable *cancellable, |
| 2490 | GError **error); |
| 2491 | |
| 2492 | void control_checkstop_proxy_new_for_bus ( |
| 2493 | GBusType bus_type, |
| 2494 | GDBusProxyFlags flags, |
| 2495 | const gchar *name, |
| 2496 | const gchar *object_path, |
| 2497 | GCancellable *cancellable, |
| 2498 | GAsyncReadyCallback callback, |
| 2499 | gpointer user_data); |
| 2500 | ControlCheckstop *control_checkstop_proxy_new_for_bus_finish ( |
| 2501 | GAsyncResult *res, |
| 2502 | GError **error); |
| 2503 | ControlCheckstop *control_checkstop_proxy_new_for_bus_sync ( |
| 2504 | GBusType bus_type, |
| 2505 | GDBusProxyFlags flags, |
| 2506 | const gchar *name, |
| 2507 | const gchar *object_path, |
| 2508 | GCancellable *cancellable, |
| 2509 | GError **error); |
| 2510 | |
| 2511 | |
| 2512 | /* ---- */ |
| 2513 | |
| 2514 | #define TYPE_CONTROL_CHECKSTOP_SKELETON (control_checkstop_skeleton_get_type ()) |
| 2515 | #define CONTROL_CHECKSTOP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeleton)) |
| 2516 | #define CONTROL_CHECKSTOP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeletonClass)) |
| 2517 | #define CONTROL_CHECKSTOP_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeletonClass)) |
| 2518 | #define IS_CONTROL_CHECKSTOP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP_SKELETON)) |
| 2519 | #define IS_CONTROL_CHECKSTOP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_CHECKSTOP_SKELETON)) |
| 2520 | |
| 2521 | typedef struct _ControlCheckstopSkeleton ControlCheckstopSkeleton; |
| 2522 | typedef struct _ControlCheckstopSkeletonClass ControlCheckstopSkeletonClass; |
| 2523 | typedef struct _ControlCheckstopSkeletonPrivate ControlCheckstopSkeletonPrivate; |
| 2524 | |
| 2525 | struct _ControlCheckstopSkeleton |
| 2526 | { |
| 2527 | /*< private >*/ |
| 2528 | GDBusInterfaceSkeleton parent_instance; |
| 2529 | ControlCheckstopSkeletonPrivate *priv; |
| 2530 | }; |
| 2531 | |
| 2532 | struct _ControlCheckstopSkeletonClass |
| 2533 | { |
| 2534 | GDBusInterfaceSkeletonClass parent_class; |
| 2535 | }; |
| 2536 | |
| 2537 | GType control_checkstop_skeleton_get_type (void) G_GNUC_CONST; |
| 2538 | |
| 2539 | ControlCheckstop *control_checkstop_skeleton_new (void); |
| 2540 | |
| 2541 | |
| 2542 | /* ------------------------------------------------------------------------ */ |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2543 | /* Declarations for org.openbmc.Watchdog */ |
| 2544 | |
| 2545 | #define TYPE_WATCHDOG (watchdog_get_type ()) |
| 2546 | #define WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG, Watchdog)) |
| 2547 | #define IS_WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG)) |
| 2548 | #define WATCHDOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_WATCHDOG, WatchdogIface)) |
| 2549 | |
| 2550 | struct _Watchdog; |
| 2551 | typedef struct _Watchdog Watchdog; |
| 2552 | typedef struct _WatchdogIface WatchdogIface; |
| 2553 | |
| 2554 | struct _WatchdogIface |
| 2555 | { |
| 2556 | GTypeInterface parent_iface; |
| 2557 | |
| 2558 | |
| 2559 | |
| 2560 | gboolean (*handle_poke) ( |
| 2561 | Watchdog *object, |
| 2562 | GDBusMethodInvocation *invocation); |
| 2563 | |
Adriana Kobylak | 2cb2775 | 2015-10-19 16:23:14 -0500 | [diff] [blame] | 2564 | gboolean (*handle_set) ( |
| 2565 | Watchdog *object, |
| 2566 | GDBusMethodInvocation *invocation, |
| 2567 | gint arg_interval); |
| 2568 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2569 | gboolean (*handle_start) ( |
| 2570 | Watchdog *object, |
| 2571 | GDBusMethodInvocation *invocation); |
| 2572 | |
| 2573 | gboolean (*handle_stop) ( |
| 2574 | Watchdog *object, |
| 2575 | GDBusMethodInvocation *invocation); |
| 2576 | |
| 2577 | gint (*get_poll_interval) (Watchdog *object); |
| 2578 | |
| 2579 | gint (*get_watchdog) (Watchdog *object); |
| 2580 | |
| 2581 | void (*watchdog_error) ( |
| 2582 | Watchdog *object); |
| 2583 | |
| 2584 | }; |
| 2585 | |
| 2586 | GType watchdog_get_type (void) G_GNUC_CONST; |
| 2587 | |
| 2588 | GDBusInterfaceInfo *watchdog_interface_info (void); |
| 2589 | guint watchdog_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2590 | |
| 2591 | |
| 2592 | /* D-Bus method call completion functions: */ |
| 2593 | void watchdog_complete_start ( |
| 2594 | Watchdog *object, |
| 2595 | GDBusMethodInvocation *invocation); |
| 2596 | |
| 2597 | void watchdog_complete_poke ( |
| 2598 | Watchdog *object, |
| 2599 | GDBusMethodInvocation *invocation); |
| 2600 | |
| 2601 | void watchdog_complete_stop ( |
| 2602 | Watchdog *object, |
| 2603 | GDBusMethodInvocation *invocation); |
| 2604 | |
Adriana Kobylak | 2cb2775 | 2015-10-19 16:23:14 -0500 | [diff] [blame] | 2605 | void watchdog_complete_set ( |
| 2606 | Watchdog *object, |
| 2607 | GDBusMethodInvocation *invocation); |
| 2608 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2609 | |
| 2610 | |
| 2611 | /* D-Bus signal emissions functions: */ |
| 2612 | void watchdog_emit_watchdog_error ( |
| 2613 | Watchdog *object); |
| 2614 | |
| 2615 | |
| 2616 | |
| 2617 | /* D-Bus method calls: */ |
| 2618 | void watchdog_call_start ( |
| 2619 | Watchdog *proxy, |
| 2620 | GCancellable *cancellable, |
| 2621 | GAsyncReadyCallback callback, |
| 2622 | gpointer user_data); |
| 2623 | |
| 2624 | gboolean watchdog_call_start_finish ( |
| 2625 | Watchdog *proxy, |
| 2626 | GAsyncResult *res, |
| 2627 | GError **error); |
| 2628 | |
| 2629 | gboolean watchdog_call_start_sync ( |
| 2630 | Watchdog *proxy, |
| 2631 | GCancellable *cancellable, |
| 2632 | GError **error); |
| 2633 | |
| 2634 | void watchdog_call_poke ( |
| 2635 | Watchdog *proxy, |
| 2636 | GCancellable *cancellable, |
| 2637 | GAsyncReadyCallback callback, |
| 2638 | gpointer user_data); |
| 2639 | |
| 2640 | gboolean watchdog_call_poke_finish ( |
| 2641 | Watchdog *proxy, |
| 2642 | GAsyncResult *res, |
| 2643 | GError **error); |
| 2644 | |
| 2645 | gboolean watchdog_call_poke_sync ( |
| 2646 | Watchdog *proxy, |
| 2647 | GCancellable *cancellable, |
| 2648 | GError **error); |
| 2649 | |
| 2650 | void watchdog_call_stop ( |
| 2651 | Watchdog *proxy, |
| 2652 | GCancellable *cancellable, |
| 2653 | GAsyncReadyCallback callback, |
| 2654 | gpointer user_data); |
| 2655 | |
| 2656 | gboolean watchdog_call_stop_finish ( |
| 2657 | Watchdog *proxy, |
| 2658 | GAsyncResult *res, |
| 2659 | GError **error); |
| 2660 | |
| 2661 | gboolean watchdog_call_stop_sync ( |
| 2662 | Watchdog *proxy, |
| 2663 | GCancellable *cancellable, |
| 2664 | GError **error); |
| 2665 | |
Adriana Kobylak | 2cb2775 | 2015-10-19 16:23:14 -0500 | [diff] [blame] | 2666 | void watchdog_call_set ( |
| 2667 | Watchdog *proxy, |
| 2668 | gint arg_interval, |
| 2669 | GCancellable *cancellable, |
| 2670 | GAsyncReadyCallback callback, |
| 2671 | gpointer user_data); |
| 2672 | |
| 2673 | gboolean watchdog_call_set_finish ( |
| 2674 | Watchdog *proxy, |
| 2675 | GAsyncResult *res, |
| 2676 | GError **error); |
| 2677 | |
| 2678 | gboolean watchdog_call_set_sync ( |
| 2679 | Watchdog *proxy, |
| 2680 | gint arg_interval, |
| 2681 | GCancellable *cancellable, |
| 2682 | GError **error); |
| 2683 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2684 | |
| 2685 | |
| 2686 | /* D-Bus property accessors: */ |
| 2687 | gint watchdog_get_watchdog (Watchdog *object); |
| 2688 | void watchdog_set_watchdog (Watchdog *object, gint value); |
| 2689 | |
| 2690 | gint watchdog_get_poll_interval (Watchdog *object); |
| 2691 | void watchdog_set_poll_interval (Watchdog *object, gint value); |
| 2692 | |
| 2693 | |
| 2694 | /* ---- */ |
| 2695 | |
| 2696 | #define TYPE_WATCHDOG_PROXY (watchdog_proxy_get_type ()) |
| 2697 | #define WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_PROXY, WatchdogProxy)) |
| 2698 | #define WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) |
| 2699 | #define WATCHDOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) |
| 2700 | #define IS_WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_PROXY)) |
| 2701 | #define IS_WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_PROXY)) |
| 2702 | |
| 2703 | typedef struct _WatchdogProxy WatchdogProxy; |
| 2704 | typedef struct _WatchdogProxyClass WatchdogProxyClass; |
| 2705 | typedef struct _WatchdogProxyPrivate WatchdogProxyPrivate; |
| 2706 | |
| 2707 | struct _WatchdogProxy |
| 2708 | { |
| 2709 | /*< private >*/ |
| 2710 | GDBusProxy parent_instance; |
| 2711 | WatchdogProxyPrivate *priv; |
| 2712 | }; |
| 2713 | |
| 2714 | struct _WatchdogProxyClass |
| 2715 | { |
| 2716 | GDBusProxyClass parent_class; |
| 2717 | }; |
| 2718 | |
| 2719 | GType watchdog_proxy_get_type (void) G_GNUC_CONST; |
| 2720 | |
| 2721 | void watchdog_proxy_new ( |
| 2722 | GDBusConnection *connection, |
| 2723 | GDBusProxyFlags flags, |
| 2724 | const gchar *name, |
| 2725 | const gchar *object_path, |
| 2726 | GCancellable *cancellable, |
| 2727 | GAsyncReadyCallback callback, |
| 2728 | gpointer user_data); |
| 2729 | Watchdog *watchdog_proxy_new_finish ( |
| 2730 | GAsyncResult *res, |
| 2731 | GError **error); |
| 2732 | Watchdog *watchdog_proxy_new_sync ( |
| 2733 | GDBusConnection *connection, |
| 2734 | GDBusProxyFlags flags, |
| 2735 | const gchar *name, |
| 2736 | const gchar *object_path, |
| 2737 | GCancellable *cancellable, |
| 2738 | GError **error); |
| 2739 | |
| 2740 | void watchdog_proxy_new_for_bus ( |
| 2741 | GBusType bus_type, |
| 2742 | GDBusProxyFlags flags, |
| 2743 | const gchar *name, |
| 2744 | const gchar *object_path, |
| 2745 | GCancellable *cancellable, |
| 2746 | GAsyncReadyCallback callback, |
| 2747 | gpointer user_data); |
| 2748 | Watchdog *watchdog_proxy_new_for_bus_finish ( |
| 2749 | GAsyncResult *res, |
| 2750 | GError **error); |
| 2751 | Watchdog *watchdog_proxy_new_for_bus_sync ( |
| 2752 | GBusType bus_type, |
| 2753 | GDBusProxyFlags flags, |
| 2754 | const gchar *name, |
| 2755 | const gchar *object_path, |
| 2756 | GCancellable *cancellable, |
| 2757 | GError **error); |
| 2758 | |
| 2759 | |
| 2760 | /* ---- */ |
| 2761 | |
| 2762 | #define TYPE_WATCHDOG_SKELETON (watchdog_skeleton_get_type ()) |
| 2763 | #define WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeleton)) |
| 2764 | #define WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) |
| 2765 | #define WATCHDOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) |
| 2766 | #define IS_WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_SKELETON)) |
| 2767 | #define IS_WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_SKELETON)) |
| 2768 | |
| 2769 | typedef struct _WatchdogSkeleton WatchdogSkeleton; |
| 2770 | typedef struct _WatchdogSkeletonClass WatchdogSkeletonClass; |
| 2771 | typedef struct _WatchdogSkeletonPrivate WatchdogSkeletonPrivate; |
| 2772 | |
| 2773 | struct _WatchdogSkeleton |
| 2774 | { |
| 2775 | /*< private >*/ |
| 2776 | GDBusInterfaceSkeleton parent_instance; |
| 2777 | WatchdogSkeletonPrivate *priv; |
| 2778 | }; |
| 2779 | |
| 2780 | struct _WatchdogSkeletonClass |
| 2781 | { |
| 2782 | GDBusInterfaceSkeletonClass parent_class; |
| 2783 | }; |
| 2784 | |
| 2785 | GType watchdog_skeleton_get_type (void) G_GNUC_CONST; |
| 2786 | |
| 2787 | Watchdog *watchdog_skeleton_new (void); |
| 2788 | |
| 2789 | |
| 2790 | /* ------------------------------------------------------------------------ */ |
| 2791 | /* Declarations for org.openbmc.EventLog */ |
| 2792 | |
| 2793 | #define TYPE_EVENT_LOG (event_log_get_type ()) |
| 2794 | #define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog)) |
| 2795 | #define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG)) |
| 2796 | #define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface)) |
| 2797 | |
| 2798 | struct _EventLog; |
| 2799 | typedef struct _EventLog EventLog; |
| 2800 | typedef struct _EventLogIface EventLogIface; |
| 2801 | |
| 2802 | struct _EventLogIface |
| 2803 | { |
| 2804 | GTypeInterface parent_iface; |
| 2805 | |
Norman James | 2d1ee89 | 2015-09-16 23:13:45 -0500 | [diff] [blame] | 2806 | |
| 2807 | gboolean (*handle_get_event_log) ( |
| 2808 | EventLog *object, |
| 2809 | GDBusMethodInvocation *invocation); |
| 2810 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2811 | void (*event_log) ( |
| 2812 | EventLog *object, |
Norman James | 8abb50c | 2015-09-16 10:58:16 -0500 | [diff] [blame] | 2813 | gint arg_priority, |
Norman James | 8887267 | 2015-09-21 16:51:35 -0500 | [diff] [blame] | 2814 | const gchar *arg_message, |
| 2815 | gint arg_rc); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2816 | |
| 2817 | }; |
| 2818 | |
| 2819 | GType event_log_get_type (void) G_GNUC_CONST; |
| 2820 | |
| 2821 | GDBusInterfaceInfo *event_log_interface_info (void); |
| 2822 | guint event_log_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2823 | |
| 2824 | |
Norman James | 2d1ee89 | 2015-09-16 23:13:45 -0500 | [diff] [blame] | 2825 | /* D-Bus method call completion functions: */ |
| 2826 | void event_log_complete_get_event_log ( |
| 2827 | EventLog *object, |
| 2828 | GDBusMethodInvocation *invocation, |
| 2829 | GVariant *log); |
| 2830 | |
| 2831 | |
| 2832 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2833 | /* D-Bus signal emissions functions: */ |
| 2834 | void event_log_emit_event_log ( |
| 2835 | EventLog *object, |
Norman James | 8abb50c | 2015-09-16 10:58:16 -0500 | [diff] [blame] | 2836 | gint arg_priority, |
Norman James | 8887267 | 2015-09-21 16:51:35 -0500 | [diff] [blame] | 2837 | const gchar *arg_message, |
| 2838 | gint arg_rc); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2839 | |
| 2840 | |
| 2841 | |
Norman James | 2d1ee89 | 2015-09-16 23:13:45 -0500 | [diff] [blame] | 2842 | /* D-Bus method calls: */ |
| 2843 | void event_log_call_get_event_log ( |
| 2844 | EventLog *proxy, |
| 2845 | GCancellable *cancellable, |
| 2846 | GAsyncReadyCallback callback, |
| 2847 | gpointer user_data); |
| 2848 | |
| 2849 | gboolean event_log_call_get_event_log_finish ( |
| 2850 | EventLog *proxy, |
| 2851 | GVariant **out_log, |
| 2852 | GAsyncResult *res, |
| 2853 | GError **error); |
| 2854 | |
| 2855 | gboolean event_log_call_get_event_log_sync ( |
| 2856 | EventLog *proxy, |
| 2857 | GVariant **out_log, |
| 2858 | GCancellable *cancellable, |
| 2859 | GError **error); |
| 2860 | |
| 2861 | |
| 2862 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2863 | /* ---- */ |
| 2864 | |
| 2865 | #define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ()) |
| 2866 | #define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy)) |
| 2867 | #define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| 2868 | #define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| 2869 | #define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY)) |
| 2870 | #define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY)) |
| 2871 | |
| 2872 | typedef struct _EventLogProxy EventLogProxy; |
| 2873 | typedef struct _EventLogProxyClass EventLogProxyClass; |
| 2874 | typedef struct _EventLogProxyPrivate EventLogProxyPrivate; |
| 2875 | |
| 2876 | struct _EventLogProxy |
| 2877 | { |
| 2878 | /*< private >*/ |
| 2879 | GDBusProxy parent_instance; |
| 2880 | EventLogProxyPrivate *priv; |
| 2881 | }; |
| 2882 | |
| 2883 | struct _EventLogProxyClass |
| 2884 | { |
| 2885 | GDBusProxyClass parent_class; |
| 2886 | }; |
| 2887 | |
| 2888 | GType event_log_proxy_get_type (void) G_GNUC_CONST; |
| 2889 | |
| 2890 | void event_log_proxy_new ( |
| 2891 | GDBusConnection *connection, |
| 2892 | GDBusProxyFlags flags, |
| 2893 | const gchar *name, |
| 2894 | const gchar *object_path, |
| 2895 | GCancellable *cancellable, |
| 2896 | GAsyncReadyCallback callback, |
| 2897 | gpointer user_data); |
| 2898 | EventLog *event_log_proxy_new_finish ( |
| 2899 | GAsyncResult *res, |
| 2900 | GError **error); |
| 2901 | EventLog *event_log_proxy_new_sync ( |
| 2902 | GDBusConnection *connection, |
| 2903 | GDBusProxyFlags flags, |
| 2904 | const gchar *name, |
| 2905 | const gchar *object_path, |
| 2906 | GCancellable *cancellable, |
| 2907 | GError **error); |
| 2908 | |
| 2909 | void event_log_proxy_new_for_bus ( |
| 2910 | GBusType bus_type, |
| 2911 | GDBusProxyFlags flags, |
| 2912 | const gchar *name, |
| 2913 | const gchar *object_path, |
| 2914 | GCancellable *cancellable, |
| 2915 | GAsyncReadyCallback callback, |
| 2916 | gpointer user_data); |
| 2917 | EventLog *event_log_proxy_new_for_bus_finish ( |
| 2918 | GAsyncResult *res, |
| 2919 | GError **error); |
| 2920 | EventLog *event_log_proxy_new_for_bus_sync ( |
| 2921 | GBusType bus_type, |
| 2922 | GDBusProxyFlags flags, |
| 2923 | const gchar *name, |
| 2924 | const gchar *object_path, |
| 2925 | GCancellable *cancellable, |
| 2926 | GError **error); |
| 2927 | |
| 2928 | |
| 2929 | /* ---- */ |
| 2930 | |
| 2931 | #define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ()) |
| 2932 | #define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton)) |
| 2933 | #define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| 2934 | #define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| 2935 | #define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON)) |
| 2936 | #define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON)) |
| 2937 | |
| 2938 | typedef struct _EventLogSkeleton EventLogSkeleton; |
| 2939 | typedef struct _EventLogSkeletonClass EventLogSkeletonClass; |
| 2940 | typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate; |
| 2941 | |
| 2942 | struct _EventLogSkeleton |
| 2943 | { |
| 2944 | /*< private >*/ |
| 2945 | GDBusInterfaceSkeleton parent_instance; |
| 2946 | EventLogSkeletonPrivate *priv; |
| 2947 | }; |
| 2948 | |
| 2949 | struct _EventLogSkeletonClass |
| 2950 | { |
| 2951 | GDBusInterfaceSkeletonClass parent_class; |
| 2952 | }; |
| 2953 | |
| 2954 | GType event_log_skeleton_get_type (void) G_GNUC_CONST; |
| 2955 | |
| 2956 | EventLog *event_log_skeleton_new (void); |
| 2957 | |
| 2958 | |
| 2959 | /* ------------------------------------------------------------------------ */ |
| 2960 | /* Declarations for org.openbmc.Flash */ |
| 2961 | |
| 2962 | #define TYPE_FLASH (flash_get_type ()) |
| 2963 | #define FLASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH, Flash)) |
| 2964 | #define IS_FLASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH)) |
| 2965 | #define FLASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH, FlashIface)) |
| 2966 | |
| 2967 | struct _Flash; |
| 2968 | typedef struct _Flash Flash; |
| 2969 | typedef struct _FlashIface FlashIface; |
| 2970 | |
| 2971 | struct _FlashIface |
| 2972 | { |
| 2973 | GTypeInterface parent_iface; |
| 2974 | |
| 2975 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 2976 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 2977 | gboolean (*handle_done) ( |
| 2978 | Flash *object, |
| 2979 | GDBusMethodInvocation *invocation); |
| 2980 | |
| 2981 | gboolean (*handle_error) ( |
| 2982 | Flash *object, |
| 2983 | GDBusMethodInvocation *invocation, |
| 2984 | const gchar *arg_message); |
| 2985 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2986 | gboolean (*handle_init) ( |
| 2987 | Flash *object, |
| 2988 | GDBusMethodInvocation *invocation); |
| 2989 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2990 | gboolean (*handle_update) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2991 | Flash *object, |
| 2992 | GDBusMethodInvocation *invocation, |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2993 | const gchar *arg_filename); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2994 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 2995 | gboolean (*handle_update_via_tftp) ( |
| 2996 | Flash *object, |
| 2997 | GDBusMethodInvocation *invocation, |
| 2998 | const gchar *arg_url, |
| 2999 | const gchar *arg_filename); |
| 3000 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3001 | const gchar * (*get_filename) (Flash *object); |
| 3002 | |
| 3003 | const gchar * (*get_flasher_instance) (Flash *object); |
| 3004 | |
| 3005 | const gchar * (*get_flasher_name) (Flash *object); |
| 3006 | |
| 3007 | const gchar * (*get_flasher_path) (Flash *object); |
| 3008 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 3009 | const gchar * (*get_status) (Flash *object); |
| 3010 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3011 | void (*download) ( |
| 3012 | Flash *object, |
| 3013 | const gchar *arg_url, |
| 3014 | const gchar *arg_filename); |
| 3015 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3016 | void (*updated) ( |
| 3017 | Flash *object); |
| 3018 | |
| 3019 | }; |
| 3020 | |
| 3021 | GType flash_get_type (void) G_GNUC_CONST; |
| 3022 | |
| 3023 | GDBusInterfaceInfo *flash_interface_info (void); |
| 3024 | guint flash_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3025 | |
| 3026 | |
| 3027 | /* D-Bus method call completion functions: */ |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3028 | void flash_complete_update ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3029 | Flash *object, |
| 3030 | GDBusMethodInvocation *invocation); |
| 3031 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 3032 | void flash_complete_error ( |
| 3033 | Flash *object, |
| 3034 | GDBusMethodInvocation *invocation); |
| 3035 | |
| 3036 | void flash_complete_done ( |
| 3037 | Flash *object, |
| 3038 | GDBusMethodInvocation *invocation); |
| 3039 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3040 | void flash_complete_update_via_tftp ( |
| 3041 | Flash *object, |
| 3042 | GDBusMethodInvocation *invocation); |
| 3043 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3044 | void flash_complete_init ( |
| 3045 | Flash *object, |
| 3046 | GDBusMethodInvocation *invocation); |
| 3047 | |
| 3048 | |
| 3049 | |
| 3050 | /* D-Bus signal emissions functions: */ |
| 3051 | void flash_emit_updated ( |
| 3052 | Flash *object); |
| 3053 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3054 | void flash_emit_download ( |
| 3055 | Flash *object, |
| 3056 | const gchar *arg_url, |
| 3057 | const gchar *arg_filename); |
| 3058 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3059 | |
| 3060 | |
| 3061 | /* D-Bus method calls: */ |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3062 | void flash_call_update ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3063 | Flash *proxy, |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3064 | const gchar *arg_filename, |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3065 | GCancellable *cancellable, |
| 3066 | GAsyncReadyCallback callback, |
| 3067 | gpointer user_data); |
| 3068 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3069 | gboolean flash_call_update_finish ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3070 | Flash *proxy, |
| 3071 | GAsyncResult *res, |
| 3072 | GError **error); |
| 3073 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3074 | gboolean flash_call_update_sync ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3075 | Flash *proxy, |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3076 | const gchar *arg_filename, |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3077 | GCancellable *cancellable, |
| 3078 | GError **error); |
| 3079 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 3080 | void flash_call_error ( |
| 3081 | Flash *proxy, |
| 3082 | const gchar *arg_message, |
| 3083 | GCancellable *cancellable, |
| 3084 | GAsyncReadyCallback callback, |
| 3085 | gpointer user_data); |
| 3086 | |
| 3087 | gboolean flash_call_error_finish ( |
| 3088 | Flash *proxy, |
| 3089 | GAsyncResult *res, |
| 3090 | GError **error); |
| 3091 | |
| 3092 | gboolean flash_call_error_sync ( |
| 3093 | Flash *proxy, |
| 3094 | const gchar *arg_message, |
| 3095 | GCancellable *cancellable, |
| 3096 | GError **error); |
| 3097 | |
| 3098 | void flash_call_done ( |
| 3099 | Flash *proxy, |
| 3100 | GCancellable *cancellable, |
| 3101 | GAsyncReadyCallback callback, |
| 3102 | gpointer user_data); |
| 3103 | |
| 3104 | gboolean flash_call_done_finish ( |
| 3105 | Flash *proxy, |
| 3106 | GAsyncResult *res, |
| 3107 | GError **error); |
| 3108 | |
| 3109 | gboolean flash_call_done_sync ( |
| 3110 | Flash *proxy, |
| 3111 | GCancellable *cancellable, |
| 3112 | GError **error); |
| 3113 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3114 | void flash_call_update_via_tftp ( |
| 3115 | Flash *proxy, |
| 3116 | const gchar *arg_url, |
| 3117 | const gchar *arg_filename, |
| 3118 | GCancellable *cancellable, |
| 3119 | GAsyncReadyCallback callback, |
| 3120 | gpointer user_data); |
| 3121 | |
| 3122 | gboolean flash_call_update_via_tftp_finish ( |
| 3123 | Flash *proxy, |
| 3124 | GAsyncResult *res, |
| 3125 | GError **error); |
| 3126 | |
| 3127 | gboolean flash_call_update_via_tftp_sync ( |
| 3128 | Flash *proxy, |
| 3129 | const gchar *arg_url, |
| 3130 | const gchar *arg_filename, |
| 3131 | GCancellable *cancellable, |
| 3132 | GError **error); |
| 3133 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3134 | void flash_call_init ( |
| 3135 | Flash *proxy, |
| 3136 | GCancellable *cancellable, |
| 3137 | GAsyncReadyCallback callback, |
| 3138 | gpointer user_data); |
| 3139 | |
| 3140 | gboolean flash_call_init_finish ( |
| 3141 | Flash *proxy, |
| 3142 | GAsyncResult *res, |
| 3143 | GError **error); |
| 3144 | |
| 3145 | gboolean flash_call_init_sync ( |
| 3146 | Flash *proxy, |
| 3147 | GCancellable *cancellable, |
| 3148 | GError **error); |
| 3149 | |
| 3150 | |
| 3151 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3152 | /* D-Bus property accessors: */ |
| 3153 | const gchar *flash_get_filename (Flash *object); |
| 3154 | gchar *flash_dup_filename (Flash *object); |
| 3155 | void flash_set_filename (Flash *object, const gchar *value); |
| 3156 | |
| 3157 | const gchar *flash_get_flasher_path (Flash *object); |
| 3158 | gchar *flash_dup_flasher_path (Flash *object); |
| 3159 | void flash_set_flasher_path (Flash *object, const gchar *value); |
| 3160 | |
| 3161 | const gchar *flash_get_flasher_name (Flash *object); |
| 3162 | gchar *flash_dup_flasher_name (Flash *object); |
| 3163 | void flash_set_flasher_name (Flash *object, const gchar *value); |
| 3164 | |
| 3165 | const gchar *flash_get_flasher_instance (Flash *object); |
| 3166 | gchar *flash_dup_flasher_instance (Flash *object); |
| 3167 | void flash_set_flasher_instance (Flash *object, const gchar *value); |
| 3168 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 3169 | const gchar *flash_get_status (Flash *object); |
| 3170 | gchar *flash_dup_status (Flash *object); |
| 3171 | void flash_set_status (Flash *object, const gchar *value); |
| 3172 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3173 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3174 | /* ---- */ |
| 3175 | |
| 3176 | #define TYPE_FLASH_PROXY (flash_proxy_get_type ()) |
| 3177 | #define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy)) |
| 3178 | #define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass)) |
| 3179 | #define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass)) |
| 3180 | #define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY)) |
| 3181 | #define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY)) |
| 3182 | |
| 3183 | typedef struct _FlashProxy FlashProxy; |
| 3184 | typedef struct _FlashProxyClass FlashProxyClass; |
| 3185 | typedef struct _FlashProxyPrivate FlashProxyPrivate; |
| 3186 | |
| 3187 | struct _FlashProxy |
| 3188 | { |
| 3189 | /*< private >*/ |
| 3190 | GDBusProxy parent_instance; |
| 3191 | FlashProxyPrivate *priv; |
| 3192 | }; |
| 3193 | |
| 3194 | struct _FlashProxyClass |
| 3195 | { |
| 3196 | GDBusProxyClass parent_class; |
| 3197 | }; |
| 3198 | |
| 3199 | GType flash_proxy_get_type (void) G_GNUC_CONST; |
| 3200 | |
| 3201 | void flash_proxy_new ( |
| 3202 | GDBusConnection *connection, |
| 3203 | GDBusProxyFlags flags, |
| 3204 | const gchar *name, |
| 3205 | const gchar *object_path, |
| 3206 | GCancellable *cancellable, |
| 3207 | GAsyncReadyCallback callback, |
| 3208 | gpointer user_data); |
| 3209 | Flash *flash_proxy_new_finish ( |
| 3210 | GAsyncResult *res, |
| 3211 | GError **error); |
| 3212 | Flash *flash_proxy_new_sync ( |
| 3213 | GDBusConnection *connection, |
| 3214 | GDBusProxyFlags flags, |
| 3215 | const gchar *name, |
| 3216 | const gchar *object_path, |
| 3217 | GCancellable *cancellable, |
| 3218 | GError **error); |
| 3219 | |
| 3220 | void flash_proxy_new_for_bus ( |
| 3221 | GBusType bus_type, |
| 3222 | GDBusProxyFlags flags, |
| 3223 | const gchar *name, |
| 3224 | const gchar *object_path, |
| 3225 | GCancellable *cancellable, |
| 3226 | GAsyncReadyCallback callback, |
| 3227 | gpointer user_data); |
| 3228 | Flash *flash_proxy_new_for_bus_finish ( |
| 3229 | GAsyncResult *res, |
| 3230 | GError **error); |
| 3231 | Flash *flash_proxy_new_for_bus_sync ( |
| 3232 | GBusType bus_type, |
| 3233 | GDBusProxyFlags flags, |
| 3234 | const gchar *name, |
| 3235 | const gchar *object_path, |
| 3236 | GCancellable *cancellable, |
| 3237 | GError **error); |
| 3238 | |
| 3239 | |
| 3240 | /* ---- */ |
| 3241 | |
| 3242 | #define TYPE_FLASH_SKELETON (flash_skeleton_get_type ()) |
| 3243 | #define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton)) |
| 3244 | #define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass)) |
| 3245 | #define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass)) |
| 3246 | #define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON)) |
| 3247 | #define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON)) |
| 3248 | |
| 3249 | typedef struct _FlashSkeleton FlashSkeleton; |
| 3250 | typedef struct _FlashSkeletonClass FlashSkeletonClass; |
| 3251 | typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate; |
| 3252 | |
| 3253 | struct _FlashSkeleton |
| 3254 | { |
| 3255 | /*< private >*/ |
| 3256 | GDBusInterfaceSkeleton parent_instance; |
| 3257 | FlashSkeletonPrivate *priv; |
| 3258 | }; |
| 3259 | |
| 3260 | struct _FlashSkeletonClass |
| 3261 | { |
| 3262 | GDBusInterfaceSkeletonClass parent_class; |
| 3263 | }; |
| 3264 | |
| 3265 | GType flash_skeleton_get_type (void) G_GNUC_CONST; |
| 3266 | |
| 3267 | Flash *flash_skeleton_new (void); |
| 3268 | |
| 3269 | |
| 3270 | /* ------------------------------------------------------------------------ */ |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3271 | /* Declarations for org.openbmc.FlashControl */ |
| 3272 | |
| 3273 | #define TYPE_FLASH_CONTROL (flash_control_get_type ()) |
| 3274 | #define FLASH_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL, FlashControl)) |
| 3275 | #define IS_FLASH_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL)) |
| 3276 | #define FLASH_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH_CONTROL, FlashControlIface)) |
| 3277 | |
| 3278 | struct _FlashControl; |
| 3279 | typedef struct _FlashControl FlashControl; |
| 3280 | typedef struct _FlashControlIface FlashControlIface; |
| 3281 | |
| 3282 | struct _FlashControlIface |
| 3283 | { |
| 3284 | GTypeInterface parent_iface; |
| 3285 | |
| 3286 | |
| 3287 | |
| 3288 | gboolean (*handle_flash) ( |
| 3289 | FlashControl *object, |
| 3290 | GDBusMethodInvocation *invocation, |
| 3291 | const gchar *arg_type, |
| 3292 | const gchar *arg_filename); |
| 3293 | |
| 3294 | const gchar * (*get_filename) (FlashControl *object); |
| 3295 | |
| 3296 | const gchar * (*get_type_) (FlashControl *object); |
| 3297 | |
| 3298 | void (*done) ( |
| 3299 | FlashControl *object, |
| 3300 | const gchar *arg_filename); |
| 3301 | |
| 3302 | void (*error) ( |
| 3303 | FlashControl *object, |
| 3304 | const gchar *arg_filename); |
| 3305 | |
| 3306 | void (*progress) ( |
| 3307 | FlashControl *object, |
| 3308 | const gchar *arg_filename, |
| 3309 | guchar arg_progress); |
| 3310 | |
| 3311 | }; |
| 3312 | |
| 3313 | GType flash_control_get_type (void) G_GNUC_CONST; |
| 3314 | |
| 3315 | GDBusInterfaceInfo *flash_control_interface_info (void); |
| 3316 | guint flash_control_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3317 | |
| 3318 | |
| 3319 | /* D-Bus method call completion functions: */ |
| 3320 | void flash_control_complete_flash ( |
| 3321 | FlashControl *object, |
| 3322 | GDBusMethodInvocation *invocation); |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | /* D-Bus signal emissions functions: */ |
| 3327 | void flash_control_emit_done ( |
| 3328 | FlashControl *object, |
| 3329 | const gchar *arg_filename); |
| 3330 | |
| 3331 | void flash_control_emit_error ( |
| 3332 | FlashControl *object, |
| 3333 | const gchar *arg_filename); |
| 3334 | |
| 3335 | void flash_control_emit_progress ( |
| 3336 | FlashControl *object, |
| 3337 | const gchar *arg_filename, |
| 3338 | guchar arg_progress); |
| 3339 | |
| 3340 | |
| 3341 | |
| 3342 | /* D-Bus method calls: */ |
| 3343 | void flash_control_call_flash ( |
| 3344 | FlashControl *proxy, |
| 3345 | const gchar *arg_type, |
| 3346 | const gchar *arg_filename, |
| 3347 | GCancellable *cancellable, |
| 3348 | GAsyncReadyCallback callback, |
| 3349 | gpointer user_data); |
| 3350 | |
| 3351 | gboolean flash_control_call_flash_finish ( |
| 3352 | FlashControl *proxy, |
| 3353 | GAsyncResult *res, |
| 3354 | GError **error); |
| 3355 | |
| 3356 | gboolean flash_control_call_flash_sync ( |
| 3357 | FlashControl *proxy, |
| 3358 | const gchar *arg_type, |
| 3359 | const gchar *arg_filename, |
| 3360 | GCancellable *cancellable, |
| 3361 | GError **error); |
| 3362 | |
| 3363 | |
| 3364 | |
| 3365 | /* D-Bus property accessors: */ |
| 3366 | const gchar *flash_control_get_filename (FlashControl *object); |
| 3367 | gchar *flash_control_dup_filename (FlashControl *object); |
| 3368 | void flash_control_set_filename (FlashControl *object, const gchar *value); |
| 3369 | |
| 3370 | const gchar *flash_control_get_type_ (FlashControl *object); |
| 3371 | gchar *flash_control_dup_type_ (FlashControl *object); |
| 3372 | void flash_control_set_type_ (FlashControl *object, const gchar *value); |
| 3373 | |
| 3374 | |
| 3375 | /* ---- */ |
| 3376 | |
| 3377 | #define TYPE_FLASH_CONTROL_PROXY (flash_control_proxy_get_type ()) |
| 3378 | #define FLASH_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL_PROXY, FlashControlProxy)) |
| 3379 | #define FLASH_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_CONTROL_PROXY, FlashControlProxyClass)) |
| 3380 | #define FLASH_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_CONTROL_PROXY, FlashControlProxyClass)) |
| 3381 | #define IS_FLASH_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL_PROXY)) |
| 3382 | #define IS_FLASH_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_CONTROL_PROXY)) |
| 3383 | |
| 3384 | typedef struct _FlashControlProxy FlashControlProxy; |
| 3385 | typedef struct _FlashControlProxyClass FlashControlProxyClass; |
| 3386 | typedef struct _FlashControlProxyPrivate FlashControlProxyPrivate; |
| 3387 | |
| 3388 | struct _FlashControlProxy |
| 3389 | { |
| 3390 | /*< private >*/ |
| 3391 | GDBusProxy parent_instance; |
| 3392 | FlashControlProxyPrivate *priv; |
| 3393 | }; |
| 3394 | |
| 3395 | struct _FlashControlProxyClass |
| 3396 | { |
| 3397 | GDBusProxyClass parent_class; |
| 3398 | }; |
| 3399 | |
| 3400 | GType flash_control_proxy_get_type (void) G_GNUC_CONST; |
| 3401 | |
| 3402 | void flash_control_proxy_new ( |
| 3403 | GDBusConnection *connection, |
| 3404 | GDBusProxyFlags flags, |
| 3405 | const gchar *name, |
| 3406 | const gchar *object_path, |
| 3407 | GCancellable *cancellable, |
| 3408 | GAsyncReadyCallback callback, |
| 3409 | gpointer user_data); |
| 3410 | FlashControl *flash_control_proxy_new_finish ( |
| 3411 | GAsyncResult *res, |
| 3412 | GError **error); |
| 3413 | FlashControl *flash_control_proxy_new_sync ( |
| 3414 | GDBusConnection *connection, |
| 3415 | GDBusProxyFlags flags, |
| 3416 | const gchar *name, |
| 3417 | const gchar *object_path, |
| 3418 | GCancellable *cancellable, |
| 3419 | GError **error); |
| 3420 | |
| 3421 | void flash_control_proxy_new_for_bus ( |
| 3422 | GBusType bus_type, |
| 3423 | GDBusProxyFlags flags, |
| 3424 | const gchar *name, |
| 3425 | const gchar *object_path, |
| 3426 | GCancellable *cancellable, |
| 3427 | GAsyncReadyCallback callback, |
| 3428 | gpointer user_data); |
| 3429 | FlashControl *flash_control_proxy_new_for_bus_finish ( |
| 3430 | GAsyncResult *res, |
| 3431 | GError **error); |
| 3432 | FlashControl *flash_control_proxy_new_for_bus_sync ( |
| 3433 | GBusType bus_type, |
| 3434 | GDBusProxyFlags flags, |
| 3435 | const gchar *name, |
| 3436 | const gchar *object_path, |
| 3437 | GCancellable *cancellable, |
| 3438 | GError **error); |
| 3439 | |
| 3440 | |
| 3441 | /* ---- */ |
| 3442 | |
| 3443 | #define TYPE_FLASH_CONTROL_SKELETON (flash_control_skeleton_get_type ()) |
| 3444 | #define FLASH_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeleton)) |
| 3445 | #define FLASH_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeletonClass)) |
| 3446 | #define FLASH_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeletonClass)) |
| 3447 | #define IS_FLASH_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL_SKELETON)) |
| 3448 | #define IS_FLASH_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_CONTROL_SKELETON)) |
| 3449 | |
| 3450 | typedef struct _FlashControlSkeleton FlashControlSkeleton; |
| 3451 | typedef struct _FlashControlSkeletonClass FlashControlSkeletonClass; |
| 3452 | typedef struct _FlashControlSkeletonPrivate FlashControlSkeletonPrivate; |
| 3453 | |
| 3454 | struct _FlashControlSkeleton |
| 3455 | { |
| 3456 | /*< private >*/ |
| 3457 | GDBusInterfaceSkeleton parent_instance; |
| 3458 | FlashControlSkeletonPrivate *priv; |
| 3459 | }; |
| 3460 | |
| 3461 | struct _FlashControlSkeletonClass |
| 3462 | { |
| 3463 | GDBusInterfaceSkeletonClass parent_class; |
| 3464 | }; |
| 3465 | |
| 3466 | GType flash_control_skeleton_get_type (void) G_GNUC_CONST; |
| 3467 | |
| 3468 | FlashControl *flash_control_skeleton_new (void); |
| 3469 | |
| 3470 | |
| 3471 | /* ------------------------------------------------------------------------ */ |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3472 | /* Declarations for org.openbmc.Button */ |
| 3473 | |
| 3474 | #define TYPE_BUTTON (button_get_type ()) |
| 3475 | #define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button)) |
| 3476 | #define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON)) |
| 3477 | #define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface)) |
| 3478 | |
| 3479 | struct _Button; |
| 3480 | typedef struct _Button Button; |
| 3481 | typedef struct _ButtonIface ButtonIface; |
| 3482 | |
| 3483 | struct _ButtonIface |
| 3484 | { |
| 3485 | GTypeInterface parent_iface; |
| 3486 | |
| 3487 | |
| 3488 | |
| 3489 | gboolean (*handle_is_on) ( |
| 3490 | Button *object, |
| 3491 | GDBusMethodInvocation *invocation); |
| 3492 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3493 | gboolean (*handle_sim_long_press) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3494 | Button *object, |
| 3495 | GDBusMethodInvocation *invocation); |
| 3496 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3497 | gboolean (*handle_sim_press) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3498 | Button *object, |
| 3499 | GDBusMethodInvocation *invocation); |
| 3500 | |
| 3501 | gboolean (*get_state) (Button *object); |
| 3502 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3503 | guint64 (*get_timer) (Button *object); |
| 3504 | |
| 3505 | void (*pressed) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3506 | Button *object); |
| 3507 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3508 | void (*pressed_long) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3509 | Button *object); |
| 3510 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3511 | void (*released) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3512 | Button *object); |
| 3513 | |
| 3514 | }; |
| 3515 | |
| 3516 | GType button_get_type (void) G_GNUC_CONST; |
| 3517 | |
| 3518 | GDBusInterfaceInfo *button_interface_info (void); |
| 3519 | guint button_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3520 | |
| 3521 | |
| 3522 | /* D-Bus method call completion functions: */ |
| 3523 | void button_complete_is_on ( |
| 3524 | Button *object, |
| 3525 | GDBusMethodInvocation *invocation, |
| 3526 | gboolean state); |
| 3527 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3528 | void button_complete_sim_press ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3529 | Button *object, |
| 3530 | GDBusMethodInvocation *invocation); |
| 3531 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3532 | void button_complete_sim_long_press ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3533 | Button *object, |
| 3534 | GDBusMethodInvocation *invocation); |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | /* D-Bus signal emissions functions: */ |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3539 | void button_emit_released ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3540 | Button *object); |
| 3541 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3542 | void button_emit_pressed ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3543 | Button *object); |
| 3544 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3545 | void button_emit_pressed_long ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3546 | Button *object); |
| 3547 | |
| 3548 | |
| 3549 | |
| 3550 | /* D-Bus method calls: */ |
| 3551 | void button_call_is_on ( |
| 3552 | Button *proxy, |
| 3553 | GCancellable *cancellable, |
| 3554 | GAsyncReadyCallback callback, |
| 3555 | gpointer user_data); |
| 3556 | |
| 3557 | gboolean button_call_is_on_finish ( |
| 3558 | Button *proxy, |
| 3559 | gboolean *out_state, |
| 3560 | GAsyncResult *res, |
| 3561 | GError **error); |
| 3562 | |
| 3563 | gboolean button_call_is_on_sync ( |
| 3564 | Button *proxy, |
| 3565 | gboolean *out_state, |
| 3566 | GCancellable *cancellable, |
| 3567 | GError **error); |
| 3568 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3569 | void button_call_sim_press ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3570 | Button *proxy, |
| 3571 | GCancellable *cancellable, |
| 3572 | GAsyncReadyCallback callback, |
| 3573 | gpointer user_data); |
| 3574 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3575 | gboolean button_call_sim_press_finish ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3576 | Button *proxy, |
| 3577 | GAsyncResult *res, |
| 3578 | GError **error); |
| 3579 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3580 | gboolean button_call_sim_press_sync ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3581 | Button *proxy, |
| 3582 | GCancellable *cancellable, |
| 3583 | GError **error); |
| 3584 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3585 | void button_call_sim_long_press ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3586 | Button *proxy, |
| 3587 | GCancellable *cancellable, |
| 3588 | GAsyncReadyCallback callback, |
| 3589 | gpointer user_data); |
| 3590 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3591 | gboolean button_call_sim_long_press_finish ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3592 | Button *proxy, |
| 3593 | GAsyncResult *res, |
| 3594 | GError **error); |
| 3595 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3596 | gboolean button_call_sim_long_press_sync ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3597 | Button *proxy, |
| 3598 | GCancellable *cancellable, |
| 3599 | GError **error); |
| 3600 | |
| 3601 | |
| 3602 | |
| 3603 | /* D-Bus property accessors: */ |
| 3604 | gboolean button_get_state (Button *object); |
| 3605 | void button_set_state (Button *object, gboolean value); |
| 3606 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3607 | guint64 button_get_timer (Button *object); |
| 3608 | void button_set_timer (Button *object, guint64 value); |
| 3609 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3610 | |
| 3611 | /* ---- */ |
| 3612 | |
| 3613 | #define TYPE_BUTTON_PROXY (button_proxy_get_type ()) |
| 3614 | #define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy)) |
| 3615 | #define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass)) |
| 3616 | #define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass)) |
| 3617 | #define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY)) |
| 3618 | #define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY)) |
| 3619 | |
| 3620 | typedef struct _ButtonProxy ButtonProxy; |
| 3621 | typedef struct _ButtonProxyClass ButtonProxyClass; |
| 3622 | typedef struct _ButtonProxyPrivate ButtonProxyPrivate; |
| 3623 | |
| 3624 | struct _ButtonProxy |
| 3625 | { |
| 3626 | /*< private >*/ |
| 3627 | GDBusProxy parent_instance; |
| 3628 | ButtonProxyPrivate *priv; |
| 3629 | }; |
| 3630 | |
| 3631 | struct _ButtonProxyClass |
| 3632 | { |
| 3633 | GDBusProxyClass parent_class; |
| 3634 | }; |
| 3635 | |
| 3636 | GType button_proxy_get_type (void) G_GNUC_CONST; |
| 3637 | |
| 3638 | void button_proxy_new ( |
| 3639 | GDBusConnection *connection, |
| 3640 | GDBusProxyFlags flags, |
| 3641 | const gchar *name, |
| 3642 | const gchar *object_path, |
| 3643 | GCancellable *cancellable, |
| 3644 | GAsyncReadyCallback callback, |
| 3645 | gpointer user_data); |
| 3646 | Button *button_proxy_new_finish ( |
| 3647 | GAsyncResult *res, |
| 3648 | GError **error); |
| 3649 | Button *button_proxy_new_sync ( |
| 3650 | GDBusConnection *connection, |
| 3651 | GDBusProxyFlags flags, |
| 3652 | const gchar *name, |
| 3653 | const gchar *object_path, |
| 3654 | GCancellable *cancellable, |
| 3655 | GError **error); |
| 3656 | |
| 3657 | void button_proxy_new_for_bus ( |
| 3658 | GBusType bus_type, |
| 3659 | GDBusProxyFlags flags, |
| 3660 | const gchar *name, |
| 3661 | const gchar *object_path, |
| 3662 | GCancellable *cancellable, |
| 3663 | GAsyncReadyCallback callback, |
| 3664 | gpointer user_data); |
| 3665 | Button *button_proxy_new_for_bus_finish ( |
| 3666 | GAsyncResult *res, |
| 3667 | GError **error); |
| 3668 | Button *button_proxy_new_for_bus_sync ( |
| 3669 | GBusType bus_type, |
| 3670 | GDBusProxyFlags flags, |
| 3671 | const gchar *name, |
| 3672 | const gchar *object_path, |
| 3673 | GCancellable *cancellable, |
| 3674 | GError **error); |
| 3675 | |
| 3676 | |
| 3677 | /* ---- */ |
| 3678 | |
| 3679 | #define TYPE_BUTTON_SKELETON (button_skeleton_get_type ()) |
| 3680 | #define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton)) |
| 3681 | #define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) |
| 3682 | #define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) |
| 3683 | #define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON)) |
| 3684 | #define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON)) |
| 3685 | |
| 3686 | typedef struct _ButtonSkeleton ButtonSkeleton; |
| 3687 | typedef struct _ButtonSkeletonClass ButtonSkeletonClass; |
| 3688 | typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate; |
| 3689 | |
| 3690 | struct _ButtonSkeleton |
| 3691 | { |
| 3692 | /*< private >*/ |
| 3693 | GDBusInterfaceSkeleton parent_instance; |
| 3694 | ButtonSkeletonPrivate *priv; |
| 3695 | }; |
| 3696 | |
| 3697 | struct _ButtonSkeletonClass |
| 3698 | { |
| 3699 | GDBusInterfaceSkeletonClass parent_class; |
| 3700 | }; |
| 3701 | |
| 3702 | GType button_skeleton_get_type (void) G_GNUC_CONST; |
| 3703 | |
| 3704 | Button *button_skeleton_new (void); |
| 3705 | |
| 3706 | |
| 3707 | /* ------------------------------------------------------------------------ */ |
| 3708 | /* Declarations for org.openbmc.Led */ |
| 3709 | |
| 3710 | #define TYPE_LED (led_get_type ()) |
| 3711 | #define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led)) |
| 3712 | #define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED)) |
| 3713 | #define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface)) |
| 3714 | |
| 3715 | struct _Led; |
| 3716 | typedef struct _Led Led; |
| 3717 | typedef struct _LedIface LedIface; |
| 3718 | |
| 3719 | struct _LedIface |
| 3720 | { |
| 3721 | GTypeInterface parent_iface; |
| 3722 | |
| 3723 | |
| 3724 | gboolean (*handle_set_blink_fast) ( |
| 3725 | Led *object, |
| 3726 | GDBusMethodInvocation *invocation); |
| 3727 | |
| 3728 | gboolean (*handle_set_blink_slow) ( |
| 3729 | Led *object, |
| 3730 | GDBusMethodInvocation *invocation); |
| 3731 | |
| 3732 | gboolean (*handle_set_off) ( |
| 3733 | Led *object, |
| 3734 | GDBusMethodInvocation *invocation); |
| 3735 | |
| 3736 | gboolean (*handle_set_on) ( |
| 3737 | Led *object, |
| 3738 | GDBusMethodInvocation *invocation); |
| 3739 | |
| 3740 | gint (*get_color) (Led *object); |
| 3741 | |
| 3742 | const gchar * (*get_function) (Led *object); |
| 3743 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3744 | const gchar * (*get_state) (Led *object); |
| 3745 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3746 | }; |
| 3747 | |
| 3748 | GType led_get_type (void) G_GNUC_CONST; |
| 3749 | |
| 3750 | GDBusInterfaceInfo *led_interface_info (void); |
| 3751 | guint led_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3752 | |
| 3753 | |
| 3754 | /* D-Bus method call completion functions: */ |
| 3755 | void led_complete_set_on ( |
| 3756 | Led *object, |
| 3757 | GDBusMethodInvocation *invocation); |
| 3758 | |
| 3759 | void led_complete_set_off ( |
| 3760 | Led *object, |
| 3761 | GDBusMethodInvocation *invocation); |
| 3762 | |
| 3763 | void led_complete_set_blink_slow ( |
| 3764 | Led *object, |
| 3765 | GDBusMethodInvocation *invocation); |
| 3766 | |
| 3767 | void led_complete_set_blink_fast ( |
| 3768 | Led *object, |
| 3769 | GDBusMethodInvocation *invocation); |
| 3770 | |
| 3771 | |
| 3772 | |
| 3773 | /* D-Bus method calls: */ |
| 3774 | void led_call_set_on ( |
| 3775 | Led *proxy, |
| 3776 | GCancellable *cancellable, |
| 3777 | GAsyncReadyCallback callback, |
| 3778 | gpointer user_data); |
| 3779 | |
| 3780 | gboolean led_call_set_on_finish ( |
| 3781 | Led *proxy, |
| 3782 | GAsyncResult *res, |
| 3783 | GError **error); |
| 3784 | |
| 3785 | gboolean led_call_set_on_sync ( |
| 3786 | Led *proxy, |
| 3787 | GCancellable *cancellable, |
| 3788 | GError **error); |
| 3789 | |
| 3790 | void led_call_set_off ( |
| 3791 | Led *proxy, |
| 3792 | GCancellable *cancellable, |
| 3793 | GAsyncReadyCallback callback, |
| 3794 | gpointer user_data); |
| 3795 | |
| 3796 | gboolean led_call_set_off_finish ( |
| 3797 | Led *proxy, |
| 3798 | GAsyncResult *res, |
| 3799 | GError **error); |
| 3800 | |
| 3801 | gboolean led_call_set_off_sync ( |
| 3802 | Led *proxy, |
| 3803 | GCancellable *cancellable, |
| 3804 | GError **error); |
| 3805 | |
| 3806 | void led_call_set_blink_slow ( |
| 3807 | Led *proxy, |
| 3808 | GCancellable *cancellable, |
| 3809 | GAsyncReadyCallback callback, |
| 3810 | gpointer user_data); |
| 3811 | |
| 3812 | gboolean led_call_set_blink_slow_finish ( |
| 3813 | Led *proxy, |
| 3814 | GAsyncResult *res, |
| 3815 | GError **error); |
| 3816 | |
| 3817 | gboolean led_call_set_blink_slow_sync ( |
| 3818 | Led *proxy, |
| 3819 | GCancellable *cancellable, |
| 3820 | GError **error); |
| 3821 | |
| 3822 | void led_call_set_blink_fast ( |
| 3823 | Led *proxy, |
| 3824 | GCancellable *cancellable, |
| 3825 | GAsyncReadyCallback callback, |
| 3826 | gpointer user_data); |
| 3827 | |
| 3828 | gboolean led_call_set_blink_fast_finish ( |
| 3829 | Led *proxy, |
| 3830 | GAsyncResult *res, |
| 3831 | GError **error); |
| 3832 | |
| 3833 | gboolean led_call_set_blink_fast_sync ( |
| 3834 | Led *proxy, |
| 3835 | GCancellable *cancellable, |
| 3836 | GError **error); |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | /* D-Bus property accessors: */ |
| 3841 | gint led_get_color (Led *object); |
| 3842 | void led_set_color (Led *object, gint value); |
| 3843 | |
| 3844 | const gchar *led_get_function (Led *object); |
| 3845 | gchar *led_dup_function (Led *object); |
| 3846 | void led_set_function (Led *object, const gchar *value); |
| 3847 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3848 | const gchar *led_get_state (Led *object); |
| 3849 | gchar *led_dup_state (Led *object); |
| 3850 | void led_set_state (Led *object, const gchar *value); |
| 3851 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3852 | |
| 3853 | /* ---- */ |
| 3854 | |
| 3855 | #define TYPE_LED_PROXY (led_proxy_get_type ()) |
| 3856 | #define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy)) |
| 3857 | #define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass)) |
| 3858 | #define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass)) |
| 3859 | #define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY)) |
| 3860 | #define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY)) |
| 3861 | |
| 3862 | typedef struct _LedProxy LedProxy; |
| 3863 | typedef struct _LedProxyClass LedProxyClass; |
| 3864 | typedef struct _LedProxyPrivate LedProxyPrivate; |
| 3865 | |
| 3866 | struct _LedProxy |
| 3867 | { |
| 3868 | /*< private >*/ |
| 3869 | GDBusProxy parent_instance; |
| 3870 | LedProxyPrivate *priv; |
| 3871 | }; |
| 3872 | |
| 3873 | struct _LedProxyClass |
| 3874 | { |
| 3875 | GDBusProxyClass parent_class; |
| 3876 | }; |
| 3877 | |
| 3878 | GType led_proxy_get_type (void) G_GNUC_CONST; |
| 3879 | |
| 3880 | void led_proxy_new ( |
| 3881 | GDBusConnection *connection, |
| 3882 | GDBusProxyFlags flags, |
| 3883 | const gchar *name, |
| 3884 | const gchar *object_path, |
| 3885 | GCancellable *cancellable, |
| 3886 | GAsyncReadyCallback callback, |
| 3887 | gpointer user_data); |
| 3888 | Led *led_proxy_new_finish ( |
| 3889 | GAsyncResult *res, |
| 3890 | GError **error); |
| 3891 | Led *led_proxy_new_sync ( |
| 3892 | GDBusConnection *connection, |
| 3893 | GDBusProxyFlags flags, |
| 3894 | const gchar *name, |
| 3895 | const gchar *object_path, |
| 3896 | GCancellable *cancellable, |
| 3897 | GError **error); |
| 3898 | |
| 3899 | void led_proxy_new_for_bus ( |
| 3900 | GBusType bus_type, |
| 3901 | GDBusProxyFlags flags, |
| 3902 | const gchar *name, |
| 3903 | const gchar *object_path, |
| 3904 | GCancellable *cancellable, |
| 3905 | GAsyncReadyCallback callback, |
| 3906 | gpointer user_data); |
| 3907 | Led *led_proxy_new_for_bus_finish ( |
| 3908 | GAsyncResult *res, |
| 3909 | GError **error); |
| 3910 | Led *led_proxy_new_for_bus_sync ( |
| 3911 | GBusType bus_type, |
| 3912 | GDBusProxyFlags flags, |
| 3913 | const gchar *name, |
| 3914 | const gchar *object_path, |
| 3915 | GCancellable *cancellable, |
| 3916 | GError **error); |
| 3917 | |
| 3918 | |
| 3919 | /* ---- */ |
| 3920 | |
| 3921 | #define TYPE_LED_SKELETON (led_skeleton_get_type ()) |
| 3922 | #define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton)) |
| 3923 | #define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass)) |
| 3924 | #define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass)) |
| 3925 | #define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON)) |
| 3926 | #define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON)) |
| 3927 | |
| 3928 | typedef struct _LedSkeleton LedSkeleton; |
| 3929 | typedef struct _LedSkeletonClass LedSkeletonClass; |
| 3930 | typedef struct _LedSkeletonPrivate LedSkeletonPrivate; |
| 3931 | |
| 3932 | struct _LedSkeleton |
| 3933 | { |
| 3934 | /*< private >*/ |
| 3935 | GDBusInterfaceSkeleton parent_instance; |
| 3936 | LedSkeletonPrivate *priv; |
| 3937 | }; |
| 3938 | |
| 3939 | struct _LedSkeletonClass |
| 3940 | { |
| 3941 | GDBusInterfaceSkeletonClass parent_class; |
| 3942 | }; |
| 3943 | |
| 3944 | GType led_skeleton_get_type (void) G_GNUC_CONST; |
| 3945 | |
| 3946 | Led *led_skeleton_new (void); |
| 3947 | |
| 3948 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3949 | /* ------------------------------------------------------------------------ */ |
| 3950 | /* Declarations for org.openbmc.HostIpmi */ |
| 3951 | |
| 3952 | #define TYPE_HOST_IPMI (host_ipmi_get_type ()) |
| 3953 | #define HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI, HostIpmi)) |
| 3954 | #define IS_HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI)) |
| 3955 | #define HOST_IPMI_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOST_IPMI, HostIpmiIface)) |
| 3956 | |
| 3957 | struct _HostIpmi; |
| 3958 | typedef struct _HostIpmi HostIpmi; |
| 3959 | typedef struct _HostIpmiIface HostIpmiIface; |
| 3960 | |
| 3961 | struct _HostIpmiIface |
| 3962 | { |
| 3963 | GTypeInterface parent_iface; |
| 3964 | |
| 3965 | |
| 3966 | gboolean (*handle_send_message) ( |
| 3967 | HostIpmi *object, |
| 3968 | GDBusMethodInvocation *invocation, |
| 3969 | guchar arg_seq, |
| 3970 | guchar arg_netfn, |
| 3971 | guchar arg_cmd, |
| 3972 | const gchar *arg_data); |
| 3973 | |
| 3974 | void (*received_message) ( |
| 3975 | HostIpmi *object, |
| 3976 | guchar arg_seq, |
| 3977 | guchar arg_netfn, |
| 3978 | guchar arg_cmd, |
| 3979 | const gchar *arg_data); |
| 3980 | |
| 3981 | }; |
| 3982 | |
| 3983 | GType host_ipmi_get_type (void) G_GNUC_CONST; |
| 3984 | |
| 3985 | GDBusInterfaceInfo *host_ipmi_interface_info (void); |
| 3986 | guint host_ipmi_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3987 | |
| 3988 | |
| 3989 | /* D-Bus method call completion functions: */ |
| 3990 | void host_ipmi_complete_send_message ( |
| 3991 | HostIpmi *object, |
| 3992 | GDBusMethodInvocation *invocation, |
| 3993 | gint64 unnamed_arg4); |
| 3994 | |
| 3995 | |
| 3996 | |
| 3997 | /* D-Bus signal emissions functions: */ |
| 3998 | void host_ipmi_emit_received_message ( |
| 3999 | HostIpmi *object, |
| 4000 | guchar arg_seq, |
| 4001 | guchar arg_netfn, |
| 4002 | guchar arg_cmd, |
| 4003 | const gchar *arg_data); |
| 4004 | |
| 4005 | |
| 4006 | |
| 4007 | /* D-Bus method calls: */ |
| 4008 | void host_ipmi_call_send_message ( |
| 4009 | HostIpmi *proxy, |
| 4010 | guchar arg_seq, |
| 4011 | guchar arg_netfn, |
| 4012 | guchar arg_cmd, |
| 4013 | const gchar *arg_data, |
| 4014 | GCancellable *cancellable, |
| 4015 | GAsyncReadyCallback callback, |
| 4016 | gpointer user_data); |
| 4017 | |
| 4018 | gboolean host_ipmi_call_send_message_finish ( |
| 4019 | HostIpmi *proxy, |
| 4020 | gint64 *out_unnamed_arg4, |
| 4021 | GAsyncResult *res, |
| 4022 | GError **error); |
| 4023 | |
| 4024 | gboolean host_ipmi_call_send_message_sync ( |
| 4025 | HostIpmi *proxy, |
| 4026 | guchar arg_seq, |
| 4027 | guchar arg_netfn, |
| 4028 | guchar arg_cmd, |
| 4029 | const gchar *arg_data, |
| 4030 | gint64 *out_unnamed_arg4, |
| 4031 | GCancellable *cancellable, |
| 4032 | GError **error); |
| 4033 | |
| 4034 | |
| 4035 | |
| 4036 | /* ---- */ |
| 4037 | |
| 4038 | #define TYPE_HOST_IPMI_PROXY (host_ipmi_proxy_get_type ()) |
| 4039 | #define HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxy)) |
| 4040 | #define HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass)) |
| 4041 | #define HOST_IPMI_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass)) |
| 4042 | #define IS_HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_PROXY)) |
| 4043 | #define IS_HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_PROXY)) |
| 4044 | |
| 4045 | typedef struct _HostIpmiProxy HostIpmiProxy; |
| 4046 | typedef struct _HostIpmiProxyClass HostIpmiProxyClass; |
| 4047 | typedef struct _HostIpmiProxyPrivate HostIpmiProxyPrivate; |
| 4048 | |
| 4049 | struct _HostIpmiProxy |
| 4050 | { |
| 4051 | /*< private >*/ |
| 4052 | GDBusProxy parent_instance; |
| 4053 | HostIpmiProxyPrivate *priv; |
| 4054 | }; |
| 4055 | |
| 4056 | struct _HostIpmiProxyClass |
| 4057 | { |
| 4058 | GDBusProxyClass parent_class; |
| 4059 | }; |
| 4060 | |
| 4061 | GType host_ipmi_proxy_get_type (void) G_GNUC_CONST; |
| 4062 | |
| 4063 | void host_ipmi_proxy_new ( |
| 4064 | GDBusConnection *connection, |
| 4065 | GDBusProxyFlags flags, |
| 4066 | const gchar *name, |
| 4067 | const gchar *object_path, |
| 4068 | GCancellable *cancellable, |
| 4069 | GAsyncReadyCallback callback, |
| 4070 | gpointer user_data); |
| 4071 | HostIpmi *host_ipmi_proxy_new_finish ( |
| 4072 | GAsyncResult *res, |
| 4073 | GError **error); |
| 4074 | HostIpmi *host_ipmi_proxy_new_sync ( |
| 4075 | GDBusConnection *connection, |
| 4076 | GDBusProxyFlags flags, |
| 4077 | const gchar *name, |
| 4078 | const gchar *object_path, |
| 4079 | GCancellable *cancellable, |
| 4080 | GError **error); |
| 4081 | |
| 4082 | void host_ipmi_proxy_new_for_bus ( |
| 4083 | GBusType bus_type, |
| 4084 | GDBusProxyFlags flags, |
| 4085 | const gchar *name, |
| 4086 | const gchar *object_path, |
| 4087 | GCancellable *cancellable, |
| 4088 | GAsyncReadyCallback callback, |
| 4089 | gpointer user_data); |
| 4090 | HostIpmi *host_ipmi_proxy_new_for_bus_finish ( |
| 4091 | GAsyncResult *res, |
| 4092 | GError **error); |
| 4093 | HostIpmi *host_ipmi_proxy_new_for_bus_sync ( |
| 4094 | GBusType bus_type, |
| 4095 | GDBusProxyFlags flags, |
| 4096 | const gchar *name, |
| 4097 | const gchar *object_path, |
| 4098 | GCancellable *cancellable, |
| 4099 | GError **error); |
| 4100 | |
| 4101 | |
| 4102 | /* ---- */ |
| 4103 | |
| 4104 | #define TYPE_HOST_IPMI_SKELETON (host_ipmi_skeleton_get_type ()) |
| 4105 | #define HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeleton)) |
| 4106 | #define HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass)) |
| 4107 | #define HOST_IPMI_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass)) |
| 4108 | #define IS_HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_SKELETON)) |
| 4109 | #define IS_HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_SKELETON)) |
| 4110 | |
| 4111 | typedef struct _HostIpmiSkeleton HostIpmiSkeleton; |
| 4112 | typedef struct _HostIpmiSkeletonClass HostIpmiSkeletonClass; |
| 4113 | typedef struct _HostIpmiSkeletonPrivate HostIpmiSkeletonPrivate; |
| 4114 | |
| 4115 | struct _HostIpmiSkeleton |
| 4116 | { |
| 4117 | /*< private >*/ |
| 4118 | GDBusInterfaceSkeleton parent_instance; |
| 4119 | HostIpmiSkeletonPrivate *priv; |
| 4120 | }; |
| 4121 | |
| 4122 | struct _HostIpmiSkeletonClass |
| 4123 | { |
| 4124 | GDBusInterfaceSkeletonClass parent_class; |
| 4125 | }; |
| 4126 | |
| 4127 | GType host_ipmi_skeleton_get_type (void) G_GNUC_CONST; |
| 4128 | |
| 4129 | HostIpmi *host_ipmi_skeleton_new (void); |
| 4130 | |
| 4131 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4132 | /* ---- */ |
| 4133 | |
| 4134 | #define TYPE_OBJECT (object_get_type ()) |
| 4135 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 4136 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 4137 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 4138 | |
| 4139 | struct _Object; |
| 4140 | typedef struct _Object Object; |
| 4141 | typedef struct _ObjectIface ObjectIface; |
| 4142 | |
| 4143 | struct _ObjectIface |
| 4144 | { |
| 4145 | GTypeInterface parent_iface; |
| 4146 | }; |
| 4147 | |
| 4148 | GType object_get_type (void) G_GNUC_CONST; |
| 4149 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 4150 | ObjectMapper *object_get_object_mapper (Object *object); |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 4151 | Hwmon *object_get_hwmon (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4152 | Fan *object_get_fan (Object *object); |
| 4153 | SensorValue *object_get_sensor_value (Object *object); |
| 4154 | SensorThreshold *object_get_sensor_threshold (Object *object); |
| 4155 | SensorI2c *object_get_sensor_i2c (Object *object); |
| 4156 | SensorMatch *object_get_sensor_match (Object *object); |
| 4157 | Process *object_get_process (Object *object); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4158 | SharedResource *object_get_shared_resource (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4159 | Control *object_get_control (Object *object); |
| 4160 | ControlBmc *object_get_control_bmc (Object *object); |
| 4161 | ControlHost *object_get_control_host (Object *object); |
| 4162 | ControlPower *object_get_control_power (Object *object); |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 4163 | ControlCheckstop *object_get_control_checkstop (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4164 | Watchdog *object_get_watchdog (Object *object); |
| 4165 | EventLog *object_get_event_log (Object *object); |
| 4166 | Flash *object_get_flash (Object *object); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4167 | FlashControl *object_get_flash_control (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4168 | Button *object_get_button (Object *object); |
| 4169 | Led *object_get_led (Object *object); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 4170 | HostIpmi *object_get_host_ipmi (Object *object); |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 4171 | ObjectMapper *object_peek_object_mapper (Object *object); |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 4172 | Hwmon *object_peek_hwmon (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4173 | Fan *object_peek_fan (Object *object); |
| 4174 | SensorValue *object_peek_sensor_value (Object *object); |
| 4175 | SensorThreshold *object_peek_sensor_threshold (Object *object); |
| 4176 | SensorI2c *object_peek_sensor_i2c (Object *object); |
| 4177 | SensorMatch *object_peek_sensor_match (Object *object); |
| 4178 | Process *object_peek_process (Object *object); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4179 | SharedResource *object_peek_shared_resource (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4180 | Control *object_peek_control (Object *object); |
| 4181 | ControlBmc *object_peek_control_bmc (Object *object); |
| 4182 | ControlHost *object_peek_control_host (Object *object); |
| 4183 | ControlPower *object_peek_control_power (Object *object); |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 4184 | ControlCheckstop *object_peek_control_checkstop (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4185 | Watchdog *object_peek_watchdog (Object *object); |
| 4186 | EventLog *object_peek_event_log (Object *object); |
| 4187 | Flash *object_peek_flash (Object *object); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4188 | FlashControl *object_peek_flash_control (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4189 | Button *object_peek_button (Object *object); |
| 4190 | Led *object_peek_led (Object *object); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 4191 | HostIpmi *object_peek_host_ipmi (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4192 | |
| 4193 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 4194 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 4195 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 4196 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 4197 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 4198 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 4199 | |
| 4200 | typedef struct _ObjectProxy ObjectProxy; |
| 4201 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 4202 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 4203 | |
| 4204 | struct _ObjectProxy |
| 4205 | { |
| 4206 | /*< private >*/ |
| 4207 | GDBusObjectProxy parent_instance; |
| 4208 | ObjectProxyPrivate *priv; |
| 4209 | }; |
| 4210 | |
| 4211 | struct _ObjectProxyClass |
| 4212 | { |
| 4213 | GDBusObjectProxyClass parent_class; |
| 4214 | }; |
| 4215 | |
| 4216 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 4217 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 4218 | |
| 4219 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 4220 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 4221 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 4222 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 4223 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 4224 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 4225 | |
| 4226 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 4227 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 4228 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 4229 | |
| 4230 | struct _ObjectSkeleton |
| 4231 | { |
| 4232 | /*< private >*/ |
| 4233 | GDBusObjectSkeleton parent_instance; |
| 4234 | ObjectSkeletonPrivate *priv; |
| 4235 | }; |
| 4236 | |
| 4237 | struct _ObjectSkeletonClass |
| 4238 | { |
| 4239 | GDBusObjectSkeletonClass parent_class; |
| 4240 | }; |
| 4241 | |
| 4242 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 4243 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 4244 | void object_skeleton_set_object_mapper (ObjectSkeleton *object, ObjectMapper *interface_); |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 4245 | void object_skeleton_set_hwmon (ObjectSkeleton *object, Hwmon *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4246 | void object_skeleton_set_fan (ObjectSkeleton *object, Fan *interface_); |
| 4247 | void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4248 | void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_); |
| 4249 | void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_); |
| 4250 | void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_); |
| 4251 | void object_skeleton_set_process (ObjectSkeleton *object, Process *interface_); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4252 | void object_skeleton_set_shared_resource (ObjectSkeleton *object, SharedResource *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4253 | void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_); |
| 4254 | void object_skeleton_set_control_bmc (ObjectSkeleton *object, ControlBmc *interface_); |
| 4255 | void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_); |
| 4256 | void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_); |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 4257 | void object_skeleton_set_control_checkstop (ObjectSkeleton *object, ControlCheckstop *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4258 | void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_); |
| 4259 | void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_); |
| 4260 | void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4261 | void object_skeleton_set_flash_control (ObjectSkeleton *object, FlashControl *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4262 | void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_); |
| 4263 | void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 4264 | void object_skeleton_set_host_ipmi (ObjectSkeleton *object, HostIpmi *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4265 | |
| 4266 | /* ---- */ |
| 4267 | |
| 4268 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 4269 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 4270 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 4271 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 4272 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 4273 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 4274 | |
| 4275 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 4276 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 4277 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 4278 | |
| 4279 | struct _ObjectManagerClient |
| 4280 | { |
| 4281 | /*< private >*/ |
| 4282 | GDBusObjectManagerClient parent_instance; |
| 4283 | ObjectManagerClientPrivate *priv; |
| 4284 | }; |
| 4285 | |
| 4286 | struct _ObjectManagerClientClass |
| 4287 | { |
| 4288 | GDBusObjectManagerClientClass parent_class; |
| 4289 | }; |
| 4290 | |
| 4291 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 4292 | |
| 4293 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 4294 | |
| 4295 | void object_manager_client_new ( |
| 4296 | GDBusConnection *connection, |
| 4297 | GDBusObjectManagerClientFlags flags, |
| 4298 | const gchar *name, |
| 4299 | const gchar *object_path, |
| 4300 | GCancellable *cancellable, |
| 4301 | GAsyncReadyCallback callback, |
| 4302 | gpointer user_data); |
| 4303 | GDBusObjectManager *object_manager_client_new_finish ( |
| 4304 | GAsyncResult *res, |
| 4305 | GError **error); |
| 4306 | GDBusObjectManager *object_manager_client_new_sync ( |
| 4307 | GDBusConnection *connection, |
| 4308 | GDBusObjectManagerClientFlags flags, |
| 4309 | const gchar *name, |
| 4310 | const gchar *object_path, |
| 4311 | GCancellable *cancellable, |
| 4312 | GError **error); |
| 4313 | |
| 4314 | void object_manager_client_new_for_bus ( |
| 4315 | GBusType bus_type, |
| 4316 | GDBusObjectManagerClientFlags flags, |
| 4317 | const gchar *name, |
| 4318 | const gchar *object_path, |
| 4319 | GCancellable *cancellable, |
| 4320 | GAsyncReadyCallback callback, |
| 4321 | gpointer user_data); |
| 4322 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 4323 | GAsyncResult *res, |
| 4324 | GError **error); |
| 4325 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 4326 | GBusType bus_type, |
| 4327 | GDBusObjectManagerClientFlags flags, |
| 4328 | const gchar *name, |
| 4329 | const gchar *object_path, |
| 4330 | GCancellable *cancellable, |
| 4331 | GError **error); |
| 4332 | |
| 4333 | |
| 4334 | G_END_DECLS |
| 4335 | |
| 4336 | #endif /* __INTERFACES_OPENBMC_INTF_H__ */ |