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 | |
| 32 | guint (*get_date_code) (Fru *object); |
| 33 | |
| 34 | guchar (*get_instance_num) (Fru *object); |
| 35 | |
| 36 | const gchar * (*get_label) (Fru *object); |
| 37 | |
| 38 | const gchar * (*get_location) (Fru *object); |
| 39 | |
| 40 | const gchar * (*get_manufacturer) (Fru *object); |
| 41 | |
| 42 | const gchar * (*get_part_num) (Fru *object); |
| 43 | |
| 44 | const gchar * (*get_serial_num) (Fru *object); |
| 45 | |
| 46 | guchar (*get_state) (Fru *object); |
| 47 | |
| 48 | guchar (*get_subtype) (Fru *object); |
| 49 | |
| 50 | guchar (*get_type_) (Fru *object); |
| 51 | |
| 52 | const gchar * (*get_version) (Fru *object); |
| 53 | |
| 54 | void (*recoverable_error) ( |
| 55 | Fru *object); |
| 56 | |
| 57 | void (*state_changed) ( |
| 58 | Fru *object); |
| 59 | |
| 60 | void (*unrecoverable_error) ( |
| 61 | Fru *object); |
| 62 | |
| 63 | }; |
| 64 | |
| 65 | GType fru_get_type (void) G_GNUC_CONST; |
| 66 | |
| 67 | GDBusInterfaceInfo *fru_interface_info (void); |
| 68 | guint fru_override_properties (GObjectClass *klass, guint property_id_begin); |
| 69 | |
| 70 | |
| 71 | /* D-Bus signal emissions functions: */ |
| 72 | void fru_emit_state_changed ( |
| 73 | Fru *object); |
| 74 | |
| 75 | void fru_emit_unrecoverable_error ( |
| 76 | Fru *object); |
| 77 | |
| 78 | void fru_emit_recoverable_error ( |
| 79 | Fru *object); |
| 80 | |
| 81 | |
| 82 | |
| 83 | /* D-Bus property accessors: */ |
| 84 | const gchar *fru_get_label (Fru *object); |
| 85 | gchar *fru_dup_label (Fru *object); |
| 86 | void fru_set_label (Fru *object, const gchar *value); |
| 87 | |
| 88 | const gchar *fru_get_location (Fru *object); |
| 89 | gchar *fru_dup_location (Fru *object); |
| 90 | void fru_set_location (Fru *object, const gchar *value); |
| 91 | |
| 92 | guchar fru_get_state (Fru *object); |
| 93 | void fru_set_state (Fru *object, guchar value); |
| 94 | |
| 95 | const gchar *fru_get_manufacturer (Fru *object); |
| 96 | gchar *fru_dup_manufacturer (Fru *object); |
| 97 | void fru_set_manufacturer (Fru *object, const gchar *value); |
| 98 | |
| 99 | const gchar *fru_get_part_num (Fru *object); |
| 100 | gchar *fru_dup_part_num (Fru *object); |
| 101 | void fru_set_part_num (Fru *object, const gchar *value); |
| 102 | |
| 103 | const gchar *fru_get_serial_num (Fru *object); |
| 104 | gchar *fru_dup_serial_num (Fru *object); |
| 105 | void fru_set_serial_num (Fru *object, const gchar *value); |
| 106 | |
| 107 | guint fru_get_date_code (Fru *object); |
| 108 | void fru_set_date_code (Fru *object, guint value); |
| 109 | |
| 110 | const gchar *fru_get_version (Fru *object); |
| 111 | gchar *fru_dup_version (Fru *object); |
| 112 | void fru_set_version (Fru *object, const gchar *value); |
| 113 | |
| 114 | guchar fru_get_type_ (Fru *object); |
| 115 | void fru_set_type_ (Fru *object, guchar value); |
| 116 | |
| 117 | guchar fru_get_subtype (Fru *object); |
| 118 | void fru_set_subtype (Fru *object, guchar value); |
| 119 | |
| 120 | guchar fru_get_instance_num (Fru *object); |
| 121 | void fru_set_instance_num (Fru *object, guchar value); |
| 122 | |
| 123 | |
| 124 | /* ---- */ |
| 125 | |
| 126 | #define TYPE_FRU_PROXY (fru_proxy_get_type ()) |
| 127 | #define FRU_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_PROXY, FruProxy)) |
| 128 | #define FRU_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_PROXY, FruProxyClass)) |
| 129 | #define FRU_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_PROXY, FruProxyClass)) |
| 130 | #define IS_FRU_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_PROXY)) |
| 131 | #define IS_FRU_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_PROXY)) |
| 132 | |
| 133 | typedef struct _FruProxy FruProxy; |
| 134 | typedef struct _FruProxyClass FruProxyClass; |
| 135 | typedef struct _FruProxyPrivate FruProxyPrivate; |
| 136 | |
| 137 | struct _FruProxy |
| 138 | { |
| 139 | /*< private >*/ |
| 140 | GDBusProxy parent_instance; |
| 141 | FruProxyPrivate *priv; |
| 142 | }; |
| 143 | |
| 144 | struct _FruProxyClass |
| 145 | { |
| 146 | GDBusProxyClass parent_class; |
| 147 | }; |
| 148 | |
| 149 | GType fru_proxy_get_type (void) G_GNUC_CONST; |
| 150 | |
| 151 | void fru_proxy_new ( |
| 152 | GDBusConnection *connection, |
| 153 | GDBusProxyFlags flags, |
| 154 | const gchar *name, |
| 155 | const gchar *object_path, |
| 156 | GCancellable *cancellable, |
| 157 | GAsyncReadyCallback callback, |
| 158 | gpointer user_data); |
| 159 | Fru *fru_proxy_new_finish ( |
| 160 | GAsyncResult *res, |
| 161 | GError **error); |
| 162 | Fru *fru_proxy_new_sync ( |
| 163 | GDBusConnection *connection, |
| 164 | GDBusProxyFlags flags, |
| 165 | const gchar *name, |
| 166 | const gchar *object_path, |
| 167 | GCancellable *cancellable, |
| 168 | GError **error); |
| 169 | |
| 170 | void fru_proxy_new_for_bus ( |
| 171 | GBusType bus_type, |
| 172 | GDBusProxyFlags flags, |
| 173 | const gchar *name, |
| 174 | const gchar *object_path, |
| 175 | GCancellable *cancellable, |
| 176 | GAsyncReadyCallback callback, |
| 177 | gpointer user_data); |
| 178 | Fru *fru_proxy_new_for_bus_finish ( |
| 179 | GAsyncResult *res, |
| 180 | GError **error); |
| 181 | Fru *fru_proxy_new_for_bus_sync ( |
| 182 | GBusType bus_type, |
| 183 | GDBusProxyFlags flags, |
| 184 | const gchar *name, |
| 185 | const gchar *object_path, |
| 186 | GCancellable *cancellable, |
| 187 | GError **error); |
| 188 | |
| 189 | |
| 190 | /* ---- */ |
| 191 | |
| 192 | #define TYPE_FRU_SKELETON (fru_skeleton_get_type ()) |
| 193 | #define FRU_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_SKELETON, FruSkeleton)) |
| 194 | #define FRU_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_SKELETON, FruSkeletonClass)) |
| 195 | #define FRU_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_SKELETON, FruSkeletonClass)) |
| 196 | #define IS_FRU_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_SKELETON)) |
| 197 | #define IS_FRU_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_SKELETON)) |
| 198 | |
| 199 | typedef struct _FruSkeleton FruSkeleton; |
| 200 | typedef struct _FruSkeletonClass FruSkeletonClass; |
| 201 | typedef struct _FruSkeletonPrivate FruSkeletonPrivate; |
| 202 | |
| 203 | struct _FruSkeleton |
| 204 | { |
| 205 | /*< private >*/ |
| 206 | GDBusInterfaceSkeleton parent_instance; |
| 207 | FruSkeletonPrivate *priv; |
| 208 | }; |
| 209 | |
| 210 | struct _FruSkeletonClass |
| 211 | { |
| 212 | GDBusInterfaceSkeletonClass parent_class; |
| 213 | }; |
| 214 | |
| 215 | GType fru_skeleton_get_type (void) G_GNUC_CONST; |
| 216 | |
| 217 | Fru *fru_skeleton_new (void); |
| 218 | |
| 219 | |
| 220 | /* ------------------------------------------------------------------------ */ |
| 221 | /* Declarations for org.openbmc.Fru.Fan */ |
| 222 | |
| 223 | #define TYPE_FRU_FAN (fru_fan_get_type ()) |
| 224 | #define FRU_FAN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_FAN, FruFan)) |
| 225 | #define IS_FRU_FAN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_FAN)) |
| 226 | #define FRU_FAN_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FRU_FAN, FruFanIface)) |
| 227 | |
| 228 | struct _FruFan; |
| 229 | typedef struct _FruFan FruFan; |
| 230 | typedef struct _FruFanIface FruFanIface; |
| 231 | |
| 232 | struct _FruFanIface |
| 233 | { |
| 234 | GTypeInterface parent_iface; |
| 235 | |
| 236 | |
| 237 | |
| 238 | gboolean (*handle_get_speed) ( |
| 239 | FruFan *object, |
| 240 | GDBusMethodInvocation *invocation); |
| 241 | |
| 242 | gboolean (*handle_set_config_data) ( |
| 243 | FruFan *object, |
| 244 | GDBusMethodInvocation *invocation, |
| 245 | gint arg_pwm_num); |
| 246 | |
| 247 | gboolean (*handle_set_cooling_zone) ( |
| 248 | FruFan *object, |
| 249 | GDBusMethodInvocation *invocation, |
| 250 | gint arg_cooling_zone); |
| 251 | |
| 252 | gboolean (*handle_set_speed) ( |
| 253 | FruFan *object, |
| 254 | GDBusMethodInvocation *invocation, |
| 255 | gint arg_speed); |
| 256 | |
| 257 | gint (*get_cooling_zone) (FruFan *object); |
| 258 | |
| 259 | gint (*get_speed) (FruFan *object); |
| 260 | |
| 261 | void (*speed_changed) ( |
| 262 | FruFan *object, |
| 263 | gint arg_speed); |
| 264 | |
| 265 | void (*tach_error) ( |
| 266 | FruFan *object); |
| 267 | |
| 268 | }; |
| 269 | |
| 270 | GType fru_fan_get_type (void) G_GNUC_CONST; |
| 271 | |
| 272 | GDBusInterfaceInfo *fru_fan_interface_info (void); |
| 273 | guint fru_fan_override_properties (GObjectClass *klass, guint property_id_begin); |
| 274 | |
| 275 | |
| 276 | /* D-Bus method call completion functions: */ |
| 277 | void fru_fan_complete_set_cooling_zone ( |
| 278 | FruFan *object, |
| 279 | GDBusMethodInvocation *invocation); |
| 280 | |
| 281 | void fru_fan_complete_get_speed ( |
| 282 | FruFan *object, |
| 283 | GDBusMethodInvocation *invocation, |
| 284 | gint speed); |
| 285 | |
| 286 | void fru_fan_complete_set_speed ( |
| 287 | FruFan *object, |
| 288 | GDBusMethodInvocation *invocation); |
| 289 | |
| 290 | void fru_fan_complete_set_config_data ( |
| 291 | FruFan *object, |
| 292 | GDBusMethodInvocation *invocation); |
| 293 | |
| 294 | |
| 295 | |
| 296 | /* D-Bus signal emissions functions: */ |
| 297 | void fru_fan_emit_speed_changed ( |
| 298 | FruFan *object, |
| 299 | gint arg_speed); |
| 300 | |
| 301 | void fru_fan_emit_tach_error ( |
| 302 | FruFan *object); |
| 303 | |
| 304 | |
| 305 | |
| 306 | /* D-Bus method calls: */ |
| 307 | void fru_fan_call_set_cooling_zone ( |
| 308 | FruFan *proxy, |
| 309 | gint arg_cooling_zone, |
| 310 | GCancellable *cancellable, |
| 311 | GAsyncReadyCallback callback, |
| 312 | gpointer user_data); |
| 313 | |
| 314 | gboolean fru_fan_call_set_cooling_zone_finish ( |
| 315 | FruFan *proxy, |
| 316 | GAsyncResult *res, |
| 317 | GError **error); |
| 318 | |
| 319 | gboolean fru_fan_call_set_cooling_zone_sync ( |
| 320 | FruFan *proxy, |
| 321 | gint arg_cooling_zone, |
| 322 | GCancellable *cancellable, |
| 323 | GError **error); |
| 324 | |
| 325 | void fru_fan_call_get_speed ( |
| 326 | FruFan *proxy, |
| 327 | GCancellable *cancellable, |
| 328 | GAsyncReadyCallback callback, |
| 329 | gpointer user_data); |
| 330 | |
| 331 | gboolean fru_fan_call_get_speed_finish ( |
| 332 | FruFan *proxy, |
| 333 | gint *out_speed, |
| 334 | GAsyncResult *res, |
| 335 | GError **error); |
| 336 | |
| 337 | gboolean fru_fan_call_get_speed_sync ( |
| 338 | FruFan *proxy, |
| 339 | gint *out_speed, |
| 340 | GCancellable *cancellable, |
| 341 | GError **error); |
| 342 | |
| 343 | void fru_fan_call_set_speed ( |
| 344 | FruFan *proxy, |
| 345 | gint arg_speed, |
| 346 | GCancellable *cancellable, |
| 347 | GAsyncReadyCallback callback, |
| 348 | gpointer user_data); |
| 349 | |
| 350 | gboolean fru_fan_call_set_speed_finish ( |
| 351 | FruFan *proxy, |
| 352 | GAsyncResult *res, |
| 353 | GError **error); |
| 354 | |
| 355 | gboolean fru_fan_call_set_speed_sync ( |
| 356 | FruFan *proxy, |
| 357 | gint arg_speed, |
| 358 | GCancellable *cancellable, |
| 359 | GError **error); |
| 360 | |
| 361 | void fru_fan_call_set_config_data ( |
| 362 | FruFan *proxy, |
| 363 | gint arg_pwm_num, |
| 364 | GCancellable *cancellable, |
| 365 | GAsyncReadyCallback callback, |
| 366 | gpointer user_data); |
| 367 | |
| 368 | gboolean fru_fan_call_set_config_data_finish ( |
| 369 | FruFan *proxy, |
| 370 | GAsyncResult *res, |
| 371 | GError **error); |
| 372 | |
| 373 | gboolean fru_fan_call_set_config_data_sync ( |
| 374 | FruFan *proxy, |
| 375 | gint arg_pwm_num, |
| 376 | GCancellable *cancellable, |
| 377 | GError **error); |
| 378 | |
| 379 | |
| 380 | |
| 381 | /* D-Bus property accessors: */ |
| 382 | gint fru_fan_get_speed (FruFan *object); |
| 383 | void fru_fan_set_speed (FruFan *object, gint value); |
| 384 | |
| 385 | gint fru_fan_get_cooling_zone (FruFan *object); |
| 386 | void fru_fan_set_cooling_zone (FruFan *object, gint value); |
| 387 | |
| 388 | |
| 389 | /* ---- */ |
| 390 | |
| 391 | #define TYPE_FRU_FAN_PROXY (fru_fan_proxy_get_type ()) |
| 392 | #define FRU_FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_FAN_PROXY, FruFanProxy)) |
| 393 | #define FRU_FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_FAN_PROXY, FruFanProxyClass)) |
| 394 | #define FRU_FAN_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_FAN_PROXY, FruFanProxyClass)) |
| 395 | #define IS_FRU_FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_FAN_PROXY)) |
| 396 | #define IS_FRU_FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_FAN_PROXY)) |
| 397 | |
| 398 | typedef struct _FruFanProxy FruFanProxy; |
| 399 | typedef struct _FruFanProxyClass FruFanProxyClass; |
| 400 | typedef struct _FruFanProxyPrivate FruFanProxyPrivate; |
| 401 | |
| 402 | struct _FruFanProxy |
| 403 | { |
| 404 | /*< private >*/ |
| 405 | GDBusProxy parent_instance; |
| 406 | FruFanProxyPrivate *priv; |
| 407 | }; |
| 408 | |
| 409 | struct _FruFanProxyClass |
| 410 | { |
| 411 | GDBusProxyClass parent_class; |
| 412 | }; |
| 413 | |
| 414 | GType fru_fan_proxy_get_type (void) G_GNUC_CONST; |
| 415 | |
| 416 | void fru_fan_proxy_new ( |
| 417 | GDBusConnection *connection, |
| 418 | GDBusProxyFlags flags, |
| 419 | const gchar *name, |
| 420 | const gchar *object_path, |
| 421 | GCancellable *cancellable, |
| 422 | GAsyncReadyCallback callback, |
| 423 | gpointer user_data); |
| 424 | FruFan *fru_fan_proxy_new_finish ( |
| 425 | GAsyncResult *res, |
| 426 | GError **error); |
| 427 | FruFan *fru_fan_proxy_new_sync ( |
| 428 | GDBusConnection *connection, |
| 429 | GDBusProxyFlags flags, |
| 430 | const gchar *name, |
| 431 | const gchar *object_path, |
| 432 | GCancellable *cancellable, |
| 433 | GError **error); |
| 434 | |
| 435 | void fru_fan_proxy_new_for_bus ( |
| 436 | GBusType bus_type, |
| 437 | GDBusProxyFlags flags, |
| 438 | const gchar *name, |
| 439 | const gchar *object_path, |
| 440 | GCancellable *cancellable, |
| 441 | GAsyncReadyCallback callback, |
| 442 | gpointer user_data); |
| 443 | FruFan *fru_fan_proxy_new_for_bus_finish ( |
| 444 | GAsyncResult *res, |
| 445 | GError **error); |
| 446 | FruFan *fru_fan_proxy_new_for_bus_sync ( |
| 447 | GBusType bus_type, |
| 448 | GDBusProxyFlags flags, |
| 449 | const gchar *name, |
| 450 | const gchar *object_path, |
| 451 | GCancellable *cancellable, |
| 452 | GError **error); |
| 453 | |
| 454 | |
| 455 | /* ---- */ |
| 456 | |
| 457 | #define TYPE_FRU_FAN_SKELETON (fru_fan_skeleton_get_type ()) |
| 458 | #define FRU_FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FRU_FAN_SKELETON, FruFanSkeleton)) |
| 459 | #define FRU_FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FRU_FAN_SKELETON, FruFanSkeletonClass)) |
| 460 | #define FRU_FAN_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FRU_FAN_SKELETON, FruFanSkeletonClass)) |
| 461 | #define IS_FRU_FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FRU_FAN_SKELETON)) |
| 462 | #define IS_FRU_FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FRU_FAN_SKELETON)) |
| 463 | |
| 464 | typedef struct _FruFanSkeleton FruFanSkeleton; |
| 465 | typedef struct _FruFanSkeletonClass FruFanSkeletonClass; |
| 466 | typedef struct _FruFanSkeletonPrivate FruFanSkeletonPrivate; |
| 467 | |
| 468 | struct _FruFanSkeleton |
| 469 | { |
| 470 | /*< private >*/ |
| 471 | GDBusInterfaceSkeleton parent_instance; |
| 472 | FruFanSkeletonPrivate *priv; |
| 473 | }; |
| 474 | |
| 475 | struct _FruFanSkeletonClass |
| 476 | { |
| 477 | GDBusInterfaceSkeletonClass parent_class; |
| 478 | }; |
| 479 | |
| 480 | GType fru_fan_skeleton_get_type (void) G_GNUC_CONST; |
| 481 | |
| 482 | FruFan *fru_fan_skeleton_new (void); |
| 483 | |
| 484 | |
| 485 | /* ---- */ |
| 486 | |
| 487 | #define TYPE_OBJECT (object_get_type ()) |
| 488 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 489 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 490 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 491 | |
| 492 | struct _Object; |
| 493 | typedef struct _Object Object; |
| 494 | typedef struct _ObjectIface ObjectIface; |
| 495 | |
| 496 | struct _ObjectIface |
| 497 | { |
| 498 | GTypeInterface parent_iface; |
| 499 | }; |
| 500 | |
| 501 | GType object_get_type (void) G_GNUC_CONST; |
| 502 | |
| 503 | Fru *object_get_fru (Object *object); |
| 504 | FruFan *object_get_fru_fan (Object *object); |
| 505 | Fru *object_peek_fru (Object *object); |
| 506 | FruFan *object_peek_fru_fan (Object *object); |
| 507 | |
| 508 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 509 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 510 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 511 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 512 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 513 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 514 | |
| 515 | typedef struct _ObjectProxy ObjectProxy; |
| 516 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 517 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 518 | |
| 519 | struct _ObjectProxy |
| 520 | { |
| 521 | /*< private >*/ |
| 522 | GDBusObjectProxy parent_instance; |
| 523 | ObjectProxyPrivate *priv; |
| 524 | }; |
| 525 | |
| 526 | struct _ObjectProxyClass |
| 527 | { |
| 528 | GDBusObjectProxyClass parent_class; |
| 529 | }; |
| 530 | |
| 531 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 532 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 533 | |
| 534 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 535 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 536 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 537 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 538 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 539 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 540 | |
| 541 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 542 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 543 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 544 | |
| 545 | struct _ObjectSkeleton |
| 546 | { |
| 547 | /*< private >*/ |
| 548 | GDBusObjectSkeleton parent_instance; |
| 549 | ObjectSkeletonPrivate *priv; |
| 550 | }; |
| 551 | |
| 552 | struct _ObjectSkeletonClass |
| 553 | { |
| 554 | GDBusObjectSkeletonClass parent_class; |
| 555 | }; |
| 556 | |
| 557 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 558 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 559 | void object_skeleton_set_fru (ObjectSkeleton *object, Fru *interface_); |
| 560 | void object_skeleton_set_fru_fan (ObjectSkeleton *object, FruFan *interface_); |
| 561 | |
| 562 | /* ---- */ |
| 563 | |
| 564 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 565 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 566 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 567 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 568 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 569 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 570 | |
| 571 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 572 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 573 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 574 | |
| 575 | struct _ObjectManagerClient |
| 576 | { |
| 577 | /*< private >*/ |
| 578 | GDBusObjectManagerClient parent_instance; |
| 579 | ObjectManagerClientPrivate *priv; |
| 580 | }; |
| 581 | |
| 582 | struct _ObjectManagerClientClass |
| 583 | { |
| 584 | GDBusObjectManagerClientClass parent_class; |
| 585 | }; |
| 586 | |
| 587 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 588 | |
| 589 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 590 | |
| 591 | void object_manager_client_new ( |
| 592 | GDBusConnection *connection, |
| 593 | GDBusObjectManagerClientFlags flags, |
| 594 | const gchar *name, |
| 595 | const gchar *object_path, |
| 596 | GCancellable *cancellable, |
| 597 | GAsyncReadyCallback callback, |
| 598 | gpointer user_data); |
| 599 | GDBusObjectManager *object_manager_client_new_finish ( |
| 600 | GAsyncResult *res, |
| 601 | GError **error); |
| 602 | GDBusObjectManager *object_manager_client_new_sync ( |
| 603 | GDBusConnection *connection, |
| 604 | GDBusObjectManagerClientFlags flags, |
| 605 | const gchar *name, |
| 606 | const gchar *object_path, |
| 607 | GCancellable *cancellable, |
| 608 | GError **error); |
| 609 | |
| 610 | void object_manager_client_new_for_bus ( |
| 611 | GBusType bus_type, |
| 612 | GDBusObjectManagerClientFlags flags, |
| 613 | const gchar *name, |
| 614 | const gchar *object_path, |
| 615 | GCancellable *cancellable, |
| 616 | GAsyncReadyCallback callback, |
| 617 | gpointer user_data); |
| 618 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 619 | GAsyncResult *res, |
| 620 | GError **error); |
| 621 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 622 | GBusType bus_type, |
| 623 | GDBusObjectManagerClientFlags flags, |
| 624 | const gchar *name, |
| 625 | const gchar *object_path, |
| 626 | GCancellable *cancellable, |
| 627 | GError **error); |
| 628 | |
| 629 | |
| 630 | G_END_DECLS |
| 631 | |
| 632 | #endif /* __INTERFACES_FRU_H__ */ |