File: | ctk/ctkdbusgenerated.c |
Warning: | line 2094, column 38 Value stored to 'skeleton' during its initialization is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* |
2 | * This file is generated by gdbus-codegen, do not modify it. |
3 | * |
4 | * The license of this code is the same as for the D-Bus interface description |
5 | * it was derived from. Note that it links to GLib, so must comply with the |
6 | * LGPL linking clauses. |
7 | */ |
8 | |
9 | #ifdef HAVE_CONFIG_H1 |
10 | # include "config.h" |
11 | #endif |
12 | |
13 | #include "ctkdbusgenerated.h" |
14 | |
15 | #include <string.h> |
16 | #ifdef G_OS_UNIX |
17 | # include <gio/gunixfdlist.h> |
18 | #endif |
19 | |
20 | #ifdef G_ENABLE_DEBUG1 |
21 | #define g_marshal_value_peek_boolean(v)g_value_get_boolean (v) g_value_get_boolean (v) |
22 | #define g_marshal_value_peek_char(v)g_value_get_schar (v) g_value_get_schar (v) |
23 | #define g_marshal_value_peek_uchar(v)g_value_get_uchar (v) g_value_get_uchar (v) |
24 | #define g_marshal_value_peek_int(v)g_value_get_int (v) g_value_get_int (v) |
25 | #define g_marshal_value_peek_uint(v)g_value_get_uint (v) g_value_get_uint (v) |
26 | #define g_marshal_value_peek_long(v)g_value_get_long (v) g_value_get_long (v) |
27 | #define g_marshal_value_peek_ulong(v)g_value_get_ulong (v) g_value_get_ulong (v) |
28 | #define g_marshal_value_peek_int64(v)g_value_get_int64 (v) g_value_get_int64 (v) |
29 | #define g_marshal_value_peek_uint64(v)g_value_get_uint64 (v) g_value_get_uint64 (v) |
30 | #define g_marshal_value_peek_enum(v)g_value_get_enum (v) g_value_get_enum (v) |
31 | #define g_marshal_value_peek_flags(v)g_value_get_flags (v) g_value_get_flags (v) |
32 | #define g_marshal_value_peek_float(v)g_value_get_float (v) g_value_get_float (v) |
33 | #define g_marshal_value_peek_double(v)g_value_get_double (v) g_value_get_double (v) |
34 | #define g_marshal_value_peek_string(v)(char*) g_value_get_string (v) (char*) g_value_get_string (v) |
35 | #define g_marshal_value_peek_param(v)g_value_get_param (v) g_value_get_param (v) |
36 | #define g_marshal_value_peek_boxed(v)g_value_get_boxed (v) g_value_get_boxed (v) |
37 | #define g_marshal_value_peek_pointer(v)g_value_get_pointer (v) g_value_get_pointer (v) |
38 | #define g_marshal_value_peek_object(v)g_value_get_object (v) g_value_get_object (v) |
39 | #define g_marshal_value_peek_variant(v)g_value_get_variant (v) g_value_get_variant (v) |
40 | #else /* !G_ENABLE_DEBUG */ |
41 | /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. |
42 | * Do not access GValues directly in your code. Instead, use the |
43 | * g_value_get_*() functions |
44 | */ |
45 | #define g_marshal_value_peek_boolean(v)g_value_get_boolean (v) (v)->data[0].v_int |
46 | #define g_marshal_value_peek_char(v)g_value_get_schar (v) (v)->data[0].v_int |
47 | #define g_marshal_value_peek_uchar(v)g_value_get_uchar (v) (v)->data[0].v_uint |
48 | #define g_marshal_value_peek_int(v)g_value_get_int (v) (v)->data[0].v_int |
49 | #define g_marshal_value_peek_uint(v)g_value_get_uint (v) (v)->data[0].v_uint |
50 | #define g_marshal_value_peek_long(v)g_value_get_long (v) (v)->data[0].v_long |
51 | #define g_marshal_value_peek_ulong(v)g_value_get_ulong (v) (v)->data[0].v_ulong |
52 | #define g_marshal_value_peek_int64(v)g_value_get_int64 (v) (v)->data[0].v_int64 |
53 | #define g_marshal_value_peek_uint64(v)g_value_get_uint64 (v) (v)->data[0].v_uint64 |
54 | #define g_marshal_value_peek_enum(v)g_value_get_enum (v) (v)->data[0].v_long |
55 | #define g_marshal_value_peek_flags(v)g_value_get_flags (v) (v)->data[0].v_ulong |
56 | #define g_marshal_value_peek_float(v)g_value_get_float (v) (v)->data[0].v_float |
57 | #define g_marshal_value_peek_double(v)g_value_get_double (v) (v)->data[0].v_double |
58 | #define g_marshal_value_peek_string(v)(char*) g_value_get_string (v) (v)->data[0].v_pointer |
59 | #define g_marshal_value_peek_param(v)g_value_get_param (v) (v)->data[0].v_pointer |
60 | #define g_marshal_value_peek_boxed(v)g_value_get_boxed (v) (v)->data[0].v_pointer |
61 | #define g_marshal_value_peek_pointer(v)g_value_get_pointer (v) (v)->data[0].v_pointer |
62 | #define g_marshal_value_peek_object(v)g_value_get_object (v) (v)->data[0].v_pointer |
63 | #define g_marshal_value_peek_variant(v)g_value_get_variant (v) (v)->data[0].v_pointer |
64 | #endif /* !G_ENABLE_DEBUG */ |
65 | |
66 | typedef struct |
67 | { |
68 | GDBusArgInfo parent_struct; |
69 | gboolean use_gvariant; |
70 | } _ExtendedGDBusArgInfo; |
71 | |
72 | typedef struct |
73 | { |
74 | GDBusMethodInfo parent_struct; |
75 | const gchar *signal_name; |
76 | gboolean pass_fdlist; |
77 | } _ExtendedGDBusMethodInfo; |
78 | |
79 | typedef struct |
80 | { |
81 | GDBusSignalInfo parent_struct; |
82 | const gchar *signal_name; |
83 | } _ExtendedGDBusSignalInfo; |
84 | |
85 | typedef struct |
86 | { |
87 | GDBusPropertyInfo parent_struct; |
88 | const gchar *hyphen_name; |
89 | guint use_gvariant : 1; |
90 | guint emits_changed_signal : 1; |
91 | } _ExtendedGDBusPropertyInfo; |
92 | |
93 | typedef struct |
94 | { |
95 | GDBusInterfaceInfo parent_struct; |
96 | const gchar *hyphen_name; |
97 | } _ExtendedGDBusInterfaceInfo; |
98 | |
99 | typedef struct |
100 | { |
101 | const _ExtendedGDBusPropertyInfo *info; |
102 | guint prop_id; |
103 | GValue orig_value; /* the value before the change */ |
104 | } ChangedProperty; |
105 | |
106 | static void |
107 | _changed_property_free (ChangedProperty *data) |
108 | { |
109 | g_value_unset (&data->orig_value); |
110 | g_free (data); |
111 | } |
112 | |
113 | static gboolean |
114 | _g_strv_equal0 (gchar **a, gchar **b) |
115 | { |
116 | gboolean ret = FALSE(0); |
117 | guint n; |
118 | if (a == NULL((void*)0) && b == NULL((void*)0)) |
119 | { |
120 | ret = TRUE(!(0)); |
121 | goto out; |
122 | } |
123 | if (a == NULL((void*)0) || b == NULL((void*)0)) |
124 | goto out; |
125 | if (g_strv_length (a) != g_strv_length (b)) |
126 | goto out; |
127 | for (n = 0; a[n] != NULL((void*)0); n++) |
128 | if (g_strcmp0 (a[n], b[n]) != 0) |
129 | goto out; |
130 | ret = TRUE(!(0)); |
131 | out: |
132 | return ret; |
133 | } |
134 | |
135 | static gboolean |
136 | _g_variant_equal0 (GVariant *a, GVariant *b) |
137 | { |
138 | gboolean ret = FALSE(0); |
139 | if (a == NULL((void*)0) && b == NULL((void*)0)) |
140 | { |
141 | ret = TRUE(!(0)); |
142 | goto out; |
143 | } |
144 | if (a == NULL((void*)0) || b == NULL((void*)0)) |
145 | goto out; |
146 | ret = g_variant_equal (a, b); |
147 | out: |
148 | return ret; |
149 | } |
150 | |
151 | G_GNUC_UNUSED__attribute__ ((__unused__)) static gboolean |
152 | _g_value_equal (const GValue *a, const GValue *b) |
153 | { |
154 | gboolean ret = FALSE(0); |
155 | g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b))do { if ((((GValue*) (a))->g_type) == (((GValue*) (b))-> g_type)) ; else g_assertion_message_expr ("Ctk", "ctkdbusgenerated.c" , 155, ((const char*) (__func__)), "G_VALUE_TYPE (a) == G_VALUE_TYPE (b)" ); } while (0); |
156 | switch (G_VALUE_TYPE (a)(((GValue*) (a))->g_type)) |
157 | { |
158 | case G_TYPE_BOOLEAN((GType) ((5) << (2))): |
159 | ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); |
160 | break; |
161 | case G_TYPE_UCHAR((GType) ((4) << (2))): |
162 | ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); |
163 | break; |
164 | case G_TYPE_INT((GType) ((6) << (2))): |
165 | ret = (g_value_get_int (a) == g_value_get_int (b)); |
166 | break; |
167 | case G_TYPE_UINT((GType) ((7) << (2))): |
168 | ret = (g_value_get_uint (a) == g_value_get_uint (b)); |
169 | break; |
170 | case G_TYPE_INT64((GType) ((10) << (2))): |
171 | ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); |
172 | break; |
173 | case G_TYPE_UINT64((GType) ((11) << (2))): |
174 | ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); |
175 | break; |
176 | case G_TYPE_DOUBLE((GType) ((15) << (2))): |
177 | { |
178 | /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ |
179 | gdouble da = g_value_get_double (a); |
180 | gdouble db = g_value_get_double (b); |
181 | ret = memcmp (&da, &db, sizeof (gdouble)) == 0; |
182 | } |
183 | break; |
184 | case G_TYPE_STRING((GType) ((16) << (2))): |
185 | ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); |
186 | break; |
187 | case G_TYPE_VARIANT((GType) ((21) << (2))): |
188 | ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); |
189 | break; |
190 | default: |
191 | if (G_VALUE_TYPE (a)(((GValue*) (a))->g_type) == G_TYPE_STRV(g_strv_get_type ())) |
192 | ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); |
193 | else |
194 | g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)(((GValue*) (a))->g_type))); |
195 | break; |
196 | } |
197 | return ret; |
198 | } |
199 | |
200 | static void |
201 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING_STRING_STRING_UINT ( |
202 | GClosure *closure, |
203 | GValue *return_value, |
204 | unsigned int n_param_values, |
205 | const GValue *param_values, |
206 | void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)), |
207 | void *marshal_data) |
208 | { |
209 | typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringStringStringStringStringUintFunc) |
210 | (void *data1, |
211 | GDBusMethodInvocation *arg_method_invocation, |
212 | const gchar *arg_id, |
213 | const gchar *arg_message, |
214 | const gchar *arg_icon_name, |
215 | const gchar *arg_default_user, |
216 | const gchar *arg_default_domain, |
217 | guint arg_flags, |
218 | void *data2); |
219 | _GDbusCodegenMarshalBoolean_ObjectStringStringStringStringStringUintFunc callback; |
220 | GCClosure *cc = (GCClosure*) closure; |
221 | void *data1, *data2; |
222 | gboolean v_return; |
223 | |
224 | g_return_if_fail (return_value != NULL)do { if ((return_value != ((void*)0))) { } else { g_return_if_fail_warning ("Ctk", ((const char*) (__func__)), "return_value != NULL"); return; } } while (0); |
225 | g_return_if_fail (n_param_values == 8)do { if ((n_param_values == 8)) { } else { g_return_if_fail_warning ("Ctk", ((const char*) (__func__)), "n_param_values == 8"); return ; } } while (0); |
226 | |
227 | if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag)) |
228 | { |
229 | data1 = closure->data; |
230 | data2 = g_value_peek_pointer (param_values + 0); |
231 | } |
232 | else |
233 | { |
234 | data1 = g_value_peek_pointer (param_values + 0); |
235 | data2 = closure->data; |
236 | } |
237 | |
238 | callback = (_GDbusCodegenMarshalBoolean_ObjectStringStringStringStringStringUintFunc) |
239 | (marshal_data ? marshal_data : cc->callback); |
240 | |
241 | v_return = |
242 | callback (data1, |
243 | g_marshal_value_peek_object (param_values + 1)g_value_get_object (param_values + 1), |
244 | g_marshal_value_peek_string (param_values + 2)(char*) g_value_get_string (param_values + 2), |
245 | g_marshal_value_peek_string (param_values + 3)(char*) g_value_get_string (param_values + 3), |
246 | g_marshal_value_peek_string (param_values + 4)(char*) g_value_get_string (param_values + 4), |
247 | g_marshal_value_peek_string (param_values + 5)(char*) g_value_get_string (param_values + 5), |
248 | g_marshal_value_peek_string (param_values + 6)(char*) g_value_get_string (param_values + 6), |
249 | g_marshal_value_peek_uint (param_values + 7)g_value_get_uint (param_values + 7), |
250 | data2); |
251 | |
252 | g_value_set_boolean (return_value, v_return); |
253 | } |
254 | |
255 | static void |
256 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING_BOXED ( |
257 | GClosure *closure, |
258 | GValue *return_value, |
259 | unsigned int n_param_values, |
260 | const GValue *param_values, |
261 | void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)), |
262 | void *marshal_data) |
263 | { |
264 | typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringStringStringBoxedFunc) |
265 | (void *data1, |
266 | GDBusMethodInvocation *arg_method_invocation, |
267 | const gchar *arg_id, |
268 | const gchar *arg_message, |
269 | const gchar *arg_icon_name, |
270 | const gchar *const *arg_choices, |
271 | void *data2); |
272 | _GDbusCodegenMarshalBoolean_ObjectStringStringStringBoxedFunc callback; |
273 | GCClosure *cc = (GCClosure*) closure; |
274 | void *data1, *data2; |
275 | gboolean v_return; |
276 | |
277 | g_return_if_fail (return_value != NULL)do { if ((return_value != ((void*)0))) { } else { g_return_if_fail_warning ("Ctk", ((const char*) (__func__)), "return_value != NULL"); return; } } while (0); |
278 | g_return_if_fail (n_param_values == 6)do { if ((n_param_values == 6)) { } else { g_return_if_fail_warning ("Ctk", ((const char*) (__func__)), "n_param_values == 6"); return ; } } while (0); |
279 | |
280 | if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag)) |
281 | { |
282 | data1 = closure->data; |
283 | data2 = g_value_peek_pointer (param_values + 0); |
284 | } |
285 | else |
286 | { |
287 | data1 = g_value_peek_pointer (param_values + 0); |
288 | data2 = closure->data; |
289 | } |
290 | |
291 | callback = (_GDbusCodegenMarshalBoolean_ObjectStringStringStringBoxedFunc) |
292 | (marshal_data ? marshal_data : cc->callback); |
293 | |
294 | v_return = |
295 | callback (data1, |
296 | g_marshal_value_peek_object (param_values + 1)g_value_get_object (param_values + 1), |
297 | g_marshal_value_peek_string (param_values + 2)(char*) g_value_get_string (param_values + 2), |
298 | g_marshal_value_peek_string (param_values + 3)(char*) g_value_get_string (param_values + 3), |
299 | g_marshal_value_peek_string (param_values + 4)(char*) g_value_get_string (param_values + 4), |
300 | g_marshal_value_peek_boxed (param_values + 5)g_value_get_boxed (param_values + 5), |
301 | data2); |
302 | |
303 | g_value_set_boolean (return_value, v_return); |
304 | } |
305 | |
306 | static void |
307 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING_VARIANT_BOXED ( |
308 | GClosure *closure, |
309 | GValue *return_value, |
310 | unsigned int n_param_values, |
311 | const GValue *param_values, |
312 | void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)), |
313 | void *marshal_data) |
314 | { |
315 | typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringStringStringVariantBoxedFunc) |
316 | (void *data1, |
317 | GDBusMethodInvocation *arg_method_invocation, |
318 | const gchar *arg_id, |
319 | const gchar *arg_message, |
320 | const gchar *arg_icon_name, |
321 | GVariant *arg_application_pids, |
322 | const gchar *const *arg_choices, |
323 | void *data2); |
324 | _GDbusCodegenMarshalBoolean_ObjectStringStringStringVariantBoxedFunc callback; |
325 | GCClosure *cc = (GCClosure*) closure; |
326 | void *data1, *data2; |
327 | gboolean v_return; |
328 | |
329 | g_return_if_fail (return_value != NULL)do { if ((return_value != ((void*)0))) { } else { g_return_if_fail_warning ("Ctk", ((const char*) (__func__)), "return_value != NULL"); return; } } while (0); |
330 | g_return_if_fail (n_param_values == 7)do { if ((n_param_values == 7)) { } else { g_return_if_fail_warning ("Ctk", ((const char*) (__func__)), "n_param_values == 7"); return ; } } while (0); |
331 | |
332 | if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag)) |
333 | { |
334 | data1 = closure->data; |
335 | data2 = g_value_peek_pointer (param_values + 0); |
336 | } |
337 | else |
338 | { |
339 | data1 = g_value_peek_pointer (param_values + 0); |
340 | data2 = closure->data; |
341 | } |
342 | |
343 | callback = (_GDbusCodegenMarshalBoolean_ObjectStringStringStringVariantBoxedFunc) |
344 | (marshal_data ? marshal_data : cc->callback); |
345 | |
346 | v_return = |
347 | callback (data1, |
348 | g_marshal_value_peek_object (param_values + 1)g_value_get_object (param_values + 1), |
349 | g_marshal_value_peek_string (param_values + 2)(char*) g_value_get_string (param_values + 2), |
350 | g_marshal_value_peek_string (param_values + 3)(char*) g_value_get_string (param_values + 3), |
351 | g_marshal_value_peek_string (param_values + 4)(char*) g_value_get_string (param_values + 4), |
352 | g_marshal_value_peek_variant (param_values + 5)g_value_get_variant (param_values + 5), |
353 | g_marshal_value_peek_boxed (param_values + 6)g_value_get_boxed (param_values + 6), |
354 | data2); |
355 | |
356 | g_value_set_boolean (return_value, v_return); |
357 | } |
358 | |
359 | static void |
360 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( |
361 | GClosure *closure, |
362 | GValue *return_value, |
363 | unsigned int n_param_values, |
364 | const GValue *param_values, |
365 | void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)), |
366 | void *marshal_data) |
367 | { |
368 | typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) |
369 | (void *data1, |
370 | GDBusMethodInvocation *arg_method_invocation, |
371 | void *data2); |
372 | _GDbusCodegenMarshalBoolean_ObjectFunc callback; |
373 | GCClosure *cc = (GCClosure*) closure; |
374 | void *data1, *data2; |
375 | gboolean v_return; |
376 | |
377 | g_return_if_fail (return_value != NULL)do { if ((return_value != ((void*)0))) { } else { g_return_if_fail_warning ("Ctk", ((const char*) (__func__)), "return_value != NULL"); return; } } while (0); |
378 | g_return_if_fail (n_param_values == 2)do { if ((n_param_values == 2)) { } else { g_return_if_fail_warning ("Ctk", ((const char*) (__func__)), "n_param_values == 2"); return ; } } while (0); |
379 | |
380 | if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag)) |
381 | { |
382 | data1 = closure->data; |
383 | data2 = g_value_peek_pointer (param_values + 0); |
384 | } |
385 | else |
386 | { |
387 | data1 = g_value_peek_pointer (param_values + 0); |
388 | data2 = closure->data; |
389 | } |
390 | |
391 | callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) |
392 | (marshal_data ? marshal_data : cc->callback); |
393 | |
394 | v_return = |
395 | callback (data1, |
396 | g_marshal_value_peek_object (param_values + 1)g_value_get_object (param_values + 1), |
397 | data2); |
398 | |
399 | g_value_set_boolean (return_value, v_return); |
400 | } |
401 | |
402 | /* ------------------------------------------------------------------------ |
403 | * Code for interface org.Ctk.MountOperationHandler |
404 | * ------------------------------------------------------------------------ |
405 | */ |
406 | |
407 | /** |
408 | * SECTION:_CtkMountOperationHandler |
409 | * @title: _CtkMountOperationHandler |
410 | * @short_description: Generated C code for the org.Ctk.MountOperationHandler D-Bus interface |
411 | * |
412 | * This section contains code for working with the <link linkend="gdbus-interface-org-Ctk-MountOperationHandler.top_of_page">org.Ctk.MountOperationHandler</link> D-Bus interface in C. |
413 | */ |
414 | |
415 | /* ---- Introspection data for org.Ctk.MountOperationHandler ---- */ |
416 | |
417 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_password_IN_ARG_id = |
418 | { |
419 | { |
420 | -1, |
421 | (gchar *) "id", |
422 | (gchar *) "s", |
423 | NULL((void*)0) |
424 | }, |
425 | FALSE(0) |
426 | }; |
427 | |
428 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_password_IN_ARG_message = |
429 | { |
430 | { |
431 | -1, |
432 | (gchar *) "message", |
433 | (gchar *) "s", |
434 | NULL((void*)0) |
435 | }, |
436 | FALSE(0) |
437 | }; |
438 | |
439 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_password_IN_ARG_icon_name = |
440 | { |
441 | { |
442 | -1, |
443 | (gchar *) "icon_name", |
444 | (gchar *) "s", |
445 | NULL((void*)0) |
446 | }, |
447 | FALSE(0) |
448 | }; |
449 | |
450 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_password_IN_ARG_default_user = |
451 | { |
452 | { |
453 | -1, |
454 | (gchar *) "default_user", |
455 | (gchar *) "s", |
456 | NULL((void*)0) |
457 | }, |
458 | FALSE(0) |
459 | }; |
460 | |
461 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_password_IN_ARG_default_domain = |
462 | { |
463 | { |
464 | -1, |
465 | (gchar *) "default_domain", |
466 | (gchar *) "s", |
467 | NULL((void*)0) |
468 | }, |
469 | FALSE(0) |
470 | }; |
471 | |
472 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_password_IN_ARG_flags = |
473 | { |
474 | { |
475 | -1, |
476 | (gchar *) "flags", |
477 | (gchar *) "u", |
478 | NULL((void*)0) |
479 | }, |
480 | FALSE(0) |
481 | }; |
482 | |
483 | static const GDBusArgInfo * const __ctk_mount_operation_handler_method_info_ask_password_IN_ARG_pointers[] = |
484 | { |
485 | &__ctk_mount_operation_handler_method_info_ask_password_IN_ARG_id.parent_struct, |
486 | &__ctk_mount_operation_handler_method_info_ask_password_IN_ARG_message.parent_struct, |
487 | &__ctk_mount_operation_handler_method_info_ask_password_IN_ARG_icon_name.parent_struct, |
488 | &__ctk_mount_operation_handler_method_info_ask_password_IN_ARG_default_user.parent_struct, |
489 | &__ctk_mount_operation_handler_method_info_ask_password_IN_ARG_default_domain.parent_struct, |
490 | &__ctk_mount_operation_handler_method_info_ask_password_IN_ARG_flags.parent_struct, |
491 | NULL((void*)0) |
492 | }; |
493 | |
494 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_password_OUT_ARG_response = |
495 | { |
496 | { |
497 | -1, |
498 | (gchar *) "response", |
499 | (gchar *) "u", |
500 | NULL((void*)0) |
501 | }, |
502 | FALSE(0) |
503 | }; |
504 | |
505 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_password_OUT_ARG_response_details = |
506 | { |
507 | { |
508 | -1, |
509 | (gchar *) "response_details", |
510 | (gchar *) "a{sv}", |
511 | NULL((void*)0) |
512 | }, |
513 | FALSE(0) |
514 | }; |
515 | |
516 | static const GDBusArgInfo * const __ctk_mount_operation_handler_method_info_ask_password_OUT_ARG_pointers[] = |
517 | { |
518 | &__ctk_mount_operation_handler_method_info_ask_password_OUT_ARG_response.parent_struct, |
519 | &__ctk_mount_operation_handler_method_info_ask_password_OUT_ARG_response_details.parent_struct, |
520 | NULL((void*)0) |
521 | }; |
522 | |
523 | static const _ExtendedGDBusMethodInfo __ctk_mount_operation_handler_method_info_ask_password = |
524 | { |
525 | { |
526 | -1, |
527 | (gchar *) "AskPassword", |
528 | (GDBusArgInfo **) &__ctk_mount_operation_handler_method_info_ask_password_IN_ARG_pointers, |
529 | (GDBusArgInfo **) &__ctk_mount_operation_handler_method_info_ask_password_OUT_ARG_pointers, |
530 | NULL((void*)0) |
531 | }, |
532 | "handle-ask-password", |
533 | FALSE(0) |
534 | }; |
535 | |
536 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_question_IN_ARG_id = |
537 | { |
538 | { |
539 | -1, |
540 | (gchar *) "id", |
541 | (gchar *) "s", |
542 | NULL((void*)0) |
543 | }, |
544 | FALSE(0) |
545 | }; |
546 | |
547 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_question_IN_ARG_message = |
548 | { |
549 | { |
550 | -1, |
551 | (gchar *) "message", |
552 | (gchar *) "s", |
553 | NULL((void*)0) |
554 | }, |
555 | FALSE(0) |
556 | }; |
557 | |
558 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_question_IN_ARG_icon_name = |
559 | { |
560 | { |
561 | -1, |
562 | (gchar *) "icon_name", |
563 | (gchar *) "s", |
564 | NULL((void*)0) |
565 | }, |
566 | FALSE(0) |
567 | }; |
568 | |
569 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_question_IN_ARG_choices = |
570 | { |
571 | { |
572 | -1, |
573 | (gchar *) "choices", |
574 | (gchar *) "as", |
575 | NULL((void*)0) |
576 | }, |
577 | FALSE(0) |
578 | }; |
579 | |
580 | static const GDBusArgInfo * const __ctk_mount_operation_handler_method_info_ask_question_IN_ARG_pointers[] = |
581 | { |
582 | &__ctk_mount_operation_handler_method_info_ask_question_IN_ARG_id.parent_struct, |
583 | &__ctk_mount_operation_handler_method_info_ask_question_IN_ARG_message.parent_struct, |
584 | &__ctk_mount_operation_handler_method_info_ask_question_IN_ARG_icon_name.parent_struct, |
585 | &__ctk_mount_operation_handler_method_info_ask_question_IN_ARG_choices.parent_struct, |
586 | NULL((void*)0) |
587 | }; |
588 | |
589 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_question_OUT_ARG_response = |
590 | { |
591 | { |
592 | -1, |
593 | (gchar *) "response", |
594 | (gchar *) "u", |
595 | NULL((void*)0) |
596 | }, |
597 | FALSE(0) |
598 | }; |
599 | |
600 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_ask_question_OUT_ARG_response_details = |
601 | { |
602 | { |
603 | -1, |
604 | (gchar *) "response_details", |
605 | (gchar *) "a{sv}", |
606 | NULL((void*)0) |
607 | }, |
608 | FALSE(0) |
609 | }; |
610 | |
611 | static const GDBusArgInfo * const __ctk_mount_operation_handler_method_info_ask_question_OUT_ARG_pointers[] = |
612 | { |
613 | &__ctk_mount_operation_handler_method_info_ask_question_OUT_ARG_response.parent_struct, |
614 | &__ctk_mount_operation_handler_method_info_ask_question_OUT_ARG_response_details.parent_struct, |
615 | NULL((void*)0) |
616 | }; |
617 | |
618 | static const _ExtendedGDBusMethodInfo __ctk_mount_operation_handler_method_info_ask_question = |
619 | { |
620 | { |
621 | -1, |
622 | (gchar *) "AskQuestion", |
623 | (GDBusArgInfo **) &__ctk_mount_operation_handler_method_info_ask_question_IN_ARG_pointers, |
624 | (GDBusArgInfo **) &__ctk_mount_operation_handler_method_info_ask_question_OUT_ARG_pointers, |
625 | NULL((void*)0) |
626 | }, |
627 | "handle-ask-question", |
628 | FALSE(0) |
629 | }; |
630 | |
631 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_show_processes_IN_ARG_id = |
632 | { |
633 | { |
634 | -1, |
635 | (gchar *) "id", |
636 | (gchar *) "s", |
637 | NULL((void*)0) |
638 | }, |
639 | FALSE(0) |
640 | }; |
641 | |
642 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_show_processes_IN_ARG_message = |
643 | { |
644 | { |
645 | -1, |
646 | (gchar *) "message", |
647 | (gchar *) "s", |
648 | NULL((void*)0) |
649 | }, |
650 | FALSE(0) |
651 | }; |
652 | |
653 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_show_processes_IN_ARG_icon_name = |
654 | { |
655 | { |
656 | -1, |
657 | (gchar *) "icon_name", |
658 | (gchar *) "s", |
659 | NULL((void*)0) |
660 | }, |
661 | FALSE(0) |
662 | }; |
663 | |
664 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_show_processes_IN_ARG_application_pids = |
665 | { |
666 | { |
667 | -1, |
668 | (gchar *) "application_pids", |
669 | (gchar *) "ai", |
670 | NULL((void*)0) |
671 | }, |
672 | FALSE(0) |
673 | }; |
674 | |
675 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_show_processes_IN_ARG_choices = |
676 | { |
677 | { |
678 | -1, |
679 | (gchar *) "choices", |
680 | (gchar *) "as", |
681 | NULL((void*)0) |
682 | }, |
683 | FALSE(0) |
684 | }; |
685 | |
686 | static const GDBusArgInfo * const __ctk_mount_operation_handler_method_info_show_processes_IN_ARG_pointers[] = |
687 | { |
688 | &__ctk_mount_operation_handler_method_info_show_processes_IN_ARG_id.parent_struct, |
689 | &__ctk_mount_operation_handler_method_info_show_processes_IN_ARG_message.parent_struct, |
690 | &__ctk_mount_operation_handler_method_info_show_processes_IN_ARG_icon_name.parent_struct, |
691 | &__ctk_mount_operation_handler_method_info_show_processes_IN_ARG_application_pids.parent_struct, |
692 | &__ctk_mount_operation_handler_method_info_show_processes_IN_ARG_choices.parent_struct, |
693 | NULL((void*)0) |
694 | }; |
695 | |
696 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_show_processes_OUT_ARG_response = |
697 | { |
698 | { |
699 | -1, |
700 | (gchar *) "response", |
701 | (gchar *) "u", |
702 | NULL((void*)0) |
703 | }, |
704 | FALSE(0) |
705 | }; |
706 | |
707 | static const _ExtendedGDBusArgInfo __ctk_mount_operation_handler_method_info_show_processes_OUT_ARG_response_details = |
708 | { |
709 | { |
710 | -1, |
711 | (gchar *) "response_details", |
712 | (gchar *) "a{sv}", |
713 | NULL((void*)0) |
714 | }, |
715 | FALSE(0) |
716 | }; |
717 | |
718 | static const GDBusArgInfo * const __ctk_mount_operation_handler_method_info_show_processes_OUT_ARG_pointers[] = |
719 | { |
720 | &__ctk_mount_operation_handler_method_info_show_processes_OUT_ARG_response.parent_struct, |
721 | &__ctk_mount_operation_handler_method_info_show_processes_OUT_ARG_response_details.parent_struct, |
722 | NULL((void*)0) |
723 | }; |
724 | |
725 | static const _ExtendedGDBusMethodInfo __ctk_mount_operation_handler_method_info_show_processes = |
726 | { |
727 | { |
728 | -1, |
729 | (gchar *) "ShowProcesses", |
730 | (GDBusArgInfo **) &__ctk_mount_operation_handler_method_info_show_processes_IN_ARG_pointers, |
731 | (GDBusArgInfo **) &__ctk_mount_operation_handler_method_info_show_processes_OUT_ARG_pointers, |
732 | NULL((void*)0) |
733 | }, |
734 | "handle-show-processes", |
735 | FALSE(0) |
736 | }; |
737 | |
738 | static const _ExtendedGDBusMethodInfo __ctk_mount_operation_handler_method_info_close = |
739 | { |
740 | { |
741 | -1, |
742 | (gchar *) "Close", |
743 | NULL((void*)0), |
744 | NULL((void*)0), |
745 | NULL((void*)0) |
746 | }, |
747 | "handle-close", |
748 | FALSE(0) |
749 | }; |
750 | |
751 | static const GDBusMethodInfo * const __ctk_mount_operation_handler_method_info_pointers[] = |
752 | { |
753 | &__ctk_mount_operation_handler_method_info_ask_password.parent_struct, |
754 | &__ctk_mount_operation_handler_method_info_ask_question.parent_struct, |
755 | &__ctk_mount_operation_handler_method_info_show_processes.parent_struct, |
756 | &__ctk_mount_operation_handler_method_info_close.parent_struct, |
757 | NULL((void*)0) |
758 | }; |
759 | |
760 | static const _ExtendedGDBusInterfaceInfo __ctk_mount_operation_handler_interface_info = |
761 | { |
762 | { |
763 | -1, |
764 | (gchar *) "org.Ctk.MountOperationHandler", |
765 | (GDBusMethodInfo **) &__ctk_mount_operation_handler_method_info_pointers, |
766 | NULL((void*)0), |
767 | NULL((void*)0), |
768 | NULL((void*)0) |
769 | }, |
770 | "mount-operation-handler", |
771 | }; |
772 | |
773 | |
774 | /** |
775 | * _ctk_mount_operation_handler_interface_info: |
776 | * |
777 | * Gets a machine-readable description of the <link linkend="gdbus-interface-org-Ctk-MountOperationHandler.top_of_page">org.Ctk.MountOperationHandler</link> D-Bus interface. |
778 | * |
779 | * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. |
780 | */ |
781 | GDBusInterfaceInfo * |
782 | _ctk_mount_operation_handler_interface_info (void) |
783 | { |
784 | return (GDBusInterfaceInfo *) &__ctk_mount_operation_handler_interface_info.parent_struct; |
785 | } |
786 | |
787 | /** |
788 | * _ctk_mount_operation_handler_override_properties: |
789 | * @klass: The class structure for a #GObject derived class. |
790 | * @property_id_begin: The property id to assign to the first overridden property. |
791 | * |
792 | * Overrides all #GObject properties in the #_CtkMountOperationHandler interface for a concrete class. |
793 | * The properties are overridden in the order they are defined. |
794 | * |
795 | * Returns: The last property id. |
796 | */ |
797 | guint |
798 | _ctk_mount_operation_handler_override_properties (GObjectClass *klass G_GNUC_UNUSED__attribute__ ((__unused__)), guint property_id_begin) |
799 | { |
800 | return property_id_begin - 1; |
801 | } |
802 | |
803 | |
804 | inline static void |
805 | _ctk_mount_operation_handler_method_marshal_ask_password ( |
806 | GClosure *closure, |
807 | GValue *return_value, |
808 | unsigned int n_param_values, |
809 | const GValue *param_values, |
810 | void *invocation_hint, |
811 | void *marshal_data) |
812 | { |
813 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING_STRING_STRING_UINT (closure, |
814 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
815 | } |
816 | |
817 | inline static void |
818 | _ctk_mount_operation_handler_method_marshal_ask_question ( |
819 | GClosure *closure, |
820 | GValue *return_value, |
821 | unsigned int n_param_values, |
822 | const GValue *param_values, |
823 | void *invocation_hint, |
824 | void *marshal_data) |
825 | { |
826 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING_BOXED (closure, |
827 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
828 | } |
829 | |
830 | inline static void |
831 | _ctk_mount_operation_handler_method_marshal_show_processes ( |
832 | GClosure *closure, |
833 | GValue *return_value, |
834 | unsigned int n_param_values, |
835 | const GValue *param_values, |
836 | void *invocation_hint, |
837 | void *marshal_data) |
838 | { |
839 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING_VARIANT_BOXED (closure, |
840 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
841 | } |
842 | |
843 | inline static void |
844 | _ctk_mount_operation_handler_method_marshal_close ( |
845 | GClosure *closure, |
846 | GValue *return_value, |
847 | unsigned int n_param_values, |
848 | const GValue *param_values, |
849 | void *invocation_hint, |
850 | void *marshal_data) |
851 | { |
852 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, |
853 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
854 | } |
855 | |
856 | |
857 | /** |
858 | * _CtkMountOperationHandler: |
859 | * |
860 | * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-Ctk-MountOperationHandler.top_of_page">org.Ctk.MountOperationHandler</link>. |
861 | */ |
862 | |
863 | /** |
864 | * _CtkMountOperationHandlerIface: |
865 | * @parent_iface: The parent interface. |
866 | * @handle_ask_password: Handler for the #_CtkMountOperationHandler::handle-ask-password signal. |
867 | * @handle_ask_question: Handler for the #_CtkMountOperationHandler::handle-ask-question signal. |
868 | * @handle_close: Handler for the #_CtkMountOperationHandler::handle-close signal. |
869 | * @handle_show_processes: Handler for the #_CtkMountOperationHandler::handle-show-processes signal. |
870 | * |
871 | * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-Ctk-MountOperationHandler.top_of_page">org.Ctk.MountOperationHandler</link>. |
872 | */ |
873 | |
874 | typedef _CtkMountOperationHandlerIface _CtkMountOperationHandlerInterface; |
875 | G_DEFINE_INTERFACE (_CtkMountOperationHandler, _ctk_mount_operation_handler, G_TYPE_OBJECT)static void _ctk_mount_operation_handler_default_init (_CtkMountOperationHandlerInterface *klass); GType _ctk_mount_operation_handler_get_type (void) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = g_type_register_static_simple (((GType) ((2) << (2)) ), g_intern_static_string ("_CtkMountOperationHandler"), sizeof (_CtkMountOperationHandlerInterface), (GClassInitFunc)(void ( *)(void)) _ctk_mount_operation_handler_default_init, 0, (GInstanceInitFunc )((void*)0), (GTypeFlags) 0); if (((GType) ((20) << (2) )) != ((GType) ((0) << (2)))) g_type_interface_add_prerequisite (g_define_type_id, ((GType) ((20) << (2)))); { {;;} } ( __extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void) (*(&static_g_define_type_id) = (g_define_type_id) ) : (void) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } |
876 | |
877 | static void |
878 | _ctk_mount_operation_handler_default_init (_CtkMountOperationHandlerIface *iface) |
879 | { |
880 | /* GObject signals for incoming D-Bus method calls: */ |
881 | /** |
882 | * _CtkMountOperationHandler::handle-ask-password: |
883 | * @object: A #_CtkMountOperationHandler. |
884 | * @invocation: A #GDBusMethodInvocation. |
885 | * @arg_id: Argument passed by remote caller. |
886 | * @arg_message: Argument passed by remote caller. |
887 | * @arg_icon_name: Argument passed by remote caller. |
888 | * @arg_default_user: Argument passed by remote caller. |
889 | * @arg_default_domain: Argument passed by remote caller. |
890 | * @arg_flags: Argument passed by remote caller. |
891 | * |
892 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.AskPassword">AskPassword()</link> D-Bus method. |
893 | * |
894 | * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call _ctk_mount_operation_handler_complete_ask_password() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. |
895 | * |
896 | * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. |
897 | */ |
898 | g_signal_new ("handle-ask-password", |
899 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
900 | G_SIGNAL_RUN_LAST, |
901 | G_STRUCT_OFFSET (_CtkMountOperationHandlerIface, handle_ask_password)((glong) __builtin_offsetof(_CtkMountOperationHandlerIface, handle_ask_password )), |
902 | g_signal_accumulator_true_handled, |
903 | NULL((void*)0), |
904 | _ctk_mount_operation_handler_method_marshal_ask_password, |
905 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
906 | 7, |
907 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_UINT((GType) ((7) << (2)))); |
908 | |
909 | /** |
910 | * _CtkMountOperationHandler::handle-ask-question: |
911 | * @object: A #_CtkMountOperationHandler. |
912 | * @invocation: A #GDBusMethodInvocation. |
913 | * @arg_id: Argument passed by remote caller. |
914 | * @arg_message: Argument passed by remote caller. |
915 | * @arg_icon_name: Argument passed by remote caller. |
916 | * @arg_choices: Argument passed by remote caller. |
917 | * |
918 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.AskQuestion">AskQuestion()</link> D-Bus method. |
919 | * |
920 | * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call _ctk_mount_operation_handler_complete_ask_question() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. |
921 | * |
922 | * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. |
923 | */ |
924 | g_signal_new ("handle-ask-question", |
925 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
926 | G_SIGNAL_RUN_LAST, |
927 | G_STRUCT_OFFSET (_CtkMountOperationHandlerIface, handle_ask_question)((glong) __builtin_offsetof(_CtkMountOperationHandlerIface, handle_ask_question )), |
928 | g_signal_accumulator_true_handled, |
929 | NULL((void*)0), |
930 | _ctk_mount_operation_handler_method_marshal_ask_question, |
931 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
932 | 5, |
933 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRV(g_strv_get_type ())); |
934 | |
935 | /** |
936 | * _CtkMountOperationHandler::handle-show-processes: |
937 | * @object: A #_CtkMountOperationHandler. |
938 | * @invocation: A #GDBusMethodInvocation. |
939 | * @arg_id: Argument passed by remote caller. |
940 | * @arg_message: Argument passed by remote caller. |
941 | * @arg_icon_name: Argument passed by remote caller. |
942 | * @arg_application_pids: Argument passed by remote caller. |
943 | * @arg_choices: Argument passed by remote caller. |
944 | * |
945 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.ShowProcesses">ShowProcesses()</link> D-Bus method. |
946 | * |
947 | * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call _ctk_mount_operation_handler_complete_show_processes() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. |
948 | * |
949 | * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. |
950 | */ |
951 | g_signal_new ("handle-show-processes", |
952 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
953 | G_SIGNAL_RUN_LAST, |
954 | G_STRUCT_OFFSET (_CtkMountOperationHandlerIface, handle_show_processes)((glong) __builtin_offsetof(_CtkMountOperationHandlerIface, handle_show_processes )), |
955 | g_signal_accumulator_true_handled, |
956 | NULL((void*)0), |
957 | _ctk_mount_operation_handler_method_marshal_show_processes, |
958 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
959 | 6, |
960 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_VARIANT((GType) ((21) << (2))), G_TYPE_STRV(g_strv_get_type ())); |
961 | |
962 | /** |
963 | * _CtkMountOperationHandler::handle-close: |
964 | * @object: A #_CtkMountOperationHandler. |
965 | * @invocation: A #GDBusMethodInvocation. |
966 | * |
967 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.Close">Close()</link> D-Bus method. |
968 | * |
969 | * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call _ctk_mount_operation_handler_complete_close() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. |
970 | * |
971 | * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. |
972 | */ |
973 | g_signal_new ("handle-close", |
974 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
975 | G_SIGNAL_RUN_LAST, |
976 | G_STRUCT_OFFSET (_CtkMountOperationHandlerIface, handle_close)((glong) __builtin_offsetof(_CtkMountOperationHandlerIface, handle_close )), |
977 | g_signal_accumulator_true_handled, |
978 | NULL((void*)0), |
979 | _ctk_mount_operation_handler_method_marshal_close, |
980 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
981 | 1, |
982 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ())); |
983 | |
984 | } |
985 | |
986 | /** |
987 | * _ctk_mount_operation_handler_call_ask_password: |
988 | * @proxy: A #_CtkMountOperationHandlerProxy. |
989 | * @arg_id: Argument to pass with the method invocation. |
990 | * @arg_message: Argument to pass with the method invocation. |
991 | * @arg_icon_name: Argument to pass with the method invocation. |
992 | * @arg_default_user: Argument to pass with the method invocation. |
993 | * @arg_default_domain: Argument to pass with the method invocation. |
994 | * @arg_flags: Argument to pass with the method invocation. |
995 | * @cancellable: (nullable): A #GCancellable or %NULL. |
996 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
997 | * @user_data: User data to pass to @callback. |
998 | * |
999 | * Asynchronously invokes the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.AskPassword">AskPassword()</link> D-Bus method on @proxy. |
1000 | * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). |
1001 | * You can then call _ctk_mount_operation_handler_call_ask_password_finish() to get the result of the operation. |
1002 | * |
1003 | * See _ctk_mount_operation_handler_call_ask_password_sync() for the synchronous, blocking version of this method. |
1004 | */ |
1005 | void |
1006 | _ctk_mount_operation_handler_call_ask_password ( |
1007 | _CtkMountOperationHandler *proxy, |
1008 | const gchar *arg_id, |
1009 | const gchar *arg_message, |
1010 | const gchar *arg_icon_name, |
1011 | const gchar *arg_default_user, |
1012 | const gchar *arg_default_domain, |
1013 | guint arg_flags, |
1014 | GCancellable *cancellable, |
1015 | GAsyncReadyCallback callback, |
1016 | gpointer user_data) |
1017 | { |
1018 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1019 | "AskPassword", |
1020 | g_variant_new ("(sssssu)", |
1021 | arg_id, |
1022 | arg_message, |
1023 | arg_icon_name, |
1024 | arg_default_user, |
1025 | arg_default_domain, |
1026 | arg_flags), |
1027 | G_DBUS_CALL_FLAGS_NONE, |
1028 | -1, |
1029 | cancellable, |
1030 | callback, |
1031 | user_data); |
1032 | } |
1033 | |
1034 | /** |
1035 | * _ctk_mount_operation_handler_call_ask_password_finish: |
1036 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1037 | * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. |
1038 | * @out_response_details: (out) (optional): Return location for return parameter or %NULL to ignore. |
1039 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _ctk_mount_operation_handler_call_ask_password(). |
1040 | * @error: Return location for error or %NULL. |
1041 | * |
1042 | * Finishes an operation started with _ctk_mount_operation_handler_call_ask_password(). |
1043 | * |
1044 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1045 | */ |
1046 | gboolean |
1047 | _ctk_mount_operation_handler_call_ask_password_finish ( |
1048 | _CtkMountOperationHandler *proxy, |
1049 | guint *out_response, |
1050 | GVariant **out_response_details, |
1051 | GAsyncResult *res, |
1052 | GError **error) |
1053 | { |
1054 | GVariant *_ret; |
1055 | _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), res, error); |
1056 | if (_ret == NULL((void*)0)) |
1057 | goto _out; |
1058 | g_variant_get (_ret, |
1059 | "(u@a{sv})", |
1060 | out_response, |
1061 | out_response_details); |
1062 | g_variant_unref (_ret); |
1063 | _out: |
1064 | return _ret != NULL((void*)0); |
1065 | } |
1066 | |
1067 | /** |
1068 | * _ctk_mount_operation_handler_call_ask_password_sync: |
1069 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1070 | * @arg_id: Argument to pass with the method invocation. |
1071 | * @arg_message: Argument to pass with the method invocation. |
1072 | * @arg_icon_name: Argument to pass with the method invocation. |
1073 | * @arg_default_user: Argument to pass with the method invocation. |
1074 | * @arg_default_domain: Argument to pass with the method invocation. |
1075 | * @arg_flags: Argument to pass with the method invocation. |
1076 | * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. |
1077 | * @out_response_details: (out) (optional): Return location for return parameter or %NULL to ignore. |
1078 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1079 | * @error: Return location for error or %NULL. |
1080 | * |
1081 | * Synchronously invokes the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.AskPassword">AskPassword()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
1082 | * |
1083 | * See _ctk_mount_operation_handler_call_ask_password() for the asynchronous version of this method. |
1084 | * |
1085 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1086 | */ |
1087 | gboolean |
1088 | _ctk_mount_operation_handler_call_ask_password_sync ( |
1089 | _CtkMountOperationHandler *proxy, |
1090 | const gchar *arg_id, |
1091 | const gchar *arg_message, |
1092 | const gchar *arg_icon_name, |
1093 | const gchar *arg_default_user, |
1094 | const gchar *arg_default_domain, |
1095 | guint arg_flags, |
1096 | guint *out_response, |
1097 | GVariant **out_response_details, |
1098 | GCancellable *cancellable, |
1099 | GError **error) |
1100 | { |
1101 | GVariant *_ret; |
1102 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1103 | "AskPassword", |
1104 | g_variant_new ("(sssssu)", |
1105 | arg_id, |
1106 | arg_message, |
1107 | arg_icon_name, |
1108 | arg_default_user, |
1109 | arg_default_domain, |
1110 | arg_flags), |
1111 | G_DBUS_CALL_FLAGS_NONE, |
1112 | -1, |
1113 | cancellable, |
1114 | error); |
1115 | if (_ret == NULL((void*)0)) |
1116 | goto _out; |
1117 | g_variant_get (_ret, |
1118 | "(u@a{sv})", |
1119 | out_response, |
1120 | out_response_details); |
1121 | g_variant_unref (_ret); |
1122 | _out: |
1123 | return _ret != NULL((void*)0); |
1124 | } |
1125 | |
1126 | /** |
1127 | * _ctk_mount_operation_handler_call_ask_question: |
1128 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1129 | * @arg_id: Argument to pass with the method invocation. |
1130 | * @arg_message: Argument to pass with the method invocation. |
1131 | * @arg_icon_name: Argument to pass with the method invocation. |
1132 | * @arg_choices: Argument to pass with the method invocation. |
1133 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1134 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
1135 | * @user_data: User data to pass to @callback. |
1136 | * |
1137 | * Asynchronously invokes the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.AskQuestion">AskQuestion()</link> D-Bus method on @proxy. |
1138 | * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). |
1139 | * You can then call _ctk_mount_operation_handler_call_ask_question_finish() to get the result of the operation. |
1140 | * |
1141 | * See _ctk_mount_operation_handler_call_ask_question_sync() for the synchronous, blocking version of this method. |
1142 | */ |
1143 | void |
1144 | _ctk_mount_operation_handler_call_ask_question ( |
1145 | _CtkMountOperationHandler *proxy, |
1146 | const gchar *arg_id, |
1147 | const gchar *arg_message, |
1148 | const gchar *arg_icon_name, |
1149 | const gchar *const *arg_choices, |
1150 | GCancellable *cancellable, |
1151 | GAsyncReadyCallback callback, |
1152 | gpointer user_data) |
1153 | { |
1154 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1155 | "AskQuestion", |
1156 | g_variant_new ("(sss^as)", |
1157 | arg_id, |
1158 | arg_message, |
1159 | arg_icon_name, |
1160 | arg_choices), |
1161 | G_DBUS_CALL_FLAGS_NONE, |
1162 | -1, |
1163 | cancellable, |
1164 | callback, |
1165 | user_data); |
1166 | } |
1167 | |
1168 | /** |
1169 | * _ctk_mount_operation_handler_call_ask_question_finish: |
1170 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1171 | * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. |
1172 | * @out_response_details: (out) (optional): Return location for return parameter or %NULL to ignore. |
1173 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _ctk_mount_operation_handler_call_ask_question(). |
1174 | * @error: Return location for error or %NULL. |
1175 | * |
1176 | * Finishes an operation started with _ctk_mount_operation_handler_call_ask_question(). |
1177 | * |
1178 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1179 | */ |
1180 | gboolean |
1181 | _ctk_mount_operation_handler_call_ask_question_finish ( |
1182 | _CtkMountOperationHandler *proxy, |
1183 | guint *out_response, |
1184 | GVariant **out_response_details, |
1185 | GAsyncResult *res, |
1186 | GError **error) |
1187 | { |
1188 | GVariant *_ret; |
1189 | _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), res, error); |
1190 | if (_ret == NULL((void*)0)) |
1191 | goto _out; |
1192 | g_variant_get (_ret, |
1193 | "(u@a{sv})", |
1194 | out_response, |
1195 | out_response_details); |
1196 | g_variant_unref (_ret); |
1197 | _out: |
1198 | return _ret != NULL((void*)0); |
1199 | } |
1200 | |
1201 | /** |
1202 | * _ctk_mount_operation_handler_call_ask_question_sync: |
1203 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1204 | * @arg_id: Argument to pass with the method invocation. |
1205 | * @arg_message: Argument to pass with the method invocation. |
1206 | * @arg_icon_name: Argument to pass with the method invocation. |
1207 | * @arg_choices: Argument to pass with the method invocation. |
1208 | * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. |
1209 | * @out_response_details: (out) (optional): Return location for return parameter or %NULL to ignore. |
1210 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1211 | * @error: Return location for error or %NULL. |
1212 | * |
1213 | * Synchronously invokes the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.AskQuestion">AskQuestion()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
1214 | * |
1215 | * See _ctk_mount_operation_handler_call_ask_question() for the asynchronous version of this method. |
1216 | * |
1217 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1218 | */ |
1219 | gboolean |
1220 | _ctk_mount_operation_handler_call_ask_question_sync ( |
1221 | _CtkMountOperationHandler *proxy, |
1222 | const gchar *arg_id, |
1223 | const gchar *arg_message, |
1224 | const gchar *arg_icon_name, |
1225 | const gchar *const *arg_choices, |
1226 | guint *out_response, |
1227 | GVariant **out_response_details, |
1228 | GCancellable *cancellable, |
1229 | GError **error) |
1230 | { |
1231 | GVariant *_ret; |
1232 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1233 | "AskQuestion", |
1234 | g_variant_new ("(sss^as)", |
1235 | arg_id, |
1236 | arg_message, |
1237 | arg_icon_name, |
1238 | arg_choices), |
1239 | G_DBUS_CALL_FLAGS_NONE, |
1240 | -1, |
1241 | cancellable, |
1242 | error); |
1243 | if (_ret == NULL((void*)0)) |
1244 | goto _out; |
1245 | g_variant_get (_ret, |
1246 | "(u@a{sv})", |
1247 | out_response, |
1248 | out_response_details); |
1249 | g_variant_unref (_ret); |
1250 | _out: |
1251 | return _ret != NULL((void*)0); |
1252 | } |
1253 | |
1254 | /** |
1255 | * _ctk_mount_operation_handler_call_show_processes: |
1256 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1257 | * @arg_id: Argument to pass with the method invocation. |
1258 | * @arg_message: Argument to pass with the method invocation. |
1259 | * @arg_icon_name: Argument to pass with the method invocation. |
1260 | * @arg_application_pids: Argument to pass with the method invocation. |
1261 | * @arg_choices: Argument to pass with the method invocation. |
1262 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1263 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
1264 | * @user_data: User data to pass to @callback. |
1265 | * |
1266 | * Asynchronously invokes the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.ShowProcesses">ShowProcesses()</link> D-Bus method on @proxy. |
1267 | * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). |
1268 | * You can then call _ctk_mount_operation_handler_call_show_processes_finish() to get the result of the operation. |
1269 | * |
1270 | * See _ctk_mount_operation_handler_call_show_processes_sync() for the synchronous, blocking version of this method. |
1271 | */ |
1272 | void |
1273 | _ctk_mount_operation_handler_call_show_processes ( |
1274 | _CtkMountOperationHandler *proxy, |
1275 | const gchar *arg_id, |
1276 | const gchar *arg_message, |
1277 | const gchar *arg_icon_name, |
1278 | GVariant *arg_application_pids, |
1279 | const gchar *const *arg_choices, |
1280 | GCancellable *cancellable, |
1281 | GAsyncReadyCallback callback, |
1282 | gpointer user_data) |
1283 | { |
1284 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1285 | "ShowProcesses", |
1286 | g_variant_new ("(sss@ai^as)", |
1287 | arg_id, |
1288 | arg_message, |
1289 | arg_icon_name, |
1290 | arg_application_pids, |
1291 | arg_choices), |
1292 | G_DBUS_CALL_FLAGS_NONE, |
1293 | -1, |
1294 | cancellable, |
1295 | callback, |
1296 | user_data); |
1297 | } |
1298 | |
1299 | /** |
1300 | * _ctk_mount_operation_handler_call_show_processes_finish: |
1301 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1302 | * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. |
1303 | * @out_response_details: (out) (optional): Return location for return parameter or %NULL to ignore. |
1304 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _ctk_mount_operation_handler_call_show_processes(). |
1305 | * @error: Return location for error or %NULL. |
1306 | * |
1307 | * Finishes an operation started with _ctk_mount_operation_handler_call_show_processes(). |
1308 | * |
1309 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1310 | */ |
1311 | gboolean |
1312 | _ctk_mount_operation_handler_call_show_processes_finish ( |
1313 | _CtkMountOperationHandler *proxy, |
1314 | guint *out_response, |
1315 | GVariant **out_response_details, |
1316 | GAsyncResult *res, |
1317 | GError **error) |
1318 | { |
1319 | GVariant *_ret; |
1320 | _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), res, error); |
1321 | if (_ret == NULL((void*)0)) |
1322 | goto _out; |
1323 | g_variant_get (_ret, |
1324 | "(u@a{sv})", |
1325 | out_response, |
1326 | out_response_details); |
1327 | g_variant_unref (_ret); |
1328 | _out: |
1329 | return _ret != NULL((void*)0); |
1330 | } |
1331 | |
1332 | /** |
1333 | * _ctk_mount_operation_handler_call_show_processes_sync: |
1334 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1335 | * @arg_id: Argument to pass with the method invocation. |
1336 | * @arg_message: Argument to pass with the method invocation. |
1337 | * @arg_icon_name: Argument to pass with the method invocation. |
1338 | * @arg_application_pids: Argument to pass with the method invocation. |
1339 | * @arg_choices: Argument to pass with the method invocation. |
1340 | * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. |
1341 | * @out_response_details: (out) (optional): Return location for return parameter or %NULL to ignore. |
1342 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1343 | * @error: Return location for error or %NULL. |
1344 | * |
1345 | * Synchronously invokes the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.ShowProcesses">ShowProcesses()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
1346 | * |
1347 | * See _ctk_mount_operation_handler_call_show_processes() for the asynchronous version of this method. |
1348 | * |
1349 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1350 | */ |
1351 | gboolean |
1352 | _ctk_mount_operation_handler_call_show_processes_sync ( |
1353 | _CtkMountOperationHandler *proxy, |
1354 | const gchar *arg_id, |
1355 | const gchar *arg_message, |
1356 | const gchar *arg_icon_name, |
1357 | GVariant *arg_application_pids, |
1358 | const gchar *const *arg_choices, |
1359 | guint *out_response, |
1360 | GVariant **out_response_details, |
1361 | GCancellable *cancellable, |
1362 | GError **error) |
1363 | { |
1364 | GVariant *_ret; |
1365 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1366 | "ShowProcesses", |
1367 | g_variant_new ("(sss@ai^as)", |
1368 | arg_id, |
1369 | arg_message, |
1370 | arg_icon_name, |
1371 | arg_application_pids, |
1372 | arg_choices), |
1373 | G_DBUS_CALL_FLAGS_NONE, |
1374 | -1, |
1375 | cancellable, |
1376 | error); |
1377 | if (_ret == NULL((void*)0)) |
1378 | goto _out; |
1379 | g_variant_get (_ret, |
1380 | "(u@a{sv})", |
1381 | out_response, |
1382 | out_response_details); |
1383 | g_variant_unref (_ret); |
1384 | _out: |
1385 | return _ret != NULL((void*)0); |
1386 | } |
1387 | |
1388 | /** |
1389 | * _ctk_mount_operation_handler_call_close: |
1390 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1391 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1392 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
1393 | * @user_data: User data to pass to @callback. |
1394 | * |
1395 | * Asynchronously invokes the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.Close">Close()</link> D-Bus method on @proxy. |
1396 | * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). |
1397 | * You can then call _ctk_mount_operation_handler_call_close_finish() to get the result of the operation. |
1398 | * |
1399 | * See _ctk_mount_operation_handler_call_close_sync() for the synchronous, blocking version of this method. |
1400 | */ |
1401 | void |
1402 | _ctk_mount_operation_handler_call_close ( |
1403 | _CtkMountOperationHandler *proxy, |
1404 | GCancellable *cancellable, |
1405 | GAsyncReadyCallback callback, |
1406 | gpointer user_data) |
1407 | { |
1408 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1409 | "Close", |
1410 | g_variant_new ("()"), |
1411 | G_DBUS_CALL_FLAGS_NONE, |
1412 | -1, |
1413 | cancellable, |
1414 | callback, |
1415 | user_data); |
1416 | } |
1417 | |
1418 | /** |
1419 | * _ctk_mount_operation_handler_call_close_finish: |
1420 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1421 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _ctk_mount_operation_handler_call_close(). |
1422 | * @error: Return location for error or %NULL. |
1423 | * |
1424 | * Finishes an operation started with _ctk_mount_operation_handler_call_close(). |
1425 | * |
1426 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1427 | */ |
1428 | gboolean |
1429 | _ctk_mount_operation_handler_call_close_finish ( |
1430 | _CtkMountOperationHandler *proxy, |
1431 | GAsyncResult *res, |
1432 | GError **error) |
1433 | { |
1434 | GVariant *_ret; |
1435 | _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), res, error); |
1436 | if (_ret == NULL((void*)0)) |
1437 | goto _out; |
1438 | g_variant_get (_ret, |
1439 | "()"); |
1440 | g_variant_unref (_ret); |
1441 | _out: |
1442 | return _ret != NULL((void*)0); |
1443 | } |
1444 | |
1445 | /** |
1446 | * _ctk_mount_operation_handler_call_close_sync: |
1447 | * @proxy: A #_CtkMountOperationHandlerProxy. |
1448 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1449 | * @error: Return location for error or %NULL. |
1450 | * |
1451 | * Synchronously invokes the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.Close">Close()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
1452 | * |
1453 | * See _ctk_mount_operation_handler_call_close() for the asynchronous version of this method. |
1454 | * |
1455 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1456 | */ |
1457 | gboolean |
1458 | _ctk_mount_operation_handler_call_close_sync ( |
1459 | _CtkMountOperationHandler *proxy, |
1460 | GCancellable *cancellable, |
1461 | GError **error) |
1462 | { |
1463 | GVariant *_ret; |
1464 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1465 | "Close", |
1466 | g_variant_new ("()"), |
1467 | G_DBUS_CALL_FLAGS_NONE, |
1468 | -1, |
1469 | cancellable, |
1470 | error); |
1471 | if (_ret == NULL((void*)0)) |
1472 | goto _out; |
1473 | g_variant_get (_ret, |
1474 | "()"); |
1475 | g_variant_unref (_ret); |
1476 | _out: |
1477 | return _ret != NULL((void*)0); |
1478 | } |
1479 | |
1480 | /** |
1481 | * _ctk_mount_operation_handler_complete_ask_password: |
1482 | * @object: A #_CtkMountOperationHandler. |
1483 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
1484 | * @response: Parameter to return. |
1485 | * @response_details: Parameter to return. |
1486 | * |
1487 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.AskPassword">AskPassword()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. |
1488 | * |
1489 | * This method will free @invocation, you cannot use it afterwards. |
1490 | */ |
1491 | void |
1492 | _ctk_mount_operation_handler_complete_ask_password ( |
1493 | _CtkMountOperationHandler *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
1494 | GDBusMethodInvocation *invocation, |
1495 | guint response, |
1496 | GVariant *response_details) |
1497 | { |
1498 | g_dbus_method_invocation_return_value (invocation, |
1499 | g_variant_new ("(u@a{sv})", |
1500 | response, |
1501 | response_details)); |
1502 | } |
1503 | |
1504 | /** |
1505 | * _ctk_mount_operation_handler_complete_ask_question: |
1506 | * @object: A #_CtkMountOperationHandler. |
1507 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
1508 | * @response: Parameter to return. |
1509 | * @response_details: Parameter to return. |
1510 | * |
1511 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.AskQuestion">AskQuestion()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. |
1512 | * |
1513 | * This method will free @invocation, you cannot use it afterwards. |
1514 | */ |
1515 | void |
1516 | _ctk_mount_operation_handler_complete_ask_question ( |
1517 | _CtkMountOperationHandler *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
1518 | GDBusMethodInvocation *invocation, |
1519 | guint response, |
1520 | GVariant *response_details) |
1521 | { |
1522 | g_dbus_method_invocation_return_value (invocation, |
1523 | g_variant_new ("(u@a{sv})", |
1524 | response, |
1525 | response_details)); |
1526 | } |
1527 | |
1528 | /** |
1529 | * _ctk_mount_operation_handler_complete_show_processes: |
1530 | * @object: A #_CtkMountOperationHandler. |
1531 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
1532 | * @response: Parameter to return. |
1533 | * @response_details: Parameter to return. |
1534 | * |
1535 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.ShowProcesses">ShowProcesses()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. |
1536 | * |
1537 | * This method will free @invocation, you cannot use it afterwards. |
1538 | */ |
1539 | void |
1540 | _ctk_mount_operation_handler_complete_show_processes ( |
1541 | _CtkMountOperationHandler *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
1542 | GDBusMethodInvocation *invocation, |
1543 | guint response, |
1544 | GVariant *response_details) |
1545 | { |
1546 | g_dbus_method_invocation_return_value (invocation, |
1547 | g_variant_new ("(u@a{sv})", |
1548 | response, |
1549 | response_details)); |
1550 | } |
1551 | |
1552 | /** |
1553 | * _ctk_mount_operation_handler_complete_close: |
1554 | * @object: A #_CtkMountOperationHandler. |
1555 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
1556 | * |
1557 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-Ctk-MountOperationHandler.Close">Close()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. |
1558 | * |
1559 | * This method will free @invocation, you cannot use it afterwards. |
1560 | */ |
1561 | void |
1562 | _ctk_mount_operation_handler_complete_close ( |
1563 | _CtkMountOperationHandler *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
1564 | GDBusMethodInvocation *invocation) |
1565 | { |
1566 | g_dbus_method_invocation_return_value (invocation, |
1567 | g_variant_new ("()")); |
1568 | } |
1569 | |
1570 | /* ------------------------------------------------------------------------ */ |
1571 | |
1572 | /** |
1573 | * _CtkMountOperationHandlerProxy: |
1574 | * |
1575 | * The #_CtkMountOperationHandlerProxy structure contains only private data and should only be accessed using the provided API. |
1576 | */ |
1577 | |
1578 | /** |
1579 | * _CtkMountOperationHandlerProxyClass: |
1580 | * @parent_class: The parent class. |
1581 | * |
1582 | * Class structure for #_CtkMountOperationHandlerProxy. |
1583 | */ |
1584 | |
1585 | struct __CtkMountOperationHandlerProxyPrivate |
1586 | { |
1587 | GData *qdata; |
1588 | }; |
1589 | |
1590 | static void _ctk_mount_operation_handler_proxy_iface_init (_CtkMountOperationHandlerIface *iface); |
1591 | |
1592 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1593 | G_DEFINE_TYPE_WITH_CODE (_CtkMountOperationHandlerProxy, _ctk_mount_operation_handler_proxy, G_TYPE_DBUS_PROXY,static void _ctk_mount_operation_handler_proxy_init (_CtkMountOperationHandlerProxy *self); static void _ctk_mount_operation_handler_proxy_class_init (_CtkMountOperationHandlerProxyClass *klass); static GType _ctk_mount_operation_handler_proxy_get_type_once (void); static gpointer _ctk_mount_operation_handler_proxy_parent_class = ((void*)0); static gint _CtkMountOperationHandlerProxy_private_offset ; static void _ctk_mount_operation_handler_proxy_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_proxy_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerProxy_private_offset ); _ctk_mount_operation_handler_proxy_class_init ((_CtkMountOperationHandlerProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_proxy_get_instance_private (_CtkMountOperationHandlerProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerProxy_private_offset )))); } GType _ctk_mount_operation_handler_proxy_get_type (void ) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_proxy_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerProxy" ), sizeof (_CtkMountOperationHandlerProxyClass), (GClassInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_class_intern_init , sizeof (_CtkMountOperationHandlerProxy), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_init, (GTypeFlags ) 0); { {{ _CtkMountOperationHandlerProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (_CtkMountOperationHandlerProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1594 | G_ADD_PRIVATE (_CtkMountOperationHandlerProxy)static void _ctk_mount_operation_handler_proxy_init (_CtkMountOperationHandlerProxy *self); static void _ctk_mount_operation_handler_proxy_class_init (_CtkMountOperationHandlerProxyClass *klass); static GType _ctk_mount_operation_handler_proxy_get_type_once (void); static gpointer _ctk_mount_operation_handler_proxy_parent_class = ((void*)0); static gint _CtkMountOperationHandlerProxy_private_offset ; static void _ctk_mount_operation_handler_proxy_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_proxy_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerProxy_private_offset ); _ctk_mount_operation_handler_proxy_class_init ((_CtkMountOperationHandlerProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_proxy_get_instance_private (_CtkMountOperationHandlerProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerProxy_private_offset )))); } GType _ctk_mount_operation_handler_proxy_get_type (void ) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_proxy_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerProxy" ), sizeof (_CtkMountOperationHandlerProxyClass), (GClassInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_class_intern_init , sizeof (_CtkMountOperationHandlerProxy), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_init, (GTypeFlags ) 0); { {{ _CtkMountOperationHandlerProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (_CtkMountOperationHandlerProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1595 | G_IMPLEMENT_INTERFACE (_CTK_TYPE_MOUNT_OPERATION_HANDLER, _ctk_mount_operation_handler_proxy_iface_init))static void _ctk_mount_operation_handler_proxy_init (_CtkMountOperationHandlerProxy *self); static void _ctk_mount_operation_handler_proxy_class_init (_CtkMountOperationHandlerProxyClass *klass); static GType _ctk_mount_operation_handler_proxy_get_type_once (void); static gpointer _ctk_mount_operation_handler_proxy_parent_class = ((void*)0); static gint _CtkMountOperationHandlerProxy_private_offset ; static void _ctk_mount_operation_handler_proxy_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_proxy_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerProxy_private_offset ); _ctk_mount_operation_handler_proxy_class_init ((_CtkMountOperationHandlerProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_proxy_get_instance_private (_CtkMountOperationHandlerProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerProxy_private_offset )))); } GType _ctk_mount_operation_handler_proxy_get_type (void ) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_proxy_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerProxy" ), sizeof (_CtkMountOperationHandlerProxyClass), (GClassInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_class_intern_init , sizeof (_CtkMountOperationHandlerProxy), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_init, (GTypeFlags ) 0); { {{ _CtkMountOperationHandlerProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (_CtkMountOperationHandlerProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1596 | |
1597 | #else |
1598 | G_DEFINE_TYPE_WITH_CODE (_CtkMountOperationHandlerProxy, _ctk_mount_operation_handler_proxy, G_TYPE_DBUS_PROXY,static void _ctk_mount_operation_handler_proxy_init (_CtkMountOperationHandlerProxy *self); static void _ctk_mount_operation_handler_proxy_class_init (_CtkMountOperationHandlerProxyClass *klass); static GType _ctk_mount_operation_handler_proxy_get_type_once (void); static gpointer _ctk_mount_operation_handler_proxy_parent_class = ((void*)0); static gint _CtkMountOperationHandlerProxy_private_offset ; static void _ctk_mount_operation_handler_proxy_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_proxy_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerProxy_private_offset ); _ctk_mount_operation_handler_proxy_class_init ((_CtkMountOperationHandlerProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_proxy_get_instance_private (_CtkMountOperationHandlerProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerProxy_private_offset )))); } GType _ctk_mount_operation_handler_proxy_get_type (void ) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_proxy_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerProxy" ), sizeof (_CtkMountOperationHandlerProxyClass), (GClassInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_class_intern_init , sizeof (_CtkMountOperationHandlerProxy), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_init, (GTypeFlags ) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1599 | G_IMPLEMENT_INTERFACE (_CTK_TYPE_MOUNT_OPERATION_HANDLER, _ctk_mount_operation_handler_proxy_iface_init))static void _ctk_mount_operation_handler_proxy_init (_CtkMountOperationHandlerProxy *self); static void _ctk_mount_operation_handler_proxy_class_init (_CtkMountOperationHandlerProxyClass *klass); static GType _ctk_mount_operation_handler_proxy_get_type_once (void); static gpointer _ctk_mount_operation_handler_proxy_parent_class = ((void*)0); static gint _CtkMountOperationHandlerProxy_private_offset ; static void _ctk_mount_operation_handler_proxy_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_proxy_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerProxy_private_offset ); _ctk_mount_operation_handler_proxy_class_init ((_CtkMountOperationHandlerProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_proxy_get_instance_private (_CtkMountOperationHandlerProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerProxy_private_offset )))); } GType _ctk_mount_operation_handler_proxy_get_type (void ) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_proxy_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerProxy" ), sizeof (_CtkMountOperationHandlerProxyClass), (GClassInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_class_intern_init , sizeof (_CtkMountOperationHandlerProxy), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_proxy_init, (GTypeFlags ) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1600 | |
1601 | #endif |
1602 | static void |
1603 | _ctk_mount_operation_handler_proxy_finalize (GObject *object) |
1604 | { |
1605 | _CtkMountOperationHandlerProxy *proxy = _CTK_MOUNT_OPERATION_HANDLER_PROXY (object)((((_CtkMountOperationHandlerProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((_ctk_mount_operation_handler_proxy_get_type ())))))); |
1606 | g_datalist_clear (&proxy->priv->qdata); |
1607 | G_OBJECT_CLASS (_ctk_mount_operation_handler_proxy_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((_ctk_mount_operation_handler_proxy_parent_class)), (((GType ) ((20) << (2))))))))->finalize (object); |
1608 | } |
1609 | |
1610 | static void |
1611 | _ctk_mount_operation_handler_proxy_get_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
1612 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
1613 | GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
1614 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
1615 | { |
1616 | } |
1617 | |
1618 | static void |
1619 | _ctk_mount_operation_handler_proxy_set_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
1620 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
1621 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
1622 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
1623 | { |
1624 | } |
1625 | |
1626 | static void |
1627 | _ctk_mount_operation_handler_proxy_g_signal (GDBusProxy *proxy, |
1628 | const gchar *sender_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
1629 | const gchar *signal_name, |
1630 | GVariant *parameters) |
1631 | { |
1632 | _ExtendedGDBusSignalInfo *info; |
1633 | GVariantIter iter; |
1634 | GVariant *child; |
1635 | GValue *paramv; |
1636 | gsize num_params; |
1637 | gsize n; |
1638 | guint signal_id; |
1639 | info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &__ctk_mount_operation_handler_interface_info.parent_struct, signal_name); |
1640 | if (info == NULL((void*)0)) |
1641 | return; |
1642 | num_params = g_variant_n_children (parameters); |
1643 | paramv = g_new0 (GValue, num_params + 1)((GValue *) g_malloc0_n ((num_params + 1), sizeof (GValue))); |
1644 | g_value_init (¶mv[0], _CTK_TYPE_MOUNT_OPERATION_HANDLER(_ctk_mount_operation_handler_get_type ())); |
1645 | g_value_set_object (¶mv[0], proxy); |
1646 | g_variant_iter_init (&iter, parameters); |
1647 | n = 1; |
1648 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
1649 | { |
1650 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; |
1651 | if (arg_info->use_gvariant) |
1652 | { |
1653 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
1654 | g_value_set_variant (¶mv[n], child); |
1655 | n++; |
1656 | } |
1657 | else |
1658 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
1659 | g_variant_unref (child); |
1660 | } |
1661 | signal_id = g_signal_lookup (info->signal_name, _CTK_TYPE_MOUNT_OPERATION_HANDLER(_ctk_mount_operation_handler_get_type ())); |
1662 | g_signal_emitv (paramv, signal_id, 0, NULL((void*)0)); |
1663 | for (n = 0; n < num_params + 1; n++) |
1664 | g_value_unset (¶mv[n]); |
1665 | g_free (paramv); |
1666 | } |
1667 | |
1668 | static void |
1669 | _ctk_mount_operation_handler_proxy_g_properties_changed (GDBusProxy *_proxy, |
1670 | GVariant *changed_properties, |
1671 | const gchar *const *invalidated_properties) |
1672 | { |
1673 | _CtkMountOperationHandlerProxy *proxy = _CTK_MOUNT_OPERATION_HANDLER_PROXY (_proxy)((((_CtkMountOperationHandlerProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_proxy)), ((_ctk_mount_operation_handler_proxy_get_type ())))))); |
1674 | guint n; |
1675 | const gchar *key; |
1676 | GVariantIter *iter; |
1677 | _ExtendedGDBusPropertyInfo *info; |
1678 | g_variant_get (changed_properties, "a{sv}", &iter); |
1679 | while (g_variant_iter_next (iter, "{&sv}", &key, NULL((void*)0))) |
1680 | { |
1681 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &__ctk_mount_operation_handler_interface_info.parent_struct, key); |
1682 | g_datalist_remove_data (&proxy->priv->qdata, key)g_datalist_id_set_data_full (((&proxy->priv->qdata) ), (g_quark_try_string (key)), (((void*)0)), ((void*)0)); |
1683 | if (info != NULL((void*)0)) |
1684 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
1685 | } |
1686 | g_variant_iter_free (iter); |
1687 | for (n = 0; invalidated_properties[n] != NULL((void*)0); n++) |
1688 | { |
1689 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &__ctk_mount_operation_handler_interface_info.parent_struct, invalidated_properties[n]); |
1690 | g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n])g_datalist_id_set_data_full (((&proxy->priv->qdata) ), (g_quark_try_string (invalidated_properties[n])), (((void* )0)), ((void*)0)); |
1691 | if (info != NULL((void*)0)) |
1692 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
1693 | } |
1694 | } |
1695 | |
1696 | static void |
1697 | _ctk_mount_operation_handler_proxy_init (_CtkMountOperationHandlerProxy *proxy) |
1698 | { |
1699 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1700 | proxy->priv = _ctk_mount_operation_handler_proxy_get_instance_private (proxy); |
1701 | #else |
1702 | proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, _CTK_TYPE_MOUNT_OPERATION_HANDLER_PROXY, _CtkMountOperationHandlerProxyPrivate)((_CtkMountOperationHandlerProxyPrivate*) g_type_instance_get_private ((GTypeInstance*) (proxy), ((_ctk_mount_operation_handler_proxy_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
1703 | #endif |
1704 | |
1705 | g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), _ctk_mount_operation_handler_interface_info ()); |
1706 | } |
1707 | |
1708 | static void |
1709 | _ctk_mount_operation_handler_proxy_class_init (_CtkMountOperationHandlerProxyClass *klass) |
1710 | { |
1711 | GObjectClass *gobject_class; |
1712 | GDBusProxyClass *proxy_class; |
1713 | |
1714 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
1715 | gobject_class->finalize = _ctk_mount_operation_handler_proxy_finalize; |
1716 | gobject_class->get_property = _ctk_mount_operation_handler_proxy_get_property; |
1717 | gobject_class->set_property = _ctk_mount_operation_handler_proxy_set_property; |
1718 | |
1719 | proxy_class = G_DBUS_PROXY_CLASS (klass)((((GDBusProxyClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), ((g_dbus_proxy_get_type ())))))); |
1720 | proxy_class->g_signal = _ctk_mount_operation_handler_proxy_g_signal; |
1721 | proxy_class->g_properties_changed = _ctk_mount_operation_handler_proxy_g_properties_changed; |
1722 | |
1723 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1724 | g_type_class_add_private (klass, sizeof (_CtkMountOperationHandlerProxyPrivate)); |
1725 | #endif |
1726 | } |
1727 | |
1728 | static void |
1729 | _ctk_mount_operation_handler_proxy_iface_init (_CtkMountOperationHandlerIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
1730 | { |
1731 | } |
1732 | |
1733 | /** |
1734 | * _ctk_mount_operation_handler_proxy_new: |
1735 | * @connection: A #GDBusConnection. |
1736 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1737 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
1738 | * @object_path: An object path. |
1739 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1740 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
1741 | * @user_data: User data to pass to @callback. |
1742 | * |
1743 | * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-Ctk-MountOperationHandler.top_of_page">org.Ctk.MountOperationHandler</link>. See g_dbus_proxy_new() for more details. |
1744 | * |
1745 | * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). |
1746 | * You can then call _ctk_mount_operation_handler_proxy_new_finish() to get the result of the operation. |
1747 | * |
1748 | * See _ctk_mount_operation_handler_proxy_new_sync() for the synchronous, blocking version of this constructor. |
1749 | */ |
1750 | void |
1751 | _ctk_mount_operation_handler_proxy_new ( |
1752 | GDBusConnection *connection, |
1753 | GDBusProxyFlags flags, |
1754 | const gchar *name, |
1755 | const gchar *object_path, |
1756 | GCancellable *cancellable, |
1757 | GAsyncReadyCallback callback, |
1758 | gpointer user_data) |
1759 | { |
1760 | g_async_initable_new_async (_CTK_TYPE_MOUNT_OPERATION_HANDLER_PROXY(_ctk_mount_operation_handler_proxy_get_type ()), G_PRIORITY_DEFAULT0, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.Ctk.MountOperationHandler", NULL((void*)0)); |
1761 | } |
1762 | |
1763 | /** |
1764 | * _ctk_mount_operation_handler_proxy_new_finish: |
1765 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _ctk_mount_operation_handler_proxy_new(). |
1766 | * @error: Return location for error or %NULL |
1767 | * |
1768 | * Finishes an operation started with _ctk_mount_operation_handler_proxy_new(). |
1769 | * |
1770 | * Returns: (transfer full) (type _CtkMountOperationHandlerProxy): The constructed proxy object or %NULL if @error is set. |
1771 | */ |
1772 | _CtkMountOperationHandler * |
1773 | _ctk_mount_operation_handler_proxy_new_finish ( |
1774 | GAsyncResult *res, |
1775 | GError **error) |
1776 | { |
1777 | GObject *ret; |
1778 | GObject *source_object; |
1779 | source_object = g_async_result_get_source_object (res); |
1780 | ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object)((((GAsyncInitable*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((source_object)), ((g_async_initable_get_type ())))))), res, error); |
1781 | g_object_unref (source_object); |
1782 | if (ret != NULL((void*)0)) |
1783 | return _CTK_MOUNT_OPERATION_HANDLER (ret)((((_CtkMountOperationHandler*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((_ctk_mount_operation_handler_get_type ())))))); |
1784 | else |
1785 | return NULL((void*)0); |
1786 | } |
1787 | |
1788 | /** |
1789 | * _ctk_mount_operation_handler_proxy_new_sync: |
1790 | * @connection: A #GDBusConnection. |
1791 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1792 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
1793 | * @object_path: An object path. |
1794 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1795 | * @error: Return location for error or %NULL |
1796 | * |
1797 | * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-Ctk-MountOperationHandler.top_of_page">org.Ctk.MountOperationHandler</link>. See g_dbus_proxy_new_sync() for more details. |
1798 | * |
1799 | * The calling thread is blocked until a reply is received. |
1800 | * |
1801 | * See _ctk_mount_operation_handler_proxy_new() for the asynchronous version of this constructor. |
1802 | * |
1803 | * Returns: (transfer full) (type _CtkMountOperationHandlerProxy): The constructed proxy object or %NULL if @error is set. |
1804 | */ |
1805 | _CtkMountOperationHandler * |
1806 | _ctk_mount_operation_handler_proxy_new_sync ( |
1807 | GDBusConnection *connection, |
1808 | GDBusProxyFlags flags, |
1809 | const gchar *name, |
1810 | const gchar *object_path, |
1811 | GCancellable *cancellable, |
1812 | GError **error) |
1813 | { |
1814 | GInitable *ret; |
1815 | ret = g_initable_new (_CTK_TYPE_MOUNT_OPERATION_HANDLER_PROXY(_ctk_mount_operation_handler_proxy_get_type ()), cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.Ctk.MountOperationHandler", NULL((void*)0)); |
1816 | if (ret != NULL((void*)0)) |
1817 | return _CTK_MOUNT_OPERATION_HANDLER (ret)((((_CtkMountOperationHandler*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((_ctk_mount_operation_handler_get_type ())))))); |
1818 | else |
1819 | return NULL((void*)0); |
1820 | } |
1821 | |
1822 | |
1823 | /** |
1824 | * _ctk_mount_operation_handler_proxy_new_for_bus: |
1825 | * @bus_type: A #GBusType. |
1826 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1827 | * @name: A bus name (well-known or unique). |
1828 | * @object_path: An object path. |
1829 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1830 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
1831 | * @user_data: User data to pass to @callback. |
1832 | * |
1833 | * Like _ctk_mount_operation_handler_proxy_new() but takes a #GBusType instead of a #GDBusConnection. |
1834 | * |
1835 | * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). |
1836 | * You can then call _ctk_mount_operation_handler_proxy_new_for_bus_finish() to get the result of the operation. |
1837 | * |
1838 | * See _ctk_mount_operation_handler_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
1839 | */ |
1840 | void |
1841 | _ctk_mount_operation_handler_proxy_new_for_bus ( |
1842 | GBusType bus_type, |
1843 | GDBusProxyFlags flags, |
1844 | const gchar *name, |
1845 | const gchar *object_path, |
1846 | GCancellable *cancellable, |
1847 | GAsyncReadyCallback callback, |
1848 | gpointer user_data) |
1849 | { |
1850 | g_async_initable_new_async (_CTK_TYPE_MOUNT_OPERATION_HANDLER_PROXY(_ctk_mount_operation_handler_proxy_get_type ()), G_PRIORITY_DEFAULT0, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.Ctk.MountOperationHandler", NULL((void*)0)); |
1851 | } |
1852 | |
1853 | /** |
1854 | * _ctk_mount_operation_handler_proxy_new_for_bus_finish: |
1855 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to _ctk_mount_operation_handler_proxy_new_for_bus(). |
1856 | * @error: Return location for error or %NULL |
1857 | * |
1858 | * Finishes an operation started with _ctk_mount_operation_handler_proxy_new_for_bus(). |
1859 | * |
1860 | * Returns: (transfer full) (type _CtkMountOperationHandlerProxy): The constructed proxy object or %NULL if @error is set. |
1861 | */ |
1862 | _CtkMountOperationHandler * |
1863 | _ctk_mount_operation_handler_proxy_new_for_bus_finish ( |
1864 | GAsyncResult *res, |
1865 | GError **error) |
1866 | { |
1867 | GObject *ret; |
1868 | GObject *source_object; |
1869 | source_object = g_async_result_get_source_object (res); |
1870 | ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object)((((GAsyncInitable*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((source_object)), ((g_async_initable_get_type ())))))), res, error); |
1871 | g_object_unref (source_object); |
1872 | if (ret != NULL((void*)0)) |
1873 | return _CTK_MOUNT_OPERATION_HANDLER (ret)((((_CtkMountOperationHandler*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((_ctk_mount_operation_handler_get_type ())))))); |
1874 | else |
1875 | return NULL((void*)0); |
1876 | } |
1877 | |
1878 | /** |
1879 | * _ctk_mount_operation_handler_proxy_new_for_bus_sync: |
1880 | * @bus_type: A #GBusType. |
1881 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1882 | * @name: A bus name (well-known or unique). |
1883 | * @object_path: An object path. |
1884 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1885 | * @error: Return location for error or %NULL |
1886 | * |
1887 | * Like _ctk_mount_operation_handler_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
1888 | * |
1889 | * The calling thread is blocked until a reply is received. |
1890 | * |
1891 | * See _ctk_mount_operation_handler_proxy_new_for_bus() for the asynchronous version of this constructor. |
1892 | * |
1893 | * Returns: (transfer full) (type _CtkMountOperationHandlerProxy): The constructed proxy object or %NULL if @error is set. |
1894 | */ |
1895 | _CtkMountOperationHandler * |
1896 | _ctk_mount_operation_handler_proxy_new_for_bus_sync ( |
1897 | GBusType bus_type, |
1898 | GDBusProxyFlags flags, |
1899 | const gchar *name, |
1900 | const gchar *object_path, |
1901 | GCancellable *cancellable, |
1902 | GError **error) |
1903 | { |
1904 | GInitable *ret; |
1905 | ret = g_initable_new (_CTK_TYPE_MOUNT_OPERATION_HANDLER_PROXY(_ctk_mount_operation_handler_proxy_get_type ()), cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.Ctk.MountOperationHandler", NULL((void*)0)); |
1906 | if (ret != NULL((void*)0)) |
1907 | return _CTK_MOUNT_OPERATION_HANDLER (ret)((((_CtkMountOperationHandler*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((_ctk_mount_operation_handler_get_type ())))))); |
1908 | else |
1909 | return NULL((void*)0); |
1910 | } |
1911 | |
1912 | |
1913 | /* ------------------------------------------------------------------------ */ |
1914 | |
1915 | /** |
1916 | * _CtkMountOperationHandlerSkeleton: |
1917 | * |
1918 | * The #_CtkMountOperationHandlerSkeleton structure contains only private data and should only be accessed using the provided API. |
1919 | */ |
1920 | |
1921 | /** |
1922 | * _CtkMountOperationHandlerSkeletonClass: |
1923 | * @parent_class: The parent class. |
1924 | * |
1925 | * Class structure for #_CtkMountOperationHandlerSkeleton. |
1926 | */ |
1927 | |
1928 | struct __CtkMountOperationHandlerSkeletonPrivate |
1929 | { |
1930 | GValue *properties; |
1931 | GList *changed_properties; |
1932 | GSource *changed_properties_idle_source; |
1933 | GMainContext *context; |
1934 | GMutex lock; |
1935 | }; |
1936 | |
1937 | static void |
1938 | __ctk_mount_operation_handler_skeleton_handle_method_call ( |
1939 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
1940 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
1941 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
1942 | const gchar *interface_name, |
1943 | const gchar *method_name, |
1944 | GVariant *parameters, |
1945 | GDBusMethodInvocation *invocation, |
1946 | gpointer user_data) |
1947 | { |
1948 | _CtkMountOperationHandlerSkeleton *skeleton = _CTK_MOUNT_OPERATION_HANDLER_SKELETON (user_data)((((_CtkMountOperationHandlerSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((_ctk_mount_operation_handler_skeleton_get_type ())))))); |
1949 | _ExtendedGDBusMethodInfo *info; |
1950 | GVariantIter iter; |
1951 | GVariant *child; |
1952 | GValue *paramv; |
1953 | gsize num_params; |
1954 | guint num_extra; |
1955 | gsize n; |
1956 | guint signal_id; |
1957 | GValue return_value = G_VALUE_INIT{ 0, { { 0 } } }; |
1958 | info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); |
1959 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( "Ctk", "ctkdbusgenerated.c", 1959, ((const char*) (__func__)) , "info != NULL"); } while (0); |
1960 | num_params = g_variant_n_children (parameters); |
1961 | num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra)((GValue *) g_malloc0_n ((num_params + num_extra), sizeof (GValue ))); |
1962 | n = 0; |
1963 | g_value_init (¶mv[n], _CTK_TYPE_MOUNT_OPERATION_HANDLER(_ctk_mount_operation_handler_get_type ())); |
1964 | g_value_set_object (¶mv[n++], skeleton); |
1965 | g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ())); |
1966 | g_value_set_object (¶mv[n++], invocation); |
1967 | if (info->pass_fdlist) |
1968 | { |
1969 | #ifdef G_OS_UNIX |
1970 | g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST(g_unix_fd_list_get_type ())); |
1971 | g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); |
1972 | #else |
1973 | g_assert_not_reached ()do { g_assertion_message_expr ("Ctk", "ctkdbusgenerated.c", 1973 , ((const char*) (__func__)), ((void*)0)); } while (0); |
1974 | #endif |
1975 | } |
1976 | g_variant_iter_init (&iter, parameters); |
1977 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
1978 | { |
1979 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; |
1980 | if (arg_info->use_gvariant) |
1981 | { |
1982 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
1983 | g_value_set_variant (¶mv[n], child); |
1984 | n++; |
1985 | } |
1986 | else |
1987 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
1988 | g_variant_unref (child); |
1989 | } |
1990 | signal_id = g_signal_lookup (info->signal_name, _CTK_TYPE_MOUNT_OPERATION_HANDLER(_ctk_mount_operation_handler_get_type ())); |
1991 | g_value_init (&return_value, G_TYPE_BOOLEAN((GType) ((5) << (2)))); |
1992 | g_signal_emitv (paramv, signal_id, 0, &return_value); |
1993 | if (!g_value_get_boolean (&return_value)) |
1994 | g_dbus_method_invocation_return_error (invocation, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); |
1995 | g_value_unset (&return_value); |
1996 | for (n = 0; n < num_params + num_extra; n++) |
1997 | g_value_unset (¶mv[n]); |
1998 | g_free (paramv); |
1999 | } |
2000 | |
2001 | static GVariant * |
2002 | __ctk_mount_operation_handler_skeleton_handle_get_property ( |
2003 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
2004 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
2005 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
2006 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
2007 | const gchar *property_name, |
2008 | GError **error, |
2009 | gpointer user_data) |
2010 | { |
2011 | _CtkMountOperationHandlerSkeleton *skeleton = _CTK_MOUNT_OPERATION_HANDLER_SKELETON (user_data)((((_CtkMountOperationHandlerSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((_ctk_mount_operation_handler_skeleton_get_type ())))))); |
2012 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
2013 | GParamSpec *pspec; |
2014 | _ExtendedGDBusPropertyInfo *info; |
2015 | GVariant *ret; |
2016 | ret = NULL((void*)0); |
2017 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &__ctk_mount_operation_handler_interface_info.parent_struct, property_name); |
2018 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( "Ctk", "ctkdbusgenerated.c", 2018, ((const char*) (__func__)) , "info != NULL"); } while (0); |
2019 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
2020 | if (pspec == NULL((void*)0)) |
2021 | { |
2022 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
2023 | } |
2024 | else |
2025 | { |
2026 | g_value_init (&value, pspec->value_type); |
2027 | g_object_get_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
2028 | ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)(g_variant_type_checked_ ((info->parent_struct.signature)) )); |
2029 | g_value_unset (&value); |
2030 | } |
2031 | return ret; |
2032 | } |
2033 | |
2034 | static gboolean |
2035 | __ctk_mount_operation_handler_skeleton_handle_set_property ( |
2036 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
2037 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
2038 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
2039 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
2040 | const gchar *property_name, |
2041 | GVariant *variant, |
2042 | GError **error, |
2043 | gpointer user_data) |
2044 | { |
2045 | _CtkMountOperationHandlerSkeleton *skeleton = _CTK_MOUNT_OPERATION_HANDLER_SKELETON (user_data)((((_CtkMountOperationHandlerSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((_ctk_mount_operation_handler_skeleton_get_type ())))))); |
2046 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
2047 | GParamSpec *pspec; |
2048 | _ExtendedGDBusPropertyInfo *info; |
2049 | gboolean ret; |
2050 | ret = FALSE(0); |
2051 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &__ctk_mount_operation_handler_interface_info.parent_struct, property_name); |
2052 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( "Ctk", "ctkdbusgenerated.c", 2052, ((const char*) (__func__)) , "info != NULL"); } while (0); |
2053 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
2054 | if (pspec == NULL((void*)0)) |
2055 | { |
2056 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
2057 | } |
2058 | else |
2059 | { |
2060 | if (info->use_gvariant) |
2061 | g_value_set_variant (&value, variant); |
2062 | else |
2063 | g_dbus_gvariant_to_gvalue (variant, &value); |
2064 | g_object_set_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
2065 | g_value_unset (&value); |
2066 | ret = TRUE(!(0)); |
2067 | } |
2068 | return ret; |
2069 | } |
2070 | |
2071 | static const GDBusInterfaceVTable __ctk_mount_operation_handler_skeleton_vtable = |
2072 | { |
2073 | __ctk_mount_operation_handler_skeleton_handle_method_call, |
2074 | __ctk_mount_operation_handler_skeleton_handle_get_property, |
2075 | __ctk_mount_operation_handler_skeleton_handle_set_property, |
2076 | {NULL((void*)0)} |
2077 | }; |
2078 | |
2079 | static GDBusInterfaceInfo * |
2080 | _ctk_mount_operation_handler_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
2081 | { |
2082 | return _ctk_mount_operation_handler_interface_info (); |
2083 | } |
2084 | |
2085 | static GDBusInterfaceVTable * |
2086 | _ctk_mount_operation_handler_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
2087 | { |
2088 | return (GDBusInterfaceVTable *) &__ctk_mount_operation_handler_skeleton_vtable; |
2089 | } |
2090 | |
2091 | static GVariant * |
2092 | _ctk_mount_operation_handler_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) |
2093 | { |
2094 | _CtkMountOperationHandlerSkeleton *skeleton = _CTK_MOUNT_OPERATION_HANDLER_SKELETON (_skeleton)((((_CtkMountOperationHandlerSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_skeleton)), ((_ctk_mount_operation_handler_skeleton_get_type ())))))); |
Value stored to 'skeleton' during its initialization is never read | |
2095 | |
2096 | GVariantBuilder builder; |
2097 | guint n; |
2098 | g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
2099 | if (__ctk_mount_operation_handler_interface_info.parent_struct.properties == NULL((void*)0)) |
2100 | goto out; |
2101 | for (n = 0; __ctk_mount_operation_handler_interface_info.parent_struct.properties[n] != NULL((void*)0); n++) |
2102 | { |
2103 | GDBusPropertyInfo *info = __ctk_mount_operation_handler_interface_info.parent_struct.properties[n]; |
2104 | if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) |
2105 | { |
2106 | GVariant *value; |
2107 | value = __ctk_mount_operation_handler_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type ()))))))), NULL((void*)0), g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type ()))))))), "org.Ctk.MountOperationHandler", info->name, NULL((void*)0), skeleton); |
2108 | if (value != NULL((void*)0)) |
2109 | { |
2110 | g_variant_take_ref (value); |
2111 | g_variant_builder_add (&builder, "{sv}", info->name, value); |
2112 | g_variant_unref (value); |
2113 | } |
2114 | } |
2115 | } |
2116 | out: |
2117 | return g_variant_builder_end (&builder); |
2118 | } |
2119 | |
2120 | static void |
2121 | _ctk_mount_operation_handler_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
2122 | { |
2123 | } |
2124 | |
2125 | static void _ctk_mount_operation_handler_skeleton_iface_init (_CtkMountOperationHandlerIface *iface); |
2126 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2127 | G_DEFINE_TYPE_WITH_CODE (_CtkMountOperationHandlerSkeleton, _ctk_mount_operation_handler_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void _ctk_mount_operation_handler_skeleton_init (_CtkMountOperationHandlerSkeleton *self); static void _ctk_mount_operation_handler_skeleton_class_init (_CtkMountOperationHandlerSkeletonClass *klass); static GType _ctk_mount_operation_handler_skeleton_get_type_once (void); static gpointer _ctk_mount_operation_handler_skeleton_parent_class = ((void*)0); static gint _CtkMountOperationHandlerSkeleton_private_offset ; static void _ctk_mount_operation_handler_skeleton_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_skeleton_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerSkeleton_private_offset ); _ctk_mount_operation_handler_skeleton_class_init ((_CtkMountOperationHandlerSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_skeleton_get_instance_private ( _CtkMountOperationHandlerSkeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerSkeleton_private_offset )))); } GType _ctk_mount_operation_handler_skeleton_get_type ( void) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_skeleton_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_skeleton_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_interface_skeleton_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerSkeleton"), sizeof (_CtkMountOperationHandlerSkeletonClass ), (GClassInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_class_intern_init , sizeof (_CtkMountOperationHandlerSkeleton), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_skeleton_init, (GTypeFlags) 0); { {{ _CtkMountOperationHandlerSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (_CtkMountOperationHandlerSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2128 | G_ADD_PRIVATE (_CtkMountOperationHandlerSkeleton)static void _ctk_mount_operation_handler_skeleton_init (_CtkMountOperationHandlerSkeleton *self); static void _ctk_mount_operation_handler_skeleton_class_init (_CtkMountOperationHandlerSkeletonClass *klass); static GType _ctk_mount_operation_handler_skeleton_get_type_once (void); static gpointer _ctk_mount_operation_handler_skeleton_parent_class = ((void*)0); static gint _CtkMountOperationHandlerSkeleton_private_offset ; static void _ctk_mount_operation_handler_skeleton_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_skeleton_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerSkeleton_private_offset ); _ctk_mount_operation_handler_skeleton_class_init ((_CtkMountOperationHandlerSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_skeleton_get_instance_private ( _CtkMountOperationHandlerSkeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerSkeleton_private_offset )))); } GType _ctk_mount_operation_handler_skeleton_get_type ( void) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_skeleton_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_skeleton_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_interface_skeleton_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerSkeleton"), sizeof (_CtkMountOperationHandlerSkeletonClass ), (GClassInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_class_intern_init , sizeof (_CtkMountOperationHandlerSkeleton), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_skeleton_init, (GTypeFlags) 0); { {{ _CtkMountOperationHandlerSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (_CtkMountOperationHandlerSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2129 | G_IMPLEMENT_INTERFACE (_CTK_TYPE_MOUNT_OPERATION_HANDLER, _ctk_mount_operation_handler_skeleton_iface_init))static void _ctk_mount_operation_handler_skeleton_init (_CtkMountOperationHandlerSkeleton *self); static void _ctk_mount_operation_handler_skeleton_class_init (_CtkMountOperationHandlerSkeletonClass *klass); static GType _ctk_mount_operation_handler_skeleton_get_type_once (void); static gpointer _ctk_mount_operation_handler_skeleton_parent_class = ((void*)0); static gint _CtkMountOperationHandlerSkeleton_private_offset ; static void _ctk_mount_operation_handler_skeleton_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_skeleton_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerSkeleton_private_offset ); _ctk_mount_operation_handler_skeleton_class_init ((_CtkMountOperationHandlerSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_skeleton_get_instance_private ( _CtkMountOperationHandlerSkeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerSkeleton_private_offset )))); } GType _ctk_mount_operation_handler_skeleton_get_type ( void) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_skeleton_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_skeleton_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_interface_skeleton_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerSkeleton"), sizeof (_CtkMountOperationHandlerSkeletonClass ), (GClassInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_class_intern_init , sizeof (_CtkMountOperationHandlerSkeleton), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_skeleton_init, (GTypeFlags) 0); { {{ _CtkMountOperationHandlerSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (_CtkMountOperationHandlerSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2130 | |
2131 | #else |
2132 | G_DEFINE_TYPE_WITH_CODE (_CtkMountOperationHandlerSkeleton, _ctk_mount_operation_handler_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void _ctk_mount_operation_handler_skeleton_init (_CtkMountOperationHandlerSkeleton *self); static void _ctk_mount_operation_handler_skeleton_class_init (_CtkMountOperationHandlerSkeletonClass *klass); static GType _ctk_mount_operation_handler_skeleton_get_type_once (void); static gpointer _ctk_mount_operation_handler_skeleton_parent_class = ((void*)0); static gint _CtkMountOperationHandlerSkeleton_private_offset ; static void _ctk_mount_operation_handler_skeleton_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_skeleton_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerSkeleton_private_offset ); _ctk_mount_operation_handler_skeleton_class_init ((_CtkMountOperationHandlerSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_skeleton_get_instance_private ( _CtkMountOperationHandlerSkeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerSkeleton_private_offset )))); } GType _ctk_mount_operation_handler_skeleton_get_type ( void) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_skeleton_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_skeleton_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_interface_skeleton_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerSkeleton"), sizeof (_CtkMountOperationHandlerSkeletonClass ), (GClassInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_class_intern_init , sizeof (_CtkMountOperationHandlerSkeleton), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_skeleton_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2133 | G_IMPLEMENT_INTERFACE (_CTK_TYPE_MOUNT_OPERATION_HANDLER, _ctk_mount_operation_handler_skeleton_iface_init))static void _ctk_mount_operation_handler_skeleton_init (_CtkMountOperationHandlerSkeleton *self); static void _ctk_mount_operation_handler_skeleton_class_init (_CtkMountOperationHandlerSkeletonClass *klass); static GType _ctk_mount_operation_handler_skeleton_get_type_once (void); static gpointer _ctk_mount_operation_handler_skeleton_parent_class = ((void*)0); static gint _CtkMountOperationHandlerSkeleton_private_offset ; static void _ctk_mount_operation_handler_skeleton_class_intern_init (gpointer klass) { _ctk_mount_operation_handler_skeleton_parent_class = g_type_class_peek_parent (klass); if (_CtkMountOperationHandlerSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &_CtkMountOperationHandlerSkeleton_private_offset ); _ctk_mount_operation_handler_skeleton_class_init ((_CtkMountOperationHandlerSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer _ctk_mount_operation_handler_skeleton_get_instance_private ( _CtkMountOperationHandlerSkeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (_CtkMountOperationHandlerSkeleton_private_offset )))); } GType _ctk_mount_operation_handler_skeleton_get_type ( void) { static GType static_g_define_type_id = 0; if ((__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); (void) ( 0 ? (gpointer) * (&static_g_define_type_id) : ((void*)0)) ; (!(__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ (*(&static_g_define_type_id)) gapg_temp_newval; __typeof__ ((&static_g_define_type_id)) gapg_temp_atomic = (&static_g_define_type_id ); __atomic_load (gapg_temp_atomic, &gapg_temp_newval, 5) ; gapg_temp_newval; })) && g_once_init_enter_pointer ( &static_g_define_type_id)); })) ) { GType g_define_type_id = _ctk_mount_operation_handler_skeleton_get_type_once (); (__extension__ ({ _Static_assert (sizeof *(&static_g_define_type_id) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void ) (*(&static_g_define_type_id) = (g_define_type_id)) : (void ) 0; g_once_init_leave_pointer ((&static_g_define_type_id ), (gpointer) (guintptr) (g_define_type_id)); })) ; } return static_g_define_type_id ; } __attribute__ ((__noinline__)) static GType _ctk_mount_operation_handler_skeleton_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_interface_skeleton_get_type ()), g_intern_static_string ("_CtkMountOperationHandlerSkeleton"), sizeof (_CtkMountOperationHandlerSkeletonClass ), (GClassInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_class_intern_init , sizeof (_CtkMountOperationHandlerSkeleton), (GInstanceInitFunc )(void (*)(void)) _ctk_mount_operation_handler_skeleton_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) _ctk_mount_operation_handler_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (_ctk_mount_operation_handler_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2134 | |
2135 | #endif |
2136 | static void |
2137 | _ctk_mount_operation_handler_skeleton_finalize (GObject *object) |
2138 | { |
2139 | _CtkMountOperationHandlerSkeleton *skeleton = _CTK_MOUNT_OPERATION_HANDLER_SKELETON (object)((((_CtkMountOperationHandlerSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((_ctk_mount_operation_handler_skeleton_get_type ())))))); |
2140 | g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); |
2141 | if (skeleton->priv->changed_properties_idle_source != NULL((void*)0)) |
2142 | g_source_destroy (skeleton->priv->changed_properties_idle_source); |
2143 | g_main_context_unref (skeleton->priv->context); |
2144 | g_mutex_clear (&skeleton->priv->lock); |
2145 | G_OBJECT_CLASS (_ctk_mount_operation_handler_skeleton_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((_ctk_mount_operation_handler_skeleton_parent_class)), (( (GType) ((20) << (2))))))))->finalize (object); |
2146 | } |
2147 | |
2148 | static void |
2149 | _ctk_mount_operation_handler_skeleton_init (_CtkMountOperationHandlerSkeleton *skeleton) |
2150 | { |
2151 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2152 | skeleton->priv = _ctk_mount_operation_handler_skeleton_get_instance_private (skeleton); |
2153 | #else |
2154 | skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, _CTK_TYPE_MOUNT_OPERATION_HANDLER_SKELETON, _CtkMountOperationHandlerSkeletonPrivate)((_CtkMountOperationHandlerSkeletonPrivate*) g_type_instance_get_private ((GTypeInstance*) (skeleton), ((_ctk_mount_operation_handler_skeleton_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
2155 | #endif |
2156 | |
2157 | g_mutex_init (&skeleton->priv->lock); |
2158 | skeleton->priv->context = g_main_context_ref_thread_default (); |
2159 | } |
2160 | |
2161 | static void |
2162 | _ctk_mount_operation_handler_skeleton_class_init (_CtkMountOperationHandlerSkeletonClass *klass) |
2163 | { |
2164 | GObjectClass *gobject_class; |
2165 | GDBusInterfaceSkeletonClass *skeleton_class; |
2166 | |
2167 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
2168 | gobject_class->finalize = _ctk_mount_operation_handler_skeleton_finalize; |
2169 | |
2170 | skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass)((((GDBusInterfaceSkeletonClass*) (void *) g_type_check_class_cast ((GTypeClass*) ((klass)), ((g_dbus_interface_skeleton_get_type ())))))); |
2171 | skeleton_class->get_info = _ctk_mount_operation_handler_skeleton_dbus_interface_get_info; |
2172 | skeleton_class->get_properties = _ctk_mount_operation_handler_skeleton_dbus_interface_get_properties; |
2173 | skeleton_class->flush = _ctk_mount_operation_handler_skeleton_dbus_interface_flush; |
2174 | skeleton_class->get_vtable = _ctk_mount_operation_handler_skeleton_dbus_interface_get_vtable; |
2175 | |
2176 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2177 | g_type_class_add_private (klass, sizeof (_CtkMountOperationHandlerSkeletonPrivate)); |
2178 | #endif |
2179 | } |
2180 | |
2181 | static void |
2182 | _ctk_mount_operation_handler_skeleton_iface_init (_CtkMountOperationHandlerIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
2183 | { |
2184 | } |
2185 | |
2186 | /** |
2187 | * _ctk_mount_operation_handler_skeleton_new: |
2188 | * |
2189 | * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-Ctk-MountOperationHandler.top_of_page">org.Ctk.MountOperationHandler</link>. |
2190 | * |
2191 | * Returns: (transfer full) (type _CtkMountOperationHandlerSkeleton): The skeleton object. |
2192 | */ |
2193 | _CtkMountOperationHandler * |
2194 | _ctk_mount_operation_handler_skeleton_new (void) |
2195 | { |
2196 | return _CTK_MOUNT_OPERATION_HANDLER (g_object_new (_CTK_TYPE_MOUNT_OPERATION_HANDLER_SKELETON, NULL))((((_CtkMountOperationHandler*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((g_object_new ((_ctk_mount_operation_handler_skeleton_get_type ()), ((void*)0)))), ((_ctk_mount_operation_handler_get_type ( ))))))); |
2197 | } |
2198 |