File: | shell/ev-gdbus-generated.c |
Warning: | line 1381, column 32 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 "ev-gdbus-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), "ev-gdbus-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_VARIANT_UINT ( |
202 | GClosure *closure, |
203 | GValue *return_value, |
204 | unsigned int n_param_values, |
205 | const GValue *param_values, |
206 | void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)), |
207 | void *marshal_data) |
208 | { |
209 | typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantUintFunc) |
210 | (void *data1, |
211 | GDBusMethodInvocation *arg_method_invocation, |
212 | GVariant *arg_args, |
213 | guint arg_timestamp, |
214 | void *data2); |
215 | _GDbusCodegenMarshalBoolean_ObjectVariantUintFunc 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_ObjectVariantUintFunc) |
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_variant (param_values + 2)(param_values + 2)->data[0].v_pointer, |
241 | g_marshal_value_peek_uint (param_values + 3)(param_values + 3)->data[0].v_uint, |
242 | data2); |
243 | |
244 | g_value_set_boolean (return_value, v_return); |
245 | } |
246 | |
247 | static void |
248 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( |
249 | GClosure *closure, |
250 | GValue *return_value, |
251 | unsigned int n_param_values, |
252 | const GValue *param_values, |
253 | void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)), |
254 | void *marshal_data) |
255 | { |
256 | typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) |
257 | (void *data1, |
258 | GDBusMethodInvocation *arg_method_invocation, |
259 | void *data2); |
260 | _GDbusCodegenMarshalBoolean_ObjectFunc callback; |
261 | GCClosure *cc = (GCClosure*) closure; |
262 | void *data1, *data2; |
263 | gboolean v_return; |
264 | |
265 | 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); |
266 | g_return_if_fail (n_param_values == 2)do { if ((n_param_values == 2)) { } else { g_return_if_fail_warning (((gchar*) 0), ((const char*) (__func__)), "n_param_values == 2" ); return; } } while (0); |
267 | |
268 | if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag)) |
269 | { |
270 | data1 = closure->data; |
271 | data2 = g_value_peek_pointer (param_values + 0); |
272 | } |
273 | else |
274 | { |
275 | data1 = g_value_peek_pointer (param_values + 0); |
276 | data2 = closure->data; |
277 | } |
278 | |
279 | callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) |
280 | (marshal_data ? marshal_data : cc->callback); |
281 | |
282 | v_return = |
283 | callback (data1, |
284 | g_marshal_value_peek_object (param_values + 1)(param_values + 1)->data[0].v_pointer, |
285 | data2); |
286 | |
287 | g_value_set_boolean (return_value, v_return); |
288 | } |
289 | |
290 | static void |
291 | _g_dbus_codegen_marshal_VOID__STRING_VARIANT_UINT ( |
292 | GClosure *closure, |
293 | GValue *return_value G_GNUC_UNUSED__attribute__ ((__unused__)), |
294 | unsigned int n_param_values, |
295 | const GValue *param_values, |
296 | void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)), |
297 | void *marshal_data) |
298 | { |
299 | typedef void (*_GDbusCodegenMarshalVoid_StringVariantUintFunc) |
300 | (void *data1, |
301 | const gchar *arg_source_file, |
302 | GVariant *arg_source_point, |
303 | guint arg_timestamp, |
304 | void *data2); |
305 | _GDbusCodegenMarshalVoid_StringVariantUintFunc callback; |
306 | GCClosure *cc = (GCClosure*) closure; |
307 | void *data1, *data2; |
308 | |
309 | 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); |
310 | |
311 | if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag)) |
312 | { |
313 | data1 = closure->data; |
314 | data2 = g_value_peek_pointer (param_values + 0); |
315 | } |
316 | else |
317 | { |
318 | data1 = g_value_peek_pointer (param_values + 0); |
319 | data2 = closure->data; |
320 | } |
321 | |
322 | callback = (_GDbusCodegenMarshalVoid_StringVariantUintFunc) |
323 | (marshal_data ? marshal_data : cc->callback); |
324 | |
325 | callback (data1, |
326 | g_marshal_value_peek_string (param_values + 1)(param_values + 1)->data[0].v_pointer, |
327 | g_marshal_value_peek_variant (param_values + 2)(param_values + 2)->data[0].v_pointer, |
328 | g_marshal_value_peek_uint (param_values + 3)(param_values + 3)->data[0].v_uint, |
329 | data2); |
330 | } |
331 | |
332 | static void |
333 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_VARIANT_UINT ( |
334 | GClosure *closure, |
335 | GValue *return_value, |
336 | unsigned int n_param_values, |
337 | const GValue *param_values, |
338 | void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)), |
339 | void *marshal_data) |
340 | { |
341 | typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringVariantUintFunc) |
342 | (void *data1, |
343 | GDBusMethodInvocation *arg_method_invocation, |
344 | const gchar *arg_source_file, |
345 | GVariant *arg_source_point, |
346 | guint arg_timestamp, |
347 | void *data2); |
348 | _GDbusCodegenMarshalBoolean_ObjectStringVariantUintFunc callback; |
349 | GCClosure *cc = (GCClosure*) closure; |
350 | void *data1, *data2; |
351 | gboolean v_return; |
352 | |
353 | 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); |
354 | g_return_if_fail (n_param_values == 5)do { if ((n_param_values == 5)) { } else { g_return_if_fail_warning (((gchar*) 0), ((const char*) (__func__)), "n_param_values == 5" ); return; } } while (0); |
355 | |
356 | if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag)) |
357 | { |
358 | data1 = closure->data; |
359 | data2 = g_value_peek_pointer (param_values + 0); |
360 | } |
361 | else |
362 | { |
363 | data1 = g_value_peek_pointer (param_values + 0); |
364 | data2 = closure->data; |
365 | } |
366 | |
367 | callback = (_GDbusCodegenMarshalBoolean_ObjectStringVariantUintFunc) |
368 | (marshal_data ? marshal_data : cc->callback); |
369 | |
370 | v_return = |
371 | callback (data1, |
372 | g_marshal_value_peek_object (param_values + 1)(param_values + 1)->data[0].v_pointer, |
373 | g_marshal_value_peek_string (param_values + 2)(param_values + 2)->data[0].v_pointer, |
374 | g_marshal_value_peek_variant (param_values + 3)(param_values + 3)->data[0].v_pointer, |
375 | g_marshal_value_peek_uint (param_values + 4)(param_values + 4)->data[0].v_uint, |
376 | data2); |
377 | |
378 | g_value_set_boolean (return_value, v_return); |
379 | } |
380 | |
381 | /* ------------------------------------------------------------------------ |
382 | * Code for interface org.cafe.lector.Application |
383 | * ------------------------------------------------------------------------ |
384 | */ |
385 | |
386 | /** |
387 | * SECTION:EvLectorApplication |
388 | * @title: EvLectorApplication |
389 | * @short_description: Generated C code for the org.cafe.lector.Application D-Bus interface |
390 | * |
391 | * This section contains code for working with the <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link> D-Bus interface in C. |
392 | */ |
393 | |
394 | /* ---- Introspection data for org.cafe.lector.Application ---- */ |
395 | |
396 | static const _ExtendedGDBusArgInfo _ev_lector_application_method_info_reload_IN_ARG_args = |
397 | { |
398 | { |
399 | -1, |
400 | (gchar *) "args", |
401 | (gchar *) "a{sv}", |
402 | NULL((void*)0) |
403 | }, |
404 | FALSE(0) |
405 | }; |
406 | |
407 | static const _ExtendedGDBusArgInfo _ev_lector_application_method_info_reload_IN_ARG_timestamp = |
408 | { |
409 | { |
410 | -1, |
411 | (gchar *) "timestamp", |
412 | (gchar *) "u", |
413 | NULL((void*)0) |
414 | }, |
415 | FALSE(0) |
416 | }; |
417 | |
418 | static const GDBusArgInfo * const _ev_lector_application_method_info_reload_IN_ARG_pointers[] = |
419 | { |
420 | &_ev_lector_application_method_info_reload_IN_ARG_args.parent_struct, |
421 | &_ev_lector_application_method_info_reload_IN_ARG_timestamp.parent_struct, |
422 | NULL((void*)0) |
423 | }; |
424 | |
425 | static const _ExtendedGDBusMethodInfo _ev_lector_application_method_info_reload = |
426 | { |
427 | { |
428 | -1, |
429 | (gchar *) "Reload", |
430 | (GDBusArgInfo **) &_ev_lector_application_method_info_reload_IN_ARG_pointers, |
431 | NULL((void*)0), |
432 | NULL((void*)0) |
433 | }, |
434 | "handle-reload", |
435 | FALSE(0) |
436 | }; |
437 | |
438 | static const _ExtendedGDBusArgInfo _ev_lector_application_method_info_get_window_list_OUT_ARG_window_list = |
439 | { |
440 | { |
441 | -1, |
442 | (gchar *) "window_list", |
443 | (gchar *) "ao", |
444 | NULL((void*)0) |
445 | }, |
446 | FALSE(0) |
447 | }; |
448 | |
449 | static const GDBusArgInfo * const _ev_lector_application_method_info_get_window_list_OUT_ARG_pointers[] = |
450 | { |
451 | &_ev_lector_application_method_info_get_window_list_OUT_ARG_window_list.parent_struct, |
452 | NULL((void*)0) |
453 | }; |
454 | |
455 | static const _ExtendedGDBusMethodInfo _ev_lector_application_method_info_get_window_list = |
456 | { |
457 | { |
458 | -1, |
459 | (gchar *) "GetWindowList", |
460 | NULL((void*)0), |
461 | (GDBusArgInfo **) &_ev_lector_application_method_info_get_window_list_OUT_ARG_pointers, |
462 | NULL((void*)0) |
463 | }, |
464 | "handle-get-window-list", |
465 | FALSE(0) |
466 | }; |
467 | |
468 | static const GDBusMethodInfo * const _ev_lector_application_method_info_pointers[] = |
469 | { |
470 | &_ev_lector_application_method_info_reload.parent_struct, |
471 | &_ev_lector_application_method_info_get_window_list.parent_struct, |
472 | NULL((void*)0) |
473 | }; |
474 | |
475 | static const _ExtendedGDBusInterfaceInfo _ev_lector_application_interface_info = |
476 | { |
477 | { |
478 | -1, |
479 | (gchar *) "org.cafe.lector.Application", |
480 | (GDBusMethodInfo **) &_ev_lector_application_method_info_pointers, |
481 | NULL((void*)0), |
482 | NULL((void*)0), |
483 | NULL((void*)0) |
484 | }, |
485 | "lector-application", |
486 | }; |
487 | |
488 | |
489 | /** |
490 | * ev_lector_application_interface_info: |
491 | * |
492 | * Gets a machine-readable description of the <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link> D-Bus interface. |
493 | * |
494 | * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. |
495 | */ |
496 | GDBusInterfaceInfo * |
497 | ev_lector_application_interface_info (void) |
498 | { |
499 | return (GDBusInterfaceInfo *) &_ev_lector_application_interface_info.parent_struct; |
500 | } |
501 | |
502 | /** |
503 | * ev_lector_application_override_properties: |
504 | * @klass: The class structure for a #GObject derived class. |
505 | * @property_id_begin: The property id to assign to the first overridden property. |
506 | * |
507 | * Overrides all #GObject properties in the #EvLectorApplication interface for a concrete class. |
508 | * The properties are overridden in the order they are defined. |
509 | * |
510 | * Returns: The last property id. |
511 | */ |
512 | guint |
513 | ev_lector_application_override_properties (GObjectClass *klass G_GNUC_UNUSED__attribute__ ((__unused__)), guint property_id_begin) |
514 | { |
515 | return property_id_begin - 1; |
516 | } |
517 | |
518 | |
519 | inline static void |
520 | ev_lector_application_method_marshal_reload ( |
521 | GClosure *closure, |
522 | GValue *return_value, |
523 | unsigned int n_param_values, |
524 | const GValue *param_values, |
525 | void *invocation_hint, |
526 | void *marshal_data) |
527 | { |
528 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT_UINT (closure, |
529 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
530 | } |
531 | |
532 | inline static void |
533 | ev_lector_application_method_marshal_get_window_list ( |
534 | GClosure *closure, |
535 | GValue *return_value, |
536 | unsigned int n_param_values, |
537 | const GValue *param_values, |
538 | void *invocation_hint, |
539 | void *marshal_data) |
540 | { |
541 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, |
542 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
543 | } |
544 | |
545 | |
546 | /** |
547 | * EvLectorApplication: |
548 | * |
549 | * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link>. |
550 | */ |
551 | |
552 | /** |
553 | * EvLectorApplicationIface: |
554 | * @parent_iface: The parent interface. |
555 | * @handle_get_window_list: Handler for the #EvLectorApplication::handle-get-window-list signal. |
556 | * @handle_reload: Handler for the #EvLectorApplication::handle-reload signal. |
557 | * |
558 | * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link>. |
559 | */ |
560 | |
561 | typedef EvLectorApplicationIface EvLectorApplicationInterface; |
562 | G_DEFINE_INTERFACE (EvLectorApplication, ev_lector_application, G_TYPE_OBJECT)static void ev_lector_application_default_init (EvLectorApplicationInterface *klass); GType ev_lector_application_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 ("EvLectorApplication"), sizeof (EvLectorApplicationInterface ), (GClassInitFunc)(void (*)(void)) ev_lector_application_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 ; } |
563 | |
564 | static void |
565 | ev_lector_application_default_init (EvLectorApplicationIface *iface) |
566 | { |
567 | /* GObject signals for incoming D-Bus method calls: */ |
568 | /** |
569 | * EvLectorApplication::handle-reload: |
570 | * @object: A #EvLectorApplication. |
571 | * @invocation: A #GDBusMethodInvocation. |
572 | * @arg_args: Argument passed by remote caller. |
573 | * @arg_timestamp: Argument passed by remote caller. |
574 | * |
575 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-cafe-lector-Application.Reload">Reload()</link> D-Bus method. |
576 | * |
577 | * 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 ev_lector_application_complete_reload() 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. |
578 | * |
579 | * 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. |
580 | */ |
581 | g_signal_new ("handle-reload", |
582 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
583 | G_SIGNAL_RUN_LAST, |
584 | G_STRUCT_OFFSET (EvLectorApplicationIface, handle_reload)((glong) __builtin_offsetof(EvLectorApplicationIface, handle_reload )), |
585 | g_signal_accumulator_true_handled, |
586 | NULL((void*)0), |
587 | ev_lector_application_method_marshal_reload, |
588 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
589 | 3, |
590 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_VARIANT((GType) ((21) << (2))), G_TYPE_UINT((GType) ((7) << (2)))); |
591 | |
592 | /** |
593 | * EvLectorApplication::handle-get-window-list: |
594 | * @object: A #EvLectorApplication. |
595 | * @invocation: A #GDBusMethodInvocation. |
596 | * |
597 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-cafe-lector-Application.GetWindowList">GetWindowList()</link> D-Bus method. |
598 | * |
599 | * 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 ev_lector_application_complete_get_window_list() 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. |
600 | * |
601 | * 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. |
602 | */ |
603 | g_signal_new ("handle-get-window-list", |
604 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
605 | G_SIGNAL_RUN_LAST, |
606 | G_STRUCT_OFFSET (EvLectorApplicationIface, handle_get_window_list)((glong) __builtin_offsetof(EvLectorApplicationIface, handle_get_window_list )), |
607 | g_signal_accumulator_true_handled, |
608 | NULL((void*)0), |
609 | ev_lector_application_method_marshal_get_window_list, |
610 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
611 | 1, |
612 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ())); |
613 | |
614 | } |
615 | |
616 | /** |
617 | * ev_lector_application_call_reload: |
618 | * @proxy: A #EvLectorApplicationProxy. |
619 | * @arg_args: Argument to pass with the method invocation. |
620 | * @arg_timestamp: Argument to pass with the method invocation. |
621 | * @cancellable: (nullable): A #GCancellable or %NULL. |
622 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
623 | * @user_data: User data to pass to @callback. |
624 | * |
625 | * Asynchronously invokes the <link linkend="gdbus-method-org-cafe-lector-Application.Reload">Reload()</link> D-Bus method on @proxy. |
626 | * 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()). |
627 | * You can then call ev_lector_application_call_reload_finish() to get the result of the operation. |
628 | * |
629 | * See ev_lector_application_call_reload_sync() for the synchronous, blocking version of this method. |
630 | */ |
631 | void |
632 | ev_lector_application_call_reload ( |
633 | EvLectorApplication *proxy, |
634 | GVariant *arg_args, |
635 | guint arg_timestamp, |
636 | GCancellable *cancellable, |
637 | GAsyncReadyCallback callback, |
638 | gpointer user_data) |
639 | { |
640 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
641 | "Reload", |
642 | g_variant_new ("(@a{sv}u)", |
643 | arg_args, |
644 | arg_timestamp), |
645 | G_DBUS_CALL_FLAGS_NONE, |
646 | -1, |
647 | cancellable, |
648 | callback, |
649 | user_data); |
650 | } |
651 | |
652 | /** |
653 | * ev_lector_application_call_reload_finish: |
654 | * @proxy: A #EvLectorApplicationProxy. |
655 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_application_call_reload(). |
656 | * @error: Return location for error or %NULL. |
657 | * |
658 | * Finishes an operation started with ev_lector_application_call_reload(). |
659 | * |
660 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
661 | */ |
662 | gboolean |
663 | ev_lector_application_call_reload_finish ( |
664 | EvLectorApplication *proxy, |
665 | GAsyncResult *res, |
666 | GError **error) |
667 | { |
668 | GVariant *_ret; |
669 | _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); |
670 | if (_ret == NULL((void*)0)) |
671 | goto _out; |
672 | g_variant_get (_ret, |
673 | "()"); |
674 | g_variant_unref (_ret); |
675 | _out: |
676 | return _ret != NULL((void*)0); |
677 | } |
678 | |
679 | /** |
680 | * ev_lector_application_call_reload_sync: |
681 | * @proxy: A #EvLectorApplicationProxy. |
682 | * @arg_args: Argument to pass with the method invocation. |
683 | * @arg_timestamp: Argument to pass with the method invocation. |
684 | * @cancellable: (nullable): A #GCancellable or %NULL. |
685 | * @error: Return location for error or %NULL. |
686 | * |
687 | * Synchronously invokes the <link linkend="gdbus-method-org-cafe-lector-Application.Reload">Reload()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
688 | * |
689 | * See ev_lector_application_call_reload() for the asynchronous version of this method. |
690 | * |
691 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
692 | */ |
693 | gboolean |
694 | ev_lector_application_call_reload_sync ( |
695 | EvLectorApplication *proxy, |
696 | GVariant *arg_args, |
697 | guint arg_timestamp, |
698 | GCancellable *cancellable, |
699 | GError **error) |
700 | { |
701 | GVariant *_ret; |
702 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
703 | "Reload", |
704 | g_variant_new ("(@a{sv}u)", |
705 | arg_args, |
706 | arg_timestamp), |
707 | G_DBUS_CALL_FLAGS_NONE, |
708 | -1, |
709 | cancellable, |
710 | error); |
711 | if (_ret == NULL((void*)0)) |
712 | goto _out; |
713 | g_variant_get (_ret, |
714 | "()"); |
715 | g_variant_unref (_ret); |
716 | _out: |
717 | return _ret != NULL((void*)0); |
718 | } |
719 | |
720 | /** |
721 | * ev_lector_application_call_get_window_list: |
722 | * @proxy: A #EvLectorApplicationProxy. |
723 | * @cancellable: (nullable): A #GCancellable or %NULL. |
724 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
725 | * @user_data: User data to pass to @callback. |
726 | * |
727 | * Asynchronously invokes the <link linkend="gdbus-method-org-cafe-lector-Application.GetWindowList">GetWindowList()</link> D-Bus method on @proxy. |
728 | * 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()). |
729 | * You can then call ev_lector_application_call_get_window_list_finish() to get the result of the operation. |
730 | * |
731 | * See ev_lector_application_call_get_window_list_sync() for the synchronous, blocking version of this method. |
732 | */ |
733 | void |
734 | ev_lector_application_call_get_window_list ( |
735 | EvLectorApplication *proxy, |
736 | GCancellable *cancellable, |
737 | GAsyncReadyCallback callback, |
738 | gpointer user_data) |
739 | { |
740 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
741 | "GetWindowList", |
742 | g_variant_new ("()"), |
743 | G_DBUS_CALL_FLAGS_NONE, |
744 | -1, |
745 | cancellable, |
746 | callback, |
747 | user_data); |
748 | } |
749 | |
750 | /** |
751 | * ev_lector_application_call_get_window_list_finish: |
752 | * @proxy: A #EvLectorApplicationProxy. |
753 | * @out_window_list: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. |
754 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_application_call_get_window_list(). |
755 | * @error: Return location for error or %NULL. |
756 | * |
757 | * Finishes an operation started with ev_lector_application_call_get_window_list(). |
758 | * |
759 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
760 | */ |
761 | gboolean |
762 | ev_lector_application_call_get_window_list_finish ( |
763 | EvLectorApplication *proxy, |
764 | gchar ***out_window_list, |
765 | GAsyncResult *res, |
766 | GError **error) |
767 | { |
768 | GVariant *_ret; |
769 | _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); |
770 | if (_ret == NULL((void*)0)) |
771 | goto _out; |
772 | g_variant_get (_ret, |
773 | "(^ao)", |
774 | out_window_list); |
775 | g_variant_unref (_ret); |
776 | _out: |
777 | return _ret != NULL((void*)0); |
778 | } |
779 | |
780 | /** |
781 | * ev_lector_application_call_get_window_list_sync: |
782 | * @proxy: A #EvLectorApplicationProxy. |
783 | * @out_window_list: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. |
784 | * @cancellable: (nullable): A #GCancellable or %NULL. |
785 | * @error: Return location for error or %NULL. |
786 | * |
787 | * Synchronously invokes the <link linkend="gdbus-method-org-cafe-lector-Application.GetWindowList">GetWindowList()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
788 | * |
789 | * See ev_lector_application_call_get_window_list() for the asynchronous version of this method. |
790 | * |
791 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
792 | */ |
793 | gboolean |
794 | ev_lector_application_call_get_window_list_sync ( |
795 | EvLectorApplication *proxy, |
796 | gchar ***out_window_list, |
797 | GCancellable *cancellable, |
798 | GError **error) |
799 | { |
800 | GVariant *_ret; |
801 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
802 | "GetWindowList", |
803 | g_variant_new ("()"), |
804 | G_DBUS_CALL_FLAGS_NONE, |
805 | -1, |
806 | cancellable, |
807 | error); |
808 | if (_ret == NULL((void*)0)) |
809 | goto _out; |
810 | g_variant_get (_ret, |
811 | "(^ao)", |
812 | out_window_list); |
813 | g_variant_unref (_ret); |
814 | _out: |
815 | return _ret != NULL((void*)0); |
816 | } |
817 | |
818 | /** |
819 | * ev_lector_application_complete_reload: |
820 | * @object: A #EvLectorApplication. |
821 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
822 | * |
823 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-cafe-lector-Application.Reload">Reload()</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. |
824 | * |
825 | * This method will free @invocation, you cannot use it afterwards. |
826 | */ |
827 | void |
828 | ev_lector_application_complete_reload ( |
829 | EvLectorApplication *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
830 | GDBusMethodInvocation *invocation) |
831 | { |
832 | g_dbus_method_invocation_return_value (invocation, |
833 | g_variant_new ("()")); |
834 | } |
835 | |
836 | /** |
837 | * ev_lector_application_complete_get_window_list: |
838 | * @object: A #EvLectorApplication. |
839 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
840 | * @window_list: Parameter to return. |
841 | * |
842 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-cafe-lector-Application.GetWindowList">GetWindowList()</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. |
843 | * |
844 | * This method will free @invocation, you cannot use it afterwards. |
845 | */ |
846 | void |
847 | ev_lector_application_complete_get_window_list ( |
848 | EvLectorApplication *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
849 | GDBusMethodInvocation *invocation, |
850 | const gchar *const *window_list) |
851 | { |
852 | g_dbus_method_invocation_return_value (invocation, |
853 | g_variant_new ("(^ao)", |
854 | window_list)); |
855 | } |
856 | |
857 | /* ------------------------------------------------------------------------ */ |
858 | |
859 | /** |
860 | * EvLectorApplicationProxy: |
861 | * |
862 | * The #EvLectorApplicationProxy structure contains only private data and should only be accessed using the provided API. |
863 | */ |
864 | |
865 | /** |
866 | * EvLectorApplicationProxyClass: |
867 | * @parent_class: The parent class. |
868 | * |
869 | * Class structure for #EvLectorApplicationProxy. |
870 | */ |
871 | |
872 | struct _EvLectorApplicationProxyPrivate |
873 | { |
874 | GData *qdata; |
875 | }; |
876 | |
877 | static void ev_lector_application_proxy_iface_init (EvLectorApplicationIface *iface); |
878 | |
879 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
880 | G_DEFINE_TYPE_WITH_CODE (EvLectorApplicationProxy, ev_lector_application_proxy, G_TYPE_DBUS_PROXY,static void ev_lector_application_proxy_init (EvLectorApplicationProxy *self); static void ev_lector_application_proxy_class_init ( EvLectorApplicationProxyClass *klass); static GType ev_lector_application_proxy_get_type_once (void); static gpointer ev_lector_application_proxy_parent_class = ((void*)0); static gint EvLectorApplicationProxy_private_offset ; static void ev_lector_application_proxy_class_intern_init ( gpointer klass) { ev_lector_application_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationProxy_private_offset); ev_lector_application_proxy_class_init ((EvLectorApplicationProxyClass*) klass); } __attribute__ (( __unused__)) static inline gpointer ev_lector_application_proxy_get_instance_private (EvLectorApplicationProxy *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorApplicationProxy_private_offset) ))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorApplicationProxy" ), sizeof (EvLectorApplicationProxyClass), (GClassInitFunc)(void (*)(void)) ev_lector_application_proxy_class_intern_init, sizeof (EvLectorApplicationProxy), (GInstanceInitFunc)(void (*)(void )) ev_lector_application_proxy_init, (GTypeFlags) 0); { {{ EvLectorApplicationProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorApplicationProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) ev_lector_application_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
881 | G_ADD_PRIVATE (EvLectorApplicationProxy)static void ev_lector_application_proxy_init (EvLectorApplicationProxy *self); static void ev_lector_application_proxy_class_init ( EvLectorApplicationProxyClass *klass); static GType ev_lector_application_proxy_get_type_once (void); static gpointer ev_lector_application_proxy_parent_class = ((void*)0); static gint EvLectorApplicationProxy_private_offset ; static void ev_lector_application_proxy_class_intern_init ( gpointer klass) { ev_lector_application_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationProxy_private_offset); ev_lector_application_proxy_class_init ((EvLectorApplicationProxyClass*) klass); } __attribute__ (( __unused__)) static inline gpointer ev_lector_application_proxy_get_instance_private (EvLectorApplicationProxy *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorApplicationProxy_private_offset) ))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorApplicationProxy" ), sizeof (EvLectorApplicationProxyClass), (GClassInitFunc)(void (*)(void)) ev_lector_application_proxy_class_intern_init, sizeof (EvLectorApplicationProxy), (GInstanceInitFunc)(void (*)(void )) ev_lector_application_proxy_init, (GTypeFlags) 0); { {{ EvLectorApplicationProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorApplicationProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) ev_lector_application_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
882 | G_IMPLEMENT_INTERFACE (EV_TYPE_LECTOR_APPLICATION, ev_lector_application_proxy_iface_init))static void ev_lector_application_proxy_init (EvLectorApplicationProxy *self); static void ev_lector_application_proxy_class_init ( EvLectorApplicationProxyClass *klass); static GType ev_lector_application_proxy_get_type_once (void); static gpointer ev_lector_application_proxy_parent_class = ((void*)0); static gint EvLectorApplicationProxy_private_offset ; static void ev_lector_application_proxy_class_intern_init ( gpointer klass) { ev_lector_application_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationProxy_private_offset); ev_lector_application_proxy_class_init ((EvLectorApplicationProxyClass*) klass); } __attribute__ (( __unused__)) static inline gpointer ev_lector_application_proxy_get_instance_private (EvLectorApplicationProxy *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorApplicationProxy_private_offset) ))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorApplicationProxy" ), sizeof (EvLectorApplicationProxyClass), (GClassInitFunc)(void (*)(void)) ev_lector_application_proxy_class_intern_init, sizeof (EvLectorApplicationProxy), (GInstanceInitFunc)(void (*)(void )) ev_lector_application_proxy_init, (GTypeFlags) 0); { {{ EvLectorApplicationProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorApplicationProxyPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) ev_lector_application_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
883 | |
884 | #else |
885 | G_DEFINE_TYPE_WITH_CODE (EvLectorApplicationProxy, ev_lector_application_proxy, G_TYPE_DBUS_PROXY,static void ev_lector_application_proxy_init (EvLectorApplicationProxy *self); static void ev_lector_application_proxy_class_init ( EvLectorApplicationProxyClass *klass); static GType ev_lector_application_proxy_get_type_once (void); static gpointer ev_lector_application_proxy_parent_class = ((void*)0); static gint EvLectorApplicationProxy_private_offset ; static void ev_lector_application_proxy_class_intern_init ( gpointer klass) { ev_lector_application_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationProxy_private_offset); ev_lector_application_proxy_class_init ((EvLectorApplicationProxyClass*) klass); } __attribute__ (( __unused__)) static inline gpointer ev_lector_application_proxy_get_instance_private (EvLectorApplicationProxy *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorApplicationProxy_private_offset) ))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorApplicationProxy" ), sizeof (EvLectorApplicationProxyClass), (GClassInitFunc)(void (*)(void)) ev_lector_application_proxy_class_intern_init, sizeof (EvLectorApplicationProxy), (GInstanceInitFunc)(void (*)(void )) ev_lector_application_proxy_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_application_proxy_iface_init, ((void *)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
886 | G_IMPLEMENT_INTERFACE (EV_TYPE_LECTOR_APPLICATION, ev_lector_application_proxy_iface_init))static void ev_lector_application_proxy_init (EvLectorApplicationProxy *self); static void ev_lector_application_proxy_class_init ( EvLectorApplicationProxyClass *klass); static GType ev_lector_application_proxy_get_type_once (void); static gpointer ev_lector_application_proxy_parent_class = ((void*)0); static gint EvLectorApplicationProxy_private_offset ; static void ev_lector_application_proxy_class_intern_init ( gpointer klass) { ev_lector_application_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationProxy_private_offset); ev_lector_application_proxy_class_init ((EvLectorApplicationProxyClass*) klass); } __attribute__ (( __unused__)) static inline gpointer ev_lector_application_proxy_get_instance_private (EvLectorApplicationProxy *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorApplicationProxy_private_offset) ))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorApplicationProxy" ), sizeof (EvLectorApplicationProxyClass), (GClassInitFunc)(void (*)(void)) ev_lector_application_proxy_class_intern_init, sizeof (EvLectorApplicationProxy), (GInstanceInitFunc)(void (*)(void )) ev_lector_application_proxy_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_application_proxy_iface_init, ((void *)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
887 | |
888 | #endif |
889 | static void |
890 | ev_lector_application_proxy_finalize (GObject *object) |
891 | { |
892 | EvLectorApplicationProxy *proxy = EV_LECTOR_APPLICATION_PROXY (object)((((EvLectorApplicationProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_application_proxy_get_type ())))))); |
893 | g_datalist_clear (&proxy->priv->qdata); |
894 | G_OBJECT_CLASS (ev_lector_application_proxy_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((ev_lector_application_proxy_parent_class)), (((GType) (( 20) << (2))))))))->finalize (object); |
895 | } |
896 | |
897 | static void |
898 | ev_lector_application_proxy_get_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
899 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
900 | GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
901 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
902 | { |
903 | } |
904 | |
905 | static void |
906 | ev_lector_application_proxy_set_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
907 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
908 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
909 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
910 | { |
911 | } |
912 | |
913 | static void |
914 | ev_lector_application_proxy_g_signal (GDBusProxy *proxy, |
915 | const gchar *sender_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
916 | const gchar *signal_name, |
917 | GVariant *parameters) |
918 | { |
919 | _ExtendedGDBusSignalInfo *info; |
920 | GVariantIter iter; |
921 | GVariant *child; |
922 | GValue *paramv; |
923 | gsize num_params; |
924 | gsize n; |
925 | guint signal_id; |
926 | info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_ev_lector_application_interface_info.parent_struct, signal_name); |
927 | if (info == NULL((void*)0)) |
928 | return; |
929 | num_params = g_variant_n_children (parameters); |
930 | paramv = g_new0 (GValue, num_params + 1)((GValue *) g_malloc0_n ((num_params + 1), sizeof (GValue))); |
931 | g_value_init (¶mv[0], EV_TYPE_LECTOR_APPLICATION(ev_lector_application_get_type ())); |
932 | g_value_set_object (¶mv[0], proxy); |
933 | g_variant_iter_init (&iter, parameters); |
934 | n = 1; |
935 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
936 | { |
937 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; |
938 | if (arg_info->use_gvariant) |
939 | { |
940 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
941 | g_value_set_variant (¶mv[n], child); |
942 | n++; |
943 | } |
944 | else |
945 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
946 | g_variant_unref (child); |
947 | } |
948 | signal_id = g_signal_lookup (info->signal_name, EV_TYPE_LECTOR_APPLICATION(ev_lector_application_get_type ())); |
949 | g_signal_emitv (paramv, signal_id, 0, NULL((void*)0)); |
950 | for (n = 0; n < num_params + 1; n++) |
951 | g_value_unset (¶mv[n]); |
952 | g_free (paramv); |
953 | } |
954 | |
955 | static void |
956 | ev_lector_application_proxy_g_properties_changed (GDBusProxy *_proxy, |
957 | GVariant *changed_properties, |
958 | const gchar *const *invalidated_properties) |
959 | { |
960 | EvLectorApplicationProxy *proxy = EV_LECTOR_APPLICATION_PROXY (_proxy)((((EvLectorApplicationProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_proxy)), ((ev_lector_application_proxy_get_type ())))))); |
961 | guint n; |
962 | const gchar *key; |
963 | GVariantIter *iter; |
964 | _ExtendedGDBusPropertyInfo *info; |
965 | g_variant_get (changed_properties, "a{sv}", &iter); |
966 | while (g_variant_iter_next (iter, "{&sv}", &key, NULL((void*)0))) |
967 | { |
968 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_application_interface_info.parent_struct, key); |
969 | 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)); |
970 | if (info != NULL((void*)0)) |
971 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
972 | } |
973 | g_variant_iter_free (iter); |
974 | for (n = 0; invalidated_properties[n] != NULL((void*)0); n++) |
975 | { |
976 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_application_interface_info.parent_struct, invalidated_properties[n]); |
977 | 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)); |
978 | if (info != NULL((void*)0)) |
979 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
980 | } |
981 | } |
982 | |
983 | static void |
984 | ev_lector_application_proxy_init (EvLectorApplicationProxy *proxy) |
985 | { |
986 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
987 | proxy->priv = ev_lector_application_proxy_get_instance_private (proxy); |
988 | #else |
989 | proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, EV_TYPE_LECTOR_APPLICATION_PROXY, EvLectorApplicationProxyPrivate)((EvLectorApplicationProxyPrivate*) g_type_instance_get_private ((GTypeInstance*) (proxy), ((ev_lector_application_proxy_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
990 | #endif |
991 | |
992 | g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), ev_lector_application_interface_info ()); |
993 | } |
994 | |
995 | static void |
996 | ev_lector_application_proxy_class_init (EvLectorApplicationProxyClass *klass) |
997 | { |
998 | GObjectClass *gobject_class; |
999 | GDBusProxyClass *proxy_class; |
1000 | |
1001 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
1002 | gobject_class->finalize = ev_lector_application_proxy_finalize; |
1003 | gobject_class->get_property = ev_lector_application_proxy_get_property; |
1004 | gobject_class->set_property = ev_lector_application_proxy_set_property; |
1005 | |
1006 | proxy_class = G_DBUS_PROXY_CLASS (klass)((((GDBusProxyClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), ((g_dbus_proxy_get_type ())))))); |
1007 | proxy_class->g_signal = ev_lector_application_proxy_g_signal; |
1008 | proxy_class->g_properties_changed = ev_lector_application_proxy_g_properties_changed; |
1009 | |
1010 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1011 | g_type_class_add_private (klass, sizeof (EvLectorApplicationProxyPrivate)); |
1012 | #endif |
1013 | } |
1014 | |
1015 | static void |
1016 | ev_lector_application_proxy_iface_init (EvLectorApplicationIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
1017 | { |
1018 | } |
1019 | |
1020 | /** |
1021 | * ev_lector_application_proxy_new: |
1022 | * @connection: A #GDBusConnection. |
1023 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1024 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
1025 | * @object_path: An object path. |
1026 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1027 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
1028 | * @user_data: User data to pass to @callback. |
1029 | * |
1030 | * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link>. See g_dbus_proxy_new() for more details. |
1031 | * |
1032 | * 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()). |
1033 | * You can then call ev_lector_application_proxy_new_finish() to get the result of the operation. |
1034 | * |
1035 | * See ev_lector_application_proxy_new_sync() for the synchronous, blocking version of this constructor. |
1036 | */ |
1037 | void |
1038 | ev_lector_application_proxy_new ( |
1039 | GDBusConnection *connection, |
1040 | GDBusProxyFlags flags, |
1041 | const gchar *name, |
1042 | const gchar *object_path, |
1043 | GCancellable *cancellable, |
1044 | GAsyncReadyCallback callback, |
1045 | gpointer user_data) |
1046 | { |
1047 | g_async_initable_new_async (EV_TYPE_LECTOR_APPLICATION_PROXY(ev_lector_application_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.cafe.lector.Application", NULL((void*)0)); |
1048 | } |
1049 | |
1050 | /** |
1051 | * ev_lector_application_proxy_new_finish: |
1052 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_application_proxy_new(). |
1053 | * @error: Return location for error or %NULL |
1054 | * |
1055 | * Finishes an operation started with ev_lector_application_proxy_new(). |
1056 | * |
1057 | * Returns: (transfer full) (type EvLectorApplicationProxy): The constructed proxy object or %NULL if @error is set. |
1058 | */ |
1059 | EvLectorApplication * |
1060 | ev_lector_application_proxy_new_finish ( |
1061 | GAsyncResult *res, |
1062 | GError **error) |
1063 | { |
1064 | GObject *ret; |
1065 | GObject *source_object; |
1066 | source_object = g_async_result_get_source_object (res); |
1067 | 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); |
1068 | g_object_unref (source_object); |
1069 | if (ret != NULL((void*)0)) |
1070 | return EV_LECTOR_APPLICATION (ret)((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((ev_lector_application_get_type ( ))))))); |
1071 | else |
1072 | return NULL((void*)0); |
1073 | } |
1074 | |
1075 | /** |
1076 | * ev_lector_application_proxy_new_sync: |
1077 | * @connection: A #GDBusConnection. |
1078 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1079 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
1080 | * @object_path: An object path. |
1081 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1082 | * @error: Return location for error or %NULL |
1083 | * |
1084 | * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link>. See g_dbus_proxy_new_sync() for more details. |
1085 | * |
1086 | * The calling thread is blocked until a reply is received. |
1087 | * |
1088 | * See ev_lector_application_proxy_new() for the asynchronous version of this constructor. |
1089 | * |
1090 | * Returns: (transfer full) (type EvLectorApplicationProxy): The constructed proxy object or %NULL if @error is set. |
1091 | */ |
1092 | EvLectorApplication * |
1093 | ev_lector_application_proxy_new_sync ( |
1094 | GDBusConnection *connection, |
1095 | GDBusProxyFlags flags, |
1096 | const gchar *name, |
1097 | const gchar *object_path, |
1098 | GCancellable *cancellable, |
1099 | GError **error) |
1100 | { |
1101 | GInitable *ret; |
1102 | ret = g_initable_new (EV_TYPE_LECTOR_APPLICATION_PROXY(ev_lector_application_proxy_get_type ()), cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.cafe.lector.Application", NULL((void*)0)); |
1103 | if (ret != NULL((void*)0)) |
1104 | return EV_LECTOR_APPLICATION (ret)((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((ev_lector_application_get_type ( ))))))); |
1105 | else |
1106 | return NULL((void*)0); |
1107 | } |
1108 | |
1109 | |
1110 | /** |
1111 | * ev_lector_application_proxy_new_for_bus: |
1112 | * @bus_type: A #GBusType. |
1113 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1114 | * @name: A bus name (well-known or unique). |
1115 | * @object_path: An object path. |
1116 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1117 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
1118 | * @user_data: User data to pass to @callback. |
1119 | * |
1120 | * Like ev_lector_application_proxy_new() but takes a #GBusType instead of a #GDBusConnection. |
1121 | * |
1122 | * 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()). |
1123 | * You can then call ev_lector_application_proxy_new_for_bus_finish() to get the result of the operation. |
1124 | * |
1125 | * See ev_lector_application_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
1126 | */ |
1127 | void |
1128 | ev_lector_application_proxy_new_for_bus ( |
1129 | GBusType bus_type, |
1130 | GDBusProxyFlags flags, |
1131 | const gchar *name, |
1132 | const gchar *object_path, |
1133 | GCancellable *cancellable, |
1134 | GAsyncReadyCallback callback, |
1135 | gpointer user_data) |
1136 | { |
1137 | g_async_initable_new_async (EV_TYPE_LECTOR_APPLICATION_PROXY(ev_lector_application_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.cafe.lector.Application", NULL((void*)0)); |
1138 | } |
1139 | |
1140 | /** |
1141 | * ev_lector_application_proxy_new_for_bus_finish: |
1142 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_application_proxy_new_for_bus(). |
1143 | * @error: Return location for error or %NULL |
1144 | * |
1145 | * Finishes an operation started with ev_lector_application_proxy_new_for_bus(). |
1146 | * |
1147 | * Returns: (transfer full) (type EvLectorApplicationProxy): The constructed proxy object or %NULL if @error is set. |
1148 | */ |
1149 | EvLectorApplication * |
1150 | ev_lector_application_proxy_new_for_bus_finish ( |
1151 | GAsyncResult *res, |
1152 | GError **error) |
1153 | { |
1154 | GObject *ret; |
1155 | GObject *source_object; |
1156 | source_object = g_async_result_get_source_object (res); |
1157 | 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); |
1158 | g_object_unref (source_object); |
1159 | if (ret != NULL((void*)0)) |
1160 | return EV_LECTOR_APPLICATION (ret)((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((ev_lector_application_get_type ( ))))))); |
1161 | else |
1162 | return NULL((void*)0); |
1163 | } |
1164 | |
1165 | /** |
1166 | * ev_lector_application_proxy_new_for_bus_sync: |
1167 | * @bus_type: A #GBusType. |
1168 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
1169 | * @name: A bus name (well-known or unique). |
1170 | * @object_path: An object path. |
1171 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1172 | * @error: Return location for error or %NULL |
1173 | * |
1174 | * Like ev_lector_application_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
1175 | * |
1176 | * The calling thread is blocked until a reply is received. |
1177 | * |
1178 | * See ev_lector_application_proxy_new_for_bus() for the asynchronous version of this constructor. |
1179 | * |
1180 | * Returns: (transfer full) (type EvLectorApplicationProxy): The constructed proxy object or %NULL if @error is set. |
1181 | */ |
1182 | EvLectorApplication * |
1183 | ev_lector_application_proxy_new_for_bus_sync ( |
1184 | GBusType bus_type, |
1185 | GDBusProxyFlags flags, |
1186 | const gchar *name, |
1187 | const gchar *object_path, |
1188 | GCancellable *cancellable, |
1189 | GError **error) |
1190 | { |
1191 | GInitable *ret; |
1192 | ret = g_initable_new (EV_TYPE_LECTOR_APPLICATION_PROXY(ev_lector_application_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.cafe.lector.Application", NULL((void*)0)); |
1193 | if (ret != NULL((void*)0)) |
1194 | return EV_LECTOR_APPLICATION (ret)((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((ev_lector_application_get_type ( ))))))); |
1195 | else |
1196 | return NULL((void*)0); |
1197 | } |
1198 | |
1199 | |
1200 | /* ------------------------------------------------------------------------ */ |
1201 | |
1202 | /** |
1203 | * EvLectorApplicationSkeleton: |
1204 | * |
1205 | * The #EvLectorApplicationSkeleton structure contains only private data and should only be accessed using the provided API. |
1206 | */ |
1207 | |
1208 | /** |
1209 | * EvLectorApplicationSkeletonClass: |
1210 | * @parent_class: The parent class. |
1211 | * |
1212 | * Class structure for #EvLectorApplicationSkeleton. |
1213 | */ |
1214 | |
1215 | struct _EvLectorApplicationSkeletonPrivate |
1216 | { |
1217 | GValue *properties; |
1218 | GList *changed_properties; |
1219 | GSource *changed_properties_idle_source; |
1220 | GMainContext *context; |
1221 | GMutex lock; |
1222 | }; |
1223 | |
1224 | static void |
1225 | _ev_lector_application_skeleton_handle_method_call ( |
1226 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
1227 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
1228 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
1229 | const gchar *interface_name, |
1230 | const gchar *method_name, |
1231 | GVariant *parameters, |
1232 | GDBusMethodInvocation *invocation, |
1233 | gpointer user_data) |
1234 | { |
1235 | EvLectorApplicationSkeleton *skeleton = EV_LECTOR_APPLICATION_SKELETON (user_data)((((EvLectorApplicationSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_application_skeleton_get_type ())))))); |
1236 | _ExtendedGDBusMethodInfo *info; |
1237 | GVariantIter iter; |
1238 | GVariant *child; |
1239 | GValue *paramv; |
1240 | gsize num_params; |
1241 | guint num_extra; |
1242 | gsize n; |
1243 | guint signal_id; |
1244 | GValue return_value = G_VALUE_INIT{ 0, { { 0 } } }; |
1245 | info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); |
1246 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 1246, ((const char*) (__func__ )), "info != NULL"); } while (0); |
1247 | num_params = g_variant_n_children (parameters); |
1248 | 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 ))); |
1249 | n = 0; |
1250 | g_value_init (¶mv[n], EV_TYPE_LECTOR_APPLICATION(ev_lector_application_get_type ())); |
1251 | g_value_set_object (¶mv[n++], skeleton); |
1252 | g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ())); |
1253 | g_value_set_object (¶mv[n++], invocation); |
1254 | if (info->pass_fdlist) |
1255 | { |
1256 | #ifdef G_OS_UNIX |
1257 | g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST(g_unix_fd_list_get_type ())); |
1258 | g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); |
1259 | #else |
1260 | g_assert_not_reached ()do { g_assertion_message_expr (((gchar*) 0), "ev-gdbus-generated.c" , 1260, ((const char*) (__func__)), ((void*)0)); } while (0); |
1261 | #endif |
1262 | } |
1263 | g_variant_iter_init (&iter, parameters); |
1264 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
1265 | { |
1266 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; |
1267 | if (arg_info->use_gvariant) |
1268 | { |
1269 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
1270 | g_value_set_variant (¶mv[n], child); |
1271 | n++; |
1272 | } |
1273 | else |
1274 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
1275 | g_variant_unref (child); |
1276 | } |
1277 | signal_id = g_signal_lookup (info->signal_name, EV_TYPE_LECTOR_APPLICATION(ev_lector_application_get_type ())); |
1278 | g_value_init (&return_value, G_TYPE_BOOLEAN((GType) ((5) << (2)))); |
1279 | g_signal_emitv (paramv, signal_id, 0, &return_value); |
1280 | if (!g_value_get_boolean (&return_value)) |
1281 | 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); |
1282 | g_value_unset (&return_value); |
1283 | for (n = 0; n < num_params + num_extra; n++) |
1284 | g_value_unset (¶mv[n]); |
1285 | g_free (paramv); |
1286 | } |
1287 | |
1288 | static GVariant * |
1289 | _ev_lector_application_skeleton_handle_get_property ( |
1290 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
1291 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
1292 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
1293 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
1294 | const gchar *property_name, |
1295 | GError **error, |
1296 | gpointer user_data) |
1297 | { |
1298 | EvLectorApplicationSkeleton *skeleton = EV_LECTOR_APPLICATION_SKELETON (user_data)((((EvLectorApplicationSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_application_skeleton_get_type ())))))); |
1299 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
1300 | GParamSpec *pspec; |
1301 | _ExtendedGDBusPropertyInfo *info; |
1302 | GVariant *ret; |
1303 | ret = NULL((void*)0); |
1304 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_application_interface_info.parent_struct, property_name); |
1305 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 1305, ((const char*) (__func__ )), "info != NULL"); } while (0); |
1306 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
1307 | if (pspec == NULL((void*)0)) |
1308 | { |
1309 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
1310 | } |
1311 | else |
1312 | { |
1313 | g_value_init (&value, pspec->value_type); |
1314 | g_object_get_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
1315 | ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)(g_variant_type_checked_ ((info->parent_struct.signature)) )); |
1316 | g_value_unset (&value); |
1317 | } |
1318 | return ret; |
1319 | } |
1320 | |
1321 | static gboolean |
1322 | _ev_lector_application_skeleton_handle_set_property ( |
1323 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
1324 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
1325 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
1326 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
1327 | const gchar *property_name, |
1328 | GVariant *variant, |
1329 | GError **error, |
1330 | gpointer user_data) |
1331 | { |
1332 | EvLectorApplicationSkeleton *skeleton = EV_LECTOR_APPLICATION_SKELETON (user_data)((((EvLectorApplicationSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_application_skeleton_get_type ())))))); |
1333 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
1334 | GParamSpec *pspec; |
1335 | _ExtendedGDBusPropertyInfo *info; |
1336 | gboolean ret; |
1337 | ret = FALSE(0); |
1338 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_application_interface_info.parent_struct, property_name); |
1339 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 1339, ((const char*) (__func__ )), "info != NULL"); } while (0); |
1340 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
1341 | if (pspec == NULL((void*)0)) |
1342 | { |
1343 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
1344 | } |
1345 | else |
1346 | { |
1347 | if (info->use_gvariant) |
1348 | g_value_set_variant (&value, variant); |
1349 | else |
1350 | g_dbus_gvariant_to_gvalue (variant, &value); |
1351 | g_object_set_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
1352 | g_value_unset (&value); |
1353 | ret = TRUE(!(0)); |
1354 | } |
1355 | return ret; |
1356 | } |
1357 | |
1358 | static const GDBusInterfaceVTable _ev_lector_application_skeleton_vtable = |
1359 | { |
1360 | _ev_lector_application_skeleton_handle_method_call, |
1361 | _ev_lector_application_skeleton_handle_get_property, |
1362 | _ev_lector_application_skeleton_handle_set_property, |
1363 | {NULL((void*)0)} |
1364 | }; |
1365 | |
1366 | static GDBusInterfaceInfo * |
1367 | ev_lector_application_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
1368 | { |
1369 | return ev_lector_application_interface_info (); |
1370 | } |
1371 | |
1372 | static GDBusInterfaceVTable * |
1373 | ev_lector_application_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
1374 | { |
1375 | return (GDBusInterfaceVTable *) &_ev_lector_application_skeleton_vtable; |
1376 | } |
1377 | |
1378 | static GVariant * |
1379 | ev_lector_application_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) |
1380 | { |
1381 | EvLectorApplicationSkeleton *skeleton = EV_LECTOR_APPLICATION_SKELETON (_skeleton)((((EvLectorApplicationSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_skeleton)), ((ev_lector_application_skeleton_get_type ())))))); |
Value stored to 'skeleton' during its initialization is never read | |
1382 | |
1383 | GVariantBuilder builder; |
1384 | guint n; |
1385 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_84(((2) << 16 | (84) << 8)) |
1386 | g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
1387 | #else |
1388 | g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
1389 | #endif |
1390 | if (_ev_lector_application_interface_info.parent_struct.properties == NULL((void*)0)) |
1391 | goto out; |
1392 | for (n = 0; _ev_lector_application_interface_info.parent_struct.properties[n] != NULL((void*)0); n++) |
1393 | { |
1394 | GDBusPropertyInfo *info = _ev_lector_application_interface_info.parent_struct.properties[n]; |
1395 | if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) |
1396 | { |
1397 | GVariant *value; |
1398 | value = _ev_lector_application_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.cafe.lector.Application", info->name, NULL((void*)0), skeleton); |
1399 | if (value != NULL((void*)0)) |
1400 | { |
1401 | g_variant_take_ref (value); |
1402 | g_variant_builder_add (&builder, "{sv}", info->name, value); |
1403 | g_variant_unref (value); |
1404 | } |
1405 | } |
1406 | } |
1407 | out: |
1408 | return g_variant_builder_end (&builder); |
1409 | } |
1410 | |
1411 | static void |
1412 | ev_lector_application_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
1413 | { |
1414 | } |
1415 | |
1416 | static void ev_lector_application_skeleton_iface_init (EvLectorApplicationIface *iface); |
1417 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1418 | G_DEFINE_TYPE_WITH_CODE (EvLectorApplicationSkeleton, ev_lector_application_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void ev_lector_application_skeleton_init (EvLectorApplicationSkeleton *self); static void ev_lector_application_skeleton_class_init (EvLectorApplicationSkeletonClass *klass); static GType ev_lector_application_skeleton_get_type_once (void); static gpointer ev_lector_application_skeleton_parent_class = ((void*)0); static gint EvLectorApplicationSkeleton_private_offset ; static void ev_lector_application_skeleton_class_intern_init (gpointer klass) { ev_lector_application_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationSkeleton_private_offset ); ev_lector_application_skeleton_class_init ((EvLectorApplicationSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer ev_lector_application_skeleton_get_instance_private (EvLectorApplicationSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorApplicationSkeleton_private_offset )))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_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 ("EvLectorApplicationSkeleton"), sizeof (EvLectorApplicationSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_application_skeleton_class_intern_init , sizeof (EvLectorApplicationSkeleton), (GInstanceInitFunc)(void (*)(void)) ev_lector_application_skeleton_init, (GTypeFlags) 0); { {{ EvLectorApplicationSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorApplicationSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) ev_lector_application_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1419 | G_ADD_PRIVATE (EvLectorApplicationSkeleton)static void ev_lector_application_skeleton_init (EvLectorApplicationSkeleton *self); static void ev_lector_application_skeleton_class_init (EvLectorApplicationSkeletonClass *klass); static GType ev_lector_application_skeleton_get_type_once (void); static gpointer ev_lector_application_skeleton_parent_class = ((void*)0); static gint EvLectorApplicationSkeleton_private_offset ; static void ev_lector_application_skeleton_class_intern_init (gpointer klass) { ev_lector_application_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationSkeleton_private_offset ); ev_lector_application_skeleton_class_init ((EvLectorApplicationSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer ev_lector_application_skeleton_get_instance_private (EvLectorApplicationSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorApplicationSkeleton_private_offset )))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_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 ("EvLectorApplicationSkeleton"), sizeof (EvLectorApplicationSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_application_skeleton_class_intern_init , sizeof (EvLectorApplicationSkeleton), (GInstanceInitFunc)(void (*)(void)) ev_lector_application_skeleton_init, (GTypeFlags) 0); { {{ EvLectorApplicationSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorApplicationSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) ev_lector_application_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1420 | G_IMPLEMENT_INTERFACE (EV_TYPE_LECTOR_APPLICATION, ev_lector_application_skeleton_iface_init))static void ev_lector_application_skeleton_init (EvLectorApplicationSkeleton *self); static void ev_lector_application_skeleton_class_init (EvLectorApplicationSkeletonClass *klass); static GType ev_lector_application_skeleton_get_type_once (void); static gpointer ev_lector_application_skeleton_parent_class = ((void*)0); static gint EvLectorApplicationSkeleton_private_offset ; static void ev_lector_application_skeleton_class_intern_init (gpointer klass) { ev_lector_application_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationSkeleton_private_offset ); ev_lector_application_skeleton_class_init ((EvLectorApplicationSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer ev_lector_application_skeleton_get_instance_private (EvLectorApplicationSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorApplicationSkeleton_private_offset )))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_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 ("EvLectorApplicationSkeleton"), sizeof (EvLectorApplicationSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_application_skeleton_class_intern_init , sizeof (EvLectorApplicationSkeleton), (GInstanceInitFunc)(void (*)(void)) ev_lector_application_skeleton_init, (GTypeFlags) 0); { {{ EvLectorApplicationSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorApplicationSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) ev_lector_application_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1421 | |
1422 | #else |
1423 | G_DEFINE_TYPE_WITH_CODE (EvLectorApplicationSkeleton, ev_lector_application_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void ev_lector_application_skeleton_init (EvLectorApplicationSkeleton *self); static void ev_lector_application_skeleton_class_init (EvLectorApplicationSkeletonClass *klass); static GType ev_lector_application_skeleton_get_type_once (void); static gpointer ev_lector_application_skeleton_parent_class = ((void*)0); static gint EvLectorApplicationSkeleton_private_offset ; static void ev_lector_application_skeleton_class_intern_init (gpointer klass) { ev_lector_application_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationSkeleton_private_offset ); ev_lector_application_skeleton_class_init ((EvLectorApplicationSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer ev_lector_application_skeleton_get_instance_private (EvLectorApplicationSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorApplicationSkeleton_private_offset )))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_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 ("EvLectorApplicationSkeleton"), sizeof (EvLectorApplicationSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_application_skeleton_class_intern_init , sizeof (EvLectorApplicationSkeleton), (GInstanceInitFunc)(void (*)(void)) ev_lector_application_skeleton_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_lector_application_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1424 | G_IMPLEMENT_INTERFACE (EV_TYPE_LECTOR_APPLICATION, ev_lector_application_skeleton_iface_init))static void ev_lector_application_skeleton_init (EvLectorApplicationSkeleton *self); static void ev_lector_application_skeleton_class_init (EvLectorApplicationSkeletonClass *klass); static GType ev_lector_application_skeleton_get_type_once (void); static gpointer ev_lector_application_skeleton_parent_class = ((void*)0); static gint EvLectorApplicationSkeleton_private_offset ; static void ev_lector_application_skeleton_class_intern_init (gpointer klass) { ev_lector_application_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorApplicationSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorApplicationSkeleton_private_offset ); ev_lector_application_skeleton_class_init ((EvLectorApplicationSkeletonClass *) klass); } __attribute__ ((__unused__)) static inline gpointer ev_lector_application_skeleton_get_instance_private (EvLectorApplicationSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorApplicationSkeleton_private_offset )))); } GType ev_lector_application_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 = ev_lector_application_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 ev_lector_application_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 ("EvLectorApplicationSkeleton"), sizeof (EvLectorApplicationSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_application_skeleton_class_intern_init , sizeof (EvLectorApplicationSkeleton), (GInstanceInitFunc)(void (*)(void)) ev_lector_application_skeleton_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_lector_application_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_application_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
1425 | |
1426 | #endif |
1427 | static void |
1428 | ev_lector_application_skeleton_finalize (GObject *object) |
1429 | { |
1430 | EvLectorApplicationSkeleton *skeleton = EV_LECTOR_APPLICATION_SKELETON (object)((((EvLectorApplicationSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_application_skeleton_get_type ())))))); |
1431 | g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); |
1432 | if (skeleton->priv->changed_properties_idle_source != NULL((void*)0)) |
1433 | g_source_destroy (skeleton->priv->changed_properties_idle_source); |
1434 | g_main_context_unref (skeleton->priv->context); |
1435 | g_mutex_clear (&skeleton->priv->lock); |
1436 | G_OBJECT_CLASS (ev_lector_application_skeleton_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((ev_lector_application_skeleton_parent_class)), (((GType) ((20) << (2))))))))->finalize (object); |
1437 | } |
1438 | |
1439 | static void |
1440 | ev_lector_application_skeleton_init (EvLectorApplicationSkeleton *skeleton) |
1441 | { |
1442 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1443 | skeleton->priv = ev_lector_application_skeleton_get_instance_private (skeleton); |
1444 | #else |
1445 | skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, EV_TYPE_LECTOR_APPLICATION_SKELETON, EvLectorApplicationSkeletonPrivate)((EvLectorApplicationSkeletonPrivate*) g_type_instance_get_private ((GTypeInstance*) (skeleton), ((ev_lector_application_skeleton_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
1446 | #endif |
1447 | |
1448 | g_mutex_init (&skeleton->priv->lock); |
1449 | skeleton->priv->context = g_main_context_ref_thread_default (); |
1450 | } |
1451 | |
1452 | static void |
1453 | ev_lector_application_skeleton_class_init (EvLectorApplicationSkeletonClass *klass) |
1454 | { |
1455 | GObjectClass *gobject_class; |
1456 | GDBusInterfaceSkeletonClass *skeleton_class; |
1457 | |
1458 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
1459 | gobject_class->finalize = ev_lector_application_skeleton_finalize; |
1460 | |
1461 | skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass)((((GDBusInterfaceSkeletonClass*) (void *) g_type_check_class_cast ((GTypeClass*) ((klass)), ((g_dbus_interface_skeleton_get_type ())))))); |
1462 | skeleton_class->get_info = ev_lector_application_skeleton_dbus_interface_get_info; |
1463 | skeleton_class->get_properties = ev_lector_application_skeleton_dbus_interface_get_properties; |
1464 | skeleton_class->flush = ev_lector_application_skeleton_dbus_interface_flush; |
1465 | skeleton_class->get_vtable = ev_lector_application_skeleton_dbus_interface_get_vtable; |
1466 | |
1467 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
1468 | g_type_class_add_private (klass, sizeof (EvLectorApplicationSkeletonPrivate)); |
1469 | #endif |
1470 | } |
1471 | |
1472 | static void |
1473 | ev_lector_application_skeleton_iface_init (EvLectorApplicationIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
1474 | { |
1475 | } |
1476 | |
1477 | /** |
1478 | * ev_lector_application_skeleton_new: |
1479 | * |
1480 | * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link>. |
1481 | * |
1482 | * Returns: (transfer full) (type EvLectorApplicationSkeleton): The skeleton object. |
1483 | */ |
1484 | EvLectorApplication * |
1485 | ev_lector_application_skeleton_new (void) |
1486 | { |
1487 | return EV_LECTOR_APPLICATION (g_object_new (EV_TYPE_LECTOR_APPLICATION_SKELETON, NULL))((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((g_object_new ((ev_lector_application_skeleton_get_type ()), ((void*)0)))), ((ev_lector_application_get_type ()))))) ); |
1488 | } |
1489 | |
1490 | /* ------------------------------------------------------------------------ |
1491 | * Code for interface org.cafe.lector.Window |
1492 | * ------------------------------------------------------------------------ |
1493 | */ |
1494 | |
1495 | /** |
1496 | * SECTION:EvLectorWindow |
1497 | * @title: EvLectorWindow |
1498 | * @short_description: Generated C code for the org.cafe.lector.Window D-Bus interface |
1499 | * |
1500 | * This section contains code for working with the <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link> D-Bus interface in C. |
1501 | */ |
1502 | |
1503 | enum |
1504 | { |
1505 | EV__LECTOR_WINDOW_SYNC_SOURCE, |
1506 | EV__LECTOR_WINDOW_CLOSED, |
1507 | EV__LECTOR_WINDOW_DOCUMENT_LOADED, |
1508 | }; |
1509 | |
1510 | static unsigned EV__LECTOR_WINDOW_SIGNALS[3] = { 0 }; |
1511 | |
1512 | /* ---- Introspection data for org.cafe.lector.Window ---- */ |
1513 | |
1514 | static const _ExtendedGDBusArgInfo _ev_lector_window_method_info_sync_view_IN_ARG_source_file = |
1515 | { |
1516 | { |
1517 | -1, |
1518 | (gchar *) "source_file", |
1519 | (gchar *) "s", |
1520 | NULL((void*)0) |
1521 | }, |
1522 | FALSE(0) |
1523 | }; |
1524 | |
1525 | static const _ExtendedGDBusArgInfo _ev_lector_window_method_info_sync_view_IN_ARG_source_point = |
1526 | { |
1527 | { |
1528 | -1, |
1529 | (gchar *) "source_point", |
1530 | (gchar *) "(ii)", |
1531 | NULL((void*)0) |
1532 | }, |
1533 | FALSE(0) |
1534 | }; |
1535 | |
1536 | static const _ExtendedGDBusArgInfo _ev_lector_window_method_info_sync_view_IN_ARG_timestamp = |
1537 | { |
1538 | { |
1539 | -1, |
1540 | (gchar *) "timestamp", |
1541 | (gchar *) "u", |
1542 | NULL((void*)0) |
1543 | }, |
1544 | FALSE(0) |
1545 | }; |
1546 | |
1547 | static const GDBusArgInfo * const _ev_lector_window_method_info_sync_view_IN_ARG_pointers[] = |
1548 | { |
1549 | &_ev_lector_window_method_info_sync_view_IN_ARG_source_file.parent_struct, |
1550 | &_ev_lector_window_method_info_sync_view_IN_ARG_source_point.parent_struct, |
1551 | &_ev_lector_window_method_info_sync_view_IN_ARG_timestamp.parent_struct, |
1552 | NULL((void*)0) |
1553 | }; |
1554 | |
1555 | static const _ExtendedGDBusMethodInfo _ev_lector_window_method_info_sync_view = |
1556 | { |
1557 | { |
1558 | -1, |
1559 | (gchar *) "SyncView", |
1560 | (GDBusArgInfo **) &_ev_lector_window_method_info_sync_view_IN_ARG_pointers, |
1561 | NULL((void*)0), |
1562 | NULL((void*)0) |
1563 | }, |
1564 | "handle-sync-view", |
1565 | FALSE(0) |
1566 | }; |
1567 | |
1568 | static const GDBusMethodInfo * const _ev_lector_window_method_info_pointers[] = |
1569 | { |
1570 | &_ev_lector_window_method_info_sync_view.parent_struct, |
1571 | NULL((void*)0) |
1572 | }; |
1573 | |
1574 | static const _ExtendedGDBusArgInfo _ev_lector_window_signal_info_sync_source_ARG_source_file = |
1575 | { |
1576 | { |
1577 | -1, |
1578 | (gchar *) "source_file", |
1579 | (gchar *) "s", |
1580 | NULL((void*)0) |
1581 | }, |
1582 | FALSE(0) |
1583 | }; |
1584 | |
1585 | static const _ExtendedGDBusArgInfo _ev_lector_window_signal_info_sync_source_ARG_source_point = |
1586 | { |
1587 | { |
1588 | -1, |
1589 | (gchar *) "source_point", |
1590 | (gchar *) "(ii)", |
1591 | NULL((void*)0) |
1592 | }, |
1593 | FALSE(0) |
1594 | }; |
1595 | |
1596 | static const _ExtendedGDBusArgInfo _ev_lector_window_signal_info_sync_source_ARG_timestamp = |
1597 | { |
1598 | { |
1599 | -1, |
1600 | (gchar *) "timestamp", |
1601 | (gchar *) "u", |
1602 | NULL((void*)0) |
1603 | }, |
1604 | FALSE(0) |
1605 | }; |
1606 | |
1607 | static const GDBusArgInfo * const _ev_lector_window_signal_info_sync_source_ARG_pointers[] = |
1608 | { |
1609 | &_ev_lector_window_signal_info_sync_source_ARG_source_file.parent_struct, |
1610 | &_ev_lector_window_signal_info_sync_source_ARG_source_point.parent_struct, |
1611 | &_ev_lector_window_signal_info_sync_source_ARG_timestamp.parent_struct, |
1612 | NULL((void*)0) |
1613 | }; |
1614 | |
1615 | static const _ExtendedGDBusSignalInfo _ev_lector_window_signal_info_sync_source = |
1616 | { |
1617 | { |
1618 | -1, |
1619 | (gchar *) "SyncSource", |
1620 | (GDBusArgInfo **) &_ev_lector_window_signal_info_sync_source_ARG_pointers, |
1621 | NULL((void*)0) |
1622 | }, |
1623 | "sync-source" |
1624 | }; |
1625 | |
1626 | static const _ExtendedGDBusSignalInfo _ev_lector_window_signal_info_closed = |
1627 | { |
1628 | { |
1629 | -1, |
1630 | (gchar *) "Closed", |
1631 | NULL((void*)0), |
1632 | NULL((void*)0) |
1633 | }, |
1634 | "closed" |
1635 | }; |
1636 | |
1637 | static const _ExtendedGDBusArgInfo _ev_lector_window_signal_info_document_loaded_ARG_uri = |
1638 | { |
1639 | { |
1640 | -1, |
1641 | (gchar *) "uri", |
1642 | (gchar *) "s", |
1643 | NULL((void*)0) |
1644 | }, |
1645 | FALSE(0) |
1646 | }; |
1647 | |
1648 | static const GDBusArgInfo * const _ev_lector_window_signal_info_document_loaded_ARG_pointers[] = |
1649 | { |
1650 | &_ev_lector_window_signal_info_document_loaded_ARG_uri.parent_struct, |
1651 | NULL((void*)0) |
1652 | }; |
1653 | |
1654 | static const _ExtendedGDBusSignalInfo _ev_lector_window_signal_info_document_loaded = |
1655 | { |
1656 | { |
1657 | -1, |
1658 | (gchar *) "DocumentLoaded", |
1659 | (GDBusArgInfo **) &_ev_lector_window_signal_info_document_loaded_ARG_pointers, |
1660 | NULL((void*)0) |
1661 | }, |
1662 | "document-loaded" |
1663 | }; |
1664 | |
1665 | static const GDBusSignalInfo * const _ev_lector_window_signal_info_pointers[] = |
1666 | { |
1667 | &_ev_lector_window_signal_info_sync_source.parent_struct, |
1668 | &_ev_lector_window_signal_info_closed.parent_struct, |
1669 | &_ev_lector_window_signal_info_document_loaded.parent_struct, |
1670 | NULL((void*)0) |
1671 | }; |
1672 | |
1673 | static const _ExtendedGDBusInterfaceInfo _ev_lector_window_interface_info = |
1674 | { |
1675 | { |
1676 | -1, |
1677 | (gchar *) "org.cafe.lector.Window", |
1678 | (GDBusMethodInfo **) &_ev_lector_window_method_info_pointers, |
1679 | (GDBusSignalInfo **) &_ev_lector_window_signal_info_pointers, |
1680 | NULL((void*)0), |
1681 | NULL((void*)0) |
1682 | }, |
1683 | "lector-window", |
1684 | }; |
1685 | |
1686 | |
1687 | /** |
1688 | * ev_lector_window_interface_info: |
1689 | * |
1690 | * Gets a machine-readable description of the <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link> D-Bus interface. |
1691 | * |
1692 | * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. |
1693 | */ |
1694 | GDBusInterfaceInfo * |
1695 | ev_lector_window_interface_info (void) |
1696 | { |
1697 | return (GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct; |
1698 | } |
1699 | |
1700 | /** |
1701 | * ev_lector_window_override_properties: |
1702 | * @klass: The class structure for a #GObject derived class. |
1703 | * @property_id_begin: The property id to assign to the first overridden property. |
1704 | * |
1705 | * Overrides all #GObject properties in the #EvLectorWindow interface for a concrete class. |
1706 | * The properties are overridden in the order they are defined. |
1707 | * |
1708 | * Returns: The last property id. |
1709 | */ |
1710 | guint |
1711 | ev_lector_window_override_properties (GObjectClass *klass G_GNUC_UNUSED__attribute__ ((__unused__)), guint property_id_begin) |
1712 | { |
1713 | return property_id_begin - 1; |
1714 | } |
1715 | |
1716 | |
1717 | inline static void |
1718 | ev_lector_window_signal_marshal_sync_source ( |
1719 | GClosure *closure, |
1720 | GValue *return_value, |
1721 | unsigned int n_param_values, |
1722 | const GValue *param_values, |
1723 | void *invocation_hint, |
1724 | void *marshal_data) |
1725 | { |
1726 | _g_dbus_codegen_marshal_VOID__STRING_VARIANT_UINT (closure, |
1727 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
1728 | } |
1729 | |
1730 | inline static void |
1731 | ev_lector_window_signal_marshal_closed ( |
1732 | GClosure *closure, |
1733 | GValue *return_value, |
1734 | unsigned int n_param_values, |
1735 | const GValue *param_values, |
1736 | void *invocation_hint, |
1737 | void *marshal_data) |
1738 | { |
1739 | g_cclosure_marshal_VOID__VOID (closure, |
1740 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
1741 | } |
1742 | |
1743 | inline static void |
1744 | ev_lector_window_signal_marshal_document_loaded ( |
1745 | GClosure *closure, |
1746 | GValue *return_value, |
1747 | unsigned int n_param_values, |
1748 | const GValue *param_values, |
1749 | void *invocation_hint, |
1750 | void *marshal_data) |
1751 | { |
1752 | g_cclosure_marshal_VOID__STRING (closure, |
1753 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
1754 | } |
1755 | |
1756 | inline static void |
1757 | ev_lector_window_method_marshal_sync_view ( |
1758 | GClosure *closure, |
1759 | GValue *return_value, |
1760 | unsigned int n_param_values, |
1761 | const GValue *param_values, |
1762 | void *invocation_hint, |
1763 | void *marshal_data) |
1764 | { |
1765 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_VARIANT_UINT (closure, |
1766 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
1767 | } |
1768 | |
1769 | |
1770 | /** |
1771 | * EvLectorWindow: |
1772 | * |
1773 | * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link>. |
1774 | */ |
1775 | |
1776 | /** |
1777 | * EvLectorWindowIface: |
1778 | * @parent_iface: The parent interface. |
1779 | * @handle_sync_view: Handler for the #EvLectorWindow::handle-sync-view signal. |
1780 | * @closed: Handler for the #EvLectorWindow::closed signal. |
1781 | * @document_loaded: Handler for the #EvLectorWindow::document-loaded signal. |
1782 | * @sync_source: Handler for the #EvLectorWindow::sync-source signal. |
1783 | * |
1784 | * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link>. |
1785 | */ |
1786 | |
1787 | typedef EvLectorWindowIface EvLectorWindowInterface; |
1788 | G_DEFINE_INTERFACE (EvLectorWindow, ev_lector_window, G_TYPE_OBJECT)static void ev_lector_window_default_init (EvLectorWindowInterface *klass); GType ev_lector_window_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 ("EvLectorWindow"), sizeof (EvLectorWindowInterface ), (GClassInitFunc)(void (*)(void)) ev_lector_window_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 ; } |
1789 | |
1790 | static void |
1791 | ev_lector_window_default_init (EvLectorWindowIface *iface) |
1792 | { |
1793 | /* GObject signals for incoming D-Bus method calls: */ |
1794 | /** |
1795 | * EvLectorWindow::handle-sync-view: |
1796 | * @object: A #EvLectorWindow. |
1797 | * @invocation: A #GDBusMethodInvocation. |
1798 | * @arg_source_file: Argument passed by remote caller. |
1799 | * @arg_source_point: Argument passed by remote caller. |
1800 | * @arg_timestamp: Argument passed by remote caller. |
1801 | * |
1802 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-cafe-lector-Window.SyncView">SyncView()</link> D-Bus method. |
1803 | * |
1804 | * 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 ev_lector_window_complete_sync_view() 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. |
1805 | * |
1806 | * 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. |
1807 | */ |
1808 | g_signal_new ("handle-sync-view", |
1809 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
1810 | G_SIGNAL_RUN_LAST, |
1811 | G_STRUCT_OFFSET (EvLectorWindowIface, handle_sync_view)((glong) __builtin_offsetof(EvLectorWindowIface, handle_sync_view )), |
1812 | g_signal_accumulator_true_handled, |
1813 | NULL((void*)0), |
1814 | ev_lector_window_method_marshal_sync_view, |
1815 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
1816 | 4, |
1817 | G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_VARIANT((GType) ((21) << (2))), G_TYPE_UINT((GType) ((7) << (2)))); |
1818 | |
1819 | /* GObject signals for received D-Bus signals: */ |
1820 | /** |
1821 | * EvLectorWindow::sync-source: |
1822 | * @object: A #EvLectorWindow. |
1823 | * @arg_source_file: Argument. |
1824 | * @arg_source_point: Argument. |
1825 | * @arg_timestamp: Argument. |
1826 | * |
1827 | * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cafe-lector-Window.SyncSource">"SyncSource"</link> is received. |
1828 | * |
1829 | * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. |
1830 | */ |
1831 | EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_SYNC_SOURCE] = |
1832 | g_signal_new ("sync-source", |
1833 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
1834 | G_SIGNAL_RUN_LAST, |
1835 | G_STRUCT_OFFSET (EvLectorWindowIface, sync_source)((glong) __builtin_offsetof(EvLectorWindowIface, sync_source) ), |
1836 | NULL((void*)0), |
1837 | NULL((void*)0), |
1838 | ev_lector_window_signal_marshal_sync_source, |
1839 | G_TYPE_NONE((GType) ((1) << (2))), |
1840 | 3, G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_VARIANT((GType) ((21) << (2))), G_TYPE_UINT((GType) ((7) << (2)))); |
1841 | |
1842 | /** |
1843 | * EvLectorWindow::closed: |
1844 | * @object: A #EvLectorWindow. |
1845 | * |
1846 | * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cafe-lector-Window.Closed">"Closed"</link> is received. |
1847 | * |
1848 | * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. |
1849 | */ |
1850 | EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_CLOSED] = |
1851 | g_signal_new ("closed", |
1852 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
1853 | G_SIGNAL_RUN_LAST, |
1854 | G_STRUCT_OFFSET (EvLectorWindowIface, closed)((glong) __builtin_offsetof(EvLectorWindowIface, closed)), |
1855 | NULL((void*)0), |
1856 | NULL((void*)0), |
1857 | ev_lector_window_signal_marshal_closed, |
1858 | G_TYPE_NONE((GType) ((1) << (2))), |
1859 | 0); |
1860 | |
1861 | /** |
1862 | * EvLectorWindow::document-loaded: |
1863 | * @object: A #EvLectorWindow. |
1864 | * @arg_uri: Argument. |
1865 | * |
1866 | * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cafe-lector-Window.DocumentLoaded">"DocumentLoaded"</link> is received. |
1867 | * |
1868 | * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. |
1869 | */ |
1870 | EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_DOCUMENT_LOADED] = |
1871 | g_signal_new ("document-loaded", |
1872 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
1873 | G_SIGNAL_RUN_LAST, |
1874 | G_STRUCT_OFFSET (EvLectorWindowIface, document_loaded)((glong) __builtin_offsetof(EvLectorWindowIface, document_loaded )), |
1875 | NULL((void*)0), |
1876 | NULL((void*)0), |
1877 | ev_lector_window_signal_marshal_document_loaded, |
1878 | G_TYPE_NONE((GType) ((1) << (2))), |
1879 | 1, G_TYPE_STRING((GType) ((16) << (2)))); |
1880 | |
1881 | } |
1882 | |
1883 | /** |
1884 | * ev_lector_window_emit_sync_source: |
1885 | * @object: A #EvLectorWindow. |
1886 | * @arg_source_file: Argument to pass with the signal. |
1887 | * @arg_source_point: Argument to pass with the signal. |
1888 | * @arg_timestamp: Argument to pass with the signal. |
1889 | * |
1890 | * Emits the <link linkend="gdbus-signal-org-cafe-lector-Window.SyncSource">"SyncSource"</link> D-Bus signal. |
1891 | */ |
1892 | void |
1893 | ev_lector_window_emit_sync_source ( |
1894 | EvLectorWindow *object, |
1895 | const gchar *arg_source_file, |
1896 | GVariant *arg_source_point, |
1897 | guint arg_timestamp) |
1898 | { |
1899 | g_signal_emit (object, EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_SYNC_SOURCE], 0, arg_source_file, arg_source_point, arg_timestamp); |
1900 | } |
1901 | |
1902 | /** |
1903 | * ev_lector_window_emit_closed: |
1904 | * @object: A #EvLectorWindow. |
1905 | * |
1906 | * Emits the <link linkend="gdbus-signal-org-cafe-lector-Window.Closed">"Closed"</link> D-Bus signal. |
1907 | */ |
1908 | void |
1909 | ev_lector_window_emit_closed ( |
1910 | EvLectorWindow *object) |
1911 | { |
1912 | g_signal_emit (object, EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_CLOSED], 0); |
1913 | } |
1914 | |
1915 | /** |
1916 | * ev_lector_window_emit_document_loaded: |
1917 | * @object: A #EvLectorWindow. |
1918 | * @arg_uri: Argument to pass with the signal. |
1919 | * |
1920 | * Emits the <link linkend="gdbus-signal-org-cafe-lector-Window.DocumentLoaded">"DocumentLoaded"</link> D-Bus signal. |
1921 | */ |
1922 | void |
1923 | ev_lector_window_emit_document_loaded ( |
1924 | EvLectorWindow *object, |
1925 | const gchar *arg_uri) |
1926 | { |
1927 | g_signal_emit (object, EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_DOCUMENT_LOADED], 0, arg_uri); |
1928 | } |
1929 | |
1930 | /** |
1931 | * ev_lector_window_call_sync_view: |
1932 | * @proxy: A #EvLectorWindowProxy. |
1933 | * @arg_source_file: Argument to pass with the method invocation. |
1934 | * @arg_source_point: Argument to pass with the method invocation. |
1935 | * @arg_timestamp: Argument to pass with the method invocation. |
1936 | * @cancellable: (nullable): A #GCancellable or %NULL. |
1937 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
1938 | * @user_data: User data to pass to @callback. |
1939 | * |
1940 | * Asynchronously invokes the <link linkend="gdbus-method-org-cafe-lector-Window.SyncView">SyncView()</link> D-Bus method on @proxy. |
1941 | * 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()). |
1942 | * You can then call ev_lector_window_call_sync_view_finish() to get the result of the operation. |
1943 | * |
1944 | * See ev_lector_window_call_sync_view_sync() for the synchronous, blocking version of this method. |
1945 | */ |
1946 | void |
1947 | ev_lector_window_call_sync_view ( |
1948 | EvLectorWindow *proxy, |
1949 | const gchar *arg_source_file, |
1950 | GVariant *arg_source_point, |
1951 | guint arg_timestamp, |
1952 | GCancellable *cancellable, |
1953 | GAsyncReadyCallback callback, |
1954 | gpointer user_data) |
1955 | { |
1956 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
1957 | "SyncView", |
1958 | g_variant_new ("(s@(ii)u)", |
1959 | arg_source_file, |
1960 | arg_source_point, |
1961 | arg_timestamp), |
1962 | G_DBUS_CALL_FLAGS_NONE, |
1963 | -1, |
1964 | cancellable, |
1965 | callback, |
1966 | user_data); |
1967 | } |
1968 | |
1969 | /** |
1970 | * ev_lector_window_call_sync_view_finish: |
1971 | * @proxy: A #EvLectorWindowProxy. |
1972 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_window_call_sync_view(). |
1973 | * @error: Return location for error or %NULL. |
1974 | * |
1975 | * Finishes an operation started with ev_lector_window_call_sync_view(). |
1976 | * |
1977 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
1978 | */ |
1979 | gboolean |
1980 | ev_lector_window_call_sync_view_finish ( |
1981 | EvLectorWindow *proxy, |
1982 | GAsyncResult *res, |
1983 | GError **error) |
1984 | { |
1985 | GVariant *_ret; |
1986 | _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); |
1987 | if (_ret == NULL((void*)0)) |
1988 | goto _out; |
1989 | g_variant_get (_ret, |
1990 | "()"); |
1991 | g_variant_unref (_ret); |
1992 | _out: |
1993 | return _ret != NULL((void*)0); |
1994 | } |
1995 | |
1996 | /** |
1997 | * ev_lector_window_call_sync_view_sync: |
1998 | * @proxy: A #EvLectorWindowProxy. |
1999 | * @arg_source_file: Argument to pass with the method invocation. |
2000 | * @arg_source_point: Argument to pass with the method invocation. |
2001 | * @arg_timestamp: Argument to pass with the method invocation. |
2002 | * @cancellable: (nullable): A #GCancellable or %NULL. |
2003 | * @error: Return location for error or %NULL. |
2004 | * |
2005 | * Synchronously invokes the <link linkend="gdbus-method-org-cafe-lector-Window.SyncView">SyncView()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. |
2006 | * |
2007 | * See ev_lector_window_call_sync_view() for the asynchronous version of this method. |
2008 | * |
2009 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
2010 | */ |
2011 | gboolean |
2012 | ev_lector_window_call_sync_view_sync ( |
2013 | EvLectorWindow *proxy, |
2014 | const gchar *arg_source_file, |
2015 | GVariant *arg_source_point, |
2016 | guint arg_timestamp, |
2017 | GCancellable *cancellable, |
2018 | GError **error) |
2019 | { |
2020 | GVariant *_ret; |
2021 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
2022 | "SyncView", |
2023 | g_variant_new ("(s@(ii)u)", |
2024 | arg_source_file, |
2025 | arg_source_point, |
2026 | arg_timestamp), |
2027 | G_DBUS_CALL_FLAGS_NONE, |
2028 | -1, |
2029 | cancellable, |
2030 | error); |
2031 | if (_ret == NULL((void*)0)) |
2032 | goto _out; |
2033 | g_variant_get (_ret, |
2034 | "()"); |
2035 | g_variant_unref (_ret); |
2036 | _out: |
2037 | return _ret != NULL((void*)0); |
2038 | } |
2039 | |
2040 | /** |
2041 | * ev_lector_window_complete_sync_view: |
2042 | * @object: A #EvLectorWindow. |
2043 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
2044 | * |
2045 | * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-cafe-lector-Window.SyncView">SyncView()</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. |
2046 | * |
2047 | * This method will free @invocation, you cannot use it afterwards. |
2048 | */ |
2049 | void |
2050 | ev_lector_window_complete_sync_view ( |
2051 | EvLectorWindow *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
2052 | GDBusMethodInvocation *invocation) |
2053 | { |
2054 | g_dbus_method_invocation_return_value (invocation, |
2055 | g_variant_new ("()")); |
2056 | } |
2057 | |
2058 | /* ------------------------------------------------------------------------ */ |
2059 | |
2060 | /** |
2061 | * EvLectorWindowProxy: |
2062 | * |
2063 | * The #EvLectorWindowProxy structure contains only private data and should only be accessed using the provided API. |
2064 | */ |
2065 | |
2066 | /** |
2067 | * EvLectorWindowProxyClass: |
2068 | * @parent_class: The parent class. |
2069 | * |
2070 | * Class structure for #EvLectorWindowProxy. |
2071 | */ |
2072 | |
2073 | struct _EvLectorWindowProxyPrivate |
2074 | { |
2075 | GData *qdata; |
2076 | }; |
2077 | |
2078 | static void ev_lector_window_proxy_iface_init (EvLectorWindowIface *iface); |
2079 | |
2080 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2081 | G_DEFINE_TYPE_WITH_CODE (EvLectorWindowProxy, ev_lector_window_proxy, G_TYPE_DBUS_PROXY,static void ev_lector_window_proxy_init (EvLectorWindowProxy * self); static void ev_lector_window_proxy_class_init (EvLectorWindowProxyClass *klass); static GType ev_lector_window_proxy_get_type_once ( void); static gpointer ev_lector_window_proxy_parent_class = ( (void*)0); static gint EvLectorWindowProxy_private_offset; static void ev_lector_window_proxy_class_intern_init (gpointer klass ) { ev_lector_window_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowProxy_private_offset); ev_lector_window_proxy_class_init ((EvLectorWindowProxyClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_proxy_get_instance_private (EvLectorWindowProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorWindowProxy_private_offset)))); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorWindowProxy" ), sizeof (EvLectorWindowProxyClass), (GClassInitFunc)(void ( *)(void)) ev_lector_window_proxy_class_intern_init, sizeof (EvLectorWindowProxy ), (GInstanceInitFunc)(void (*)(void)) ev_lector_window_proxy_init , (GTypeFlags) 0); { {{ EvLectorWindowProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorWindowProxyPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_window_proxy_iface_init, ((void*) 0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2082 | G_ADD_PRIVATE (EvLectorWindowProxy)static void ev_lector_window_proxy_init (EvLectorWindowProxy * self); static void ev_lector_window_proxy_class_init (EvLectorWindowProxyClass *klass); static GType ev_lector_window_proxy_get_type_once ( void); static gpointer ev_lector_window_proxy_parent_class = ( (void*)0); static gint EvLectorWindowProxy_private_offset; static void ev_lector_window_proxy_class_intern_init (gpointer klass ) { ev_lector_window_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowProxy_private_offset); ev_lector_window_proxy_class_init ((EvLectorWindowProxyClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_proxy_get_instance_private (EvLectorWindowProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorWindowProxy_private_offset)))); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorWindowProxy" ), sizeof (EvLectorWindowProxyClass), (GClassInitFunc)(void ( *)(void)) ev_lector_window_proxy_class_intern_init, sizeof (EvLectorWindowProxy ), (GInstanceInitFunc)(void (*)(void)) ev_lector_window_proxy_init , (GTypeFlags) 0); { {{ EvLectorWindowProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorWindowProxyPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_window_proxy_iface_init, ((void*) 0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2083 | G_IMPLEMENT_INTERFACE (EV_TYPE_LECTOR_WINDOW, ev_lector_window_proxy_iface_init))static void ev_lector_window_proxy_init (EvLectorWindowProxy * self); static void ev_lector_window_proxy_class_init (EvLectorWindowProxyClass *klass); static GType ev_lector_window_proxy_get_type_once ( void); static gpointer ev_lector_window_proxy_parent_class = ( (void*)0); static gint EvLectorWindowProxy_private_offset; static void ev_lector_window_proxy_class_intern_init (gpointer klass ) { ev_lector_window_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowProxy_private_offset); ev_lector_window_proxy_class_init ((EvLectorWindowProxyClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_proxy_get_instance_private (EvLectorWindowProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorWindowProxy_private_offset)))); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorWindowProxy" ), sizeof (EvLectorWindowProxyClass), (GClassInitFunc)(void ( *)(void)) ev_lector_window_proxy_class_intern_init, sizeof (EvLectorWindowProxy ), (GInstanceInitFunc)(void (*)(void)) ev_lector_window_proxy_init , (GTypeFlags) 0); { {{ EvLectorWindowProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorWindowProxyPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_window_proxy_iface_init, ((void*) 0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2084 | |
2085 | #else |
2086 | G_DEFINE_TYPE_WITH_CODE (EvLectorWindowProxy, ev_lector_window_proxy, G_TYPE_DBUS_PROXY,static void ev_lector_window_proxy_init (EvLectorWindowProxy * self); static void ev_lector_window_proxy_class_init (EvLectorWindowProxyClass *klass); static GType ev_lector_window_proxy_get_type_once ( void); static gpointer ev_lector_window_proxy_parent_class = ( (void*)0); static gint EvLectorWindowProxy_private_offset; static void ev_lector_window_proxy_class_intern_init (gpointer klass ) { ev_lector_window_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowProxy_private_offset); ev_lector_window_proxy_class_init ((EvLectorWindowProxyClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_proxy_get_instance_private (EvLectorWindowProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorWindowProxy_private_offset)))); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorWindowProxy" ), sizeof (EvLectorWindowProxyClass), (GClassInitFunc)(void ( *)(void)) ev_lector_window_proxy_class_intern_init, sizeof (EvLectorWindowProxy ), (GInstanceInitFunc)(void (*)(void)) ev_lector_window_proxy_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_lector_window_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2087 | G_IMPLEMENT_INTERFACE (EV_TYPE_LECTOR_WINDOW, ev_lector_window_proxy_iface_init))static void ev_lector_window_proxy_init (EvLectorWindowProxy * self); static void ev_lector_window_proxy_class_init (EvLectorWindowProxyClass *klass); static GType ev_lector_window_proxy_get_type_once ( void); static gpointer ev_lector_window_proxy_parent_class = ( (void*)0); static gint EvLectorWindowProxy_private_offset; static void ev_lector_window_proxy_class_intern_init (gpointer klass ) { ev_lector_window_proxy_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowProxy_private_offset); ev_lector_window_proxy_class_init ((EvLectorWindowProxyClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_proxy_get_instance_private (EvLectorWindowProxy *self) { return (((gpointer) ((guint8*) (self) + (glong) (EvLectorWindowProxy_private_offset)))); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("EvLectorWindowProxy" ), sizeof (EvLectorWindowProxyClass), (GClassInitFunc)(void ( *)(void)) ev_lector_window_proxy_class_intern_init, sizeof (EvLectorWindowProxy ), (GInstanceInitFunc)(void (*)(void)) ev_lector_window_proxy_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_lector_window_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2088 | |
2089 | #endif |
2090 | static void |
2091 | ev_lector_window_proxy_finalize (GObject *object) |
2092 | { |
2093 | EvLectorWindowProxy *proxy = EV_LECTOR_WINDOW_PROXY (object)((((EvLectorWindowProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_proxy_get_type ())))))); |
2094 | g_datalist_clear (&proxy->priv->qdata); |
2095 | G_OBJECT_CLASS (ev_lector_window_proxy_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((ev_lector_window_proxy_parent_class)), (((GType) ((20) << (2))))))))->finalize (object); |
2096 | } |
2097 | |
2098 | static void |
2099 | ev_lector_window_proxy_get_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
2100 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
2101 | GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
2102 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
2103 | { |
2104 | } |
2105 | |
2106 | static void |
2107 | ev_lector_window_proxy_set_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
2108 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
2109 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
2110 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
2111 | { |
2112 | } |
2113 | |
2114 | static void |
2115 | ev_lector_window_proxy_g_signal (GDBusProxy *proxy, |
2116 | const gchar *sender_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
2117 | const gchar *signal_name, |
2118 | GVariant *parameters) |
2119 | { |
2120 | _ExtendedGDBusSignalInfo *info; |
2121 | GVariantIter iter; |
2122 | GVariant *child; |
2123 | GValue *paramv; |
2124 | gsize num_params; |
2125 | gsize n; |
2126 | guint signal_id; |
2127 | info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, signal_name); |
2128 | if (info == NULL((void*)0)) |
2129 | return; |
2130 | num_params = g_variant_n_children (parameters); |
2131 | paramv = g_new0 (GValue, num_params + 1)((GValue *) g_malloc0_n ((num_params + 1), sizeof (GValue))); |
2132 | g_value_init (¶mv[0], EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ())); |
2133 | g_value_set_object (¶mv[0], proxy); |
2134 | g_variant_iter_init (&iter, parameters); |
2135 | n = 1; |
2136 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
2137 | { |
2138 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; |
2139 | if (arg_info->use_gvariant) |
2140 | { |
2141 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
2142 | g_value_set_variant (¶mv[n], child); |
2143 | n++; |
2144 | } |
2145 | else |
2146 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
2147 | g_variant_unref (child); |
2148 | } |
2149 | signal_id = g_signal_lookup (info->signal_name, EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ())); |
2150 | g_signal_emitv (paramv, signal_id, 0, NULL((void*)0)); |
2151 | for (n = 0; n < num_params + 1; n++) |
2152 | g_value_unset (¶mv[n]); |
2153 | g_free (paramv); |
2154 | } |
2155 | |
2156 | static void |
2157 | ev_lector_window_proxy_g_properties_changed (GDBusProxy *_proxy, |
2158 | GVariant *changed_properties, |
2159 | const gchar *const *invalidated_properties) |
2160 | { |
2161 | EvLectorWindowProxy *proxy = EV_LECTOR_WINDOW_PROXY (_proxy)((((EvLectorWindowProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_proxy)), ((ev_lector_window_proxy_get_type ())))))); |
2162 | guint n; |
2163 | const gchar *key; |
2164 | GVariantIter *iter; |
2165 | _ExtendedGDBusPropertyInfo *info; |
2166 | g_variant_get (changed_properties, "a{sv}", &iter); |
2167 | while (g_variant_iter_next (iter, "{&sv}", &key, NULL((void*)0))) |
2168 | { |
2169 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, key); |
2170 | 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)); |
2171 | if (info != NULL((void*)0)) |
2172 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
2173 | } |
2174 | g_variant_iter_free (iter); |
2175 | for (n = 0; invalidated_properties[n] != NULL((void*)0); n++) |
2176 | { |
2177 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, invalidated_properties[n]); |
2178 | 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)); |
2179 | if (info != NULL((void*)0)) |
2180 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
2181 | } |
2182 | } |
2183 | |
2184 | static void |
2185 | ev_lector_window_proxy_init (EvLectorWindowProxy *proxy) |
2186 | { |
2187 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2188 | proxy->priv = ev_lector_window_proxy_get_instance_private (proxy); |
2189 | #else |
2190 | proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, EV_TYPE_LECTOR_WINDOW_PROXY, EvLectorWindowProxyPrivate)((EvLectorWindowProxyPrivate*) g_type_instance_get_private (( GTypeInstance*) (proxy), ((ev_lector_window_proxy_get_type () )))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
2191 | #endif |
2192 | |
2193 | g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), ev_lector_window_interface_info ()); |
2194 | } |
2195 | |
2196 | static void |
2197 | ev_lector_window_proxy_class_init (EvLectorWindowProxyClass *klass) |
2198 | { |
2199 | GObjectClass *gobject_class; |
2200 | GDBusProxyClass *proxy_class; |
2201 | |
2202 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
2203 | gobject_class->finalize = ev_lector_window_proxy_finalize; |
2204 | gobject_class->get_property = ev_lector_window_proxy_get_property; |
2205 | gobject_class->set_property = ev_lector_window_proxy_set_property; |
2206 | |
2207 | proxy_class = G_DBUS_PROXY_CLASS (klass)((((GDBusProxyClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), ((g_dbus_proxy_get_type ())))))); |
2208 | proxy_class->g_signal = ev_lector_window_proxy_g_signal; |
2209 | proxy_class->g_properties_changed = ev_lector_window_proxy_g_properties_changed; |
2210 | |
2211 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2212 | g_type_class_add_private (klass, sizeof (EvLectorWindowProxyPrivate)); |
2213 | #endif |
2214 | } |
2215 | |
2216 | static void |
2217 | ev_lector_window_proxy_iface_init (EvLectorWindowIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
2218 | { |
2219 | } |
2220 | |
2221 | /** |
2222 | * ev_lector_window_proxy_new: |
2223 | * @connection: A #GDBusConnection. |
2224 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
2225 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
2226 | * @object_path: An object path. |
2227 | * @cancellable: (nullable): A #GCancellable or %NULL. |
2228 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
2229 | * @user_data: User data to pass to @callback. |
2230 | * |
2231 | * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link>. See g_dbus_proxy_new() for more details. |
2232 | * |
2233 | * 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()). |
2234 | * You can then call ev_lector_window_proxy_new_finish() to get the result of the operation. |
2235 | * |
2236 | * See ev_lector_window_proxy_new_sync() for the synchronous, blocking version of this constructor. |
2237 | */ |
2238 | void |
2239 | ev_lector_window_proxy_new ( |
2240 | GDBusConnection *connection, |
2241 | GDBusProxyFlags flags, |
2242 | const gchar *name, |
2243 | const gchar *object_path, |
2244 | GCancellable *cancellable, |
2245 | GAsyncReadyCallback callback, |
2246 | gpointer user_data) |
2247 | { |
2248 | g_async_initable_new_async (EV_TYPE_LECTOR_WINDOW_PROXY(ev_lector_window_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.cafe.lector.Window", NULL((void*)0)); |
2249 | } |
2250 | |
2251 | /** |
2252 | * ev_lector_window_proxy_new_finish: |
2253 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_window_proxy_new(). |
2254 | * @error: Return location for error or %NULL |
2255 | * |
2256 | * Finishes an operation started with ev_lector_window_proxy_new(). |
2257 | * |
2258 | * Returns: (transfer full) (type EvLectorWindowProxy): The constructed proxy object or %NULL if @error is set. |
2259 | */ |
2260 | EvLectorWindow * |
2261 | ev_lector_window_proxy_new_finish ( |
2262 | GAsyncResult *res, |
2263 | GError **error) |
2264 | { |
2265 | GObject *ret; |
2266 | GObject *source_object; |
2267 | source_object = g_async_result_get_source_object (res); |
2268 | 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); |
2269 | g_object_unref (source_object); |
2270 | if (ret != NULL((void*)0)) |
2271 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
2272 | else |
2273 | return NULL((void*)0); |
2274 | } |
2275 | |
2276 | /** |
2277 | * ev_lector_window_proxy_new_sync: |
2278 | * @connection: A #GDBusConnection. |
2279 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
2280 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
2281 | * @object_path: An object path. |
2282 | * @cancellable: (nullable): A #GCancellable or %NULL. |
2283 | * @error: Return location for error or %NULL |
2284 | * |
2285 | * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link>. See g_dbus_proxy_new_sync() for more details. |
2286 | * |
2287 | * The calling thread is blocked until a reply is received. |
2288 | * |
2289 | * See ev_lector_window_proxy_new() for the asynchronous version of this constructor. |
2290 | * |
2291 | * Returns: (transfer full) (type EvLectorWindowProxy): The constructed proxy object or %NULL if @error is set. |
2292 | */ |
2293 | EvLectorWindow * |
2294 | ev_lector_window_proxy_new_sync ( |
2295 | GDBusConnection *connection, |
2296 | GDBusProxyFlags flags, |
2297 | const gchar *name, |
2298 | const gchar *object_path, |
2299 | GCancellable *cancellable, |
2300 | GError **error) |
2301 | { |
2302 | GInitable *ret; |
2303 | ret = g_initable_new (EV_TYPE_LECTOR_WINDOW_PROXY(ev_lector_window_proxy_get_type ()), cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.cafe.lector.Window", NULL((void*)0)); |
2304 | if (ret != NULL((void*)0)) |
2305 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
2306 | else |
2307 | return NULL((void*)0); |
2308 | } |
2309 | |
2310 | |
2311 | /** |
2312 | * ev_lector_window_proxy_new_for_bus: |
2313 | * @bus_type: A #GBusType. |
2314 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
2315 | * @name: A bus name (well-known or unique). |
2316 | * @object_path: An object path. |
2317 | * @cancellable: (nullable): A #GCancellable or %NULL. |
2318 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
2319 | * @user_data: User data to pass to @callback. |
2320 | * |
2321 | * Like ev_lector_window_proxy_new() but takes a #GBusType instead of a #GDBusConnection. |
2322 | * |
2323 | * 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()). |
2324 | * You can then call ev_lector_window_proxy_new_for_bus_finish() to get the result of the operation. |
2325 | * |
2326 | * See ev_lector_window_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
2327 | */ |
2328 | void |
2329 | ev_lector_window_proxy_new_for_bus ( |
2330 | GBusType bus_type, |
2331 | GDBusProxyFlags flags, |
2332 | const gchar *name, |
2333 | const gchar *object_path, |
2334 | GCancellable *cancellable, |
2335 | GAsyncReadyCallback callback, |
2336 | gpointer user_data) |
2337 | { |
2338 | g_async_initable_new_async (EV_TYPE_LECTOR_WINDOW_PROXY(ev_lector_window_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.cafe.lector.Window", NULL((void*)0)); |
2339 | } |
2340 | |
2341 | /** |
2342 | * ev_lector_window_proxy_new_for_bus_finish: |
2343 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_window_proxy_new_for_bus(). |
2344 | * @error: Return location for error or %NULL |
2345 | * |
2346 | * Finishes an operation started with ev_lector_window_proxy_new_for_bus(). |
2347 | * |
2348 | * Returns: (transfer full) (type EvLectorWindowProxy): The constructed proxy object or %NULL if @error is set. |
2349 | */ |
2350 | EvLectorWindow * |
2351 | ev_lector_window_proxy_new_for_bus_finish ( |
2352 | GAsyncResult *res, |
2353 | GError **error) |
2354 | { |
2355 | GObject *ret; |
2356 | GObject *source_object; |
2357 | source_object = g_async_result_get_source_object (res); |
2358 | 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); |
2359 | g_object_unref (source_object); |
2360 | if (ret != NULL((void*)0)) |
2361 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
2362 | else |
2363 | return NULL((void*)0); |
2364 | } |
2365 | |
2366 | /** |
2367 | * ev_lector_window_proxy_new_for_bus_sync: |
2368 | * @bus_type: A #GBusType. |
2369 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
2370 | * @name: A bus name (well-known or unique). |
2371 | * @object_path: An object path. |
2372 | * @cancellable: (nullable): A #GCancellable or %NULL. |
2373 | * @error: Return location for error or %NULL |
2374 | * |
2375 | * Like ev_lector_window_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
2376 | * |
2377 | * The calling thread is blocked until a reply is received. |
2378 | * |
2379 | * See ev_lector_window_proxy_new_for_bus() for the asynchronous version of this constructor. |
2380 | * |
2381 | * Returns: (transfer full) (type EvLectorWindowProxy): The constructed proxy object or %NULL if @error is set. |
2382 | */ |
2383 | EvLectorWindow * |
2384 | ev_lector_window_proxy_new_for_bus_sync ( |
2385 | GBusType bus_type, |
2386 | GDBusProxyFlags flags, |
2387 | const gchar *name, |
2388 | const gchar *object_path, |
2389 | GCancellable *cancellable, |
2390 | GError **error) |
2391 | { |
2392 | GInitable *ret; |
2393 | ret = g_initable_new (EV_TYPE_LECTOR_WINDOW_PROXY(ev_lector_window_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.cafe.lector.Window", NULL((void*)0)); |
2394 | if (ret != NULL((void*)0)) |
2395 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
2396 | else |
2397 | return NULL((void*)0); |
2398 | } |
2399 | |
2400 | |
2401 | /* ------------------------------------------------------------------------ */ |
2402 | |
2403 | /** |
2404 | * EvLectorWindowSkeleton: |
2405 | * |
2406 | * The #EvLectorWindowSkeleton structure contains only private data and should only be accessed using the provided API. |
2407 | */ |
2408 | |
2409 | /** |
2410 | * EvLectorWindowSkeletonClass: |
2411 | * @parent_class: The parent class. |
2412 | * |
2413 | * Class structure for #EvLectorWindowSkeleton. |
2414 | */ |
2415 | |
2416 | struct _EvLectorWindowSkeletonPrivate |
2417 | { |
2418 | GValue *properties; |
2419 | GList *changed_properties; |
2420 | GSource *changed_properties_idle_source; |
2421 | GMainContext *context; |
2422 | GMutex lock; |
2423 | }; |
2424 | |
2425 | static void |
2426 | _ev_lector_window_skeleton_handle_method_call ( |
2427 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
2428 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
2429 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
2430 | const gchar *interface_name, |
2431 | const gchar *method_name, |
2432 | GVariant *parameters, |
2433 | GDBusMethodInvocation *invocation, |
2434 | gpointer user_data) |
2435 | { |
2436 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (user_data)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_window_skeleton_get_type ())))))); |
2437 | _ExtendedGDBusMethodInfo *info; |
2438 | GVariantIter iter; |
2439 | GVariant *child; |
2440 | GValue *paramv; |
2441 | gsize num_params; |
2442 | guint num_extra; |
2443 | gsize n; |
2444 | guint signal_id; |
2445 | GValue return_value = G_VALUE_INIT{ 0, { { 0 } } }; |
2446 | info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); |
2447 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 2447, ((const char*) (__func__ )), "info != NULL"); } while (0); |
2448 | num_params = g_variant_n_children (parameters); |
2449 | 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 ))); |
2450 | n = 0; |
2451 | g_value_init (¶mv[n], EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ())); |
2452 | g_value_set_object (¶mv[n++], skeleton); |
2453 | g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ())); |
2454 | g_value_set_object (¶mv[n++], invocation); |
2455 | if (info->pass_fdlist) |
2456 | { |
2457 | #ifdef G_OS_UNIX |
2458 | g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST(g_unix_fd_list_get_type ())); |
2459 | g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); |
2460 | #else |
2461 | g_assert_not_reached ()do { g_assertion_message_expr (((gchar*) 0), "ev-gdbus-generated.c" , 2461, ((const char*) (__func__)), ((void*)0)); } while (0); |
2462 | #endif |
2463 | } |
2464 | g_variant_iter_init (&iter, parameters); |
2465 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
2466 | { |
2467 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; |
2468 | if (arg_info->use_gvariant) |
2469 | { |
2470 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
2471 | g_value_set_variant (¶mv[n], child); |
2472 | n++; |
2473 | } |
2474 | else |
2475 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
2476 | g_variant_unref (child); |
2477 | } |
2478 | signal_id = g_signal_lookup (info->signal_name, EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ())); |
2479 | g_value_init (&return_value, G_TYPE_BOOLEAN((GType) ((5) << (2)))); |
2480 | g_signal_emitv (paramv, signal_id, 0, &return_value); |
2481 | if (!g_value_get_boolean (&return_value)) |
2482 | 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); |
2483 | g_value_unset (&return_value); |
2484 | for (n = 0; n < num_params + num_extra; n++) |
2485 | g_value_unset (¶mv[n]); |
2486 | g_free (paramv); |
2487 | } |
2488 | |
2489 | static GVariant * |
2490 | _ev_lector_window_skeleton_handle_get_property ( |
2491 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
2492 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
2493 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
2494 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
2495 | const gchar *property_name, |
2496 | GError **error, |
2497 | gpointer user_data) |
2498 | { |
2499 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (user_data)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_window_skeleton_get_type ())))))); |
2500 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
2501 | GParamSpec *pspec; |
2502 | _ExtendedGDBusPropertyInfo *info; |
2503 | GVariant *ret; |
2504 | ret = NULL((void*)0); |
2505 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, property_name); |
2506 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 2506, ((const char*) (__func__ )), "info != NULL"); } while (0); |
2507 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
2508 | if (pspec == NULL((void*)0)) |
2509 | { |
2510 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
2511 | } |
2512 | else |
2513 | { |
2514 | g_value_init (&value, pspec->value_type); |
2515 | g_object_get_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
2516 | ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)(g_variant_type_checked_ ((info->parent_struct.signature)) )); |
2517 | g_value_unset (&value); |
2518 | } |
2519 | return ret; |
2520 | } |
2521 | |
2522 | static gboolean |
2523 | _ev_lector_window_skeleton_handle_set_property ( |
2524 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
2525 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
2526 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
2527 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
2528 | const gchar *property_name, |
2529 | GVariant *variant, |
2530 | GError **error, |
2531 | gpointer user_data) |
2532 | { |
2533 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (user_data)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_window_skeleton_get_type ())))))); |
2534 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
2535 | GParamSpec *pspec; |
2536 | _ExtendedGDBusPropertyInfo *info; |
2537 | gboolean ret; |
2538 | ret = FALSE(0); |
2539 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, property_name); |
2540 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 2540, ((const char*) (__func__ )), "info != NULL"); } while (0); |
2541 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
2542 | if (pspec == NULL((void*)0)) |
2543 | { |
2544 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
2545 | } |
2546 | else |
2547 | { |
2548 | if (info->use_gvariant) |
2549 | g_value_set_variant (&value, variant); |
2550 | else |
2551 | g_dbus_gvariant_to_gvalue (variant, &value); |
2552 | g_object_set_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
2553 | g_value_unset (&value); |
2554 | ret = TRUE(!(0)); |
2555 | } |
2556 | return ret; |
2557 | } |
2558 | |
2559 | static const GDBusInterfaceVTable _ev_lector_window_skeleton_vtable = |
2560 | { |
2561 | _ev_lector_window_skeleton_handle_method_call, |
2562 | _ev_lector_window_skeleton_handle_get_property, |
2563 | _ev_lector_window_skeleton_handle_set_property, |
2564 | {NULL((void*)0)} |
2565 | }; |
2566 | |
2567 | static GDBusInterfaceInfo * |
2568 | ev_lector_window_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
2569 | { |
2570 | return ev_lector_window_interface_info (); |
2571 | } |
2572 | |
2573 | static GDBusInterfaceVTable * |
2574 | ev_lector_window_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
2575 | { |
2576 | return (GDBusInterfaceVTable *) &_ev_lector_window_skeleton_vtable; |
2577 | } |
2578 | |
2579 | static GVariant * |
2580 | ev_lector_window_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) |
2581 | { |
2582 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (_skeleton)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_skeleton)), ((ev_lector_window_skeleton_get_type ())))))); |
2583 | |
2584 | GVariantBuilder builder; |
2585 | guint n; |
2586 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_84(((2) << 16 | (84) << 8)) |
2587 | g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
2588 | #else |
2589 | g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
2590 | #endif |
2591 | if (_ev_lector_window_interface_info.parent_struct.properties == NULL((void*)0)) |
2592 | goto out; |
2593 | for (n = 0; _ev_lector_window_interface_info.parent_struct.properties[n] != NULL((void*)0); n++) |
2594 | { |
2595 | GDBusPropertyInfo *info = _ev_lector_window_interface_info.parent_struct.properties[n]; |
2596 | if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) |
2597 | { |
2598 | GVariant *value; |
2599 | value = _ev_lector_window_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.cafe.lector.Window", info->name, NULL((void*)0), skeleton); |
2600 | if (value != NULL((void*)0)) |
2601 | { |
2602 | g_variant_take_ref (value); |
2603 | g_variant_builder_add (&builder, "{sv}", info->name, value); |
2604 | g_variant_unref (value); |
2605 | } |
2606 | } |
2607 | } |
2608 | out: |
2609 | return g_variant_builder_end (&builder); |
2610 | } |
2611 | |
2612 | static void |
2613 | ev_lector_window_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
2614 | { |
2615 | } |
2616 | |
2617 | static void |
2618 | _ev_lector_window_on_signal_sync_source ( |
2619 | EvLectorWindow *object, |
2620 | const gchar *arg_source_file, |
2621 | GVariant *arg_source_point, |
2622 | guint arg_timestamp) |
2623 | { |
2624 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (object)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_skeleton_get_type ())))))); |
2625 | |
2626 | GList *connections, *l; |
2627 | GVariant *signal_variant; |
2628 | connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type ()))))))); |
2629 | |
2630 | signal_variant = g_variant_ref_sink (g_variant_new ("(s@(ii)u)", |
2631 | arg_source_file, |
2632 | arg_source_point, |
2633 | arg_timestamp)); |
2634 | for (l = connections; l != NULL((void*)0); l = l->next) |
2635 | { |
2636 | GDBusConnection *connection = l->data; |
2637 | g_dbus_connection_emit_signal (connection, |
2638 | 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.cafe.lector.Window", "SyncSource", |
2639 | signal_variant, NULL((void*)0)); |
2640 | } |
2641 | g_variant_unref (signal_variant); |
2642 | g_list_free_full (connections, g_object_unref); |
2643 | } |
2644 | |
2645 | static void |
2646 | _ev_lector_window_on_signal_closed ( |
2647 | EvLectorWindow *object) |
2648 | { |
2649 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (object)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_skeleton_get_type ())))))); |
2650 | |
2651 | GList *connections, *l; |
2652 | GVariant *signal_variant; |
2653 | connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type ()))))))); |
2654 | |
2655 | signal_variant = g_variant_ref_sink (g_variant_new ("()")); |
2656 | for (l = connections; l != NULL((void*)0); l = l->next) |
2657 | { |
2658 | GDBusConnection *connection = l->data; |
2659 | g_dbus_connection_emit_signal (connection, |
2660 | 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.cafe.lector.Window", "Closed", |
2661 | signal_variant, NULL((void*)0)); |
2662 | } |
2663 | g_variant_unref (signal_variant); |
2664 | g_list_free_full (connections, g_object_unref); |
2665 | } |
2666 | |
2667 | static void |
2668 | _ev_lector_window_on_signal_document_loaded ( |
2669 | EvLectorWindow *object, |
2670 | const gchar *arg_uri) |
2671 | { |
2672 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (object)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_skeleton_get_type ())))))); |
2673 | |
2674 | GList *connections, *l; |
2675 | GVariant *signal_variant; |
2676 | connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type ()))))))); |
2677 | |
2678 | signal_variant = g_variant_ref_sink (g_variant_new ("(s)", |
2679 | arg_uri)); |
2680 | for (l = connections; l != NULL((void*)0); l = l->next) |
2681 | { |
2682 | GDBusConnection *connection = l->data; |
2683 | g_dbus_connection_emit_signal (connection, |
2684 | 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.cafe.lector.Window", "DocumentLoaded", |
2685 | signal_variant, NULL((void*)0)); |
2686 | } |
2687 | g_variant_unref (signal_variant); |
2688 | g_list_free_full (connections, g_object_unref); |
2689 | } |
2690 | |
2691 | static void ev_lector_window_skeleton_iface_init (EvLectorWindowIface *iface); |
2692 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2693 | G_DEFINE_TYPE_WITH_CODE (EvLectorWindowSkeleton, ev_lector_window_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void ev_lector_window_skeleton_init (EvLectorWindowSkeleton *self); static void ev_lector_window_skeleton_class_init (EvLectorWindowSkeletonClass *klass); static GType ev_lector_window_skeleton_get_type_once (void); static gpointer ev_lector_window_skeleton_parent_class = ((void*)0); static gint EvLectorWindowSkeleton_private_offset ; static void ev_lector_window_skeleton_class_intern_init (gpointer klass) { ev_lector_window_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowSkeleton_private_offset); ev_lector_window_skeleton_class_init ((EvLectorWindowSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_skeleton_get_instance_private (EvLectorWindowSkeleton *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorWindowSkeleton_private_offset))) ); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_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 ("EvLectorWindowSkeleton"), sizeof (EvLectorWindowSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_window_skeleton_class_intern_init , sizeof (EvLectorWindowSkeleton), (GInstanceInitFunc)(void ( *)(void)) ev_lector_window_skeleton_init, (GTypeFlags) 0); { { { EvLectorWindowSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorWindowSkeletonPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_window_skeleton_iface_init, ((void *)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2694 | G_ADD_PRIVATE (EvLectorWindowSkeleton)static void ev_lector_window_skeleton_init (EvLectorWindowSkeleton *self); static void ev_lector_window_skeleton_class_init (EvLectorWindowSkeletonClass *klass); static GType ev_lector_window_skeleton_get_type_once (void); static gpointer ev_lector_window_skeleton_parent_class = ((void*)0); static gint EvLectorWindowSkeleton_private_offset ; static void ev_lector_window_skeleton_class_intern_init (gpointer klass) { ev_lector_window_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowSkeleton_private_offset); ev_lector_window_skeleton_class_init ((EvLectorWindowSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_skeleton_get_instance_private (EvLectorWindowSkeleton *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorWindowSkeleton_private_offset))) ); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_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 ("EvLectorWindowSkeleton"), sizeof (EvLectorWindowSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_window_skeleton_class_intern_init , sizeof (EvLectorWindowSkeleton), (GInstanceInitFunc)(void ( *)(void)) ev_lector_window_skeleton_init, (GTypeFlags) 0); { { { EvLectorWindowSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorWindowSkeletonPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_window_skeleton_iface_init, ((void *)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2695 | G_IMPLEMENT_INTERFACE (EV_TYPE_LECTOR_WINDOW, ev_lector_window_skeleton_iface_init))static void ev_lector_window_skeleton_init (EvLectorWindowSkeleton *self); static void ev_lector_window_skeleton_class_init (EvLectorWindowSkeletonClass *klass); static GType ev_lector_window_skeleton_get_type_once (void); static gpointer ev_lector_window_skeleton_parent_class = ((void*)0); static gint EvLectorWindowSkeleton_private_offset ; static void ev_lector_window_skeleton_class_intern_init (gpointer klass) { ev_lector_window_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowSkeleton_private_offset); ev_lector_window_skeleton_class_init ((EvLectorWindowSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_skeleton_get_instance_private (EvLectorWindowSkeleton *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorWindowSkeleton_private_offset))) ); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_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 ("EvLectorWindowSkeleton"), sizeof (EvLectorWindowSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_window_skeleton_class_intern_init , sizeof (EvLectorWindowSkeleton), (GInstanceInitFunc)(void ( *)(void)) ev_lector_window_skeleton_init, (GTypeFlags) 0); { { { EvLectorWindowSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (EvLectorWindowSkeletonPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_window_skeleton_iface_init, ((void *)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2696 | |
2697 | #else |
2698 | G_DEFINE_TYPE_WITH_CODE (EvLectorWindowSkeleton, ev_lector_window_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void ev_lector_window_skeleton_init (EvLectorWindowSkeleton *self); static void ev_lector_window_skeleton_class_init (EvLectorWindowSkeletonClass *klass); static GType ev_lector_window_skeleton_get_type_once (void); static gpointer ev_lector_window_skeleton_parent_class = ((void*)0); static gint EvLectorWindowSkeleton_private_offset ; static void ev_lector_window_skeleton_class_intern_init (gpointer klass) { ev_lector_window_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowSkeleton_private_offset); ev_lector_window_skeleton_class_init ((EvLectorWindowSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_skeleton_get_instance_private (EvLectorWindowSkeleton *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorWindowSkeleton_private_offset))) ); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_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 ("EvLectorWindowSkeleton"), sizeof (EvLectorWindowSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_window_skeleton_class_intern_init , sizeof (EvLectorWindowSkeleton), (GInstanceInitFunc)(void ( *)(void)) ev_lector_window_skeleton_init, (GTypeFlags) 0); { { { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_window_skeleton_iface_init, ((void *)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2699 | G_IMPLEMENT_INTERFACE (EV_TYPE_LECTOR_WINDOW, ev_lector_window_skeleton_iface_init))static void ev_lector_window_skeleton_init (EvLectorWindowSkeleton *self); static void ev_lector_window_skeleton_class_init (EvLectorWindowSkeletonClass *klass); static GType ev_lector_window_skeleton_get_type_once (void); static gpointer ev_lector_window_skeleton_parent_class = ((void*)0); static gint EvLectorWindowSkeleton_private_offset ; static void ev_lector_window_skeleton_class_intern_init (gpointer klass) { ev_lector_window_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvLectorWindowSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvLectorWindowSkeleton_private_offset); ev_lector_window_skeleton_class_init ((EvLectorWindowSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_lector_window_skeleton_get_instance_private (EvLectorWindowSkeleton *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvLectorWindowSkeleton_private_offset))) ); } GType ev_lector_window_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 = ev_lector_window_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 ev_lector_window_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 ("EvLectorWindowSkeleton"), sizeof (EvLectorWindowSkeletonClass ), (GClassInitFunc)(void (*)(void)) ev_lector_window_skeleton_class_intern_init , sizeof (EvLectorWindowSkeleton), (GInstanceInitFunc)(void ( *)(void)) ev_lector_window_skeleton_init, (GTypeFlags) 0); { { { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_lector_window_skeleton_iface_init, ((void *)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_lector_window_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
2700 | |
2701 | #endif |
2702 | static void |
2703 | ev_lector_window_skeleton_finalize (GObject *object) |
2704 | { |
2705 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (object)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_skeleton_get_type ())))))); |
2706 | g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); |
2707 | if (skeleton->priv->changed_properties_idle_source != NULL((void*)0)) |
2708 | g_source_destroy (skeleton->priv->changed_properties_idle_source); |
2709 | g_main_context_unref (skeleton->priv->context); |
2710 | g_mutex_clear (&skeleton->priv->lock); |
2711 | G_OBJECT_CLASS (ev_lector_window_skeleton_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((ev_lector_window_skeleton_parent_class)), (((GType) ((20 ) << (2))))))))->finalize (object); |
2712 | } |
2713 | |
2714 | static void |
2715 | ev_lector_window_skeleton_init (EvLectorWindowSkeleton *skeleton) |
2716 | { |
2717 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2718 | skeleton->priv = ev_lector_window_skeleton_get_instance_private (skeleton); |
2719 | #else |
2720 | skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, EV_TYPE_LECTOR_WINDOW_SKELETON, EvLectorWindowSkeletonPrivate)((EvLectorWindowSkeletonPrivate*) g_type_instance_get_private ((GTypeInstance*) (skeleton), ((ev_lector_window_skeleton_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
2721 | #endif |
2722 | |
2723 | g_mutex_init (&skeleton->priv->lock); |
2724 | skeleton->priv->context = g_main_context_ref_thread_default (); |
2725 | } |
2726 | |
2727 | static void |
2728 | ev_lector_window_skeleton_class_init (EvLectorWindowSkeletonClass *klass) |
2729 | { |
2730 | GObjectClass *gobject_class; |
2731 | GDBusInterfaceSkeletonClass *skeleton_class; |
2732 | |
2733 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
2734 | gobject_class->finalize = ev_lector_window_skeleton_finalize; |
2735 | |
2736 | skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass)((((GDBusInterfaceSkeletonClass*) (void *) g_type_check_class_cast ((GTypeClass*) ((klass)), ((g_dbus_interface_skeleton_get_type ())))))); |
2737 | skeleton_class->get_info = ev_lector_window_skeleton_dbus_interface_get_info; |
2738 | skeleton_class->get_properties = ev_lector_window_skeleton_dbus_interface_get_properties; |
2739 | skeleton_class->flush = ev_lector_window_skeleton_dbus_interface_flush; |
2740 | skeleton_class->get_vtable = ev_lector_window_skeleton_dbus_interface_get_vtable; |
2741 | |
2742 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
2743 | g_type_class_add_private (klass, sizeof (EvLectorWindowSkeletonPrivate)); |
2744 | #endif |
2745 | } |
2746 | |
2747 | static void |
2748 | ev_lector_window_skeleton_iface_init (EvLectorWindowIface *iface) |
2749 | { |
2750 | iface->sync_source = _ev_lector_window_on_signal_sync_source; |
2751 | iface->closed = _ev_lector_window_on_signal_closed; |
2752 | iface->document_loaded = _ev_lector_window_on_signal_document_loaded; |
2753 | } |
2754 | |
2755 | /** |
2756 | * ev_lector_window_skeleton_new: |
2757 | * |
2758 | * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link>. |
2759 | * |
2760 | * Returns: (transfer full) (type EvLectorWindowSkeleton): The skeleton object. |
2761 | */ |
2762 | EvLectorWindow * |
2763 | ev_lector_window_skeleton_new (void) |
2764 | { |
2765 | return EV_LECTOR_WINDOW (g_object_new (EV_TYPE_LECTOR_WINDOW_SKELETON, NULL))((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((g_object_new ((ev_lector_window_skeleton_get_type ()), ( (void*)0)))), ((ev_lector_window_get_type ())))))); |
2766 | } |
2767 | |
2768 | /* ------------------------------------------------------------------------ |
2769 | * Code for Object, ObjectProxy and ObjectSkeleton |
2770 | * ------------------------------------------------------------------------ |
2771 | */ |
2772 | |
2773 | /** |
2774 | * SECTION:EvObject |
2775 | * @title: EvObject |
2776 | * @short_description: Specialized GDBusObject types |
2777 | * |
2778 | * This section contains the #EvObject, #EvObjectProxy, and #EvObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces. |
2779 | */ |
2780 | |
2781 | /** |
2782 | * EvObject: |
2783 | * |
2784 | * The #EvObject type is a specialized container of interfaces. |
2785 | */ |
2786 | |
2787 | /** |
2788 | * EvObjectIface: |
2789 | * @parent_iface: The parent interface. |
2790 | * |
2791 | * Virtual table for the #EvObject interface. |
2792 | */ |
2793 | |
2794 | typedef EvObjectIface EvObjectInterface; |
2795 | G_DEFINE_INTERFACE_WITH_CODE (EvObject, ev_object, G_TYPE_OBJECT, g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_DBUS_OBJECT);)static void ev_object_default_init (EvObjectInterface *klass) ; GType ev_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 ("EvObject"), sizeof (EvObjectInterface ), (GClassInitFunc)(void (*)(void)) ev_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 ; } |
2796 | |
2797 | static void |
2798 | ev_object_default_init (EvObjectIface *iface) |
2799 | { |
2800 | /** |
2801 | * EvObject:lector-application: |
2802 | * |
2803 | * The #EvLectorApplication instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link>, if any. |
2804 | * |
2805 | * Connect to the #GObject::notify signal to get informed of property changes. |
2806 | */ |
2807 | g_object_interface_install_property (iface, g_param_spec_object ("lector-application", "lector-application", "lector-application", EV_TYPE_LECTOR_APPLICATION(ev_lector_application_get_type ()), G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS(G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB ))); |
2808 | |
2809 | /** |
2810 | * EvObject:lector-window: |
2811 | * |
2812 | * The #EvLectorWindow instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link>, if any. |
2813 | * |
2814 | * Connect to the #GObject::notify signal to get informed of property changes. |
2815 | */ |
2816 | g_object_interface_install_property (iface, g_param_spec_object ("lector-window", "lector-window", "lector-window", EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ()), G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS(G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB ))); |
2817 | |
2818 | } |
2819 | |
2820 | /** |
2821 | * ev_object_get_lector_application: |
2822 | * @object: A #EvObject. |
2823 | * |
2824 | * Gets the #EvLectorApplication instance for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link> on @object, if any. |
2825 | * |
2826 | * Returns: (transfer full) (nullable): A #EvLectorApplication that must be freed with g_object_unref() or %NULL if @object does not implement the interface. |
2827 | */ |
2828 | EvLectorApplication *ev_object_get_lector_application (EvObject *object) |
2829 | { |
2830 | GDBusInterface *ret; |
2831 | 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.cafe.lector.Application"); |
2832 | if (ret == NULL((void*)0)) |
2833 | return NULL((void*)0); |
2834 | return EV_LECTOR_APPLICATION (ret)((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((ev_lector_application_get_type ( ))))))); |
2835 | } |
2836 | |
2837 | /** |
2838 | * ev_object_get_lector_window: |
2839 | * @object: A #EvObject. |
2840 | * |
2841 | * Gets the #EvLectorWindow instance for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link> on @object, if any. |
2842 | * |
2843 | * Returns: (transfer full) (nullable): A #EvLectorWindow that must be freed with g_object_unref() or %NULL if @object does not implement the interface. |
2844 | */ |
2845 | EvLectorWindow *ev_object_get_lector_window (EvObject *object) |
2846 | { |
2847 | GDBusInterface *ret; |
2848 | 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.cafe.lector.Window"); |
2849 | if (ret == NULL((void*)0)) |
2850 | return NULL((void*)0); |
2851 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
2852 | } |
2853 | |
2854 | |
2855 | /** |
2856 | * ev_object_peek_lector_application: (skip) |
2857 | * @object: A #EvObject. |
2858 | * |
2859 | * Like ev_object_get_lector_application() but doesn't increase the reference count on the returned object. |
2860 | * |
2861 | * 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. |
2862 | * |
2863 | * Returns: (transfer none) (nullable): A #EvLectorApplication or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object. |
2864 | */ |
2865 | EvLectorApplication *ev_object_peek_lector_application (EvObject *object) |
2866 | { |
2867 | GDBusInterface *ret; |
2868 | 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.cafe.lector.Application"); |
2869 | if (ret == NULL((void*)0)) |
2870 | return NULL((void*)0); |
2871 | g_object_unref (ret); |
2872 | return EV_LECTOR_APPLICATION (ret)((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((ev_lector_application_get_type ( ))))))); |
2873 | } |
2874 | |
2875 | /** |
2876 | * ev_object_peek_lector_window: (skip) |
2877 | * @object: A #EvObject. |
2878 | * |
2879 | * Like ev_object_get_lector_window() but doesn't increase the reference count on the returned object. |
2880 | * |
2881 | * 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. |
2882 | * |
2883 | * Returns: (transfer none) (nullable): A #EvLectorWindow or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object. |
2884 | */ |
2885 | EvLectorWindow *ev_object_peek_lector_window (EvObject *object) |
2886 | { |
2887 | GDBusInterface *ret; |
2888 | 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.cafe.lector.Window"); |
2889 | if (ret == NULL((void*)0)) |
2890 | return NULL((void*)0); |
2891 | g_object_unref (ret); |
2892 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
2893 | } |
2894 | |
2895 | |
2896 | static void |
2897 | ev_object_notify (GDBusObject *object, GDBusInterface *interface) |
2898 | { |
2899 | _ExtendedGDBusInterfaceInfo *info = (_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface); |
2900 | /* info can be NULL if the other end is using a D-Bus interface we don't know |
2901 | * anything about, for example old generated code in this process talking to |
2902 | * newer generated code in the other process. */ |
2903 | if (info != NULL((void*)0)) |
2904 | g_object_notify (G_OBJECT (object)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
2905 | } |
2906 | |
2907 | /** |
2908 | * EvObjectProxy: |
2909 | * |
2910 | * The #EvObjectProxy structure contains only private data and should only be accessed using the provided API. |
2911 | */ |
2912 | |
2913 | /** |
2914 | * EvObjectProxyClass: |
2915 | * @parent_class: The parent class. |
2916 | * |
2917 | * Class structure for #EvObjectProxy. |
2918 | */ |
2919 | |
2920 | static void |
2921 | ev_object_proxy__ev_object_iface_init (EvObjectIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
2922 | { |
2923 | } |
2924 | |
2925 | static void |
2926 | ev_object_proxy__g_dbus_object_iface_init (GDBusObjectIface *iface) |
2927 | { |
2928 | iface->interface_added = ev_object_notify; |
2929 | iface->interface_removed = ev_object_notify; |
2930 | } |
2931 | |
2932 | |
2933 | G_DEFINE_TYPE_WITH_CODE (EvObjectProxy, ev_object_proxy, G_TYPE_DBUS_OBJECT_PROXY,static void ev_object_proxy_init (EvObjectProxy *self); static void ev_object_proxy_class_init (EvObjectProxyClass *klass); static GType ev_object_proxy_get_type_once (void); static gpointer ev_object_proxy_parent_class = ((void*)0); static gint EvObjectProxy_private_offset ; static void ev_object_proxy_class_intern_init (gpointer klass ) { ev_object_proxy_parent_class = g_type_class_peek_parent ( klass); if (EvObjectProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvObjectProxy_private_offset); ev_object_proxy_class_init ((EvObjectProxyClass*) klass); } __attribute__ ((__unused__) ) static inline gpointer ev_object_proxy_get_instance_private (EvObjectProxy *self) { return (((gpointer) ((guint8*) (self ) + (glong) (EvObjectProxy_private_offset)))); } GType ev_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 = ev_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 ev_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 ("EvObjectProxy" ), sizeof (EvObjectProxyClass), (GClassInitFunc)(void (*)(void )) ev_object_proxy_class_intern_init, sizeof (EvObjectProxy), (GInstanceInitFunc)(void (*)(void)) ev_object_proxy_init, (GTypeFlags ) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_object_proxy__ev_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_object_get_type ()), &g_implement_interface_info); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_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; } |
2934 | G_IMPLEMENT_INTERFACE (EV_TYPE_OBJECT, ev_object_proxy__ev_object_iface_init)static void ev_object_proxy_init (EvObjectProxy *self); static void ev_object_proxy_class_init (EvObjectProxyClass *klass); static GType ev_object_proxy_get_type_once (void); static gpointer ev_object_proxy_parent_class = ((void*)0); static gint EvObjectProxy_private_offset ; static void ev_object_proxy_class_intern_init (gpointer klass ) { ev_object_proxy_parent_class = g_type_class_peek_parent ( klass); if (EvObjectProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvObjectProxy_private_offset); ev_object_proxy_class_init ((EvObjectProxyClass*) klass); } __attribute__ ((__unused__) ) static inline gpointer ev_object_proxy_get_instance_private (EvObjectProxy *self) { return (((gpointer) ((guint8*) (self ) + (glong) (EvObjectProxy_private_offset)))); } GType ev_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 = ev_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 ev_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 ("EvObjectProxy" ), sizeof (EvObjectProxyClass), (GClassInitFunc)(void (*)(void )) ev_object_proxy_class_intern_init, sizeof (EvObjectProxy), (GInstanceInitFunc)(void (*)(void)) ev_object_proxy_init, (GTypeFlags ) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_object_proxy__ev_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_object_get_type ()), &g_implement_interface_info); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_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; } |
2935 | G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, ev_object_proxy__g_dbus_object_iface_init))static void ev_object_proxy_init (EvObjectProxy *self); static void ev_object_proxy_class_init (EvObjectProxyClass *klass); static GType ev_object_proxy_get_type_once (void); static gpointer ev_object_proxy_parent_class = ((void*)0); static gint EvObjectProxy_private_offset ; static void ev_object_proxy_class_intern_init (gpointer klass ) { ev_object_proxy_parent_class = g_type_class_peek_parent ( klass); if (EvObjectProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvObjectProxy_private_offset); ev_object_proxy_class_init ((EvObjectProxyClass*) klass); } __attribute__ ((__unused__) ) static inline gpointer ev_object_proxy_get_instance_private (EvObjectProxy *self) { return (((gpointer) ((guint8*) (self ) + (glong) (EvObjectProxy_private_offset)))); } GType ev_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 = ev_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 ev_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 ("EvObjectProxy" ), sizeof (EvObjectProxyClass), (GClassInitFunc)(void (*)(void )) ev_object_proxy_class_intern_init, sizeof (EvObjectProxy), (GInstanceInitFunc)(void (*)(void)) ev_object_proxy_init, (GTypeFlags ) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_object_proxy__ev_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_object_get_type ()), &g_implement_interface_info); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_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; } |
2936 | |
2937 | static void |
2938 | ev_object_proxy_init (EvObjectProxy *object G_GNUC_UNUSED__attribute__ ((__unused__))) |
2939 | { |
2940 | } |
2941 | |
2942 | static void |
2943 | ev_object_proxy_set_property (GObject *gobject, |
2944 | guint prop_id, |
2945 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
2946 | GParamSpec *pspec) |
2947 | { |
2948 | 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'" , "ev-gdbus-generated.c", 2948, ("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); |
2949 | } |
2950 | |
2951 | static void |
2952 | ev_object_proxy_get_property (GObject *gobject, |
2953 | guint prop_id, |
2954 | GValue *value, |
2955 | GParamSpec *pspec) |
2956 | { |
2957 | EvObjectProxy *object = EV_OBJECT_PROXY (gobject)((((EvObjectProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((gobject)), ((ev_object_proxy_get_type ())))))); |
2958 | GDBusInterface *interface; |
2959 | |
2960 | switch (prop_id) |
2961 | { |
2962 | case 1: |
2963 | 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.cafe.lector.Application"); |
2964 | g_value_take_object (value, interface); |
2965 | break; |
2966 | |
2967 | case 2: |
2968 | 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.cafe.lector.Window"); |
2969 | g_value_take_object (value, interface); |
2970 | break; |
2971 | |
2972 | default: |
2973 | 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'" , "ev-gdbus-generated.c", 2973, ("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); |
2974 | break; |
2975 | } |
2976 | } |
2977 | |
2978 | static void |
2979 | ev_object_proxy_class_init (EvObjectProxyClass *klass) |
2980 | { |
2981 | GObjectClass *gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
2982 | |
2983 | gobject_class->set_property = ev_object_proxy_set_property; |
2984 | gobject_class->get_property = ev_object_proxy_get_property; |
2985 | |
2986 | g_object_class_override_property (gobject_class, 1, "lector-application"); |
2987 | g_object_class_override_property (gobject_class, 2, "lector-window"); |
2988 | } |
2989 | |
2990 | /** |
2991 | * ev_object_proxy_new: |
2992 | * @connection: A #GDBusConnection. |
2993 | * @object_path: An object path. |
2994 | * |
2995 | * Creates a new proxy object. |
2996 | * |
2997 | * Returns: (transfer full): The proxy object. |
2998 | */ |
2999 | EvObjectProxy * |
3000 | ev_object_proxy_new (GDBusConnection *connection, |
3001 | const gchar *object_path) |
3002 | { |
3003 | 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); |
3004 | 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); |
3005 | return EV_OBJECT_PROXY (g_object_new (EV_TYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path", object_path, NULL))((((EvObjectProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((g_object_new ((ev_object_proxy_get_type ()), "g-connection" , connection, "g-object-path", object_path, ((void*)0)))), (( ev_object_proxy_get_type ())))))); |
3006 | } |
3007 | |
3008 | /** |
3009 | * EvObjectSkeleton: |
3010 | * |
3011 | * The #EvObjectSkeleton structure contains only private data and should only be accessed using the provided API. |
3012 | */ |
3013 | |
3014 | /** |
3015 | * EvObjectSkeletonClass: |
3016 | * @parent_class: The parent class. |
3017 | * |
3018 | * Class structure for #EvObjectSkeleton. |
3019 | */ |
3020 | |
3021 | static void |
3022 | ev_object_skeleton__ev_object_iface_init (EvObjectIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
3023 | { |
3024 | } |
3025 | |
3026 | |
3027 | static void |
3028 | ev_object_skeleton__g_dbus_object_iface_init (GDBusObjectIface *iface) |
3029 | { |
3030 | iface->interface_added = ev_object_notify; |
3031 | iface->interface_removed = ev_object_notify; |
3032 | } |
3033 | |
3034 | G_DEFINE_TYPE_WITH_CODE (EvObjectSkeleton, ev_object_skeleton, G_TYPE_DBUS_OBJECT_SKELETON,static void ev_object_skeleton_init (EvObjectSkeleton *self); static void ev_object_skeleton_class_init (EvObjectSkeletonClass *klass); static GType ev_object_skeleton_get_type_once (void ); static gpointer ev_object_skeleton_parent_class = ((void*) 0); static gint EvObjectSkeleton_private_offset; static void ev_object_skeleton_class_intern_init (gpointer klass) { ev_object_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvObjectSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvObjectSkeleton_private_offset); ev_object_skeleton_class_init ((EvObjectSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_object_skeleton_get_instance_private (EvObjectSkeleton *self) { return (((gpointer) ((guint8*) (self ) + (glong) (EvObjectSkeleton_private_offset)))); } GType ev_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 = ev_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 ev_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 ("EvObjectSkeleton"), sizeof (EvObjectSkeletonClass), (GClassInitFunc )(void (*)(void)) ev_object_skeleton_class_intern_init, sizeof (EvObjectSkeleton), (GInstanceInitFunc)(void (*)(void)) ev_object_skeleton_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_object_skeleton__ev_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_object_get_type ()), &g_implement_interface_info); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_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; } |
3035 | G_IMPLEMENT_INTERFACE (EV_TYPE_OBJECT, ev_object_skeleton__ev_object_iface_init)static void ev_object_skeleton_init (EvObjectSkeleton *self); static void ev_object_skeleton_class_init (EvObjectSkeletonClass *klass); static GType ev_object_skeleton_get_type_once (void ); static gpointer ev_object_skeleton_parent_class = ((void*) 0); static gint EvObjectSkeleton_private_offset; static void ev_object_skeleton_class_intern_init (gpointer klass) { ev_object_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvObjectSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvObjectSkeleton_private_offset); ev_object_skeleton_class_init ((EvObjectSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_object_skeleton_get_instance_private (EvObjectSkeleton *self) { return (((gpointer) ((guint8*) (self ) + (glong) (EvObjectSkeleton_private_offset)))); } GType ev_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 = ev_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 ev_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 ("EvObjectSkeleton"), sizeof (EvObjectSkeletonClass), (GClassInitFunc )(void (*)(void)) ev_object_skeleton_class_intern_init, sizeof (EvObjectSkeleton), (GInstanceInitFunc)(void (*)(void)) ev_object_skeleton_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_object_skeleton__ev_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_object_get_type ()), &g_implement_interface_info); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_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; } |
3036 | G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, ev_object_skeleton__g_dbus_object_iface_init))static void ev_object_skeleton_init (EvObjectSkeleton *self); static void ev_object_skeleton_class_init (EvObjectSkeletonClass *klass); static GType ev_object_skeleton_get_type_once (void ); static gpointer ev_object_skeleton_parent_class = ((void*) 0); static gint EvObjectSkeleton_private_offset; static void ev_object_skeleton_class_intern_init (gpointer klass) { ev_object_skeleton_parent_class = g_type_class_peek_parent (klass); if (EvObjectSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvObjectSkeleton_private_offset); ev_object_skeleton_class_init ((EvObjectSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_object_skeleton_get_instance_private (EvObjectSkeleton *self) { return (((gpointer) ((guint8*) (self ) + (glong) (EvObjectSkeleton_private_offset)))); } GType ev_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 = ev_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 ev_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 ("EvObjectSkeleton"), sizeof (EvObjectSkeletonClass), (GClassInitFunc )(void (*)(void)) ev_object_skeleton_class_intern_init, sizeof (EvObjectSkeleton), (GInstanceInitFunc)(void (*)(void)) ev_object_skeleton_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) ev_object_skeleton__ev_object_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (ev_object_get_type ()), &g_implement_interface_info); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) ev_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; } |
3037 | |
3038 | static void |
3039 | ev_object_skeleton_init (EvObjectSkeleton *object G_GNUC_UNUSED__attribute__ ((__unused__))) |
3040 | { |
3041 | } |
3042 | |
3043 | static void |
3044 | ev_object_skeleton_set_property (GObject *gobject, |
3045 | guint prop_id, |
3046 | const GValue *value, |
3047 | GParamSpec *pspec) |
3048 | { |
3049 | EvObjectSkeleton *object = EV_OBJECT_SKELETON (gobject)((((EvObjectSkeleton*) (void *) g_type_check_instance_cast (( GTypeInstance*) ((gobject)), ((ev_object_skeleton_get_type () )))))); |
3050 | GDBusInterfaceSkeleton *interface; |
3051 | |
3052 | switch (prop_id) |
3053 | { |
3054 | case 1: |
3055 | interface = g_value_get_object (value); |
3056 | if (interface != NULL((void*)0)) |
3057 | { |
3058 | g_warn_if_fail (EV_IS_LECTOR_APPLICATION (interface))do { if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance *) ((interface)); GType __t = ((ev_lector_application_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), "ev-gdbus-generated.c" , 3058, ((const char*) (__func__)), "EV_IS_LECTOR_APPLICATION (interface)" ); } while (0); |
3059 | 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); |
3060 | } |
3061 | else |
3062 | { |
3063 | 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.cafe.lector.Application"); |
3064 | } |
3065 | break; |
3066 | |
3067 | case 2: |
3068 | interface = g_value_get_object (value); |
3069 | if (interface != NULL((void*)0)) |
3070 | { |
3071 | g_warn_if_fail (EV_IS_LECTOR_WINDOW (interface))do { if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance *) ((interface)); GType __t = ((ev_lector_window_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), "ev-gdbus-generated.c" , 3071, ((const char*) (__func__)), "EV_IS_LECTOR_WINDOW (interface)" ); } while (0); |
3072 | 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); |
3073 | } |
3074 | else |
3075 | { |
3076 | 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.cafe.lector.Window"); |
3077 | } |
3078 | break; |
3079 | |
3080 | default: |
3081 | 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'" , "ev-gdbus-generated.c", 3081, ("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); |
3082 | break; |
3083 | } |
3084 | } |
3085 | |
3086 | static void |
3087 | ev_object_skeleton_get_property (GObject *gobject, |
3088 | guint prop_id, |
3089 | GValue *value, |
3090 | GParamSpec *pspec) |
3091 | { |
3092 | EvObjectSkeleton *object = EV_OBJECT_SKELETON (gobject)((((EvObjectSkeleton*) (void *) g_type_check_instance_cast (( GTypeInstance*) ((gobject)), ((ev_object_skeleton_get_type () )))))); |
3093 | GDBusInterface *interface; |
3094 | |
3095 | switch (prop_id) |
3096 | { |
3097 | case 1: |
3098 | 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.cafe.lector.Application"); |
3099 | g_value_take_object (value, interface); |
3100 | break; |
3101 | |
3102 | case 2: |
3103 | 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.cafe.lector.Window"); |
3104 | g_value_take_object (value, interface); |
3105 | break; |
3106 | |
3107 | default: |
3108 | 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'" , "ev-gdbus-generated.c", 3108, ("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); |
3109 | break; |
3110 | } |
3111 | } |
3112 | |
3113 | static void |
3114 | ev_object_skeleton_class_init (EvObjectSkeletonClass *klass) |
3115 | { |
3116 | GObjectClass *gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
3117 | |
3118 | gobject_class->set_property = ev_object_skeleton_set_property; |
3119 | gobject_class->get_property = ev_object_skeleton_get_property; |
3120 | |
3121 | g_object_class_override_property (gobject_class, 1, "lector-application"); |
3122 | g_object_class_override_property (gobject_class, 2, "lector-window"); |
3123 | } |
3124 | |
3125 | /** |
3126 | * ev_object_skeleton_new: |
3127 | * @object_path: An object path. |
3128 | * |
3129 | * Creates a new skeleton object. |
3130 | * |
3131 | * Returns: (transfer full): The skeleton object. |
3132 | */ |
3133 | EvObjectSkeleton * |
3134 | ev_object_skeleton_new (const gchar *object_path) |
3135 | { |
3136 | 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); |
3137 | return EV_OBJECT_SKELETON (g_object_new (EV_TYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL))((((EvObjectSkeleton*) (void *) g_type_check_instance_cast (( GTypeInstance*) ((g_object_new ((ev_object_skeleton_get_type ( )), "g-object-path", object_path, ((void*)0)))), ((ev_object_skeleton_get_type ())))))); |
3138 | } |
3139 | |
3140 | /** |
3141 | * ev_object_skeleton_set_lector_application: |
3142 | * @object: A #EvObjectSkeleton. |
3143 | * @interface_: (nullable): A #EvLectorApplication or %NULL to clear the interface. |
3144 | * |
3145 | * Sets the #EvLectorApplication instance for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Application.top_of_page">org.cafe.lector.Application</link> on @object. |
3146 | */ |
3147 | void ev_object_skeleton_set_lector_application (EvObjectSkeleton *object, EvLectorApplication *interface_) |
3148 | { |
3149 | g_object_set (G_OBJECT (object)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), (((GType) ((20) << (2)))))))), "lector-application", interface_, NULL((void*)0)); |
3150 | } |
3151 | |
3152 | /** |
3153 | * ev_object_skeleton_set_lector_window: |
3154 | * @object: A #EvObjectSkeleton. |
3155 | * @interface_: (nullable): A #EvLectorWindow or %NULL to clear the interface. |
3156 | * |
3157 | * Sets the #EvLectorWindow instance for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link> on @object. |
3158 | */ |
3159 | void ev_object_skeleton_set_lector_window (EvObjectSkeleton *object, EvLectorWindow *interface_) |
3160 | { |
3161 | g_object_set (G_OBJECT (object)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), (((GType) ((20) << (2)))))))), "lector-window", interface_, NULL((void*)0)); |
3162 | } |
3163 | |
3164 | |
3165 | /* ------------------------------------------------------------------------ |
3166 | * Code for ObjectManager client |
3167 | * ------------------------------------------------------------------------ |
3168 | */ |
3169 | |
3170 | /** |
3171 | * SECTION:EvObjectManagerClient |
3172 | * @title: EvObjectManagerClient |
3173 | * @short_description: Generated GDBusObjectManagerClient type |
3174 | * |
3175 | * This section contains a #GDBusObjectManagerClient that uses ev_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. |
3176 | */ |
3177 | |
3178 | /** |
3179 | * EvObjectManagerClient: |
3180 | * |
3181 | * The #EvObjectManagerClient structure contains only private data and should only be accessed using the provided API. |
3182 | */ |
3183 | |
3184 | /** |
3185 | * EvObjectManagerClientClass: |
3186 | * @parent_class: The parent class. |
3187 | * |
3188 | * Class structure for #EvObjectManagerClient. |
3189 | */ |
3190 | |
3191 | G_DEFINE_TYPE (EvObjectManagerClient, ev_object_manager_client, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT)static void ev_object_manager_client_init (EvObjectManagerClient *self); static void ev_object_manager_client_class_init (EvObjectManagerClientClass *klass); static GType ev_object_manager_client_get_type_once (void); static gpointer ev_object_manager_client_parent_class = ((void*)0); static gint EvObjectManagerClient_private_offset ; static void ev_object_manager_client_class_intern_init (gpointer klass) { ev_object_manager_client_parent_class = g_type_class_peek_parent (klass); if (EvObjectManagerClient_private_offset != 0) g_type_class_adjust_private_offset (klass, &EvObjectManagerClient_private_offset); ev_object_manager_client_class_init ((EvObjectManagerClientClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer ev_object_manager_client_get_instance_private (EvObjectManagerClient *self) { return (((gpointer) ((guint8 *) (self) + (glong) (EvObjectManagerClient_private_offset)))) ; } GType ev_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 = ev_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 ev_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 ("EvObjectManagerClient"), sizeof (EvObjectManagerClientClass ), (GClassInitFunc)(void (*)(void)) ev_object_manager_client_class_intern_init , sizeof (EvObjectManagerClient), (GInstanceInitFunc)(void (* )(void)) ev_object_manager_client_init, (GTypeFlags) 0); { {{ };} } return g_define_type_id; } |
3192 | |
3193 | static void |
3194 | ev_object_manager_client_init (EvObjectManagerClient *manager G_GNUC_UNUSED__attribute__ ((__unused__))) |
3195 | { |
3196 | } |
3197 | |
3198 | static void |
3199 | ev_object_manager_client_class_init (EvObjectManagerClientClass *klass G_GNUC_UNUSED__attribute__ ((__unused__))) |
3200 | { |
3201 | } |
3202 | |
3203 | /** |
3204 | * ev_object_manager_client_get_proxy_type: |
3205 | * @manager: A #GDBusObjectManagerClient. |
3206 | * @object_path: The object path of the remote object (unused). |
3207 | * @interface_name: (nullable): Interface name of the remote object or %NULL to get the object proxy #GType. |
3208 | * @user_data: User data (unused). |
3209 | * |
3210 | * A #GDBusProxyTypeFunc that maps @interface_name to the generated #GDBusObjectProxy derived and #GDBusProxy derived types. |
3211 | * |
3212 | * Returns: A #GDBusProxy derived #GType if @interface_name is not %NULL, otherwise the #GType for #EvObjectProxy. |
3213 | */ |
3214 | GType |
3215 | ev_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__))) |
3216 | { |
3217 | static gsize once_init_value = 0; |
3218 | static GHashTable *lookup_hash; |
3219 | GType ret; |
3220 | |
3221 | if (interface_name == NULL((void*)0)) |
3222 | return EV_TYPE_OBJECT_PROXY(ev_object_proxy_get_type ()); |
3223 | 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)); } ))) |
3224 | { |
3225 | lookup_hash = g_hash_table_new (g_str_hash, g_str_equal); |
3226 | g_hash_table_insert (lookup_hash, (gpointer) "org.cafe.lector.Application", (gpointer) (guintptr) (EV_TYPE_LECTOR_APPLICATION_PROXY(ev_lector_application_proxy_get_type ()))); |
3227 | g_hash_table_insert (lookup_hash, (gpointer) "org.cafe.lector.Window", (gpointer) (guintptr) (EV_TYPE_LECTOR_WINDOW_PROXY(ev_lector_window_proxy_get_type ()))); |
3228 | 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)); })); |
3229 | } |
3230 | ret = (GType) (guintptr) (g_hash_table_lookup (lookup_hash, interface_name)); |
3231 | if (ret == (GType) 0) |
3232 | ret = G_TYPE_DBUS_PROXY(g_dbus_proxy_get_type ()); |
3233 | return ret; |
3234 | } |
3235 | |
3236 | /** |
3237 | * ev_object_manager_client_new: |
3238 | * @connection: A #GDBusConnection. |
3239 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
3240 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
3241 | * @object_path: An object path. |
3242 | * @cancellable: (nullable): A #GCancellable or %NULL. |
3243 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
3244 | * @user_data: User data to pass to @callback. |
3245 | * |
3246 | * Asynchronously creates #GDBusObjectManagerClient using ev_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new() for more details. |
3247 | * |
3248 | * 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()). |
3249 | * You can then call ev_object_manager_client_new_finish() to get the result of the operation. |
3250 | * |
3251 | * See ev_object_manager_client_new_sync() for the synchronous, blocking version of this constructor. |
3252 | */ |
3253 | void |
3254 | ev_object_manager_client_new ( |
3255 | GDBusConnection *connection, |
3256 | GDBusObjectManagerClientFlags flags, |
3257 | const gchar *name, |
3258 | const gchar *object_path, |
3259 | GCancellable *cancellable, |
3260 | GAsyncReadyCallback callback, |
3261 | gpointer user_data) |
3262 | { |
3263 | g_async_initable_new_async (EV_TYPE_OBJECT_MANAGER_CLIENT(ev_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", ev_object_manager_client_get_proxy_type, NULL((void*)0)); |
3264 | } |
3265 | |
3266 | /** |
3267 | * ev_object_manager_client_new_finish: |
3268 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_object_manager_client_new(). |
3269 | * @error: Return location for error or %NULL |
3270 | * |
3271 | * Finishes an operation started with ev_object_manager_client_new(). |
3272 | * |
3273 | * Returns: (transfer full) (type EvObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
3274 | */ |
3275 | GDBusObjectManager * |
3276 | ev_object_manager_client_new_finish ( |
3277 | GAsyncResult *res, |
3278 | GError **error) |
3279 | { |
3280 | GObject *ret; |
3281 | GObject *source_object; |
3282 | source_object = g_async_result_get_source_object (res); |
3283 | 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); |
3284 | g_object_unref (source_object); |
3285 | if (ret != NULL((void*)0)) |
3286 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
3287 | else |
3288 | return NULL((void*)0); |
3289 | } |
3290 | |
3291 | /** |
3292 | * ev_object_manager_client_new_sync: |
3293 | * @connection: A #GDBusConnection. |
3294 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
3295 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
3296 | * @object_path: An object path. |
3297 | * @cancellable: (nullable): A #GCancellable or %NULL. |
3298 | * @error: Return location for error or %NULL |
3299 | * |
3300 | * Synchronously creates #GDBusObjectManagerClient using ev_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new_sync() for more details. |
3301 | * |
3302 | * The calling thread is blocked until a reply is received. |
3303 | * |
3304 | * See ev_object_manager_client_new() for the asynchronous version of this constructor. |
3305 | * |
3306 | * Returns: (transfer full) (type EvObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
3307 | */ |
3308 | GDBusObjectManager * |
3309 | ev_object_manager_client_new_sync ( |
3310 | GDBusConnection *connection, |
3311 | GDBusObjectManagerClientFlags flags, |
3312 | const gchar *name, |
3313 | const gchar *object_path, |
3314 | GCancellable *cancellable, |
3315 | GError **error) |
3316 | { |
3317 | GInitable *ret; |
3318 | ret = g_initable_new (EV_TYPE_OBJECT_MANAGER_CLIENT(ev_object_manager_client_get_type ()), cancellable, error, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", ev_object_manager_client_get_proxy_type, NULL((void*)0)); |
3319 | if (ret != NULL((void*)0)) |
3320 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
3321 | else |
3322 | return NULL((void*)0); |
3323 | } |
3324 | |
3325 | |
3326 | /** |
3327 | * ev_object_manager_client_new_for_bus: |
3328 | * @bus_type: A #GBusType. |
3329 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
3330 | * @name: A bus name (well-known or unique). |
3331 | * @object_path: An object path. |
3332 | * @cancellable: (nullable): A #GCancellable or %NULL. |
3333 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
3334 | * @user_data: User data to pass to @callback. |
3335 | * |
3336 | * Like ev_object_manager_client_new() but takes a #GBusType instead of a #GDBusConnection. |
3337 | * |
3338 | * 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()). |
3339 | * You can then call ev_object_manager_client_new_for_bus_finish() to get the result of the operation. |
3340 | * |
3341 | * See ev_object_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
3342 | */ |
3343 | void |
3344 | ev_object_manager_client_new_for_bus ( |
3345 | GBusType bus_type, |
3346 | GDBusObjectManagerClientFlags flags, |
3347 | const gchar *name, |
3348 | const gchar *object_path, |
3349 | GCancellable *cancellable, |
3350 | GAsyncReadyCallback callback, |
3351 | gpointer user_data) |
3352 | { |
3353 | g_async_initable_new_async (EV_TYPE_OBJECT_MANAGER_CLIENT(ev_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", ev_object_manager_client_get_proxy_type, NULL((void*)0)); |
3354 | } |
3355 | |
3356 | /** |
3357 | * ev_object_manager_client_new_for_bus_finish: |
3358 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_object_manager_client_new_for_bus(). |
3359 | * @error: Return location for error or %NULL |
3360 | * |
3361 | * Finishes an operation started with ev_object_manager_client_new_for_bus(). |
3362 | * |
3363 | * Returns: (transfer full) (type EvObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
3364 | */ |
3365 | GDBusObjectManager * |
3366 | ev_object_manager_client_new_for_bus_finish ( |
3367 | GAsyncResult *res, |
3368 | GError **error) |
3369 | { |
3370 | GObject *ret; |
3371 | GObject *source_object; |
3372 | source_object = g_async_result_get_source_object (res); |
3373 | 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); |
3374 | g_object_unref (source_object); |
3375 | if (ret != NULL((void*)0)) |
3376 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
3377 | else |
3378 | return NULL((void*)0); |
3379 | } |
3380 | |
3381 | /** |
3382 | * ev_object_manager_client_new_for_bus_sync: |
3383 | * @bus_type: A #GBusType. |
3384 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
3385 | * @name: A bus name (well-known or unique). |
3386 | * @object_path: An object path. |
3387 | * @cancellable: (nullable): A #GCancellable or %NULL. |
3388 | * @error: Return location for error or %NULL |
3389 | * |
3390 | * Like ev_object_manager_client_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
3391 | * |
3392 | * The calling thread is blocked until a reply is received. |
3393 | * |
3394 | * See ev_object_manager_client_new_for_bus() for the asynchronous version of this constructor. |
3395 | * |
3396 | * Returns: (transfer full) (type EvObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
3397 | */ |
3398 | GDBusObjectManager * |
3399 | ev_object_manager_client_new_for_bus_sync ( |
3400 | GBusType bus_type, |
3401 | GDBusObjectManagerClientFlags flags, |
3402 | const gchar *name, |
3403 | const gchar *object_path, |
3404 | GCancellable *cancellable, |
3405 | GError **error) |
3406 | { |
3407 | GInitable *ret; |
3408 | ret = g_initable_new (EV_TYPE_OBJECT_MANAGER_CLIENT(ev_object_manager_client_get_type ()), cancellable, error, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", ev_object_manager_client_get_proxy_type, NULL((void*)0)); |
3409 | if (ret != NULL((void*)0)) |
3410 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
3411 | else |
3412 | return NULL((void*)0); |
3413 | } |
3414 | |
3415 |