File: | src/baul-freedesktop-generated.c |
Warning: | line 1467, column 40 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 "baul-freedesktop-generated.h" |
14 | |
15 | #include <string.h> |
16 | #ifdef G_OS_UNIX |
17 | # include <gio/gunixfdlist.h> |
18 | #endif |
19 | |
20 | #ifdef G_ENABLE_DEBUG |
21 | #define g_marshal_value_peek_boolean(v)(v)->data[0].v_int g_value_get_boolean (v) |
22 | #define g_marshal_value_peek_char(v)(v)->data[0].v_int g_value_get_schar (v) |
23 | #define g_marshal_value_peek_uchar(v)(v)->data[0].v_uint g_value_get_uchar (v) |
24 | #define g_marshal_value_peek_int(v)(v)->data[0].v_int g_value_get_int (v) |
25 | #define g_marshal_value_peek_uint(v)(v)->data[0].v_uint g_value_get_uint (v) |
26 | #define g_marshal_value_peek_long(v)(v)->data[0].v_long g_value_get_long (v) |
27 | #define g_marshal_value_peek_ulong(v)(v)->data[0].v_ulong g_value_get_ulong (v) |
28 | #define g_marshal_value_peek_int64(v)(v)->data[0].v_int64 g_value_get_int64 (v) |
29 | #define g_marshal_value_peek_uint64(v)(v)->data[0].v_uint64 g_value_get_uint64 (v) |
30 | #define g_marshal_value_peek_enum(v)(v)->data[0].v_long g_value_get_enum (v) |
31 | #define g_marshal_value_peek_flags(v)(v)->data[0].v_ulong g_value_get_flags (v) |
32 | #define g_marshal_value_peek_float(v)(v)->data[0].v_float g_value_get_float (v) |
33 | #define g_marshal_value_peek_double(v)(v)->data[0].v_double g_value_get_double (v) |
34 | #define g_marshal_value_peek_string(v)(v)->data[0].v_pointer (char*) g_value_get_string (v) |
35 | #define g_marshal_value_peek_param(v)(v)->data[0].v_pointer g_value_get_param (v) |
36 | #define g_marshal_value_peek_boxed(v)(v)->data[0].v_pointer g_value_get_boxed (v) |
37 | #define g_marshal_value_peek_pointer(v)(v)->data[0].v_pointer g_value_get_pointer (v) |
38 | #define g_marshal_value_peek_object(v)(v)->data[0].v_pointer g_value_get_object (v) |
39 | #define g_marshal_value_peek_variant(v)(v)->data[0].v_pointer 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)(v)->data[0].v_int (v)->data[0].v_int |
46 | #define g_marshal_value_peek_char(v)(v)->data[0].v_int (v)->data[0].v_int |
47 | #define g_marshal_value_peek_uchar(v)(v)->data[0].v_uint (v)->data[0].v_uint |
48 | #define g_marshal_value_peek_int(v)(v)->data[0].v_int (v)->data[0].v_int |
49 | #define g_marshal_value_peek_uint(v)(v)->data[0].v_uint (v)->data[0].v_uint |
50 | #define g_marshal_value_peek_long(v)(v)->data[0].v_long (v)->data[0].v_long |
51 | #define g_marshal_value_peek_ulong(v)(v)->data[0].v_ulong (v)->data[0].v_ulong |
52 | #define g_marshal_value_peek_int64(v)(v)->data[0].v_int64 (v)->data[0].v_int64 |
53 | #define g_marshal_value_peek_uint64(v)(v)->data[0].v_uint64 (v)->data[0].v_uint64 |
54 | #define g_marshal_value_peek_enum(v)(v)->data[0].v_long (v)->data[0].v_long |
55 | #define g_marshal_value_peek_flags(v)(v)->data[0].v_ulong (v)->data[0].v_ulong |
56 | #define g_marshal_value_peek_float(v)(v)->data[0].v_float (v)->data[0].v_float |
57 | #define g_marshal_value_peek_double(v)(v)->data[0].v_double (v)->data[0].v_double |
58 | #define g_marshal_value_peek_string(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
59 | #define g_marshal_value_peek_param(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
60 | #define g_marshal_value_peek_boxed(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
61 | #define g_marshal_value_peek_pointer(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
62 | #define g_marshal_value_peek_object(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
63 | #define g_marshal_value_peek_variant(v)(v)->data[0].v_pointer (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 (((gchar*) 0), "baul-freedesktop-generated.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_BOXED_STRING ( |
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_ObjectBoxedStringFunc) |
210 | (void *data1, |
211 | GDBusMethodInvocation *arg_method_invocation, |
212 | const gchar *const *arg_URIs, |
213 | const gchar *arg_StartupId, |
214 | void *data2); |
215 | _GDbusCodegenMarshalBoolean_ObjectBoxedStringFunc callback; |
216 | GCClosure *cc = (GCClosure*) closure; |
217 | void *data1, *data2; |
218 | gboolean v_return; |
219 | |
220 | g_return_if_fail (return_value != NULL)do { if ((return_value != ((void*)0))) { } else { g_return_if_fail_warning (((gchar*) 0), ((const char*) (__func__)), "return_value != NULL" ); return; } } while (0); |
221 | g_return_if_fail (n_param_values == 4)do { if ((n_param_values == 4)) { } else { g_return_if_fail_warning (((gchar*) 0), ((const char*) (__func__)), "n_param_values == 4" ); return; } } while (0); |
222 | |
223 | if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag)) |
224 | { |
225 | data1 = closure->data; |
226 | data2 = g_value_peek_pointer (param_values + 0); |
227 | } |
228 | else |
229 | { |
230 | data1 = g_value_peek_pointer (param_values + 0); |
231 | data2 = closure->data; |
232 | } |
233 | |
234 | callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedStringFunc) |
235 | (marshal_data ? marshal_data : cc->callback); |
236 | |
237 | v_return = |
238 | callback (data1, |
239 | g_marshal_value_peek_object (param_values + 1)(param_values + 1)->data[0].v_pointer, |
240 | g_marshal_value_peek_boxed (param_values + 2)(param_values + 2)->data[0].v_pointer, |
241 | g_marshal_value_peek_string (param_values + 3)(param_values + 3)->data[0].v_pointer, |
242 | data2); |
243 | |
244 | g_value_set_boolean (return_value, v_return); |
245 | } |
246 | |
247 | /* ------------------------------------------------------------------------ |
248 | * Code for interface org.freedesktop.FileManager1 |
249 | * ------------------------------------------------------------------------ |
250 | */ |
251 | |
252 | /** |
253 | * SECTION:BaulFreedesktopFileManager1 |
254 | * @title: BaulFreedesktopFileManager1 |
255 | * @short_description: Generated C code for the org.freedesktop.FileManager1 D-Bus interface |
256 | * |
257 | * This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link> D-Bus interface in C. |
258 | */ |
259 | |
260 | /* ---- Introspection data for org.freedesktop.FileManager1 ---- */ |
261 | |
262 | static const _ExtendedGDBusArgInfo _baul_freedesktop_file_manager1_method_info_show_folders_IN_ARG_URIs = |
263 | { |
264 | { |
265 | -1, |
266 | (gchar *) "URIs", |
267 | (gchar *) "as", |
268 | NULL((void*)0) |
269 | }, |
270 | FALSE(0) |
271 | }; |
272 | |
273 | static const _ExtendedGDBusArgInfo _baul_freedesktop_file_manager1_method_info_show_folders_IN_ARG_StartupId = |
274 | { |
275 | { |
276 | -1, |
277 | (gchar *) "StartupId", |
278 | (gchar *) "s", |
279 | NULL((void*)0) |
280 | }, |
281 | FALSE(0) |
282 | }; |
283 | |
284 | static const GDBusArgInfo * const _baul_freedesktop_file_manager1_method_info_show_folders_IN_ARG_pointers[] = |
285 | { |
286 | &_baul_freedesktop_file_manager1_method_info_show_folders_IN_ARG_URIs.parent_struct, |
287 | &_baul_freedesktop_file_manager1_method_info_show_folders_IN_ARG_StartupId.parent_struct, |
288 | NULL((void*)0) |
289 | }; |
290 | |
291 | static const _ExtendedGDBusMethodInfo _baul_freedesktop_file_manager1_method_info_show_folders = |
292 | { |
293 | { |
294 | -1, |
295 | (gchar *) "ShowFolders", |
296 | (GDBusArgInfo **) &_baul_freedesktop_file_manager1_method_info_show_folders_IN_ARG_pointers, |
297 | NULL((void*)0), |
298 | NULL((void*)0) |
299 | }, |
300 | "handle-show-folders", |
301 | FALSE(0) |
302 | }; |
303 | |
304 | static const _ExtendedGDBusArgInfo _baul_freedesktop_file_manager1_method_info_show_items_IN_ARG_URIs = |
305 | { |
306 | { |
307 | -1, |
308 | (gchar *) "URIs", |
309 | (gchar *) "as", |
310 | NULL((void*)0) |
311 | }, |
312 | FALSE(0) |
313 | }; |
314 | |
315 | static const _ExtendedGDBusArgInfo _baul_freedesktop_file_manager1_method_info_show_items_IN_ARG_StartupId = |
316 | { |
317 | { |
318 | -1, |
319 | (gchar *) "StartupId", |
320 | (gchar *) "s", |
321 | NULL((void*)0) |
322 | }, |
323 | FALSE(0) |
324 | }; |
325 | |
326 | static const GDBusArgInfo * const _baul_freedesktop_file_manager1_method_info_show_items_IN_ARG_pointers[] = |
327 | { |
328 | &_baul_freedesktop_file_manager1_method_info_show_items_IN_ARG_URIs.parent_struct, |
329 | &_baul_freedesktop_file_manager1_method_info_show_items_IN_ARG_StartupId.parent_struct, |
330 | NULL((void*)0) |
331 | }; |
332 | |
333 | static const _ExtendedGDBusMethodInfo _baul_freedesktop_file_manager1_method_info_show_items = |
334 | { |
335 | { |
336 | -1, |
337 | (gchar *) "ShowItems", |
338 | (GDBusArgInfo **) &_baul_freedesktop_file_manager1_method_info_show_items_IN_ARG_pointers, |
339 | NULL((void*)0), |
340 | NULL((void*)0) |
341 | }, |
342 | "handle-show-items", |
343 | FALSE(0) |
344 | }; |
345 | |
346 | static const _ExtendedGDBusArgInfo _baul_freedesktop_file_manager1_method_info_show_item_properties_IN_ARG_URIs = |
347 | { |
348 | { |
349 | -1, |
350 | (gchar *) "URIs", |
351 | (gchar *) "as", |
352 | NULL((void*)0) |
353 | }, |
354 | FALSE(0) |
355 | }; |
356 | |
357 | static const _ExtendedGDBusArgInfo _baul_freedesktop_file_manager1_method_info_show_item_properties_IN_ARG_StartupId = |
358 | { |
359 | { |
360 | -1, |
361 | (gchar *) "StartupId", |
362 | (gchar *) "s", |
363 | NULL((void*)0) |
364 | }, |
365 | FALSE(0) |
366 | }; |
367 | |
368 | static const GDBusArgInfo * const _baul_freedesktop_file_manager1_method_info_show_item_properties_IN_ARG_pointers[] = |
369 | { |
370 | &_baul_freedesktop_file_manager1_method_info_show_item_properties_IN_ARG_URIs.parent_struct, |
371 | &_baul_freedesktop_file_manager1_method_info_show_item_properties_IN_ARG_StartupId.parent_struct, |
372 | NULL((void*)0) |
373 | }; |
374 | |
375 | static const _ExtendedGDBusMethodInfo _baul_freedesktop_file_manager1_method_info_show_item_properties = |
376 | { |
377 | { |
378 | -1, |
379 | (gchar *) "ShowItemProperties", |
380 | (GDBusArgInfo **) &_baul_freedesktop_file_manager1_method_info_show_item_properties_IN_ARG_pointers, |
381 | NULL((void*)0), |
382 | NULL((void*)0) |
383 | }, |
384 | "handle-show-item-properties", |
385 | FALSE(0) |
386 | }; |
387 | |
388 | static const GDBusMethodInfo * const _baul_freedesktop_file_manager1_method_info_pointers[] = |
389 | { |
390 | &_baul_freedesktop_file_manager1_method_info_show_folders.parent_struct, |
391 | &_baul_freedesktop_file_manager1_method_info_show_items.parent_struct, |
392 | &_baul_freedesktop_file_manager1_method_info_show_item_properties.parent_struct, |
393 | NULL((void*)0) |
394 | }; |
395 | |
396 | static const _ExtendedGDBusInterfaceInfo _baul_freedesktop_file_manager1_interface_info = |
397 | { |
398 | { |
399 | -1, |
400 | (gchar *) "org.freedesktop.FileManager1", |
401 | (GDBusMethodInfo **) &_baul_freedesktop_file_manager1_method_info_pointers, |
402 | NULL((void*)0), |
403 | NULL((void*)0), |
404 | NULL((void*)0) |
405 | }, |
406 | "file-manager1", |
407 | }; |
408 | |
409 | |
410 | /** |
411 | * baul_freedesktop_file_manager1_interface_info: |
412 | * |
413 | * Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link> D-Bus interface. |
414 | * |
415 | * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. |
416 | */ |
417 | GDBusInterfaceInfo * |
418 | baul_freedesktop_file_manager1_interface_info (void) |
419 | { |
420 | return (GDBusInterfaceInfo *) &_baul_freedesktop_file_manager1_interface_info.parent_struct; |
421 | } |
422 | |
423 | /** |
424 | * baul_freedesktop_file_manager1_override_properties: |
425 | * @klass: The class structure for a #GObject derived class. |
426 | * @property_id_begin: The property id to assign to the first overridden property. |
427 | * |
428 | * Overrides all #GObject properties in the #BaulFreedesktopFileManager1 interface for a concrete class. |
429 | * The properties are overridden in the order they are defined. |
430 | * |
431 | * Returns: The last property id. |
432 | */ |
433 | guint |
434 | baul_freedesktop_file_manager1_override_properties (GObjectClass *klass G_GNUC_UNUSED__attribute__ ((__unused__)), guint property_id_begin) |
435 | { |
436 | return property_id_begin - 1; |
437 | } |
438 | |
439 | |
440 | inline static void |
441 | baul_freedesktop_file_manager1_method_marshal_show_folders ( |
442 | GClosure *closure, |
443 | GValue *return_value, |
444 | unsigned int n_param_values, |
445 | const GValue *param_values, |
446 | void *invocation_hint, |
447 | void *marshal_data) |
448 | { |
449 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED_STRING (closure, |
450 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
451 | } |
452 | |
453 | inline static void |
454 | baul_freedesktop_file_manager1_method_marshal_show_items ( |
455 | GClosure *closure, |
456 | GValue *return_value, |
457 | unsigned int n_param_values, |
458 | const GValue *param_values, |
459 | void *invocation_hint, |
460 | void *marshal_data) |
461 | { |
462 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED_STRING (closure, |
463 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
464 | } |
465 | |
466 | inline static void |
467 | baul_freedesktop_file_manager1_method_marshal_show_item_properties ( |
468 | GClosure *closure, |
469 | GValue *return_value, |
470 | unsigned int n_param_values, |
471 | const GValue *param_values, |
472 | void *invocation_hint, |
473 | void *marshal_data) |
474 | { |
475 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED_STRING (closure, |
476 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
477 | } |
478 | |
479 | |
480 | /** |
481 | * BaulFreedesktopFileManager1: |
482 | * |
483 | * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link>. |
484 | */ |
485 | |
486 | /** |
487 | * BaulFreedesktopFileManager1Iface: |
488 | * @parent_iface: The parent interface. |
489 | * @handle_show_folders: Handler for the #BaulFreedesktopFileManager1::handle-show-folders signal. |
490 | * @handle_show_item_properties: Handler for the #BaulFreedesktopFileManager1::handle-show-item-properties signal. |
491 | * @handle_show_items: Handler for the #BaulFreedesktopFileManager1::handle-show-items signal. |
492 | * |
493 | * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link>. |
494 | */ |
495 | |
496 | typedef BaulFreedesktopFileManager1Iface BaulFreedesktopFileManager1Interface; |
497 | G_DEFINE_INTERFACE (BaulFreedesktopFileManager1, baul_freedesktop_file_manager1, G_TYPE_OBJECT)static void baul_freedesktop_file_manager1_default_init (BaulFreedesktopFileManager1Interface *klass); GType baul_freedesktop_file_manager1_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 ("BaulFreedesktopFileManager1"), sizeof (BaulFreedesktopFileManager1Interface), (GClassInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_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 ; } |
498 | |
499 | static void |
500 | baul_freedesktop_file_manager1_default_init (BaulFreedesktopFileManager1Iface *iface) |
501 | { |
502 | /* GObject signals for incoming D-Bus method calls: */ |
503 | /** |
504 | * BaulFreedesktopFileManager1::handle-show-folders: |
505 | * @object: A #BaulFreedesktopFileManager1. |
506 | * @invocation: A #GDBusMethodInvocation. |
507 | * @arg_URIs: Argument passed by remote caller. |
508 | * @arg_StartupId: Argument passed by remote caller. |
509 | * |
510 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowFolders">ShowFolders()</link> D-Bus method. |
511 | * |
512 | * 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 baul_freedesktop_file_manager1_complete_show_folders() 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. |
513 | * |
514 | * 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. |
515 | */ |
516 | g_signal_new ("handle-show-folders", |
517 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
518 | G_SIGNAL_RUN_LAST, |
519 | G_STRUCT_OFFSET (BaulFreedesktopFileManager1Iface, handle_show_folders)((glong) __builtin_offsetof(BaulFreedesktopFileManager1Iface, handle_show_folders)), |
520 | g_signal_accumulator_true_handled, |
521 | NULL((void*)0), |
522 | baul_freedesktop_file_manager1_method_marshal_show_folders, |
523 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
524 | 3, |
525 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_STRV(g_strv_get_type ()), G_TYPE_STRING((GType) ((16) << (2)))); |
526 | |
527 | /** |
528 | * BaulFreedesktopFileManager1::handle-show-items: |
529 | * @object: A #BaulFreedesktopFileManager1. |
530 | * @invocation: A #GDBusMethodInvocation. |
531 | * @arg_URIs: Argument passed by remote caller. |
532 | * @arg_StartupId: Argument passed by remote caller. |
533 | * |
534 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowItems">ShowItems()</link> D-Bus method. |
535 | * |
536 | * 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 baul_freedesktop_file_manager1_complete_show_items() 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. |
537 | * |
538 | * 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. |
539 | */ |
540 | g_signal_new ("handle-show-items", |
541 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
542 | G_SIGNAL_RUN_LAST, |
543 | G_STRUCT_OFFSET (BaulFreedesktopFileManager1Iface, handle_show_items)((glong) __builtin_offsetof(BaulFreedesktopFileManager1Iface, handle_show_items)), |
544 | g_signal_accumulator_true_handled, |
545 | NULL((void*)0), |
546 | baul_freedesktop_file_manager1_method_marshal_show_items, |
547 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
548 | 3, |
549 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_STRV(g_strv_get_type ()), G_TYPE_STRING((GType) ((16) << (2)))); |
550 | |
551 | /** |
552 | * BaulFreedesktopFileManager1::handle-show-item-properties: |
553 | * @object: A #BaulFreedesktopFileManager1. |
554 | * @invocation: A #GDBusMethodInvocation. |
555 | * @arg_URIs: Argument passed by remote caller. |
556 | * @arg_StartupId: Argument passed by remote caller. |
557 | * |
558 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowItemProperties">ShowItemProperties()</link> D-Bus method. |
559 | * |
560 | * 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 baul_freedesktop_file_manager1_complete_show_item_properties() 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. |
561 | * |
562 | * 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. |
563 | */ |
564 | g_signal_new ("handle-show-item-properties", |
565 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
566 | G_SIGNAL_RUN_LAST, |
567 | G_STRUCT_OFFSET (BaulFreedesktopFileManager1Iface, handle_show_item_properties)((glong) __builtin_offsetof(BaulFreedesktopFileManager1Iface, handle_show_item_properties)), |
568 | g_signal_accumulator_true_handled, |
569 | NULL((void*)0), |
570 | baul_freedesktop_file_manager1_method_marshal_show_item_properties, |
571 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
572 | 3, |
573 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_STRV(g_strv_get_type ()), G_TYPE_STRING((GType) ((16) << (2)))); |
574 | |
575 | } |
576 | |
577 | /** |
578 | * baul_freedesktop_file_manager1_call_show_folders: |
579 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
580 | * @arg_URIs: Argument to pass with the method invocation. |
581 | * @arg_StartupId: Argument to pass with the method invocation. |
582 | * @cancellable: (nullable): A #GCancellable or %NULL. |
583 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
584 | * @user_data: User data to pass to @callback. |
585 | * |
586 | * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowFolders">ShowFolders()</link> D-Bus method on @proxy. |
587 | * 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()). |
588 | * You can then call baul_freedesktop_file_manager1_call_show_folders_finish() to get the result of the operation. |
589 | * |
590 | * See baul_freedesktop_file_manager1_call_show_folders_sync() for the synchronous, blocking version of this method. |
591 | */ |
592 | void |
593 | baul_freedesktop_file_manager1_call_show_folders ( |
594 | BaulFreedesktopFileManager1 *proxy, |
595 | const gchar *const *arg_URIs, |
596 | const gchar *arg_StartupId, |
597 | GCancellable *cancellable, |
598 | GAsyncReadyCallback callback, |
599 | gpointer user_data) |
600 | { |
601 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
602 | "ShowFolders", |
603 | g_variant_new ("(^ass)", |
604 | arg_URIs, |
605 | arg_StartupId), |
606 | G_DBUS_CALL_FLAGS_NONE, |
607 | -1, |
608 | cancellable, |
609 | callback, |
610 | user_data); |
611 | } |
612 | |
613 | /** |
614 | * baul_freedesktop_file_manager1_call_show_folders_finish: |
615 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
616 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to baul_freedesktop_file_manager1_call_show_folders(). |
617 | * @error: Return location for error or %NULL. |
618 | * |
619 | * Finishes an operation started with baul_freedesktop_file_manager1_call_show_folders(). |
620 | * |
621 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
622 | */ |
623 | gboolean |
624 | baul_freedesktop_file_manager1_call_show_folders_finish ( |
625 | BaulFreedesktopFileManager1 *proxy, |
626 | GAsyncResult *res, |
627 | GError **error) |
628 | { |
629 | GVariant *_ret; |
630 | _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); |
631 | if (_ret == NULL((void*)0)) |
632 | goto _out; |
633 | g_variant_get (_ret, |
634 | "()"); |
635 | g_variant_unref (_ret); |
636 | _out: |
637 | return _ret != NULL((void*)0); |
638 | } |
639 | |
640 | /** |
641 | * baul_freedesktop_file_manager1_call_show_folders_sync: |
642 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
643 | * @arg_URIs: Argument to pass with the method invocation. |
644 | * @arg_StartupId: Argument to pass with the method invocation. |
645 | * @cancellable: (nullable): A #GCancellable or %NULL. |
646 | * @error: Return location for error or %NULL. |
647 | * |
648 | * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowFolders">ShowFolders()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
649 | * |
650 | * See baul_freedesktop_file_manager1_call_show_folders() for the asynchronous version of this method. |
651 | * |
652 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
653 | */ |
654 | gboolean |
655 | baul_freedesktop_file_manager1_call_show_folders_sync ( |
656 | BaulFreedesktopFileManager1 *proxy, |
657 | const gchar *const *arg_URIs, |
658 | const gchar *arg_StartupId, |
659 | GCancellable *cancellable, |
660 | GError **error) |
661 | { |
662 | GVariant *_ret; |
663 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
664 | "ShowFolders", |
665 | g_variant_new ("(^ass)", |
666 | arg_URIs, |
667 | arg_StartupId), |
668 | G_DBUS_CALL_FLAGS_NONE, |
669 | -1, |
670 | cancellable, |
671 | error); |
672 | if (_ret == NULL((void*)0)) |
673 | goto _out; |
674 | g_variant_get (_ret, |
675 | "()"); |
676 | g_variant_unref (_ret); |
677 | _out: |
678 | return _ret != NULL((void*)0); |
679 | } |
680 | |
681 | /** |
682 | * baul_freedesktop_file_manager1_call_show_items: |
683 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
684 | * @arg_URIs: Argument to pass with the method invocation. |
685 | * @arg_StartupId: Argument to pass with the method invocation. |
686 | * @cancellable: (nullable): A #GCancellable or %NULL. |
687 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
688 | * @user_data: User data to pass to @callback. |
689 | * |
690 | * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowItems">ShowItems()</link> D-Bus method on @proxy. |
691 | * 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()). |
692 | * You can then call baul_freedesktop_file_manager1_call_show_items_finish() to get the result of the operation. |
693 | * |
694 | * See baul_freedesktop_file_manager1_call_show_items_sync() for the synchronous, blocking version of this method. |
695 | */ |
696 | void |
697 | baul_freedesktop_file_manager1_call_show_items ( |
698 | BaulFreedesktopFileManager1 *proxy, |
699 | const gchar *const *arg_URIs, |
700 | const gchar *arg_StartupId, |
701 | GCancellable *cancellable, |
702 | GAsyncReadyCallback callback, |
703 | gpointer user_data) |
704 | { |
705 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
706 | "ShowItems", |
707 | g_variant_new ("(^ass)", |
708 | arg_URIs, |
709 | arg_StartupId), |
710 | G_DBUS_CALL_FLAGS_NONE, |
711 | -1, |
712 | cancellable, |
713 | callback, |
714 | user_data); |
715 | } |
716 | |
717 | /** |
718 | * baul_freedesktop_file_manager1_call_show_items_finish: |
719 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
720 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to baul_freedesktop_file_manager1_call_show_items(). |
721 | * @error: Return location for error or %NULL. |
722 | * |
723 | * Finishes an operation started with baul_freedesktop_file_manager1_call_show_items(). |
724 | * |
725 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
726 | */ |
727 | gboolean |
728 | baul_freedesktop_file_manager1_call_show_items_finish ( |
729 | BaulFreedesktopFileManager1 *proxy, |
730 | GAsyncResult *res, |
731 | GError **error) |
732 | { |
733 | GVariant *_ret; |
734 | _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); |
735 | if (_ret == NULL((void*)0)) |
736 | goto _out; |
737 | g_variant_get (_ret, |
738 | "()"); |
739 | g_variant_unref (_ret); |
740 | _out: |
741 | return _ret != NULL((void*)0); |
742 | } |
743 | |
744 | /** |
745 | * baul_freedesktop_file_manager1_call_show_items_sync: |
746 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
747 | * @arg_URIs: Argument to pass with the method invocation. |
748 | * @arg_StartupId: Argument to pass with the method invocation. |
749 | * @cancellable: (nullable): A #GCancellable or %NULL. |
750 | * @error: Return location for error or %NULL. |
751 | * |
752 | * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowItems">ShowItems()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
753 | * |
754 | * See baul_freedesktop_file_manager1_call_show_items() for the asynchronous version of this method. |
755 | * |
756 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
757 | */ |
758 | gboolean |
759 | baul_freedesktop_file_manager1_call_show_items_sync ( |
760 | BaulFreedesktopFileManager1 *proxy, |
761 | const gchar *const *arg_URIs, |
762 | const gchar *arg_StartupId, |
763 | GCancellable *cancellable, |
764 | GError **error) |
765 | { |
766 | GVariant *_ret; |
767 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
768 | "ShowItems", |
769 | g_variant_new ("(^ass)", |
770 | arg_URIs, |
771 | arg_StartupId), |
772 | G_DBUS_CALL_FLAGS_NONE, |
773 | -1, |
774 | cancellable, |
775 | error); |
776 | if (_ret == NULL((void*)0)) |
777 | goto _out; |
778 | g_variant_get (_ret, |
779 | "()"); |
780 | g_variant_unref (_ret); |
781 | _out: |
782 | return _ret != NULL((void*)0); |
783 | } |
784 | |
785 | /** |
786 | * baul_freedesktop_file_manager1_call_show_item_properties: |
787 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
788 | * @arg_URIs: Argument to pass with the method invocation. |
789 | * @arg_StartupId: Argument to pass with the method invocation. |
790 | * @cancellable: (nullable): A #GCancellable or %NULL. |
791 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
792 | * @user_data: User data to pass to @callback. |
793 | * |
794 | * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowItemProperties">ShowItemProperties()</link> D-Bus method on @proxy. |
795 | * 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()). |
796 | * You can then call baul_freedesktop_file_manager1_call_show_item_properties_finish() to get the result of the operation. |
797 | * |
798 | * See baul_freedesktop_file_manager1_call_show_item_properties_sync() for the synchronous, blocking version of this method. |
799 | */ |
800 | void |
801 | baul_freedesktop_file_manager1_call_show_item_properties ( |
802 | BaulFreedesktopFileManager1 *proxy, |
803 | const gchar *const *arg_URIs, |
804 | const gchar *arg_StartupId, |
805 | GCancellable *cancellable, |
806 | GAsyncReadyCallback callback, |
807 | gpointer user_data) |
808 | { |
809 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
810 | "ShowItemProperties", |
811 | g_variant_new ("(^ass)", |
812 | arg_URIs, |
813 | arg_StartupId), |
814 | G_DBUS_CALL_FLAGS_NONE, |
815 | -1, |
816 | cancellable, |
817 | callback, |
818 | user_data); |
819 | } |
820 | |
821 | /** |
822 | * baul_freedesktop_file_manager1_call_show_item_properties_finish: |
823 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
824 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to baul_freedesktop_file_manager1_call_show_item_properties(). |
825 | * @error: Return location for error or %NULL. |
826 | * |
827 | * Finishes an operation started with baul_freedesktop_file_manager1_call_show_item_properties(). |
828 | * |
829 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
830 | */ |
831 | gboolean |
832 | baul_freedesktop_file_manager1_call_show_item_properties_finish ( |
833 | BaulFreedesktopFileManager1 *proxy, |
834 | GAsyncResult *res, |
835 | GError **error) |
836 | { |
837 | GVariant *_ret; |
838 | _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); |
839 | if (_ret == NULL((void*)0)) |
840 | goto _out; |
841 | g_variant_get (_ret, |
842 | "()"); |
843 | g_variant_unref (_ret); |
844 | _out: |
845 | return _ret != NULL((void*)0); |
846 | } |
847 | |
848 | /** |
849 | * baul_freedesktop_file_manager1_call_show_item_properties_sync: |
850 | * @proxy: A #BaulFreedesktopFileManager1Proxy. |
851 | * @arg_URIs: Argument to pass with the method invocation. |
852 | * @arg_StartupId: Argument to pass with the method invocation. |
853 | * @cancellable: (nullable): A #GCancellable or %NULL. |
854 | * @error: Return location for error or %NULL. |
855 | * |
856 | * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowItemProperties">ShowItemProperties()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
857 | * |
858 | * See baul_freedesktop_file_manager1_call_show_item_properties() for the asynchronous version of this method. |
859 | * |
860 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
861 | */ |
862 | gboolean |
863 | baul_freedesktop_file_manager1_call_show_item_properties_sync ( |
864 | BaulFreedesktopFileManager1 *proxy, |
865 | const gchar *const *arg_URIs, |
866 | const gchar *arg_StartupId, |
867 | GCancellable *cancellable, |
868 | GError **error) |
869 | { |
870 | GVariant *_ret; |
871 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
872 | "ShowItemProperties", |
873 | g_variant_new ("(^ass)", |
874 | arg_URIs, |
875 | arg_StartupId), |
876 | G_DBUS_CALL_FLAGS_NONE, |
877 | -1, |
878 | cancellable, |
879 | error); |
880 | if (_ret == NULL((void*)0)) |
881 | goto _out; |
882 | g_variant_get (_ret, |
883 | "()"); |
884 | g_variant_unref (_ret); |
885 | _out: |
886 | return _ret != NULL((void*)0); |
887 | } |
888 | |
889 | /** |
890 | * baul_freedesktop_file_manager1_complete_show_folders: |
891 | * @object: A #BaulFreedesktopFileManager1. |
892 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
893 | * |
894 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowFolders">ShowFolders()</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. |
895 | * |
896 | * This method will free @invocation, you cannot use it afterwards. |
897 | */ |
898 | void |
899 | baul_freedesktop_file_manager1_complete_show_folders ( |
900 | BaulFreedesktopFileManager1 *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
901 | GDBusMethodInvocation *invocation) |
902 | { |
903 | g_dbus_method_invocation_return_value (invocation, |
904 | g_variant_new ("()")); |
905 | } |
906 | |
907 | /** |
908 | * baul_freedesktop_file_manager1_complete_show_items: |
909 | * @object: A #BaulFreedesktopFileManager1. |
910 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
911 | * |
912 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowItems">ShowItems()</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. |
913 | * |
914 | * This method will free @invocation, you cannot use it afterwards. |
915 | */ |
916 | void |
917 | baul_freedesktop_file_manager1_complete_show_items ( |
918 | BaulFreedesktopFileManager1 *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
919 | GDBusMethodInvocation *invocation) |
920 | { |
921 | g_dbus_method_invocation_return_value (invocation, |
922 | g_variant_new ("()")); |
923 | } |
924 | |
925 | /** |
926 | * baul_freedesktop_file_manager1_complete_show_item_properties: |
927 | * @object: A #BaulFreedesktopFileManager1. |
928 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
929 | * |
930 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-FileManager1.ShowItemProperties">ShowItemProperties()</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. |
931 | * |
932 | * This method will free @invocation, you cannot use it afterwards. |
933 | */ |
934 | void |
935 | baul_freedesktop_file_manager1_complete_show_item_properties ( |
936 | BaulFreedesktopFileManager1 *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
937 | GDBusMethodInvocation *invocation) |
938 | { |
939 | g_dbus_method_invocation_return_value (invocation, |
940 | g_variant_new ("()")); |
941 | } |
942 | |
943 | /* ------------------------------------------------------------------------ */ |
944 | |
945 | /** |
946 | * BaulFreedesktopFileManager1Proxy: |
947 | * |
948 | * The #BaulFreedesktopFileManager1Proxy structure contains only private data and should only be accessed using the provided API. |
949 | */ |
950 | |
951 | /** |
952 | * BaulFreedesktopFileManager1ProxyClass: |
953 | * @parent_class: The parent class. |
954 | * |
955 | * Class structure for #BaulFreedesktopFileManager1Proxy. |
956 | */ |
957 | |
958 | struct _BaulFreedesktopFileManager1ProxyPrivate |
959 | { |
960 | GData *qdata; |
961 | }; |
962 | |
963 | static void baul_freedesktop_file_manager1_proxy_iface_init (BaulFreedesktopFileManager1Iface *iface); |
964 | |
965 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
966 | G_DEFINE_TYPE_WITH_CODE (BaulFreedesktopFileManager1Proxy, baul_freedesktop_file_manager1_proxy, G_TYPE_DBUS_PROXY,static void baul_freedesktop_file_manager1_proxy_init (BaulFreedesktopFileManager1Proxy *self); static void baul_freedesktop_file_manager1_proxy_class_init (BaulFreedesktopFileManager1ProxyClass *klass); static GType baul_freedesktop_file_manager1_proxy_get_type_once (void); static gpointer baul_freedesktop_file_manager1_proxy_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Proxy_private_offset ; static void baul_freedesktop_file_manager1_proxy_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_proxy_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Proxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Proxy_private_offset ); baul_freedesktop_file_manager1_proxy_class_init ((BaulFreedesktopFileManager1ProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_proxy_get_instance_private (BaulFreedesktopFileManager1Proxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Proxy_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("BaulFreedesktopFileManager1Proxy" ), sizeof (BaulFreedesktopFileManager1ProxyClass), (GClassInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_class_intern_init , sizeof (BaulFreedesktopFileManager1Proxy), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_init, ( GTypeFlags) 0); { {{ BaulFreedesktopFileManager1Proxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (BaulFreedesktopFileManager1ProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
967 | G_ADD_PRIVATE (BaulFreedesktopFileManager1Proxy)static void baul_freedesktop_file_manager1_proxy_init (BaulFreedesktopFileManager1Proxy *self); static void baul_freedesktop_file_manager1_proxy_class_init (BaulFreedesktopFileManager1ProxyClass *klass); static GType baul_freedesktop_file_manager1_proxy_get_type_once (void); static gpointer baul_freedesktop_file_manager1_proxy_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Proxy_private_offset ; static void baul_freedesktop_file_manager1_proxy_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_proxy_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Proxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Proxy_private_offset ); baul_freedesktop_file_manager1_proxy_class_init ((BaulFreedesktopFileManager1ProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_proxy_get_instance_private (BaulFreedesktopFileManager1Proxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Proxy_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("BaulFreedesktopFileManager1Proxy" ), sizeof (BaulFreedesktopFileManager1ProxyClass), (GClassInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_class_intern_init , sizeof (BaulFreedesktopFileManager1Proxy), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_init, ( GTypeFlags) 0); { {{ BaulFreedesktopFileManager1Proxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (BaulFreedesktopFileManager1ProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
968 | G_IMPLEMENT_INTERFACE (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1, baul_freedesktop_file_manager1_proxy_iface_init))static void baul_freedesktop_file_manager1_proxy_init (BaulFreedesktopFileManager1Proxy *self); static void baul_freedesktop_file_manager1_proxy_class_init (BaulFreedesktopFileManager1ProxyClass *klass); static GType baul_freedesktop_file_manager1_proxy_get_type_once (void); static gpointer baul_freedesktop_file_manager1_proxy_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Proxy_private_offset ; static void baul_freedesktop_file_manager1_proxy_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_proxy_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Proxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Proxy_private_offset ); baul_freedesktop_file_manager1_proxy_class_init ((BaulFreedesktopFileManager1ProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_proxy_get_instance_private (BaulFreedesktopFileManager1Proxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Proxy_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("BaulFreedesktopFileManager1Proxy" ), sizeof (BaulFreedesktopFileManager1ProxyClass), (GClassInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_class_intern_init , sizeof (BaulFreedesktopFileManager1Proxy), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_init, ( GTypeFlags) 0); { {{ BaulFreedesktopFileManager1Proxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (BaulFreedesktopFileManager1ProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
969 | |
970 | #else |
971 | G_DEFINE_TYPE_WITH_CODE (BaulFreedesktopFileManager1Proxy, baul_freedesktop_file_manager1_proxy, G_TYPE_DBUS_PROXY,static void baul_freedesktop_file_manager1_proxy_init (BaulFreedesktopFileManager1Proxy *self); static void baul_freedesktop_file_manager1_proxy_class_init (BaulFreedesktopFileManager1ProxyClass *klass); static GType baul_freedesktop_file_manager1_proxy_get_type_once (void); static gpointer baul_freedesktop_file_manager1_proxy_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Proxy_private_offset ; static void baul_freedesktop_file_manager1_proxy_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_proxy_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Proxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Proxy_private_offset ); baul_freedesktop_file_manager1_proxy_class_init ((BaulFreedesktopFileManager1ProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_proxy_get_instance_private (BaulFreedesktopFileManager1Proxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Proxy_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("BaulFreedesktopFileManager1Proxy" ), sizeof (BaulFreedesktopFileManager1ProxyClass), (GClassInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_class_intern_init , sizeof (BaulFreedesktopFileManager1Proxy), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_init, ( GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
972 | G_IMPLEMENT_INTERFACE (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1, baul_freedesktop_file_manager1_proxy_iface_init))static void baul_freedesktop_file_manager1_proxy_init (BaulFreedesktopFileManager1Proxy *self); static void baul_freedesktop_file_manager1_proxy_class_init (BaulFreedesktopFileManager1ProxyClass *klass); static GType baul_freedesktop_file_manager1_proxy_get_type_once (void); static gpointer baul_freedesktop_file_manager1_proxy_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Proxy_private_offset ; static void baul_freedesktop_file_manager1_proxy_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_proxy_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Proxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Proxy_private_offset ); baul_freedesktop_file_manager1_proxy_class_init ((BaulFreedesktopFileManager1ProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_proxy_get_instance_private (BaulFreedesktopFileManager1Proxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Proxy_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("BaulFreedesktopFileManager1Proxy" ), sizeof (BaulFreedesktopFileManager1ProxyClass), (GClassInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_class_intern_init , sizeof (BaulFreedesktopFileManager1Proxy), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_proxy_init, ( GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
973 | |
974 | #endif |
975 | static void |
976 | baul_freedesktop_file_manager1_proxy_finalize (GObject *object) |
977 | { |
978 | BaulFreedesktopFileManager1Proxy *proxy = BAUL_FREEDESKTOP_FILE_MANAGER1_PROXY (object)((((BaulFreedesktopFileManager1Proxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((baul_freedesktop_file_manager1_proxy_get_type ())))))); |
979 | g_datalist_clear (&proxy->priv->qdata); |
980 | G_OBJECT_CLASS (baul_freedesktop_file_manager1_proxy_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((baul_freedesktop_file_manager1_proxy_parent_class)), ((( GType) ((20) << (2))))))))->finalize (object); |
981 | } |
982 | |
983 | static void |
984 | baul_freedesktop_file_manager1_proxy_get_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
985 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
986 | GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
987 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
988 | { |
989 | } |
990 | |
991 | static void |
992 | baul_freedesktop_file_manager1_proxy_set_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
993 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
994 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
995 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
996 | { |
997 | } |
998 | |
999 | static void |
1000 | baul_freedesktop_file_manager1_proxy_g_signal (GDBusProxy *proxy, |
1001 | const gchar *sender_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
1002 | const gchar *signal_name, |
1003 | GVariant *parameters) |
1004 | { |
1005 | _ExtendedGDBusSignalInfo *info; |
1006 | GVariantIter iter; |
1007 | GVariant *child; |
1008 | GValue *paramv; |
1009 | gsize num_params; |
1010 | gsize n; |
1011 | guint signal_id; |
1012 | info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_baul_freedesktop_file_manager1_interface_info.parent_struct, signal_name); |
1013 | if (info == NULL((void*)0)) |
1014 | return; |
1015 | num_params = g_variant_n_children (parameters); |
1016 | paramv = g_new0 (GValue, num_params + 1)((GValue *) g_malloc0_n ((num_params + 1), sizeof (GValue))); |
1017 | g_value_init (¶mv[0], BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1(baul_freedesktop_file_manager1_get_type ())); |
1018 | g_value_set_object (¶mv[0], proxy); |
1019 | g_variant_iter_init (&iter, parameters); |
1020 | n = 1; |
1021 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
1022 | { |
1023 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; |
1024 | if (arg_info->use_gvariant) |
1025 | { |
1026 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
1027 | g_value_set_variant (¶mv[n], child); |
1028 | n++; |
1029 | } |
1030 | else |
1031 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
1032 | g_variant_unref (child); |
1033 | } |
1034 | signal_id = g_signal_lookup (info->signal_name, BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1(baul_freedesktop_file_manager1_get_type ())); |
1035 | g_signal_emitv (paramv, signal_id, 0, NULL((void*)0)); |
1036 | for (n = 0; n < num_params + 1; n++) |
1037 | g_value_unset (¶mv[n]); |
1038 | g_free (paramv); |
1039 | } |
1040 | |
1041 | static void |
1042 | baul_freedesktop_file_manager1_proxy_g_properties_changed (GDBusProxy *_proxy, |
1043 | GVariant *changed_properties, |
1044 | const gchar *const *invalidated_properties) |
1045 | { |
1046 | BaulFreedesktopFileManager1Proxy *proxy = BAUL_FREEDESKTOP_FILE_MANAGER1_PROXY (_proxy)((((BaulFreedesktopFileManager1Proxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_proxy)), ((baul_freedesktop_file_manager1_proxy_get_type ())))))); |
1047 | guint n; |
1048 | const gchar *key; |
1049 | GVariantIter *iter; |
1050 | _ExtendedGDBusPropertyInfo *info; |
1051 | g_variant_get (changed_properties, "a{sv}", &iter); |
1052 | while (g_variant_iter_next (iter, "{&sv}", &key, NULL((void*)0))) |
1053 | { |
1054 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_baul_freedesktop_file_manager1_interface_info.parent_struct, key); |
1055 | 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)); |
1056 | if (info != NULL((void*)0)) |
1057 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
1058 | } |
1059 | g_variant_iter_free (iter); |
1060 | for (n = 0; invalidated_properties[n] != NULL((void*)0); n++) |
1061 | { |
1062 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_baul_freedesktop_file_manager1_interface_info.parent_struct, invalidated_properties[n]); |
1063 | 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)); |
1064 | if (info != NULL((void*)0)) |
1065 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
1066 | } |
1067 | } |
1068 | |
1069 | static void |
1070 | baul_freedesktop_file_manager1_proxy_init (BaulFreedesktopFileManager1Proxy *proxy) |
1071 | { |
1072 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1073 | proxy->priv = baul_freedesktop_file_manager1_proxy_get_instance_private (proxy); |
1074 | #else |
1075 | proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1_PROXY, BaulFreedesktopFileManager1ProxyPrivate)((BaulFreedesktopFileManager1ProxyPrivate*) g_type_instance_get_private ((GTypeInstance*) (proxy), ((baul_freedesktop_file_manager1_proxy_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
1076 | #endif |
1077 | |
1078 | g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), baul_freedesktop_file_manager1_interface_info ()); |
1079 | } |
1080 | |
1081 | static void |
1082 | baul_freedesktop_file_manager1_proxy_class_init (BaulFreedesktopFileManager1ProxyClass *klass) |
1083 | { |
1084 | GObjectClass *gobject_class; |
1085 | GDBusProxyClass *proxy_class; |
1086 | |
1087 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
1088 | gobject_class->finalize = baul_freedesktop_file_manager1_proxy_finalize; |
1089 | gobject_class->get_property = baul_freedesktop_file_manager1_proxy_get_property; |
1090 | gobject_class->set_property = baul_freedesktop_file_manager1_proxy_set_property; |
1091 | |
1092 | proxy_class = G_DBUS_PROXY_CLASS (klass)((((GDBusProxyClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), ((g_dbus_proxy_get_type ())))))); |
1093 | proxy_class->g_signal = baul_freedesktop_file_manager1_proxy_g_signal; |
1094 | proxy_class->g_properties_changed = baul_freedesktop_file_manager1_proxy_g_properties_changed; |
1095 | |
1096 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1097 | g_type_class_add_private (klass, sizeof (BaulFreedesktopFileManager1ProxyPrivate)); |
1098 | #endif |
1099 | } |
1100 | |
1101 | static void |
1102 | baul_freedesktop_file_manager1_proxy_iface_init (BaulFreedesktopFileManager1Iface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
1103 | { |
1104 | } |
1105 | |
1106 | /** |
1107 | * baul_freedesktop_file_manager1_proxy_new: |
1108 | * @connection: A #GDBusConnection. |
1109 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1110 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
1111 | * @object_path: An object path. |
1112 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1113 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
1114 | * @user_data: User data to pass to @callback. |
1115 | * |
1116 | * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link>. See g_dbus_proxy_new() for more details. |
1117 | * |
1118 | * 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()). |
1119 | * You can then call baul_freedesktop_file_manager1_proxy_new_finish() to get the result of the operation. |
1120 | * |
1121 | * See baul_freedesktop_file_manager1_proxy_new_sync() for the synchronous, blocking version of this constructor. |
1122 | */ |
1123 | void |
1124 | baul_freedesktop_file_manager1_proxy_new ( |
1125 | GDBusConnection *connection, |
1126 | GDBusProxyFlags flags, |
1127 | const gchar *name, |
1128 | const gchar *object_path, |
1129 | GCancellable *cancellable, |
1130 | GAsyncReadyCallback callback, |
1131 | gpointer user_data) |
1132 | { |
1133 | g_async_initable_new_async (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1_PROXY(baul_freedesktop_file_manager1_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.freedesktop.FileManager1", NULL((void*)0)); |
1134 | } |
1135 | |
1136 | /** |
1137 | * baul_freedesktop_file_manager1_proxy_new_finish: |
1138 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to baul_freedesktop_file_manager1_proxy_new(). |
1139 | * @error: Return location for error or %NULL |
1140 | * |
1141 | * Finishes an operation started with baul_freedesktop_file_manager1_proxy_new(). |
1142 | * |
1143 | * Returns: (transfer full) (type BaulFreedesktopFileManager1Proxy): The constructed proxy object or %NULL if @error is set. |
1144 | */ |
1145 | BaulFreedesktopFileManager1 * |
1146 | baul_freedesktop_file_manager1_proxy_new_finish ( |
1147 | GAsyncResult *res, |
1148 | GError **error) |
1149 | { |
1150 | GObject *ret; |
1151 | GObject *source_object; |
1152 | source_object = g_async_result_get_source_object (res); |
1153 | 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); |
1154 | g_object_unref (source_object); |
1155 | if (ret != NULL((void*)0)) |
1156 | return BAUL_FREEDESKTOP_FILE_MANAGER1 (ret)((((BaulFreedesktopFileManager1*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((baul_freedesktop_file_manager1_get_type ())))))); |
1157 | else |
1158 | return NULL((void*)0); |
1159 | } |
1160 | |
1161 | /** |
1162 | * baul_freedesktop_file_manager1_proxy_new_sync: |
1163 | * @connection: A #GDBusConnection. |
1164 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1165 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
1166 | * @object_path: An object path. |
1167 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1168 | * @error: Return location for error or %NULL |
1169 | * |
1170 | * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link>. See g_dbus_proxy_new_sync() for more details. |
1171 | * |
1172 | * The calling thread is blocked until a reply is received. |
1173 | * |
1174 | * See baul_freedesktop_file_manager1_proxy_new() for the asynchronous version of this constructor. |
1175 | * |
1176 | * Returns: (transfer full) (type BaulFreedesktopFileManager1Proxy): The constructed proxy object or %NULL if @error is set. |
1177 | */ |
1178 | BaulFreedesktopFileManager1 * |
1179 | baul_freedesktop_file_manager1_proxy_new_sync ( |
1180 | GDBusConnection *connection, |
1181 | GDBusProxyFlags flags, |
1182 | const gchar *name, |
1183 | const gchar *object_path, |
1184 | GCancellable *cancellable, |
1185 | GError **error) |
1186 | { |
1187 | GInitable *ret; |
1188 | ret = g_initable_new (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1_PROXY(baul_freedesktop_file_manager1_proxy_get_type ()), cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.FileManager1", NULL((void*)0)); |
1189 | if (ret != NULL((void*)0)) |
1190 | return BAUL_FREEDESKTOP_FILE_MANAGER1 (ret)((((BaulFreedesktopFileManager1*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((baul_freedesktop_file_manager1_get_type ())))))); |
1191 | else |
1192 | return NULL((void*)0); |
1193 | } |
1194 | |
1195 | |
1196 | /** |
1197 | * baul_freedesktop_file_manager1_proxy_new_for_bus: |
1198 | * @bus_type: A #GBusType. |
1199 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1200 | * @name: A bus name (well-known or unique). |
1201 | * @object_path: An object path. |
1202 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1203 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
1204 | * @user_data: User data to pass to @callback. |
1205 | * |
1206 | * Like baul_freedesktop_file_manager1_proxy_new() but takes a #GBusType instead of a #GDBusConnection. |
1207 | * |
1208 | * 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()). |
1209 | * You can then call baul_freedesktop_file_manager1_proxy_new_for_bus_finish() to get the result of the operation. |
1210 | * |
1211 | * See baul_freedesktop_file_manager1_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
1212 | */ |
1213 | void |
1214 | baul_freedesktop_file_manager1_proxy_new_for_bus ( |
1215 | GBusType bus_type, |
1216 | GDBusProxyFlags flags, |
1217 | const gchar *name, |
1218 | const gchar *object_path, |
1219 | GCancellable *cancellable, |
1220 | GAsyncReadyCallback callback, |
1221 | gpointer user_data) |
1222 | { |
1223 | g_async_initable_new_async (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1_PROXY(baul_freedesktop_file_manager1_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.freedesktop.FileManager1", NULL((void*)0)); |
1224 | } |
1225 | |
1226 | /** |
1227 | * baul_freedesktop_file_manager1_proxy_new_for_bus_finish: |
1228 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to baul_freedesktop_file_manager1_proxy_new_for_bus(). |
1229 | * @error: Return location for error or %NULL |
1230 | * |
1231 | * Finishes an operation started with baul_freedesktop_file_manager1_proxy_new_for_bus(). |
1232 | * |
1233 | * Returns: (transfer full) (type BaulFreedesktopFileManager1Proxy): The constructed proxy object or %NULL if @error is set. |
1234 | */ |
1235 | BaulFreedesktopFileManager1 * |
1236 | baul_freedesktop_file_manager1_proxy_new_for_bus_finish ( |
1237 | GAsyncResult *res, |
1238 | GError **error) |
1239 | { |
1240 | GObject *ret; |
1241 | GObject *source_object; |
1242 | source_object = g_async_result_get_source_object (res); |
1243 | 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); |
1244 | g_object_unref (source_object); |
1245 | if (ret != NULL((void*)0)) |
1246 | return BAUL_FREEDESKTOP_FILE_MANAGER1 (ret)((((BaulFreedesktopFileManager1*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((baul_freedesktop_file_manager1_get_type ())))))); |
1247 | else |
1248 | return NULL((void*)0); |
1249 | } |
1250 | |
1251 | /** |
1252 | * baul_freedesktop_file_manager1_proxy_new_for_bus_sync: |
1253 | * @bus_type: A #GBusType. |
1254 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1255 | * @name: A bus name (well-known or unique). |
1256 | * @object_path: An object path. |
1257 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1258 | * @error: Return location for error or %NULL |
1259 | * |
1260 | * Like baul_freedesktop_file_manager1_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
1261 | * |
1262 | * The calling thread is blocked until a reply is received. |
1263 | * |
1264 | * See baul_freedesktop_file_manager1_proxy_new_for_bus() for the asynchronous version of this constructor. |
1265 | * |
1266 | * Returns: (transfer full) (type BaulFreedesktopFileManager1Proxy): The constructed proxy object or %NULL if @error is set. |
1267 | */ |
1268 | BaulFreedesktopFileManager1 * |
1269 | baul_freedesktop_file_manager1_proxy_new_for_bus_sync ( |
1270 | GBusType bus_type, |
1271 | GDBusProxyFlags flags, |
1272 | const gchar *name, |
1273 | const gchar *object_path, |
1274 | GCancellable *cancellable, |
1275 | GError **error) |
1276 | { |
1277 | GInitable *ret; |
1278 | ret = g_initable_new (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1_PROXY(baul_freedesktop_file_manager1_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.freedesktop.FileManager1", NULL((void*)0)); |
1279 | if (ret != NULL((void*)0)) |
1280 | return BAUL_FREEDESKTOP_FILE_MANAGER1 (ret)((((BaulFreedesktopFileManager1*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((baul_freedesktop_file_manager1_get_type ())))))); |
1281 | else |
1282 | return NULL((void*)0); |
1283 | } |
1284 | |
1285 | |
1286 | /* ------------------------------------------------------------------------ */ |
1287 | |
1288 | /** |
1289 | * BaulFreedesktopFileManager1Skeleton: |
1290 | * |
1291 | * The #BaulFreedesktopFileManager1Skeleton structure contains only private data and should only be accessed using the provided API. |
1292 | */ |
1293 | |
1294 | /** |
1295 | * BaulFreedesktopFileManager1SkeletonClass: |
1296 | * @parent_class: The parent class. |
1297 | * |
1298 | * Class structure for #BaulFreedesktopFileManager1Skeleton. |
1299 | */ |
1300 | |
1301 | struct _BaulFreedesktopFileManager1SkeletonPrivate |
1302 | { |
1303 | GValue *properties; |
1304 | GList *changed_properties; |
1305 | GSource *changed_properties_idle_source; |
1306 | GMainContext *context; |
1307 | GMutex lock; |
1308 | }; |
1309 | |
1310 | static void |
1311 | _baul_freedesktop_file_manager1_skeleton_handle_method_call ( |
1312 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
1313 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
1314 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
1315 | const gchar *interface_name, |
1316 | const gchar *method_name, |
1317 | GVariant *parameters, |
1318 | GDBusMethodInvocation *invocation, |
1319 | gpointer user_data) |
1320 | { |
1321 | BaulFreedesktopFileManager1Skeleton *skeleton = BAUL_FREEDESKTOP_FILE_MANAGER1_SKELETON (user_data)((((BaulFreedesktopFileManager1Skeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((baul_freedesktop_file_manager1_skeleton_get_type ())))))); |
1322 | _ExtendedGDBusMethodInfo *info; |
1323 | GVariantIter iter; |
1324 | GVariant *child; |
1325 | GValue *paramv; |
1326 | gsize num_params; |
1327 | guint num_extra; |
1328 | gsize n; |
1329 | guint signal_id; |
1330 | GValue return_value = G_VALUE_INIT{ 0, { { 0 } } }; |
1331 | info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); |
1332 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "baul-freedesktop-generated.c", 1332, ((const char *) (__func__)), "info != NULL"); } while (0); |
1333 | num_params = g_variant_n_children (parameters); |
1334 | 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 ))); |
1335 | n = 0; |
1336 | g_value_init (¶mv[n], BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1(baul_freedesktop_file_manager1_get_type ())); |
1337 | g_value_set_object (¶mv[n++], skeleton); |
1338 | g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ())); |
1339 | g_value_set_object (¶mv[n++], invocation); |
1340 | if (info->pass_fdlist) |
1341 | { |
1342 | #ifdef G_OS_UNIX |
1343 | g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST(g_unix_fd_list_get_type ())); |
1344 | g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); |
1345 | #else |
1346 | g_assert_not_reached ()do { g_assertion_message_expr (((gchar*) 0), "baul-freedesktop-generated.c" , 1346, ((const char*) (__func__)), ((void*)0)); } while (0); |
1347 | #endif |
1348 | } |
1349 | g_variant_iter_init (&iter, parameters); |
1350 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
1351 | { |
1352 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; |
1353 | if (arg_info->use_gvariant) |
1354 | { |
1355 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
1356 | g_value_set_variant (¶mv[n], child); |
1357 | n++; |
1358 | } |
1359 | else |
1360 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
1361 | g_variant_unref (child); |
1362 | } |
1363 | signal_id = g_signal_lookup (info->signal_name, BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1(baul_freedesktop_file_manager1_get_type ())); |
1364 | g_value_init (&return_value, G_TYPE_BOOLEAN((GType) ((5) << (2)))); |
1365 | g_signal_emitv (paramv, signal_id, 0, &return_value); |
1366 | if (!g_value_get_boolean (&return_value)) |
1367 | 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); |
1368 | g_value_unset (&return_value); |
1369 | for (n = 0; n < num_params + num_extra; n++) |
1370 | g_value_unset (¶mv[n]); |
1371 | g_free (paramv); |
1372 | } |
1373 | |
1374 | static GVariant * |
1375 | _baul_freedesktop_file_manager1_skeleton_handle_get_property ( |
1376 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
1377 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
1378 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
1379 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
1380 | const gchar *property_name, |
1381 | GError **error, |
1382 | gpointer user_data) |
1383 | { |
1384 | BaulFreedesktopFileManager1Skeleton *skeleton = BAUL_FREEDESKTOP_FILE_MANAGER1_SKELETON (user_data)((((BaulFreedesktopFileManager1Skeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((baul_freedesktop_file_manager1_skeleton_get_type ())))))); |
1385 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
1386 | GParamSpec *pspec; |
1387 | _ExtendedGDBusPropertyInfo *info; |
1388 | GVariant *ret; |
1389 | ret = NULL((void*)0); |
1390 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_baul_freedesktop_file_manager1_interface_info.parent_struct, property_name); |
1391 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "baul-freedesktop-generated.c", 1391, ((const char *) (__func__)), "info != NULL"); } while (0); |
1392 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
1393 | if (pspec == NULL((void*)0)) |
1394 | { |
1395 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
1396 | } |
1397 | else |
1398 | { |
1399 | g_value_init (&value, pspec->value_type); |
1400 | g_object_get_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
1401 | ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)(g_variant_type_checked_ ((info->parent_struct.signature)) )); |
1402 | g_value_unset (&value); |
1403 | } |
1404 | return ret; |
1405 | } |
1406 | |
1407 | static gboolean |
1408 | _baul_freedesktop_file_manager1_skeleton_handle_set_property ( |
1409 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
1410 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
1411 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
1412 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
1413 | const gchar *property_name, |
1414 | GVariant *variant, |
1415 | GError **error, |
1416 | gpointer user_data) |
1417 | { |
1418 | BaulFreedesktopFileManager1Skeleton *skeleton = BAUL_FREEDESKTOP_FILE_MANAGER1_SKELETON (user_data)((((BaulFreedesktopFileManager1Skeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((baul_freedesktop_file_manager1_skeleton_get_type ())))))); |
1419 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
1420 | GParamSpec *pspec; |
1421 | _ExtendedGDBusPropertyInfo *info; |
1422 | gboolean ret; |
1423 | ret = FALSE(0); |
1424 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_baul_freedesktop_file_manager1_interface_info.parent_struct, property_name); |
1425 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "baul-freedesktop-generated.c", 1425, ((const char *) (__func__)), "info != NULL"); } while (0); |
1426 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
1427 | if (pspec == NULL((void*)0)) |
1428 | { |
1429 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
1430 | } |
1431 | else |
1432 | { |
1433 | if (info->use_gvariant) |
1434 | g_value_set_variant (&value, variant); |
1435 | else |
1436 | g_dbus_gvariant_to_gvalue (variant, &value); |
1437 | g_object_set_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
1438 | g_value_unset (&value); |
1439 | ret = TRUE(!(0)); |
1440 | } |
1441 | return ret; |
1442 | } |
1443 | |
1444 | static const GDBusInterfaceVTable _baul_freedesktop_file_manager1_skeleton_vtable = |
1445 | { |
1446 | _baul_freedesktop_file_manager1_skeleton_handle_method_call, |
1447 | _baul_freedesktop_file_manager1_skeleton_handle_get_property, |
1448 | _baul_freedesktop_file_manager1_skeleton_handle_set_property, |
1449 | {NULL((void*)0)} |
1450 | }; |
1451 | |
1452 | static GDBusInterfaceInfo * |
1453 | baul_freedesktop_file_manager1_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
1454 | { |
1455 | return baul_freedesktop_file_manager1_interface_info (); |
1456 | } |
1457 | |
1458 | static GDBusInterfaceVTable * |
1459 | baul_freedesktop_file_manager1_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
1460 | { |
1461 | return (GDBusInterfaceVTable *) &_baul_freedesktop_file_manager1_skeleton_vtable; |
1462 | } |
1463 | |
1464 | static GVariant * |
1465 | baul_freedesktop_file_manager1_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) |
1466 | { |
1467 | BaulFreedesktopFileManager1Skeleton *skeleton = BAUL_FREEDESKTOP_FILE_MANAGER1_SKELETON (_skeleton)((((BaulFreedesktopFileManager1Skeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_skeleton)), ((baul_freedesktop_file_manager1_skeleton_get_type ())))))); |
Value stored to 'skeleton' during its initialization is never read | |
1468 | |
1469 | GVariantBuilder builder; |
1470 | guint n; |
1471 | g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
1472 | if (_baul_freedesktop_file_manager1_interface_info.parent_struct.properties == NULL((void*)0)) |
1473 | goto out; |
1474 | for (n = 0; _baul_freedesktop_file_manager1_interface_info.parent_struct.properties[n] != NULL((void*)0); n++) |
1475 | { |
1476 | GDBusPropertyInfo *info = _baul_freedesktop_file_manager1_interface_info.parent_struct.properties[n]; |
1477 | if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) |
1478 | { |
1479 | GVariant *value; |
1480 | value = _baul_freedesktop_file_manager1_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.freedesktop.FileManager1", info->name, NULL((void*)0), skeleton); |
1481 | if (value != NULL((void*)0)) |
1482 | { |
1483 | g_variant_take_ref (value); |
1484 | g_variant_builder_add (&builder, "{sv}", info->name, value); |
1485 | g_variant_unref (value); |
1486 | } |
1487 | } |
1488 | } |
1489 | out: |
1490 | return g_variant_builder_end (&builder); |
1491 | } |
1492 | |
1493 | static void |
1494 | baul_freedesktop_file_manager1_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
1495 | { |
1496 | } |
1497 | |
1498 | static void baul_freedesktop_file_manager1_skeleton_iface_init (BaulFreedesktopFileManager1Iface *iface); |
1499 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1500 | G_DEFINE_TYPE_WITH_CODE (BaulFreedesktopFileManager1Skeleton, baul_freedesktop_file_manager1_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void baul_freedesktop_file_manager1_skeleton_init (BaulFreedesktopFileManager1Skeleton *self); static void baul_freedesktop_file_manager1_skeleton_class_init (BaulFreedesktopFileManager1SkeletonClass *klass); static GType baul_freedesktop_file_manager1_skeleton_get_type_once (void) ; static gpointer baul_freedesktop_file_manager1_skeleton_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Skeleton_private_offset ; static void baul_freedesktop_file_manager1_skeleton_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_skeleton_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Skeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Skeleton_private_offset ); baul_freedesktop_file_manager1_skeleton_class_init ((BaulFreedesktopFileManager1SkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_skeleton_get_instance_private (BaulFreedesktopFileManager1Skeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Skeleton_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_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 ("BaulFreedesktopFileManager1Skeleton"), sizeof (BaulFreedesktopFileManager1SkeletonClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_class_intern_init , sizeof (BaulFreedesktopFileManager1Skeleton), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_skeleton_init , (GTypeFlags) 0); { {{ BaulFreedesktopFileManager1Skeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (BaulFreedesktopFileManager1SkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1501 | G_ADD_PRIVATE (BaulFreedesktopFileManager1Skeleton)static void baul_freedesktop_file_manager1_skeleton_init (BaulFreedesktopFileManager1Skeleton *self); static void baul_freedesktop_file_manager1_skeleton_class_init (BaulFreedesktopFileManager1SkeletonClass *klass); static GType baul_freedesktop_file_manager1_skeleton_get_type_once (void) ; static gpointer baul_freedesktop_file_manager1_skeleton_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Skeleton_private_offset ; static void baul_freedesktop_file_manager1_skeleton_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_skeleton_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Skeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Skeleton_private_offset ); baul_freedesktop_file_manager1_skeleton_class_init ((BaulFreedesktopFileManager1SkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_skeleton_get_instance_private (BaulFreedesktopFileManager1Skeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Skeleton_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_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 ("BaulFreedesktopFileManager1Skeleton"), sizeof (BaulFreedesktopFileManager1SkeletonClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_class_intern_init , sizeof (BaulFreedesktopFileManager1Skeleton), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_skeleton_init , (GTypeFlags) 0); { {{ BaulFreedesktopFileManager1Skeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (BaulFreedesktopFileManager1SkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1502 | G_IMPLEMENT_INTERFACE (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1, baul_freedesktop_file_manager1_skeleton_iface_init))static void baul_freedesktop_file_manager1_skeleton_init (BaulFreedesktopFileManager1Skeleton *self); static void baul_freedesktop_file_manager1_skeleton_class_init (BaulFreedesktopFileManager1SkeletonClass *klass); static GType baul_freedesktop_file_manager1_skeleton_get_type_once (void) ; static gpointer baul_freedesktop_file_manager1_skeleton_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Skeleton_private_offset ; static void baul_freedesktop_file_manager1_skeleton_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_skeleton_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Skeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Skeleton_private_offset ); baul_freedesktop_file_manager1_skeleton_class_init ((BaulFreedesktopFileManager1SkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_skeleton_get_instance_private (BaulFreedesktopFileManager1Skeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Skeleton_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_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 ("BaulFreedesktopFileManager1Skeleton"), sizeof (BaulFreedesktopFileManager1SkeletonClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_class_intern_init , sizeof (BaulFreedesktopFileManager1Skeleton), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_skeleton_init , (GTypeFlags) 0); { {{ BaulFreedesktopFileManager1Skeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (BaulFreedesktopFileManager1SkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1503 | |
1504 | #else |
1505 | G_DEFINE_TYPE_WITH_CODE (BaulFreedesktopFileManager1Skeleton, baul_freedesktop_file_manager1_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void baul_freedesktop_file_manager1_skeleton_init (BaulFreedesktopFileManager1Skeleton *self); static void baul_freedesktop_file_manager1_skeleton_class_init (BaulFreedesktopFileManager1SkeletonClass *klass); static GType baul_freedesktop_file_manager1_skeleton_get_type_once (void) ; static gpointer baul_freedesktop_file_manager1_skeleton_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Skeleton_private_offset ; static void baul_freedesktop_file_manager1_skeleton_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_skeleton_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Skeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Skeleton_private_offset ); baul_freedesktop_file_manager1_skeleton_class_init ((BaulFreedesktopFileManager1SkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_skeleton_get_instance_private (BaulFreedesktopFileManager1Skeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Skeleton_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_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 ("BaulFreedesktopFileManager1Skeleton"), sizeof (BaulFreedesktopFileManager1SkeletonClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_class_intern_init , sizeof (BaulFreedesktopFileManager1Skeleton), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_skeleton_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1506 | G_IMPLEMENT_INTERFACE (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1, baul_freedesktop_file_manager1_skeleton_iface_init))static void baul_freedesktop_file_manager1_skeleton_init (BaulFreedesktopFileManager1Skeleton *self); static void baul_freedesktop_file_manager1_skeleton_class_init (BaulFreedesktopFileManager1SkeletonClass *klass); static GType baul_freedesktop_file_manager1_skeleton_get_type_once (void) ; static gpointer baul_freedesktop_file_manager1_skeleton_parent_class = ((void*)0); static gint BaulFreedesktopFileManager1Skeleton_private_offset ; static void baul_freedesktop_file_manager1_skeleton_class_intern_init (gpointer klass) { baul_freedesktop_file_manager1_skeleton_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopFileManager1Skeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopFileManager1Skeleton_private_offset ); baul_freedesktop_file_manager1_skeleton_class_init ((BaulFreedesktopFileManager1SkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_file_manager1_skeleton_get_instance_private (BaulFreedesktopFileManager1Skeleton *self) { return (((gpointer ) ((guint8*) (self) + (glong) (BaulFreedesktopFileManager1Skeleton_private_offset )))); } GType baul_freedesktop_file_manager1_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 = baul_freedesktop_file_manager1_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 baul_freedesktop_file_manager1_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 ("BaulFreedesktopFileManager1Skeleton"), sizeof (BaulFreedesktopFileManager1SkeletonClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_class_intern_init , sizeof (BaulFreedesktopFileManager1Skeleton), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_file_manager1_skeleton_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_file_manager1_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_file_manager1_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1507 | |
1508 | #endif |
1509 | static void |
1510 | baul_freedesktop_file_manager1_skeleton_finalize (GObject *object) |
1511 | { |
1512 | BaulFreedesktopFileManager1Skeleton *skeleton = BAUL_FREEDESKTOP_FILE_MANAGER1_SKELETON (object)((((BaulFreedesktopFileManager1Skeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((baul_freedesktop_file_manager1_skeleton_get_type ())))))); |
1513 | g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); |
1514 | if (skeleton->priv->changed_properties_idle_source != NULL((void*)0)) |
1515 | g_source_destroy (skeleton->priv->changed_properties_idle_source); |
1516 | g_main_context_unref (skeleton->priv->context); |
1517 | g_mutex_clear (&skeleton->priv->lock); |
1518 | G_OBJECT_CLASS (baul_freedesktop_file_manager1_skeleton_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((baul_freedesktop_file_manager1_skeleton_parent_class)), ( ((GType) ((20) << (2))))))))->finalize (object); |
1519 | } |
1520 | |
1521 | static void |
1522 | baul_freedesktop_file_manager1_skeleton_init (BaulFreedesktopFileManager1Skeleton *skeleton) |
1523 | { |
1524 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1525 | skeleton->priv = baul_freedesktop_file_manager1_skeleton_get_instance_private (skeleton); |
1526 | #else |
1527 | skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1_SKELETON, BaulFreedesktopFileManager1SkeletonPrivate)((BaulFreedesktopFileManager1SkeletonPrivate*) g_type_instance_get_private ((GTypeInstance*) (skeleton), ((baul_freedesktop_file_manager1_skeleton_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
1528 | #endif |
1529 | |
1530 | g_mutex_init (&skeleton->priv->lock); |
1531 | skeleton->priv->context = g_main_context_ref_thread_default (); |
1532 | } |
1533 | |
1534 | static void |
1535 | baul_freedesktop_file_manager1_skeleton_class_init (BaulFreedesktopFileManager1SkeletonClass *klass) |
1536 | { |
1537 | GObjectClass *gobject_class; |
1538 | GDBusInterfaceSkeletonClass *skeleton_class; |
1539 | |
1540 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
1541 | gobject_class->finalize = baul_freedesktop_file_manager1_skeleton_finalize; |
1542 | |
1543 | skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass)((((GDBusInterfaceSkeletonClass*) (void *) g_type_check_class_cast ((GTypeClass*) ((klass)), ((g_dbus_interface_skeleton_get_type ())))))); |
1544 | skeleton_class->get_info = baul_freedesktop_file_manager1_skeleton_dbus_interface_get_info; |
1545 | skeleton_class->get_properties = baul_freedesktop_file_manager1_skeleton_dbus_interface_get_properties; |
1546 | skeleton_class->flush = baul_freedesktop_file_manager1_skeleton_dbus_interface_flush; |
1547 | skeleton_class->get_vtable = baul_freedesktop_file_manager1_skeleton_dbus_interface_get_vtable; |
1548 | |
1549 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1550 | g_type_class_add_private (klass, sizeof (BaulFreedesktopFileManager1SkeletonPrivate)); |
1551 | #endif |
1552 | } |
1553 | |
1554 | static void |
1555 | baul_freedesktop_file_manager1_skeleton_iface_init (BaulFreedesktopFileManager1Iface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
1556 | { |
1557 | } |
1558 | |
1559 | /** |
1560 | * baul_freedesktop_file_manager1_skeleton_new: |
1561 | * |
1562 | * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link>. |
1563 | * |
1564 | * Returns: (transfer full) (type BaulFreedesktopFileManager1Skeleton): The skeleton object. |
1565 | */ |
1566 | BaulFreedesktopFileManager1 * |
1567 | baul_freedesktop_file_manager1_skeleton_new (void) |
1568 | { |
1569 | return BAUL_FREEDESKTOP_FILE_MANAGER1 (g_object_new (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1_SKELETON, NULL))((((BaulFreedesktopFileManager1*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((g_object_new ((baul_freedesktop_file_manager1_skeleton_get_type ()), ((void*)0)))), ((baul_freedesktop_file_manager1_get_type ())))))); |
1570 | } |
1571 | |
1572 | /* ------------------------------------------------------------------------ |
1573 | * Code for Object, ObjectProxy and ObjectSkeleton |
1574 | * ------------------------------------------------------------------------ |
1575 | */ |
1576 | |
1577 | /** |
1578 | * SECTION:BaulFreedesktopObject |
1579 | * @title: BaulFreedesktopObject |
1580 | * @short_description: Specialized GDBusObject types |
1581 | * |
1582 | * This section contains the #BaulFreedesktopObject, #BaulFreedesktopObjectProxy, and #BaulFreedesktopObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces. |
1583 | */ |
1584 | |
1585 | /** |
1586 | * BaulFreedesktopObject: |
1587 | * |
1588 | * The #BaulFreedesktopObject type is a specialized container of interfaces. |
1589 | */ |
1590 | |
1591 | /** |
1592 | * BaulFreedesktopObjectIface: |
1593 | * @parent_iface: The parent interface. |
1594 | * |
1595 | * Virtual table for the #BaulFreedesktopObject interface. |
1596 | */ |
1597 | |
1598 | typedef BaulFreedesktopObjectIface BaulFreedesktopObjectInterface; |
1599 | G_DEFINE_INTERFACE_WITH_CODE (BaulFreedesktopObject, baul_freedesktop_object, G_TYPE_OBJECT, g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_DBUS_OBJECT);)static void baul_freedesktop_object_default_init (BaulFreedesktopObjectInterface *klass); GType baul_freedesktop_object_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 ("BaulFreedesktopObject"), sizeof ( BaulFreedesktopObjectInterface), (GClassInitFunc)(void (*)(void )) baul_freedesktop_object_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)))); { {g_type_interface_add_prerequisite (g_define_type_id, (g_dbus_object_get_type()));;} } (__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 ; } |
1600 | |
1601 | static void |
1602 | baul_freedesktop_object_default_init (BaulFreedesktopObjectIface *iface) |
1603 | { |
1604 | /** |
1605 | * BaulFreedesktopObject:file-manager1: |
1606 | * |
1607 | * The #BaulFreedesktopFileManager1 instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link>, if any. |
1608 | * |
1609 | * Connect to the #GObject::notify signal to get informed of property changes. |
1610 | */ |
1611 | g_object_interface_install_property (iface, g_param_spec_object ("file-manager1", "file-manager1", "file-manager1", BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1(baul_freedesktop_file_manager1_get_type ()), G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS(G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB ))); |
1612 | |
1613 | } |
1614 | |
1615 | /** |
1616 | * baul_freedesktop_object_get_file_manager1: |
1617 | * @object: A #BaulFreedesktopObject. |
1618 | * |
1619 | * Gets the #BaulFreedesktopFileManager1 instance for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link> on @object, if any. |
1620 | * |
1621 | * Returns: (transfer full) (nullable): A #BaulFreedesktopFileManager1 that must be freed with g_object_unref() or %NULL if @object does not implement the interface. |
1622 | */ |
1623 | BaulFreedesktopFileManager1 *baul_freedesktop_object_get_file_manager1 (BaulFreedesktopObject *object) |
1624 | { |
1625 | GDBusInterface *ret; |
1626 | ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object)((((GDBusObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), ((g_dbus_object_get_type())))))), "org.freedesktop.FileManager1"); |
1627 | if (ret == NULL((void*)0)) |
1628 | return NULL((void*)0); |
1629 | return BAUL_FREEDESKTOP_FILE_MANAGER1 (ret)((((BaulFreedesktopFileManager1*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((baul_freedesktop_file_manager1_get_type ())))))); |
1630 | } |
1631 | |
1632 | |
1633 | /** |
1634 | * baul_freedesktop_object_peek_file_manager1: (skip) |
1635 | * @object: A #BaulFreedesktopObject. |
1636 | * |
1637 | * Like baul_freedesktop_object_get_file_manager1() but doesn't increase the reference count on the returned object. |
1638 | * |
1639 | * It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running. |
1640 | * |
1641 | * Returns: (transfer none) (nullable): A #BaulFreedesktopFileManager1 or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object. |
1642 | */ |
1643 | BaulFreedesktopFileManager1 *baul_freedesktop_object_peek_file_manager1 (BaulFreedesktopObject *object) |
1644 | { |
1645 | GDBusInterface *ret; |
1646 | ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object)((((GDBusObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), ((g_dbus_object_get_type())))))), "org.freedesktop.FileManager1"); |
1647 | if (ret == NULL((void*)0)) |
1648 | return NULL((void*)0); |
1649 | g_object_unref (ret); |
1650 | return BAUL_FREEDESKTOP_FILE_MANAGER1 (ret)((((BaulFreedesktopFileManager1*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((baul_freedesktop_file_manager1_get_type ())))))); |
1651 | } |
1652 | |
1653 | |
1654 | static void |
1655 | baul_freedesktop_object_notify (GDBusObject *object, GDBusInterface *interface) |
1656 | { |
1657 | _ExtendedGDBusInterfaceInfo *info = (_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface); |
1658 | /* info can be NULL if the other end is using a D-Bus interface we don't know |
1659 | * anything about, for example old generated code in this process talking to |
1660 | * newer generated code in the other process. */ |
1661 | if (info != NULL((void*)0)) |
1662 | g_object_notify (G_OBJECT (object)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
1663 | } |
1664 | |
1665 | /** |
1666 | * BaulFreedesktopObjectProxy: |
1667 | * |
1668 | * The #BaulFreedesktopObjectProxy structure contains only private data and should only be accessed using the provided API. |
1669 | */ |
1670 | |
1671 | /** |
1672 | * BaulFreedesktopObjectProxyClass: |
1673 | * @parent_class: The parent class. |
1674 | * |
1675 | * Class structure for #BaulFreedesktopObjectProxy. |
1676 | */ |
1677 | |
1678 | static void |
1679 | baul_freedesktop_object_proxy__baul_freedesktop_object_iface_init (BaulFreedesktopObjectIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
1680 | { |
1681 | } |
1682 | |
1683 | static void |
1684 | baul_freedesktop_object_proxy__g_dbus_object_iface_init (GDBusObjectIface *iface) |
1685 | { |
1686 | iface->interface_added = baul_freedesktop_object_notify; |
1687 | iface->interface_removed = baul_freedesktop_object_notify; |
1688 | } |
1689 | |
1690 | |
1691 | G_DEFINE_TYPE_WITH_CODE (BaulFreedesktopObjectProxy, baul_freedesktop_object_proxy, G_TYPE_DBUS_OBJECT_PROXY,static void baul_freedesktop_object_proxy_init (BaulFreedesktopObjectProxy *self); static void baul_freedesktop_object_proxy_class_init (BaulFreedesktopObjectProxyClass *klass); static GType baul_freedesktop_object_proxy_get_type_once (void); static gpointer baul_freedesktop_object_proxy_parent_class = ((void*)0); static gint BaulFreedesktopObjectProxy_private_offset ; static void baul_freedesktop_object_proxy_class_intern_init (gpointer klass) { baul_freedesktop_object_proxy_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopObjectProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopObjectProxy_private_offset ); baul_freedesktop_object_proxy_class_init ((BaulFreedesktopObjectProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_object_proxy_get_instance_private (BaulFreedesktopObjectProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopObjectProxy_private_offset )))); } GType baul_freedesktop_object_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 = baul_freedesktop_object_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 baul_freedesktop_object_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_object_proxy_get_type ()), g_intern_static_string ( "BaulFreedesktopObjectProxy"), sizeof (BaulFreedesktopObjectProxyClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_object_proxy_class_intern_init , sizeof (BaulFreedesktopObjectProxy), (GInstanceInitFunc)(void (*)(void)) baul_freedesktop_object_proxy_init, (GTypeFlags) 0 ); { {{ const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_object_proxy__baul_freedesktop_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_object_get_type ()), &g_implement_interface_info ); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) baul_freedesktop_object_proxy__g_dbus_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (g_dbus_object_get_type()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1692 | G_IMPLEMENT_INTERFACE (BAUL_FREEDESKTOP_TYPE_OBJECT, baul_freedesktop_object_proxy__baul_freedesktop_object_iface_init)static void baul_freedesktop_object_proxy_init (BaulFreedesktopObjectProxy *self); static void baul_freedesktop_object_proxy_class_init (BaulFreedesktopObjectProxyClass *klass); static GType baul_freedesktop_object_proxy_get_type_once (void); static gpointer baul_freedesktop_object_proxy_parent_class = ((void*)0); static gint BaulFreedesktopObjectProxy_private_offset ; static void baul_freedesktop_object_proxy_class_intern_init (gpointer klass) { baul_freedesktop_object_proxy_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopObjectProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopObjectProxy_private_offset ); baul_freedesktop_object_proxy_class_init ((BaulFreedesktopObjectProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_object_proxy_get_instance_private (BaulFreedesktopObjectProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopObjectProxy_private_offset )))); } GType baul_freedesktop_object_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 = baul_freedesktop_object_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 baul_freedesktop_object_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_object_proxy_get_type ()), g_intern_static_string ( "BaulFreedesktopObjectProxy"), sizeof (BaulFreedesktopObjectProxyClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_object_proxy_class_intern_init , sizeof (BaulFreedesktopObjectProxy), (GInstanceInitFunc)(void (*)(void)) baul_freedesktop_object_proxy_init, (GTypeFlags) 0 ); { {{ const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_object_proxy__baul_freedesktop_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_object_get_type ()), &g_implement_interface_info ); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) baul_freedesktop_object_proxy__g_dbus_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (g_dbus_object_get_type()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1693 | G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, baul_freedesktop_object_proxy__g_dbus_object_iface_init))static void baul_freedesktop_object_proxy_init (BaulFreedesktopObjectProxy *self); static void baul_freedesktop_object_proxy_class_init (BaulFreedesktopObjectProxyClass *klass); static GType baul_freedesktop_object_proxy_get_type_once (void); static gpointer baul_freedesktop_object_proxy_parent_class = ((void*)0); static gint BaulFreedesktopObjectProxy_private_offset ; static void baul_freedesktop_object_proxy_class_intern_init (gpointer klass) { baul_freedesktop_object_proxy_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopObjectProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopObjectProxy_private_offset ); baul_freedesktop_object_proxy_class_init ((BaulFreedesktopObjectProxyClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_object_proxy_get_instance_private (BaulFreedesktopObjectProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopObjectProxy_private_offset )))); } GType baul_freedesktop_object_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 = baul_freedesktop_object_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 baul_freedesktop_object_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_object_proxy_get_type ()), g_intern_static_string ( "BaulFreedesktopObjectProxy"), sizeof (BaulFreedesktopObjectProxyClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_object_proxy_class_intern_init , sizeof (BaulFreedesktopObjectProxy), (GInstanceInitFunc)(void (*)(void)) baul_freedesktop_object_proxy_init, (GTypeFlags) 0 ); { {{ const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_object_proxy__baul_freedesktop_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_object_get_type ()), &g_implement_interface_info ); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) baul_freedesktop_object_proxy__g_dbus_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (g_dbus_object_get_type()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1694 | |
1695 | static void |
1696 | baul_freedesktop_object_proxy_init (BaulFreedesktopObjectProxy *object G_GNUC_UNUSED__attribute__ ((__unused__))) |
1697 | { |
1698 | } |
1699 | |
1700 | static void |
1701 | baul_freedesktop_object_proxy_set_property (GObject *gobject, |
1702 | guint prop_id, |
1703 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
1704 | GParamSpec *pspec) |
1705 | { |
1706 | G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec)do { GObject *_glib__object = (GObject*) ((gobject)); GParamSpec *_glib__pspec = (GParamSpec*) ((pspec)); guint _glib__property_id = ((prop_id)); g_warning ("%s:%d: invalid %s id %u for \"%s\" of type '%s' in '%s'" , "baul-freedesktop-generated.c", 1706, ("property"), _glib__property_id , _glib__pspec->name, g_type_name ((((((GTypeClass*) (((GTypeInstance *) (_glib__pspec))->g_class))->g_type)))), (g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_glib__object))->g_class ))->g_type)))))); } while (0); |
1707 | } |
1708 | |
1709 | static void |
1710 | baul_freedesktop_object_proxy_get_property (GObject *gobject, |
1711 | guint prop_id, |
1712 | GValue *value, |
1713 | GParamSpec *pspec) |
1714 | { |
1715 | BaulFreedesktopObjectProxy *object = BAUL_FREEDESKTOP_OBJECT_PROXY (gobject)((((BaulFreedesktopObjectProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((gobject)), ((baul_freedesktop_object_proxy_get_type ())))))); |
1716 | GDBusInterface *interface; |
1717 | |
1718 | switch (prop_id) |
1719 | { |
1720 | case 1: |
1721 | interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object)((((GDBusObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), ((g_dbus_object_get_type())))))), "org.freedesktop.FileManager1"); |
1722 | g_value_take_object (value, interface); |
1723 | break; |
1724 | |
1725 | default: |
1726 | G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec)do { GObject *_glib__object = (GObject*) ((gobject)); GParamSpec *_glib__pspec = (GParamSpec*) ((pspec)); guint _glib__property_id = ((prop_id)); g_warning ("%s:%d: invalid %s id %u for \"%s\" of type '%s' in '%s'" , "baul-freedesktop-generated.c", 1726, ("property"), _glib__property_id , _glib__pspec->name, g_type_name ((((((GTypeClass*) (((GTypeInstance *) (_glib__pspec))->g_class))->g_type)))), (g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_glib__object))->g_class ))->g_type)))))); } while (0); |
1727 | break; |
1728 | } |
1729 | } |
1730 | |
1731 | static void |
1732 | baul_freedesktop_object_proxy_class_init (BaulFreedesktopObjectProxyClass *klass) |
1733 | { |
1734 | GObjectClass *gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
1735 | |
1736 | gobject_class->set_property = baul_freedesktop_object_proxy_set_property; |
1737 | gobject_class->get_property = baul_freedesktop_object_proxy_get_property; |
1738 | |
1739 | g_object_class_override_property (gobject_class, 1, "file-manager1"); |
1740 | } |
1741 | |
1742 | /** |
1743 | * baul_freedesktop_object_proxy_new: |
1744 | * @connection: A #GDBusConnection. |
1745 | * @object_path: An object path. |
1746 | * |
1747 | * Creates a new proxy object. |
1748 | * |
1749 | * Returns: (transfer full): The proxy object. |
1750 | */ |
1751 | BaulFreedesktopObjectProxy * |
1752 | baul_freedesktop_object_proxy_new (GDBusConnection *connection, |
1753 | const gchar *object_path) |
1754 | { |
1755 | g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL)do { if (((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance *) ((connection)); GType __t = ((g_dbus_connection_get_type ( ))); gboolean __r; if (!__inst) __r = (0); else if (__inst-> g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; })))))) { } else { g_return_if_fail_warning (((gchar*) 0 ), ((const char*) (__func__)), "G_IS_DBUS_CONNECTION (connection)" ); return (((void*)0)); } } while (0); |
1756 | g_return_val_if_fail (g_variant_is_object_path (object_path), NULL)do { if ((g_variant_is_object_path (object_path))) { } else { g_return_if_fail_warning (((gchar*) 0), ((const char*) (__func__ )), "g_variant_is_object_path (object_path)"); return (((void *)0)); } } while (0); |
1757 | return BAUL_FREEDESKTOP_OBJECT_PROXY (g_object_new (BAUL_FREEDESKTOP_TYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path", object_path, NULL))((((BaulFreedesktopObjectProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((g_object_new ((baul_freedesktop_object_proxy_get_type ()), "g-connection", connection, "g-object-path", object_path , ((void*)0)))), ((baul_freedesktop_object_proxy_get_type ()) ))))); |
1758 | } |
1759 | |
1760 | /** |
1761 | * BaulFreedesktopObjectSkeleton: |
1762 | * |
1763 | * The #BaulFreedesktopObjectSkeleton structure contains only private data and should only be accessed using the provided API. |
1764 | */ |
1765 | |
1766 | /** |
1767 | * BaulFreedesktopObjectSkeletonClass: |
1768 | * @parent_class: The parent class. |
1769 | * |
1770 | * Class structure for #BaulFreedesktopObjectSkeleton. |
1771 | */ |
1772 | |
1773 | static void |
1774 | baul_freedesktop_object_skeleton__baul_freedesktop_object_iface_init (BaulFreedesktopObjectIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
1775 | { |
1776 | } |
1777 | |
1778 | |
1779 | static void |
1780 | baul_freedesktop_object_skeleton__g_dbus_object_iface_init (GDBusObjectIface *iface) |
1781 | { |
1782 | iface->interface_added = baul_freedesktop_object_notify; |
1783 | iface->interface_removed = baul_freedesktop_object_notify; |
1784 | } |
1785 | |
1786 | G_DEFINE_TYPE_WITH_CODE (BaulFreedesktopObjectSkeleton, baul_freedesktop_object_skeleton, G_TYPE_DBUS_OBJECT_SKELETON,static void baul_freedesktop_object_skeleton_init (BaulFreedesktopObjectSkeleton *self); static void baul_freedesktop_object_skeleton_class_init (BaulFreedesktopObjectSkeletonClass *klass); static GType baul_freedesktop_object_skeleton_get_type_once (void); static gpointer baul_freedesktop_object_skeleton_parent_class = ((void*)0); static gint BaulFreedesktopObjectSkeleton_private_offset ; static void baul_freedesktop_object_skeleton_class_intern_init (gpointer klass) { baul_freedesktop_object_skeleton_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopObjectSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopObjectSkeleton_private_offset ); baul_freedesktop_object_skeleton_class_init ((BaulFreedesktopObjectSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_object_skeleton_get_instance_private (BaulFreedesktopObjectSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopObjectSkeleton_private_offset )))); } GType baul_freedesktop_object_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 = baul_freedesktop_object_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 baul_freedesktop_object_skeleton_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_object_skeleton_get_type ()), g_intern_static_string ("BaulFreedesktopObjectSkeleton"), sizeof (BaulFreedesktopObjectSkeletonClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_object_skeleton_class_intern_init , sizeof (BaulFreedesktopObjectSkeleton), (GInstanceInitFunc) (void (*)(void)) baul_freedesktop_object_skeleton_init, (GTypeFlags ) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_object_skeleton__baul_freedesktop_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_object_get_type ()), &g_implement_interface_info ); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) baul_freedesktop_object_skeleton__g_dbus_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (g_dbus_object_get_type()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1787 | G_IMPLEMENT_INTERFACE (BAUL_FREEDESKTOP_TYPE_OBJECT, baul_freedesktop_object_skeleton__baul_freedesktop_object_iface_init)static void baul_freedesktop_object_skeleton_init (BaulFreedesktopObjectSkeleton *self); static void baul_freedesktop_object_skeleton_class_init (BaulFreedesktopObjectSkeletonClass *klass); static GType baul_freedesktop_object_skeleton_get_type_once (void); static gpointer baul_freedesktop_object_skeleton_parent_class = ((void*)0); static gint BaulFreedesktopObjectSkeleton_private_offset ; static void baul_freedesktop_object_skeleton_class_intern_init (gpointer klass) { baul_freedesktop_object_skeleton_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopObjectSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopObjectSkeleton_private_offset ); baul_freedesktop_object_skeleton_class_init ((BaulFreedesktopObjectSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_object_skeleton_get_instance_private (BaulFreedesktopObjectSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopObjectSkeleton_private_offset )))); } GType baul_freedesktop_object_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 = baul_freedesktop_object_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 baul_freedesktop_object_skeleton_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_object_skeleton_get_type ()), g_intern_static_string ("BaulFreedesktopObjectSkeleton"), sizeof (BaulFreedesktopObjectSkeletonClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_object_skeleton_class_intern_init , sizeof (BaulFreedesktopObjectSkeleton), (GInstanceInitFunc) (void (*)(void)) baul_freedesktop_object_skeleton_init, (GTypeFlags ) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_object_skeleton__baul_freedesktop_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_object_get_type ()), &g_implement_interface_info ); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) baul_freedesktop_object_skeleton__g_dbus_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (g_dbus_object_get_type()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1788 | G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, baul_freedesktop_object_skeleton__g_dbus_object_iface_init))static void baul_freedesktop_object_skeleton_init (BaulFreedesktopObjectSkeleton *self); static void baul_freedesktop_object_skeleton_class_init (BaulFreedesktopObjectSkeletonClass *klass); static GType baul_freedesktop_object_skeleton_get_type_once (void); static gpointer baul_freedesktop_object_skeleton_parent_class = ((void*)0); static gint BaulFreedesktopObjectSkeleton_private_offset ; static void baul_freedesktop_object_skeleton_class_intern_init (gpointer klass) { baul_freedesktop_object_skeleton_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopObjectSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopObjectSkeleton_private_offset ); baul_freedesktop_object_skeleton_class_init ((BaulFreedesktopObjectSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_object_skeleton_get_instance_private (BaulFreedesktopObjectSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (BaulFreedesktopObjectSkeleton_private_offset )))); } GType baul_freedesktop_object_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 = baul_freedesktop_object_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 baul_freedesktop_object_skeleton_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_object_skeleton_get_type ()), g_intern_static_string ("BaulFreedesktopObjectSkeleton"), sizeof (BaulFreedesktopObjectSkeletonClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_object_skeleton_class_intern_init , sizeof (BaulFreedesktopObjectSkeleton), (GInstanceInitFunc) (void (*)(void)) baul_freedesktop_object_skeleton_init, (GTypeFlags ) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) baul_freedesktop_object_skeleton__baul_freedesktop_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (baul_freedesktop_object_get_type ()), &g_implement_interface_info ); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) baul_freedesktop_object_skeleton__g_dbus_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (g_dbus_object_get_type()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1789 | |
1790 | static void |
1791 | baul_freedesktop_object_skeleton_init (BaulFreedesktopObjectSkeleton *object G_GNUC_UNUSED__attribute__ ((__unused__))) |
1792 | { |
1793 | } |
1794 | |
1795 | static void |
1796 | baul_freedesktop_object_skeleton_set_property (GObject *gobject, |
1797 | guint prop_id, |
1798 | const GValue *value, |
1799 | GParamSpec *pspec) |
1800 | { |
1801 | BaulFreedesktopObjectSkeleton *object = BAUL_FREEDESKTOP_OBJECT_SKELETON (gobject)((((BaulFreedesktopObjectSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((gobject)), ((baul_freedesktop_object_skeleton_get_type ())))))); |
1802 | GDBusInterfaceSkeleton *interface; |
1803 | |
1804 | switch (prop_id) |
1805 | { |
1806 | case 1: |
1807 | interface = g_value_get_object (value); |
1808 | if (interface != NULL((void*)0)) |
1809 | { |
1810 | g_warn_if_fail (BAUL_FREEDESKTOP_IS_FILE_MANAGER1 (interface))do { if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance *) ((interface)); GType __t = ((baul_freedesktop_file_manager1_get_type ())); gboolean __r; if (!__inst) __r = (0); else if (__inst-> g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) ; else g_warn_message (((gchar*) 0), "baul-freedesktop-generated.c" , 1810, ((const char*) (__func__)), "BAUL_FREEDESKTOP_IS_FILE_MANAGER1 (interface)" ); } while (0); |
1811 | g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object)((((GDBusObjectSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((g_dbus_object_skeleton_get_type ())))))), interface); |
1812 | } |
1813 | else |
1814 | { |
1815 | g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object)((((GDBusObjectSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((g_dbus_object_skeleton_get_type ())))))), "org.freedesktop.FileManager1"); |
1816 | } |
1817 | break; |
1818 | |
1819 | default: |
1820 | G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec)do { GObject *_glib__object = (GObject*) ((gobject)); GParamSpec *_glib__pspec = (GParamSpec*) ((pspec)); guint _glib__property_id = ((prop_id)); g_warning ("%s:%d: invalid %s id %u for \"%s\" of type '%s' in '%s'" , "baul-freedesktop-generated.c", 1820, ("property"), _glib__property_id , _glib__pspec->name, g_type_name ((((((GTypeClass*) (((GTypeInstance *) (_glib__pspec))->g_class))->g_type)))), (g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_glib__object))->g_class ))->g_type)))))); } while (0); |
1821 | break; |
1822 | } |
1823 | } |
1824 | |
1825 | static void |
1826 | baul_freedesktop_object_skeleton_get_property (GObject *gobject, |
1827 | guint prop_id, |
1828 | GValue *value, |
1829 | GParamSpec *pspec) |
1830 | { |
1831 | BaulFreedesktopObjectSkeleton *object = BAUL_FREEDESKTOP_OBJECT_SKELETON (gobject)((((BaulFreedesktopObjectSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((gobject)), ((baul_freedesktop_object_skeleton_get_type ())))))); |
1832 | GDBusInterface *interface; |
1833 | |
1834 | switch (prop_id) |
1835 | { |
1836 | case 1: |
1837 | interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object)((((GDBusObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), ((g_dbus_object_get_type())))))), "org.freedesktop.FileManager1"); |
1838 | g_value_take_object (value, interface); |
1839 | break; |
1840 | |
1841 | default: |
1842 | G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec)do { GObject *_glib__object = (GObject*) ((gobject)); GParamSpec *_glib__pspec = (GParamSpec*) ((pspec)); guint _glib__property_id = ((prop_id)); g_warning ("%s:%d: invalid %s id %u for \"%s\" of type '%s' in '%s'" , "baul-freedesktop-generated.c", 1842, ("property"), _glib__property_id , _glib__pspec->name, g_type_name ((((((GTypeClass*) (((GTypeInstance *) (_glib__pspec))->g_class))->g_type)))), (g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_glib__object))->g_class ))->g_type)))))); } while (0); |
1843 | break; |
1844 | } |
1845 | } |
1846 | |
1847 | static void |
1848 | baul_freedesktop_object_skeleton_class_init (BaulFreedesktopObjectSkeletonClass *klass) |
1849 | { |
1850 | GObjectClass *gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
1851 | |
1852 | gobject_class->set_property = baul_freedesktop_object_skeleton_set_property; |
1853 | gobject_class->get_property = baul_freedesktop_object_skeleton_get_property; |
1854 | |
1855 | g_object_class_override_property (gobject_class, 1, "file-manager1"); |
1856 | } |
1857 | |
1858 | /** |
1859 | * baul_freedesktop_object_skeleton_new: |
1860 | * @object_path: An object path. |
1861 | * |
1862 | * Creates a new skeleton object. |
1863 | * |
1864 | * Returns: (transfer full): The skeleton object. |
1865 | */ |
1866 | BaulFreedesktopObjectSkeleton * |
1867 | baul_freedesktop_object_skeleton_new (const gchar *object_path) |
1868 | { |
1869 | g_return_val_if_fail (g_variant_is_object_path (object_path), NULL)do { if ((g_variant_is_object_path (object_path))) { } else { g_return_if_fail_warning (((gchar*) 0), ((const char*) (__func__ )), "g_variant_is_object_path (object_path)"); return (((void *)0)); } } while (0); |
1870 | return BAUL_FREEDESKTOP_OBJECT_SKELETON (g_object_new (BAUL_FREEDESKTOP_TYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL))((((BaulFreedesktopObjectSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((g_object_new ((baul_freedesktop_object_skeleton_get_type ()), "g-object-path", object_path, ((void*)0)))), ((baul_freedesktop_object_skeleton_get_type ())))))); |
1871 | } |
1872 | |
1873 | /** |
1874 | * baul_freedesktop_object_skeleton_set_file_manager1: |
1875 | * @object: A #BaulFreedesktopObjectSkeleton. |
1876 | * @interface_: (nullable): A #BaulFreedesktopFileManager1 or %NULL to clear the interface. |
1877 | * |
1878 | * Sets the #BaulFreedesktopFileManager1 instance for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-FileManager1.top_of_page">org.freedesktop.FileManager1</link> on @object. |
1879 | */ |
1880 | void baul_freedesktop_object_skeleton_set_file_manager1 (BaulFreedesktopObjectSkeleton *object, BaulFreedesktopFileManager1 *interface_) |
1881 | { |
1882 | g_object_set (G_OBJECT (object)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), (((GType) ((20) << (2)))))))), "file-manager1", interface_, NULL((void*)0)); |
1883 | } |
1884 | |
1885 | |
1886 | /* ------------------------------------------------------------------------ |
1887 | * Code for ObjectManager client |
1888 | * ------------------------------------------------------------------------ |
1889 | */ |
1890 | |
1891 | /** |
1892 | * SECTION:BaulFreedesktopObjectManagerClient |
1893 | * @title: BaulFreedesktopObjectManagerClient |
1894 | * @short_description: Generated GDBusObjectManagerClient type |
1895 | * |
1896 | * This section contains a #GDBusObjectManagerClient that uses baul_freedesktop_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. |
1897 | */ |
1898 | |
1899 | /** |
1900 | * BaulFreedesktopObjectManagerClient: |
1901 | * |
1902 | * The #BaulFreedesktopObjectManagerClient structure contains only private data and should only be accessed using the provided API. |
1903 | */ |
1904 | |
1905 | /** |
1906 | * BaulFreedesktopObjectManagerClientClass: |
1907 | * @parent_class: The parent class. |
1908 | * |
1909 | * Class structure for #BaulFreedesktopObjectManagerClient. |
1910 | */ |
1911 | |
1912 | G_DEFINE_TYPE (BaulFreedesktopObjectManagerClient, baul_freedesktop_object_manager_client, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT)static void baul_freedesktop_object_manager_client_init (BaulFreedesktopObjectManagerClient *self); static void baul_freedesktop_object_manager_client_class_init (BaulFreedesktopObjectManagerClientClass *klass); static GType baul_freedesktop_object_manager_client_get_type_once (void); static gpointer baul_freedesktop_object_manager_client_parent_class = ((void*)0); static gint BaulFreedesktopObjectManagerClient_private_offset ; static void baul_freedesktop_object_manager_client_class_intern_init (gpointer klass) { baul_freedesktop_object_manager_client_parent_class = g_type_class_peek_parent (klass); if (BaulFreedesktopObjectManagerClient_private_offset != 0) g_type_class_adjust_private_offset (klass, &BaulFreedesktopObjectManagerClient_private_offset ); baul_freedesktop_object_manager_client_class_init ((BaulFreedesktopObjectManagerClientClass *) klass); } __attribute__ ((__unused__)) static inline gpointer baul_freedesktop_object_manager_client_get_instance_private ( BaulFreedesktopObjectManagerClient *self) { return (((gpointer ) ((guint8*) (self) + (glong) (BaulFreedesktopObjectManagerClient_private_offset )))); } GType baul_freedesktop_object_manager_client_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 = baul_freedesktop_object_manager_client_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 baul_freedesktop_object_manager_client_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_object_manager_client_get_type ()), g_intern_static_string ("BaulFreedesktopObjectManagerClient"), sizeof (BaulFreedesktopObjectManagerClientClass ), (GClassInitFunc)(void (*)(void)) baul_freedesktop_object_manager_client_class_intern_init , sizeof (BaulFreedesktopObjectManagerClient), (GInstanceInitFunc )(void (*)(void)) baul_freedesktop_object_manager_client_init , (GTypeFlags) 0); { {{};} } return g_define_type_id; } |
1913 | |
1914 | static void |
1915 | baul_freedesktop_object_manager_client_init (BaulFreedesktopObjectManagerClient *manager G_GNUC_UNUSED__attribute__ ((__unused__))) |
1916 | { |
1917 | } |
1918 | |
1919 | static void |
1920 | baul_freedesktop_object_manager_client_class_init (BaulFreedesktopObjectManagerClientClass *klass G_GNUC_UNUSED__attribute__ ((__unused__))) |
1921 | { |
1922 | } |
1923 | |
1924 | /** |
1925 | * baul_freedesktop_object_manager_client_get_proxy_type: |
1926 | * @manager: A #GDBusObjectManagerClient. |
1927 | * @object_path: The object path of the remote object (unused). |
1928 | * @interface_name: (nullable): Interface name of the remote object or %NULL to get the object proxy #GType. |
1929 | * @user_data: User data (unused). |
1930 | * |
1931 | * A #GDBusProxyTypeFunc that maps @interface_name to the generated #GDBusObjectProxy derived and #GDBusProxy derived types. |
1932 | * |
1933 | * Returns: A #GDBusProxy derived #GType if @interface_name is not %NULL, otherwise the #GType for #BaulFreedesktopObjectProxy. |
1934 | */ |
1935 | GType |
1936 | baul_freedesktop_object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager G_GNUC_UNUSED__attribute__ ((__unused__)), const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), const gchar *interface_name, gpointer user_data G_GNUC_UNUSED__attribute__ ((__unused__))) |
1937 | { |
1938 | static gsize once_init_value = 0; |
1939 | static GHashTable *lookup_hash; |
1940 | GType ret; |
1941 | |
1942 | if (interface_name == NULL((void*)0)) |
1943 | return BAUL_FREEDESKTOP_TYPE_OBJECT_PROXY(baul_freedesktop_object_proxy_get_type ()); |
1944 | if (g_once_init_enter (&once_init_value)(__extension__ ({ _Static_assert (sizeof *(&once_init_value ) == sizeof (gpointer), "Expression evaluates to false"); (void ) (0 ? (gpointer) *(&once_init_value) : ((void*)0)); (!(__extension__ ({ _Static_assert (sizeof *(&once_init_value) == sizeof ( gpointer), "Expression evaluates to false"); __typeof__ (*(& once_init_value)) gapg_temp_newval; __typeof__ ((&once_init_value )) gapg_temp_atomic = (&once_init_value); __atomic_load ( gapg_temp_atomic, &gapg_temp_newval, 5); gapg_temp_newval ; })) && g_once_init_enter (&once_init_value)); } ))) |
1945 | { |
1946 | lookup_hash = g_hash_table_new (g_str_hash, g_str_equal); |
1947 | g_hash_table_insert (lookup_hash, (gpointer) "org.freedesktop.FileManager1", (gpointer) (guintptr) (BAUL_FREEDESKTOP_TYPE_FILE_MANAGER1_PROXY(baul_freedesktop_file_manager1_proxy_get_type ()))); |
1948 | g_once_init_leave (&once_init_value, 1)(__extension__ ({ _Static_assert (sizeof *(&once_init_value ) == sizeof (gpointer), "Expression evaluates to false"); 0 ? (void) (*(&once_init_value) = (1)) : (void) 0; g_once_init_leave ((&once_init_value), (gsize) (1)); })); |
1949 | } |
1950 | ret = (GType) (guintptr) (g_hash_table_lookup (lookup_hash, interface_name)); |
1951 | if (ret == (GType) 0) |
1952 | ret = G_TYPE_DBUS_PROXY(g_dbus_proxy_get_type ()); |
1953 | return ret; |
1954 | } |
1955 | |
1956 | /** |
1957 | * baul_freedesktop_object_manager_client_new: |
1958 | * @connection: A #GDBusConnection. |
1959 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
1960 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
1961 | * @object_path: An object path. |
1962 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1963 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
1964 | * @user_data: User data to pass to @callback. |
1965 | * |
1966 | * Asynchronously creates #GDBusObjectManagerClient using baul_freedesktop_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new() for more details. |
1967 | * |
1968 | * 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()). |
1969 | * You can then call baul_freedesktop_object_manager_client_new_finish() to get the result of the operation. |
1970 | * |
1971 | * See baul_freedesktop_object_manager_client_new_sync() for the synchronous, blocking version of this constructor. |
1972 | */ |
1973 | void |
1974 | baul_freedesktop_object_manager_client_new ( |
1975 | GDBusConnection *connection, |
1976 | GDBusObjectManagerClientFlags flags, |
1977 | const gchar *name, |
1978 | const gchar *object_path, |
1979 | GCancellable *cancellable, |
1980 | GAsyncReadyCallback callback, |
1981 | gpointer user_data) |
1982 | { |
1983 | g_async_initable_new_async (BAUL_FREEDESKTOP_TYPE_OBJECT_MANAGER_CLIENT(baul_freedesktop_object_manager_client_get_type ()), G_PRIORITY_DEFAULT0, cancellable, callback, user_data, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", baul_freedesktop_object_manager_client_get_proxy_type, NULL((void*)0)); |
1984 | } |
1985 | |
1986 | /** |
1987 | * baul_freedesktop_object_manager_client_new_finish: |
1988 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to baul_freedesktop_object_manager_client_new(). |
1989 | * @error: Return location for error or %NULL |
1990 | * |
1991 | * Finishes an operation started with baul_freedesktop_object_manager_client_new(). |
1992 | * |
1993 | * Returns: (transfer full) (type BaulFreedesktopObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
1994 | */ |
1995 | GDBusObjectManager * |
1996 | baul_freedesktop_object_manager_client_new_finish ( |
1997 | GAsyncResult *res, |
1998 | GError **error) |
1999 | { |
2000 | GObject *ret; |
2001 | GObject *source_object; |
2002 | source_object = g_async_result_get_source_object (res); |
2003 | 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); |
2004 | g_object_unref (source_object); |
2005 | if (ret != NULL((void*)0)) |
2006 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
2007 | else |
2008 | return NULL((void*)0); |
2009 | } |
2010 | |
2011 | /** |
2012 | * baul_freedesktop_object_manager_client_new_sync: |
2013 | * @connection: A #GDBusConnection. |
2014 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
2015 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
2016 | * @object_path: An object path. |
2017 | * @cancellable: (nullable): A #GCancellable or %NULL. |
2018 | * @error: Return location for error or %NULL |
2019 | * |
2020 | * Synchronously creates #GDBusObjectManagerClient using baul_freedesktop_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new_sync() for more details. |
2021 | * |
2022 | * The calling thread is blocked until a reply is received. |
2023 | * |
2024 | * See baul_freedesktop_object_manager_client_new() for the asynchronous version of this constructor. |
2025 | * |
2026 | * Returns: (transfer full) (type BaulFreedesktopObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
2027 | */ |
2028 | GDBusObjectManager * |
2029 | baul_freedesktop_object_manager_client_new_sync ( |
2030 | GDBusConnection *connection, |
2031 | GDBusObjectManagerClientFlags flags, |
2032 | const gchar *name, |
2033 | const gchar *object_path, |
2034 | GCancellable *cancellable, |
2035 | GError **error) |
2036 | { |
2037 | GInitable *ret; |
2038 | ret = g_initable_new (BAUL_FREEDESKTOP_TYPE_OBJECT_MANAGER_CLIENT(baul_freedesktop_object_manager_client_get_type ()), cancellable, error, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", baul_freedesktop_object_manager_client_get_proxy_type, NULL((void*)0)); |
2039 | if (ret != NULL((void*)0)) |
2040 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
2041 | else |
2042 | return NULL((void*)0); |
2043 | } |
2044 | |
2045 | |
2046 | /** |
2047 | * baul_freedesktop_object_manager_client_new_for_bus: |
2048 | * @bus_type: A #GBusType. |
2049 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
2050 | * @name: A bus name (well-known or unique). |
2051 | * @object_path: An object path. |
2052 | * @cancellable: (nullable): A #GCancellable or %NULL. |
2053 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
2054 | * @user_data: User data to pass to @callback. |
2055 | * |
2056 | * Like baul_freedesktop_object_manager_client_new() but takes a #GBusType instead of a #GDBusConnection. |
2057 | * |
2058 | * 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()). |
2059 | * You can then call baul_freedesktop_object_manager_client_new_for_bus_finish() to get the result of the operation. |
2060 | * |
2061 | * See baul_freedesktop_object_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
2062 | */ |
2063 | void |
2064 | baul_freedesktop_object_manager_client_new_for_bus ( |
2065 | GBusType bus_type, |
2066 | GDBusObjectManagerClientFlags flags, |
2067 | const gchar *name, |
2068 | const gchar *object_path, |
2069 | GCancellable *cancellable, |
2070 | GAsyncReadyCallback callback, |
2071 | gpointer user_data) |
2072 | { |
2073 | g_async_initable_new_async (BAUL_FREEDESKTOP_TYPE_OBJECT_MANAGER_CLIENT(baul_freedesktop_object_manager_client_get_type ()), G_PRIORITY_DEFAULT0, cancellable, callback, user_data, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", baul_freedesktop_object_manager_client_get_proxy_type, NULL((void*)0)); |
2074 | } |
2075 | |
2076 | /** |
2077 | * baul_freedesktop_object_manager_client_new_for_bus_finish: |
2078 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to baul_freedesktop_object_manager_client_new_for_bus(). |
2079 | * @error: Return location for error or %NULL |
2080 | * |
2081 | * Finishes an operation started with baul_freedesktop_object_manager_client_new_for_bus(). |
2082 | * |
2083 | * Returns: (transfer full) (type BaulFreedesktopObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
2084 | */ |
2085 | GDBusObjectManager * |
2086 | baul_freedesktop_object_manager_client_new_for_bus_finish ( |
2087 | GAsyncResult *res, |
2088 | GError **error) |
2089 | { |
2090 | GObject *ret; |
2091 | GObject *source_object; |
2092 | source_object = g_async_result_get_source_object (res); |
2093 | 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); |
2094 | g_object_unref (source_object); |
2095 | if (ret != NULL((void*)0)) |
2096 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
2097 | else |
2098 | return NULL((void*)0); |
2099 | } |
2100 | |
2101 | /** |
2102 | * baul_freedesktop_object_manager_client_new_for_bus_sync: |
2103 | * @bus_type: A #GBusType. |
2104 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
2105 | * @name: A bus name (well-known or unique). |
2106 | * @object_path: An object path. |
2107 | * @cancellable: (nullable): A #GCancellable or %NULL. |
2108 | * @error: Return location for error or %NULL |
2109 | * |
2110 | * Like baul_freedesktop_object_manager_client_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
2111 | * |
2112 | * The calling thread is blocked until a reply is received. |
2113 | * |
2114 | * See baul_freedesktop_object_manager_client_new_for_bus() for the asynchronous version of this constructor. |
2115 | * |
2116 | * Returns: (transfer full) (type BaulFreedesktopObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
2117 | */ |
2118 | GDBusObjectManager * |
2119 | baul_freedesktop_object_manager_client_new_for_bus_sync ( |
2120 | GBusType bus_type, |
2121 | GDBusObjectManagerClientFlags flags, |
2122 | const gchar *name, |
2123 | const gchar *object_path, |
2124 | GCancellable *cancellable, |
2125 | GError **error) |
2126 | { |
2127 | GInitable *ret; |
2128 | ret = g_initable_new (BAUL_FREEDESKTOP_TYPE_OBJECT_MANAGER_CLIENT(baul_freedesktop_object_manager_client_get_type ()), cancellable, error, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", baul_freedesktop_object_manager_client_get_proxy_type, NULL((void*)0)); |
2129 | if (ret != NULL((void*)0)) |
2130 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
2131 | else |
2132 | return NULL((void*)0); |
2133 | } |
2134 | |
2135 |