| /* |
| * Generated by gdbus-codegen 2.40.2. DO NOT EDIT. |
| * |
| * The license of this code is the same as for the source it was derived from. |
| */ |
| |
| #ifndef __INTERFACES_POWER_CONTROL_H__ |
| #define __INTERFACES_POWER_CONTROL_H__ |
| |
| #include <gio/gio.h> |
| |
| G_BEGIN_DECLS |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* Declarations for org.openbmc.control.Power */ |
| |
| #define TYPE_CONTROL_POWER (control_power_get_type ()) |
| #define CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER, ControlPower)) |
| #define IS_CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER)) |
| #define CONTROL_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_POWER, ControlPowerIface)) |
| |
| struct _ControlPower; |
| typedef struct _ControlPower ControlPower; |
| typedef struct _ControlPowerIface ControlPowerIface; |
| |
| struct _ControlPowerIface |
| { |
| GTypeInterface parent_iface; |
| |
| |
| |
| gboolean (*handle_get_power_state) ( |
| ControlPower *object, |
| GDBusMethodInvocation *invocation); |
| |
| gboolean (*handle_set_power_state) ( |
| ControlPower *object, |
| GDBusMethodInvocation *invocation, |
| gint arg_state); |
| |
| gint (*get_pgood) (ControlPower *object); |
| |
| gint (*get_state) (ControlPower *object); |
| |
| void (*power_good) ( |
| ControlPower *object); |
| |
| void (*power_lost) ( |
| ControlPower *object); |
| |
| }; |
| |
| GType control_power_get_type (void) G_GNUC_CONST; |
| |
| GDBusInterfaceInfo *control_power_interface_info (void); |
| guint control_power_override_properties (GObjectClass *klass, guint property_id_begin); |
| |
| |
| /* D-Bus method call completion functions: */ |
| void control_power_complete_set_power_state ( |
| ControlPower *object, |
| GDBusMethodInvocation *invocation); |
| |
| void control_power_complete_get_power_state ( |
| ControlPower *object, |
| GDBusMethodInvocation *invocation, |
| gint state); |
| |
| |
| |
| /* D-Bus signal emissions functions: */ |
| void control_power_emit_power_good ( |
| ControlPower *object); |
| |
| void control_power_emit_power_lost ( |
| ControlPower *object); |
| |
| |
| |
| /* D-Bus method calls: */ |
| void control_power_call_set_power_state ( |
| ControlPower *proxy, |
| gint arg_state, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean control_power_call_set_power_state_finish ( |
| ControlPower *proxy, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean control_power_call_set_power_state_sync ( |
| ControlPower *proxy, |
| gint arg_state, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void control_power_call_get_power_state ( |
| ControlPower *proxy, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean control_power_call_get_power_state_finish ( |
| ControlPower *proxy, |
| gint *out_state, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean control_power_call_get_power_state_sync ( |
| ControlPower *proxy, |
| gint *out_state, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| |
| /* D-Bus property accessors: */ |
| gint control_power_get_pgood (ControlPower *object); |
| void control_power_set_pgood (ControlPower *object, gint value); |
| |
| gint control_power_get_state (ControlPower *object); |
| void control_power_set_state (ControlPower *object, gint value); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_CONTROL_POWER_PROXY (control_power_proxy_get_type ()) |
| #define CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxy)) |
| #define CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) |
| #define CONTROL_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) |
| #define IS_CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_PROXY)) |
| #define IS_CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_PROXY)) |
| |
| typedef struct _ControlPowerProxy ControlPowerProxy; |
| typedef struct _ControlPowerProxyClass ControlPowerProxyClass; |
| typedef struct _ControlPowerProxyPrivate ControlPowerProxyPrivate; |
| |
| struct _ControlPowerProxy |
| { |
| /*< private >*/ |
| GDBusProxy parent_instance; |
| ControlPowerProxyPrivate *priv; |
| }; |
| |
| struct _ControlPowerProxyClass |
| { |
| GDBusProxyClass parent_class; |
| }; |
| |
| GType control_power_proxy_get_type (void) G_GNUC_CONST; |
| |
| void control_power_proxy_new ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| ControlPower *control_power_proxy_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| ControlPower *control_power_proxy_new_sync ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void control_power_proxy_new_for_bus ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| ControlPower *control_power_proxy_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| ControlPower *control_power_proxy_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_CONTROL_POWER_SKELETON (control_power_skeleton_get_type ()) |
| #define CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeleton)) |
| #define CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) |
| #define CONTROL_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) |
| #define IS_CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_SKELETON)) |
| #define IS_CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_SKELETON)) |
| |
| typedef struct _ControlPowerSkeleton ControlPowerSkeleton; |
| typedef struct _ControlPowerSkeletonClass ControlPowerSkeletonClass; |
| typedef struct _ControlPowerSkeletonPrivate ControlPowerSkeletonPrivate; |
| |
| struct _ControlPowerSkeleton |
| { |
| /*< private >*/ |
| GDBusInterfaceSkeleton parent_instance; |
| ControlPowerSkeletonPrivate *priv; |
| }; |
| |
| struct _ControlPowerSkeletonClass |
| { |
| GDBusInterfaceSkeletonClass parent_class; |
| }; |
| |
| GType control_power_skeleton_get_type (void) G_GNUC_CONST; |
| |
| ControlPower *control_power_skeleton_new (void); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_OBJECT (object_get_type ()) |
| #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| |
| struct _Object; |
| typedef struct _Object Object; |
| typedef struct _ObjectIface ObjectIface; |
| |
| struct _ObjectIface |
| { |
| GTypeInterface parent_iface; |
| }; |
| |
| GType object_get_type (void) G_GNUC_CONST; |
| |
| ControlPower *object_get_control_power (Object *object); |
| ControlPower *object_peek_control_power (Object *object); |
| |
| #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| |
| typedef struct _ObjectProxy ObjectProxy; |
| typedef struct _ObjectProxyClass ObjectProxyClass; |
| typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| |
| struct _ObjectProxy |
| { |
| /*< private >*/ |
| GDBusObjectProxy parent_instance; |
| ObjectProxyPrivate *priv; |
| }; |
| |
| struct _ObjectProxyClass |
| { |
| GDBusObjectProxyClass parent_class; |
| }; |
| |
| GType object_proxy_get_type (void) G_GNUC_CONST; |
| ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| |
| #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| |
| typedef struct _ObjectSkeleton ObjectSkeleton; |
| typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| |
| struct _ObjectSkeleton |
| { |
| /*< private >*/ |
| GDBusObjectSkeleton parent_instance; |
| ObjectSkeletonPrivate *priv; |
| }; |
| |
| struct _ObjectSkeletonClass |
| { |
| GDBusObjectSkeletonClass parent_class; |
| }; |
| |
| GType object_skeleton_get_type (void) G_GNUC_CONST; |
| ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_); |
| |
| /* ---- */ |
| |
| #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| |
| typedef struct _ObjectManagerClient ObjectManagerClient; |
| typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| |
| struct _ObjectManagerClient |
| { |
| /*< private >*/ |
| GDBusObjectManagerClient parent_instance; |
| ObjectManagerClientPrivate *priv; |
| }; |
| |
| struct _ObjectManagerClientClass |
| { |
| GDBusObjectManagerClientClass parent_class; |
| }; |
| |
| GType object_manager_client_get_type (void) G_GNUC_CONST; |
| |
| GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| |
| void object_manager_client_new ( |
| GDBusConnection *connection, |
| GDBusObjectManagerClientFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| GDBusObjectManager *object_manager_client_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| GDBusObjectManager *object_manager_client_new_sync ( |
| GDBusConnection *connection, |
| GDBusObjectManagerClientFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void object_manager_client_new_for_bus ( |
| GBusType bus_type, |
| GDBusObjectManagerClientFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusObjectManagerClientFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| G_END_DECLS |
| |
| #endif /* __INTERFACES_POWER_CONTROL_H__ */ |