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_POWER_CONTROL_H__
|
| 8 | #define __INTERFACES_POWER_CONTROL_H__
|
| 9 |
|
| 10 | #include <gio/gio.h>
|
| 11 |
|
| 12 | G_BEGIN_DECLS
|
| 13 |
|
| 14 |
|
| 15 | /* ------------------------------------------------------------------------ */
|
| 16 | /* Declarations for org.openbmc.PowerControl */
|
| 17 |
|
| 18 | #define TYPE_POWER_CONTROL (power_control_get_type ())
|
| 19 | #define POWER_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_POWER_CONTROL, PowerControl))
|
| 20 | #define IS_POWER_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_POWER_CONTROL))
|
| 21 | #define POWER_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_POWER_CONTROL, PowerControlIface))
|
| 22 |
|
| 23 | struct _PowerControl;
|
| 24 | typedef struct _PowerControl PowerControl;
|
| 25 | typedef struct _PowerControlIface PowerControlIface;
|
| 26 |
|
| 27 | struct _PowerControlIface
|
| 28 | {
|
| 29 | GTypeInterface parent_iface;
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 | gboolean (*handle_get_power_state) (
|
| 34 | PowerControl *object,
|
| 35 | GDBusMethodInvocation *invocation);
|
| 36 |
|
| 37 | gboolean (*handle_set_power_state) (
|
| 38 | PowerControl *object,
|
| 39 | GDBusMethodInvocation *invocation,
|
| 40 | gint arg_state);
|
| 41 |
|
| 42 | gint (*get_pgood) (PowerControl *object);
|
| 43 |
|
| 44 | gint (*get_state) (PowerControl *object);
|
| 45 |
|
| 46 | void (*power_good) (
|
| 47 | PowerControl *object);
|
| 48 |
|
| 49 | void (*power_lost) (
|
| 50 | PowerControl *object);
|
| 51 |
|
| 52 | };
|
| 53 |
|
| 54 | GType power_control_get_type (void) G_GNUC_CONST;
|
| 55 |
|
| 56 | GDBusInterfaceInfo *power_control_interface_info (void);
|
| 57 | guint power_control_override_properties (GObjectClass *klass, guint property_id_begin);
|
| 58 |
|
| 59 |
|
| 60 | /* D-Bus method call completion functions: */
|
| 61 | void power_control_complete_set_power_state (
|
| 62 | PowerControl *object,
|
| 63 | GDBusMethodInvocation *invocation);
|
| 64 |
|
| 65 | void power_control_complete_get_power_state (
|
| 66 | PowerControl *object,
|
| 67 | GDBusMethodInvocation *invocation,
|
| 68 | gint state);
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 | /* D-Bus signal emissions functions: */
|
| 73 | void power_control_emit_power_good (
|
| 74 | PowerControl *object);
|
| 75 |
|
| 76 | void power_control_emit_power_lost (
|
| 77 | PowerControl *object);
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 | /* D-Bus method calls: */
|
| 82 | void power_control_call_set_power_state (
|
| 83 | PowerControl *proxy,
|
| 84 | gint arg_state,
|
| 85 | GCancellable *cancellable,
|
| 86 | GAsyncReadyCallback callback,
|
| 87 | gpointer user_data);
|
| 88 |
|
| 89 | gboolean power_control_call_set_power_state_finish (
|
| 90 | PowerControl *proxy,
|
| 91 | GAsyncResult *res,
|
| 92 | GError **error);
|
| 93 |
|
| 94 | gboolean power_control_call_set_power_state_sync (
|
| 95 | PowerControl *proxy,
|
| 96 | gint arg_state,
|
| 97 | GCancellable *cancellable,
|
| 98 | GError **error);
|
| 99 |
|
| 100 | void power_control_call_get_power_state (
|
| 101 | PowerControl *proxy,
|
| 102 | GCancellable *cancellable,
|
| 103 | GAsyncReadyCallback callback,
|
| 104 | gpointer user_data);
|
| 105 |
|
| 106 | gboolean power_control_call_get_power_state_finish (
|
| 107 | PowerControl *proxy,
|
| 108 | gint *out_state,
|
| 109 | GAsyncResult *res,
|
| 110 | GError **error);
|
| 111 |
|
| 112 | gboolean power_control_call_get_power_state_sync (
|
| 113 | PowerControl *proxy,
|
| 114 | gint *out_state,
|
| 115 | GCancellable *cancellable,
|
| 116 | GError **error);
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 | /* D-Bus property accessors: */
|
| 121 | gint power_control_get_pgood (PowerControl *object);
|
| 122 | void power_control_set_pgood (PowerControl *object, gint value);
|
| 123 |
|
| 124 | gint power_control_get_state (PowerControl *object);
|
| 125 | void power_control_set_state (PowerControl *object, gint value);
|
| 126 |
|
| 127 |
|
| 128 | /* ---- */
|
| 129 |
|
| 130 | #define TYPE_POWER_CONTROL_PROXY (power_control_proxy_get_type ())
|
| 131 | #define POWER_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_POWER_CONTROL_PROXY, PowerControlProxy))
|
| 132 | #define POWER_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_POWER_CONTROL_PROXY, PowerControlProxyClass))
|
| 133 | #define POWER_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_POWER_CONTROL_PROXY, PowerControlProxyClass))
|
| 134 | #define IS_POWER_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_POWER_CONTROL_PROXY))
|
| 135 | #define IS_POWER_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_POWER_CONTROL_PROXY))
|
| 136 |
|
| 137 | typedef struct _PowerControlProxy PowerControlProxy;
|
| 138 | typedef struct _PowerControlProxyClass PowerControlProxyClass;
|
| 139 | typedef struct _PowerControlProxyPrivate PowerControlProxyPrivate;
|
| 140 |
|
| 141 | struct _PowerControlProxy
|
| 142 | {
|
| 143 | /*< private >*/
|
| 144 | GDBusProxy parent_instance;
|
| 145 | PowerControlProxyPrivate *priv;
|
| 146 | };
|
| 147 |
|
| 148 | struct _PowerControlProxyClass
|
| 149 | {
|
| 150 | GDBusProxyClass parent_class;
|
| 151 | };
|
| 152 |
|
| 153 | GType power_control_proxy_get_type (void) G_GNUC_CONST;
|
| 154 |
|
| 155 | void power_control_proxy_new (
|
| 156 | GDBusConnection *connection,
|
| 157 | GDBusProxyFlags flags,
|
| 158 | const gchar *name,
|
| 159 | const gchar *object_path,
|
| 160 | GCancellable *cancellable,
|
| 161 | GAsyncReadyCallback callback,
|
| 162 | gpointer user_data);
|
| 163 | PowerControl *power_control_proxy_new_finish (
|
| 164 | GAsyncResult *res,
|
| 165 | GError **error);
|
| 166 | PowerControl *power_control_proxy_new_sync (
|
| 167 | GDBusConnection *connection,
|
| 168 | GDBusProxyFlags flags,
|
| 169 | const gchar *name,
|
| 170 | const gchar *object_path,
|
| 171 | GCancellable *cancellable,
|
| 172 | GError **error);
|
| 173 |
|
| 174 | void power_control_proxy_new_for_bus (
|
| 175 | GBusType bus_type,
|
| 176 | GDBusProxyFlags flags,
|
| 177 | const gchar *name,
|
| 178 | const gchar *object_path,
|
| 179 | GCancellable *cancellable,
|
| 180 | GAsyncReadyCallback callback,
|
| 181 | gpointer user_data);
|
| 182 | PowerControl *power_control_proxy_new_for_bus_finish (
|
| 183 | GAsyncResult *res,
|
| 184 | GError **error);
|
| 185 | PowerControl *power_control_proxy_new_for_bus_sync (
|
| 186 | GBusType bus_type,
|
| 187 | GDBusProxyFlags flags,
|
| 188 | const gchar *name,
|
| 189 | const gchar *object_path,
|
| 190 | GCancellable *cancellable,
|
| 191 | GError **error);
|
| 192 |
|
| 193 |
|
| 194 | /* ---- */
|
| 195 |
|
| 196 | #define TYPE_POWER_CONTROL_SKELETON (power_control_skeleton_get_type ())
|
| 197 | #define POWER_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_POWER_CONTROL_SKELETON, PowerControlSkeleton))
|
| 198 | #define POWER_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_POWER_CONTROL_SKELETON, PowerControlSkeletonClass))
|
| 199 | #define POWER_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_POWER_CONTROL_SKELETON, PowerControlSkeletonClass))
|
| 200 | #define IS_POWER_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_POWER_CONTROL_SKELETON))
|
| 201 | #define IS_POWER_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_POWER_CONTROL_SKELETON))
|
| 202 |
|
| 203 | typedef struct _PowerControlSkeleton PowerControlSkeleton;
|
| 204 | typedef struct _PowerControlSkeletonClass PowerControlSkeletonClass;
|
| 205 | typedef struct _PowerControlSkeletonPrivate PowerControlSkeletonPrivate;
|
| 206 |
|
| 207 | struct _PowerControlSkeleton
|
| 208 | {
|
| 209 | /*< private >*/
|
| 210 | GDBusInterfaceSkeleton parent_instance;
|
| 211 | PowerControlSkeletonPrivate *priv;
|
| 212 | };
|
| 213 |
|
| 214 | struct _PowerControlSkeletonClass
|
| 215 | {
|
| 216 | GDBusInterfaceSkeletonClass parent_class;
|
| 217 | };
|
| 218 |
|
| 219 | GType power_control_skeleton_get_type (void) G_GNUC_CONST;
|
| 220 |
|
| 221 | PowerControl *power_control_skeleton_new (void);
|
| 222 |
|
| 223 |
|
| 224 | /* ---- */
|
| 225 |
|
| 226 | #define TYPE_OBJECT (object_get_type ())
|
| 227 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
|
| 228 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
|
| 229 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
|
| 230 |
|
| 231 | struct _Object;
|
| 232 | typedef struct _Object Object;
|
| 233 | typedef struct _ObjectIface ObjectIface;
|
| 234 |
|
| 235 | struct _ObjectIface
|
| 236 | {
|
| 237 | GTypeInterface parent_iface;
|
| 238 | };
|
| 239 |
|
| 240 | GType object_get_type (void) G_GNUC_CONST;
|
| 241 |
|
| 242 | PowerControl *object_get_power_control (Object *object);
|
| 243 | PowerControl *object_peek_power_control (Object *object);
|
| 244 |
|
| 245 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ())
|
| 246 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
|
| 247 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
|
| 248 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
|
| 249 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
|
| 250 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
|
| 251 |
|
| 252 | typedef struct _ObjectProxy ObjectProxy;
|
| 253 | typedef struct _ObjectProxyClass ObjectProxyClass;
|
| 254 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
|
| 255 |
|
| 256 | struct _ObjectProxy
|
| 257 | {
|
| 258 | /*< private >*/
|
| 259 | GDBusObjectProxy parent_instance;
|
| 260 | ObjectProxyPrivate *priv;
|
| 261 | };
|
| 262 |
|
| 263 | struct _ObjectProxyClass
|
| 264 | {
|
| 265 | GDBusObjectProxyClass parent_class;
|
| 266 | };
|
| 267 |
|
| 268 | GType object_proxy_get_type (void) G_GNUC_CONST;
|
| 269 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
|
| 270 |
|
| 271 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
|
| 272 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
|
| 273 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
|
| 274 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
|
| 275 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
|
| 276 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
|
| 277 |
|
| 278 | typedef struct _ObjectSkeleton ObjectSkeleton;
|
| 279 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
|
| 280 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
|
| 281 |
|
| 282 | struct _ObjectSkeleton
|
| 283 | {
|
| 284 | /*< private >*/
|
| 285 | GDBusObjectSkeleton parent_instance;
|
| 286 | ObjectSkeletonPrivate *priv;
|
| 287 | };
|
| 288 |
|
| 289 | struct _ObjectSkeletonClass
|
| 290 | {
|
| 291 | GDBusObjectSkeletonClass parent_class;
|
| 292 | };
|
| 293 |
|
| 294 | GType object_skeleton_get_type (void) G_GNUC_CONST;
|
| 295 | ObjectSkeleton *object_skeleton_new (const gchar *object_path);
|
| 296 | void object_skeleton_set_power_control (ObjectSkeleton *object, PowerControl *interface_);
|
| 297 |
|
| 298 | /* ---- */
|
| 299 |
|
| 300 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
|
| 301 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
|
| 302 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
|
| 303 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
|
| 304 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
|
| 305 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
|
| 306 |
|
| 307 | typedef struct _ObjectManagerClient ObjectManagerClient;
|
| 308 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
|
| 309 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
|
| 310 |
|
| 311 | struct _ObjectManagerClient
|
| 312 | {
|
| 313 | /*< private >*/
|
| 314 | GDBusObjectManagerClient parent_instance;
|
| 315 | ObjectManagerClientPrivate *priv;
|
| 316 | };
|
| 317 |
|
| 318 | struct _ObjectManagerClientClass
|
| 319 | {
|
| 320 | GDBusObjectManagerClientClass parent_class;
|
| 321 | };
|
| 322 |
|
| 323 | GType object_manager_client_get_type (void) G_GNUC_CONST;
|
| 324 |
|
| 325 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
|
| 326 |
|
| 327 | void object_manager_client_new (
|
| 328 | GDBusConnection *connection,
|
| 329 | GDBusObjectManagerClientFlags flags,
|
| 330 | const gchar *name,
|
| 331 | const gchar *object_path,
|
| 332 | GCancellable *cancellable,
|
| 333 | GAsyncReadyCallback callback,
|
| 334 | gpointer user_data);
|
| 335 | GDBusObjectManager *object_manager_client_new_finish (
|
| 336 | GAsyncResult *res,
|
| 337 | GError **error);
|
| 338 | GDBusObjectManager *object_manager_client_new_sync (
|
| 339 | GDBusConnection *connection,
|
| 340 | GDBusObjectManagerClientFlags flags,
|
| 341 | const gchar *name,
|
| 342 | const gchar *object_path,
|
| 343 | GCancellable *cancellable,
|
| 344 | GError **error);
|
| 345 |
|
| 346 | void object_manager_client_new_for_bus (
|
| 347 | GBusType bus_type,
|
| 348 | GDBusObjectManagerClientFlags flags,
|
| 349 | const gchar *name,
|
| 350 | const gchar *object_path,
|
| 351 | GCancellable *cancellable,
|
| 352 | GAsyncReadyCallback callback,
|
| 353 | gpointer user_data);
|
| 354 | GDBusObjectManager *object_manager_client_new_for_bus_finish (
|
| 355 | GAsyncResult *res,
|
| 356 | GError **error);
|
| 357 | GDBusObjectManager *object_manager_client_new_for_bus_sync (
|
| 358 | GBusType bus_type,
|
| 359 | GDBusObjectManagerClientFlags flags,
|
| 360 | const gchar *name,
|
| 361 | const gchar *object_path,
|
| 362 | GCancellable *cancellable,
|
| 363 | GError **error);
|
| 364 |
|
| 365 |
|
| 366 | G_END_DECLS
|
| 367 |
|
| 368 | #endif /* __INTERFACES_POWER_CONTROL_H__ */
|