1
/* Generated by dbus-binding-tool; do not edit! */
4
#ifndef __dbus_glib_marshal_up_qos_MARSHAL_H__
5
#define __dbus_glib_marshal_up_qos_MARSHAL_H__
7
#include <glib-object.h>
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
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 */
56
/* NONE:STRING,UINT,POINTER */
57
extern void dbus_glib_marshal_up_qos_VOID__STRING_UINT_POINTER (GClosure *closure,
60
const GValue *param_values,
61
gpointer invocation_hint,
62
gpointer marshal_data);
64
dbus_glib_marshal_up_qos_VOID__STRING_UINT_POINTER (GClosure *closure,
65
GValue *return_value G_GNUC_UNUSED,
67
const GValue *param_values,
68
gpointer invocation_hint G_GNUC_UNUSED,
69
gpointer marshal_data)
71
typedef void (*GMarshalFunc_VOID__STRING_UINT_POINTER) (gpointer data1,
76
register GMarshalFunc_VOID__STRING_UINT_POINTER callback;
77
register GCClosure *cc = (GCClosure*) closure;
78
register gpointer data1, data2;
80
g_return_if_fail (n_param_values == 4);
82
if (G_CCLOSURE_SWAP_DATA (closure))
84
data1 = closure->data;
85
data2 = g_value_peek_pointer (param_values + 0);
89
data1 = g_value_peek_pointer (param_values + 0);
90
data2 = closure->data;
92
callback = (GMarshalFunc_VOID__STRING_UINT_POINTER) (marshal_data ? marshal_data : cc->callback);
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),
100
#define dbus_glib_marshal_up_qos_NONE__STRING_UINT_POINTER dbus_glib_marshal_up_qos_VOID__STRING_UINT_POINTER
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);
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)
117
typedef void (*GMarshalFunc_VOID__STRING_INT_BOOLEAN_POINTER) (gpointer data1,
123
register GMarshalFunc_VOID__STRING_INT_BOOLEAN_POINTER callback;
124
register GCClosure *cc = (GCClosure*) closure;
125
register gpointer data1, data2;
127
g_return_if_fail (n_param_values == 5);
129
if (G_CCLOSURE_SWAP_DATA (closure))
131
data1 = closure->data;
132
data2 = g_value_peek_pointer (param_values + 0);
136
data1 = g_value_peek_pointer (param_values + 0);
137
data2 = closure->data;
139
callback = (GMarshalFunc_VOID__STRING_INT_BOOLEAN_POINTER) (marshal_data ? marshal_data : cc->callback);
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),
148
#define dbus_glib_marshal_up_qos_NONE__STRING_INT_BOOLEAN_POINTER dbus_glib_marshal_up_qos_VOID__STRING_INT_BOOLEAN_POINTER
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);
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)
165
typedef gboolean (*GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (gpointer data1,
170
register GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER callback;
171
register GCClosure *cc = (GCClosure*) closure;
172
register gpointer data1, data2;
175
g_return_if_fail (return_value != NULL);
176
g_return_if_fail (n_param_values == 4);
178
if (G_CCLOSURE_SWAP_DATA (closure))
180
data1 = closure->data;
181
data2 = g_value_peek_pointer (param_values + 0);
185
data1 = g_value_peek_pointer (param_values + 0);
186
data2 = closure->data;
188
callback = (GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
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),
196
g_value_set_boolean (return_value, v_return);
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);
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)
214
typedef void (*GMarshalFunc_VOID__STRING_INT_POINTER) (gpointer data1,
219
register GMarshalFunc_VOID__STRING_INT_POINTER callback;
220
register GCClosure *cc = (GCClosure*) closure;
221
register gpointer data1, data2;
223
g_return_if_fail (n_param_values == 4);
225
if (G_CCLOSURE_SWAP_DATA (closure))
227
data1 = closure->data;
228
data2 = g_value_peek_pointer (param_values + 0);
232
data1 = g_value_peek_pointer (param_values + 0);
233
data2 = closure->data;
235
callback = (GMarshalFunc_VOID__STRING_INT_POINTER) (marshal_data ? marshal_data : cc->callback);
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),
243
#define dbus_glib_marshal_up_qos_NONE__STRING_INT_POINTER dbus_glib_marshal_up_qos_VOID__STRING_INT_POINTER
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);
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)
260
typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER) (gpointer data1,
264
register GMarshalFunc_BOOLEAN__POINTER_POINTER callback;
265
register GCClosure *cc = (GCClosure*) closure;
266
register gpointer data1, data2;
269
g_return_if_fail (return_value != NULL);
270
g_return_if_fail (n_param_values == 3);
272
if (G_CCLOSURE_SWAP_DATA (closure))
274
data1 = closure->data;
275
data2 = g_value_peek_pointer (param_values + 0);
279
data1 = g_value_peek_pointer (param_values + 0);
280
data2 = closure->data;
282
callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
284
v_return = callback (data1,
285
g_marshal_value_peek_pointer (param_values + 1),
286
g_marshal_value_peek_pointer (param_values + 2),
289
g_value_set_boolean (return_value, v_return);
294
#endif /* __dbus_glib_marshal_up_qos_MARSHAL_H__ */
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 },
305
const DBusGObjectInfo dbus_glib_up_qos_object_info = {
307
dbus_glib_up_qos_methods,
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",