Norman James | e276510 | 2015-08-19 22:00: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_LED_H__
|
| 8 | #define __INTERFACES_LED_H__
|
| 9 |
|
| 10 | #include <gio/gio.h>
|
| 11 |
|
| 12 | G_BEGIN_DECLS
|
| 13 |
|
| 14 |
|
| 15 | /* ------------------------------------------------------------------------ */
|
| 16 | /* Declarations for org.openbmc.Led */
|
| 17 |
|
| 18 | #define TYPE_LED (led_get_type ())
|
| 19 | #define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led))
|
| 20 | #define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED))
|
| 21 | #define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface))
|
| 22 |
|
| 23 | struct _Led;
|
| 24 | typedef struct _Led Led;
|
| 25 | typedef struct _LedIface LedIface;
|
| 26 |
|
| 27 | struct _LedIface
|
| 28 | {
|
| 29 | GTypeInterface parent_iface;
|
| 30 |
|
| 31 |
|
| 32 | gboolean (*handle_set_blink_fast) (
|
| 33 | Led *object,
|
| 34 | GDBusMethodInvocation *invocation);
|
| 35 |
|
| 36 | gboolean (*handle_set_blink_slow) (
|
| 37 | Led *object,
|
| 38 | GDBusMethodInvocation *invocation);
|
| 39 |
|
| 40 | gboolean (*handle_set_off) (
|
| 41 | Led *object,
|
| 42 | GDBusMethodInvocation *invocation);
|
| 43 |
|
| 44 | gboolean (*handle_set_on) (
|
| 45 | Led *object,
|
| 46 | GDBusMethodInvocation *invocation);
|
| 47 |
|
| 48 | gint (*get_color) (Led *object);
|
| 49 |
|
| 50 | const gchar * (*get_function) (Led *object);
|
| 51 |
|
| 52 | };
|
| 53 |
|
| 54 | GType led_get_type (void) G_GNUC_CONST;
|
| 55 |
|
| 56 | GDBusInterfaceInfo *led_interface_info (void);
|
| 57 | guint led_override_properties (GObjectClass *klass, guint property_id_begin);
|
| 58 |
|
| 59 |
|
| 60 | /* D-Bus method call completion functions: */
|
| 61 | void led_complete_set_on (
|
| 62 | Led *object,
|
| 63 | GDBusMethodInvocation *invocation);
|
| 64 |
|
| 65 | void led_complete_set_off (
|
| 66 | Led *object,
|
| 67 | GDBusMethodInvocation *invocation);
|
| 68 |
|
| 69 | void led_complete_set_blink_slow (
|
| 70 | Led *object,
|
| 71 | GDBusMethodInvocation *invocation);
|
| 72 |
|
| 73 | void led_complete_set_blink_fast (
|
| 74 | Led *object,
|
| 75 | GDBusMethodInvocation *invocation);
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 | /* D-Bus method calls: */
|
| 80 | void led_call_set_on (
|
| 81 | Led *proxy,
|
| 82 | GCancellable *cancellable,
|
| 83 | GAsyncReadyCallback callback,
|
| 84 | gpointer user_data);
|
| 85 |
|
| 86 | gboolean led_call_set_on_finish (
|
| 87 | Led *proxy,
|
| 88 | GAsyncResult *res,
|
| 89 | GError **error);
|
| 90 |
|
| 91 | gboolean led_call_set_on_sync (
|
| 92 | Led *proxy,
|
| 93 | GCancellable *cancellable,
|
| 94 | GError **error);
|
| 95 |
|
| 96 | void led_call_set_off (
|
| 97 | Led *proxy,
|
| 98 | GCancellable *cancellable,
|
| 99 | GAsyncReadyCallback callback,
|
| 100 | gpointer user_data);
|
| 101 |
|
| 102 | gboolean led_call_set_off_finish (
|
| 103 | Led *proxy,
|
| 104 | GAsyncResult *res,
|
| 105 | GError **error);
|
| 106 |
|
| 107 | gboolean led_call_set_off_sync (
|
| 108 | Led *proxy,
|
| 109 | GCancellable *cancellable,
|
| 110 | GError **error);
|
| 111 |
|
| 112 | void led_call_set_blink_slow (
|
| 113 | Led *proxy,
|
| 114 | GCancellable *cancellable,
|
| 115 | GAsyncReadyCallback callback,
|
| 116 | gpointer user_data);
|
| 117 |
|
| 118 | gboolean led_call_set_blink_slow_finish (
|
| 119 | Led *proxy,
|
| 120 | GAsyncResult *res,
|
| 121 | GError **error);
|
| 122 |
|
| 123 | gboolean led_call_set_blink_slow_sync (
|
| 124 | Led *proxy,
|
| 125 | GCancellable *cancellable,
|
| 126 | GError **error);
|
| 127 |
|
| 128 | void led_call_set_blink_fast (
|
| 129 | Led *proxy,
|
| 130 | GCancellable *cancellable,
|
| 131 | GAsyncReadyCallback callback,
|
| 132 | gpointer user_data);
|
| 133 |
|
| 134 | gboolean led_call_set_blink_fast_finish (
|
| 135 | Led *proxy,
|
| 136 | GAsyncResult *res,
|
| 137 | GError **error);
|
| 138 |
|
| 139 | gboolean led_call_set_blink_fast_sync (
|
| 140 | Led *proxy,
|
| 141 | GCancellable *cancellable,
|
| 142 | GError **error);
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 | /* D-Bus property accessors: */
|
| 147 | gint led_get_color (Led *object);
|
| 148 | void led_set_color (Led *object, gint value);
|
| 149 |
|
| 150 | const gchar *led_get_function (Led *object);
|
| 151 | gchar *led_dup_function (Led *object);
|
| 152 | void led_set_function (Led *object, const gchar *value);
|
| 153 |
|
| 154 |
|
| 155 | /* ---- */
|
| 156 |
|
| 157 | #define TYPE_LED_PROXY (led_proxy_get_type ())
|
| 158 | #define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy))
|
| 159 | #define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass))
|
| 160 | #define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass))
|
| 161 | #define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY))
|
| 162 | #define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY))
|
| 163 |
|
| 164 | typedef struct _LedProxy LedProxy;
|
| 165 | typedef struct _LedProxyClass LedProxyClass;
|
| 166 | typedef struct _LedProxyPrivate LedProxyPrivate;
|
| 167 |
|
| 168 | struct _LedProxy
|
| 169 | {
|
| 170 | /*< private >*/
|
| 171 | GDBusProxy parent_instance;
|
| 172 | LedProxyPrivate *priv;
|
| 173 | };
|
| 174 |
|
| 175 | struct _LedProxyClass
|
| 176 | {
|
| 177 | GDBusProxyClass parent_class;
|
| 178 | };
|
| 179 |
|
| 180 | GType led_proxy_get_type (void) G_GNUC_CONST;
|
| 181 |
|
| 182 | void led_proxy_new (
|
| 183 | GDBusConnection *connection,
|
| 184 | GDBusProxyFlags flags,
|
| 185 | const gchar *name,
|
| 186 | const gchar *object_path,
|
| 187 | GCancellable *cancellable,
|
| 188 | GAsyncReadyCallback callback,
|
| 189 | gpointer user_data);
|
| 190 | Led *led_proxy_new_finish (
|
| 191 | GAsyncResult *res,
|
| 192 | GError **error);
|
| 193 | Led *led_proxy_new_sync (
|
| 194 | GDBusConnection *connection,
|
| 195 | GDBusProxyFlags flags,
|
| 196 | const gchar *name,
|
| 197 | const gchar *object_path,
|
| 198 | GCancellable *cancellable,
|
| 199 | GError **error);
|
| 200 |
|
| 201 | void led_proxy_new_for_bus (
|
| 202 | GBusType bus_type,
|
| 203 | GDBusProxyFlags flags,
|
| 204 | const gchar *name,
|
| 205 | const gchar *object_path,
|
| 206 | GCancellable *cancellable,
|
| 207 | GAsyncReadyCallback callback,
|
| 208 | gpointer user_data);
|
| 209 | Led *led_proxy_new_for_bus_finish (
|
| 210 | GAsyncResult *res,
|
| 211 | GError **error);
|
| 212 | Led *led_proxy_new_for_bus_sync (
|
| 213 | GBusType bus_type,
|
| 214 | GDBusProxyFlags flags,
|
| 215 | const gchar *name,
|
| 216 | const gchar *object_path,
|
| 217 | GCancellable *cancellable,
|
| 218 | GError **error);
|
| 219 |
|
| 220 |
|
| 221 | /* ---- */
|
| 222 |
|
| 223 | #define TYPE_LED_SKELETON (led_skeleton_get_type ())
|
| 224 | #define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton))
|
| 225 | #define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass))
|
| 226 | #define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass))
|
| 227 | #define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON))
|
| 228 | #define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON))
|
| 229 |
|
| 230 | typedef struct _LedSkeleton LedSkeleton;
|
| 231 | typedef struct _LedSkeletonClass LedSkeletonClass;
|
| 232 | typedef struct _LedSkeletonPrivate LedSkeletonPrivate;
|
| 233 |
|
| 234 | struct _LedSkeleton
|
| 235 | {
|
| 236 | /*< private >*/
|
| 237 | GDBusInterfaceSkeleton parent_instance;
|
| 238 | LedSkeletonPrivate *priv;
|
| 239 | };
|
| 240 |
|
| 241 | struct _LedSkeletonClass
|
| 242 | {
|
| 243 | GDBusInterfaceSkeletonClass parent_class;
|
| 244 | };
|
| 245 |
|
| 246 | GType led_skeleton_get_type (void) G_GNUC_CONST;
|
| 247 |
|
| 248 | Led *led_skeleton_new (void);
|
| 249 |
|
| 250 |
|
| 251 | /* ---- */
|
| 252 |
|
| 253 | #define TYPE_OBJECT (object_get_type ())
|
| 254 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
|
| 255 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
|
| 256 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
|
| 257 |
|
| 258 | struct _Object;
|
| 259 | typedef struct _Object Object;
|
| 260 | typedef struct _ObjectIface ObjectIface;
|
| 261 |
|
| 262 | struct _ObjectIface
|
| 263 | {
|
| 264 | GTypeInterface parent_iface;
|
| 265 | };
|
| 266 |
|
| 267 | GType object_get_type (void) G_GNUC_CONST;
|
| 268 |
|
| 269 | Led *object_get_led (Object *object);
|
| 270 | Led *object_peek_led (Object *object);
|
| 271 |
|
| 272 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ())
|
| 273 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
|
| 274 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
|
| 275 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
|
| 276 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
|
| 277 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
|
| 278 |
|
| 279 | typedef struct _ObjectProxy ObjectProxy;
|
| 280 | typedef struct _ObjectProxyClass ObjectProxyClass;
|
| 281 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
|
| 282 |
|
| 283 | struct _ObjectProxy
|
| 284 | {
|
| 285 | /*< private >*/
|
| 286 | GDBusObjectProxy parent_instance;
|
| 287 | ObjectProxyPrivate *priv;
|
| 288 | };
|
| 289 |
|
| 290 | struct _ObjectProxyClass
|
| 291 | {
|
| 292 | GDBusObjectProxyClass parent_class;
|
| 293 | };
|
| 294 |
|
| 295 | GType object_proxy_get_type (void) G_GNUC_CONST;
|
| 296 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
|
| 297 |
|
| 298 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
|
| 299 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
|
| 300 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
|
| 301 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
|
| 302 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
|
| 303 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
|
| 304 |
|
| 305 | typedef struct _ObjectSkeleton ObjectSkeleton;
|
| 306 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
|
| 307 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
|
| 308 |
|
| 309 | struct _ObjectSkeleton
|
| 310 | {
|
| 311 | /*< private >*/
|
| 312 | GDBusObjectSkeleton parent_instance;
|
| 313 | ObjectSkeletonPrivate *priv;
|
| 314 | };
|
| 315 |
|
| 316 | struct _ObjectSkeletonClass
|
| 317 | {
|
| 318 | GDBusObjectSkeletonClass parent_class;
|
| 319 | };
|
| 320 |
|
| 321 | GType object_skeleton_get_type (void) G_GNUC_CONST;
|
| 322 | ObjectSkeleton *object_skeleton_new (const gchar *object_path);
|
| 323 | void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_);
|
| 324 |
|
| 325 | /* ---- */
|
| 326 |
|
| 327 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
|
| 328 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
|
| 329 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
|
| 330 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
|
| 331 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
|
| 332 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
|
| 333 |
|
| 334 | typedef struct _ObjectManagerClient ObjectManagerClient;
|
| 335 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
|
| 336 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
|
| 337 |
|
| 338 | struct _ObjectManagerClient
|
| 339 | {
|
| 340 | /*< private >*/
|
| 341 | GDBusObjectManagerClient parent_instance;
|
| 342 | ObjectManagerClientPrivate *priv;
|
| 343 | };
|
| 344 |
|
| 345 | struct _ObjectManagerClientClass
|
| 346 | {
|
| 347 | GDBusObjectManagerClientClass parent_class;
|
| 348 | };
|
| 349 |
|
| 350 | GType object_manager_client_get_type (void) G_GNUC_CONST;
|
| 351 |
|
| 352 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
|
| 353 |
|
| 354 | void object_manager_client_new (
|
| 355 | GDBusConnection *connection,
|
| 356 | GDBusObjectManagerClientFlags flags,
|
| 357 | const gchar *name,
|
| 358 | const gchar *object_path,
|
| 359 | GCancellable *cancellable,
|
| 360 | GAsyncReadyCallback callback,
|
| 361 | gpointer user_data);
|
| 362 | GDBusObjectManager *object_manager_client_new_finish (
|
| 363 | GAsyncResult *res,
|
| 364 | GError **error);
|
| 365 | GDBusObjectManager *object_manager_client_new_sync (
|
| 366 | GDBusConnection *connection,
|
| 367 | GDBusObjectManagerClientFlags flags,
|
| 368 | const gchar *name,
|
| 369 | const gchar *object_path,
|
| 370 | GCancellable *cancellable,
|
| 371 | GError **error);
|
| 372 |
|
| 373 | void object_manager_client_new_for_bus (
|
| 374 | GBusType bus_type,
|
| 375 | GDBusObjectManagerClientFlags flags,
|
| 376 | const gchar *name,
|
| 377 | const gchar *object_path,
|
| 378 | GCancellable *cancellable,
|
| 379 | GAsyncReadyCallback callback,
|
| 380 | gpointer user_data);
|
| 381 | GDBusObjectManager *object_manager_client_new_for_bus_finish (
|
| 382 | GAsyncResult *res,
|
| 383 | GError **error);
|
| 384 | GDBusObjectManager *object_manager_client_new_for_bus_sync (
|
| 385 | GBusType bus_type,
|
| 386 | GDBusObjectManagerClientFlags flags,
|
| 387 | const gchar *name,
|
| 388 | const gchar *object_path,
|
| 389 | GCancellable *cancellable,
|
| 390 | GError **error);
|
| 391 |
|
| 392 |
|
| 393 | G_END_DECLS
|
| 394 |
|
| 395 | #endif /* __INTERFACES_LED_H__ */
|