| 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 | (87 + 1) << 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 | (87 + 1) << 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 | (87 + 1) << 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 | (87 + 1) << 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 | (87 + 1) << 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 GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 1433 | /* coverity[missing_lock : SUPPRESS] */ |
| 1434 | g_clear_pointer (&skeleton->priv->changed_properties_idle_source, g_source_destroy)do { _Static_assert (sizeof *(&skeleton->priv->changed_properties_idle_source ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ ((&skeleton->priv->changed_properties_idle_source) ) _pp = (&skeleton->priv->changed_properties_idle_source ); __typeof__ (*(&skeleton->priv->changed_properties_idle_source )) _ptr = *_pp; *_pp = ((void*)0); if (_ptr) (g_source_destroy ) (_ptr); } while (0); |
| 1435 | #else |
| 1436 | if (skeleton->priv->changed_properties_idle_source != NULL((void*)0)) |
| 1437 | g_source_destroy (skeleton->priv->changed_properties_idle_source); |
| 1438 | skeleton->priv->changed_properties_idle_source = NULL((void*)0); |
| 1439 | #endif |
| 1440 | g_main_context_unref (skeleton->priv->context); |
| 1441 | g_mutex_clear (&skeleton->priv->lock); |
| 1442 | 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); |
| 1443 | } |
| 1444 | |
| 1445 | static void |
| 1446 | ev_lector_application_skeleton_init (EvLectorApplicationSkeleton *skeleton) |
| 1447 | { |
| 1448 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 1449 | skeleton->priv = ev_lector_application_skeleton_get_instance_private (skeleton); |
| 1450 | #else |
| 1451 | 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\"" ; |
| 1452 | #endif |
| 1453 | |
| 1454 | g_mutex_init (&skeleton->priv->lock); |
| 1455 | skeleton->priv->context = g_main_context_ref_thread_default (); |
| 1456 | } |
| 1457 | |
| 1458 | static void |
| 1459 | ev_lector_application_skeleton_class_init (EvLectorApplicationSkeletonClass *klass) |
| 1460 | { |
| 1461 | GObjectClass *gobject_class; |
| 1462 | GDBusInterfaceSkeletonClass *skeleton_class; |
| 1463 | |
| 1464 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
| 1465 | gobject_class->finalize = ev_lector_application_skeleton_finalize; |
| 1466 | |
| 1467 | skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass)((((GDBusInterfaceSkeletonClass*) (void *) g_type_check_class_cast ((GTypeClass*) ((klass)), ((g_dbus_interface_skeleton_get_type ())))))); |
| 1468 | skeleton_class->get_info = ev_lector_application_skeleton_dbus_interface_get_info; |
| 1469 | skeleton_class->get_properties = ev_lector_application_skeleton_dbus_interface_get_properties; |
| 1470 | skeleton_class->flush = ev_lector_application_skeleton_dbus_interface_flush; |
| 1471 | skeleton_class->get_vtable = ev_lector_application_skeleton_dbus_interface_get_vtable; |
| 1472 | |
| 1473 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 1474 | g_type_class_add_private (klass, sizeof (EvLectorApplicationSkeletonPrivate)); |
| 1475 | #endif |
| 1476 | } |
| 1477 | |
| 1478 | static void |
| 1479 | ev_lector_application_skeleton_iface_init (EvLectorApplicationIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 1480 | { |
| 1481 | } |
| 1482 | |
| 1483 | /** |
| 1484 | * ev_lector_application_skeleton_new: |
| 1485 | * |
| 1486 | * 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>. |
| 1487 | * |
| 1488 | * Returns: (transfer full) (type EvLectorApplicationSkeleton): The skeleton object. |
| 1489 | */ |
| 1490 | EvLectorApplication * |
| 1491 | ev_lector_application_skeleton_new (void) |
| 1492 | { |
| 1493 | 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 ()))))) ); |
| 1494 | } |
| 1495 | |
| 1496 | /* ------------------------------------------------------------------------ |
| 1497 | * Code for interface org.cafe.lector.Window |
| 1498 | * ------------------------------------------------------------------------ |
| 1499 | */ |
| 1500 | |
| 1501 | /** |
| 1502 | * SECTION:EvLectorWindow |
| 1503 | * @title: EvLectorWindow |
| 1504 | * @short_description: Generated C code for the org.cafe.lector.Window D-Bus interface |
| 1505 | * |
| 1506 | * 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. |
| 1507 | */ |
| 1508 | |
| 1509 | enum |
| 1510 | { |
| 1511 | EV__LECTOR_WINDOW_SYNC_SOURCE, |
| 1512 | EV__LECTOR_WINDOW_CLOSED, |
| 1513 | EV__LECTOR_WINDOW_DOCUMENT_LOADED, |
| 1514 | }; |
| 1515 | |
| 1516 | static unsigned EV__LECTOR_WINDOW_SIGNALS[3] = { 0 }; |
| 1517 | |
| 1518 | /* ---- Introspection data for org.cafe.lector.Window ---- */ |
| 1519 | |
| 1520 | static const _ExtendedGDBusArgInfo _ev_lector_window_method_info_sync_view_IN_ARG_source_file = |
| 1521 | { |
| 1522 | { |
| 1523 | -1, |
| 1524 | (gchar *) "source_file", |
| 1525 | (gchar *) "s", |
| 1526 | NULL((void*)0) |
| 1527 | }, |
| 1528 | FALSE(0) |
| 1529 | }; |
| 1530 | |
| 1531 | static const _ExtendedGDBusArgInfo _ev_lector_window_method_info_sync_view_IN_ARG_source_point = |
| 1532 | { |
| 1533 | { |
| 1534 | -1, |
| 1535 | (gchar *) "source_point", |
| 1536 | (gchar *) "(ii)", |
| 1537 | NULL((void*)0) |
| 1538 | }, |
| 1539 | FALSE(0) |
| 1540 | }; |
| 1541 | |
| 1542 | static const _ExtendedGDBusArgInfo _ev_lector_window_method_info_sync_view_IN_ARG_timestamp = |
| 1543 | { |
| 1544 | { |
| 1545 | -1, |
| 1546 | (gchar *) "timestamp", |
| 1547 | (gchar *) "u", |
| 1548 | NULL((void*)0) |
| 1549 | }, |
| 1550 | FALSE(0) |
| 1551 | }; |
| 1552 | |
| 1553 | static const GDBusArgInfo * const _ev_lector_window_method_info_sync_view_IN_ARG_pointers[] = |
| 1554 | { |
| 1555 | &_ev_lector_window_method_info_sync_view_IN_ARG_source_file.parent_struct, |
| 1556 | &_ev_lector_window_method_info_sync_view_IN_ARG_source_point.parent_struct, |
| 1557 | &_ev_lector_window_method_info_sync_view_IN_ARG_timestamp.parent_struct, |
| 1558 | NULL((void*)0) |
| 1559 | }; |
| 1560 | |
| 1561 | static const _ExtendedGDBusMethodInfo _ev_lector_window_method_info_sync_view = |
| 1562 | { |
| 1563 | { |
| 1564 | -1, |
| 1565 | (gchar *) "SyncView", |
| 1566 | (GDBusArgInfo **) &_ev_lector_window_method_info_sync_view_IN_ARG_pointers, |
| 1567 | NULL((void*)0), |
| 1568 | NULL((void*)0) |
| 1569 | }, |
| 1570 | "handle-sync-view", |
| 1571 | FALSE(0) |
| 1572 | }; |
| 1573 | |
| 1574 | static const GDBusMethodInfo * const _ev_lector_window_method_info_pointers[] = |
| 1575 | { |
| 1576 | &_ev_lector_window_method_info_sync_view.parent_struct, |
| 1577 | NULL((void*)0) |
| 1578 | }; |
| 1579 | |
| 1580 | static const _ExtendedGDBusArgInfo _ev_lector_window_signal_info_sync_source_ARG_source_file = |
| 1581 | { |
| 1582 | { |
| 1583 | -1, |
| 1584 | (gchar *) "source_file", |
| 1585 | (gchar *) "s", |
| 1586 | NULL((void*)0) |
| 1587 | }, |
| 1588 | FALSE(0) |
| 1589 | }; |
| 1590 | |
| 1591 | static const _ExtendedGDBusArgInfo _ev_lector_window_signal_info_sync_source_ARG_source_point = |
| 1592 | { |
| 1593 | { |
| 1594 | -1, |
| 1595 | (gchar *) "source_point", |
| 1596 | (gchar *) "(ii)", |
| 1597 | NULL((void*)0) |
| 1598 | }, |
| 1599 | FALSE(0) |
| 1600 | }; |
| 1601 | |
| 1602 | static const _ExtendedGDBusArgInfo _ev_lector_window_signal_info_sync_source_ARG_timestamp = |
| 1603 | { |
| 1604 | { |
| 1605 | -1, |
| 1606 | (gchar *) "timestamp", |
| 1607 | (gchar *) "u", |
| 1608 | NULL((void*)0) |
| 1609 | }, |
| 1610 | FALSE(0) |
| 1611 | }; |
| 1612 | |
| 1613 | static const GDBusArgInfo * const _ev_lector_window_signal_info_sync_source_ARG_pointers[] = |
| 1614 | { |
| 1615 | &_ev_lector_window_signal_info_sync_source_ARG_source_file.parent_struct, |
| 1616 | &_ev_lector_window_signal_info_sync_source_ARG_source_point.parent_struct, |
| 1617 | &_ev_lector_window_signal_info_sync_source_ARG_timestamp.parent_struct, |
| 1618 | NULL((void*)0) |
| 1619 | }; |
| 1620 | |
| 1621 | static const _ExtendedGDBusSignalInfo _ev_lector_window_signal_info_sync_source = |
| 1622 | { |
| 1623 | { |
| 1624 | -1, |
| 1625 | (gchar *) "SyncSource", |
| 1626 | (GDBusArgInfo **) &_ev_lector_window_signal_info_sync_source_ARG_pointers, |
| 1627 | NULL((void*)0) |
| 1628 | }, |
| 1629 | "sync-source" |
| 1630 | }; |
| 1631 | |
| 1632 | static const _ExtendedGDBusSignalInfo _ev_lector_window_signal_info_closed = |
| 1633 | { |
| 1634 | { |
| 1635 | -1, |
| 1636 | (gchar *) "Closed", |
| 1637 | NULL((void*)0), |
| 1638 | NULL((void*)0) |
| 1639 | }, |
| 1640 | "closed" |
| 1641 | }; |
| 1642 | |
| 1643 | static const _ExtendedGDBusArgInfo _ev_lector_window_signal_info_document_loaded_ARG_uri = |
| 1644 | { |
| 1645 | { |
| 1646 | -1, |
| 1647 | (gchar *) "uri", |
| 1648 | (gchar *) "s", |
| 1649 | NULL((void*)0) |
| 1650 | }, |
| 1651 | FALSE(0) |
| 1652 | }; |
| 1653 | |
| 1654 | static const GDBusArgInfo * const _ev_lector_window_signal_info_document_loaded_ARG_pointers[] = |
| 1655 | { |
| 1656 | &_ev_lector_window_signal_info_document_loaded_ARG_uri.parent_struct, |
| 1657 | NULL((void*)0) |
| 1658 | }; |
| 1659 | |
| 1660 | static const _ExtendedGDBusSignalInfo _ev_lector_window_signal_info_document_loaded = |
| 1661 | { |
| 1662 | { |
| 1663 | -1, |
| 1664 | (gchar *) "DocumentLoaded", |
| 1665 | (GDBusArgInfo **) &_ev_lector_window_signal_info_document_loaded_ARG_pointers, |
| 1666 | NULL((void*)0) |
| 1667 | }, |
| 1668 | "document-loaded" |
| 1669 | }; |
| 1670 | |
| 1671 | static const GDBusSignalInfo * const _ev_lector_window_signal_info_pointers[] = |
| 1672 | { |
| 1673 | &_ev_lector_window_signal_info_sync_source.parent_struct, |
| 1674 | &_ev_lector_window_signal_info_closed.parent_struct, |
| 1675 | &_ev_lector_window_signal_info_document_loaded.parent_struct, |
| 1676 | NULL((void*)0) |
| 1677 | }; |
| 1678 | |
| 1679 | static const _ExtendedGDBusInterfaceInfo _ev_lector_window_interface_info = |
| 1680 | { |
| 1681 | { |
| 1682 | -1, |
| 1683 | (gchar *) "org.cafe.lector.Window", |
| 1684 | (GDBusMethodInfo **) &_ev_lector_window_method_info_pointers, |
| 1685 | (GDBusSignalInfo **) &_ev_lector_window_signal_info_pointers, |
| 1686 | NULL((void*)0), |
| 1687 | NULL((void*)0) |
| 1688 | }, |
| 1689 | "lector-window", |
| 1690 | }; |
| 1691 | |
| 1692 | |
| 1693 | /** |
| 1694 | * ev_lector_window_interface_info: |
| 1695 | * |
| 1696 | * 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. |
| 1697 | * |
| 1698 | * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. |
| 1699 | */ |
| 1700 | GDBusInterfaceInfo * |
| 1701 | ev_lector_window_interface_info (void) |
| 1702 | { |
| 1703 | return (GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct; |
| 1704 | } |
| 1705 | |
| 1706 | /** |
| 1707 | * ev_lector_window_override_properties: |
| 1708 | * @klass: The class structure for a #GObject derived class. |
| 1709 | * @property_id_begin: The property id to assign to the first overridden property. |
| 1710 | * |
| 1711 | * Overrides all #GObject properties in the #EvLectorWindow interface for a concrete class. |
| 1712 | * The properties are overridden in the order they are defined. |
| 1713 | * |
| 1714 | * Returns: The last property id. |
| 1715 | */ |
| 1716 | guint |
| 1717 | ev_lector_window_override_properties (GObjectClass *klass G_GNUC_UNUSED__attribute__ ((__unused__)), guint property_id_begin) |
| 1718 | { |
| 1719 | return property_id_begin - 1; |
| 1720 | } |
| 1721 | |
| 1722 | |
| 1723 | inline static void |
| 1724 | ev_lector_window_signal_marshal_sync_source ( |
| 1725 | GClosure *closure, |
| 1726 | GValue *return_value, |
| 1727 | unsigned int n_param_values, |
| 1728 | const GValue *param_values, |
| 1729 | void *invocation_hint, |
| 1730 | void *marshal_data) |
| 1731 | { |
| 1732 | _g_dbus_codegen_marshal_VOID__STRING_VARIANT_UINT (closure, |
| 1733 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
| 1734 | } |
| 1735 | |
| 1736 | inline static void |
| 1737 | ev_lector_window_signal_marshal_closed ( |
| 1738 | GClosure *closure, |
| 1739 | GValue *return_value, |
| 1740 | unsigned int n_param_values, |
| 1741 | const GValue *param_values, |
| 1742 | void *invocation_hint, |
| 1743 | void *marshal_data) |
| 1744 | { |
| 1745 | g_cclosure_marshal_VOID__VOID (closure, |
| 1746 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
| 1747 | } |
| 1748 | |
| 1749 | inline static void |
| 1750 | ev_lector_window_signal_marshal_document_loaded ( |
| 1751 | GClosure *closure, |
| 1752 | GValue *return_value, |
| 1753 | unsigned int n_param_values, |
| 1754 | const GValue *param_values, |
| 1755 | void *invocation_hint, |
| 1756 | void *marshal_data) |
| 1757 | { |
| 1758 | g_cclosure_marshal_VOID__STRING (closure, |
| 1759 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
| 1760 | } |
| 1761 | |
| 1762 | inline static void |
| 1763 | ev_lector_window_method_marshal_sync_view ( |
| 1764 | GClosure *closure, |
| 1765 | GValue *return_value, |
| 1766 | unsigned int n_param_values, |
| 1767 | const GValue *param_values, |
| 1768 | void *invocation_hint, |
| 1769 | void *marshal_data) |
| 1770 | { |
| 1771 | _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_VARIANT_UINT (closure, |
| 1772 | return_value, n_param_values, param_values, invocation_hint, marshal_data); |
| 1773 | } |
| 1774 | |
| 1775 | |
| 1776 | /** |
| 1777 | * EvLectorWindow: |
| 1778 | * |
| 1779 | * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link>. |
| 1780 | */ |
| 1781 | |
| 1782 | /** |
| 1783 | * EvLectorWindowIface: |
| 1784 | * @parent_iface: The parent interface. |
| 1785 | * @handle_sync_view: Handler for the #EvLectorWindow::handle-sync-view signal. |
| 1786 | * @closed: Handler for the #EvLectorWindow::closed signal. |
| 1787 | * @document_loaded: Handler for the #EvLectorWindow::document-loaded signal. |
| 1788 | * @sync_source: Handler for the #EvLectorWindow::sync-source signal. |
| 1789 | * |
| 1790 | * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-cafe-lector-Window.top_of_page">org.cafe.lector.Window</link>. |
| 1791 | */ |
| 1792 | |
| 1793 | typedef EvLectorWindowIface EvLectorWindowInterface; |
| 1794 | 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 ; } |
| 1795 | |
| 1796 | static void |
| 1797 | ev_lector_window_default_init (EvLectorWindowIface *iface) |
| 1798 | { |
| 1799 | /* GObject signals for incoming D-Bus method calls: */ |
| 1800 | /** |
| 1801 | * EvLectorWindow::handle-sync-view: |
| 1802 | * @object: A #EvLectorWindow. |
| 1803 | * @invocation: A #GDBusMethodInvocation. |
| 1804 | * @arg_source_file: Argument passed by remote caller. |
| 1805 | * @arg_source_point: Argument passed by remote caller. |
| 1806 | * @arg_timestamp: Argument passed by remote caller. |
| 1807 | * |
| 1808 | * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-cafe-lector-Window.SyncView">SyncView()</link> D-Bus method. |
| 1809 | * |
| 1810 | * 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. |
| 1811 | * |
| 1812 | * 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. |
| 1813 | */ |
| 1814 | g_signal_new ("handle-sync-view", |
| 1815 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
| 1816 | G_SIGNAL_RUN_LAST, |
| 1817 | G_STRUCT_OFFSET (EvLectorWindowIface, handle_sync_view)((glong) __builtin_offsetof(EvLectorWindowIface, handle_sync_view )), |
| 1818 | g_signal_accumulator_true_handled, |
| 1819 | NULL((void*)0), |
| 1820 | ev_lector_window_method_marshal_sync_view, |
| 1821 | G_TYPE_BOOLEAN((GType) ((5) << (2))), |
| 1822 | 4, |
| 1823 | 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)))); |
| 1824 | |
| 1825 | /* GObject signals for received D-Bus signals: */ |
| 1826 | /** |
| 1827 | * EvLectorWindow::sync-source: |
| 1828 | * @object: A #EvLectorWindow. |
| 1829 | * @arg_source_file: Argument. |
| 1830 | * @arg_source_point: Argument. |
| 1831 | * @arg_timestamp: Argument. |
| 1832 | * |
| 1833 | * 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. |
| 1834 | * |
| 1835 | * 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. |
| 1836 | */ |
| 1837 | EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_SYNC_SOURCE] = |
| 1838 | g_signal_new ("sync-source", |
| 1839 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
| 1840 | G_SIGNAL_RUN_LAST, |
| 1841 | G_STRUCT_OFFSET (EvLectorWindowIface, sync_source)((glong) __builtin_offsetof(EvLectorWindowIface, sync_source) ), |
| 1842 | NULL((void*)0), |
| 1843 | NULL((void*)0), |
| 1844 | ev_lector_window_signal_marshal_sync_source, |
| 1845 | G_TYPE_NONE((GType) ((1) << (2))), |
| 1846 | 3, G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_VARIANT((GType) ((21) << (2))), G_TYPE_UINT((GType) ((7) << (2)))); |
| 1847 | |
| 1848 | /** |
| 1849 | * EvLectorWindow::closed: |
| 1850 | * @object: A #EvLectorWindow. |
| 1851 | * |
| 1852 | * 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. |
| 1853 | * |
| 1854 | * 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. |
| 1855 | */ |
| 1856 | EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_CLOSED] = |
| 1857 | g_signal_new ("closed", |
| 1858 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
| 1859 | G_SIGNAL_RUN_LAST, |
| 1860 | G_STRUCT_OFFSET (EvLectorWindowIface, closed)((glong) __builtin_offsetof(EvLectorWindowIface, closed)), |
| 1861 | NULL((void*)0), |
| 1862 | NULL((void*)0), |
| 1863 | ev_lector_window_signal_marshal_closed, |
| 1864 | G_TYPE_NONE((GType) ((1) << (2))), |
| 1865 | 0); |
| 1866 | |
| 1867 | /** |
| 1868 | * EvLectorWindow::document-loaded: |
| 1869 | * @object: A #EvLectorWindow. |
| 1870 | * @arg_uri: Argument. |
| 1871 | * |
| 1872 | * 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. |
| 1873 | * |
| 1874 | * 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. |
| 1875 | */ |
| 1876 | EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_DOCUMENT_LOADED] = |
| 1877 | g_signal_new ("document-loaded", |
| 1878 | G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type), |
| 1879 | G_SIGNAL_RUN_LAST, |
| 1880 | G_STRUCT_OFFSET (EvLectorWindowIface, document_loaded)((glong) __builtin_offsetof(EvLectorWindowIface, document_loaded )), |
| 1881 | NULL((void*)0), |
| 1882 | NULL((void*)0), |
| 1883 | ev_lector_window_signal_marshal_document_loaded, |
| 1884 | G_TYPE_NONE((GType) ((1) << (2))), |
| 1885 | 1, G_TYPE_STRING((GType) ((16) << (2)))); |
| 1886 | |
| 1887 | } |
| 1888 | |
| 1889 | /** |
| 1890 | * ev_lector_window_emit_sync_source: |
| 1891 | * @object: A #EvLectorWindow. |
| 1892 | * @arg_source_file: Argument to pass with the signal. |
| 1893 | * @arg_source_point: Argument to pass with the signal. |
| 1894 | * @arg_timestamp: Argument to pass with the signal. |
| 1895 | * |
| 1896 | * Emits the <link linkend="gdbus-signal-org-cafe-lector-Window.SyncSource">"SyncSource"</link> D-Bus signal. |
| 1897 | */ |
| 1898 | void |
| 1899 | ev_lector_window_emit_sync_source ( |
| 1900 | EvLectorWindow *object, |
| 1901 | const gchar *arg_source_file, |
| 1902 | GVariant *arg_source_point, |
| 1903 | guint arg_timestamp) |
| 1904 | { |
| 1905 | g_signal_emit (object, EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_SYNC_SOURCE], 0, arg_source_file, arg_source_point, arg_timestamp); |
| 1906 | } |
| 1907 | |
| 1908 | /** |
| 1909 | * ev_lector_window_emit_closed: |
| 1910 | * @object: A #EvLectorWindow. |
| 1911 | * |
| 1912 | * Emits the <link linkend="gdbus-signal-org-cafe-lector-Window.Closed">"Closed"</link> D-Bus signal. |
| 1913 | */ |
| 1914 | void |
| 1915 | ev_lector_window_emit_closed ( |
| 1916 | EvLectorWindow *object) |
| 1917 | { |
| 1918 | g_signal_emit (object, EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_CLOSED], 0); |
| 1919 | } |
| 1920 | |
| 1921 | /** |
| 1922 | * ev_lector_window_emit_document_loaded: |
| 1923 | * @object: A #EvLectorWindow. |
| 1924 | * @arg_uri: Argument to pass with the signal. |
| 1925 | * |
| 1926 | * Emits the <link linkend="gdbus-signal-org-cafe-lector-Window.DocumentLoaded">"DocumentLoaded"</link> D-Bus signal. |
| 1927 | */ |
| 1928 | void |
| 1929 | ev_lector_window_emit_document_loaded ( |
| 1930 | EvLectorWindow *object, |
| 1931 | const gchar *arg_uri) |
| 1932 | { |
| 1933 | g_signal_emit (object, EV__LECTOR_WINDOW_SIGNALS[EV__LECTOR_WINDOW_DOCUMENT_LOADED], 0, arg_uri); |
| 1934 | } |
| 1935 | |
| 1936 | /** |
| 1937 | * ev_lector_window_call_sync_view: |
| 1938 | * @proxy: A #EvLectorWindowProxy. |
| 1939 | * @arg_source_file: Argument to pass with the method invocation. |
| 1940 | * @arg_source_point: Argument to pass with the method invocation. |
| 1941 | * @arg_timestamp: Argument to pass with the method invocation. |
| 1942 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 1943 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. |
| 1944 | * @user_data: User data to pass to @callback. |
| 1945 | * |
| 1946 | * Asynchronously invokes the <link linkend="gdbus-method-org-cafe-lector-Window.SyncView">SyncView()</link> D-Bus method on @proxy. |
| 1947 | * 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()). |
| 1948 | * You can then call ev_lector_window_call_sync_view_finish() to get the result of the operation. |
| 1949 | * |
| 1950 | * See ev_lector_window_call_sync_view_sync() for the synchronous, blocking version of this method. |
| 1951 | */ |
| 1952 | void |
| 1953 | ev_lector_window_call_sync_view ( |
| 1954 | EvLectorWindow *proxy, |
| 1955 | const gchar *arg_source_file, |
| 1956 | GVariant *arg_source_point, |
| 1957 | guint arg_timestamp, |
| 1958 | GCancellable *cancellable, |
| 1959 | GAsyncReadyCallback callback, |
| 1960 | gpointer user_data) |
| 1961 | { |
| 1962 | g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
| 1963 | "SyncView", |
| 1964 | g_variant_new ("(s@(ii)u)", |
| 1965 | arg_source_file, |
| 1966 | arg_source_point, |
| 1967 | arg_timestamp), |
| 1968 | G_DBUS_CALL_FLAGS_NONE, |
| 1969 | -1, |
| 1970 | cancellable, |
| 1971 | callback, |
| 1972 | user_data); |
| 1973 | } |
| 1974 | |
| 1975 | /** |
| 1976 | * ev_lector_window_call_sync_view_finish: |
| 1977 | * @proxy: A #EvLectorWindowProxy. |
| 1978 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_window_call_sync_view(). |
| 1979 | * @error: Return location for error or %NULL. |
| 1980 | * |
| 1981 | * Finishes an operation started with ev_lector_window_call_sync_view(). |
| 1982 | * |
| 1983 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
| 1984 | */ |
| 1985 | gboolean |
| 1986 | ev_lector_window_call_sync_view_finish ( |
| 1987 | EvLectorWindow *proxy, |
| 1988 | GAsyncResult *res, |
| 1989 | GError **error) |
| 1990 | { |
| 1991 | GVariant *_ret; |
| 1992 | _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); |
| 1993 | if (_ret == NULL((void*)0)) |
| 1994 | goto _out; |
| 1995 | g_variant_get (_ret, |
| 1996 | "()"); |
| 1997 | g_variant_unref (_ret); |
| 1998 | _out: |
| 1999 | return _ret != NULL((void*)0); |
| 2000 | } |
| 2001 | |
| 2002 | /** |
| 2003 | * ev_lector_window_call_sync_view_sync: |
| 2004 | * @proxy: A #EvLectorWindowProxy. |
| 2005 | * @arg_source_file: Argument to pass with the method invocation. |
| 2006 | * @arg_source_point: Argument to pass with the method invocation. |
| 2007 | * @arg_timestamp: Argument to pass with the method invocation. |
| 2008 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 2009 | * @error: Return location for error or %NULL. |
| 2010 | * |
| 2011 | * 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. |
| 2012 | * |
| 2013 | * See ev_lector_window_call_sync_view() for the asynchronous version of this method. |
| 2014 | * |
| 2015 | * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. |
| 2016 | */ |
| 2017 | gboolean |
| 2018 | ev_lector_window_call_sync_view_sync ( |
| 2019 | EvLectorWindow *proxy, |
| 2020 | const gchar *arg_source_file, |
| 2021 | GVariant *arg_source_point, |
| 2022 | guint arg_timestamp, |
| 2023 | GCancellable *cancellable, |
| 2024 | GError **error) |
| 2025 | { |
| 2026 | GVariant *_ret; |
| 2027 | _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), |
| 2028 | "SyncView", |
| 2029 | g_variant_new ("(s@(ii)u)", |
| 2030 | arg_source_file, |
| 2031 | arg_source_point, |
| 2032 | arg_timestamp), |
| 2033 | G_DBUS_CALL_FLAGS_NONE, |
| 2034 | -1, |
| 2035 | cancellable, |
| 2036 | error); |
| 2037 | if (_ret == NULL((void*)0)) |
| 2038 | goto _out; |
| 2039 | g_variant_get (_ret, |
| 2040 | "()"); |
| 2041 | g_variant_unref (_ret); |
| 2042 | _out: |
| 2043 | return _ret != NULL((void*)0); |
| 2044 | } |
| 2045 | |
| 2046 | /** |
| 2047 | * ev_lector_window_complete_sync_view: |
| 2048 | * @object: A #EvLectorWindow. |
| 2049 | * @invocation: (transfer full): A #GDBusMethodInvocation. |
| 2050 | * |
| 2051 | * 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. |
| 2052 | * |
| 2053 | * This method will free @invocation, you cannot use it afterwards. |
| 2054 | */ |
| 2055 | void |
| 2056 | ev_lector_window_complete_sync_view ( |
| 2057 | EvLectorWindow *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2058 | GDBusMethodInvocation *invocation) |
| 2059 | { |
| 2060 | g_dbus_method_invocation_return_value (invocation, |
| 2061 | g_variant_new ("()")); |
| 2062 | } |
| 2063 | |
| 2064 | /* ------------------------------------------------------------------------ */ |
| 2065 | |
| 2066 | /** |
| 2067 | * EvLectorWindowProxy: |
| 2068 | * |
| 2069 | * The #EvLectorWindowProxy structure contains only private data and should only be accessed using the provided API. |
| 2070 | */ |
| 2071 | |
| 2072 | /** |
| 2073 | * EvLectorWindowProxyClass: |
| 2074 | * @parent_class: The parent class. |
| 2075 | * |
| 2076 | * Class structure for #EvLectorWindowProxy. |
| 2077 | */ |
| 2078 | |
| 2079 | struct _EvLectorWindowProxyPrivate |
| 2080 | { |
| 2081 | GData *qdata; |
| 2082 | }; |
| 2083 | |
| 2084 | static void ev_lector_window_proxy_iface_init (EvLectorWindowIface *iface); |
| 2085 | |
| 2086 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 2087 | 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; } |
| 2088 | 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; } |
| 2089 | 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; } |
| 2090 | |
| 2091 | #else |
| 2092 | 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; } |
| 2093 | 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; } |
| 2094 | |
| 2095 | #endif |
| 2096 | static void |
| 2097 | ev_lector_window_proxy_finalize (GObject *object) |
| 2098 | { |
| 2099 | EvLectorWindowProxy *proxy = EV_LECTOR_WINDOW_PROXY (object)((((EvLectorWindowProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_proxy_get_type ())))))); |
| 2100 | g_datalist_clear (&proxy->priv->qdata); |
| 2101 | 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); |
| 2102 | } |
| 2103 | |
| 2104 | static void |
| 2105 | ev_lector_window_proxy_get_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2106 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2107 | GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2108 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 2109 | { |
| 2110 | } |
| 2111 | |
| 2112 | static void |
| 2113 | ev_lector_window_proxy_set_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2114 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2115 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2116 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 2117 | { |
| 2118 | } |
| 2119 | |
| 2120 | static void |
| 2121 | ev_lector_window_proxy_g_signal (GDBusProxy *proxy, |
| 2122 | const gchar *sender_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2123 | const gchar *signal_name, |
| 2124 | GVariant *parameters) |
| 2125 | { |
| 2126 | _ExtendedGDBusSignalInfo *info; |
| 2127 | GVariantIter iter; |
| 2128 | GVariant *child; |
| 2129 | GValue *paramv; |
| 2130 | gsize num_params; |
| 2131 | gsize n; |
| 2132 | guint signal_id; |
| 2133 | info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, signal_name); |
| 2134 | if (info == NULL((void*)0)) |
| 2135 | return; |
| 2136 | num_params = g_variant_n_children (parameters); |
| 2137 | paramv = g_new0 (GValue, num_params + 1)((GValue *) g_malloc0_n ((num_params + 1), sizeof (GValue))); |
| 2138 | g_value_init (¶mv[0], EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ())); |
| 2139 | g_value_set_object (¶mv[0], proxy); |
| 2140 | g_variant_iter_init (&iter, parameters); |
| 2141 | n = 1; |
| 2142 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
| 2143 | { |
| 2144 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; |
| 2145 | if (arg_info->use_gvariant) |
| 2146 | { |
| 2147 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
| 2148 | g_value_set_variant (¶mv[n], child); |
| 2149 | n++; |
| 2150 | } |
| 2151 | else |
| 2152 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
| 2153 | g_variant_unref (child); |
| 2154 | } |
| 2155 | signal_id = g_signal_lookup (info->signal_name, EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ())); |
| 2156 | g_signal_emitv (paramv, signal_id, 0, NULL((void*)0)); |
| 2157 | for (n = 0; n < num_params + 1; n++) |
| 2158 | g_value_unset (¶mv[n]); |
| 2159 | g_free (paramv); |
| 2160 | } |
| 2161 | |
| 2162 | static void |
| 2163 | ev_lector_window_proxy_g_properties_changed (GDBusProxy *_proxy, |
| 2164 | GVariant *changed_properties, |
| 2165 | const gchar *const *invalidated_properties) |
| 2166 | { |
| 2167 | EvLectorWindowProxy *proxy = EV_LECTOR_WINDOW_PROXY (_proxy)((((EvLectorWindowProxy*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_proxy)), ((ev_lector_window_proxy_get_type ())))))); |
| 2168 | guint n; |
| 2169 | const gchar *key; |
| 2170 | GVariantIter *iter; |
| 2171 | _ExtendedGDBusPropertyInfo *info; |
| 2172 | g_variant_get (changed_properties, "a{sv}", &iter); |
| 2173 | while (g_variant_iter_next (iter, "{&sv}", &key, NULL((void*)0))) |
| 2174 | { |
| 2175 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, key); |
| 2176 | 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)); |
| 2177 | if (info != NULL((void*)0)) |
| 2178 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
| 2179 | } |
| 2180 | g_variant_iter_free (iter); |
| 2181 | for (n = 0; invalidated_properties[n] != NULL((void*)0); n++) |
| 2182 | { |
| 2183 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, invalidated_properties[n]); |
| 2184 | 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)); |
| 2185 | if (info != NULL((void*)0)) |
| 2186 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
| 2187 | } |
| 2188 | } |
| 2189 | |
| 2190 | static void |
| 2191 | ev_lector_window_proxy_init (EvLectorWindowProxy *proxy) |
| 2192 | { |
| 2193 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 2194 | proxy->priv = ev_lector_window_proxy_get_instance_private (proxy); |
| 2195 | #else |
| 2196 | 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\"" ; |
| 2197 | #endif |
| 2198 | |
| 2199 | 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 ()); |
| 2200 | } |
| 2201 | |
| 2202 | static void |
| 2203 | ev_lector_window_proxy_class_init (EvLectorWindowProxyClass *klass) |
| 2204 | { |
| 2205 | GObjectClass *gobject_class; |
| 2206 | GDBusProxyClass *proxy_class; |
| 2207 | |
| 2208 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
| 2209 | gobject_class->finalize = ev_lector_window_proxy_finalize; |
| 2210 | gobject_class->get_property = ev_lector_window_proxy_get_property; |
| 2211 | gobject_class->set_property = ev_lector_window_proxy_set_property; |
| 2212 | |
| 2213 | proxy_class = G_DBUS_PROXY_CLASS (klass)((((GDBusProxyClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), ((g_dbus_proxy_get_type ())))))); |
| 2214 | proxy_class->g_signal = ev_lector_window_proxy_g_signal; |
| 2215 | proxy_class->g_properties_changed = ev_lector_window_proxy_g_properties_changed; |
| 2216 | |
| 2217 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 2218 | g_type_class_add_private (klass, sizeof (EvLectorWindowProxyPrivate)); |
| 2219 | #endif |
| 2220 | } |
| 2221 | |
| 2222 | static void |
| 2223 | ev_lector_window_proxy_iface_init (EvLectorWindowIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 2224 | { |
| 2225 | } |
| 2226 | |
| 2227 | /** |
| 2228 | * ev_lector_window_proxy_new: |
| 2229 | * @connection: A #GDBusConnection. |
| 2230 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
| 2231 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
| 2232 | * @object_path: An object path. |
| 2233 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 2234 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
| 2235 | * @user_data: User data to pass to @callback. |
| 2236 | * |
| 2237 | * 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. |
| 2238 | * |
| 2239 | * 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()). |
| 2240 | * You can then call ev_lector_window_proxy_new_finish() to get the result of the operation. |
| 2241 | * |
| 2242 | * See ev_lector_window_proxy_new_sync() for the synchronous, blocking version of this constructor. |
| 2243 | */ |
| 2244 | void |
| 2245 | ev_lector_window_proxy_new ( |
| 2246 | GDBusConnection *connection, |
| 2247 | GDBusProxyFlags flags, |
| 2248 | const gchar *name, |
| 2249 | const gchar *object_path, |
| 2250 | GCancellable *cancellable, |
| 2251 | GAsyncReadyCallback callback, |
| 2252 | gpointer user_data) |
| 2253 | { |
| 2254 | 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)); |
| 2255 | } |
| 2256 | |
| 2257 | /** |
| 2258 | * ev_lector_window_proxy_new_finish: |
| 2259 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_window_proxy_new(). |
| 2260 | * @error: Return location for error or %NULL |
| 2261 | * |
| 2262 | * Finishes an operation started with ev_lector_window_proxy_new(). |
| 2263 | * |
| 2264 | * Returns: (transfer full) (type EvLectorWindowProxy): The constructed proxy object or %NULL if @error is set. |
| 2265 | */ |
| 2266 | EvLectorWindow * |
| 2267 | ev_lector_window_proxy_new_finish ( |
| 2268 | GAsyncResult *res, |
| 2269 | GError **error) |
| 2270 | { |
| 2271 | GObject *ret; |
| 2272 | GObject *source_object; |
| 2273 | source_object = g_async_result_get_source_object (res); |
| 2274 | 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); |
| 2275 | g_object_unref (source_object); |
| 2276 | if (ret != NULL((void*)0)) |
| 2277 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
| 2278 | else |
| 2279 | return NULL((void*)0); |
| 2280 | } |
| 2281 | |
| 2282 | /** |
| 2283 | * ev_lector_window_proxy_new_sync: |
| 2284 | * @connection: A #GDBusConnection. |
| 2285 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
| 2286 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
| 2287 | * @object_path: An object path. |
| 2288 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 2289 | * @error: Return location for error or %NULL |
| 2290 | * |
| 2291 | * 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. |
| 2292 | * |
| 2293 | * The calling thread is blocked until a reply is received. |
| 2294 | * |
| 2295 | * See ev_lector_window_proxy_new() for the asynchronous version of this constructor. |
| 2296 | * |
| 2297 | * Returns: (transfer full) (type EvLectorWindowProxy): The constructed proxy object or %NULL if @error is set. |
| 2298 | */ |
| 2299 | EvLectorWindow * |
| 2300 | ev_lector_window_proxy_new_sync ( |
| 2301 | GDBusConnection *connection, |
| 2302 | GDBusProxyFlags flags, |
| 2303 | const gchar *name, |
| 2304 | const gchar *object_path, |
| 2305 | GCancellable *cancellable, |
| 2306 | GError **error) |
| 2307 | { |
| 2308 | GInitable *ret; |
| 2309 | 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)); |
| 2310 | if (ret != NULL((void*)0)) |
| 2311 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
| 2312 | else |
| 2313 | return NULL((void*)0); |
| 2314 | } |
| 2315 | |
| 2316 | |
| 2317 | /** |
| 2318 | * ev_lector_window_proxy_new_for_bus: |
| 2319 | * @bus_type: A #GBusType. |
| 2320 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
| 2321 | * @name: A bus name (well-known or unique). |
| 2322 | * @object_path: An object path. |
| 2323 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 2324 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
| 2325 | * @user_data: User data to pass to @callback. |
| 2326 | * |
| 2327 | * Like ev_lector_window_proxy_new() but takes a #GBusType instead of a #GDBusConnection. |
| 2328 | * |
| 2329 | * 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()). |
| 2330 | * You can then call ev_lector_window_proxy_new_for_bus_finish() to get the result of the operation. |
| 2331 | * |
| 2332 | * See ev_lector_window_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
| 2333 | */ |
| 2334 | void |
| 2335 | ev_lector_window_proxy_new_for_bus ( |
| 2336 | GBusType bus_type, |
| 2337 | GDBusProxyFlags flags, |
| 2338 | const gchar *name, |
| 2339 | const gchar *object_path, |
| 2340 | GCancellable *cancellable, |
| 2341 | GAsyncReadyCallback callback, |
| 2342 | gpointer user_data) |
| 2343 | { |
| 2344 | 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)); |
| 2345 | } |
| 2346 | |
| 2347 | /** |
| 2348 | * ev_lector_window_proxy_new_for_bus_finish: |
| 2349 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_lector_window_proxy_new_for_bus(). |
| 2350 | * @error: Return location for error or %NULL |
| 2351 | * |
| 2352 | * Finishes an operation started with ev_lector_window_proxy_new_for_bus(). |
| 2353 | * |
| 2354 | * Returns: (transfer full) (type EvLectorWindowProxy): The constructed proxy object or %NULL if @error is set. |
| 2355 | */ |
| 2356 | EvLectorWindow * |
| 2357 | ev_lector_window_proxy_new_for_bus_finish ( |
| 2358 | GAsyncResult *res, |
| 2359 | GError **error) |
| 2360 | { |
| 2361 | GObject *ret; |
| 2362 | GObject *source_object; |
| 2363 | source_object = g_async_result_get_source_object (res); |
| 2364 | 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); |
| 2365 | g_object_unref (source_object); |
| 2366 | if (ret != NULL((void*)0)) |
| 2367 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
| 2368 | else |
| 2369 | return NULL((void*)0); |
| 2370 | } |
| 2371 | |
| 2372 | /** |
| 2373 | * ev_lector_window_proxy_new_for_bus_sync: |
| 2374 | * @bus_type: A #GBusType. |
| 2375 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
| 2376 | * @name: A bus name (well-known or unique). |
| 2377 | * @object_path: An object path. |
| 2378 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 2379 | * @error: Return location for error or %NULL |
| 2380 | * |
| 2381 | * Like ev_lector_window_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
| 2382 | * |
| 2383 | * The calling thread is blocked until a reply is received. |
| 2384 | * |
| 2385 | * See ev_lector_window_proxy_new_for_bus() for the asynchronous version of this constructor. |
| 2386 | * |
| 2387 | * Returns: (transfer full) (type EvLectorWindowProxy): The constructed proxy object or %NULL if @error is set. |
| 2388 | */ |
| 2389 | EvLectorWindow * |
| 2390 | ev_lector_window_proxy_new_for_bus_sync ( |
| 2391 | GBusType bus_type, |
| 2392 | GDBusProxyFlags flags, |
| 2393 | const gchar *name, |
| 2394 | const gchar *object_path, |
| 2395 | GCancellable *cancellable, |
| 2396 | GError **error) |
| 2397 | { |
| 2398 | GInitable *ret; |
| 2399 | 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)); |
| 2400 | if (ret != NULL((void*)0)) |
| 2401 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
| 2402 | else |
| 2403 | return NULL((void*)0); |
| 2404 | } |
| 2405 | |
| 2406 | |
| 2407 | /* ------------------------------------------------------------------------ */ |
| 2408 | |
| 2409 | /** |
| 2410 | * EvLectorWindowSkeleton: |
| 2411 | * |
| 2412 | * The #EvLectorWindowSkeleton structure contains only private data and should only be accessed using the provided API. |
| 2413 | */ |
| 2414 | |
| 2415 | /** |
| 2416 | * EvLectorWindowSkeletonClass: |
| 2417 | * @parent_class: The parent class. |
| 2418 | * |
| 2419 | * Class structure for #EvLectorWindowSkeleton. |
| 2420 | */ |
| 2421 | |
| 2422 | struct _EvLectorWindowSkeletonPrivate |
| 2423 | { |
| 2424 | GValue *properties; |
| 2425 | GList *changed_properties; |
| 2426 | GSource *changed_properties_idle_source; |
| 2427 | GMainContext *context; |
| 2428 | GMutex lock; |
| 2429 | }; |
| 2430 | |
| 2431 | static void |
| 2432 | _ev_lector_window_skeleton_handle_method_call ( |
| 2433 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2434 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2435 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2436 | const gchar *interface_name, |
| 2437 | const gchar *method_name, |
| 2438 | GVariant *parameters, |
| 2439 | GDBusMethodInvocation *invocation, |
| 2440 | gpointer user_data) |
| 2441 | { |
| 2442 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (user_data)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_window_skeleton_get_type ())))))); |
| 2443 | _ExtendedGDBusMethodInfo *info; |
| 2444 | GVariantIter iter; |
| 2445 | GVariant *child; |
| 2446 | GValue *paramv; |
| 2447 | gsize num_params; |
| 2448 | guint num_extra; |
| 2449 | gsize n; |
| 2450 | guint signal_id; |
| 2451 | GValue return_value = G_VALUE_INIT{ 0, { { 0 } } }; |
| 2452 | info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); |
| 2453 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 2453, ((const char*) (__func__ )), "info != NULL"); } while (0); |
| 2454 | num_params = g_variant_n_children (parameters); |
| 2455 | 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 ))); |
| 2456 | n = 0; |
| 2457 | g_value_init (¶mv[n], EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ())); |
| 2458 | g_value_set_object (¶mv[n++], skeleton); |
| 2459 | g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ())); |
| 2460 | g_value_set_object (¶mv[n++], invocation); |
| 2461 | if (info->pass_fdlist) |
| 2462 | { |
| 2463 | #ifdef G_OS_UNIX |
| 2464 | g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST(g_unix_fd_list_get_type ())); |
| 2465 | g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); |
| 2466 | #else |
| 2467 | g_assert_not_reached ()do { g_assertion_message_expr (((gchar*) 0), "ev-gdbus-generated.c" , 2467, ((const char*) (__func__)), ((void*)0)); } while (0); |
| 2468 | #endif |
| 2469 | } |
| 2470 | g_variant_iter_init (&iter, parameters); |
| 2471 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
| 2472 | { |
| 2473 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; |
| 2474 | if (arg_info->use_gvariant) |
| 2475 | { |
| 2476 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
| 2477 | g_value_set_variant (¶mv[n], child); |
| 2478 | n++; |
| 2479 | } |
| 2480 | else |
| 2481 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
| 2482 | g_variant_unref (child); |
| 2483 | } |
| 2484 | signal_id = g_signal_lookup (info->signal_name, EV_TYPE_LECTOR_WINDOW(ev_lector_window_get_type ())); |
| 2485 | g_value_init (&return_value, G_TYPE_BOOLEAN((GType) ((5) << (2)))); |
| 2486 | g_signal_emitv (paramv, signal_id, 0, &return_value); |
| 2487 | if (!g_value_get_boolean (&return_value)) |
| 2488 | 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); |
| 2489 | g_value_unset (&return_value); |
| 2490 | for (n = 0; n < num_params + num_extra; n++) |
| 2491 | g_value_unset (¶mv[n]); |
| 2492 | g_free (paramv); |
| 2493 | } |
| 2494 | |
| 2495 | static GVariant * |
| 2496 | _ev_lector_window_skeleton_handle_get_property ( |
| 2497 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2498 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2499 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2500 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2501 | const gchar *property_name, |
| 2502 | GError **error, |
| 2503 | gpointer user_data) |
| 2504 | { |
| 2505 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (user_data)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_window_skeleton_get_type ())))))); |
| 2506 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
| 2507 | GParamSpec *pspec; |
| 2508 | _ExtendedGDBusPropertyInfo *info; |
| 2509 | GVariant *ret; |
| 2510 | ret = NULL((void*)0); |
| 2511 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, property_name); |
| 2512 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 2512, ((const char*) (__func__ )), "info != NULL"); } while (0); |
| 2513 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
| 2514 | if (pspec == NULL((void*)0)) |
| 2515 | { |
| 2516 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
| 2517 | } |
| 2518 | else |
| 2519 | { |
| 2520 | g_value_init (&value, pspec->value_type); |
| 2521 | g_object_get_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
| 2522 | ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)(g_variant_type_checked_ ((info->parent_struct.signature)) )); |
| 2523 | g_value_unset (&value); |
| 2524 | } |
| 2525 | return ret; |
| 2526 | } |
| 2527 | |
| 2528 | static gboolean |
| 2529 | _ev_lector_window_skeleton_handle_set_property ( |
| 2530 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2531 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2532 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2533 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2534 | const gchar *property_name, |
| 2535 | GVariant *variant, |
| 2536 | GError **error, |
| 2537 | gpointer user_data) |
| 2538 | { |
| 2539 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (user_data)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((ev_lector_window_skeleton_get_type ())))))); |
| 2540 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
| 2541 | GParamSpec *pspec; |
| 2542 | _ExtendedGDBusPropertyInfo *info; |
| 2543 | gboolean ret; |
| 2544 | ret = FALSE(0); |
| 2545 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ev_lector_window_interface_info.parent_struct, property_name); |
| 2546 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( ((gchar*) 0), "ev-gdbus-generated.c", 2546, ((const char*) (__func__ )), "info != NULL"); } while (0); |
| 2547 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
| 2548 | if (pspec == NULL((void*)0)) |
| 2549 | { |
| 2550 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
| 2551 | } |
| 2552 | else |
| 2553 | { |
| 2554 | if (info->use_gvariant) |
| 2555 | g_value_set_variant (&value, variant); |
| 2556 | else |
| 2557 | g_dbus_gvariant_to_gvalue (variant, &value); |
| 2558 | g_object_set_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
| 2559 | g_value_unset (&value); |
| 2560 | ret = TRUE(!(0)); |
| 2561 | } |
| 2562 | return ret; |
| 2563 | } |
| 2564 | |
| 2565 | static const GDBusInterfaceVTable _ev_lector_window_skeleton_vtable = |
| 2566 | { |
| 2567 | _ev_lector_window_skeleton_handle_method_call, |
| 2568 | _ev_lector_window_skeleton_handle_get_property, |
| 2569 | _ev_lector_window_skeleton_handle_set_property, |
| 2570 | {NULL((void*)0)} |
| 2571 | }; |
| 2572 | |
| 2573 | static GDBusInterfaceInfo * |
| 2574 | ev_lector_window_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 2575 | { |
| 2576 | return ev_lector_window_interface_info (); |
| 2577 | } |
| 2578 | |
| 2579 | static GDBusInterfaceVTable * |
| 2580 | ev_lector_window_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 2581 | { |
| 2582 | return (GDBusInterfaceVTable *) &_ev_lector_window_skeleton_vtable; |
| 2583 | } |
| 2584 | |
| 2585 | static GVariant * |
| 2586 | ev_lector_window_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) |
| 2587 | { |
| 2588 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (_skeleton)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_skeleton)), ((ev_lector_window_skeleton_get_type ())))))); |
| 2589 | |
| 2590 | GVariantBuilder builder; |
| 2591 | guint n; |
| 2592 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) >= GLIB_VERSION_2_84(((2) << 16 | (84) << 8)) |
| 2593 | g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
| 2594 | #else |
| 2595 | g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
| 2596 | #endif |
| 2597 | if (_ev_lector_window_interface_info.parent_struct.properties == NULL((void*)0)) |
| 2598 | goto out; |
| 2599 | for (n = 0; _ev_lector_window_interface_info.parent_struct.properties[n] != NULL((void*)0); n++) |
| 2600 | { |
| 2601 | GDBusPropertyInfo *info = _ev_lector_window_interface_info.parent_struct.properties[n]; |
| 2602 | if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) |
| 2603 | { |
| 2604 | GVariant *value; |
| 2605 | 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); |
| 2606 | if (value != NULL((void*)0)) |
| 2607 | { |
| 2608 | g_variant_take_ref (value); |
| 2609 | g_variant_builder_add (&builder, "{sv}", info->name, value); |
| 2610 | g_variant_unref (value); |
| 2611 | } |
| 2612 | } |
| 2613 | } |
| 2614 | out: |
| 2615 | return g_variant_builder_end (&builder); |
| 2616 | } |
| 2617 | |
| 2618 | static void |
| 2619 | ev_lector_window_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 2620 | { |
| 2621 | } |
| 2622 | |
| 2623 | static void |
| 2624 | _ev_lector_window_on_signal_sync_source ( |
| 2625 | EvLectorWindow *object, |
| 2626 | const gchar *arg_source_file, |
| 2627 | GVariant *arg_source_point, |
| 2628 | guint arg_timestamp) |
| 2629 | { |
| 2630 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (object)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_skeleton_get_type ())))))); |
| 2631 | |
| 2632 | GList *connections, *l; |
| 2633 | GVariant *signal_variant; |
| 2634 | 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 ()))))))); |
| 2635 | |
| 2636 | signal_variant = g_variant_ref_sink (g_variant_new ("(s@(ii)u)", |
| 2637 | arg_source_file, |
| 2638 | arg_source_point, |
| 2639 | arg_timestamp)); |
| 2640 | for (l = connections; l != NULL((void*)0); l = l->next) |
| 2641 | { |
| 2642 | GDBusConnection *connection = l->data; |
| 2643 | g_dbus_connection_emit_signal (connection, |
| 2644 | 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", |
| 2645 | signal_variant, NULL((void*)0)); |
| 2646 | } |
| 2647 | g_variant_unref (signal_variant); |
| 2648 | g_list_free_full (connections, g_object_unref); |
| 2649 | } |
| 2650 | |
| 2651 | static void |
| 2652 | _ev_lector_window_on_signal_closed ( |
| 2653 | EvLectorWindow *object) |
| 2654 | { |
| 2655 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (object)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_skeleton_get_type ())))))); |
| 2656 | |
| 2657 | GList *connections, *l; |
| 2658 | GVariant *signal_variant; |
| 2659 | 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 ()))))))); |
| 2660 | |
| 2661 | signal_variant = g_variant_ref_sink (g_variant_new ("()")); |
| 2662 | for (l = connections; l != NULL((void*)0); l = l->next) |
| 2663 | { |
| 2664 | GDBusConnection *connection = l->data; |
| 2665 | g_dbus_connection_emit_signal (connection, |
| 2666 | 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", |
| 2667 | signal_variant, NULL((void*)0)); |
| 2668 | } |
| 2669 | g_variant_unref (signal_variant); |
| 2670 | g_list_free_full (connections, g_object_unref); |
| 2671 | } |
| 2672 | |
| 2673 | static void |
| 2674 | _ev_lector_window_on_signal_document_loaded ( |
| 2675 | EvLectorWindow *object, |
| 2676 | const gchar *arg_uri) |
| 2677 | { |
| 2678 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (object)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_skeleton_get_type ())))))); |
| 2679 | |
| 2680 | GList *connections, *l; |
| 2681 | GVariant *signal_variant; |
| 2682 | 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 ()))))))); |
| 2683 | |
| 2684 | signal_variant = g_variant_ref_sink (g_variant_new ("(s)", |
| 2685 | arg_uri)); |
| 2686 | for (l = connections; l != NULL((void*)0); l = l->next) |
| 2687 | { |
| 2688 | GDBusConnection *connection = l->data; |
| 2689 | g_dbus_connection_emit_signal (connection, |
| 2690 | 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", |
| 2691 | signal_variant, NULL((void*)0)); |
| 2692 | } |
| 2693 | g_variant_unref (signal_variant); |
| 2694 | g_list_free_full (connections, g_object_unref); |
| 2695 | } |
| 2696 | |
| 2697 | static void ev_lector_window_skeleton_iface_init (EvLectorWindowIface *iface); |
| 2698 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 2699 | 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; } |
| 2700 | 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; } |
| 2701 | 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; } |
| 2702 | |
| 2703 | #else |
| 2704 | 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; } |
| 2705 | 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; } |
| 2706 | |
| 2707 | #endif |
| 2708 | static void |
| 2709 | ev_lector_window_skeleton_finalize (GObject *object) |
| 2710 | { |
| 2711 | EvLectorWindowSkeleton *skeleton = EV_LECTOR_WINDOW_SKELETON (object)((((EvLectorWindowSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((ev_lector_window_skeleton_get_type ())))))); |
| 2712 | g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); |
| 2713 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 2714 | /* coverity[missing_lock : SUPPRESS] */ |
| 2715 | g_clear_pointer (&skeleton->priv->changed_properties_idle_source, g_source_destroy)do { _Static_assert (sizeof *(&skeleton->priv->changed_properties_idle_source ) == sizeof (gpointer), "Expression evaluates to false"); __typeof__ ((&skeleton->priv->changed_properties_idle_source) ) _pp = (&skeleton->priv->changed_properties_idle_source ); __typeof__ (*(&skeleton->priv->changed_properties_idle_source )) _ptr = *_pp; *_pp = ((void*)0); if (_ptr) (g_source_destroy ) (_ptr); } while (0); |
| 2716 | #else |
| 2717 | if (skeleton->priv->changed_properties_idle_source != NULL((void*)0)) |
| 2718 | g_source_destroy (skeleton->priv->changed_properties_idle_source); |
| 2719 | skeleton->priv->changed_properties_idle_source = NULL((void*)0); |
| 2720 | #endif |
| 2721 | g_main_context_unref (skeleton->priv->context); |
| 2722 | g_mutex_clear (&skeleton->priv->lock); |
| 2723 | 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); |
| 2724 | } |
| 2725 | |
| 2726 | static void |
| 2727 | ev_lector_window_skeleton_init (EvLectorWindowSkeleton *skeleton) |
| 2728 | { |
| 2729 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 2730 | skeleton->priv = ev_lector_window_skeleton_get_instance_private (skeleton); |
| 2731 | #else |
| 2732 | 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\"" ; |
| 2733 | #endif |
| 2734 | |
| 2735 | g_mutex_init (&skeleton->priv->lock); |
| 2736 | skeleton->priv->context = g_main_context_ref_thread_default (); |
| 2737 | } |
| 2738 | |
| 2739 | static void |
| 2740 | ev_lector_window_skeleton_class_init (EvLectorWindowSkeletonClass *klass) |
| 2741 | { |
| 2742 | GObjectClass *gobject_class; |
| 2743 | GDBusInterfaceSkeletonClass *skeleton_class; |
| 2744 | |
| 2745 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
| 2746 | gobject_class->finalize = ev_lector_window_skeleton_finalize; |
| 2747 | |
| 2748 | skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass)((((GDBusInterfaceSkeletonClass*) (void *) g_type_check_class_cast ((GTypeClass*) ((klass)), ((g_dbus_interface_skeleton_get_type ())))))); |
| 2749 | skeleton_class->get_info = ev_lector_window_skeleton_dbus_interface_get_info; |
| 2750 | skeleton_class->get_properties = ev_lector_window_skeleton_dbus_interface_get_properties; |
| 2751 | skeleton_class->flush = ev_lector_window_skeleton_dbus_interface_flush; |
| 2752 | skeleton_class->get_vtable = ev_lector_window_skeleton_dbus_interface_get_vtable; |
| 2753 | |
| 2754 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (87 + 1) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
| 2755 | g_type_class_add_private (klass, sizeof (EvLectorWindowSkeletonPrivate)); |
| 2756 | #endif |
| 2757 | } |
| 2758 | |
| 2759 | static void |
| 2760 | ev_lector_window_skeleton_iface_init (EvLectorWindowIface *iface) |
| 2761 | { |
| 2762 | iface->sync_source = _ev_lector_window_on_signal_sync_source; |
| 2763 | iface->closed = _ev_lector_window_on_signal_closed; |
| 2764 | iface->document_loaded = _ev_lector_window_on_signal_document_loaded; |
| 2765 | } |
| 2766 | |
| 2767 | /** |
| 2768 | * ev_lector_window_skeleton_new: |
| 2769 | * |
| 2770 | * 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>. |
| 2771 | * |
| 2772 | * Returns: (transfer full) (type EvLectorWindowSkeleton): The skeleton object. |
| 2773 | */ |
| 2774 | EvLectorWindow * |
| 2775 | ev_lector_window_skeleton_new (void) |
| 2776 | { |
| 2777 | 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 ())))))); |
| 2778 | } |
| 2779 | |
| 2780 | /* ------------------------------------------------------------------------ |
| 2781 | * Code for Object, ObjectProxy and ObjectSkeleton |
| 2782 | * ------------------------------------------------------------------------ |
| 2783 | */ |
| 2784 | |
| 2785 | /** |
| 2786 | * SECTION:EvObject |
| 2787 | * @title: EvObject |
| 2788 | * @short_description: Specialized GDBusObject types |
| 2789 | * |
| 2790 | * This section contains the #EvObject, #EvObjectProxy, and #EvObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces. |
| 2791 | */ |
| 2792 | |
| 2793 | /** |
| 2794 | * EvObject: |
| 2795 | * |
| 2796 | * The #EvObject type is a specialized container of interfaces. |
| 2797 | */ |
| 2798 | |
| 2799 | /** |
| 2800 | * EvObjectIface: |
| 2801 | * @parent_iface: The parent interface. |
| 2802 | * |
| 2803 | * Virtual table for the #EvObject interface. |
| 2804 | */ |
| 2805 | |
| 2806 | typedef EvObjectIface EvObjectInterface; |
| 2807 | 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 ; } |
| 2808 | |
| 2809 | static void |
| 2810 | ev_object_default_init (EvObjectIface *iface) |
| 2811 | { |
| 2812 | /** |
| 2813 | * EvObject:lector-application: |
| 2814 | * |
| 2815 | * 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. |
| 2816 | * |
| 2817 | * Connect to the #GObject::notify signal to get informed of property changes. |
| 2818 | */ |
| 2819 | 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 ))); |
| 2820 | |
| 2821 | /** |
| 2822 | * EvObject:lector-window: |
| 2823 | * |
| 2824 | * 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. |
| 2825 | * |
| 2826 | * Connect to the #GObject::notify signal to get informed of property changes. |
| 2827 | */ |
| 2828 | 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 ))); |
| 2829 | |
| 2830 | } |
| 2831 | |
| 2832 | /** |
| 2833 | * ev_object_get_lector_application: |
| 2834 | * @object: A #EvObject. |
| 2835 | * |
| 2836 | * 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. |
| 2837 | * |
| 2838 | * Returns: (transfer full) (nullable): A #EvLectorApplication that must be freed with g_object_unref() or %NULL if @object does not implement the interface. |
| 2839 | */ |
| 2840 | EvLectorApplication *ev_object_get_lector_application (EvObject *object) |
| 2841 | { |
| 2842 | GDBusInterface *ret; |
| 2843 | 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"); |
| 2844 | if (ret == NULL((void*)0)) |
| 2845 | return NULL((void*)0); |
| 2846 | return EV_LECTOR_APPLICATION (ret)((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((ev_lector_application_get_type ( ))))))); |
| 2847 | } |
| 2848 | |
| 2849 | /** |
| 2850 | * ev_object_get_lector_window: |
| 2851 | * @object: A #EvObject. |
| 2852 | * |
| 2853 | * 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. |
| 2854 | * |
| 2855 | * Returns: (transfer full) (nullable): A #EvLectorWindow that must be freed with g_object_unref() or %NULL if @object does not implement the interface. |
| 2856 | */ |
| 2857 | EvLectorWindow *ev_object_get_lector_window (EvObject *object) |
| 2858 | { |
| 2859 | GDBusInterface *ret; |
| 2860 | 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"); |
| 2861 | if (ret == NULL((void*)0)) |
| 2862 | return NULL((void*)0); |
| 2863 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
| 2864 | } |
| 2865 | |
| 2866 | |
| 2867 | /** |
| 2868 | * ev_object_peek_lector_application: (skip) |
| 2869 | * @object: A #EvObject. |
| 2870 | * |
| 2871 | * Like ev_object_get_lector_application() but doesn't increase the reference count on the returned object. |
| 2872 | * |
| 2873 | * 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. |
| 2874 | * |
| 2875 | * 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. |
| 2876 | */ |
| 2877 | EvLectorApplication *ev_object_peek_lector_application (EvObject *object) |
| 2878 | { |
| 2879 | GDBusInterface *ret; |
| 2880 | 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"); |
| 2881 | if (ret == NULL((void*)0)) |
| 2882 | return NULL((void*)0); |
| 2883 | g_object_unref (ret); |
| 2884 | return EV_LECTOR_APPLICATION (ret)((((EvLectorApplication*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((ret)), ((ev_lector_application_get_type ( ))))))); |
| 2885 | } |
| 2886 | |
| 2887 | /** |
| 2888 | * ev_object_peek_lector_window: (skip) |
| 2889 | * @object: A #EvObject. |
| 2890 | * |
| 2891 | * Like ev_object_get_lector_window() but doesn't increase the reference count on the returned object. |
| 2892 | * |
| 2893 | * 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. |
| 2894 | * |
| 2895 | * 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. |
| 2896 | */ |
| 2897 | EvLectorWindow *ev_object_peek_lector_window (EvObject *object) |
| 2898 | { |
| 2899 | GDBusInterface *ret; |
| 2900 | 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"); |
| 2901 | if (ret == NULL((void*)0)) |
| 2902 | return NULL((void*)0); |
| 2903 | g_object_unref (ret); |
| 2904 | return EV_LECTOR_WINDOW (ret)((((EvLectorWindow*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((ev_lector_window_get_type ())))))); |
| 2905 | } |
| 2906 | |
| 2907 | |
| 2908 | static void |
| 2909 | ev_object_notify (GDBusObject *object, GDBusInterface *interface) |
| 2910 | { |
| 2911 | _ExtendedGDBusInterfaceInfo *info = (_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface); |
| 2912 | /* info can be NULL if the other end is using a D-Bus interface we don't know |
| 2913 | * anything about, for example old generated code in this process talking to |
| 2914 | * newer generated code in the other process. */ |
| 2915 | if (info != NULL((void*)0)) |
| 2916 | g_object_notify (G_OBJECT (object)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
| 2917 | } |
| 2918 | |
| 2919 | /** |
| 2920 | * EvObjectProxy: |
| 2921 | * |
| 2922 | * The #EvObjectProxy structure contains only private data and should only be accessed using the provided API. |
| 2923 | */ |
| 2924 | |
| 2925 | /** |
| 2926 | * EvObjectProxyClass: |
| 2927 | * @parent_class: The parent class. |
| 2928 | * |
| 2929 | * Class structure for #EvObjectProxy. |
| 2930 | */ |
| 2931 | |
| 2932 | static void |
| 2933 | ev_object_proxy__ev_object_iface_init (EvObjectIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 2934 | { |
| 2935 | } |
| 2936 | |
| 2937 | static void |
| 2938 | ev_object_proxy__g_dbus_object_iface_init (GDBusObjectIface *iface) |
| 2939 | { |
| 2940 | iface->interface_added = ev_object_notify; |
| 2941 | iface->interface_removed = ev_object_notify; |
| 2942 | } |
| 2943 | |
| 2944 | |
| 2945 | 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; } |
| 2946 | 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; } |
| 2947 | 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; } |
| 2948 | |
| 2949 | static void |
| 2950 | ev_object_proxy_init (EvObjectProxy *object G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 2951 | { |
| 2952 | } |
| 2953 | |
| 2954 | static void |
| 2955 | ev_object_proxy_set_property (GObject *gobject, |
| 2956 | guint prop_id, |
| 2957 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
| 2958 | GParamSpec *pspec) |
| 2959 | { |
| 2960 | 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", 2960, ("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); |
| 2961 | } |
| 2962 | |
| 2963 | static void |
| 2964 | ev_object_proxy_get_property (GObject *gobject, |
| 2965 | guint prop_id, |
| 2966 | GValue *value, |
| 2967 | GParamSpec *pspec) |
| 2968 | { |
| 2969 | EvObjectProxy *object = EV_OBJECT_PROXY (gobject)((((EvObjectProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((gobject)), ((ev_object_proxy_get_type ())))))); |
| 2970 | GDBusInterface *interface; |
| 2971 | |
| 2972 | switch (prop_id) |
| 2973 | { |
| 2974 | case 1: |
| 2975 | 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"); |
| 2976 | g_value_take_object (value, interface); |
| 2977 | break; |
| 2978 | |
| 2979 | case 2: |
| 2980 | 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"); |
| 2981 | g_value_take_object (value, interface); |
| 2982 | break; |
| 2983 | |
| 2984 | default: |
| 2985 | 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", 2985, ("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); |
| 2986 | break; |
| 2987 | } |
| 2988 | } |
| 2989 | |
| 2990 | static void |
| 2991 | ev_object_proxy_class_init (EvObjectProxyClass *klass) |
| 2992 | { |
| 2993 | GObjectClass *gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
| 2994 | |
| 2995 | gobject_class->set_property = ev_object_proxy_set_property; |
| 2996 | gobject_class->get_property = ev_object_proxy_get_property; |
| 2997 | |
| 2998 | g_object_class_override_property (gobject_class, 1, "lector-application"); |
| 2999 | g_object_class_override_property (gobject_class, 2, "lector-window"); |
| 3000 | } |
| 3001 | |
| 3002 | /** |
| 3003 | * ev_object_proxy_new: |
| 3004 | * @connection: A #GDBusConnection. |
| 3005 | * @object_path: An object path. |
| 3006 | * |
| 3007 | * Creates a new proxy object. |
| 3008 | * |
| 3009 | * Returns: (transfer full): The proxy object. |
| 3010 | */ |
| 3011 | EvObjectProxy * |
| 3012 | ev_object_proxy_new (GDBusConnection *connection, |
| 3013 | const gchar *object_path) |
| 3014 | { |
| 3015 | 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); |
| 3016 | 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); |
| 3017 | 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 ())))))); |
| 3018 | } |
| 3019 | |
| 3020 | /** |
| 3021 | * EvObjectSkeleton: |
| 3022 | * |
| 3023 | * The #EvObjectSkeleton structure contains only private data and should only be accessed using the provided API. |
| 3024 | */ |
| 3025 | |
| 3026 | /** |
| 3027 | * EvObjectSkeletonClass: |
| 3028 | * @parent_class: The parent class. |
| 3029 | * |
| 3030 | * Class structure for #EvObjectSkeleton. |
| 3031 | */ |
| 3032 | |
| 3033 | static void |
| 3034 | ev_object_skeleton__ev_object_iface_init (EvObjectIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 3035 | { |
| 3036 | } |
| 3037 | |
| 3038 | |
| 3039 | static void |
| 3040 | ev_object_skeleton__g_dbus_object_iface_init (GDBusObjectIface *iface) |
| 3041 | { |
| 3042 | iface->interface_added = ev_object_notify; |
| 3043 | iface->interface_removed = ev_object_notify; |
| 3044 | } |
| 3045 | |
| 3046 | 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; } |
| 3047 | 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; } |
| 3048 | 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; } |
| 3049 | |
| 3050 | static void |
| 3051 | ev_object_skeleton_init (EvObjectSkeleton *object G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 3052 | { |
| 3053 | } |
| 3054 | |
| 3055 | static void |
| 3056 | ev_object_skeleton_set_property (GObject *gobject, |
| 3057 | guint prop_id, |
| 3058 | const GValue *value, |
| 3059 | GParamSpec *pspec) |
| 3060 | { |
| 3061 | EvObjectSkeleton *object = EV_OBJECT_SKELETON (gobject)((((EvObjectSkeleton*) (void *) g_type_check_instance_cast (( GTypeInstance*) ((gobject)), ((ev_object_skeleton_get_type () )))))); |
| 3062 | GDBusInterfaceSkeleton *interface; |
| 3063 | |
| 3064 | switch (prop_id) |
| 3065 | { |
| 3066 | case 1: |
| 3067 | interface = g_value_get_object (value); |
| 3068 | if (interface != NULL((void*)0)) |
| 3069 | { |
| 3070 | 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" , 3070, ((const char*) (__func__)), "EV_IS_LECTOR_APPLICATION (interface)" ); } while (0); |
| 3071 | 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); |
| 3072 | } |
| 3073 | else |
| 3074 | { |
| 3075 | 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"); |
| 3076 | } |
| 3077 | break; |
| 3078 | |
| 3079 | case 2: |
| 3080 | interface = g_value_get_object (value); |
| 3081 | if (interface != NULL((void*)0)) |
| 3082 | { |
| 3083 | 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" , 3083, ((const char*) (__func__)), "EV_IS_LECTOR_WINDOW (interface)" ); } while (0); |
| 3084 | 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); |
| 3085 | } |
| 3086 | else |
| 3087 | { |
| 3088 | 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"); |
| 3089 | } |
| 3090 | break; |
| 3091 | |
| 3092 | default: |
| 3093 | 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", 3093, ("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); |
| 3094 | break; |
| 3095 | } |
| 3096 | } |
| 3097 | |
| 3098 | static void |
| 3099 | ev_object_skeleton_get_property (GObject *gobject, |
| 3100 | guint prop_id, |
| 3101 | GValue *value, |
| 3102 | GParamSpec *pspec) |
| 3103 | { |
| 3104 | EvObjectSkeleton *object = EV_OBJECT_SKELETON (gobject)((((EvObjectSkeleton*) (void *) g_type_check_instance_cast (( GTypeInstance*) ((gobject)), ((ev_object_skeleton_get_type () )))))); |
| 3105 | GDBusInterface *interface; |
| 3106 | |
| 3107 | switch (prop_id) |
| 3108 | { |
| 3109 | case 1: |
| 3110 | 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"); |
| 3111 | g_value_take_object (value, interface); |
| 3112 | break; |
| 3113 | |
| 3114 | case 2: |
| 3115 | 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"); |
| 3116 | g_value_take_object (value, interface); |
| 3117 | break; |
| 3118 | |
| 3119 | default: |
| 3120 | 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", 3120, ("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); |
| 3121 | break; |
| 3122 | } |
| 3123 | } |
| 3124 | |
| 3125 | static void |
| 3126 | ev_object_skeleton_class_init (EvObjectSkeletonClass *klass) |
| 3127 | { |
| 3128 | GObjectClass *gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
| 3129 | |
| 3130 | gobject_class->set_property = ev_object_skeleton_set_property; |
| 3131 | gobject_class->get_property = ev_object_skeleton_get_property; |
| 3132 | |
| 3133 | g_object_class_override_property (gobject_class, 1, "lector-application"); |
| 3134 | g_object_class_override_property (gobject_class, 2, "lector-window"); |
| 3135 | } |
| 3136 | |
| 3137 | /** |
| 3138 | * ev_object_skeleton_new: |
| 3139 | * @object_path: An object path. |
| 3140 | * |
| 3141 | * Creates a new skeleton object. |
| 3142 | * |
| 3143 | * Returns: (transfer full): The skeleton object. |
| 3144 | */ |
| 3145 | EvObjectSkeleton * |
| 3146 | ev_object_skeleton_new (const gchar *object_path) |
| 3147 | { |
| 3148 | 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); |
| 3149 | 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 ())))))); |
| 3150 | } |
| 3151 | |
| 3152 | /** |
| 3153 | * ev_object_skeleton_set_lector_application: |
| 3154 | * @object: A #EvObjectSkeleton. |
| 3155 | * @interface_: (nullable): A #EvLectorApplication or %NULL to clear the interface. |
| 3156 | * |
| 3157 | * 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. |
| 3158 | */ |
| 3159 | void ev_object_skeleton_set_lector_application (EvObjectSkeleton *object, EvLectorApplication *interface_) |
| 3160 | { |
| 3161 | g_object_set (G_OBJECT (object)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), (((GType) ((20) << (2)))))))), "lector-application", interface_, NULL((void*)0)); |
| 3162 | } |
| 3163 | |
| 3164 | /** |
| 3165 | * ev_object_skeleton_set_lector_window: |
| 3166 | * @object: A #EvObjectSkeleton. |
| 3167 | * @interface_: (nullable): A #EvLectorWindow or %NULL to clear the interface. |
| 3168 | * |
| 3169 | * 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. |
| 3170 | */ |
| 3171 | void ev_object_skeleton_set_lector_window (EvObjectSkeleton *object, EvLectorWindow *interface_) |
| 3172 | { |
| 3173 | g_object_set (G_OBJECT (object)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((object)), (((GType) ((20) << (2)))))))), "lector-window", interface_, NULL((void*)0)); |
| 3174 | } |
| 3175 | |
| 3176 | |
| 3177 | /* ------------------------------------------------------------------------ |
| 3178 | * Code for ObjectManager client |
| 3179 | * ------------------------------------------------------------------------ |
| 3180 | */ |
| 3181 | |
| 3182 | /** |
| 3183 | * SECTION:EvObjectManagerClient |
| 3184 | * @title: EvObjectManagerClient |
| 3185 | * @short_description: Generated GDBusObjectManagerClient type |
| 3186 | * |
| 3187 | * This section contains a #GDBusObjectManagerClient that uses ev_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. |
| 3188 | */ |
| 3189 | |
| 3190 | /** |
| 3191 | * EvObjectManagerClient: |
| 3192 | * |
| 3193 | * The #EvObjectManagerClient structure contains only private data and should only be accessed using the provided API. |
| 3194 | */ |
| 3195 | |
| 3196 | /** |
| 3197 | * EvObjectManagerClientClass: |
| 3198 | * @parent_class: The parent class. |
| 3199 | * |
| 3200 | * Class structure for #EvObjectManagerClient. |
| 3201 | */ |
| 3202 | |
| 3203 | 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; } |
| 3204 | |
| 3205 | static void |
| 3206 | ev_object_manager_client_init (EvObjectManagerClient *manager G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 3207 | { |
| 3208 | } |
| 3209 | |
| 3210 | static void |
| 3211 | ev_object_manager_client_class_init (EvObjectManagerClientClass *klass G_GNUC_UNUSED__attribute__ ((__unused__))) |
| 3212 | { |
| 3213 | } |
| 3214 | |
| 3215 | /** |
| 3216 | * ev_object_manager_client_get_proxy_type: |
| 3217 | * @manager: A #GDBusObjectManagerClient. |
| 3218 | * @object_path: The object path of the remote object (unused). |
| 3219 | * @interface_name: (nullable): Interface name of the remote object or %NULL to get the object proxy #GType. |
| 3220 | * @user_data: User data (unused). |
| 3221 | * |
| 3222 | * A #GDBusProxyTypeFunc that maps @interface_name to the generated #GDBusObjectProxy derived and #GDBusProxy derived types. |
| 3223 | * |
| 3224 | * Returns: A #GDBusProxy derived #GType if @interface_name is not %NULL, otherwise the #GType for #EvObjectProxy. |
| 3225 | */ |
| 3226 | GType |
| 3227 | 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__))) |
| 3228 | { |
| 3229 | static gsize once_init_value = 0; |
| 3230 | static GHashTable *lookup_hash; |
| 3231 | GType ret; |
| 3232 | |
| 3233 | if (interface_name == NULL((void*)0)) |
| 3234 | return EV_TYPE_OBJECT_PROXY(ev_object_proxy_get_type ()); |
| 3235 | 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)); } ))) |
| 3236 | { |
| 3237 | lookup_hash = g_hash_table_new (g_str_hash, g_str_equal); |
| 3238 | g_hash_table_insert (lookup_hash, (gpointer) "org.cafe.lector.Application", (gpointer) (guintptr) (EV_TYPE_LECTOR_APPLICATION_PROXY(ev_lector_application_proxy_get_type ()))); |
| 3239 | g_hash_table_insert (lookup_hash, (gpointer) "org.cafe.lector.Window", (gpointer) (guintptr) (EV_TYPE_LECTOR_WINDOW_PROXY(ev_lector_window_proxy_get_type ()))); |
| 3240 | 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)); })); |
| 3241 | } |
| 3242 | ret = (GType) (guintptr) (g_hash_table_lookup (lookup_hash, interface_name)); |
| 3243 | if (ret == (GType) 0) |
| 3244 | ret = G_TYPE_DBUS_PROXY(g_dbus_proxy_get_type ()); |
| 3245 | return ret; |
| 3246 | } |
| 3247 | |
| 3248 | /** |
| 3249 | * ev_object_manager_client_new: |
| 3250 | * @connection: A #GDBusConnection. |
| 3251 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
| 3252 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
| 3253 | * @object_path: An object path. |
| 3254 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 3255 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
| 3256 | * @user_data: User data to pass to @callback. |
| 3257 | * |
| 3258 | * Asynchronously creates #GDBusObjectManagerClient using ev_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new() for more details. |
| 3259 | * |
| 3260 | * 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()). |
| 3261 | * You can then call ev_object_manager_client_new_finish() to get the result of the operation. |
| 3262 | * |
| 3263 | * See ev_object_manager_client_new_sync() for the synchronous, blocking version of this constructor. |
| 3264 | */ |
| 3265 | void |
| 3266 | ev_object_manager_client_new ( |
| 3267 | GDBusConnection *connection, |
| 3268 | GDBusObjectManagerClientFlags flags, |
| 3269 | const gchar *name, |
| 3270 | const gchar *object_path, |
| 3271 | GCancellable *cancellable, |
| 3272 | GAsyncReadyCallback callback, |
| 3273 | gpointer user_data) |
| 3274 | { |
| 3275 | 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)); |
| 3276 | } |
| 3277 | |
| 3278 | /** |
| 3279 | * ev_object_manager_client_new_finish: |
| 3280 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_object_manager_client_new(). |
| 3281 | * @error: Return location for error or %NULL |
| 3282 | * |
| 3283 | * Finishes an operation started with ev_object_manager_client_new(). |
| 3284 | * |
| 3285 | * Returns: (transfer full) (type EvObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
| 3286 | */ |
| 3287 | GDBusObjectManager * |
| 3288 | ev_object_manager_client_new_finish ( |
| 3289 | GAsyncResult *res, |
| 3290 | GError **error) |
| 3291 | { |
| 3292 | GObject *ret; |
| 3293 | GObject *source_object; |
| 3294 | source_object = g_async_result_get_source_object (res); |
| 3295 | 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); |
| 3296 | g_object_unref (source_object); |
| 3297 | if (ret != NULL((void*)0)) |
| 3298 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
| 3299 | else |
| 3300 | return NULL((void*)0); |
| 3301 | } |
| 3302 | |
| 3303 | /** |
| 3304 | * ev_object_manager_client_new_sync: |
| 3305 | * @connection: A #GDBusConnection. |
| 3306 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
| 3307 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
| 3308 | * @object_path: An object path. |
| 3309 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 3310 | * @error: Return location for error or %NULL |
| 3311 | * |
| 3312 | * 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. |
| 3313 | * |
| 3314 | * The calling thread is blocked until a reply is received. |
| 3315 | * |
| 3316 | * See ev_object_manager_client_new() for the asynchronous version of this constructor. |
| 3317 | * |
| 3318 | * Returns: (transfer full) (type EvObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
| 3319 | */ |
| 3320 | GDBusObjectManager * |
| 3321 | ev_object_manager_client_new_sync ( |
| 3322 | GDBusConnection *connection, |
| 3323 | GDBusObjectManagerClientFlags flags, |
| 3324 | const gchar *name, |
| 3325 | const gchar *object_path, |
| 3326 | GCancellable *cancellable, |
| 3327 | GError **error) |
| 3328 | { |
| 3329 | GInitable *ret; |
| 3330 | 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)); |
| 3331 | if (ret != NULL((void*)0)) |
| 3332 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
| 3333 | else |
| 3334 | return NULL((void*)0); |
| 3335 | } |
| 3336 | |
| 3337 | |
| 3338 | /** |
| 3339 | * ev_object_manager_client_new_for_bus: |
| 3340 | * @bus_type: A #GBusType. |
| 3341 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
| 3342 | * @name: A bus name (well-known or unique). |
| 3343 | * @object_path: An object path. |
| 3344 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 3345 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
| 3346 | * @user_data: User data to pass to @callback. |
| 3347 | * |
| 3348 | * Like ev_object_manager_client_new() but takes a #GBusType instead of a #GDBusConnection. |
| 3349 | * |
| 3350 | * 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()). |
| 3351 | * You can then call ev_object_manager_client_new_for_bus_finish() to get the result of the operation. |
| 3352 | * |
| 3353 | * See ev_object_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
| 3354 | */ |
| 3355 | void |
| 3356 | ev_object_manager_client_new_for_bus ( |
| 3357 | GBusType bus_type, |
| 3358 | GDBusObjectManagerClientFlags flags, |
| 3359 | const gchar *name, |
| 3360 | const gchar *object_path, |
| 3361 | GCancellable *cancellable, |
| 3362 | GAsyncReadyCallback callback, |
| 3363 | gpointer user_data) |
| 3364 | { |
| 3365 | 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)); |
| 3366 | } |
| 3367 | |
| 3368 | /** |
| 3369 | * ev_object_manager_client_new_for_bus_finish: |
| 3370 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ev_object_manager_client_new_for_bus(). |
| 3371 | * @error: Return location for error or %NULL |
| 3372 | * |
| 3373 | * Finishes an operation started with ev_object_manager_client_new_for_bus(). |
| 3374 | * |
| 3375 | * Returns: (transfer full) (type EvObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
| 3376 | */ |
| 3377 | GDBusObjectManager * |
| 3378 | ev_object_manager_client_new_for_bus_finish ( |
| 3379 | GAsyncResult *res, |
| 3380 | GError **error) |
| 3381 | { |
| 3382 | GObject *ret; |
| 3383 | GObject *source_object; |
| 3384 | source_object = g_async_result_get_source_object (res); |
| 3385 | 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); |
| 3386 | g_object_unref (source_object); |
| 3387 | if (ret != NULL((void*)0)) |
| 3388 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
| 3389 | else |
| 3390 | return NULL((void*)0); |
| 3391 | } |
| 3392 | |
| 3393 | /** |
| 3394 | * ev_object_manager_client_new_for_bus_sync: |
| 3395 | * @bus_type: A #GBusType. |
| 3396 | * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration. |
| 3397 | * @name: A bus name (well-known or unique). |
| 3398 | * @object_path: An object path. |
| 3399 | * @cancellable: (nullable): A #GCancellable or %NULL. |
| 3400 | * @error: Return location for error or %NULL |
| 3401 | * |
| 3402 | * Like ev_object_manager_client_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
| 3403 | * |
| 3404 | * The calling thread is blocked until a reply is received. |
| 3405 | * |
| 3406 | * See ev_object_manager_client_new_for_bus() for the asynchronous version of this constructor. |
| 3407 | * |
| 3408 | * Returns: (transfer full) (type EvObjectManagerClient): The constructed object manager client or %NULL if @error is set. |
| 3409 | */ |
| 3410 | GDBusObjectManager * |
| 3411 | ev_object_manager_client_new_for_bus_sync ( |
| 3412 | GBusType bus_type, |
| 3413 | GDBusObjectManagerClientFlags flags, |
| 3414 | const gchar *name, |
| 3415 | const gchar *object_path, |
| 3416 | GCancellable *cancellable, |
| 3417 | GError **error) |
| 3418 | { |
| 3419 | GInitable *ret; |
| 3420 | 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)); |
| 3421 | if (ret != NULL((void*)0)) |
| 3422 | return G_DBUS_OBJECT_MANAGER (ret)((((GDBusObjectManager*) (void *) g_type_check_instance_cast ( (GTypeInstance*) ((ret)), ((g_dbus_object_manager_get_type()) ))))); |
| 3423 | else |
| 3424 | return NULL((void*)0); |
| 3425 | } |
| 3426 | |
| 3427 |