2
* Generated by gdbus-codegen 2.36.0. DO NOT EDIT.
4
* The license of this code is the same as for the source it was derived from.
7
#ifndef __POWERD_DBUS_H__
8
#define __POWERD_DBUS_H__
15
/* ------------------------------------------------------------------------ */
16
/* Declarations for com.canonical.powerd */
18
#define TYPE_COM_CANONICAL_POWERD (com_canonical_powerd_get_type ())
19
#define COM_CANONICAL_POWERD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_CANONICAL_POWERD, ComCanonicalPowerd))
20
#define IS_COM_CANONICAL_POWERD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_CANONICAL_POWERD))
21
#define COM_CANONICAL_POWERD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_CANONICAL_POWERD, ComCanonicalPowerdIface))
23
struct _ComCanonicalPowerd;
24
typedef struct _ComCanonicalPowerd ComCanonicalPowerd;
25
typedef struct _ComCanonicalPowerdIface ComCanonicalPowerdIface;
27
struct _ComCanonicalPowerdIface
29
GTypeInterface parent_iface;
32
gboolean (*handle_list_requests) (
33
ComCanonicalPowerd *object,
34
GDBusMethodInvocation *invocation);
36
gboolean (*handle_request_state) (
37
ComCanonicalPowerd *object,
38
GDBusMethodInvocation *invocation,
39
const gchar *arg_requestName,
40
gint arg_requestState);
42
const gchar * (*get_display_power_state) (ComCanonicalPowerd *object);
44
const gchar * (*get_system_power_state) (ComCanonicalPowerd *object);
48
GType com_canonical_powerd_get_type (void) G_GNUC_CONST;
50
GDBusInterfaceInfo *com_canonical_powerd_interface_info (void);
51
guint com_canonical_powerd_override_properties (GObjectClass *klass, guint property_id_begin);
54
/* D-Bus method call completion functions: */
55
void com_canonical_powerd_complete_request_state (
56
ComCanonicalPowerd *object,
57
GDBusMethodInvocation *invocation);
59
void com_canonical_powerd_complete_list_requests (
60
ComCanonicalPowerd *object,
61
GDBusMethodInvocation *invocation);
65
/* D-Bus method calls: */
66
void com_canonical_powerd_call_request_state (
67
ComCanonicalPowerd *proxy,
68
const gchar *arg_requestName,
69
gint arg_requestState,
70
GCancellable *cancellable,
71
GAsyncReadyCallback callback,
74
gboolean com_canonical_powerd_call_request_state_finish (
75
ComCanonicalPowerd *proxy,
79
gboolean com_canonical_powerd_call_request_state_sync (
80
ComCanonicalPowerd *proxy,
81
const gchar *arg_requestName,
82
gint arg_requestState,
83
GCancellable *cancellable,
86
void com_canonical_powerd_call_list_requests (
87
ComCanonicalPowerd *proxy,
88
GCancellable *cancellable,
89
GAsyncReadyCallback callback,
92
gboolean com_canonical_powerd_call_list_requests_finish (
93
ComCanonicalPowerd *proxy,
97
gboolean com_canonical_powerd_call_list_requests_sync (
98
ComCanonicalPowerd *proxy,
99
GCancellable *cancellable,
104
/* D-Bus property accessors: */
105
const gchar *com_canonical_powerd_get_system_power_state (ComCanonicalPowerd *object);
106
gchar *com_canonical_powerd_dup_system_power_state (ComCanonicalPowerd *object);
107
void com_canonical_powerd_set_system_power_state (ComCanonicalPowerd *object, const gchar *value);
109
const gchar *com_canonical_powerd_get_display_power_state (ComCanonicalPowerd *object);
110
gchar *com_canonical_powerd_dup_display_power_state (ComCanonicalPowerd *object);
111
void com_canonical_powerd_set_display_power_state (ComCanonicalPowerd *object, const gchar *value);
116
#define TYPE_COM_CANONICAL_POWERD_PROXY (com_canonical_powerd_proxy_get_type ())
117
#define COM_CANONICAL_POWERD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_CANONICAL_POWERD_PROXY, ComCanonicalPowerdProxy))
118
#define COM_CANONICAL_POWERD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_CANONICAL_POWERD_PROXY, ComCanonicalPowerdProxyClass))
119
#define COM_CANONICAL_POWERD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_CANONICAL_POWERD_PROXY, ComCanonicalPowerdProxyClass))
120
#define IS_COM_CANONICAL_POWERD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_CANONICAL_POWERD_PROXY))
121
#define IS_COM_CANONICAL_POWERD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_CANONICAL_POWERD_PROXY))
123
typedef struct _ComCanonicalPowerdProxy ComCanonicalPowerdProxy;
124
typedef struct _ComCanonicalPowerdProxyClass ComCanonicalPowerdProxyClass;
125
typedef struct _ComCanonicalPowerdProxyPrivate ComCanonicalPowerdProxyPrivate;
127
struct _ComCanonicalPowerdProxy
130
GDBusProxy parent_instance;
131
ComCanonicalPowerdProxyPrivate *priv;
134
struct _ComCanonicalPowerdProxyClass
136
GDBusProxyClass parent_class;
139
GType com_canonical_powerd_proxy_get_type (void) G_GNUC_CONST;
141
void com_canonical_powerd_proxy_new (
142
GDBusConnection *connection,
143
GDBusProxyFlags flags,
145
const gchar *object_path,
146
GCancellable *cancellable,
147
GAsyncReadyCallback callback,
149
ComCanonicalPowerd *com_canonical_powerd_proxy_new_finish (
152
ComCanonicalPowerd *com_canonical_powerd_proxy_new_sync (
153
GDBusConnection *connection,
154
GDBusProxyFlags flags,
156
const gchar *object_path,
157
GCancellable *cancellable,
160
void com_canonical_powerd_proxy_new_for_bus (
162
GDBusProxyFlags flags,
164
const gchar *object_path,
165
GCancellable *cancellable,
166
GAsyncReadyCallback callback,
168
ComCanonicalPowerd *com_canonical_powerd_proxy_new_for_bus_finish (
171
ComCanonicalPowerd *com_canonical_powerd_proxy_new_for_bus_sync (
173
GDBusProxyFlags flags,
175
const gchar *object_path,
176
GCancellable *cancellable,
182
#define TYPE_COM_CANONICAL_POWERD_SKELETON (com_canonical_powerd_skeleton_get_type ())
183
#define COM_CANONICAL_POWERD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_CANONICAL_POWERD_SKELETON, ComCanonicalPowerdSkeleton))
184
#define COM_CANONICAL_POWERD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_CANONICAL_POWERD_SKELETON, ComCanonicalPowerdSkeletonClass))
185
#define COM_CANONICAL_POWERD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_CANONICAL_POWERD_SKELETON, ComCanonicalPowerdSkeletonClass))
186
#define IS_COM_CANONICAL_POWERD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_CANONICAL_POWERD_SKELETON))
187
#define IS_COM_CANONICAL_POWERD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_CANONICAL_POWERD_SKELETON))
189
typedef struct _ComCanonicalPowerdSkeleton ComCanonicalPowerdSkeleton;
190
typedef struct _ComCanonicalPowerdSkeletonClass ComCanonicalPowerdSkeletonClass;
191
typedef struct _ComCanonicalPowerdSkeletonPrivate ComCanonicalPowerdSkeletonPrivate;
193
struct _ComCanonicalPowerdSkeleton
196
GDBusInterfaceSkeleton parent_instance;
197
ComCanonicalPowerdSkeletonPrivate *priv;
200
struct _ComCanonicalPowerdSkeletonClass
202
GDBusInterfaceSkeletonClass parent_class;
205
GType com_canonical_powerd_skeleton_get_type (void) G_GNUC_CONST;
207
ComCanonicalPowerd *com_canonical_powerd_skeleton_new (void);
212
#endif /* __POWERD_DBUS_H__ */