| /* |
| * 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_CONTROL_H__ |
| #define __INTERFACES_CONTROL_H__ |
| |
| #include <gio/gio.h> |
| |
| G_BEGIN_DECLS |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* Declarations for org.openbmc.Control */ |
| |
| #define TYPE_CONTROL (control_get_type ()) |
| #define CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL, Control)) |
| #define IS_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL)) |
| #define CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL, ControlIface)) |
| |
| struct _Control; |
| typedef struct _Control Control; |
| typedef struct _ControlIface ControlIface; |
| |
| struct _ControlIface |
| { |
| GTypeInterface parent_iface; |
| |
| |
| |
| gboolean (*handle_init) ( |
| Control *object, |
| GDBusMethodInvocation *invocation); |
| |
| gint (*get_heatbeat) (Control *object); |
| |
| gint (*get_poll_interval) (Control *object); |
| |
| void (*heartbeat) ( |
| Control *object, |
| const gchar *arg_bus_name); |
| |
| }; |
| |
| GType control_get_type (void) G_GNUC_CONST; |
| |
| GDBusInterfaceInfo *control_interface_info (void); |
| guint control_override_properties (GObjectClass *klass, guint property_id_begin); |
| |
| |
| /* D-Bus method call completion functions: */ |
| void control_complete_init ( |
| Control *object, |
| GDBusMethodInvocation *invocation); |
| |
| |
| |
| /* D-Bus signal emissions functions: */ |
| void control_emit_heartbeat ( |
| Control *object, |
| const gchar *arg_bus_name); |
| |
| |
| |
| /* D-Bus method calls: */ |
| void control_call_init ( |
| Control *proxy, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean control_call_init_finish ( |
| Control *proxy, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean control_call_init_sync ( |
| Control *proxy, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| |
| /* D-Bus property accessors: */ |
| gint control_get_poll_interval (Control *object); |
| void control_set_poll_interval (Control *object, gint value); |
| |
| gint control_get_heatbeat (Control *object); |
| void control_set_heatbeat (Control *object, gint value); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_CONTROL_PROXY (control_proxy_get_type ()) |
| #define CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_PROXY, ControlProxy)) |
| #define CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_PROXY, ControlProxyClass)) |
| #define CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_PROXY, ControlProxyClass)) |
| #define IS_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_PROXY)) |
| #define IS_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_PROXY)) |
| |
| typedef struct _ControlProxy ControlProxy; |
| typedef struct _ControlProxyClass ControlProxyClass; |
| typedef struct _ControlProxyPrivate ControlProxyPrivate; |
| |
| struct _ControlProxy |
| { |
| /*< private >*/ |
| GDBusProxy parent_instance; |
| ControlProxyPrivate *priv; |
| }; |
| |
| struct _ControlProxyClass |
| { |
| GDBusProxyClass parent_class; |
| }; |
| |
| GType control_proxy_get_type (void) G_GNUC_CONST; |
| |
| void control_proxy_new ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| Control *control_proxy_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| Control *control_proxy_new_sync ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void control_proxy_new_for_bus ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| Control *control_proxy_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| Control *control_proxy_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_CONTROL_SKELETON (control_skeleton_get_type ()) |
| #define CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_SKELETON, ControlSkeleton)) |
| #define CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) |
| #define CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) |
| #define IS_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_SKELETON)) |
| #define IS_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_SKELETON)) |
| |
| typedef struct _ControlSkeleton ControlSkeleton; |
| typedef struct _ControlSkeletonClass ControlSkeletonClass; |
| typedef struct _ControlSkeletonPrivate ControlSkeletonPrivate; |
| |
| struct _ControlSkeleton |
| { |
| /*< private >*/ |
| GDBusInterfaceSkeleton parent_instance; |
| ControlSkeletonPrivate *priv; |
| }; |
| |
| struct _ControlSkeletonClass |
| { |
| GDBusInterfaceSkeletonClass parent_class; |
| }; |
| |
| GType control_skeleton_get_type (void) G_GNUC_CONST; |
| |
| Control *control_skeleton_new (void); |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* Declarations for org.openbmc.control.Host */ |
| |
| #define TYPE_CONTROL_HOST (control_host_get_type ()) |
| #define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost)) |
| #define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST)) |
| #define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface)) |
| |
| struct _ControlHost; |
| typedef struct _ControlHost ControlHost; |
| typedef struct _ControlHostIface ControlHostIface; |
| |
| struct _ControlHostIface |
| { |
| GTypeInterface parent_iface; |
| |
| |
| gboolean (*handle_boot) ( |
| ControlHost *object, |
| GDBusMethodInvocation *invocation); |
| |
| gboolean (*handle_reboot) ( |
| ControlHost *object, |
| GDBusMethodInvocation *invocation); |
| |
| gboolean (*handle_shutdown) ( |
| ControlHost *object, |
| GDBusMethodInvocation *invocation); |
| |
| void (*booted) ( |
| ControlHost *object); |
| |
| }; |
| |
| GType control_host_get_type (void) G_GNUC_CONST; |
| |
| GDBusInterfaceInfo *control_host_interface_info (void); |
| guint control_host_override_properties (GObjectClass *klass, guint property_id_begin); |
| |
| |
| /* D-Bus method call completion functions: */ |
| void control_host_complete_boot ( |
| ControlHost *object, |
| GDBusMethodInvocation *invocation); |
| |
| void control_host_complete_shutdown ( |
| ControlHost *object, |
| GDBusMethodInvocation *invocation); |
| |
| void control_host_complete_reboot ( |
| ControlHost *object, |
| GDBusMethodInvocation *invocation); |
| |
| |
| |
| /* D-Bus signal emissions functions: */ |
| void control_host_emit_booted ( |
| ControlHost *object); |
| |
| |
| |
| /* D-Bus method calls: */ |
| void control_host_call_boot ( |
| ControlHost *proxy, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean control_host_call_boot_finish ( |
| ControlHost *proxy, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean control_host_call_boot_sync ( |
| ControlHost *proxy, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void control_host_call_shutdown ( |
| ControlHost *proxy, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean control_host_call_shutdown_finish ( |
| ControlHost *proxy, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean control_host_call_shutdown_sync ( |
| ControlHost *proxy, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void control_host_call_reboot ( |
| ControlHost *proxy, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean control_host_call_reboot_finish ( |
| ControlHost *proxy, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean control_host_call_reboot_sync ( |
| ControlHost *proxy, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| |
| /* ---- */ |
| |
| #define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ()) |
| #define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy)) |
| #define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| #define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| #define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY)) |
| #define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY)) |
| |
| typedef struct _ControlHostProxy ControlHostProxy; |
| typedef struct _ControlHostProxyClass ControlHostProxyClass; |
| typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate; |
| |
| struct _ControlHostProxy |
| { |
| /*< private >*/ |
| GDBusProxy parent_instance; |
| ControlHostProxyPrivate *priv; |
| }; |
| |
| struct _ControlHostProxyClass |
| { |
| GDBusProxyClass parent_class; |
| }; |
| |
| GType control_host_proxy_get_type (void) G_GNUC_CONST; |
| |
| void control_host_proxy_new ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| ControlHost *control_host_proxy_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| ControlHost *control_host_proxy_new_sync ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void control_host_proxy_new_for_bus ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| ControlHost *control_host_proxy_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| ControlHost *control_host_proxy_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ()) |
| #define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton)) |
| #define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| #define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| #define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON)) |
| #define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON)) |
| |
| typedef struct _ControlHostSkeleton ControlHostSkeleton; |
| typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass; |
| typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate; |
| |
| struct _ControlHostSkeleton |
| { |
| /*< private >*/ |
| GDBusInterfaceSkeleton parent_instance; |
| ControlHostSkeletonPrivate *priv; |
| }; |
| |
| struct _ControlHostSkeletonClass |
| { |
| GDBusInterfaceSkeletonClass parent_class; |
| }; |
| |
| GType control_host_skeleton_get_type (void) G_GNUC_CONST; |
| |
| ControlHost *control_host_skeleton_new (void); |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* 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); |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* Declarations for org.openbmc.EventLog */ |
| |
| #define TYPE_EVENT_LOG (event_log_get_type ()) |
| #define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog)) |
| #define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG)) |
| #define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface)) |
| |
| struct _EventLog; |
| typedef struct _EventLog EventLog; |
| typedef struct _EventLogIface EventLogIface; |
| |
| struct _EventLogIface |
| { |
| GTypeInterface parent_iface; |
| |
| void (*event_log) ( |
| EventLog *object, |
| GVariant *arg_message); |
| |
| }; |
| |
| GType event_log_get_type (void) G_GNUC_CONST; |
| |
| GDBusInterfaceInfo *event_log_interface_info (void); |
| guint event_log_override_properties (GObjectClass *klass, guint property_id_begin); |
| |
| |
| /* D-Bus signal emissions functions: */ |
| void event_log_emit_event_log ( |
| EventLog *object, |
| GVariant *arg_message); |
| |
| |
| |
| /* ---- */ |
| |
| #define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ()) |
| #define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy)) |
| #define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| #define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| #define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY)) |
| #define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY)) |
| |
| typedef struct _EventLogProxy EventLogProxy; |
| typedef struct _EventLogProxyClass EventLogProxyClass; |
| typedef struct _EventLogProxyPrivate EventLogProxyPrivate; |
| |
| struct _EventLogProxy |
| { |
| /*< private >*/ |
| GDBusProxy parent_instance; |
| EventLogProxyPrivate *priv; |
| }; |
| |
| struct _EventLogProxyClass |
| { |
| GDBusProxyClass parent_class; |
| }; |
| |
| GType event_log_proxy_get_type (void) G_GNUC_CONST; |
| |
| void event_log_proxy_new ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| EventLog *event_log_proxy_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| EventLog *event_log_proxy_new_sync ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void event_log_proxy_new_for_bus ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| EventLog *event_log_proxy_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| EventLog *event_log_proxy_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ()) |
| #define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton)) |
| #define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| #define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| #define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON)) |
| #define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON)) |
| |
| typedef struct _EventLogSkeleton EventLogSkeleton; |
| typedef struct _EventLogSkeletonClass EventLogSkeletonClass; |
| typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate; |
| |
| struct _EventLogSkeleton |
| { |
| /*< private >*/ |
| GDBusInterfaceSkeleton parent_instance; |
| EventLogSkeletonPrivate *priv; |
| }; |
| |
| struct _EventLogSkeletonClass |
| { |
| GDBusInterfaceSkeletonClass parent_class; |
| }; |
| |
| GType event_log_skeleton_get_type (void) G_GNUC_CONST; |
| |
| EventLog *event_log_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; |
| |
| Control *object_get_control (Object *object); |
| ControlHost *object_get_control_host (Object *object); |
| ControlPower *object_get_control_power (Object *object); |
| EventLog *object_get_event_log (Object *object); |
| Control *object_peek_control (Object *object); |
| ControlHost *object_peek_control_host (Object *object); |
| ControlPower *object_peek_control_power (Object *object); |
| EventLog *object_peek_event_log (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 (ObjectSkeleton *object, Control *interface_); |
| void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_); |
| void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_); |
| void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *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_CONTROL_H__ */ |