Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Generated by gdbus-codegen 2.40.2. DO NOT EDIT. |
| 3 | * |
| 4 | * The license of this code is the same as for the source it was derived from. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __INTERFACES_FRU_H__ |
| 8 | #define __INTERFACES_FRU_H__ |
| 9 | |
| 10 | #include <gio/gio.h> |
| 11 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
| 14 | |
| 15 | /* ------------------------------------------------------------------------ */ |
| 16 | /* Declarations for org.openbmc.Fru */ |
| 17 | |
| 18 | #define TYPE_FRU (fru_get_type ()) |
| 19 | #define FRU(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU, Fru)) |
| 20 | #define IS_FRU(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU)) |
| 21 | #define FRU_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FRU, FruIface)) |
| 22 | |
| 23 | struct _Fru; |
| 24 | typedef struct _Fru Fru; |
| 25 | typedef struct _FruIface FruIface; |
| 26 | |
| 27 | struct _FruIface |
| 28 | { |
| 29 | GTypeInterface parent_iface; |
| 30 | |
| 31 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 32 | |
| 33 | gboolean (*handle_init) ( |
| 34 | Fru *object, |
| 35 | GDBusMethodInvocation *invocation); |
| 36 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 37 | guint (*get_date_code) (Fru *object); |
| 38 | |
| 39 | guchar (*get_instance_num) (Fru *object); |
| 40 | |
| 41 | const gchar * (*get_label) (Fru *object); |
| 42 | |
| 43 | const gchar * (*get_location) (Fru *object); |
| 44 | |
| 45 | const gchar * (*get_manufacturer) (Fru *object); |
| 46 | |
| 47 | const gchar * (*get_part_num) (Fru *object); |
| 48 | |
| 49 | const gchar * (*get_serial_num) (Fru *object); |
| 50 | |
| 51 | guchar (*get_state) (Fru *object); |
| 52 | |
| 53 | guchar (*get_subtype) (Fru *object); |
| 54 | |
| 55 | guchar (*get_type_) (Fru *object); |
| 56 | |
| 57 | const gchar * (*get_version) (Fru *object); |
| 58 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 59 | void (*cache_me) ( |
| 60 | Fru *object, |
| 61 | const gchar *arg_busname); |
| 62 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 63 | void (*recoverable_error) ( |
| 64 | Fru *object); |
| 65 | |
| 66 | void (*state_changed) ( |
| 67 | Fru *object); |
| 68 | |
| 69 | void (*unrecoverable_error) ( |
| 70 | Fru *object); |
| 71 | |
| 72 | }; |
| 73 | |
| 74 | GType fru_get_type (void) G_GNUC_CONST; |
| 75 | |
| 76 | GDBusInterfaceInfo *fru_interface_info (void); |
| 77 | guint fru_override_properties (GObjectClass *klass, guint property_id_begin); |
| 78 | |
| 79 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 80 | /* D-Bus method call completion functions: */ |
| 81 | void fru_complete_init ( |
| 82 | Fru *object, |
| 83 | GDBusMethodInvocation *invocation); |
| 84 | |
| 85 | |
| 86 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 87 | /* D-Bus signal emissions functions: */ |
| 88 | void fru_emit_state_changed ( |
| 89 | Fru *object); |
| 90 | |
| 91 | void fru_emit_unrecoverable_error ( |
| 92 | Fru *object); |
| 93 | |
| 94 | void fru_emit_recoverable_error ( |
| 95 | Fru *object); |
| 96 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 97 | void fru_emit_cache_me ( |
| 98 | Fru *object, |
| 99 | const gchar *arg_busname); |
| 100 | |
| 101 | |
| 102 | |
| 103 | /* D-Bus method calls: */ |
| 104 | void fru_call_init ( |
| 105 | Fru *proxy, |
| 106 | GCancellable *cancellable, |
| 107 | GAsyncReadyCallback callback, |
| 108 | gpointer user_data); |
| 109 | |
| 110 | gboolean fru_call_init_finish ( |
| 111 | Fru *proxy, |
| 112 | GAsyncResult *res, |
| 113 | GError **error); |
| 114 | |
| 115 | gboolean fru_call_init_sync ( |
| 116 | Fru *proxy, |
| 117 | GCancellable *cancellable, |
| 118 | GError **error); |
| 119 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 120 | |
| 121 | |
| 122 | /* D-Bus property accessors: */ |
| 123 | const gchar *fru_get_label (Fru *object); |
| 124 | gchar *fru_dup_label (Fru *object); |
| 125 | void fru_set_label (Fru *object, const gchar *value); |
| 126 | |
| 127 | const gchar *fru_get_location (Fru *object); |
| 128 | gchar *fru_dup_location (Fru *object); |
| 129 | void fru_set_location (Fru *object, const gchar *value); |
| 130 | |
| 131 | guchar fru_get_state (Fru *object); |
| 132 | void fru_set_state (Fru *object, guchar value); |
| 133 | |
| 134 | const gchar *fru_get_manufacturer (Fru *object); |
| 135 | gchar *fru_dup_manufacturer (Fru *object); |
| 136 | void fru_set_manufacturer (Fru *object, const gchar *value); |
| 137 | |
| 138 | const gchar *fru_get_part_num (Fru *object); |
| 139 | gchar *fru_dup_part_num (Fru *object); |
| 140 | void fru_set_part_num (Fru *object, const gchar *value); |
| 141 | |
| 142 | const gchar *fru_get_serial_num (Fru *object); |
| 143 | gchar *fru_dup_serial_num (Fru *object); |
| 144 | void fru_set_serial_num (Fru *object, const gchar *value); |
| 145 | |
| 146 | guint fru_get_date_code (Fru *object); |
| 147 | void fru_set_date_code (Fru *object, guint value); |
| 148 | |
| 149 | const gchar *fru_get_version (Fru *object); |
| 150 | gchar *fru_dup_version (Fru *object); |
| 151 | void fru_set_version (Fru *object, const gchar *value); |
| 152 | |
| 153 | guchar fru_get_type_ (Fru *object); |
| 154 | void fru_set_type_ (Fru *object, guchar value); |
| 155 | |
| 156 | guchar fru_get_subtype (Fru *object); |
| 157 | void fru_set_subtype (Fru *object, guchar value); |
| 158 | |
| 159 | guchar fru_get_instance_num (Fru *object); |
| 160 | void fru_set_instance_num (Fru *object, guchar value); |
| 161 | |
| 162 | |
| 163 | /* ---- */ |
| 164 | |
| 165 | #define TYPE_FRU_PROXY (fru_proxy_get_type ()) |
| 166 | #define FRU_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_PROXY, FruProxy)) |
| 167 | #define FRU_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_PROXY, FruProxyClass)) |
| 168 | #define FRU_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_PROXY, FruProxyClass)) |
| 169 | #define IS_FRU_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_PROXY)) |
| 170 | #define IS_FRU_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_PROXY)) |
| 171 | |
| 172 | typedef struct _FruProxy FruProxy; |
| 173 | typedef struct _FruProxyClass FruProxyClass; |
| 174 | typedef struct _FruProxyPrivate FruProxyPrivate; |
| 175 | |
| 176 | struct _FruProxy |
| 177 | { |
| 178 | /*< private >*/ |
| 179 | GDBusProxy parent_instance; |
| 180 | FruProxyPrivate *priv; |
| 181 | }; |
| 182 | |
| 183 | struct _FruProxyClass |
| 184 | { |
| 185 | GDBusProxyClass parent_class; |
| 186 | }; |
| 187 | |
| 188 | GType fru_proxy_get_type (void) G_GNUC_CONST; |
| 189 | |
| 190 | void fru_proxy_new ( |
| 191 | GDBusConnection *connection, |
| 192 | GDBusProxyFlags flags, |
| 193 | const gchar *name, |
| 194 | const gchar *object_path, |
| 195 | GCancellable *cancellable, |
| 196 | GAsyncReadyCallback callback, |
| 197 | gpointer user_data); |
| 198 | Fru *fru_proxy_new_finish ( |
| 199 | GAsyncResult *res, |
| 200 | GError **error); |
| 201 | Fru *fru_proxy_new_sync ( |
| 202 | GDBusConnection *connection, |
| 203 | GDBusProxyFlags flags, |
| 204 | const gchar *name, |
| 205 | const gchar *object_path, |
| 206 | GCancellable *cancellable, |
| 207 | GError **error); |
| 208 | |
| 209 | void fru_proxy_new_for_bus ( |
| 210 | GBusType bus_type, |
| 211 | GDBusProxyFlags flags, |
| 212 | const gchar *name, |
| 213 | const gchar *object_path, |
| 214 | GCancellable *cancellable, |
| 215 | GAsyncReadyCallback callback, |
| 216 | gpointer user_data); |
| 217 | Fru *fru_proxy_new_for_bus_finish ( |
| 218 | GAsyncResult *res, |
| 219 | GError **error); |
| 220 | Fru *fru_proxy_new_for_bus_sync ( |
| 221 | GBusType bus_type, |
| 222 | GDBusProxyFlags flags, |
| 223 | const gchar *name, |
| 224 | const gchar *object_path, |
| 225 | GCancellable *cancellable, |
| 226 | GError **error); |
| 227 | |
| 228 | |
| 229 | /* ---- */ |
| 230 | |
| 231 | #define TYPE_FRU_SKELETON (fru_skeleton_get_type ()) |
| 232 | #define FRU_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_SKELETON, FruSkeleton)) |
| 233 | #define FRU_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_SKELETON, FruSkeletonClass)) |
| 234 | #define FRU_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_SKELETON, FruSkeletonClass)) |
| 235 | #define IS_FRU_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_SKELETON)) |
| 236 | #define IS_FRU_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_SKELETON)) |
| 237 | |
| 238 | typedef struct _FruSkeleton FruSkeleton; |
| 239 | typedef struct _FruSkeletonClass FruSkeletonClass; |
| 240 | typedef struct _FruSkeletonPrivate FruSkeletonPrivate; |
| 241 | |
| 242 | struct _FruSkeleton |
| 243 | { |
| 244 | /*< private >*/ |
| 245 | GDBusInterfaceSkeleton parent_instance; |
| 246 | FruSkeletonPrivate *priv; |
| 247 | }; |
| 248 | |
| 249 | struct _FruSkeletonClass |
| 250 | { |
| 251 | GDBusInterfaceSkeletonClass parent_class; |
| 252 | }; |
| 253 | |
| 254 | GType fru_skeleton_get_type (void) G_GNUC_CONST; |
| 255 | |
| 256 | Fru *fru_skeleton_new (void); |
| 257 | |
| 258 | |
| 259 | /* ------------------------------------------------------------------------ */ |
| 260 | /* Declarations for org.openbmc.Fru.Fan */ |
| 261 | |
| 262 | #define TYPE_FRU_FAN (fru_fan_get_type ()) |
| 263 | #define FRU_FAN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_FAN, FruFan)) |
| 264 | #define IS_FRU_FAN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_FAN)) |
| 265 | #define FRU_FAN_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FRU_FAN, FruFanIface)) |
| 266 | |
| 267 | struct _FruFan; |
| 268 | typedef struct _FruFan FruFan; |
| 269 | typedef struct _FruFanIface FruFanIface; |
| 270 | |
| 271 | struct _FruFanIface |
| 272 | { |
| 273 | GTypeInterface parent_iface; |
| 274 | |
| 275 | |
| 276 | |
| 277 | gboolean (*handle_get_speed) ( |
| 278 | FruFan *object, |
| 279 | GDBusMethodInvocation *invocation); |
| 280 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 281 | gboolean (*handle_set_cooling_zone) ( |
| 282 | FruFan *object, |
| 283 | GDBusMethodInvocation *invocation, |
| 284 | gint arg_cooling_zone); |
| 285 | |
| 286 | gboolean (*handle_set_speed) ( |
| 287 | FruFan *object, |
| 288 | GDBusMethodInvocation *invocation, |
| 289 | gint arg_speed); |
| 290 | |
| 291 | gint (*get_cooling_zone) (FruFan *object); |
| 292 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 293 | gint (*get_pwm_num) (FruFan *object); |
| 294 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 295 | gint (*get_speed) (FruFan *object); |
| 296 | |
| 297 | void (*speed_changed) ( |
| 298 | FruFan *object, |
| 299 | gint arg_speed); |
| 300 | |
| 301 | void (*tach_error) ( |
| 302 | FruFan *object); |
| 303 | |
| 304 | }; |
| 305 | |
| 306 | GType fru_fan_get_type (void) G_GNUC_CONST; |
| 307 | |
| 308 | GDBusInterfaceInfo *fru_fan_interface_info (void); |
| 309 | guint fru_fan_override_properties (GObjectClass *klass, guint property_id_begin); |
| 310 | |
| 311 | |
| 312 | /* D-Bus method call completion functions: */ |
| 313 | void fru_fan_complete_set_cooling_zone ( |
| 314 | FruFan *object, |
| 315 | GDBusMethodInvocation *invocation); |
| 316 | |
| 317 | void fru_fan_complete_get_speed ( |
| 318 | FruFan *object, |
| 319 | GDBusMethodInvocation *invocation, |
| 320 | gint speed); |
| 321 | |
| 322 | void fru_fan_complete_set_speed ( |
| 323 | FruFan *object, |
| 324 | GDBusMethodInvocation *invocation); |
| 325 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 326 | |
| 327 | |
| 328 | /* D-Bus signal emissions functions: */ |
| 329 | void fru_fan_emit_speed_changed ( |
| 330 | FruFan *object, |
| 331 | gint arg_speed); |
| 332 | |
| 333 | void fru_fan_emit_tach_error ( |
| 334 | FruFan *object); |
| 335 | |
| 336 | |
| 337 | |
| 338 | /* D-Bus method calls: */ |
| 339 | void fru_fan_call_set_cooling_zone ( |
| 340 | FruFan *proxy, |
| 341 | gint arg_cooling_zone, |
| 342 | GCancellable *cancellable, |
| 343 | GAsyncReadyCallback callback, |
| 344 | gpointer user_data); |
| 345 | |
| 346 | gboolean fru_fan_call_set_cooling_zone_finish ( |
| 347 | FruFan *proxy, |
| 348 | GAsyncResult *res, |
| 349 | GError **error); |
| 350 | |
| 351 | gboolean fru_fan_call_set_cooling_zone_sync ( |
| 352 | FruFan *proxy, |
| 353 | gint arg_cooling_zone, |
| 354 | GCancellable *cancellable, |
| 355 | GError **error); |
| 356 | |
| 357 | void fru_fan_call_get_speed ( |
| 358 | FruFan *proxy, |
| 359 | GCancellable *cancellable, |
| 360 | GAsyncReadyCallback callback, |
| 361 | gpointer user_data); |
| 362 | |
| 363 | gboolean fru_fan_call_get_speed_finish ( |
| 364 | FruFan *proxy, |
| 365 | gint *out_speed, |
| 366 | GAsyncResult *res, |
| 367 | GError **error); |
| 368 | |
| 369 | gboolean fru_fan_call_get_speed_sync ( |
| 370 | FruFan *proxy, |
| 371 | gint *out_speed, |
| 372 | GCancellable *cancellable, |
| 373 | GError **error); |
| 374 | |
| 375 | void fru_fan_call_set_speed ( |
| 376 | FruFan *proxy, |
| 377 | gint arg_speed, |
| 378 | GCancellable *cancellable, |
| 379 | GAsyncReadyCallback callback, |
| 380 | gpointer user_data); |
| 381 | |
| 382 | gboolean fru_fan_call_set_speed_finish ( |
| 383 | FruFan *proxy, |
| 384 | GAsyncResult *res, |
| 385 | GError **error); |
| 386 | |
| 387 | gboolean fru_fan_call_set_speed_sync ( |
| 388 | FruFan *proxy, |
| 389 | gint arg_speed, |
| 390 | GCancellable *cancellable, |
| 391 | GError **error); |
| 392 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 393 | |
| 394 | |
| 395 | /* D-Bus property accessors: */ |
| 396 | gint fru_fan_get_speed (FruFan *object); |
| 397 | void fru_fan_set_speed (FruFan *object, gint value); |
| 398 | |
| 399 | gint fru_fan_get_cooling_zone (FruFan *object); |
| 400 | void fru_fan_set_cooling_zone (FruFan *object, gint value); |
| 401 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 402 | gint fru_fan_get_pwm_num (FruFan *object); |
| 403 | void fru_fan_set_pwm_num (FruFan *object, gint value); |
| 404 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 405 | |
| 406 | /* ---- */ |
| 407 | |
| 408 | #define TYPE_FRU_FAN_PROXY (fru_fan_proxy_get_type ()) |
| 409 | #define FRU_FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_FAN_PROXY, FruFanProxy)) |
| 410 | #define FRU_FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_FAN_PROXY, FruFanProxyClass)) |
| 411 | #define FRU_FAN_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_FAN_PROXY, FruFanProxyClass)) |
| 412 | #define IS_FRU_FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_FAN_PROXY)) |
| 413 | #define IS_FRU_FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_FAN_PROXY)) |
| 414 | |
| 415 | typedef struct _FruFanProxy FruFanProxy; |
| 416 | typedef struct _FruFanProxyClass FruFanProxyClass; |
| 417 | typedef struct _FruFanProxyPrivate FruFanProxyPrivate; |
| 418 | |
| 419 | struct _FruFanProxy |
| 420 | { |
| 421 | /*< private >*/ |
| 422 | GDBusProxy parent_instance; |
| 423 | FruFanProxyPrivate *priv; |
| 424 | }; |
| 425 | |
| 426 | struct _FruFanProxyClass |
| 427 | { |
| 428 | GDBusProxyClass parent_class; |
| 429 | }; |
| 430 | |
| 431 | GType fru_fan_proxy_get_type (void) G_GNUC_CONST; |
| 432 | |
| 433 | void fru_fan_proxy_new ( |
| 434 | GDBusConnection *connection, |
| 435 | GDBusProxyFlags flags, |
| 436 | const gchar *name, |
| 437 | const gchar *object_path, |
| 438 | GCancellable *cancellable, |
| 439 | GAsyncReadyCallback callback, |
| 440 | gpointer user_data); |
| 441 | FruFan *fru_fan_proxy_new_finish ( |
| 442 | GAsyncResult *res, |
| 443 | GError **error); |
| 444 | FruFan *fru_fan_proxy_new_sync ( |
| 445 | GDBusConnection *connection, |
| 446 | GDBusProxyFlags flags, |
| 447 | const gchar *name, |
| 448 | const gchar *object_path, |
| 449 | GCancellable *cancellable, |
| 450 | GError **error); |
| 451 | |
| 452 | void fru_fan_proxy_new_for_bus ( |
| 453 | GBusType bus_type, |
| 454 | GDBusProxyFlags flags, |
| 455 | const gchar *name, |
| 456 | const gchar *object_path, |
| 457 | GCancellable *cancellable, |
| 458 | GAsyncReadyCallback callback, |
| 459 | gpointer user_data); |
| 460 | FruFan *fru_fan_proxy_new_for_bus_finish ( |
| 461 | GAsyncResult *res, |
| 462 | GError **error); |
| 463 | FruFan *fru_fan_proxy_new_for_bus_sync ( |
| 464 | GBusType bus_type, |
| 465 | GDBusProxyFlags flags, |
| 466 | const gchar *name, |
| 467 | const gchar *object_path, |
| 468 | GCancellable *cancellable, |
| 469 | GError **error); |
| 470 | |
| 471 | |
| 472 | /* ---- */ |
| 473 | |
| 474 | #define TYPE_FRU_FAN_SKELETON (fru_fan_skeleton_get_type ()) |
| 475 | #define FRU_FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_FAN_SKELETON, FruFanSkeleton)) |
| 476 | #define FRU_FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_FAN_SKELETON, FruFanSkeletonClass)) |
| 477 | #define FRU_FAN_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_FAN_SKELETON, FruFanSkeletonClass)) |
| 478 | #define IS_FRU_FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_FAN_SKELETON)) |
| 479 | #define IS_FRU_FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_FAN_SKELETON)) |
| 480 | |
| 481 | typedef struct _FruFanSkeleton FruFanSkeleton; |
| 482 | typedef struct _FruFanSkeletonClass FruFanSkeletonClass; |
| 483 | typedef struct _FruFanSkeletonPrivate FruFanSkeletonPrivate; |
| 484 | |
| 485 | struct _FruFanSkeleton |
| 486 | { |
| 487 | /*< private >*/ |
| 488 | GDBusInterfaceSkeleton parent_instance; |
| 489 | FruFanSkeletonPrivate *priv; |
| 490 | }; |
| 491 | |
| 492 | struct _FruFanSkeletonClass |
| 493 | { |
| 494 | GDBusInterfaceSkeletonClass parent_class; |
| 495 | }; |
| 496 | |
| 497 | GType fru_fan_skeleton_get_type (void) G_GNUC_CONST; |
| 498 | |
| 499 | FruFan *fru_fan_skeleton_new (void); |
| 500 | |
| 501 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 502 | /* ------------------------------------------------------------------------ */ |
| 503 | /* Declarations for org.openbmc.Fru.Eeprom */ |
| 504 | |
| 505 | #define TYPE_FRU_EEPROM (fru_eeprom_get_type ()) |
| 506 | #define FRU_EEPROM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_EEPROM, FruEeprom)) |
| 507 | #define IS_FRU_EEPROM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_EEPROM)) |
| 508 | #define FRU_EEPROM_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FRU_EEPROM, FruEepromIface)) |
| 509 | |
| 510 | struct _FruEeprom; |
| 511 | typedef struct _FruEeprom FruEeprom; |
| 512 | typedef struct _FruEepromIface FruEepromIface; |
| 513 | |
| 514 | struct _FruEepromIface |
| 515 | { |
| 516 | GTypeInterface parent_iface; |
| 517 | |
| 518 | |
| 519 | const gchar * (*get_i2c_address) (FruEeprom *object); |
| 520 | |
| 521 | const gchar * (*get_i2c_dev_path) (FruEeprom *object); |
| 522 | |
| 523 | void (*read_done) ( |
| 524 | FruEeprom *object); |
| 525 | |
| 526 | }; |
| 527 | |
| 528 | GType fru_eeprom_get_type (void) G_GNUC_CONST; |
| 529 | |
| 530 | GDBusInterfaceInfo *fru_eeprom_interface_info (void); |
| 531 | guint fru_eeprom_override_properties (GObjectClass *klass, guint property_id_begin); |
| 532 | |
| 533 | |
| 534 | /* D-Bus signal emissions functions: */ |
| 535 | void fru_eeprom_emit_read_done ( |
| 536 | FruEeprom *object); |
| 537 | |
| 538 | |
| 539 | |
| 540 | /* D-Bus property accessors: */ |
| 541 | const gchar *fru_eeprom_get_i2c_dev_path (FruEeprom *object); |
| 542 | gchar *fru_eeprom_dup_i2c_dev_path (FruEeprom *object); |
| 543 | void fru_eeprom_set_i2c_dev_path (FruEeprom *object, const gchar *value); |
| 544 | |
| 545 | const gchar *fru_eeprom_get_i2c_address (FruEeprom *object); |
| 546 | gchar *fru_eeprom_dup_i2c_address (FruEeprom *object); |
| 547 | void fru_eeprom_set_i2c_address (FruEeprom *object, const gchar *value); |
| 548 | |
| 549 | |
| 550 | /* ---- */ |
| 551 | |
| 552 | #define TYPE_FRU_EEPROM_PROXY (fru_eeprom_proxy_get_type ()) |
| 553 | #define FRU_EEPROM_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_EEPROM_PROXY, FruEepromProxy)) |
| 554 | #define FRU_EEPROM_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_EEPROM_PROXY, FruEepromProxyClass)) |
| 555 | #define FRU_EEPROM_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_EEPROM_PROXY, FruEepromProxyClass)) |
| 556 | #define IS_FRU_EEPROM_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_EEPROM_PROXY)) |
| 557 | #define IS_FRU_EEPROM_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_EEPROM_PROXY)) |
| 558 | |
| 559 | typedef struct _FruEepromProxy FruEepromProxy; |
| 560 | typedef struct _FruEepromProxyClass FruEepromProxyClass; |
| 561 | typedef struct _FruEepromProxyPrivate FruEepromProxyPrivate; |
| 562 | |
| 563 | struct _FruEepromProxy |
| 564 | { |
| 565 | /*< private >*/ |
| 566 | GDBusProxy parent_instance; |
| 567 | FruEepromProxyPrivate *priv; |
| 568 | }; |
| 569 | |
| 570 | struct _FruEepromProxyClass |
| 571 | { |
| 572 | GDBusProxyClass parent_class; |
| 573 | }; |
| 574 | |
| 575 | GType fru_eeprom_proxy_get_type (void) G_GNUC_CONST; |
| 576 | |
| 577 | void fru_eeprom_proxy_new ( |
| 578 | GDBusConnection *connection, |
| 579 | GDBusProxyFlags flags, |
| 580 | const gchar *name, |
| 581 | const gchar *object_path, |
| 582 | GCancellable *cancellable, |
| 583 | GAsyncReadyCallback callback, |
| 584 | gpointer user_data); |
| 585 | FruEeprom *fru_eeprom_proxy_new_finish ( |
| 586 | GAsyncResult *res, |
| 587 | GError **error); |
| 588 | FruEeprom *fru_eeprom_proxy_new_sync ( |
| 589 | GDBusConnection *connection, |
| 590 | GDBusProxyFlags flags, |
| 591 | const gchar *name, |
| 592 | const gchar *object_path, |
| 593 | GCancellable *cancellable, |
| 594 | GError **error); |
| 595 | |
| 596 | void fru_eeprom_proxy_new_for_bus ( |
| 597 | GBusType bus_type, |
| 598 | GDBusProxyFlags flags, |
| 599 | const gchar *name, |
| 600 | const gchar *object_path, |
| 601 | GCancellable *cancellable, |
| 602 | GAsyncReadyCallback callback, |
| 603 | gpointer user_data); |
| 604 | FruEeprom *fru_eeprom_proxy_new_for_bus_finish ( |
| 605 | GAsyncResult *res, |
| 606 | GError **error); |
| 607 | FruEeprom *fru_eeprom_proxy_new_for_bus_sync ( |
| 608 | GBusType bus_type, |
| 609 | GDBusProxyFlags flags, |
| 610 | const gchar *name, |
| 611 | const gchar *object_path, |
| 612 | GCancellable *cancellable, |
| 613 | GError **error); |
| 614 | |
| 615 | |
| 616 | /* ---- */ |
| 617 | |
| 618 | #define TYPE_FRU_EEPROM_SKELETON (fru_eeprom_skeleton_get_type ()) |
| 619 | #define FRU_EEPROM_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_EEPROM_SKELETON, FruEepromSkeleton)) |
| 620 | #define FRU_EEPROM_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_EEPROM_SKELETON, FruEepromSkeletonClass)) |
| 621 | #define FRU_EEPROM_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_EEPROM_SKELETON, FruEepromSkeletonClass)) |
| 622 | #define IS_FRU_EEPROM_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_EEPROM_SKELETON)) |
| 623 | #define IS_FRU_EEPROM_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_EEPROM_SKELETON)) |
| 624 | |
| 625 | typedef struct _FruEepromSkeleton FruEepromSkeleton; |
| 626 | typedef struct _FruEepromSkeletonClass FruEepromSkeletonClass; |
| 627 | typedef struct _FruEepromSkeletonPrivate FruEepromSkeletonPrivate; |
| 628 | |
| 629 | struct _FruEepromSkeleton |
| 630 | { |
| 631 | /*< private >*/ |
| 632 | GDBusInterfaceSkeleton parent_instance; |
| 633 | FruEepromSkeletonPrivate *priv; |
| 634 | }; |
| 635 | |
| 636 | struct _FruEepromSkeletonClass |
| 637 | { |
| 638 | GDBusInterfaceSkeletonClass parent_class; |
| 639 | }; |
| 640 | |
| 641 | GType fru_eeprom_skeleton_get_type (void) G_GNUC_CONST; |
| 642 | |
| 643 | FruEeprom *fru_eeprom_skeleton_new (void); |
| 644 | |
| 645 | |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 646 | /* ---- */ |
| 647 | |
| 648 | #define TYPE_OBJECT (object_get_type ()) |
| 649 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 650 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 651 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 652 | |
| 653 | struct _Object; |
| 654 | typedef struct _Object Object; |
| 655 | typedef struct _ObjectIface ObjectIface; |
| 656 | |
| 657 | struct _ObjectIface |
| 658 | { |
| 659 | GTypeInterface parent_iface; |
| 660 | }; |
| 661 | |
| 662 | GType object_get_type (void) G_GNUC_CONST; |
| 663 | |
| 664 | Fru *object_get_fru (Object *object); |
| 665 | FruFan *object_get_fru_fan (Object *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 666 | FruEeprom *object_get_fru_eeprom (Object *object); |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 667 | Fru *object_peek_fru (Object *object); |
| 668 | FruFan *object_peek_fru_fan (Object *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 669 | FruEeprom *object_peek_fru_eeprom (Object *object); |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 670 | |
| 671 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 672 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 673 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 674 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 675 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 676 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 677 | |
| 678 | typedef struct _ObjectProxy ObjectProxy; |
| 679 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 680 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 681 | |
| 682 | struct _ObjectProxy |
| 683 | { |
| 684 | /*< private >*/ |
| 685 | GDBusObjectProxy parent_instance; |
| 686 | ObjectProxyPrivate *priv; |
| 687 | }; |
| 688 | |
| 689 | struct _ObjectProxyClass |
| 690 | { |
| 691 | GDBusObjectProxyClass parent_class; |
| 692 | }; |
| 693 | |
| 694 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 695 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 696 | |
| 697 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 698 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 699 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 700 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 701 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 702 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 703 | |
| 704 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 705 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 706 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 707 | |
| 708 | struct _ObjectSkeleton |
| 709 | { |
| 710 | /*< private >*/ |
| 711 | GDBusObjectSkeleton parent_instance; |
| 712 | ObjectSkeletonPrivate *priv; |
| 713 | }; |
| 714 | |
| 715 | struct _ObjectSkeletonClass |
| 716 | { |
| 717 | GDBusObjectSkeletonClass parent_class; |
| 718 | }; |
| 719 | |
| 720 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 721 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 722 | void object_skeleton_set_fru (ObjectSkeleton *object, Fru *interface_); |
| 723 | void object_skeleton_set_fru_fan (ObjectSkeleton *object, FruFan *interface_); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 724 | void object_skeleton_set_fru_eeprom (ObjectSkeleton *object, FruEeprom *interface_); |
Norman James | ce46e3e | 2015-08-30 22:25:55 -0500 | [diff] [blame] | 725 | |
| 726 | /* ---- */ |
| 727 | |
| 728 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 729 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 730 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 731 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 732 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 733 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 734 | |
| 735 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 736 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 737 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 738 | |
| 739 | struct _ObjectManagerClient |
| 740 | { |
| 741 | /*< private >*/ |
| 742 | GDBusObjectManagerClient parent_instance; |
| 743 | ObjectManagerClientPrivate *priv; |
| 744 | }; |
| 745 | |
| 746 | struct _ObjectManagerClientClass |
| 747 | { |
| 748 | GDBusObjectManagerClientClass parent_class; |
| 749 | }; |
| 750 | |
| 751 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 752 | |
| 753 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 754 | |
| 755 | void object_manager_client_new ( |
| 756 | GDBusConnection *connection, |
| 757 | GDBusObjectManagerClientFlags flags, |
| 758 | const gchar *name, |
| 759 | const gchar *object_path, |
| 760 | GCancellable *cancellable, |
| 761 | GAsyncReadyCallback callback, |
| 762 | gpointer user_data); |
| 763 | GDBusObjectManager *object_manager_client_new_finish ( |
| 764 | GAsyncResult *res, |
| 765 | GError **error); |
| 766 | GDBusObjectManager *object_manager_client_new_sync ( |
| 767 | GDBusConnection *connection, |
| 768 | GDBusObjectManagerClientFlags flags, |
| 769 | const gchar *name, |
| 770 | const gchar *object_path, |
| 771 | GCancellable *cancellable, |
| 772 | GError **error); |
| 773 | |
| 774 | void object_manager_client_new_for_bus ( |
| 775 | GBusType bus_type, |
| 776 | GDBusObjectManagerClientFlags flags, |
| 777 | const gchar *name, |
| 778 | const gchar *object_path, |
| 779 | GCancellable *cancellable, |
| 780 | GAsyncReadyCallback callback, |
| 781 | gpointer user_data); |
| 782 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 783 | GAsyncResult *res, |
| 784 | GError **error); |
| 785 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 786 | GBusType bus_type, |
| 787 | GDBusObjectManagerClientFlags flags, |
| 788 | const gchar *name, |
| 789 | const gchar *object_path, |
| 790 | GCancellable *cancellable, |
| 791 | GError **error); |
| 792 | |
| 793 | |
| 794 | G_END_DECLS |
| 795 | |
| 796 | #endif /* __INTERFACES_FRU_H__ */ |