2
* This file is a part of the Cairo-Dock project
4
* Copyright : (C) see the 'copyright' file.
5
* E-mail : see the 'copyright' file.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#include <dbus/dbus-glib.h>
23
#include <dbus/dbus-glib-bindings.h>
25
#include "interface-main-methods.h"
26
#include "dbus-main-spec.h"
27
#include "applet-marshallers.h"
29
void cd_dbus_marshal_VOID__INT_STRING (GClosure *closure,
30
GValue *return_value G_GNUC_UNUSED,
32
const GValue *param_values,
33
gpointer invocation_hint G_GNUC_UNUSED,
34
gpointer marshal_data)
36
//g_print ("%s ()\n", __func__);
37
typedef void (*GMarshalFunc_VOID__INT_STRING) (gpointer data1,
41
register GMarshalFunc_VOID__INT_STRING callback;
42
register GCClosure *cc = (GCClosure*) closure;
43
register gpointer data1, data2;
44
g_return_if_fail (n_param_values == 3); // return_value est NULL ici, car la callback ne renvoit rien.
46
if (G_CCLOSURE_SWAP_DATA (closure))
48
data1 = closure->data;
49
data2 = g_value_peek_pointer (param_values + 0);
53
data1 = g_value_peek_pointer (param_values + 0);
54
data2 = closure->data;
56
callback = (GMarshalFunc_VOID__INT_STRING) (marshal_data ? marshal_data : cc->callback);
59
g_marshal_value_peek_int (param_values + 1),
60
g_marshal_value_peek_string (param_values + 2),
63
void cd_dbus_marshal_VOID__BOOLEAN_STRING (GClosure *closure,
64
GValue *return_value G_GNUC_UNUSED,
66
const GValue *param_values,
67
gpointer invocation_hint G_GNUC_UNUSED,
68
gpointer marshal_data)
70
//g_print ("%s ()\n", __func__);
71
typedef void (*GMarshalFunc_VOID__BOOLEAN_STRING) (gpointer data1,
75
register GMarshalFunc_VOID__BOOLEAN_STRING callback;
76
register GCClosure *cc = (GCClosure*) closure;
77
register gpointer data1, data2;
78
g_return_if_fail (n_param_values == 3); // return_value est NULL ici, car la callback ne renvoit rien.
80
if (G_CCLOSURE_SWAP_DATA (closure))
82
data1 = closure->data;
83
data2 = g_value_peek_pointer (param_values + 0);
87
data1 = g_value_peek_pointer (param_values + 0);
88
data2 = closure->data;
90
callback = (GMarshalFunc_VOID__BOOLEAN_STRING) (marshal_data ? marshal_data : cc->callback);
93
g_marshal_value_peek_boolean (param_values + 1),
94
g_marshal_value_peek_string (param_values + 2),
97
void cd_dbus_marshal_VOID__STRING_STRING (GClosure *closure,
98
GValue *return_value G_GNUC_UNUSED,
100
const GValue *param_values,
101
gpointer invocation_hint G_GNUC_UNUSED,
102
gpointer marshal_data)
104
//g_print ("%s ()\n", __func__);
105
typedef void (*GMarshalFunc_VOID__STRING_STRING) (gpointer data1,
109
register GMarshalFunc_VOID__STRING_STRING callback;
110
register GCClosure *cc = (GCClosure*) closure;
111
register gpointer data1, data2;
112
g_return_if_fail (n_param_values == 3); // return_value est NULL ici, car la callback ne renvoit rien.
114
if (G_CCLOSURE_SWAP_DATA (closure))
116
data1 = closure->data;
117
data2 = g_value_peek_pointer (param_values + 0);
121
data1 = g_value_peek_pointer (param_values + 0);
122
data2 = closure->data;
124
callback = (GMarshalFunc_VOID__STRING_STRING) (marshal_data ? marshal_data : cc->callback);
127
g_marshal_value_peek_string (param_values + 1),
128
g_marshal_value_peek_string (param_values + 2),
131
void cd_dbus_marshal_VOID__VALUE (GClosure *closure,
132
GValue *return_value G_GNUC_UNUSED,
133
guint n_param_values,
134
const GValue *param_values,
135
gpointer invocation_hint G_GNUC_UNUSED,
136
gpointer marshal_data)
138
//g_print ("%s ()\n", __func__);
139
typedef void (*GMarshalFunc_VOID__VALUE) (gpointer data1,
142
register GMarshalFunc_VOID__VALUE callback;
143
register GCClosure *cc = (GCClosure*) closure;
144
register gpointer data1, data2;
145
g_return_if_fail (n_param_values == 2); // return_value est NULL ici, car la callback ne renvoit rien.
147
if (G_CCLOSURE_SWAP_DATA (closure))
149
data1 = closure->data;
150
data2 = g_value_peek_pointer (param_values + 0);
154
data1 = g_value_peek_pointer (param_values + 0);
155
data2 = closure->data;
157
callback = (GMarshalFunc_VOID__VALUE) (marshal_data ? marshal_data : cc->callback);
160
g_marshal_value_peek_pointer (param_values + 1),
163
void cd_dbus_marshal_VOID__INT_VALUE (GClosure *closure,
164
GValue *return_value G_GNUC_UNUSED,
165
guint n_param_values,
166
const GValue *param_values,
167
gpointer invocation_hint G_GNUC_UNUSED,
168
gpointer marshal_data)
170
//g_print ("%s ()\n", __func__);
171
typedef void (*GMarshalFunc_VOID__INT_VALUE) (gpointer data1,
175
register GMarshalFunc_VOID__INT_VALUE callback;
176
register GCClosure *cc = (GCClosure*) closure;
177
register gpointer data1, data2;
178
g_return_if_fail (n_param_values == 3); // return_value est NULL ici, car la callback ne renvoit rien.
180
if (G_CCLOSURE_SWAP_DATA (closure))
182
data1 = closure->data;
183
data2 = g_value_peek_pointer (param_values + 0);
187
data1 = g_value_peek_pointer (param_values + 0);
188
data2 = closure->data;
190
callback = (GMarshalFunc_VOID__INT_VALUE) (marshal_data ? marshal_data : cc->callback);
193
g_marshal_value_peek_int (param_values + 1),
194
g_marshal_value_peek_pointer (param_values + 2),
197
void cd_dbus_marshal_VOID__VALUE_STRING (GClosure *closure,
198
GValue *return_value G_GNUC_UNUSED,
199
guint n_param_values,
200
const GValue *param_values,
201
gpointer invocation_hint G_GNUC_UNUSED,
202
gpointer marshal_data)
204
//g_print ("%s ()\n", __func__);
205
typedef void (*GMarshalFunc_VOID__VALUE_STRING) (gpointer data1,
209
register GMarshalFunc_VOID__VALUE_STRING callback;
210
register GCClosure *cc = (GCClosure*) closure;
211
register gpointer data1, data2;
212
g_return_if_fail (n_param_values == 3); // return_value est NULL ici, car la callback ne renvoit rien.
214
if (G_CCLOSURE_SWAP_DATA (closure))
216
data1 = closure->data;
217
data2 = g_value_peek_pointer (param_values + 0);
221
data1 = g_value_peek_pointer (param_values + 0);
222
data2 = closure->data;
224
callback = (GMarshalFunc_VOID__VALUE_STRING) (marshal_data ? marshal_data : cc->callback);
227
g_marshal_value_peek_pointer (param_values + 1),
228
g_marshal_value_peek_string (param_values + 2),