Bug Summary

File:daemon/mnd-dbus-generated.c
Warning:line 2200, column 38
Value stored to 'skeleton' during its initialization is never read

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-pc-linux-gnu -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name mnd-dbus-generated.c -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/rootdir/src/daemon -fcoverage-compilation-dir=/rootdir/src/daemon -resource-dir /usr/lib/llvm-19/lib/clang/19 -D HAVE_CONFIG_H -I . -I ../.. -I ../.. -I /usr/include/ctk-3.0 -I /usr/include/pango-1.0 -I /usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/include/sysprof-6 -I /usr/include/harfbuzz -I /usr/include/freetype2 -I /usr/include/libpng16 -I /usr/include/libmount -I /usr/include/blkid -I /usr/include/fribidi -I /usr/include/cairo -I /usr/include/pixman-1 -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/x86_64-linux-gnu -I /usr/include/webp -I /usr/include/gio-unix-2.0 -I /usr/include/atk-1.0 -I /usr/include/at-spi2-atk/2.0 -I /usr/include/at-spi-2.0 -I /usr/include/dbus-1.0 -I /usr/lib/x86_64-linux-gnu/dbus-1.0/include -D _REENTRANT -D _REENTRANT -I /usr/local/include/libvnck-3.0 -I /usr/include/startup-notification-1.0 -D ENGINES_DIR="/usr/lib/cafe-notification-daemon/engines" -internal-isystem /usr/lib/llvm-19/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -analyzer-checker deadcode.DeadStores -analyzer-checker alpha.deadcode.UnreachableCode -analyzer-checker alpha.core.CastSize -analyzer-checker alpha.core.CastToStruct -analyzer-checker alpha.core.IdenticalExpr -analyzer-checker alpha.security.ArrayBoundV2 -analyzer-checker alpha.security.MallocOverflow -analyzer-checker alpha.security.ReturnPtrRange -analyzer-checker alpha.unix.SimpleStream -analyzer-checker alpha.unix.cstring.BufferOverlap -analyzer-checker alpha.unix.cstring.NotNullTerminated -analyzer-checker alpha.unix.cstring.OutOfBounds -analyzer-checker alpha.core.FixedAddr -analyzer-output=html -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /rootdir/html-report/2025-01-09-184546-38283-1 -x c mnd-dbus-generated.c
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 "mnd-dbus-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
66typedef struct
67{
68 GDBusArgInfo parent_struct;
69 gboolean use_gvariant;
70} _ExtendedGDBusArgInfo;
71
72typedef struct
73{
74 GDBusMethodInfo parent_struct;
75 const gchar *signal_name;
76 gboolean pass_fdlist;
77} _ExtendedGDBusMethodInfo;
78
79typedef struct
80{
81 GDBusSignalInfo parent_struct;
82 const gchar *signal_name;
83} _ExtendedGDBusSignalInfo;
84
85typedef 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
93typedef struct
94{
95 GDBusInterfaceInfo parent_struct;
96 const gchar *hyphen_name;
97} _ExtendedGDBusInterfaceInfo;
98
99typedef struct
100{
101 const _ExtendedGDBusPropertyInfo *info;
102 guint prop_id;
103 GValue orig_value; /* the value before the change */
104} ChangedProperty;
105
106static void
107_changed_property_free (ChangedProperty *data)
108{
109 g_value_unset (&data->orig_value);
110 g_free (data);
111}
112
113static 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));
131out:
132 return ret;
133}
134
135static 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);
147out:
148 return ret;
149}
150
151G_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), "mnd-dbus-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
200static void
201_g_dbus_codegen_marshal_VOID__UINT_STRING (
202 GClosure *closure,
203 GValue *return_value G_GNUC_UNUSED__attribute__ ((__unused__)),
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 void (*_GDbusCodegenMarshalVoid_UintStringFunc)
210 (void *data1,
211 guint arg_id,
212 const gchar *arg_action_key,
213 void *data2);
214 _GDbusCodegenMarshalVoid_UintStringFunc callback;
215 GCClosure *cc = (GCClosure*) closure;
216 void *data1, *data2;
217
218 g_return_if_fail (n_param_values == 3)do { if ((n_param_values == 3)) { } else { g_return_if_fail_warning
(((gchar*) 0), ((const char*) (__func__)), "n_param_values == 3"
); return; } } while (0)
;
219
220 if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag))
221 {
222 data1 = closure->data;
223 data2 = g_value_peek_pointer (param_values + 0);
224 }
225 else
226 {
227 data1 = g_value_peek_pointer (param_values + 0);
228 data2 = closure->data;
229 }
230
231 callback = (_GDbusCodegenMarshalVoid_UintStringFunc)
232 (marshal_data ? marshal_data : cc->callback);
233
234 callback (data1,
235 g_marshal_value_peek_uint (param_values + 1)(param_values + 1)->data[0].v_uint,
236 g_marshal_value_peek_string (param_values + 2)(param_values + 2)->data[0].v_pointer,
237 data2);
238}
239
240static void
241_g_dbus_codegen_marshal_VOID__UINT_UINT (
242 GClosure *closure,
243 GValue *return_value G_GNUC_UNUSED__attribute__ ((__unused__)),
244 unsigned int n_param_values,
245 const GValue *param_values,
246 void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)),
247 void *marshal_data)
248{
249 typedef void (*_GDbusCodegenMarshalVoid_UintUintFunc)
250 (void *data1,
251 guint arg_id,
252 guint arg_reason,
253 void *data2);
254 _GDbusCodegenMarshalVoid_UintUintFunc callback;
255 GCClosure *cc = (GCClosure*) closure;
256 void *data1, *data2;
257
258 g_return_if_fail (n_param_values == 3)do { if ((n_param_values == 3)) { } else { g_return_if_fail_warning
(((gchar*) 0), ((const char*) (__func__)), "n_param_values == 3"
); return; } } while (0)
;
259
260 if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag))
261 {
262 data1 = closure->data;
263 data2 = g_value_peek_pointer (param_values + 0);
264 }
265 else
266 {
267 data1 = g_value_peek_pointer (param_values + 0);
268 data2 = closure->data;
269 }
270
271 callback = (_GDbusCodegenMarshalVoid_UintUintFunc)
272 (marshal_data ? marshal_data : cc->callback);
273
274 callback (data1,
275 g_marshal_value_peek_uint (param_values + 1)(param_values + 1)->data[0].v_uint,
276 g_marshal_value_peek_uint (param_values + 2)(param_values + 2)->data[0].v_uint,
277 data2);
278}
279
280static void
281_g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_UINT_STRING_STRING_STRING_BOXED_VARIANT_INT (
282 GClosure *closure,
283 GValue *return_value,
284 unsigned int n_param_values,
285 const GValue *param_values,
286 void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)),
287 void *marshal_data)
288{
289 typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringUintStringStringStringBoxedVariantIntFunc)
290 (void *data1,
291 GDBusMethodInvocation *arg_method_invocation,
292 const gchar *arg_app_name,
293 guint arg_id,
294 const gchar *arg_icon,
295 const gchar *arg_summary,
296 const gchar *arg_body,
297 const gchar *const *arg_actions,
298 GVariant *arg_hints,
299 gint arg_timeout,
300 void *data2);
301 _GDbusCodegenMarshalBoolean_ObjectStringUintStringStringStringBoxedVariantIntFunc callback;
302 GCClosure *cc = (GCClosure*) closure;
303 void *data1, *data2;
304 gboolean v_return;
305
306 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)
;
307 g_return_if_fail (n_param_values == 10)do { if ((n_param_values == 10)) { } else { g_return_if_fail_warning
(((gchar*) 0), ((const char*) (__func__)), "n_param_values == 10"
); return; } } while (0)
;
308
309 if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag))
310 {
311 data1 = closure->data;
312 data2 = g_value_peek_pointer (param_values + 0);
313 }
314 else
315 {
316 data1 = g_value_peek_pointer (param_values + 0);
317 data2 = closure->data;
318 }
319
320 callback = (_GDbusCodegenMarshalBoolean_ObjectStringUintStringStringStringBoxedVariantIntFunc)
321 (marshal_data ? marshal_data : cc->callback);
322
323 v_return =
324 callback (data1,
325 g_marshal_value_peek_object (param_values + 1)(param_values + 1)->data[0].v_pointer,
326 g_marshal_value_peek_string (param_values + 2)(param_values + 2)->data[0].v_pointer,
327 g_marshal_value_peek_uint (param_values + 3)(param_values + 3)->data[0].v_uint,
328 g_marshal_value_peek_string (param_values + 4)(param_values + 4)->data[0].v_pointer,
329 g_marshal_value_peek_string (param_values + 5)(param_values + 5)->data[0].v_pointer,
330 g_marshal_value_peek_string (param_values + 6)(param_values + 6)->data[0].v_pointer,
331 g_marshal_value_peek_boxed (param_values + 7)(param_values + 7)->data[0].v_pointer,
332 g_marshal_value_peek_variant (param_values + 8)(param_values + 8)->data[0].v_pointer,
333 g_marshal_value_peek_int (param_values + 9)(param_values + 9)->data[0].v_int,
334 data2);
335
336 g_value_set_boolean (return_value, v_return);
337}
338
339static void
340_g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (
341 GClosure *closure,
342 GValue *return_value,
343 unsigned int n_param_values,
344 const GValue *param_values,
345 void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)),
346 void *marshal_data)
347{
348 typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc)
349 (void *data1,
350 GDBusMethodInvocation *arg_method_invocation,
351 guint arg_id,
352 void *data2);
353 _GDbusCodegenMarshalBoolean_ObjectUintFunc callback;
354 GCClosure *cc = (GCClosure*) closure;
355 void *data1, *data2;
356 gboolean v_return;
357
358 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)
;
359 g_return_if_fail (n_param_values == 3)do { if ((n_param_values == 3)) { } else { g_return_if_fail_warning
(((gchar*) 0), ((const char*) (__func__)), "n_param_values == 3"
); return; } } while (0)
;
360
361 if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag))
362 {
363 data1 = closure->data;
364 data2 = g_value_peek_pointer (param_values + 0);
365 }
366 else
367 {
368 data1 = g_value_peek_pointer (param_values + 0);
369 data2 = closure->data;
370 }
371
372 callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc)
373 (marshal_data ? marshal_data : cc->callback);
374
375 v_return =
376 callback (data1,
377 g_marshal_value_peek_object (param_values + 1)(param_values + 1)->data[0].v_pointer,
378 g_marshal_value_peek_uint (param_values + 2)(param_values + 2)->data[0].v_uint,
379 data2);
380
381 g_value_set_boolean (return_value, v_return);
382}
383
384static void
385_g_dbus_codegen_marshal_BOOLEAN__OBJECT (
386 GClosure *closure,
387 GValue *return_value,
388 unsigned int n_param_values,
389 const GValue *param_values,
390 void *invocation_hint G_GNUC_UNUSED__attribute__ ((__unused__)),
391 void *marshal_data)
392{
393 typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc)
394 (void *data1,
395 GDBusMethodInvocation *arg_method_invocation,
396 void *data2);
397 _GDbusCodegenMarshalBoolean_ObjectFunc callback;
398 GCClosure *cc = (GCClosure*) closure;
399 void *data1, *data2;
400 gboolean v_return;
401
402 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)
;
403 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)
;
404
405 if (G_CCLOSURE_SWAP_DATA (closure)(((GClosure*) (closure))->derivative_flag))
406 {
407 data1 = closure->data;
408 data2 = g_value_peek_pointer (param_values + 0);
409 }
410 else
411 {
412 data1 = g_value_peek_pointer (param_values + 0);
413 data2 = closure->data;
414 }
415
416 callback = (_GDbusCodegenMarshalBoolean_ObjectFunc)
417 (marshal_data ? marshal_data : cc->callback);
418
419 v_return =
420 callback (data1,
421 g_marshal_value_peek_object (param_values + 1)(param_values + 1)->data[0].v_pointer,
422 data2);
423
424 g_value_set_boolean (return_value, v_return);
425}
426
427/* ------------------------------------------------------------------------
428 * Code for interface org.freedesktop.Notifications
429 * ------------------------------------------------------------------------
430 */
431
432/**
433 * SECTION:NotifyDaemonNotifications
434 * @title: NotifyDaemonNotifications
435 * @short_description: Generated C code for the org.freedesktop.Notifications D-Bus interface
436 *
437 * This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-Notifications.top_of_page">org.freedesktop.Notifications</link> D-Bus interface in C.
438 */
439
440enum
441{
442 NOTIFY_DAEMON__NOTIFICATIONS_ACTION_INVOKED,
443 NOTIFY_DAEMON__NOTIFICATIONS_NOTIFICATION_CLOSED,
444};
445
446static unsigned NOTIFY_DAEMON__NOTIFICATIONS_SIGNALS[2] = { 0 };
447
448/* ---- Introspection data for org.freedesktop.Notifications ---- */
449
450static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_IN_ARG_app_name =
451{
452 {
453 -1,
454 (gchar *) "app_name",
455 (gchar *) "s",
456 NULL((void*)0)
457 },
458 FALSE(0)
459};
460
461static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_IN_ARG_id =
462{
463 {
464 -1,
465 (gchar *) "id",
466 (gchar *) "u",
467 NULL((void*)0)
468 },
469 FALSE(0)
470};
471
472static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_IN_ARG_icon =
473{
474 {
475 -1,
476 (gchar *) "icon",
477 (gchar *) "s",
478 NULL((void*)0)
479 },
480 FALSE(0)
481};
482
483static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_IN_ARG_summary =
484{
485 {
486 -1,
487 (gchar *) "summary",
488 (gchar *) "s",
489 NULL((void*)0)
490 },
491 FALSE(0)
492};
493
494static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_IN_ARG_body =
495{
496 {
497 -1,
498 (gchar *) "body",
499 (gchar *) "s",
500 NULL((void*)0)
501 },
502 FALSE(0)
503};
504
505static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_IN_ARG_actions =
506{
507 {
508 -1,
509 (gchar *) "actions",
510 (gchar *) "as",
511 NULL((void*)0)
512 },
513 FALSE(0)
514};
515
516static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_IN_ARG_hints =
517{
518 {
519 -1,
520 (gchar *) "hints",
521 (gchar *) "a{sv}",
522 NULL((void*)0)
523 },
524 FALSE(0)
525};
526
527static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_IN_ARG_timeout =
528{
529 {
530 -1,
531 (gchar *) "timeout",
532 (gchar *) "i",
533 NULL((void*)0)
534 },
535 FALSE(0)
536};
537
538static const GDBusArgInfo * const _notify_daemon_notifications_method_info_notify_IN_ARG_pointers[] =
539{
540 &_notify_daemon_notifications_method_info_notify_IN_ARG_app_name.parent_struct,
541 &_notify_daemon_notifications_method_info_notify_IN_ARG_id.parent_struct,
542 &_notify_daemon_notifications_method_info_notify_IN_ARG_icon.parent_struct,
543 &_notify_daemon_notifications_method_info_notify_IN_ARG_summary.parent_struct,
544 &_notify_daemon_notifications_method_info_notify_IN_ARG_body.parent_struct,
545 &_notify_daemon_notifications_method_info_notify_IN_ARG_actions.parent_struct,
546 &_notify_daemon_notifications_method_info_notify_IN_ARG_hints.parent_struct,
547 &_notify_daemon_notifications_method_info_notify_IN_ARG_timeout.parent_struct,
548 NULL((void*)0)
549};
550
551static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_notify_OUT_ARG_return_id =
552{
553 {
554 -1,
555 (gchar *) "return_id",
556 (gchar *) "u",
557 NULL((void*)0)
558 },
559 FALSE(0)
560};
561
562static const GDBusArgInfo * const _notify_daemon_notifications_method_info_notify_OUT_ARG_pointers[] =
563{
564 &_notify_daemon_notifications_method_info_notify_OUT_ARG_return_id.parent_struct,
565 NULL((void*)0)
566};
567
568static const _ExtendedGDBusMethodInfo _notify_daemon_notifications_method_info_notify =
569{
570 {
571 -1,
572 (gchar *) "Notify",
573 (GDBusArgInfo **) &_notify_daemon_notifications_method_info_notify_IN_ARG_pointers,
574 (GDBusArgInfo **) &_notify_daemon_notifications_method_info_notify_OUT_ARG_pointers,
575 NULL((void*)0)
576 },
577 "handle-notify",
578 FALSE(0)
579};
580
581static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_close_notification_IN_ARG_id =
582{
583 {
584 -1,
585 (gchar *) "id",
586 (gchar *) "u",
587 NULL((void*)0)
588 },
589 FALSE(0)
590};
591
592static const GDBusArgInfo * const _notify_daemon_notifications_method_info_close_notification_IN_ARG_pointers[] =
593{
594 &_notify_daemon_notifications_method_info_close_notification_IN_ARG_id.parent_struct,
595 NULL((void*)0)
596};
597
598static const _ExtendedGDBusMethodInfo _notify_daemon_notifications_method_info_close_notification =
599{
600 {
601 -1,
602 (gchar *) "CloseNotification",
603 (GDBusArgInfo **) &_notify_daemon_notifications_method_info_close_notification_IN_ARG_pointers,
604 NULL((void*)0),
605 NULL((void*)0)
606 },
607 "handle-close-notification",
608 FALSE(0)
609};
610
611static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_get_capabilities_OUT_ARG_return_caps =
612{
613 {
614 -1,
615 (gchar *) "return_caps",
616 (gchar *) "as",
617 NULL((void*)0)
618 },
619 FALSE(0)
620};
621
622static const GDBusArgInfo * const _notify_daemon_notifications_method_info_get_capabilities_OUT_ARG_pointers[] =
623{
624 &_notify_daemon_notifications_method_info_get_capabilities_OUT_ARG_return_caps.parent_struct,
625 NULL((void*)0)
626};
627
628static const _ExtendedGDBusMethodInfo _notify_daemon_notifications_method_info_get_capabilities =
629{
630 {
631 -1,
632 (gchar *) "GetCapabilities",
633 NULL((void*)0),
634 (GDBusArgInfo **) &_notify_daemon_notifications_method_info_get_capabilities_OUT_ARG_pointers,
635 NULL((void*)0)
636 },
637 "handle-get-capabilities",
638 FALSE(0)
639};
640
641static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_get_server_information_OUT_ARG_return_name =
642{
643 {
644 -1,
645 (gchar *) "return_name",
646 (gchar *) "s",
647 NULL((void*)0)
648 },
649 FALSE(0)
650};
651
652static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_get_server_information_OUT_ARG_return_vendor =
653{
654 {
655 -1,
656 (gchar *) "return_vendor",
657 (gchar *) "s",
658 NULL((void*)0)
659 },
660 FALSE(0)
661};
662
663static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_get_server_information_OUT_ARG_return_version =
664{
665 {
666 -1,
667 (gchar *) "return_version",
668 (gchar *) "s",
669 NULL((void*)0)
670 },
671 FALSE(0)
672};
673
674static const _ExtendedGDBusArgInfo _notify_daemon_notifications_method_info_get_server_information_OUT_ARG_return_spec_version =
675{
676 {
677 -1,
678 (gchar *) "return_spec_version",
679 (gchar *) "s",
680 NULL((void*)0)
681 },
682 FALSE(0)
683};
684
685static const GDBusArgInfo * const _notify_daemon_notifications_method_info_get_server_information_OUT_ARG_pointers[] =
686{
687 &_notify_daemon_notifications_method_info_get_server_information_OUT_ARG_return_name.parent_struct,
688 &_notify_daemon_notifications_method_info_get_server_information_OUT_ARG_return_vendor.parent_struct,
689 &_notify_daemon_notifications_method_info_get_server_information_OUT_ARG_return_version.parent_struct,
690 &_notify_daemon_notifications_method_info_get_server_information_OUT_ARG_return_spec_version.parent_struct,
691 NULL((void*)0)
692};
693
694static const _ExtendedGDBusMethodInfo _notify_daemon_notifications_method_info_get_server_information =
695{
696 {
697 -1,
698 (gchar *) "GetServerInformation",
699 NULL((void*)0),
700 (GDBusArgInfo **) &_notify_daemon_notifications_method_info_get_server_information_OUT_ARG_pointers,
701 NULL((void*)0)
702 },
703 "handle-get-server-information",
704 FALSE(0)
705};
706
707static const GDBusMethodInfo * const _notify_daemon_notifications_method_info_pointers[] =
708{
709 &_notify_daemon_notifications_method_info_notify.parent_struct,
710 &_notify_daemon_notifications_method_info_close_notification.parent_struct,
711 &_notify_daemon_notifications_method_info_get_capabilities.parent_struct,
712 &_notify_daemon_notifications_method_info_get_server_information.parent_struct,
713 NULL((void*)0)
714};
715
716static const _ExtendedGDBusArgInfo _notify_daemon_notifications_signal_info_action_invoked_ARG_id =
717{
718 {
719 -1,
720 (gchar *) "id",
721 (gchar *) "u",
722 NULL((void*)0)
723 },
724 FALSE(0)
725};
726
727static const _ExtendedGDBusArgInfo _notify_daemon_notifications_signal_info_action_invoked_ARG_action_key =
728{
729 {
730 -1,
731 (gchar *) "action_key",
732 (gchar *) "s",
733 NULL((void*)0)
734 },
735 FALSE(0)
736};
737
738static const GDBusArgInfo * const _notify_daemon_notifications_signal_info_action_invoked_ARG_pointers[] =
739{
740 &_notify_daemon_notifications_signal_info_action_invoked_ARG_id.parent_struct,
741 &_notify_daemon_notifications_signal_info_action_invoked_ARG_action_key.parent_struct,
742 NULL((void*)0)
743};
744
745static const _ExtendedGDBusSignalInfo _notify_daemon_notifications_signal_info_action_invoked =
746{
747 {
748 -1,
749 (gchar *) "ActionInvoked",
750 (GDBusArgInfo **) &_notify_daemon_notifications_signal_info_action_invoked_ARG_pointers,
751 NULL((void*)0)
752 },
753 "action-invoked"
754};
755
756static const _ExtendedGDBusArgInfo _notify_daemon_notifications_signal_info_notification_closed_ARG_id =
757{
758 {
759 -1,
760 (gchar *) "id",
761 (gchar *) "u",
762 NULL((void*)0)
763 },
764 FALSE(0)
765};
766
767static const _ExtendedGDBusArgInfo _notify_daemon_notifications_signal_info_notification_closed_ARG_reason =
768{
769 {
770 -1,
771 (gchar *) "reason",
772 (gchar *) "u",
773 NULL((void*)0)
774 },
775 FALSE(0)
776};
777
778static const GDBusArgInfo * const _notify_daemon_notifications_signal_info_notification_closed_ARG_pointers[] =
779{
780 &_notify_daemon_notifications_signal_info_notification_closed_ARG_id.parent_struct,
781 &_notify_daemon_notifications_signal_info_notification_closed_ARG_reason.parent_struct,
782 NULL((void*)0)
783};
784
785static const _ExtendedGDBusSignalInfo _notify_daemon_notifications_signal_info_notification_closed =
786{
787 {
788 -1,
789 (gchar *) "NotificationClosed",
790 (GDBusArgInfo **) &_notify_daemon_notifications_signal_info_notification_closed_ARG_pointers,
791 NULL((void*)0)
792 },
793 "notification-closed"
794};
795
796static const GDBusSignalInfo * const _notify_daemon_notifications_signal_info_pointers[] =
797{
798 &_notify_daemon_notifications_signal_info_action_invoked.parent_struct,
799 &_notify_daemon_notifications_signal_info_notification_closed.parent_struct,
800 NULL((void*)0)
801};
802
803static const _ExtendedGDBusInterfaceInfo _notify_daemon_notifications_interface_info =
804{
805 {
806 -1,
807 (gchar *) "org.freedesktop.Notifications",
808 (GDBusMethodInfo **) &_notify_daemon_notifications_method_info_pointers,
809 (GDBusSignalInfo **) &_notify_daemon_notifications_signal_info_pointers,
810 NULL((void*)0),
811 NULL((void*)0)
812 },
813 "notifications",
814};
815
816
817/**
818 * notify_daemon_notifications_interface_info:
819 *
820 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-Notifications.top_of_page">org.freedesktop.Notifications</link> D-Bus interface.
821 *
822 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
823 */
824GDBusInterfaceInfo *
825notify_daemon_notifications_interface_info (void)
826{
827 return (GDBusInterfaceInfo *) &_notify_daemon_notifications_interface_info.parent_struct;
828}
829
830/**
831 * notify_daemon_notifications_override_properties:
832 * @klass: The class structure for a #GObject derived class.
833 * @property_id_begin: The property id to assign to the first overridden property.
834 *
835 * Overrides all #GObject properties in the #NotifyDaemonNotifications interface for a concrete class.
836 * The properties are overridden in the order they are defined.
837 *
838 * Returns: The last property id.
839 */
840guint
841notify_daemon_notifications_override_properties (GObjectClass *klass G_GNUC_UNUSED__attribute__ ((__unused__)), guint property_id_begin)
842{
843 return property_id_begin - 1;
844}
845
846
847inline static void
848notify_daemon_notifications_signal_marshal_action_invoked (
849 GClosure *closure,
850 GValue *return_value,
851 unsigned int n_param_values,
852 const GValue *param_values,
853 void *invocation_hint,
854 void *marshal_data)
855{
856 _g_dbus_codegen_marshal_VOID__UINT_STRING (closure,
857 return_value, n_param_values, param_values, invocation_hint, marshal_data);
858}
859
860inline static void
861notify_daemon_notifications_signal_marshal_notification_closed (
862 GClosure *closure,
863 GValue *return_value,
864 unsigned int n_param_values,
865 const GValue *param_values,
866 void *invocation_hint,
867 void *marshal_data)
868{
869 _g_dbus_codegen_marshal_VOID__UINT_UINT (closure,
870 return_value, n_param_values, param_values, invocation_hint, marshal_data);
871}
872
873inline static void
874notify_daemon_notifications_method_marshal_notify (
875 GClosure *closure,
876 GValue *return_value,
877 unsigned int n_param_values,
878 const GValue *param_values,
879 void *invocation_hint,
880 void *marshal_data)
881{
882 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_UINT_STRING_STRING_STRING_BOXED_VARIANT_INT (closure,
883 return_value, n_param_values, param_values, invocation_hint, marshal_data);
884}
885
886inline static void
887notify_daemon_notifications_method_marshal_close_notification (
888 GClosure *closure,
889 GValue *return_value,
890 unsigned int n_param_values,
891 const GValue *param_values,
892 void *invocation_hint,
893 void *marshal_data)
894{
895 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure,
896 return_value, n_param_values, param_values, invocation_hint, marshal_data);
897}
898
899inline static void
900notify_daemon_notifications_method_marshal_get_capabilities (
901 GClosure *closure,
902 GValue *return_value,
903 unsigned int n_param_values,
904 const GValue *param_values,
905 void *invocation_hint,
906 void *marshal_data)
907{
908 _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure,
909 return_value, n_param_values, param_values, invocation_hint, marshal_data);
910}
911
912inline static void
913notify_daemon_notifications_method_marshal_get_server_information (
914 GClosure *closure,
915 GValue *return_value,
916 unsigned int n_param_values,
917 const GValue *param_values,
918 void *invocation_hint,
919 void *marshal_data)
920{
921 _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure,
922 return_value, n_param_values, param_values, invocation_hint, marshal_data);
923}
924
925
926/**
927 * NotifyDaemonNotifications:
928 *
929 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Notifications.top_of_page">org.freedesktop.Notifications</link>.
930 */
931
932/**
933 * NotifyDaemonNotificationsIface:
934 * @parent_iface: The parent interface.
935 * @handle_close_notification: Handler for the #NotifyDaemonNotifications::handle-close-notification signal.
936 * @handle_get_capabilities: Handler for the #NotifyDaemonNotifications::handle-get-capabilities signal.
937 * @handle_get_server_information: Handler for the #NotifyDaemonNotifications::handle-get-server-information signal.
938 * @handle_notify: Handler for the #NotifyDaemonNotifications::handle-notify signal.
939 * @action_invoked: Handler for the #NotifyDaemonNotifications::action-invoked signal.
940 * @notification_closed: Handler for the #NotifyDaemonNotifications::notification-closed signal.
941 *
942 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Notifications.top_of_page">org.freedesktop.Notifications</link>.
943 */
944
945typedef NotifyDaemonNotificationsIface NotifyDaemonNotificationsInterface;
946G_DEFINE_INTERFACE (NotifyDaemonNotifications, notify_daemon_notifications, G_TYPE_OBJECT)static void notify_daemon_notifications_default_init (NotifyDaemonNotificationsInterface
*klass); GType notify_daemon_notifications_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 ("NotifyDaemonNotifications"), sizeof
(NotifyDaemonNotificationsInterface), (GClassInitFunc)(void (
*)(void)) notify_daemon_notifications_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
; }
947
948static void
949notify_daemon_notifications_default_init (NotifyDaemonNotificationsIface *iface)
950{
951 /* GObject signals for incoming D-Bus method calls: */
952 /**
953 * NotifyDaemonNotifications::handle-notify:
954 * @object: A #NotifyDaemonNotifications.
955 * @invocation: A #GDBusMethodInvocation.
956 * @arg_app_name: Argument passed by remote caller.
957 * @arg_id: Argument passed by remote caller.
958 * @arg_icon: Argument passed by remote caller.
959 * @arg_summary: Argument passed by remote caller.
960 * @arg_body: Argument passed by remote caller.
961 * @arg_actions: Argument passed by remote caller.
962 * @arg_hints: Argument passed by remote caller.
963 * @arg_timeout: Argument passed by remote caller.
964 *
965 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Notifications.Notify">Notify()</link> D-Bus method.
966 *
967 * 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 notify_daemon_notifications_complete_notify() 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.
968 *
969 * 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.
970 */
971 g_signal_new ("handle-notify",
972 G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type),
973 G_SIGNAL_RUN_LAST,
974 G_STRUCT_OFFSET (NotifyDaemonNotificationsIface, handle_notify)((glong) __builtin_offsetof(NotifyDaemonNotificationsIface, handle_notify
))
,
975 g_signal_accumulator_true_handled,
976 NULL((void*)0),
977 notify_daemon_notifications_method_marshal_notify,
978 G_TYPE_BOOLEAN((GType) ((5) << (2))),
979 9,
980 G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_UINT((GType) ((7) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRING((GType) ((16) << (2))), G_TYPE_STRV(g_strv_get_type ()), G_TYPE_VARIANT((GType) ((21) << (2))), G_TYPE_INT((GType) ((6) << (2))));
981
982 /**
983 * NotifyDaemonNotifications::handle-close-notification:
984 * @object: A #NotifyDaemonNotifications.
985 * @invocation: A #GDBusMethodInvocation.
986 * @arg_id: Argument passed by remote caller.
987 *
988 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Notifications.CloseNotification">CloseNotification()</link> D-Bus method.
989 *
990 * 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 notify_daemon_notifications_complete_close_notification() 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.
991 *
992 * 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.
993 */
994 g_signal_new ("handle-close-notification",
995 G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type),
996 G_SIGNAL_RUN_LAST,
997 G_STRUCT_OFFSET (NotifyDaemonNotificationsIface, handle_close_notification)((glong) __builtin_offsetof(NotifyDaemonNotificationsIface, handle_close_notification
))
,
998 g_signal_accumulator_true_handled,
999 NULL((void*)0),
1000 notify_daemon_notifications_method_marshal_close_notification,
1001 G_TYPE_BOOLEAN((GType) ((5) << (2))),
1002 2,
1003 G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()), G_TYPE_UINT((GType) ((7) << (2))));
1004
1005 /**
1006 * NotifyDaemonNotifications::handle-get-capabilities:
1007 * @object: A #NotifyDaemonNotifications.
1008 * @invocation: A #GDBusMethodInvocation.
1009 *
1010 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Notifications.GetCapabilities">GetCapabilities()</link> D-Bus method.
1011 *
1012 * 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 notify_daemon_notifications_complete_get_capabilities() 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.
1013 *
1014 * 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.
1015 */
1016 g_signal_new ("handle-get-capabilities",
1017 G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type),
1018 G_SIGNAL_RUN_LAST,
1019 G_STRUCT_OFFSET (NotifyDaemonNotificationsIface, handle_get_capabilities)((glong) __builtin_offsetof(NotifyDaemonNotificationsIface, handle_get_capabilities
))
,
1020 g_signal_accumulator_true_handled,
1021 NULL((void*)0),
1022 notify_daemon_notifications_method_marshal_get_capabilities,
1023 G_TYPE_BOOLEAN((GType) ((5) << (2))),
1024 1,
1025 G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()));
1026
1027 /**
1028 * NotifyDaemonNotifications::handle-get-server-information:
1029 * @object: A #NotifyDaemonNotifications.
1030 * @invocation: A #GDBusMethodInvocation.
1031 *
1032 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Notifications.GetServerInformation">GetServerInformation()</link> D-Bus method.
1033 *
1034 * 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 notify_daemon_notifications_complete_get_server_information() 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.
1035 *
1036 * 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.
1037 */
1038 g_signal_new ("handle-get-server-information",
1039 G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type),
1040 G_SIGNAL_RUN_LAST,
1041 G_STRUCT_OFFSET (NotifyDaemonNotificationsIface, handle_get_server_information)((glong) __builtin_offsetof(NotifyDaemonNotificationsIface, handle_get_server_information
))
,
1042 g_signal_accumulator_true_handled,
1043 NULL((void*)0),
1044 notify_daemon_notifications_method_marshal_get_server_information,
1045 G_TYPE_BOOLEAN((GType) ((5) << (2))),
1046 1,
1047 G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()));
1048
1049 /* GObject signals for received D-Bus signals: */
1050 /**
1051 * NotifyDaemonNotifications::action-invoked:
1052 * @object: A #NotifyDaemonNotifications.
1053 * @arg_id: Argument.
1054 * @arg_action_key: Argument.
1055 *
1056 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-Notifications.ActionInvoked">"ActionInvoked"</link> is received.
1057 *
1058 * 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.
1059 */
1060 NOTIFY_DAEMON__NOTIFICATIONS_SIGNALS[NOTIFY_DAEMON__NOTIFICATIONS_ACTION_INVOKED] =
1061 g_signal_new ("action-invoked",
1062 G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type),
1063 G_SIGNAL_RUN_LAST,
1064 G_STRUCT_OFFSET (NotifyDaemonNotificationsIface, action_invoked)((glong) __builtin_offsetof(NotifyDaemonNotificationsIface, action_invoked
))
,
1065 NULL((void*)0),
1066 NULL((void*)0),
1067 notify_daemon_notifications_signal_marshal_action_invoked,
1068 G_TYPE_NONE((GType) ((1) << (2))),
1069 2, G_TYPE_UINT((GType) ((7) << (2))), G_TYPE_STRING((GType) ((16) << (2))));
1070
1071 /**
1072 * NotifyDaemonNotifications::notification-closed:
1073 * @object: A #NotifyDaemonNotifications.
1074 * @arg_id: Argument.
1075 * @arg_reason: Argument.
1076 *
1077 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-Notifications.NotificationClosed">"NotificationClosed"</link> is received.
1078 *
1079 * 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.
1080 */
1081 NOTIFY_DAEMON__NOTIFICATIONS_SIGNALS[NOTIFY_DAEMON__NOTIFICATIONS_NOTIFICATION_CLOSED] =
1082 g_signal_new ("notification-closed",
1083 G_TYPE_FROM_INTERFACE (iface)(((GTypeInterface*) (iface))->g_type),
1084 G_SIGNAL_RUN_LAST,
1085 G_STRUCT_OFFSET (NotifyDaemonNotificationsIface, notification_closed)((glong) __builtin_offsetof(NotifyDaemonNotificationsIface, notification_closed
))
,
1086 NULL((void*)0),
1087 NULL((void*)0),
1088 notify_daemon_notifications_signal_marshal_notification_closed,
1089 G_TYPE_NONE((GType) ((1) << (2))),
1090 2, G_TYPE_UINT((GType) ((7) << (2))), G_TYPE_UINT((GType) ((7) << (2))));
1091
1092}
1093
1094/**
1095 * notify_daemon_notifications_emit_action_invoked:
1096 * @object: A #NotifyDaemonNotifications.
1097 * @arg_id: Argument to pass with the signal.
1098 * @arg_action_key: Argument to pass with the signal.
1099 *
1100 * Emits the <link linkend="gdbus-signal-org-freedesktop-Notifications.ActionInvoked">"ActionInvoked"</link> D-Bus signal.
1101 */
1102void
1103notify_daemon_notifications_emit_action_invoked (
1104 NotifyDaemonNotifications *object,
1105 guint arg_id,
1106 const gchar *arg_action_key)
1107{
1108 g_signal_emit (object, NOTIFY_DAEMON__NOTIFICATIONS_SIGNALS[NOTIFY_DAEMON__NOTIFICATIONS_ACTION_INVOKED], 0, arg_id, arg_action_key);
1109}
1110
1111/**
1112 * notify_daemon_notifications_emit_notification_closed:
1113 * @object: A #NotifyDaemonNotifications.
1114 * @arg_id: Argument to pass with the signal.
1115 * @arg_reason: Argument to pass with the signal.
1116 *
1117 * Emits the <link linkend="gdbus-signal-org-freedesktop-Notifications.NotificationClosed">"NotificationClosed"</link> D-Bus signal.
1118 */
1119void
1120notify_daemon_notifications_emit_notification_closed (
1121 NotifyDaemonNotifications *object,
1122 guint arg_id,
1123 guint arg_reason)
1124{
1125 g_signal_emit (object, NOTIFY_DAEMON__NOTIFICATIONS_SIGNALS[NOTIFY_DAEMON__NOTIFICATIONS_NOTIFICATION_CLOSED], 0, arg_id, arg_reason);
1126}
1127
1128/**
1129 * notify_daemon_notifications_call_notify:
1130 * @proxy: A #NotifyDaemonNotificationsProxy.
1131 * @arg_app_name: Argument to pass with the method invocation.
1132 * @arg_id: Argument to pass with the method invocation.
1133 * @arg_icon: Argument to pass with the method invocation.
1134 * @arg_summary: Argument to pass with the method invocation.
1135 * @arg_body: Argument to pass with the method invocation.
1136 * @arg_actions: Argument to pass with the method invocation.
1137 * @arg_hints: Argument to pass with the method invocation.
1138 * @arg_timeout: Argument to pass with the method invocation.
1139 * @cancellable: (nullable): A #GCancellable or %NULL.
1140 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1141 * @user_data: User data to pass to @callback.
1142 *
1143 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Notifications.Notify">Notify()</link> D-Bus method on @proxy.
1144 * 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()).
1145 * You can then call notify_daemon_notifications_call_notify_finish() to get the result of the operation.
1146 *
1147 * See notify_daemon_notifications_call_notify_sync() for the synchronous, blocking version of this method.
1148 */
1149void
1150notify_daemon_notifications_call_notify (
1151 NotifyDaemonNotifications *proxy,
1152 const gchar *arg_app_name,
1153 guint arg_id,
1154 const gchar *arg_icon,
1155 const gchar *arg_summary,
1156 const gchar *arg_body,
1157 const gchar *const *arg_actions,
1158 GVariant *arg_hints,
1159 gint arg_timeout,
1160 GCancellable *cancellable,
1161 GAsyncReadyCallback callback,
1162 gpointer user_data)
1163{
1164 g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
,
1165 "Notify",
1166 g_variant_new ("(susss^as@a{sv}i)",
1167 arg_app_name,
1168 arg_id,
1169 arg_icon,
1170 arg_summary,
1171 arg_body,
1172 arg_actions,
1173 arg_hints,
1174 arg_timeout),
1175 G_DBUS_CALL_FLAGS_NONE,
1176 -1,
1177 cancellable,
1178 callback,
1179 user_data);
1180}
1181
1182/**
1183 * notify_daemon_notifications_call_notify_finish:
1184 * @proxy: A #NotifyDaemonNotificationsProxy.
1185 * @out_return_id: (out) (optional): Return location for return parameter or %NULL to ignore.
1186 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to notify_daemon_notifications_call_notify().
1187 * @error: Return location for error or %NULL.
1188 *
1189 * Finishes an operation started with notify_daemon_notifications_call_notify().
1190 *
1191 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1192 */
1193gboolean
1194notify_daemon_notifications_call_notify_finish (
1195 NotifyDaemonNotifications *proxy,
1196 guint *out_return_id,
1197 GAsyncResult *res,
1198 GError **error)
1199{
1200 GVariant *_ret;
1201 _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);
1202 if (_ret == NULL((void*)0))
1203 goto _out;
1204 g_variant_get (_ret,
1205 "(u)",
1206 out_return_id);
1207 g_variant_unref (_ret);
1208_out:
1209 return _ret != NULL((void*)0);
1210}
1211
1212/**
1213 * notify_daemon_notifications_call_notify_sync:
1214 * @proxy: A #NotifyDaemonNotificationsProxy.
1215 * @arg_app_name: Argument to pass with the method invocation.
1216 * @arg_id: Argument to pass with the method invocation.
1217 * @arg_icon: Argument to pass with the method invocation.
1218 * @arg_summary: Argument to pass with the method invocation.
1219 * @arg_body: Argument to pass with the method invocation.
1220 * @arg_actions: Argument to pass with the method invocation.
1221 * @arg_hints: Argument to pass with the method invocation.
1222 * @arg_timeout: Argument to pass with the method invocation.
1223 * @out_return_id: (out) (optional): Return location for return parameter or %NULL to ignore.
1224 * @cancellable: (nullable): A #GCancellable or %NULL.
1225 * @error: Return location for error or %NULL.
1226 *
1227 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Notifications.Notify">Notify()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1228 *
1229 * See notify_daemon_notifications_call_notify() for the asynchronous version of this method.
1230 *
1231 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1232 */
1233gboolean
1234notify_daemon_notifications_call_notify_sync (
1235 NotifyDaemonNotifications *proxy,
1236 const gchar *arg_app_name,
1237 guint arg_id,
1238 const gchar *arg_icon,
1239 const gchar *arg_summary,
1240 const gchar *arg_body,
1241 const gchar *const *arg_actions,
1242 GVariant *arg_hints,
1243 gint arg_timeout,
1244 guint *out_return_id,
1245 GCancellable *cancellable,
1246 GError **error)
1247{
1248 GVariant *_ret;
1249 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
,
1250 "Notify",
1251 g_variant_new ("(susss^as@a{sv}i)",
1252 arg_app_name,
1253 arg_id,
1254 arg_icon,
1255 arg_summary,
1256 arg_body,
1257 arg_actions,
1258 arg_hints,
1259 arg_timeout),
1260 G_DBUS_CALL_FLAGS_NONE,
1261 -1,
1262 cancellable,
1263 error);
1264 if (_ret == NULL((void*)0))
1265 goto _out;
1266 g_variant_get (_ret,
1267 "(u)",
1268 out_return_id);
1269 g_variant_unref (_ret);
1270_out:
1271 return _ret != NULL((void*)0);
1272}
1273
1274/**
1275 * notify_daemon_notifications_call_close_notification:
1276 * @proxy: A #NotifyDaemonNotificationsProxy.
1277 * @arg_id: Argument to pass with the method invocation.
1278 * @cancellable: (nullable): A #GCancellable or %NULL.
1279 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1280 * @user_data: User data to pass to @callback.
1281 *
1282 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Notifications.CloseNotification">CloseNotification()</link> D-Bus method on @proxy.
1283 * 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()).
1284 * You can then call notify_daemon_notifications_call_close_notification_finish() to get the result of the operation.
1285 *
1286 * See notify_daemon_notifications_call_close_notification_sync() for the synchronous, blocking version of this method.
1287 */
1288void
1289notify_daemon_notifications_call_close_notification (
1290 NotifyDaemonNotifications *proxy,
1291 guint arg_id,
1292 GCancellable *cancellable,
1293 GAsyncReadyCallback callback,
1294 gpointer user_data)
1295{
1296 g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
,
1297 "CloseNotification",
1298 g_variant_new ("(u)",
1299 arg_id),
1300 G_DBUS_CALL_FLAGS_NONE,
1301 -1,
1302 cancellable,
1303 callback,
1304 user_data);
1305}
1306
1307/**
1308 * notify_daemon_notifications_call_close_notification_finish:
1309 * @proxy: A #NotifyDaemonNotificationsProxy.
1310 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to notify_daemon_notifications_call_close_notification().
1311 * @error: Return location for error or %NULL.
1312 *
1313 * Finishes an operation started with notify_daemon_notifications_call_close_notification().
1314 *
1315 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1316 */
1317gboolean
1318notify_daemon_notifications_call_close_notification_finish (
1319 NotifyDaemonNotifications *proxy,
1320 GAsyncResult *res,
1321 GError **error)
1322{
1323 GVariant *_ret;
1324 _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);
1325 if (_ret == NULL((void*)0))
1326 goto _out;
1327 g_variant_get (_ret,
1328 "()");
1329 g_variant_unref (_ret);
1330_out:
1331 return _ret != NULL((void*)0);
1332}
1333
1334/**
1335 * notify_daemon_notifications_call_close_notification_sync:
1336 * @proxy: A #NotifyDaemonNotificationsProxy.
1337 * @arg_id: Argument to pass with the method invocation.
1338 * @cancellable: (nullable): A #GCancellable or %NULL.
1339 * @error: Return location for error or %NULL.
1340 *
1341 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Notifications.CloseNotification">CloseNotification()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1342 *
1343 * See notify_daemon_notifications_call_close_notification() for the asynchronous version of this method.
1344 *
1345 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1346 */
1347gboolean
1348notify_daemon_notifications_call_close_notification_sync (
1349 NotifyDaemonNotifications *proxy,
1350 guint arg_id,
1351 GCancellable *cancellable,
1352 GError **error)
1353{
1354 GVariant *_ret;
1355 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
,
1356 "CloseNotification",
1357 g_variant_new ("(u)",
1358 arg_id),
1359 G_DBUS_CALL_FLAGS_NONE,
1360 -1,
1361 cancellable,
1362 error);
1363 if (_ret == NULL((void*)0))
1364 goto _out;
1365 g_variant_get (_ret,
1366 "()");
1367 g_variant_unref (_ret);
1368_out:
1369 return _ret != NULL((void*)0);
1370}
1371
1372/**
1373 * notify_daemon_notifications_call_get_capabilities:
1374 * @proxy: A #NotifyDaemonNotificationsProxy.
1375 * @cancellable: (nullable): A #GCancellable or %NULL.
1376 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1377 * @user_data: User data to pass to @callback.
1378 *
1379 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Notifications.GetCapabilities">GetCapabilities()</link> D-Bus method on @proxy.
1380 * 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()).
1381 * You can then call notify_daemon_notifications_call_get_capabilities_finish() to get the result of the operation.
1382 *
1383 * See notify_daemon_notifications_call_get_capabilities_sync() for the synchronous, blocking version of this method.
1384 */
1385void
1386notify_daemon_notifications_call_get_capabilities (
1387 NotifyDaemonNotifications *proxy,
1388 GCancellable *cancellable,
1389 GAsyncReadyCallback callback,
1390 gpointer user_data)
1391{
1392 g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
,
1393 "GetCapabilities",
1394 g_variant_new ("()"),
1395 G_DBUS_CALL_FLAGS_NONE,
1396 -1,
1397 cancellable,
1398 callback,
1399 user_data);
1400}
1401
1402/**
1403 * notify_daemon_notifications_call_get_capabilities_finish:
1404 * @proxy: A #NotifyDaemonNotificationsProxy.
1405 * @out_return_caps: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
1406 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to notify_daemon_notifications_call_get_capabilities().
1407 * @error: Return location for error or %NULL.
1408 *
1409 * Finishes an operation started with notify_daemon_notifications_call_get_capabilities().
1410 *
1411 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1412 */
1413gboolean
1414notify_daemon_notifications_call_get_capabilities_finish (
1415 NotifyDaemonNotifications *proxy,
1416 gchar ***out_return_caps,
1417 GAsyncResult *res,
1418 GError **error)
1419{
1420 GVariant *_ret;
1421 _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);
1422 if (_ret == NULL((void*)0))
1423 goto _out;
1424 g_variant_get (_ret,
1425 "(^as)",
1426 out_return_caps);
1427 g_variant_unref (_ret);
1428_out:
1429 return _ret != NULL((void*)0);
1430}
1431
1432/**
1433 * notify_daemon_notifications_call_get_capabilities_sync:
1434 * @proxy: A #NotifyDaemonNotificationsProxy.
1435 * @out_return_caps: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
1436 * @cancellable: (nullable): A #GCancellable or %NULL.
1437 * @error: Return location for error or %NULL.
1438 *
1439 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Notifications.GetCapabilities">GetCapabilities()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1440 *
1441 * See notify_daemon_notifications_call_get_capabilities() for the asynchronous version of this method.
1442 *
1443 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1444 */
1445gboolean
1446notify_daemon_notifications_call_get_capabilities_sync (
1447 NotifyDaemonNotifications *proxy,
1448 gchar ***out_return_caps,
1449 GCancellable *cancellable,
1450 GError **error)
1451{
1452 GVariant *_ret;
1453 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
,
1454 "GetCapabilities",
1455 g_variant_new ("()"),
1456 G_DBUS_CALL_FLAGS_NONE,
1457 -1,
1458 cancellable,
1459 error);
1460 if (_ret == NULL((void*)0))
1461 goto _out;
1462 g_variant_get (_ret,
1463 "(^as)",
1464 out_return_caps);
1465 g_variant_unref (_ret);
1466_out:
1467 return _ret != NULL((void*)0);
1468}
1469
1470/**
1471 * notify_daemon_notifications_call_get_server_information:
1472 * @proxy: A #NotifyDaemonNotificationsProxy.
1473 * @cancellable: (nullable): A #GCancellable or %NULL.
1474 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1475 * @user_data: User data to pass to @callback.
1476 *
1477 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-Notifications.GetServerInformation">GetServerInformation()</link> D-Bus method on @proxy.
1478 * 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()).
1479 * You can then call notify_daemon_notifications_call_get_server_information_finish() to get the result of the operation.
1480 *
1481 * See notify_daemon_notifications_call_get_server_information_sync() for the synchronous, blocking version of this method.
1482 */
1483void
1484notify_daemon_notifications_call_get_server_information (
1485 NotifyDaemonNotifications *proxy,
1486 GCancellable *cancellable,
1487 GAsyncReadyCallback callback,
1488 gpointer user_data)
1489{
1490 g_dbus_proxy_call (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
,
1491 "GetServerInformation",
1492 g_variant_new ("()"),
1493 G_DBUS_CALL_FLAGS_NONE,
1494 -1,
1495 cancellable,
1496 callback,
1497 user_data);
1498}
1499
1500/**
1501 * notify_daemon_notifications_call_get_server_information_finish:
1502 * @proxy: A #NotifyDaemonNotificationsProxy.
1503 * @out_return_name: (out) (optional): Return location for return parameter or %NULL to ignore.
1504 * @out_return_vendor: (out) (optional): Return location for return parameter or %NULL to ignore.
1505 * @out_return_version: (out) (optional): Return location for return parameter or %NULL to ignore.
1506 * @out_return_spec_version: (out) (optional): Return location for return parameter or %NULL to ignore.
1507 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to notify_daemon_notifications_call_get_server_information().
1508 * @error: Return location for error or %NULL.
1509 *
1510 * Finishes an operation started with notify_daemon_notifications_call_get_server_information().
1511 *
1512 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1513 */
1514gboolean
1515notify_daemon_notifications_call_get_server_information_finish (
1516 NotifyDaemonNotifications *proxy,
1517 gchar **out_return_name,
1518 gchar **out_return_vendor,
1519 gchar **out_return_version,
1520 gchar **out_return_spec_version,
1521 GAsyncResult *res,
1522 GError **error)
1523{
1524 GVariant *_ret;
1525 _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);
1526 if (_ret == NULL((void*)0))
1527 goto _out;
1528 g_variant_get (_ret,
1529 "(ssss)",
1530 out_return_name,
1531 out_return_vendor,
1532 out_return_version,
1533 out_return_spec_version);
1534 g_variant_unref (_ret);
1535_out:
1536 return _ret != NULL((void*)0);
1537}
1538
1539/**
1540 * notify_daemon_notifications_call_get_server_information_sync:
1541 * @proxy: A #NotifyDaemonNotificationsProxy.
1542 * @out_return_name: (out) (optional): Return location for return parameter or %NULL to ignore.
1543 * @out_return_vendor: (out) (optional): Return location for return parameter or %NULL to ignore.
1544 * @out_return_version: (out) (optional): Return location for return parameter or %NULL to ignore.
1545 * @out_return_spec_version: (out) (optional): Return location for return parameter or %NULL to ignore.
1546 * @cancellable: (nullable): A #GCancellable or %NULL.
1547 * @error: Return location for error or %NULL.
1548 *
1549 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Notifications.GetServerInformation">GetServerInformation()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1550 *
1551 * See notify_daemon_notifications_call_get_server_information() for the asynchronous version of this method.
1552 *
1553 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1554 */
1555gboolean
1556notify_daemon_notifications_call_get_server_information_sync (
1557 NotifyDaemonNotifications *proxy,
1558 gchar **out_return_name,
1559 gchar **out_return_vendor,
1560 gchar **out_return_version,
1561 gchar **out_return_spec_version,
1562 GCancellable *cancellable,
1563 GError **error)
1564{
1565 GVariant *_ret;
1566 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
,
1567 "GetServerInformation",
1568 g_variant_new ("()"),
1569 G_DBUS_CALL_FLAGS_NONE,
1570 -1,
1571 cancellable,
1572 error);
1573 if (_ret == NULL((void*)0))
1574 goto _out;
1575 g_variant_get (_ret,
1576 "(ssss)",
1577 out_return_name,
1578 out_return_vendor,
1579 out_return_version,
1580 out_return_spec_version);
1581 g_variant_unref (_ret);
1582_out:
1583 return _ret != NULL((void*)0);
1584}
1585
1586/**
1587 * notify_daemon_notifications_complete_notify:
1588 * @object: A #NotifyDaemonNotifications.
1589 * @invocation: (transfer full): A #GDBusMethodInvocation.
1590 * @return_id: Parameter to return.
1591 *
1592 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Notifications.Notify">Notify()</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.
1593 *
1594 * This method will free @invocation, you cannot use it afterwards.
1595 */
1596void
1597notify_daemon_notifications_complete_notify (
1598 NotifyDaemonNotifications *object G_GNUC_UNUSED__attribute__ ((__unused__)),
1599 GDBusMethodInvocation *invocation,
1600 guint return_id)
1601{
1602 g_dbus_method_invocation_return_value (invocation,
1603 g_variant_new ("(u)",
1604 return_id));
1605}
1606
1607/**
1608 * notify_daemon_notifications_complete_close_notification:
1609 * @object: A #NotifyDaemonNotifications.
1610 * @invocation: (transfer full): A #GDBusMethodInvocation.
1611 *
1612 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Notifications.CloseNotification">CloseNotification()</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.
1613 *
1614 * This method will free @invocation, you cannot use it afterwards.
1615 */
1616void
1617notify_daemon_notifications_complete_close_notification (
1618 NotifyDaemonNotifications *object G_GNUC_UNUSED__attribute__ ((__unused__)),
1619 GDBusMethodInvocation *invocation)
1620{
1621 g_dbus_method_invocation_return_value (invocation,
1622 g_variant_new ("()"));
1623}
1624
1625/**
1626 * notify_daemon_notifications_complete_get_capabilities:
1627 * @object: A #NotifyDaemonNotifications.
1628 * @invocation: (transfer full): A #GDBusMethodInvocation.
1629 * @return_caps: Parameter to return.
1630 *
1631 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Notifications.GetCapabilities">GetCapabilities()</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.
1632 *
1633 * This method will free @invocation, you cannot use it afterwards.
1634 */
1635void
1636notify_daemon_notifications_complete_get_capabilities (
1637 NotifyDaemonNotifications *object G_GNUC_UNUSED__attribute__ ((__unused__)),
1638 GDBusMethodInvocation *invocation,
1639 const gchar *const *return_caps)
1640{
1641 g_dbus_method_invocation_return_value (invocation,
1642 g_variant_new ("(^as)",
1643 return_caps));
1644}
1645
1646/**
1647 * notify_daemon_notifications_complete_get_server_information:
1648 * @object: A #NotifyDaemonNotifications.
1649 * @invocation: (transfer full): A #GDBusMethodInvocation.
1650 * @return_name: Parameter to return.
1651 * @return_vendor: Parameter to return.
1652 * @return_version: Parameter to return.
1653 * @return_spec_version: Parameter to return.
1654 *
1655 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Notifications.GetServerInformation">GetServerInformation()</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.
1656 *
1657 * This method will free @invocation, you cannot use it afterwards.
1658 */
1659void
1660notify_daemon_notifications_complete_get_server_information (
1661 NotifyDaemonNotifications *object G_GNUC_UNUSED__attribute__ ((__unused__)),
1662 GDBusMethodInvocation *invocation,
1663 const gchar *return_name,
1664 const gchar *return_vendor,
1665 const gchar *return_version,
1666 const gchar *return_spec_version)
1667{
1668 g_dbus_method_invocation_return_value (invocation,
1669 g_variant_new ("(ssss)",
1670 return_name,
1671 return_vendor,
1672 return_version,
1673 return_spec_version));
1674}
1675
1676/* ------------------------------------------------------------------------ */
1677
1678/**
1679 * NotifyDaemonNotificationsProxy:
1680 *
1681 * The #NotifyDaemonNotificationsProxy structure contains only private data and should only be accessed using the provided API.
1682 */
1683
1684/**
1685 * NotifyDaemonNotificationsProxyClass:
1686 * @parent_class: The parent class.
1687 *
1688 * Class structure for #NotifyDaemonNotificationsProxy.
1689 */
1690
1691struct _NotifyDaemonNotificationsProxyPrivate
1692{
1693 GData *qdata;
1694};
1695
1696static void notify_daemon_notifications_proxy_iface_init (NotifyDaemonNotificationsIface *iface);
1697
1698#if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8))
1699G_DEFINE_TYPE_WITH_CODE (NotifyDaemonNotificationsProxy, notify_daemon_notifications_proxy, G_TYPE_DBUS_PROXY,static void notify_daemon_notifications_proxy_init (NotifyDaemonNotificationsProxy
*self); static void notify_daemon_notifications_proxy_class_init
(NotifyDaemonNotificationsProxyClass *klass); static GType notify_daemon_notifications_proxy_get_type_once
(void); static gpointer notify_daemon_notifications_proxy_parent_class
= ((void*)0); static gint NotifyDaemonNotificationsProxy_private_offset
; static void notify_daemon_notifications_proxy_class_intern_init
(gpointer klass) { notify_daemon_notifications_proxy_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsProxy_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsProxy_private_offset
); notify_daemon_notifications_proxy_class_init ((NotifyDaemonNotificationsProxyClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_proxy_get_instance_private (NotifyDaemonNotificationsProxy
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsProxy_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_proxy_get_type_once
(void) { GType g_define_type_id = g_type_register_static_simple
((g_dbus_proxy_get_type ()), g_intern_static_string ("NotifyDaemonNotificationsProxy"
), sizeof (NotifyDaemonNotificationsProxyClass), (GClassInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_class_intern_init
, sizeof (NotifyDaemonNotificationsProxy), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_init, (GTypeFlags
) 0); { {{ NotifyDaemonNotificationsProxy_private_offset = g_type_add_instance_private
(g_define_type_id, sizeof (NotifyDaemonNotificationsProxyPrivate
)); } { const GInterfaceInfo g_implement_interface_info = { (
GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_proxy_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
1700 G_ADD_PRIVATE (NotifyDaemonNotificationsProxy)static void notify_daemon_notifications_proxy_init (NotifyDaemonNotificationsProxy
*self); static void notify_daemon_notifications_proxy_class_init
(NotifyDaemonNotificationsProxyClass *klass); static GType notify_daemon_notifications_proxy_get_type_once
(void); static gpointer notify_daemon_notifications_proxy_parent_class
= ((void*)0); static gint NotifyDaemonNotificationsProxy_private_offset
; static void notify_daemon_notifications_proxy_class_intern_init
(gpointer klass) { notify_daemon_notifications_proxy_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsProxy_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsProxy_private_offset
); notify_daemon_notifications_proxy_class_init ((NotifyDaemonNotificationsProxyClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_proxy_get_instance_private (NotifyDaemonNotificationsProxy
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsProxy_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_proxy_get_type_once
(void) { GType g_define_type_id = g_type_register_static_simple
((g_dbus_proxy_get_type ()), g_intern_static_string ("NotifyDaemonNotificationsProxy"
), sizeof (NotifyDaemonNotificationsProxyClass), (GClassInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_class_intern_init
, sizeof (NotifyDaemonNotificationsProxy), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_init, (GTypeFlags
) 0); { {{ NotifyDaemonNotificationsProxy_private_offset = g_type_add_instance_private
(g_define_type_id, sizeof (NotifyDaemonNotificationsProxyPrivate
)); } { const GInterfaceInfo g_implement_interface_info = { (
GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_proxy_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
1701 G_IMPLEMENT_INTERFACE (NOTIFY_DAEMON_TYPE_NOTIFICATIONS, notify_daemon_notifications_proxy_iface_init))static void notify_daemon_notifications_proxy_init (NotifyDaemonNotificationsProxy
*self); static void notify_daemon_notifications_proxy_class_init
(NotifyDaemonNotificationsProxyClass *klass); static GType notify_daemon_notifications_proxy_get_type_once
(void); static gpointer notify_daemon_notifications_proxy_parent_class
= ((void*)0); static gint NotifyDaemonNotificationsProxy_private_offset
; static void notify_daemon_notifications_proxy_class_intern_init
(gpointer klass) { notify_daemon_notifications_proxy_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsProxy_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsProxy_private_offset
); notify_daemon_notifications_proxy_class_init ((NotifyDaemonNotificationsProxyClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_proxy_get_instance_private (NotifyDaemonNotificationsProxy
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsProxy_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_proxy_get_type_once
(void) { GType g_define_type_id = g_type_register_static_simple
((g_dbus_proxy_get_type ()), g_intern_static_string ("NotifyDaemonNotificationsProxy"
), sizeof (NotifyDaemonNotificationsProxyClass), (GClassInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_class_intern_init
, sizeof (NotifyDaemonNotificationsProxy), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_init, (GTypeFlags
) 0); { {{ NotifyDaemonNotificationsProxy_private_offset = g_type_add_instance_private
(g_define_type_id, sizeof (NotifyDaemonNotificationsProxyPrivate
)); } { const GInterfaceInfo g_implement_interface_info = { (
GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_proxy_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
1702
1703#else
1704G_DEFINE_TYPE_WITH_CODE (NotifyDaemonNotificationsProxy, notify_daemon_notifications_proxy, G_TYPE_DBUS_PROXY,static void notify_daemon_notifications_proxy_init (NotifyDaemonNotificationsProxy
*self); static void notify_daemon_notifications_proxy_class_init
(NotifyDaemonNotificationsProxyClass *klass); static GType notify_daemon_notifications_proxy_get_type_once
(void); static gpointer notify_daemon_notifications_proxy_parent_class
= ((void*)0); static gint NotifyDaemonNotificationsProxy_private_offset
; static void notify_daemon_notifications_proxy_class_intern_init
(gpointer klass) { notify_daemon_notifications_proxy_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsProxy_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsProxy_private_offset
); notify_daemon_notifications_proxy_class_init ((NotifyDaemonNotificationsProxyClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_proxy_get_instance_private (NotifyDaemonNotificationsProxy
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsProxy_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_proxy_get_type_once
(void) { GType g_define_type_id = g_type_register_static_simple
((g_dbus_proxy_get_type ()), g_intern_static_string ("NotifyDaemonNotificationsProxy"
), sizeof (NotifyDaemonNotificationsProxyClass), (GClassInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_class_intern_init
, sizeof (NotifyDaemonNotificationsProxy), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_init, (GTypeFlags
) 0); { {{ const GInterfaceInfo g_implement_interface_info = {
(GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_proxy_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
1705 G_IMPLEMENT_INTERFACE (NOTIFY_DAEMON_TYPE_NOTIFICATIONS, notify_daemon_notifications_proxy_iface_init))static void notify_daemon_notifications_proxy_init (NotifyDaemonNotificationsProxy
*self); static void notify_daemon_notifications_proxy_class_init
(NotifyDaemonNotificationsProxyClass *klass); static GType notify_daemon_notifications_proxy_get_type_once
(void); static gpointer notify_daemon_notifications_proxy_parent_class
= ((void*)0); static gint NotifyDaemonNotificationsProxy_private_offset
; static void notify_daemon_notifications_proxy_class_intern_init
(gpointer klass) { notify_daemon_notifications_proxy_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsProxy_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsProxy_private_offset
); notify_daemon_notifications_proxy_class_init ((NotifyDaemonNotificationsProxyClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_proxy_get_instance_private (NotifyDaemonNotificationsProxy
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsProxy_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_proxy_get_type_once
(void) { GType g_define_type_id = g_type_register_static_simple
((g_dbus_proxy_get_type ()), g_intern_static_string ("NotifyDaemonNotificationsProxy"
), sizeof (NotifyDaemonNotificationsProxyClass), (GClassInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_class_intern_init
, sizeof (NotifyDaemonNotificationsProxy), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_proxy_init, (GTypeFlags
) 0); { {{ const GInterfaceInfo g_implement_interface_info = {
(GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_proxy_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
1706
1707#endif
1708static void
1709notify_daemon_notifications_proxy_finalize (GObject *object)
1710{
1711 NotifyDaemonNotificationsProxy *proxy = NOTIFY_DAEMON_NOTIFICATIONS_PROXY (object)((((NotifyDaemonNotificationsProxy*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((object)), ((notify_daemon_notifications_proxy_get_type
()))))))
;
1712 g_datalist_clear (&proxy->priv->qdata);
1713 G_OBJECT_CLASS (notify_daemon_notifications_proxy_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass
*) ((notify_daemon_notifications_proxy_parent_class)), (((GType
) ((20) << (2))))))))
->finalize (object);
1714}
1715
1716static void
1717notify_daemon_notifications_proxy_get_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)),
1718 guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)),
1719 GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)),
1720 GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__)))
1721{
1722}
1723
1724static void
1725notify_daemon_notifications_proxy_set_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)),
1726 guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)),
1727 const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)),
1728 GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__)))
1729{
1730}
1731
1732static void
1733notify_daemon_notifications_proxy_g_signal (GDBusProxy *proxy,
1734 const gchar *sender_name G_GNUC_UNUSED__attribute__ ((__unused__)),
1735 const gchar *signal_name,
1736 GVariant *parameters)
1737{
1738 _ExtendedGDBusSignalInfo *info;
1739 GVariantIter iter;
1740 GVariant *child;
1741 GValue *paramv;
1742 gsize num_params;
1743 gsize n;
1744 guint signal_id;
1745 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_notify_daemon_notifications_interface_info.parent_struct, signal_name);
1746 if (info == NULL((void*)0))
1747 return;
1748 num_params = g_variant_n_children (parameters);
1749 paramv = g_new0 (GValue, num_params + 1)((GValue *) g_malloc0_n ((num_params + 1), sizeof (GValue)));
1750 g_value_init (&paramv[0], NOTIFY_DAEMON_TYPE_NOTIFICATIONS(notify_daemon_notifications_get_type ()));
1751 g_value_set_object (&paramv[0], proxy);
1752 g_variant_iter_init (&iter, parameters);
1753 n = 1;
1754 while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0))
1755 {
1756 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
1757 if (arg_info->use_gvariant)
1758 {
1759 g_value_init (&paramv[n], G_TYPE_VARIANT((GType) ((21) << (2))));
1760 g_value_set_variant (&paramv[n], child);
1761 n++;
1762 }
1763 else
1764 g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
1765 g_variant_unref (child);
1766 }
1767 signal_id = g_signal_lookup (info->signal_name, NOTIFY_DAEMON_TYPE_NOTIFICATIONS(notify_daemon_notifications_get_type ()));
1768 g_signal_emitv (paramv, signal_id, 0, NULL((void*)0));
1769 for (n = 0; n < num_params + 1; n++)
1770 g_value_unset (&paramv[n]);
1771 g_free (paramv);
1772}
1773
1774static void
1775notify_daemon_notifications_proxy_g_properties_changed (GDBusProxy *_proxy,
1776 GVariant *changed_properties,
1777 const gchar *const *invalidated_properties)
1778{
1779 NotifyDaemonNotificationsProxy *proxy = NOTIFY_DAEMON_NOTIFICATIONS_PROXY (_proxy)((((NotifyDaemonNotificationsProxy*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((_proxy)), ((notify_daemon_notifications_proxy_get_type
()))))))
;
1780 guint n;
1781 const gchar *key;
1782 GVariantIter *iter;
1783 _ExtendedGDBusPropertyInfo *info;
1784 g_variant_get (changed_properties, "a{sv}", &iter);
1785 while (g_variant_iter_next (iter, "{&sv}", &key, NULL((void*)0)))
1786 {
1787 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_notify_daemon_notifications_interface_info.parent_struct, key);
1788 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))
;
1789 if (info != NULL((void*)0))
1790 g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), (((GType) ((20) << (2))))))))
, info->hyphen_name);
1791 }
1792 g_variant_iter_free (iter);
1793 for (n = 0; invalidated_properties[n] != NULL((void*)0); n++)
1794 {
1795 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_notify_daemon_notifications_interface_info.parent_struct, invalidated_properties[n]);
1796 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))
;
1797 if (info != NULL((void*)0))
1798 g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), (((GType) ((20) << (2))))))))
, info->hyphen_name);
1799 }
1800}
1801
1802static void
1803notify_daemon_notifications_proxy_init (NotifyDaemonNotificationsProxy *proxy)
1804{
1805#if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8))
1806 proxy->priv = notify_daemon_notifications_proxy_get_instance_private (proxy);
1807#else
1808 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY, NotifyDaemonNotificationsProxyPrivate)((NotifyDaemonNotificationsProxyPrivate*) g_type_instance_get_private
((GTypeInstance*) (proxy), ((notify_daemon_notifications_proxy_get_type
())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\""
;
1809#endif
1810
1811 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((proxy)), ((g_dbus_proxy_get_type ()))))))
, notify_daemon_notifications_interface_info ());
1812}
1813
1814static void
1815notify_daemon_notifications_proxy_class_init (NotifyDaemonNotificationsProxyClass *klass)
1816{
1817 GObjectClass *gobject_class;
1818 GDBusProxyClass *proxy_class;
1819
1820 gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass
*) ((klass)), (((GType) ((20) << (2))))))))
;
1821 gobject_class->finalize = notify_daemon_notifications_proxy_finalize;
1822 gobject_class->get_property = notify_daemon_notifications_proxy_get_property;
1823 gobject_class->set_property = notify_daemon_notifications_proxy_set_property;
1824
1825 proxy_class = G_DBUS_PROXY_CLASS (klass)((((GDBusProxyClass*) (void *) g_type_check_class_cast ((GTypeClass
*) ((klass)), ((g_dbus_proxy_get_type ()))))))
;
1826 proxy_class->g_signal = notify_daemon_notifications_proxy_g_signal;
1827 proxy_class->g_properties_changed = notify_daemon_notifications_proxy_g_properties_changed;
1828
1829#if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8))
1830 g_type_class_add_private (klass, sizeof (NotifyDaemonNotificationsProxyPrivate));
1831#endif
1832}
1833
1834static void
1835notify_daemon_notifications_proxy_iface_init (NotifyDaemonNotificationsIface *iface G_GNUC_UNUSED__attribute__ ((__unused__)))
1836{
1837}
1838
1839/**
1840 * notify_daemon_notifications_proxy_new:
1841 * @connection: A #GDBusConnection.
1842 * @flags: Flags from the #GDBusProxyFlags enumeration.
1843 * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
1844 * @object_path: An object path.
1845 * @cancellable: (nullable): A #GCancellable or %NULL.
1846 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
1847 * @user_data: User data to pass to @callback.
1848 *
1849 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Notifications.top_of_page">org.freedesktop.Notifications</link>. See g_dbus_proxy_new() for more details.
1850 *
1851 * 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()).
1852 * You can then call notify_daemon_notifications_proxy_new_finish() to get the result of the operation.
1853 *
1854 * See notify_daemon_notifications_proxy_new_sync() for the synchronous, blocking version of this constructor.
1855 */
1856void
1857notify_daemon_notifications_proxy_new (
1858 GDBusConnection *connection,
1859 GDBusProxyFlags flags,
1860 const gchar *name,
1861 const gchar *object_path,
1862 GCancellable *cancellable,
1863 GAsyncReadyCallback callback,
1864 gpointer user_data)
1865{
1866 g_async_initable_new_async (NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY(notify_daemon_notifications_proxy_get_type ()), G_PRIORITY_DEFAULT0, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Notifications", NULL((void*)0));
1867}
1868
1869/**
1870 * notify_daemon_notifications_proxy_new_finish:
1871 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to notify_daemon_notifications_proxy_new().
1872 * @error: Return location for error or %NULL
1873 *
1874 * Finishes an operation started with notify_daemon_notifications_proxy_new().
1875 *
1876 * Returns: (transfer full) (type NotifyDaemonNotificationsProxy): The constructed proxy object or %NULL if @error is set.
1877 */
1878NotifyDaemonNotifications *
1879notify_daemon_notifications_proxy_new_finish (
1880 GAsyncResult *res,
1881 GError **error)
1882{
1883 GObject *ret;
1884 GObject *source_object;
1885 source_object = g_async_result_get_source_object (res);
1886 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);
1887 g_object_unref (source_object);
1888 if (ret != NULL((void*)0))
1889 return NOTIFY_DAEMON_NOTIFICATIONS (ret)((((NotifyDaemonNotifications*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((ret)), ((notify_daemon_notifications_get_type
()))))))
;
1890 else
1891 return NULL((void*)0);
1892}
1893
1894/**
1895 * notify_daemon_notifications_proxy_new_sync:
1896 * @connection: A #GDBusConnection.
1897 * @flags: Flags from the #GDBusProxyFlags enumeration.
1898 * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
1899 * @object_path: An object path.
1900 * @cancellable: (nullable): A #GCancellable or %NULL.
1901 * @error: Return location for error or %NULL
1902 *
1903 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Notifications.top_of_page">org.freedesktop.Notifications</link>. See g_dbus_proxy_new_sync() for more details.
1904 *
1905 * The calling thread is blocked until a reply is received.
1906 *
1907 * See notify_daemon_notifications_proxy_new() for the asynchronous version of this constructor.
1908 *
1909 * Returns: (transfer full) (type NotifyDaemonNotificationsProxy): The constructed proxy object or %NULL if @error is set.
1910 */
1911NotifyDaemonNotifications *
1912notify_daemon_notifications_proxy_new_sync (
1913 GDBusConnection *connection,
1914 GDBusProxyFlags flags,
1915 const gchar *name,
1916 const gchar *object_path,
1917 GCancellable *cancellable,
1918 GError **error)
1919{
1920 GInitable *ret;
1921 ret = g_initable_new (NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY(notify_daemon_notifications_proxy_get_type ()), cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Notifications", NULL((void*)0));
1922 if (ret != NULL((void*)0))
1923 return NOTIFY_DAEMON_NOTIFICATIONS (ret)((((NotifyDaemonNotifications*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((ret)), ((notify_daemon_notifications_get_type
()))))))
;
1924 else
1925 return NULL((void*)0);
1926}
1927
1928
1929/**
1930 * notify_daemon_notifications_proxy_new_for_bus:
1931 * @bus_type: A #GBusType.
1932 * @flags: Flags from the #GDBusProxyFlags enumeration.
1933 * @name: A bus name (well-known or unique).
1934 * @object_path: An object path.
1935 * @cancellable: (nullable): A #GCancellable or %NULL.
1936 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
1937 * @user_data: User data to pass to @callback.
1938 *
1939 * Like notify_daemon_notifications_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
1940 *
1941 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
1942 * You can then call notify_daemon_notifications_proxy_new_for_bus_finish() to get the result of the operation.
1943 *
1944 * See notify_daemon_notifications_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
1945 */
1946void
1947notify_daemon_notifications_proxy_new_for_bus (
1948 GBusType bus_type,
1949 GDBusProxyFlags flags,
1950 const gchar *name,
1951 const gchar *object_path,
1952 GCancellable *cancellable,
1953 GAsyncReadyCallback callback,
1954 gpointer user_data)
1955{
1956 g_async_initable_new_async (NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY(notify_daemon_notifications_proxy_get_type ()), G_PRIORITY_DEFAULT0, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Notifications", NULL((void*)0));
1957}
1958
1959/**
1960 * notify_daemon_notifications_proxy_new_for_bus_finish:
1961 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to notify_daemon_notifications_proxy_new_for_bus().
1962 * @error: Return location for error or %NULL
1963 *
1964 * Finishes an operation started with notify_daemon_notifications_proxy_new_for_bus().
1965 *
1966 * Returns: (transfer full) (type NotifyDaemonNotificationsProxy): The constructed proxy object or %NULL if @error is set.
1967 */
1968NotifyDaemonNotifications *
1969notify_daemon_notifications_proxy_new_for_bus_finish (
1970 GAsyncResult *res,
1971 GError **error)
1972{
1973 GObject *ret;
1974 GObject *source_object;
1975 source_object = g_async_result_get_source_object (res);
1976 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);
1977 g_object_unref (source_object);
1978 if (ret != NULL((void*)0))
1979 return NOTIFY_DAEMON_NOTIFICATIONS (ret)((((NotifyDaemonNotifications*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((ret)), ((notify_daemon_notifications_get_type
()))))))
;
1980 else
1981 return NULL((void*)0);
1982}
1983
1984/**
1985 * notify_daemon_notifications_proxy_new_for_bus_sync:
1986 * @bus_type: A #GBusType.
1987 * @flags: Flags from the #GDBusProxyFlags enumeration.
1988 * @name: A bus name (well-known or unique).
1989 * @object_path: An object path.
1990 * @cancellable: (nullable): A #GCancellable or %NULL.
1991 * @error: Return location for error or %NULL
1992 *
1993 * Like notify_daemon_notifications_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
1994 *
1995 * The calling thread is blocked until a reply is received.
1996 *
1997 * See notify_daemon_notifications_proxy_new_for_bus() for the asynchronous version of this constructor.
1998 *
1999 * Returns: (transfer full) (type NotifyDaemonNotificationsProxy): The constructed proxy object or %NULL if @error is set.
2000 */
2001NotifyDaemonNotifications *
2002notify_daemon_notifications_proxy_new_for_bus_sync (
2003 GBusType bus_type,
2004 GDBusProxyFlags flags,
2005 const gchar *name,
2006 const gchar *object_path,
2007 GCancellable *cancellable,
2008 GError **error)
2009{
2010 GInitable *ret;
2011 ret = g_initable_new (NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY(notify_daemon_notifications_proxy_get_type ()), cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Notifications", NULL((void*)0));
2012 if (ret != NULL((void*)0))
2013 return NOTIFY_DAEMON_NOTIFICATIONS (ret)((((NotifyDaemonNotifications*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((ret)), ((notify_daemon_notifications_get_type
()))))))
;
2014 else
2015 return NULL((void*)0);
2016}
2017
2018
2019/* ------------------------------------------------------------------------ */
2020
2021/**
2022 * NotifyDaemonNotificationsSkeleton:
2023 *
2024 * The #NotifyDaemonNotificationsSkeleton structure contains only private data and should only be accessed using the provided API.
2025 */
2026
2027/**
2028 * NotifyDaemonNotificationsSkeletonClass:
2029 * @parent_class: The parent class.
2030 *
2031 * Class structure for #NotifyDaemonNotificationsSkeleton.
2032 */
2033
2034struct _NotifyDaemonNotificationsSkeletonPrivate
2035{
2036 GValue *properties;
2037 GList *changed_properties;
2038 GSource *changed_properties_idle_source;
2039 GMainContext *context;
2040 GMutex lock;
2041};
2042
2043static void
2044_notify_daemon_notifications_skeleton_handle_method_call (
2045 GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)),
2046 const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)),
2047 const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)),
2048 const gchar *interface_name,
2049 const gchar *method_name,
2050 GVariant *parameters,
2051 GDBusMethodInvocation *invocation,
2052 gpointer user_data)
2053{
2054 NotifyDaemonNotificationsSkeleton *skeleton = NOTIFY_DAEMON_NOTIFICATIONS_SKELETON (user_data)((((NotifyDaemonNotificationsSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((user_data)), ((notify_daemon_notifications_skeleton_get_type
()))))))
;
2055 _ExtendedGDBusMethodInfo *info;
2056 GVariantIter iter;
2057 GVariant *child;
2058 GValue *paramv;
2059 gsize num_params;
2060 guint num_extra;
2061 gsize n;
2062 guint signal_id;
2063 GValue return_value = G_VALUE_INIT{ 0, { { 0 } } };
2064 info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2065 g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr (
((gchar*) 0), "mnd-dbus-generated.c", 2065, ((const char*) (__func__
)), "info != NULL"); } while (0)
;
2066 num_params = g_variant_n_children (parameters);
2067 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
)))
;
2068 n = 0;
2069 g_value_init (&paramv[n], NOTIFY_DAEMON_TYPE_NOTIFICATIONS(notify_daemon_notifications_get_type ()));
2070 g_value_set_object (&paramv[n++], skeleton);
2071 g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ()));
2072 g_value_set_object (&paramv[n++], invocation);
2073 if (info->pass_fdlist)
2074 {
2075#ifdef G_OS_UNIX
2076 g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST(g_unix_fd_list_get_type ()));
2077 g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2078#else
2079 g_assert_not_reached ()do { g_assertion_message_expr (((gchar*) 0), "mnd-dbus-generated.c"
, 2079, ((const char*) (__func__)), ((void*)0)); } while (0)
;
2080#endif
2081 }
2082 g_variant_iter_init (&iter, parameters);
2083 while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0))
2084 {
2085 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2086 if (arg_info->use_gvariant)
2087 {
2088 g_value_init (&paramv[n], G_TYPE_VARIANT((GType) ((21) << (2))));
2089 g_value_set_variant (&paramv[n], child);
2090 n++;
2091 }
2092 else
2093 g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2094 g_variant_unref (child);
2095 }
2096 signal_id = g_signal_lookup (info->signal_name, NOTIFY_DAEMON_TYPE_NOTIFICATIONS(notify_daemon_notifications_get_type ()));
2097 g_value_init (&return_value, G_TYPE_BOOLEAN((GType) ((5) << (2))));
2098 g_signal_emitv (paramv, signal_id, 0, &return_value);
2099 if (!g_value_get_boolean (&return_value))
2100 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);
2101 g_value_unset (&return_value);
2102 for (n = 0; n < num_params + num_extra; n++)
2103 g_value_unset (&paramv[n]);
2104 g_free (paramv);
2105}
2106
2107static GVariant *
2108_notify_daemon_notifications_skeleton_handle_get_property (
2109 GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)),
2110 const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)),
2111 const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)),
2112 const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)),
2113 const gchar *property_name,
2114 GError **error,
2115 gpointer user_data)
2116{
2117 NotifyDaemonNotificationsSkeleton *skeleton = NOTIFY_DAEMON_NOTIFICATIONS_SKELETON (user_data)((((NotifyDaemonNotificationsSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((user_data)), ((notify_daemon_notifications_skeleton_get_type
()))))))
;
2118 GValue value = G_VALUE_INIT{ 0, { { 0 } } };
2119 GParamSpec *pspec;
2120 _ExtendedGDBusPropertyInfo *info;
2121 GVariant *ret;
2122 ret = NULL((void*)0);
2123 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_notify_daemon_notifications_interface_info.parent_struct, property_name);
2124 g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr (
((gchar*) 0), "mnd-dbus-generated.c", 2124, ((const char*) (__func__
)), "info != NULL"); } while (0)
;
2125 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class
))))
, info->hyphen_name);
2126 if (pspec == NULL((void*)0))
2127 {
2128 g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2129 }
2130 else
2131 {
2132 g_value_init (&value, pspec->value_type);
2133 g_object_get_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((skeleton)), (((GType) ((20) << (2))))))))
, info->hyphen_name, &value);
2134 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)(g_variant_type_checked_ ((info->parent_struct.signature))
)
);
2135 g_value_unset (&value);
2136 }
2137 return ret;
2138}
2139
2140static gboolean
2141_notify_daemon_notifications_skeleton_handle_set_property (
2142 GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)),
2143 const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)),
2144 const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)),
2145 const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)),
2146 const gchar *property_name,
2147 GVariant *variant,
2148 GError **error,
2149 gpointer user_data)
2150{
2151 NotifyDaemonNotificationsSkeleton *skeleton = NOTIFY_DAEMON_NOTIFICATIONS_SKELETON (user_data)((((NotifyDaemonNotificationsSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((user_data)), ((notify_daemon_notifications_skeleton_get_type
()))))))
;
2152 GValue value = G_VALUE_INIT{ 0, { { 0 } } };
2153 GParamSpec *pspec;
2154 _ExtendedGDBusPropertyInfo *info;
2155 gboolean ret;
2156 ret = FALSE(0);
2157 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_notify_daemon_notifications_interface_info.parent_struct, property_name);
2158 g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr (
((gchar*) 0), "mnd-dbus-generated.c", 2158, ((const char*) (__func__
)), "info != NULL"); } while (0)
;
2159 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class
))))
, info->hyphen_name);
2160 if (pspec == NULL((void*)0))
2161 {
2162 g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2163 }
2164 else
2165 {
2166 if (info->use_gvariant)
2167 g_value_set_variant (&value, variant);
2168 else
2169 g_dbus_gvariant_to_gvalue (variant, &value);
2170 g_object_set_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance
*) ((skeleton)), (((GType) ((20) << (2))))))))
, info->hyphen_name, &value);
2171 g_value_unset (&value);
2172 ret = TRUE(!(0));
2173 }
2174 return ret;
2175}
2176
2177static const GDBusInterfaceVTable _notify_daemon_notifications_skeleton_vtable =
2178{
2179 _notify_daemon_notifications_skeleton_handle_method_call,
2180 _notify_daemon_notifications_skeleton_handle_get_property,
2181 _notify_daemon_notifications_skeleton_handle_set_property,
2182 {NULL((void*)0)}
2183};
2184
2185static GDBusInterfaceInfo *
2186notify_daemon_notifications_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__)))
2187{
2188 return notify_daemon_notifications_interface_info ();
2189}
2190
2191static GDBusInterfaceVTable *
2192notify_daemon_notifications_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__)))
2193{
2194 return (GDBusInterfaceVTable *) &_notify_daemon_notifications_skeleton_vtable;
2195}
2196
2197static GVariant *
2198notify_daemon_notifications_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2199{
2200 NotifyDaemonNotificationsSkeleton *skeleton = NOTIFY_DAEMON_NOTIFICATIONS_SKELETON (_skeleton)((((NotifyDaemonNotificationsSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((_skeleton)), ((notify_daemon_notifications_skeleton_get_type
()))))))
;
Value stored to 'skeleton' during its initialization is never read
2201
2202 GVariantBuilder builder;
2203 guint n;
2204 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}"))));
2205 if (_notify_daemon_notifications_interface_info.parent_struct.properties == NULL((void*)0))
2206 goto out;
2207 for (n = 0; _notify_daemon_notifications_interface_info.parent_struct.properties[n] != NULL((void*)0); n++)
2208 {
2209 GDBusPropertyInfo *info = _notify_daemon_notifications_interface_info.parent_struct.properties[n];
2210 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2211 {
2212 GVariant *value;
2213 value = _notify_daemon_notifications_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type
()))))))
), NULL((void*)0), g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type
()))))))
), "org.freedesktop.Notifications", info->name, NULL((void*)0), skeleton);
2214 if (value != NULL((void*)0))
2215 {
2216 g_variant_take_ref (value);
2217 g_variant_builder_add (&builder, "{sv}", info->name, value);
2218 g_variant_unref (value);
2219 }
2220 }
2221 }
2222out:
2223 return g_variant_builder_end (&builder);
2224}
2225
2226static void
2227notify_daemon_notifications_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED__attribute__ ((__unused__)))
2228{
2229}
2230
2231static void
2232_notify_daemon_notifications_on_signal_action_invoked (
2233 NotifyDaemonNotifications *object,
2234 guint arg_id,
2235 const gchar *arg_action_key)
2236{
2237 NotifyDaemonNotificationsSkeleton *skeleton = NOTIFY_DAEMON_NOTIFICATIONS_SKELETON (object)((((NotifyDaemonNotificationsSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((object)), ((notify_daemon_notifications_skeleton_get_type
()))))))
;
2238
2239 GList *connections, *l;
2240 GVariant *signal_variant;
2241 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
()))))))
);
2242
2243 signal_variant = g_variant_ref_sink (g_variant_new ("(us)",
2244 arg_id,
2245 arg_action_key));
2246 for (l = connections; l != NULL((void*)0); l = l->next)
2247 {
2248 GDBusConnection *connection = l->data;
2249 g_dbus_connection_emit_signal (connection,
2250 NULL((void*)0), g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type
()))))))
), "org.freedesktop.Notifications", "ActionInvoked",
2251 signal_variant, NULL((void*)0));
2252 }
2253 g_variant_unref (signal_variant);
2254 g_list_free_full (connections, g_object_unref);
2255}
2256
2257static void
2258_notify_daemon_notifications_on_signal_notification_closed (
2259 NotifyDaemonNotifications *object,
2260 guint arg_id,
2261 guint arg_reason)
2262{
2263 NotifyDaemonNotificationsSkeleton *skeleton = NOTIFY_DAEMON_NOTIFICATIONS_SKELETON (object)((((NotifyDaemonNotificationsSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((object)), ((notify_daemon_notifications_skeleton_get_type
()))))))
;
2264
2265 GList *connections, *l;
2266 GVariant *signal_variant;
2267 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
()))))))
);
2268
2269 signal_variant = g_variant_ref_sink (g_variant_new ("(uu)",
2270 arg_id,
2271 arg_reason));
2272 for (l = connections; l != NULL((void*)0); l = l->next)
2273 {
2274 GDBusConnection *connection = l->data;
2275 g_dbus_connection_emit_signal (connection,
2276 NULL((void*)0), g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)((((GDBusInterfaceSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((skeleton)), ((g_dbus_interface_skeleton_get_type
()))))))
), "org.freedesktop.Notifications", "NotificationClosed",
2277 signal_variant, NULL((void*)0));
2278 }
2279 g_variant_unref (signal_variant);
2280 g_list_free_full (connections, g_object_unref);
2281}
2282
2283static void notify_daemon_notifications_skeleton_iface_init (NotifyDaemonNotificationsIface *iface);
2284#if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8))
2285G_DEFINE_TYPE_WITH_CODE (NotifyDaemonNotificationsSkeleton, notify_daemon_notifications_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void notify_daemon_notifications_skeleton_init (NotifyDaemonNotificationsSkeleton
*self); static void notify_daemon_notifications_skeleton_class_init
(NotifyDaemonNotificationsSkeletonClass *klass); static GType
notify_daemon_notifications_skeleton_get_type_once (void); static
gpointer notify_daemon_notifications_skeleton_parent_class =
((void*)0); static gint NotifyDaemonNotificationsSkeleton_private_offset
; static void notify_daemon_notifications_skeleton_class_intern_init
(gpointer klass) { notify_daemon_notifications_skeleton_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsSkeleton_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsSkeleton_private_offset
); notify_daemon_notifications_skeleton_class_init ((NotifyDaemonNotificationsSkeletonClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_skeleton_get_instance_private (NotifyDaemonNotificationsSkeleton
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsSkeleton_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_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
("NotifyDaemonNotificationsSkeleton"), sizeof (NotifyDaemonNotificationsSkeletonClass
), (GClassInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_class_intern_init
, sizeof (NotifyDaemonNotificationsSkeleton), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_skeleton_init, (
GTypeFlags) 0); { {{ NotifyDaemonNotificationsSkeleton_private_offset
= g_type_add_instance_private (g_define_type_id, sizeof (NotifyDaemonNotificationsSkeletonPrivate
)); } { const GInterfaceInfo g_implement_interface_info = { (
GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
2286 G_ADD_PRIVATE (NotifyDaemonNotificationsSkeleton)static void notify_daemon_notifications_skeleton_init (NotifyDaemonNotificationsSkeleton
*self); static void notify_daemon_notifications_skeleton_class_init
(NotifyDaemonNotificationsSkeletonClass *klass); static GType
notify_daemon_notifications_skeleton_get_type_once (void); static
gpointer notify_daemon_notifications_skeleton_parent_class =
((void*)0); static gint NotifyDaemonNotificationsSkeleton_private_offset
; static void notify_daemon_notifications_skeleton_class_intern_init
(gpointer klass) { notify_daemon_notifications_skeleton_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsSkeleton_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsSkeleton_private_offset
); notify_daemon_notifications_skeleton_class_init ((NotifyDaemonNotificationsSkeletonClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_skeleton_get_instance_private (NotifyDaemonNotificationsSkeleton
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsSkeleton_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_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
("NotifyDaemonNotificationsSkeleton"), sizeof (NotifyDaemonNotificationsSkeletonClass
), (GClassInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_class_intern_init
, sizeof (NotifyDaemonNotificationsSkeleton), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_skeleton_init, (
GTypeFlags) 0); { {{ NotifyDaemonNotificationsSkeleton_private_offset
= g_type_add_instance_private (g_define_type_id, sizeof (NotifyDaemonNotificationsSkeletonPrivate
)); } { const GInterfaceInfo g_implement_interface_info = { (
GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
2287 G_IMPLEMENT_INTERFACE (NOTIFY_DAEMON_TYPE_NOTIFICATIONS, notify_daemon_notifications_skeleton_iface_init))static void notify_daemon_notifications_skeleton_init (NotifyDaemonNotificationsSkeleton
*self); static void notify_daemon_notifications_skeleton_class_init
(NotifyDaemonNotificationsSkeletonClass *klass); static GType
notify_daemon_notifications_skeleton_get_type_once (void); static
gpointer notify_daemon_notifications_skeleton_parent_class =
((void*)0); static gint NotifyDaemonNotificationsSkeleton_private_offset
; static void notify_daemon_notifications_skeleton_class_intern_init
(gpointer klass) { notify_daemon_notifications_skeleton_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsSkeleton_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsSkeleton_private_offset
); notify_daemon_notifications_skeleton_class_init ((NotifyDaemonNotificationsSkeletonClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_skeleton_get_instance_private (NotifyDaemonNotificationsSkeleton
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsSkeleton_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_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
("NotifyDaemonNotificationsSkeleton"), sizeof (NotifyDaemonNotificationsSkeletonClass
), (GClassInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_class_intern_init
, sizeof (NotifyDaemonNotificationsSkeleton), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_skeleton_init, (
GTypeFlags) 0); { {{ NotifyDaemonNotificationsSkeleton_private_offset
= g_type_add_instance_private (g_define_type_id, sizeof (NotifyDaemonNotificationsSkeletonPrivate
)); } { const GInterfaceInfo g_implement_interface_info = { (
GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
2288
2289#else
2290G_DEFINE_TYPE_WITH_CODE (NotifyDaemonNotificationsSkeleton, notify_daemon_notifications_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void notify_daemon_notifications_skeleton_init (NotifyDaemonNotificationsSkeleton
*self); static void notify_daemon_notifications_skeleton_class_init
(NotifyDaemonNotificationsSkeletonClass *klass); static GType
notify_daemon_notifications_skeleton_get_type_once (void); static
gpointer notify_daemon_notifications_skeleton_parent_class =
((void*)0); static gint NotifyDaemonNotificationsSkeleton_private_offset
; static void notify_daemon_notifications_skeleton_class_intern_init
(gpointer klass) { notify_daemon_notifications_skeleton_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsSkeleton_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsSkeleton_private_offset
); notify_daemon_notifications_skeleton_class_init ((NotifyDaemonNotificationsSkeletonClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_skeleton_get_instance_private (NotifyDaemonNotificationsSkeleton
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsSkeleton_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_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
("NotifyDaemonNotificationsSkeleton"), sizeof (NotifyDaemonNotificationsSkeletonClass
), (GClassInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_class_intern_init
, sizeof (NotifyDaemonNotificationsSkeleton), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_skeleton_init, (
GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info
= { (GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
2291 G_IMPLEMENT_INTERFACE (NOTIFY_DAEMON_TYPE_NOTIFICATIONS, notify_daemon_notifications_skeleton_iface_init))static void notify_daemon_notifications_skeleton_init (NotifyDaemonNotificationsSkeleton
*self); static void notify_daemon_notifications_skeleton_class_init
(NotifyDaemonNotificationsSkeletonClass *klass); static GType
notify_daemon_notifications_skeleton_get_type_once (void); static
gpointer notify_daemon_notifications_skeleton_parent_class =
((void*)0); static gint NotifyDaemonNotificationsSkeleton_private_offset
; static void notify_daemon_notifications_skeleton_class_intern_init
(gpointer klass) { notify_daemon_notifications_skeleton_parent_class
= g_type_class_peek_parent (klass); if (NotifyDaemonNotificationsSkeleton_private_offset
!= 0) g_type_class_adjust_private_offset (klass, &NotifyDaemonNotificationsSkeleton_private_offset
); notify_daemon_notifications_skeleton_class_init ((NotifyDaemonNotificationsSkeletonClass
*) klass); } __attribute__ ((__unused__)) static inline gpointer
notify_daemon_notifications_skeleton_get_instance_private (NotifyDaemonNotificationsSkeleton
*self) { return (((gpointer) ((guint8*) (self) + (glong) (NotifyDaemonNotificationsSkeleton_private_offset
)))); } GType notify_daemon_notifications_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
= notify_daemon_notifications_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 notify_daemon_notifications_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
("NotifyDaemonNotificationsSkeleton"), sizeof (NotifyDaemonNotificationsSkeletonClass
), (GClassInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_class_intern_init
, sizeof (NotifyDaemonNotificationsSkeleton), (GInstanceInitFunc
)(void (*)(void)) notify_daemon_notifications_skeleton_init, (
GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info
= { (GInterfaceInitFunc)(void (*)(void)) notify_daemon_notifications_skeleton_iface_init
, ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id
, (notify_daemon_notifications_get_type ()), &g_implement_interface_info
); };} } return g_define_type_id; }
2292
2293#endif
2294static void
2295notify_daemon_notifications_skeleton_finalize (GObject *object)
2296{
2297 NotifyDaemonNotificationsSkeleton *skeleton = NOTIFY_DAEMON_NOTIFICATIONS_SKELETON (object)((((NotifyDaemonNotificationsSkeleton*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((object)), ((notify_daemon_notifications_skeleton_get_type
()))))))
;
2298 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
2299 if (skeleton->priv->changed_properties_idle_source != NULL((void*)0))
2300 g_source_destroy (skeleton->priv->changed_properties_idle_source);
2301 g_main_context_unref (skeleton->priv->context);
2302 g_mutex_clear (&skeleton->priv->lock);
2303 G_OBJECT_CLASS (notify_daemon_notifications_skeleton_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass
*) ((notify_daemon_notifications_skeleton_parent_class)), (((
GType) ((20) << (2))))))))
->finalize (object);
2304}
2305
2306static void
2307notify_daemon_notifications_skeleton_init (NotifyDaemonNotificationsSkeleton *skeleton)
2308{
2309#if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8))
2310 skeleton->priv = notify_daemon_notifications_skeleton_get_instance_private (skeleton);
2311#else
2312 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, NOTIFY_DAEMON_TYPE_NOTIFICATIONS_SKELETON, NotifyDaemonNotificationsSkeletonPrivate)((NotifyDaemonNotificationsSkeletonPrivate*) g_type_instance_get_private
((GTypeInstance*) (skeleton), ((notify_daemon_notifications_skeleton_get_type
())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\""
;
2313#endif
2314
2315 g_mutex_init (&skeleton->priv->lock);
2316 skeleton->priv->context = g_main_context_ref_thread_default ();
2317}
2318
2319static void
2320notify_daemon_notifications_skeleton_class_init (NotifyDaemonNotificationsSkeletonClass *klass)
2321{
2322 GObjectClass *gobject_class;
2323 GDBusInterfaceSkeletonClass *skeleton_class;
2324
2325 gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass
*) ((klass)), (((GType) ((20) << (2))))))))
;
2326 gobject_class->finalize = notify_daemon_notifications_skeleton_finalize;
2327
2328 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass)((((GDBusInterfaceSkeletonClass*) (void *) g_type_check_class_cast
((GTypeClass*) ((klass)), ((g_dbus_interface_skeleton_get_type
()))))))
;
2329 skeleton_class->get_info = notify_daemon_notifications_skeleton_dbus_interface_get_info;
2330 skeleton_class->get_properties = notify_daemon_notifications_skeleton_dbus_interface_get_properties;
2331 skeleton_class->flush = notify_daemon_notifications_skeleton_dbus_interface_flush;
2332 skeleton_class->get_vtable = notify_daemon_notifications_skeleton_dbus_interface_get_vtable;
2333
2334#if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (82) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8))
2335 g_type_class_add_private (klass, sizeof (NotifyDaemonNotificationsSkeletonPrivate));
2336#endif
2337}
2338
2339static void
2340notify_daemon_notifications_skeleton_iface_init (NotifyDaemonNotificationsIface *iface)
2341{
2342 iface->action_invoked = _notify_daemon_notifications_on_signal_action_invoked;
2343 iface->notification_closed = _notify_daemon_notifications_on_signal_notification_closed;
2344}
2345
2346/**
2347 * notify_daemon_notifications_skeleton_new:
2348 *
2349 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Notifications.top_of_page">org.freedesktop.Notifications</link>.
2350 *
2351 * Returns: (transfer full) (type NotifyDaemonNotificationsSkeleton): The skeleton object.
2352 */
2353NotifyDaemonNotifications *
2354notify_daemon_notifications_skeleton_new (void)
2355{
2356 return NOTIFY_DAEMON_NOTIFICATIONS (g_object_new (NOTIFY_DAEMON_TYPE_NOTIFICATIONS_SKELETON, NULL))((((NotifyDaemonNotifications*) (void *) g_type_check_instance_cast
((GTypeInstance*) ((g_object_new ((notify_daemon_notifications_skeleton_get_type
()), ((void*)0)))), ((notify_daemon_notifications_get_type (
)))))))
;
2357}
2358