~chunsang/+junk/powerd

« back to all changes in this revision

Viewing changes to src/powerd-dbus.h

  • Committer: Matthew Fischer
  • Date: 2013-05-14 19:57:42 UTC
  • mto: (9.5.1 mfisch)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: matthew.fischer@canonical.com-20130514195742-0vcbjaom3hncq51u
initial code that talks on dbus

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Generated by gdbus-codegen 2.36.0. 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 __POWERD_DBUS_H__
 
8
#define __POWERD_DBUS_H__
 
9
 
 
10
#include <gio/gio.h>
 
11
 
 
12
G_BEGIN_DECLS
 
13
 
 
14
 
 
15
/* ------------------------------------------------------------------------ */
 
16
/* Declarations for com.canonical.powerd */
 
17
 
 
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))
 
22
 
 
23
struct _ComCanonicalPowerd;
 
24
typedef struct _ComCanonicalPowerd ComCanonicalPowerd;
 
25
typedef struct _ComCanonicalPowerdIface ComCanonicalPowerdIface;
 
26
 
 
27
struct _ComCanonicalPowerdIface
 
28
{
 
29
  GTypeInterface parent_iface;
 
30
 
 
31
 
 
32
  gboolean (*handle_list_requests) (
 
33
    ComCanonicalPowerd *object,
 
34
    GDBusMethodInvocation *invocation);
 
35
 
 
36
  gboolean (*handle_request_state) (
 
37
    ComCanonicalPowerd *object,
 
38
    GDBusMethodInvocation *invocation,
 
39
    const gchar *arg_requestName,
 
40
    gint arg_requestState);
 
41
 
 
42
  const gchar * (*get_display_power_state) (ComCanonicalPowerd *object);
 
43
 
 
44
  const gchar * (*get_system_power_state) (ComCanonicalPowerd *object);
 
45
 
 
46
};
 
47
 
 
48
GType com_canonical_powerd_get_type (void) G_GNUC_CONST;
 
49
 
 
50
GDBusInterfaceInfo *com_canonical_powerd_interface_info (void);
 
51
guint com_canonical_powerd_override_properties (GObjectClass *klass, guint property_id_begin);
 
52
 
 
53
 
 
54
/* D-Bus method call completion functions: */
 
55
void com_canonical_powerd_complete_request_state (
 
56
    ComCanonicalPowerd *object,
 
57
    GDBusMethodInvocation *invocation);
 
58
 
 
59
void com_canonical_powerd_complete_list_requests (
 
60
    ComCanonicalPowerd *object,
 
61
    GDBusMethodInvocation *invocation);
 
62
 
 
63
 
 
64
 
 
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,
 
72
    gpointer user_data);
 
73
 
 
74
gboolean com_canonical_powerd_call_request_state_finish (
 
75
    ComCanonicalPowerd *proxy,
 
76
    GAsyncResult *res,
 
77
    GError **error);
 
78
 
 
79
gboolean com_canonical_powerd_call_request_state_sync (
 
80
    ComCanonicalPowerd *proxy,
 
81
    const gchar *arg_requestName,
 
82
    gint arg_requestState,
 
83
    GCancellable *cancellable,
 
84
    GError **error);
 
85
 
 
86
void com_canonical_powerd_call_list_requests (
 
87
    ComCanonicalPowerd *proxy,
 
88
    GCancellable *cancellable,
 
89
    GAsyncReadyCallback callback,
 
90
    gpointer user_data);
 
91
 
 
92
gboolean com_canonical_powerd_call_list_requests_finish (
 
93
    ComCanonicalPowerd *proxy,
 
94
    GAsyncResult *res,
 
95
    GError **error);
 
96
 
 
97
gboolean com_canonical_powerd_call_list_requests_sync (
 
98
    ComCanonicalPowerd *proxy,
 
99
    GCancellable *cancellable,
 
100
    GError **error);
 
101
 
 
102
 
 
103
 
 
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);
 
108
 
 
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);
 
112
 
 
113
 
 
114
/* ---- */
 
115
 
 
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))
 
122
 
 
123
typedef struct _ComCanonicalPowerdProxy ComCanonicalPowerdProxy;
 
124
typedef struct _ComCanonicalPowerdProxyClass ComCanonicalPowerdProxyClass;
 
125
typedef struct _ComCanonicalPowerdProxyPrivate ComCanonicalPowerdProxyPrivate;
 
126
 
 
127
struct _ComCanonicalPowerdProxy
 
128
{
 
129
  /*< private >*/
 
130
  GDBusProxy parent_instance;
 
131
  ComCanonicalPowerdProxyPrivate *priv;
 
132
};
 
133
 
 
134
struct _ComCanonicalPowerdProxyClass
 
135
{
 
136
  GDBusProxyClass parent_class;
 
137
};
 
138
 
 
139
GType com_canonical_powerd_proxy_get_type (void) G_GNUC_CONST;
 
140
 
 
141
void com_canonical_powerd_proxy_new (
 
142
    GDBusConnection     *connection,
 
143
    GDBusProxyFlags      flags,
 
144
    const gchar         *name,
 
145
    const gchar         *object_path,
 
146
    GCancellable        *cancellable,
 
147
    GAsyncReadyCallback  callback,
 
148
    gpointer             user_data);
 
149
ComCanonicalPowerd *com_canonical_powerd_proxy_new_finish (
 
150
    GAsyncResult        *res,
 
151
    GError             **error);
 
152
ComCanonicalPowerd *com_canonical_powerd_proxy_new_sync (
 
153
    GDBusConnection     *connection,
 
154
    GDBusProxyFlags      flags,
 
155
    const gchar         *name,
 
156
    const gchar         *object_path,
 
157
    GCancellable        *cancellable,
 
158
    GError             **error);
 
159
 
 
160
void com_canonical_powerd_proxy_new_for_bus (
 
161
    GBusType             bus_type,
 
162
    GDBusProxyFlags      flags,
 
163
    const gchar         *name,
 
164
    const gchar         *object_path,
 
165
    GCancellable        *cancellable,
 
166
    GAsyncReadyCallback  callback,
 
167
    gpointer             user_data);
 
168
ComCanonicalPowerd *com_canonical_powerd_proxy_new_for_bus_finish (
 
169
    GAsyncResult        *res,
 
170
    GError             **error);
 
171
ComCanonicalPowerd *com_canonical_powerd_proxy_new_for_bus_sync (
 
172
    GBusType             bus_type,
 
173
    GDBusProxyFlags      flags,
 
174
    const gchar         *name,
 
175
    const gchar         *object_path,
 
176
    GCancellable        *cancellable,
 
177
    GError             **error);
 
178
 
 
179
 
 
180
/* ---- */
 
181
 
 
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))
 
188
 
 
189
typedef struct _ComCanonicalPowerdSkeleton ComCanonicalPowerdSkeleton;
 
190
typedef struct _ComCanonicalPowerdSkeletonClass ComCanonicalPowerdSkeletonClass;
 
191
typedef struct _ComCanonicalPowerdSkeletonPrivate ComCanonicalPowerdSkeletonPrivate;
 
192
 
 
193
struct _ComCanonicalPowerdSkeleton
 
194
{
 
195
  /*< private >*/
 
196
  GDBusInterfaceSkeleton parent_instance;
 
197
  ComCanonicalPowerdSkeletonPrivate *priv;
 
198
};
 
199
 
 
200
struct _ComCanonicalPowerdSkeletonClass
 
201
{
 
202
  GDBusInterfaceSkeletonClass parent_class;
 
203
};
 
204
 
 
205
GType com_canonical_powerd_skeleton_get_type (void) G_GNUC_CONST;
 
206
 
 
207
ComCanonicalPowerd *com_canonical_powerd_skeleton_new (void);
 
208
 
 
209
 
 
210
G_END_DECLS
 
211
 
 
212
#endif /* __POWERD_DBUS_H__ */