~xavi-garcia-mena/ubuntu/vivid/upower/percentages-power-off

« back to all changes in this revision

Viewing changes to src/up-qos-glue.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-02-16 10:16:24 UTC
  • Revision ID: james.westby@ubuntu.com-20100216101624-2cmwqsr1ndftdd87
Tags: upstream-0.9.0+git20100216.72bb2
ImportĀ upstreamĀ versionĀ 0.9.0+git20100216.72bb2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Generated by dbus-binding-tool; do not edit! */
 
2
 
 
3
 
 
4
#ifndef __dbus_glib_marshal_up_qos_MARSHAL_H__
 
5
#define __dbus_glib_marshal_up_qos_MARSHAL_H__
 
6
 
 
7
#include        <glib-object.h>
 
8
 
 
9
G_BEGIN_DECLS
 
10
 
 
11
#ifdef G_ENABLE_DEBUG
 
12
#define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
 
13
#define g_marshal_value_peek_char(v)     g_value_get_char (v)
 
14
#define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
 
15
#define g_marshal_value_peek_int(v)      g_value_get_int (v)
 
16
#define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
 
17
#define g_marshal_value_peek_long(v)     g_value_get_long (v)
 
18
#define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
 
19
#define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
 
20
#define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
 
21
#define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
 
22
#define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
 
23
#define g_marshal_value_peek_float(v)    g_value_get_float (v)
 
24
#define g_marshal_value_peek_double(v)   g_value_get_double (v)
 
25
#define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
 
26
#define g_marshal_value_peek_param(v)    g_value_get_param (v)
 
27
#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
 
28
#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
 
29
#define g_marshal_value_peek_object(v)   g_value_get_object (v)
 
30
#else /* !G_ENABLE_DEBUG */
 
31
/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
 
32
 *          Do not access GValues directly in your code. Instead, use the
 
33
 *          g_value_get_*() functions
 
34
 */
 
35
#define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
 
36
#define g_marshal_value_peek_char(v)     (v)->data[0].v_int
 
37
#define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
 
38
#define g_marshal_value_peek_int(v)      (v)->data[0].v_int
 
39
#define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
 
40
#define g_marshal_value_peek_long(v)     (v)->data[0].v_long
 
41
#define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
 
42
#define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
 
43
#define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
 
44
#define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
 
45
#define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
 
46
#define g_marshal_value_peek_float(v)    (v)->data[0].v_float
 
47
#define g_marshal_value_peek_double(v)   (v)->data[0].v_double
 
48
#define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
 
49
#define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
 
50
#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
 
51
#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
 
52
#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
 
53
#endif /* !G_ENABLE_DEBUG */
 
54
 
 
55
 
 
56
/* NONE:STRING,UINT,POINTER */
 
57
extern void dbus_glib_marshal_up_qos_VOID__STRING_UINT_POINTER (GClosure     *closure,
 
58
                                                                GValue       *return_value,
 
59
                                                                guint         n_param_values,
 
60
                                                                const GValue *param_values,
 
61
                                                                gpointer      invocation_hint,
 
62
                                                                gpointer      marshal_data);
 
63
void
 
64
dbus_glib_marshal_up_qos_VOID__STRING_UINT_POINTER (GClosure     *closure,
 
65
                                                    GValue       *return_value G_GNUC_UNUSED,
 
66
                                                    guint         n_param_values,
 
67
                                                    const GValue *param_values,
 
68
                                                    gpointer      invocation_hint G_GNUC_UNUSED,
 
69
                                                    gpointer      marshal_data)
 
70
{
 
71
  typedef void (*GMarshalFunc_VOID__STRING_UINT_POINTER) (gpointer     data1,
 
72
                                                          gpointer     arg_1,
 
73
                                                          guint        arg_2,
 
74
                                                          gpointer     arg_3,
 
75
                                                          gpointer     data2);
 
76
  register GMarshalFunc_VOID__STRING_UINT_POINTER callback;
 
77
  register GCClosure *cc = (GCClosure*) closure;
 
78
  register gpointer data1, data2;
 
79
 
 
80
  g_return_if_fail (n_param_values == 4);
 
81
 
 
82
  if (G_CCLOSURE_SWAP_DATA (closure))
 
83
    {
 
84
      data1 = closure->data;
 
85
      data2 = g_value_peek_pointer (param_values + 0);
 
86
    }
 
87
  else
 
88
    {
 
89
      data1 = g_value_peek_pointer (param_values + 0);
 
90
      data2 = closure->data;
 
91
    }
 
92
  callback = (GMarshalFunc_VOID__STRING_UINT_POINTER) (marshal_data ? marshal_data : cc->callback);
 
93
 
 
94
  callback (data1,
 
95
            g_marshal_value_peek_string (param_values + 1),
 
96
            g_marshal_value_peek_uint (param_values + 2),
 
97
            g_marshal_value_peek_pointer (param_values + 3),
 
98
            data2);
 
99
}
 
100
#define dbus_glib_marshal_up_qos_NONE__STRING_UINT_POINTER      dbus_glib_marshal_up_qos_VOID__STRING_UINT_POINTER
 
101
 
 
102
/* NONE:STRING,INT,BOOLEAN,POINTER */
 
103
extern void dbus_glib_marshal_up_qos_VOID__STRING_INT_BOOLEAN_POINTER (GClosure     *closure,
 
104
                                                                       GValue       *return_value,
 
105
                                                                       guint         n_param_values,
 
106
                                                                       const GValue *param_values,
 
107
                                                                       gpointer      invocation_hint,
 
108
                                                                       gpointer      marshal_data);
 
109
void
 
110
dbus_glib_marshal_up_qos_VOID__STRING_INT_BOOLEAN_POINTER (GClosure     *closure,
 
111
                                                           GValue       *return_value G_GNUC_UNUSED,
 
112
                                                           guint         n_param_values,
 
113
                                                           const GValue *param_values,
 
114
                                                           gpointer      invocation_hint G_GNUC_UNUSED,
 
115
                                                           gpointer      marshal_data)
 
116
{
 
117
  typedef void (*GMarshalFunc_VOID__STRING_INT_BOOLEAN_POINTER) (gpointer     data1,
 
118
                                                                 gpointer     arg_1,
 
119
                                                                 gint         arg_2,
 
120
                                                                 gboolean     arg_3,
 
121
                                                                 gpointer     arg_4,
 
122
                                                                 gpointer     data2);
 
123
  register GMarshalFunc_VOID__STRING_INT_BOOLEAN_POINTER callback;
 
124
  register GCClosure *cc = (GCClosure*) closure;
 
125
  register gpointer data1, data2;
 
126
 
 
127
  g_return_if_fail (n_param_values == 5);
 
128
 
 
129
  if (G_CCLOSURE_SWAP_DATA (closure))
 
130
    {
 
131
      data1 = closure->data;
 
132
      data2 = g_value_peek_pointer (param_values + 0);
 
133
    }
 
134
  else
 
135
    {
 
136
      data1 = g_value_peek_pointer (param_values + 0);
 
137
      data2 = closure->data;
 
138
    }
 
139
  callback = (GMarshalFunc_VOID__STRING_INT_BOOLEAN_POINTER) (marshal_data ? marshal_data : cc->callback);
 
140
 
 
141
  callback (data1,
 
142
            g_marshal_value_peek_string (param_values + 1),
 
143
            g_marshal_value_peek_int (param_values + 2),
 
144
            g_marshal_value_peek_boolean (param_values + 3),
 
145
            g_marshal_value_peek_pointer (param_values + 4),
 
146
            data2);
 
147
}
 
148
#define dbus_glib_marshal_up_qos_NONE__STRING_INT_BOOLEAN_POINTER       dbus_glib_marshal_up_qos_VOID__STRING_INT_BOOLEAN_POINTER
 
149
 
 
150
/* BOOLEAN:STRING,POINTER,POINTER */
 
151
extern void dbus_glib_marshal_up_qos_BOOLEAN__STRING_POINTER_POINTER (GClosure     *closure,
 
152
                                                                      GValue       *return_value,
 
153
                                                                      guint         n_param_values,
 
154
                                                                      const GValue *param_values,
 
155
                                                                      gpointer      invocation_hint,
 
156
                                                                      gpointer      marshal_data);
 
157
void
 
158
dbus_glib_marshal_up_qos_BOOLEAN__STRING_POINTER_POINTER (GClosure     *closure,
 
159
                                                          GValue       *return_value G_GNUC_UNUSED,
 
160
                                                          guint         n_param_values,
 
161
                                                          const GValue *param_values,
 
162
                                                          gpointer      invocation_hint G_GNUC_UNUSED,
 
163
                                                          gpointer      marshal_data)
 
164
{
 
165
  typedef gboolean (*GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (gpointer     data1,
 
166
                                                                    gpointer     arg_1,
 
167
                                                                    gpointer     arg_2,
 
168
                                                                    gpointer     arg_3,
 
169
                                                                    gpointer     data2);
 
170
  register GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER callback;
 
171
  register GCClosure *cc = (GCClosure*) closure;
 
172
  register gpointer data1, data2;
 
173
  gboolean v_return;
 
174
 
 
175
  g_return_if_fail (return_value != NULL);
 
176
  g_return_if_fail (n_param_values == 4);
 
177
 
 
178
  if (G_CCLOSURE_SWAP_DATA (closure))
 
179
    {
 
180
      data1 = closure->data;
 
181
      data2 = g_value_peek_pointer (param_values + 0);
 
182
    }
 
183
  else
 
184
    {
 
185
      data1 = g_value_peek_pointer (param_values + 0);
 
186
      data2 = closure->data;
 
187
    }
 
188
  callback = (GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
 
189
 
 
190
  v_return = callback (data1,
 
191
                       g_marshal_value_peek_string (param_values + 1),
 
192
                       g_marshal_value_peek_pointer (param_values + 2),
 
193
                       g_marshal_value_peek_pointer (param_values + 3),
 
194
                       data2);
 
195
 
 
196
  g_value_set_boolean (return_value, v_return);
 
197
}
 
198
 
 
199
/* NONE:STRING,INT,POINTER */
 
200
extern void dbus_glib_marshal_up_qos_VOID__STRING_INT_POINTER (GClosure     *closure,
 
201
                                                               GValue       *return_value,
 
202
                                                               guint         n_param_values,
 
203
                                                               const GValue *param_values,
 
204
                                                               gpointer      invocation_hint,
 
205
                                                               gpointer      marshal_data);
 
206
void
 
207
dbus_glib_marshal_up_qos_VOID__STRING_INT_POINTER (GClosure     *closure,
 
208
                                                   GValue       *return_value G_GNUC_UNUSED,
 
209
                                                   guint         n_param_values,
 
210
                                                   const GValue *param_values,
 
211
                                                   gpointer      invocation_hint G_GNUC_UNUSED,
 
212
                                                   gpointer      marshal_data)
 
213
{
 
214
  typedef void (*GMarshalFunc_VOID__STRING_INT_POINTER) (gpointer     data1,
 
215
                                                         gpointer     arg_1,
 
216
                                                         gint         arg_2,
 
217
                                                         gpointer     arg_3,
 
218
                                                         gpointer     data2);
 
219
  register GMarshalFunc_VOID__STRING_INT_POINTER callback;
 
220
  register GCClosure *cc = (GCClosure*) closure;
 
221
  register gpointer data1, data2;
 
222
 
 
223
  g_return_if_fail (n_param_values == 4);
 
224
 
 
225
  if (G_CCLOSURE_SWAP_DATA (closure))
 
226
    {
 
227
      data1 = closure->data;
 
228
      data2 = g_value_peek_pointer (param_values + 0);
 
229
    }
 
230
  else
 
231
    {
 
232
      data1 = g_value_peek_pointer (param_values + 0);
 
233
      data2 = closure->data;
 
234
    }
 
235
  callback = (GMarshalFunc_VOID__STRING_INT_POINTER) (marshal_data ? marshal_data : cc->callback);
 
236
 
 
237
  callback (data1,
 
238
            g_marshal_value_peek_string (param_values + 1),
 
239
            g_marshal_value_peek_int (param_values + 2),
 
240
            g_marshal_value_peek_pointer (param_values + 3),
 
241
            data2);
 
242
}
 
243
#define dbus_glib_marshal_up_qos_NONE__STRING_INT_POINTER       dbus_glib_marshal_up_qos_VOID__STRING_INT_POINTER
 
244
 
 
245
/* BOOLEAN:POINTER,POINTER */
 
246
extern void dbus_glib_marshal_up_qos_BOOLEAN__POINTER_POINTER (GClosure     *closure,
 
247
                                                               GValue       *return_value,
 
248
                                                               guint         n_param_values,
 
249
                                                               const GValue *param_values,
 
250
                                                               gpointer      invocation_hint,
 
251
                                                               gpointer      marshal_data);
 
252
void
 
253
dbus_glib_marshal_up_qos_BOOLEAN__POINTER_POINTER (GClosure     *closure,
 
254
                                                   GValue       *return_value G_GNUC_UNUSED,
 
255
                                                   guint         n_param_values,
 
256
                                                   const GValue *param_values,
 
257
                                                   gpointer      invocation_hint G_GNUC_UNUSED,
 
258
                                                   gpointer      marshal_data)
 
259
{
 
260
  typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER) (gpointer     data1,
 
261
                                                             gpointer     arg_1,
 
262
                                                             gpointer     arg_2,
 
263
                                                             gpointer     data2);
 
264
  register GMarshalFunc_BOOLEAN__POINTER_POINTER callback;
 
265
  register GCClosure *cc = (GCClosure*) closure;
 
266
  register gpointer data1, data2;
 
267
  gboolean v_return;
 
268
 
 
269
  g_return_if_fail (return_value != NULL);
 
270
  g_return_if_fail (n_param_values == 3);
 
271
 
 
272
  if (G_CCLOSURE_SWAP_DATA (closure))
 
273
    {
 
274
      data1 = closure->data;
 
275
      data2 = g_value_peek_pointer (param_values + 0);
 
276
    }
 
277
  else
 
278
    {
 
279
      data1 = g_value_peek_pointer (param_values + 0);
 
280
      data2 = closure->data;
 
281
    }
 
282
  callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
 
283
 
 
284
  v_return = callback (data1,
 
285
                       g_marshal_value_peek_pointer (param_values + 1),
 
286
                       g_marshal_value_peek_pointer (param_values + 2),
 
287
                       data2);
 
288
 
 
289
  g_value_set_boolean (return_value, v_return);
 
290
}
 
291
 
 
292
G_END_DECLS
 
293
 
 
294
#endif /* __dbus_glib_marshal_up_qos_MARSHAL_H__ */
 
295
 
 
296
#include <dbus/dbus-glib.h>
 
297
static const DBusGMethodInfo dbus_glib_up_qos_methods[] = {
 
298
  { (GCallback) up_qos_set_minimum_latency, dbus_glib_marshal_up_qos_NONE__STRING_INT_POINTER, 0 },
 
299
  { (GCallback) up_qos_request_latency, dbus_glib_marshal_up_qos_NONE__STRING_INT_BOOLEAN_POINTER, 67 },
 
300
  { (GCallback) up_qos_cancel_request, dbus_glib_marshal_up_qos_NONE__STRING_UINT_POINTER, 161 },
 
301
  { (GCallback) up_qos_get_latency, dbus_glib_marshal_up_qos_BOOLEAN__STRING_POINTER_POINTER, 225 },
 
302
  { (GCallback) up_qos_get_latency_requests, dbus_glib_marshal_up_qos_BOOLEAN__POINTER_POINTER, 289 },
 
303
};
 
304
 
 
305
const DBusGObjectInfo dbus_glib_up_qos_object_info = {
 
306
  0,
 
307
  dbus_glib_up_qos_methods,
 
308
  5,
 
309
"org.freedesktop.UPower.QoS\0SetMinimumLatency\0A\0type\0I\0s\0value\0I\0i\0\0org.freedesktop.UPower.QoS\0RequestLatency\0A\0type\0I\0s\0value\0I\0i\0persistent\0I\0b\0cookie\0O\0F\0N\0u\0\0org.freedesktop.UPower.QoS\0CancelRequest\0A\0type\0I\0s\0cookie\0I\0u\0\0org.freedesktop.UPower.QoS\0GetLatency\0S\0type\0I\0s\0value\0O\0F\0N\0i\0\0org.freedesktop.UPower.QoS\0GetLatencyRequests\0S\0requests\0O\0F\0N\0a(uuusxbssi)\0\0\0",
 
310
"org.freedesktop.UPower.QoS\0LatencyChanged\0org.freedesktop.UPower.QoS\0RequestsChanged\0\0",
 
311
"\0"
 
312
};
 
313