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_HOST_CONTROL_H__
|
| 8 | #define __INTERFACES_HOST_CONTROL_H__
|
| 9 |
|
| 10 | #include <gio/gio.h>
|
| 11 |
|
| 12 | G_BEGIN_DECLS
|
| 13 |
|
| 14 |
|
| 15 | /* ------------------------------------------------------------------------ */
|
| 16 | /* Declarations for org.openbmc.HostControl */
|
| 17 |
|
| 18 | #define TYPE_HOST_CONTROL (host_control_get_type ())
|
| 19 | #define HOST_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL, HostControl))
|
| 20 | #define IS_HOST_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL))
|
| 21 | #define HOST_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOST_CONTROL, HostControlIface))
|
| 22 |
|
| 23 | struct _HostControl;
|
| 24 | typedef struct _HostControl HostControl;
|
| 25 | typedef struct _HostControlIface HostControlIface;
|
| 26 |
|
| 27 | struct _HostControlIface
|
| 28 | {
|
| 29 | GTypeInterface parent_iface;
|
| 30 |
|
| 31 |
|
| 32 | gboolean (*handle_boot) (
|
| 33 | HostControl *object,
|
| 34 | GDBusMethodInvocation *invocation);
|
| 35 |
|
| 36 | gboolean (*handle_shutdown) (
|
| 37 | HostControl *object,
|
| 38 | GDBusMethodInvocation *invocation);
|
| 39 |
|
| 40 | void (*booted) (
|
| 41 | HostControl *object);
|
| 42 |
|
| 43 | };
|
| 44 |
|
| 45 | GType host_control_get_type (void) G_GNUC_CONST;
|
| 46 |
|
| 47 | GDBusInterfaceInfo *host_control_interface_info (void);
|
| 48 | guint host_control_override_properties (GObjectClass *klass, guint property_id_begin);
|
| 49 |
|
| 50 |
|
| 51 | /* D-Bus method call completion functions: */
|
| 52 | void host_control_complete_boot (
|
| 53 | HostControl *object,
|
| 54 | GDBusMethodInvocation *invocation);
|
| 55 |
|
| 56 | void host_control_complete_shutdown (
|
| 57 | HostControl *object,
|
| 58 | GDBusMethodInvocation *invocation);
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 | /* D-Bus signal emissions functions: */
|
| 63 | void host_control_emit_booted (
|
| 64 | HostControl *object);
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 | /* D-Bus method calls: */
|
| 69 | void host_control_call_boot (
|
| 70 | HostControl *proxy,
|
| 71 | GCancellable *cancellable,
|
| 72 | GAsyncReadyCallback callback,
|
| 73 | gpointer user_data);
|
| 74 |
|
| 75 | gboolean host_control_call_boot_finish (
|
| 76 | HostControl *proxy,
|
| 77 | GAsyncResult *res,
|
| 78 | GError **error);
|
| 79 |
|
| 80 | gboolean host_control_call_boot_sync (
|
| 81 | HostControl *proxy,
|
| 82 | GCancellable *cancellable,
|
| 83 | GError **error);
|
| 84 |
|
| 85 | void host_control_call_shutdown (
|
| 86 | HostControl *proxy,
|
| 87 | GCancellable *cancellable,
|
| 88 | GAsyncReadyCallback callback,
|
| 89 | gpointer user_data);
|
| 90 |
|
| 91 | gboolean host_control_call_shutdown_finish (
|
| 92 | HostControl *proxy,
|
| 93 | GAsyncResult *res,
|
| 94 | GError **error);
|
| 95 |
|
| 96 | gboolean host_control_call_shutdown_sync (
|
| 97 | HostControl *proxy,
|
| 98 | GCancellable *cancellable,
|
| 99 | GError **error);
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 | /* ---- */
|
| 104 |
|
| 105 | #define TYPE_HOST_CONTROL_PROXY (host_control_proxy_get_type ())
|
| 106 | #define HOST_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL_PROXY, HostControlProxy))
|
| 107 | #define HOST_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_CONTROL_PROXY, HostControlProxyClass))
|
| 108 | #define HOST_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_CONTROL_PROXY, HostControlProxyClass))
|
| 109 | #define IS_HOST_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL_PROXY))
|
| 110 | #define IS_HOST_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_CONTROL_PROXY))
|
| 111 |
|
| 112 | typedef struct _HostControlProxy HostControlProxy;
|
| 113 | typedef struct _HostControlProxyClass HostControlProxyClass;
|
| 114 | typedef struct _HostControlProxyPrivate HostControlProxyPrivate;
|
| 115 |
|
| 116 | struct _HostControlProxy
|
| 117 | {
|
| 118 | /*< private >*/
|
| 119 | GDBusProxy parent_instance;
|
| 120 | HostControlProxyPrivate *priv;
|
| 121 | };
|
| 122 |
|
| 123 | struct _HostControlProxyClass
|
| 124 | {
|
| 125 | GDBusProxyClass parent_class;
|
| 126 | };
|
| 127 |
|
| 128 | GType host_control_proxy_get_type (void) G_GNUC_CONST;
|
| 129 |
|
| 130 | void host_control_proxy_new (
|
| 131 | GDBusConnection *connection,
|
| 132 | GDBusProxyFlags flags,
|
| 133 | const gchar *name,
|
| 134 | const gchar *object_path,
|
| 135 | GCancellable *cancellable,
|
| 136 | GAsyncReadyCallback callback,
|
| 137 | gpointer user_data);
|
| 138 | HostControl *host_control_proxy_new_finish (
|
| 139 | GAsyncResult *res,
|
| 140 | GError **error);
|
| 141 | HostControl *host_control_proxy_new_sync (
|
| 142 | GDBusConnection *connection,
|
| 143 | GDBusProxyFlags flags,
|
| 144 | const gchar *name,
|
| 145 | const gchar *object_path,
|
| 146 | GCancellable *cancellable,
|
| 147 | GError **error);
|
| 148 |
|
| 149 | void host_control_proxy_new_for_bus (
|
| 150 | GBusType bus_type,
|
| 151 | GDBusProxyFlags flags,
|
| 152 | const gchar *name,
|
| 153 | const gchar *object_path,
|
| 154 | GCancellable *cancellable,
|
| 155 | GAsyncReadyCallback callback,
|
| 156 | gpointer user_data);
|
| 157 | HostControl *host_control_proxy_new_for_bus_finish (
|
| 158 | GAsyncResult *res,
|
| 159 | GError **error);
|
| 160 | HostControl *host_control_proxy_new_for_bus_sync (
|
| 161 | GBusType bus_type,
|
| 162 | GDBusProxyFlags flags,
|
| 163 | const gchar *name,
|
| 164 | const gchar *object_path,
|
| 165 | GCancellable *cancellable,
|
| 166 | GError **error);
|
| 167 |
|
| 168 |
|
| 169 | /* ---- */
|
| 170 |
|
| 171 | #define TYPE_HOST_CONTROL_SKELETON (host_control_skeleton_get_type ())
|
| 172 | #define HOST_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL_SKELETON, HostControlSkeleton))
|
| 173 | #define HOST_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_CONTROL_SKELETON, HostControlSkeletonClass))
|
| 174 | #define HOST_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_CONTROL_SKELETON, HostControlSkeletonClass))
|
| 175 | #define IS_HOST_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL_SKELETON))
|
| 176 | #define IS_HOST_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_CONTROL_SKELETON))
|
| 177 |
|
| 178 | typedef struct _HostControlSkeleton HostControlSkeleton;
|
| 179 | typedef struct _HostControlSkeletonClass HostControlSkeletonClass;
|
| 180 | typedef struct _HostControlSkeletonPrivate HostControlSkeletonPrivate;
|
| 181 |
|
| 182 | struct _HostControlSkeleton
|
| 183 | {
|
| 184 | /*< private >*/
|
| 185 | GDBusInterfaceSkeleton parent_instance;
|
| 186 | HostControlSkeletonPrivate *priv;
|
| 187 | };
|
| 188 |
|
| 189 | struct _HostControlSkeletonClass
|
| 190 | {
|
| 191 | GDBusInterfaceSkeletonClass parent_class;
|
| 192 | };
|
| 193 |
|
| 194 | GType host_control_skeleton_get_type (void) G_GNUC_CONST;
|
| 195 |
|
| 196 | HostControl *host_control_skeleton_new (void);
|
| 197 |
|
| 198 |
|
| 199 | /* ---- */
|
| 200 |
|
| 201 | #define TYPE_OBJECT (object_get_type ())
|
| 202 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
|
| 203 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
|
| 204 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
|
| 205 |
|
| 206 | struct _Object;
|
| 207 | typedef struct _Object Object;
|
| 208 | typedef struct _ObjectIface ObjectIface;
|
| 209 |
|
| 210 | struct _ObjectIface
|
| 211 | {
|
| 212 | GTypeInterface parent_iface;
|
| 213 | };
|
| 214 |
|
| 215 | GType object_get_type (void) G_GNUC_CONST;
|
| 216 |
|
| 217 | HostControl *object_get_host_control (Object *object);
|
| 218 | HostControl *object_peek_host_control (Object *object);
|
| 219 |
|
| 220 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ())
|
| 221 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
|
| 222 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
|
| 223 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
|
| 224 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
|
| 225 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
|
| 226 |
|
| 227 | typedef struct _ObjectProxy ObjectProxy;
|
| 228 | typedef struct _ObjectProxyClass ObjectProxyClass;
|
| 229 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
|
| 230 |
|
| 231 | struct _ObjectProxy
|
| 232 | {
|
| 233 | /*< private >*/
|
| 234 | GDBusObjectProxy parent_instance;
|
| 235 | ObjectProxyPrivate *priv;
|
| 236 | };
|
| 237 |
|
| 238 | struct _ObjectProxyClass
|
| 239 | {
|
| 240 | GDBusObjectProxyClass parent_class;
|
| 241 | };
|
| 242 |
|
| 243 | GType object_proxy_get_type (void) G_GNUC_CONST;
|
| 244 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
|
| 245 |
|
| 246 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
|
| 247 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
|
| 248 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
|
| 249 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
|
| 250 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
|
| 251 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
|
| 252 |
|
| 253 | typedef struct _ObjectSkeleton ObjectSkeleton;
|
| 254 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
|
| 255 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
|
| 256 |
|
| 257 | struct _ObjectSkeleton
|
| 258 | {
|
| 259 | /*< private >*/
|
| 260 | GDBusObjectSkeleton parent_instance;
|
| 261 | ObjectSkeletonPrivate *priv;
|
| 262 | };
|
| 263 |
|
| 264 | struct _ObjectSkeletonClass
|
| 265 | {
|
| 266 | GDBusObjectSkeletonClass parent_class;
|
| 267 | };
|
| 268 |
|
| 269 | GType object_skeleton_get_type (void) G_GNUC_CONST;
|
| 270 | ObjectSkeleton *object_skeleton_new (const gchar *object_path);
|
| 271 | void object_skeleton_set_host_control (ObjectSkeleton *object, HostControl *interface_);
|
| 272 |
|
| 273 | /* ---- */
|
| 274 |
|
| 275 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
|
| 276 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
|
| 277 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
|
| 278 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
|
| 279 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
|
| 280 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
|
| 281 |
|
| 282 | typedef struct _ObjectManagerClient ObjectManagerClient;
|
| 283 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
|
| 284 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
|
| 285 |
|
| 286 | struct _ObjectManagerClient
|
| 287 | {
|
| 288 | /*< private >*/
|
| 289 | GDBusObjectManagerClient parent_instance;
|
| 290 | ObjectManagerClientPrivate *priv;
|
| 291 | };
|
| 292 |
|
| 293 | struct _ObjectManagerClientClass
|
| 294 | {
|
| 295 | GDBusObjectManagerClientClass parent_class;
|
| 296 | };
|
| 297 |
|
| 298 | GType object_manager_client_get_type (void) G_GNUC_CONST;
|
| 299 |
|
| 300 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
|
| 301 |
|
| 302 | void object_manager_client_new (
|
| 303 | GDBusConnection *connection,
|
| 304 | GDBusObjectManagerClientFlags flags,
|
| 305 | const gchar *name,
|
| 306 | const gchar *object_path,
|
| 307 | GCancellable *cancellable,
|
| 308 | GAsyncReadyCallback callback,
|
| 309 | gpointer user_data);
|
| 310 | GDBusObjectManager *object_manager_client_new_finish (
|
| 311 | GAsyncResult *res,
|
| 312 | GError **error);
|
| 313 | GDBusObjectManager *object_manager_client_new_sync (
|
| 314 | GDBusConnection *connection,
|
| 315 | GDBusObjectManagerClientFlags flags,
|
| 316 | const gchar *name,
|
| 317 | const gchar *object_path,
|
| 318 | GCancellable *cancellable,
|
| 319 | GError **error);
|
| 320 |
|
| 321 | void object_manager_client_new_for_bus (
|
| 322 | GBusType bus_type,
|
| 323 | GDBusObjectManagerClientFlags flags,
|
| 324 | const gchar *name,
|
| 325 | const gchar *object_path,
|
| 326 | GCancellable *cancellable,
|
| 327 | GAsyncReadyCallback callback,
|
| 328 | gpointer user_data);
|
| 329 | GDBusObjectManager *object_manager_client_new_for_bus_finish (
|
| 330 | GAsyncResult *res,
|
| 331 | GError **error);
|
| 332 | GDBusObjectManager *object_manager_client_new_for_bus_sync (
|
| 333 | GBusType bus_type,
|
| 334 | GDBusObjectManagerClientFlags flags,
|
| 335 | const gchar *name,
|
| 336 | const gchar *object_path,
|
| 337 | GCancellable *cancellable,
|
| 338 | GError **error);
|
| 339 |
|
| 340 |
|
| 341 | G_END_DECLS
|
| 342 |
|
| 343 | #endif /* __INTERFACES_HOST_CONTROL_H__ */
|