~didrocks/ubuntuone-client/dont-suffer-zg-crash

« back to all changes in this revision

Viewing changes to libsyncdaemon/syncdaemon-marshal.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2010-06-23 23:08:15 UTC
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20100623230815-4m3ugh10u9x9xzw5
Tags: upstream-1.3.2
ImportĀ upstreamĀ versionĀ 1.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
22
22
#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
23
23
#define g_marshal_value_peek_object(v)   g_value_get_object (v)
 
24
#define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
24
25
#else /* !G_ENABLE_DEBUG */
25
26
/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
26
27
 *          Do not access GValues directly in your code. Instead, use the
44
45
#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
45
46
#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
46
47
#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
 
48
#define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
47
49
#endif /* !G_ENABLE_DEBUG */
48
50
 
49
51
 
84
86
            data2);
85
87
}
86
88
 
87
 
/* NONE:POINTER,STRING (syncdaemon-marshal.list:2) */
 
89
/* NONE:STRING,OBJECT (syncdaemon-marshal.list:2) */
 
90
void
 
91
_syncdaemon_marshal_VOID__STRING_OBJECT (GClosure     *closure,
 
92
                                         GValue       *return_value G_GNUC_UNUSED,
 
93
                                         guint         n_param_values,
 
94
                                         const GValue *param_values,
 
95
                                         gpointer      invocation_hint G_GNUC_UNUSED,
 
96
                                         gpointer      marshal_data)
 
97
{
 
98
  typedef void (*GMarshalFunc_VOID__STRING_OBJECT) (gpointer     data1,
 
99
                                                    gpointer     arg_1,
 
100
                                                    gpointer     arg_2,
 
101
                                                    gpointer     data2);
 
102
  register GMarshalFunc_VOID__STRING_OBJECT callback;
 
103
  register GCClosure *cc = (GCClosure*) closure;
 
104
  register gpointer data1, data2;
 
105
 
 
106
  g_return_if_fail (n_param_values == 3);
 
107
 
 
108
  if (G_CCLOSURE_SWAP_DATA (closure))
 
109
    {
 
110
      data1 = closure->data;
 
111
      data2 = g_value_peek_pointer (param_values + 0);
 
112
    }
 
113
  else
 
114
    {
 
115
      data1 = g_value_peek_pointer (param_values + 0);
 
116
      data2 = closure->data;
 
117
    }
 
118
  callback = (GMarshalFunc_VOID__STRING_OBJECT) (marshal_data ? marshal_data : cc->callback);
 
119
 
 
120
  callback (data1,
 
121
            g_marshal_value_peek_string (param_values + 1),
 
122
            g_marshal_value_peek_object (param_values + 2),
 
123
            data2);
 
124
}
 
125
 
 
126
/* NONE:POINTER,STRING (syncdaemon-marshal.list:3) */
88
127
void
89
128
_syncdaemon_marshal_VOID__POINTER_STRING (GClosure     *closure,
90
129
                                          GValue       *return_value G_GNUC_UNUSED,
121
160
            data2);
122
161
}
123
162
 
 
163
/* NONE:BOOLEAN,POINTER (syncdaemon-marshal.list:4) */
 
164
void
 
165
_syncdaemon_marshal_VOID__BOOLEAN_POINTER (GClosure     *closure,
 
166
                                           GValue       *return_value G_GNUC_UNUSED,
 
167
                                           guint         n_param_values,
 
168
                                           const GValue *param_values,
 
169
                                           gpointer      invocation_hint G_GNUC_UNUSED,
 
170
                                           gpointer      marshal_data)
 
171
{
 
172
  typedef void (*GMarshalFunc_VOID__BOOLEAN_POINTER) (gpointer     data1,
 
173
                                                      gboolean     arg_1,
 
174
                                                      gpointer     arg_2,
 
175
                                                      gpointer     data2);
 
176
  register GMarshalFunc_VOID__BOOLEAN_POINTER callback;
 
177
  register GCClosure *cc = (GCClosure*) closure;
 
178
  register gpointer data1, data2;
 
179
 
 
180
  g_return_if_fail (n_param_values == 3);
 
181
 
 
182
  if (G_CCLOSURE_SWAP_DATA (closure))
 
183
    {
 
184
      data1 = closure->data;
 
185
      data2 = g_value_peek_pointer (param_values + 0);
 
186
    }
 
187
  else
 
188
    {
 
189
      data1 = g_value_peek_pointer (param_values + 0);
 
190
      data2 = closure->data;
 
191
    }
 
192
  callback = (GMarshalFunc_VOID__BOOLEAN_POINTER) (marshal_data ? marshal_data : cc->callback);
 
193
 
 
194
  callback (data1,
 
195
            g_marshal_value_peek_boolean (param_values + 1),
 
196
            g_marshal_value_peek_pointer (param_values + 2),
 
197
            data2);
 
198
}
 
199
 
 
200
/* NONE:BOOLEAN,OBJECT (syncdaemon-marshal.list:5) */
 
201
void
 
202
_syncdaemon_marshal_VOID__BOOLEAN_OBJECT (GClosure     *closure,
 
203
                                          GValue       *return_value G_GNUC_UNUSED,
 
204
                                          guint         n_param_values,
 
205
                                          const GValue *param_values,
 
206
                                          gpointer      invocation_hint G_GNUC_UNUSED,
 
207
                                          gpointer      marshal_data)
 
208
{
 
209
  typedef void (*GMarshalFunc_VOID__BOOLEAN_OBJECT) (gpointer     data1,
 
210
                                                     gboolean     arg_1,
 
211
                                                     gpointer     arg_2,
 
212
                                                     gpointer     data2);
 
213
  register GMarshalFunc_VOID__BOOLEAN_OBJECT callback;
 
214
  register GCClosure *cc = (GCClosure*) closure;
 
215
  register gpointer data1, data2;
 
216
 
 
217
  g_return_if_fail (n_param_values == 3);
 
218
 
 
219
  if (G_CCLOSURE_SWAP_DATA (closure))
 
220
    {
 
221
      data1 = closure->data;
 
222
      data2 = g_value_peek_pointer (param_values + 0);
 
223
    }
 
224
  else
 
225
    {
 
226
      data1 = g_value_peek_pointer (param_values + 0);
 
227
      data2 = closure->data;
 
228
    }
 
229
  callback = (GMarshalFunc_VOID__BOOLEAN_OBJECT) (marshal_data ? marshal_data : cc->callback);
 
230
 
 
231
  callback (data1,
 
232
            g_marshal_value_peek_boolean (param_values + 1),
 
233
            g_marshal_value_peek_object (param_values + 2),
 
234
            data2);
 
235
}
 
236