File: | applets/notification_area/status-notifier/sn-host-v0-gen.c |
Warning: | line 805, column 24 Value stored to 'skeleton' during its initialization is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* |
2 | * This file is generated by gdbus-codegen, do not modify it. |
3 | * |
4 | * The license of this code is the same as for the D-Bus interface description |
5 | * it was derived from. Note that it links to GLib, so must comply with the |
6 | * LGPL linking clauses. |
7 | */ |
8 | |
9 | #ifdef HAVE_CONFIG_H1 |
10 | # include "config.h" |
11 | #endif |
12 | |
13 | #include "sn-host-v0-gen.h" |
14 | |
15 | #include <string.h> |
16 | #ifdef G_OS_UNIX |
17 | # include <gio/gunixfdlist.h> |
18 | #endif |
19 | |
20 | #ifdef G_ENABLE_DEBUG |
21 | #define g_marshal_value_peek_boolean(v)(v)->data[0].v_int g_value_get_boolean (v) |
22 | #define g_marshal_value_peek_char(v)(v)->data[0].v_int g_value_get_schar (v) |
23 | #define g_marshal_value_peek_uchar(v)(v)->data[0].v_uint g_value_get_uchar (v) |
24 | #define g_marshal_value_peek_int(v)(v)->data[0].v_int g_value_get_int (v) |
25 | #define g_marshal_value_peek_uint(v)(v)->data[0].v_uint g_value_get_uint (v) |
26 | #define g_marshal_value_peek_long(v)(v)->data[0].v_long g_value_get_long (v) |
27 | #define g_marshal_value_peek_ulong(v)(v)->data[0].v_ulong g_value_get_ulong (v) |
28 | #define g_marshal_value_peek_int64(v)(v)->data[0].v_int64 g_value_get_int64 (v) |
29 | #define g_marshal_value_peek_uint64(v)(v)->data[0].v_uint64 g_value_get_uint64 (v) |
30 | #define g_marshal_value_peek_enum(v)(v)->data[0].v_long g_value_get_enum (v) |
31 | #define g_marshal_value_peek_flags(v)(v)->data[0].v_ulong g_value_get_flags (v) |
32 | #define g_marshal_value_peek_float(v)(v)->data[0].v_float g_value_get_float (v) |
33 | #define g_marshal_value_peek_double(v)(v)->data[0].v_double g_value_get_double (v) |
34 | #define g_marshal_value_peek_string(v)(v)->data[0].v_pointer (char*) g_value_get_string (v) |
35 | #define g_marshal_value_peek_param(v)(v)->data[0].v_pointer g_value_get_param (v) |
36 | #define g_marshal_value_peek_boxed(v)(v)->data[0].v_pointer g_value_get_boxed (v) |
37 | #define g_marshal_value_peek_pointer(v)(v)->data[0].v_pointer g_value_get_pointer (v) |
38 | #define g_marshal_value_peek_object(v)(v)->data[0].v_pointer g_value_get_object (v) |
39 | #define g_marshal_value_peek_variant(v)(v)->data[0].v_pointer g_value_get_variant (v) |
40 | #else /* !G_ENABLE_DEBUG */ |
41 | /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. |
42 | * Do not access GValues directly in your code. Instead, use the |
43 | * g_value_get_*() functions |
44 | */ |
45 | #define g_marshal_value_peek_boolean(v)(v)->data[0].v_int (v)->data[0].v_int |
46 | #define g_marshal_value_peek_char(v)(v)->data[0].v_int (v)->data[0].v_int |
47 | #define g_marshal_value_peek_uchar(v)(v)->data[0].v_uint (v)->data[0].v_uint |
48 | #define g_marshal_value_peek_int(v)(v)->data[0].v_int (v)->data[0].v_int |
49 | #define g_marshal_value_peek_uint(v)(v)->data[0].v_uint (v)->data[0].v_uint |
50 | #define g_marshal_value_peek_long(v)(v)->data[0].v_long (v)->data[0].v_long |
51 | #define g_marshal_value_peek_ulong(v)(v)->data[0].v_ulong (v)->data[0].v_ulong |
52 | #define g_marshal_value_peek_int64(v)(v)->data[0].v_int64 (v)->data[0].v_int64 |
53 | #define g_marshal_value_peek_uint64(v)(v)->data[0].v_uint64 (v)->data[0].v_uint64 |
54 | #define g_marshal_value_peek_enum(v)(v)->data[0].v_long (v)->data[0].v_long |
55 | #define g_marshal_value_peek_flags(v)(v)->data[0].v_ulong (v)->data[0].v_ulong |
56 | #define g_marshal_value_peek_float(v)(v)->data[0].v_float (v)->data[0].v_float |
57 | #define g_marshal_value_peek_double(v)(v)->data[0].v_double (v)->data[0].v_double |
58 | #define g_marshal_value_peek_string(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
59 | #define g_marshal_value_peek_param(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
60 | #define g_marshal_value_peek_boxed(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
61 | #define g_marshal_value_peek_pointer(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
62 | #define g_marshal_value_peek_object(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
63 | #define g_marshal_value_peek_variant(v)(v)->data[0].v_pointer (v)->data[0].v_pointer |
64 | #endif /* !G_ENABLE_DEBUG */ |
65 | |
66 | typedef struct |
67 | { |
68 | GDBusArgInfo parent_struct; |
69 | gboolean use_gvariant; |
70 | } _ExtendedGDBusArgInfo; |
71 | |
72 | typedef struct |
73 | { |
74 | GDBusMethodInfo parent_struct; |
75 | const gchar *signal_name; |
76 | gboolean pass_fdlist; |
77 | } _ExtendedGDBusMethodInfo; |
78 | |
79 | typedef struct |
80 | { |
81 | GDBusSignalInfo parent_struct; |
82 | const gchar *signal_name; |
83 | } _ExtendedGDBusSignalInfo; |
84 | |
85 | typedef struct |
86 | { |
87 | GDBusPropertyInfo parent_struct; |
88 | const gchar *hyphen_name; |
89 | guint use_gvariant : 1; |
90 | guint emits_changed_signal : 1; |
91 | } _ExtendedGDBusPropertyInfo; |
92 | |
93 | typedef struct |
94 | { |
95 | GDBusInterfaceInfo parent_struct; |
96 | const gchar *hyphen_name; |
97 | } _ExtendedGDBusInterfaceInfo; |
98 | |
99 | typedef struct |
100 | { |
101 | const _ExtendedGDBusPropertyInfo *info; |
102 | guint prop_id; |
103 | GValue orig_value; /* the value before the change */ |
104 | } ChangedProperty; |
105 | |
106 | static void |
107 | _changed_property_free (ChangedProperty *data) |
108 | { |
109 | g_value_unset (&data->orig_value); |
110 | g_free (data); |
111 | } |
112 | |
113 | static gboolean |
114 | _g_strv_equal0 (gchar **a, gchar **b) |
115 | { |
116 | gboolean ret = FALSE(0); |
117 | guint n; |
118 | if (a == NULL((void*)0) && b == NULL((void*)0)) |
119 | { |
120 | ret = TRUE(!(0)); |
121 | goto out; |
122 | } |
123 | if (a == NULL((void*)0) || b == NULL((void*)0)) |
124 | goto out; |
125 | if (g_strv_length (a) != g_strv_length (b)) |
126 | goto out; |
127 | for (n = 0; a[n] != NULL((void*)0); n++) |
128 | if (g_strcmp0 (a[n], b[n]) != 0) |
129 | goto out; |
130 | ret = TRUE(!(0)); |
131 | out: |
132 | return ret; |
133 | } |
134 | |
135 | static gboolean |
136 | _g_variant_equal0 (GVariant *a, GVariant *b) |
137 | { |
138 | gboolean ret = FALSE(0); |
139 | if (a == NULL((void*)0) && b == NULL((void*)0)) |
140 | { |
141 | ret = TRUE(!(0)); |
142 | goto out; |
143 | } |
144 | if (a == NULL((void*)0) || b == NULL((void*)0)) |
145 | goto out; |
146 | ret = g_variant_equal (a, b); |
147 | out: |
148 | return ret; |
149 | } |
150 | |
151 | G_GNUC_UNUSED__attribute__ ((__unused__)) static gboolean |
152 | _g_value_equal (const GValue *a, const GValue *b) |
153 | { |
154 | gboolean ret = FALSE(0); |
155 | g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b))do { if ((((GValue*) (a))->g_type) == (((GValue*) (b))-> g_type)) ; else g_assertion_message_expr ("notification-area-applet" , "sn-host-v0-gen.c", 155, ((const char*) (__func__)), "G_VALUE_TYPE (a) == G_VALUE_TYPE (b)" ); } while (0); |
156 | switch (G_VALUE_TYPE (a)(((GValue*) (a))->g_type)) |
157 | { |
158 | case G_TYPE_BOOLEAN((GType) ((5) << (2))): |
159 | ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); |
160 | break; |
161 | case G_TYPE_UCHAR((GType) ((4) << (2))): |
162 | ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); |
163 | break; |
164 | case G_TYPE_INT((GType) ((6) << (2))): |
165 | ret = (g_value_get_int (a) == g_value_get_int (b)); |
166 | break; |
167 | case G_TYPE_UINT((GType) ((7) << (2))): |
168 | ret = (g_value_get_uint (a) == g_value_get_uint (b)); |
169 | break; |
170 | case G_TYPE_INT64((GType) ((10) << (2))): |
171 | ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); |
172 | break; |
173 | case G_TYPE_UINT64((GType) ((11) << (2))): |
174 | ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); |
175 | break; |
176 | case G_TYPE_DOUBLE((GType) ((15) << (2))): |
177 | { |
178 | /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ |
179 | gdouble da = g_value_get_double (a); |
180 | gdouble db = g_value_get_double (b); |
181 | ret = memcmp (&da, &db, sizeof (gdouble)) == 0; |
182 | } |
183 | break; |
184 | case G_TYPE_STRING((GType) ((16) << (2))): |
185 | ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); |
186 | break; |
187 | case G_TYPE_VARIANT((GType) ((21) << (2))): |
188 | ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); |
189 | break; |
190 | default: |
191 | if (G_VALUE_TYPE (a)(((GValue*) (a))->g_type) == G_TYPE_STRV(g_strv_get_type ())) |
192 | ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); |
193 | else |
194 | g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)(((GValue*) (a))->g_type))); |
195 | break; |
196 | } |
197 | return ret; |
198 | } |
199 | |
200 | /* ------------------------------------------------------------------------ |
201 | * Code for interface org.kde.StatusNotifierHost |
202 | * ------------------------------------------------------------------------ |
203 | */ |
204 | |
205 | /** |
206 | * SECTION:SnHostV0Gen |
207 | * @title: SnHostV0Gen |
208 | * @short_description: Generated C code for the org.kde.StatusNotifierHost D-Bus interface |
209 | * |
210 | * This section contains code for working with the <link linkend="gdbus-interface-org-kde-StatusNotifierHost.top_of_page">org.kde.StatusNotifierHost</link> D-Bus interface in C. |
211 | */ |
212 | |
213 | /* ---- Introspection data for org.kde.StatusNotifierHost ---- */ |
214 | |
215 | static const _ExtendedGDBusInterfaceInfo _sn_host_v0_gen_interface_info = |
216 | { |
217 | { |
218 | -1, |
219 | (gchar *) "org.kde.StatusNotifierHost", |
220 | NULL((void*)0), |
221 | NULL((void*)0), |
222 | NULL((void*)0), |
223 | NULL((void*)0) |
224 | }, |
225 | "host-v0-gen", |
226 | }; |
227 | |
228 | |
229 | /** |
230 | * sn_host_v0_gen_interface_info: |
231 | * |
232 | * Gets a machine-readable description of the <link linkend="gdbus-interface-org-kde-StatusNotifierHost.top_of_page">org.kde.StatusNotifierHost</link> D-Bus interface. |
233 | * |
234 | * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. |
235 | */ |
236 | GDBusInterfaceInfo * |
237 | sn_host_v0_gen_interface_info (void) |
238 | { |
239 | return (GDBusInterfaceInfo *) &_sn_host_v0_gen_interface_info.parent_struct; |
240 | } |
241 | |
242 | /** |
243 | * sn_host_v0_gen_override_properties: |
244 | * @klass: The class structure for a #GObject derived class. |
245 | * @property_id_begin: The property id to assign to the first overridden property. |
246 | * |
247 | * Overrides all #GObject properties in the #SnHostV0Gen interface for a concrete class. |
248 | * The properties are overridden in the order they are defined. |
249 | * |
250 | * Returns: The last property id. |
251 | */ |
252 | guint |
253 | sn_host_v0_gen_override_properties (GObjectClass *klass G_GNUC_UNUSED__attribute__ ((__unused__)), guint property_id_begin) |
254 | { |
255 | return property_id_begin - 1; |
256 | } |
257 | |
258 | |
259 | |
260 | /** |
261 | * SnHostV0Gen: |
262 | * |
263 | * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-kde-StatusNotifierHost.top_of_page">org.kde.StatusNotifierHost</link>. |
264 | */ |
265 | |
266 | /** |
267 | * SnHostV0GenIface: |
268 | * @parent_iface: The parent interface. |
269 | * |
270 | * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-kde-StatusNotifierHost.top_of_page">org.kde.StatusNotifierHost</link>. |
271 | */ |
272 | |
273 | typedef SnHostV0GenIface SnHostV0GenInterface; |
274 | G_DEFINE_INTERFACE (SnHostV0Gen, sn_host_v0_gen, G_TYPE_OBJECT)static void sn_host_v0_gen_default_init (SnHostV0GenInterface *klass); GType sn_host_v0_gen_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 ("SnHostV0Gen"), sizeof (SnHostV0GenInterface ), (GClassInitFunc)(void (*)(void)) sn_host_v0_gen_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 ; } |
275 | |
276 | static void |
277 | sn_host_v0_gen_default_init (SnHostV0GenIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
278 | { |
279 | } |
280 | |
281 | /* ------------------------------------------------------------------------ */ |
282 | |
283 | /** |
284 | * SnHostV0GenProxy: |
285 | * |
286 | * The #SnHostV0GenProxy structure contains only private data and should only be accessed using the provided API. |
287 | */ |
288 | |
289 | /** |
290 | * SnHostV0GenProxyClass: |
291 | * @parent_class: The parent class. |
292 | * |
293 | * Class structure for #SnHostV0GenProxy. |
294 | */ |
295 | |
296 | struct _SnHostV0GenProxyPrivate |
297 | { |
298 | GData *qdata; |
299 | }; |
300 | |
301 | static void sn_host_v0_gen_proxy_iface_init (SnHostV0GenIface *iface); |
302 | |
303 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
304 | G_DEFINE_TYPE_WITH_CODE (SnHostV0GenProxy, sn_host_v0_gen_proxy, G_TYPE_DBUS_PROXY,static void sn_host_v0_gen_proxy_init (SnHostV0GenProxy *self ); static void sn_host_v0_gen_proxy_class_init (SnHostV0GenProxyClass *klass); static GType sn_host_v0_gen_proxy_get_type_once (void ); static gpointer sn_host_v0_gen_proxy_parent_class = ((void *)0); static gint SnHostV0GenProxy_private_offset; static void sn_host_v0_gen_proxy_class_intern_init (gpointer klass) { sn_host_v0_gen_proxy_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenProxy_private_offset ); sn_host_v0_gen_proxy_class_init ((SnHostV0GenProxyClass*) klass ); } __attribute__ ((__unused__)) static inline gpointer sn_host_v0_gen_proxy_get_instance_private (SnHostV0GenProxy *self) { return (((gpointer) ((guint8*) (self ) + (glong) (SnHostV0GenProxy_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("SnHostV0GenProxy" ), sizeof (SnHostV0GenProxyClass), (GClassInitFunc)(void (*)( void)) sn_host_v0_gen_proxy_class_intern_init, sizeof (SnHostV0GenProxy ), (GInstanceInitFunc)(void (*)(void)) sn_host_v0_gen_proxy_init , (GTypeFlags) 0); { {{ SnHostV0GenProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (SnHostV0GenProxyPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) sn_host_v0_gen_proxy_iface_init, ((void*)0) , ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
305 | G_ADD_PRIVATE (SnHostV0GenProxy)static void sn_host_v0_gen_proxy_init (SnHostV0GenProxy *self ); static void sn_host_v0_gen_proxy_class_init (SnHostV0GenProxyClass *klass); static GType sn_host_v0_gen_proxy_get_type_once (void ); static gpointer sn_host_v0_gen_proxy_parent_class = ((void *)0); static gint SnHostV0GenProxy_private_offset; static void sn_host_v0_gen_proxy_class_intern_init (gpointer klass) { sn_host_v0_gen_proxy_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenProxy_private_offset ); sn_host_v0_gen_proxy_class_init ((SnHostV0GenProxyClass*) klass ); } __attribute__ ((__unused__)) static inline gpointer sn_host_v0_gen_proxy_get_instance_private (SnHostV0GenProxy *self) { return (((gpointer) ((guint8*) (self ) + (glong) (SnHostV0GenProxy_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("SnHostV0GenProxy" ), sizeof (SnHostV0GenProxyClass), (GClassInitFunc)(void (*)( void)) sn_host_v0_gen_proxy_class_intern_init, sizeof (SnHostV0GenProxy ), (GInstanceInitFunc)(void (*)(void)) sn_host_v0_gen_proxy_init , (GTypeFlags) 0); { {{ SnHostV0GenProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (SnHostV0GenProxyPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) sn_host_v0_gen_proxy_iface_init, ((void*)0) , ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
306 | G_IMPLEMENT_INTERFACE (SN_TYPE_HOST_V0_GEN, sn_host_v0_gen_proxy_iface_init))static void sn_host_v0_gen_proxy_init (SnHostV0GenProxy *self ); static void sn_host_v0_gen_proxy_class_init (SnHostV0GenProxyClass *klass); static GType sn_host_v0_gen_proxy_get_type_once (void ); static gpointer sn_host_v0_gen_proxy_parent_class = ((void *)0); static gint SnHostV0GenProxy_private_offset; static void sn_host_v0_gen_proxy_class_intern_init (gpointer klass) { sn_host_v0_gen_proxy_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenProxy_private_offset ); sn_host_v0_gen_proxy_class_init ((SnHostV0GenProxyClass*) klass ); } __attribute__ ((__unused__)) static inline gpointer sn_host_v0_gen_proxy_get_instance_private (SnHostV0GenProxy *self) { return (((gpointer) ((guint8*) (self ) + (glong) (SnHostV0GenProxy_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("SnHostV0GenProxy" ), sizeof (SnHostV0GenProxyClass), (GClassInitFunc)(void (*)( void)) sn_host_v0_gen_proxy_class_intern_init, sizeof (SnHostV0GenProxy ), (GInstanceInitFunc)(void (*)(void)) sn_host_v0_gen_proxy_init , (GTypeFlags) 0); { {{ SnHostV0GenProxy_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (SnHostV0GenProxyPrivate)); } { const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) sn_host_v0_gen_proxy_iface_init, ((void*)0) , ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
307 | |
308 | #else |
309 | G_DEFINE_TYPE_WITH_CODE (SnHostV0GenProxy, sn_host_v0_gen_proxy, G_TYPE_DBUS_PROXY,static void sn_host_v0_gen_proxy_init (SnHostV0GenProxy *self ); static void sn_host_v0_gen_proxy_class_init (SnHostV0GenProxyClass *klass); static GType sn_host_v0_gen_proxy_get_type_once (void ); static gpointer sn_host_v0_gen_proxy_parent_class = ((void *)0); static gint SnHostV0GenProxy_private_offset; static void sn_host_v0_gen_proxy_class_intern_init (gpointer klass) { sn_host_v0_gen_proxy_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenProxy_private_offset ); sn_host_v0_gen_proxy_class_init ((SnHostV0GenProxyClass*) klass ); } __attribute__ ((__unused__)) static inline gpointer sn_host_v0_gen_proxy_get_instance_private (SnHostV0GenProxy *self) { return (((gpointer) ((guint8*) (self ) + (glong) (SnHostV0GenProxy_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("SnHostV0GenProxy" ), sizeof (SnHostV0GenProxyClass), (GClassInitFunc)(void (*)( void)) sn_host_v0_gen_proxy_class_intern_init, sizeof (SnHostV0GenProxy ), (GInstanceInitFunc)(void (*)(void)) sn_host_v0_gen_proxy_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) sn_host_v0_gen_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
310 | G_IMPLEMENT_INTERFACE (SN_TYPE_HOST_V0_GEN, sn_host_v0_gen_proxy_iface_init))static void sn_host_v0_gen_proxy_init (SnHostV0GenProxy *self ); static void sn_host_v0_gen_proxy_class_init (SnHostV0GenProxyClass *klass); static GType sn_host_v0_gen_proxy_get_type_once (void ); static gpointer sn_host_v0_gen_proxy_parent_class = ((void *)0); static gint SnHostV0GenProxy_private_offset; static void sn_host_v0_gen_proxy_class_intern_init (gpointer klass) { sn_host_v0_gen_proxy_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenProxy_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenProxy_private_offset ); sn_host_v0_gen_proxy_class_init ((SnHostV0GenProxyClass*) klass ); } __attribute__ ((__unused__)) static inline gpointer sn_host_v0_gen_proxy_get_instance_private (SnHostV0GenProxy *self) { return (((gpointer) ((guint8*) (self ) + (glong) (SnHostV0GenProxy_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_proxy_get_type_once (void) { GType g_define_type_id = g_type_register_static_simple ((g_dbus_proxy_get_type ()), g_intern_static_string ("SnHostV0GenProxy" ), sizeof (SnHostV0GenProxyClass), (GClassInitFunc)(void (*)( void)) sn_host_v0_gen_proxy_class_intern_init, sizeof (SnHostV0GenProxy ), (GInstanceInitFunc)(void (*)(void)) sn_host_v0_gen_proxy_init , (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc)(void (*)(void)) sn_host_v0_gen_proxy_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
311 | |
312 | #endif |
313 | static void |
314 | sn_host_v0_gen_proxy_finalize (GObject *object) |
315 | { |
316 | SnHostV0GenProxy *proxy = SN_HOST_V0_GEN_PROXY (object)((((SnHostV0GenProxy*) (void *) g_type_check_instance_cast (( GTypeInstance*) ((object)), ((sn_host_v0_gen_proxy_get_type ( ))))))); |
317 | g_datalist_clear (&proxy->priv->qdata); |
318 | G_OBJECT_CLASS (sn_host_v0_gen_proxy_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((sn_host_v0_gen_proxy_parent_class)), (((GType) ((20) << (2))))))))->finalize (object); |
319 | } |
320 | |
321 | static void |
322 | sn_host_v0_gen_proxy_get_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
323 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
324 | GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
325 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
326 | { |
327 | } |
328 | |
329 | static void |
330 | sn_host_v0_gen_proxy_set_property (GObject *object G_GNUC_UNUSED__attribute__ ((__unused__)), |
331 | guint prop_id G_GNUC_UNUSED__attribute__ ((__unused__)), |
332 | const GValue *value G_GNUC_UNUSED__attribute__ ((__unused__)), |
333 | GParamSpec *pspec G_GNUC_UNUSED__attribute__ ((__unused__))) |
334 | { |
335 | } |
336 | |
337 | static void |
338 | sn_host_v0_gen_proxy_g_signal (GDBusProxy *proxy, |
339 | const gchar *sender_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
340 | const gchar *signal_name, |
341 | GVariant *parameters) |
342 | { |
343 | _ExtendedGDBusSignalInfo *info; |
344 | GVariantIter iter; |
345 | GVariant *child; |
346 | GValue *paramv; |
347 | gsize num_params; |
348 | gsize n; |
349 | guint signal_id; |
350 | info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_sn_host_v0_gen_interface_info.parent_struct, signal_name); |
351 | if (info == NULL((void*)0)) |
352 | return; |
353 | num_params = g_variant_n_children (parameters); |
354 | paramv = g_new0 (GValue, num_params + 1)((GValue *) g_malloc0_n ((num_params + 1), sizeof (GValue))); |
355 | g_value_init (¶mv[0], SN_TYPE_HOST_V0_GEN(sn_host_v0_gen_get_type ())); |
356 | g_value_set_object (¶mv[0], proxy); |
357 | g_variant_iter_init (&iter, parameters); |
358 | n = 1; |
359 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
360 | { |
361 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; |
362 | if (arg_info->use_gvariant) |
363 | { |
364 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
365 | g_value_set_variant (¶mv[n], child); |
366 | n++; |
367 | } |
368 | else |
369 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
370 | g_variant_unref (child); |
371 | } |
372 | signal_id = g_signal_lookup (info->signal_name, SN_TYPE_HOST_V0_GEN(sn_host_v0_gen_get_type ())); |
373 | g_signal_emitv (paramv, signal_id, 0, NULL((void*)0)); |
374 | for (n = 0; n < num_params + 1; n++) |
375 | g_value_unset (¶mv[n]); |
376 | g_free (paramv); |
377 | } |
378 | |
379 | static void |
380 | sn_host_v0_gen_proxy_g_properties_changed (GDBusProxy *_proxy, |
381 | GVariant *changed_properties, |
382 | const gchar *const *invalidated_properties) |
383 | { |
384 | SnHostV0GenProxy *proxy = SN_HOST_V0_GEN_PROXY (_proxy)((((SnHostV0GenProxy*) (void *) g_type_check_instance_cast (( GTypeInstance*) ((_proxy)), ((sn_host_v0_gen_proxy_get_type ( ))))))); |
385 | guint n; |
386 | const gchar *key; |
387 | GVariantIter *iter; |
388 | _ExtendedGDBusPropertyInfo *info; |
389 | g_variant_get (changed_properties, "a{sv}", &iter); |
390 | while (g_variant_iter_next (iter, "{&sv}", &key, NULL((void*)0))) |
391 | { |
392 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_sn_host_v0_gen_interface_info.parent_struct, key); |
393 | 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)); |
394 | if (info != NULL((void*)0)) |
395 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
396 | } |
397 | g_variant_iter_free (iter); |
398 | for (n = 0; invalidated_properties[n] != NULL((void*)0); n++) |
399 | { |
400 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_sn_host_v0_gen_interface_info.parent_struct, invalidated_properties[n]); |
401 | 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)); |
402 | if (info != NULL((void*)0)) |
403 | g_object_notify (G_OBJECT (proxy)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), (((GType) ((20) << (2)))))))), info->hyphen_name); |
404 | } |
405 | } |
406 | |
407 | static void |
408 | sn_host_v0_gen_proxy_init (SnHostV0GenProxy *proxy) |
409 | { |
410 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
411 | proxy->priv = sn_host_v0_gen_proxy_get_instance_private (proxy); |
412 | #else |
413 | proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, SN_TYPE_HOST_V0_GEN_PROXY, SnHostV0GenProxyPrivate)((SnHostV0GenProxyPrivate*) g_type_instance_get_private ((GTypeInstance *) (proxy), ((sn_host_v0_gen_proxy_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
414 | #endif |
415 | |
416 | g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy)((((GDBusProxy*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((proxy)), ((g_dbus_proxy_get_type ())))))), sn_host_v0_gen_interface_info ()); |
417 | } |
418 | |
419 | static void |
420 | sn_host_v0_gen_proxy_class_init (SnHostV0GenProxyClass *klass) |
421 | { |
422 | GObjectClass *gobject_class; |
423 | GDBusProxyClass *proxy_class; |
424 | |
425 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
426 | gobject_class->finalize = sn_host_v0_gen_proxy_finalize; |
427 | gobject_class->get_property = sn_host_v0_gen_proxy_get_property; |
428 | gobject_class->set_property = sn_host_v0_gen_proxy_set_property; |
429 | |
430 | proxy_class = G_DBUS_PROXY_CLASS (klass)((((GDBusProxyClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), ((g_dbus_proxy_get_type ())))))); |
431 | proxy_class->g_signal = sn_host_v0_gen_proxy_g_signal; |
432 | proxy_class->g_properties_changed = sn_host_v0_gen_proxy_g_properties_changed; |
433 | |
434 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
435 | g_type_class_add_private (klass, sizeof (SnHostV0GenProxyPrivate)); |
436 | #endif |
437 | } |
438 | |
439 | static void |
440 | sn_host_v0_gen_proxy_iface_init (SnHostV0GenIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
441 | { |
442 | } |
443 | |
444 | /** |
445 | * sn_host_v0_gen_proxy_new: |
446 | * @connection: A #GDBusConnection. |
447 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
448 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
449 | * @object_path: An object path. |
450 | * @cancellable: (nullable): A #GCancellable or %NULL. |
451 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
452 | * @user_data: User data to pass to @callback. |
453 | * |
454 | * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-kde-StatusNotifierHost.top_of_page">org.kde.StatusNotifierHost</link>. See g_dbus_proxy_new() for more details. |
455 | * |
456 | * 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()). |
457 | * You can then call sn_host_v0_gen_proxy_new_finish() to get the result of the operation. |
458 | * |
459 | * See sn_host_v0_gen_proxy_new_sync() for the synchronous, blocking version of this constructor. |
460 | */ |
461 | void |
462 | sn_host_v0_gen_proxy_new ( |
463 | GDBusConnection *connection, |
464 | GDBusProxyFlags flags, |
465 | const gchar *name, |
466 | const gchar *object_path, |
467 | GCancellable *cancellable, |
468 | GAsyncReadyCallback callback, |
469 | gpointer user_data) |
470 | { |
471 | g_async_initable_new_async (SN_TYPE_HOST_V0_GEN_PROXY(sn_host_v0_gen_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.kde.StatusNotifierHost", NULL((void*)0)); |
472 | } |
473 | |
474 | /** |
475 | * sn_host_v0_gen_proxy_new_finish: |
476 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to sn_host_v0_gen_proxy_new(). |
477 | * @error: Return location for error or %NULL |
478 | * |
479 | * Finishes an operation started with sn_host_v0_gen_proxy_new(). |
480 | * |
481 | * Returns: (transfer full) (type SnHostV0GenProxy): The constructed proxy object or %NULL if @error is set. |
482 | */ |
483 | SnHostV0Gen * |
484 | sn_host_v0_gen_proxy_new_finish ( |
485 | GAsyncResult *res, |
486 | GError **error) |
487 | { |
488 | GObject *ret; |
489 | GObject *source_object; |
490 | source_object = g_async_result_get_source_object (res); |
491 | 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); |
492 | g_object_unref (source_object); |
493 | if (ret != NULL((void*)0)) |
494 | return SN_HOST_V0_GEN (ret)((((SnHostV0Gen*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((sn_host_v0_gen_get_type ())))))); |
495 | else |
496 | return NULL((void*)0); |
497 | } |
498 | |
499 | /** |
500 | * sn_host_v0_gen_proxy_new_sync: |
501 | * @connection: A #GDBusConnection. |
502 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
503 | * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. |
504 | * @object_path: An object path. |
505 | * @cancellable: (nullable): A #GCancellable or %NULL. |
506 | * @error: Return location for error or %NULL |
507 | * |
508 | * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-kde-StatusNotifierHost.top_of_page">org.kde.StatusNotifierHost</link>. See g_dbus_proxy_new_sync() for more details. |
509 | * |
510 | * The calling thread is blocked until a reply is received. |
511 | * |
512 | * See sn_host_v0_gen_proxy_new() for the asynchronous version of this constructor. |
513 | * |
514 | * Returns: (transfer full) (type SnHostV0GenProxy): The constructed proxy object or %NULL if @error is set. |
515 | */ |
516 | SnHostV0Gen * |
517 | sn_host_v0_gen_proxy_new_sync ( |
518 | GDBusConnection *connection, |
519 | GDBusProxyFlags flags, |
520 | const gchar *name, |
521 | const gchar *object_path, |
522 | GCancellable *cancellable, |
523 | GError **error) |
524 | { |
525 | GInitable *ret; |
526 | ret = g_initable_new (SN_TYPE_HOST_V0_GEN_PROXY(sn_host_v0_gen_proxy_get_type ()), cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.kde.StatusNotifierHost", NULL((void*)0)); |
527 | if (ret != NULL((void*)0)) |
528 | return SN_HOST_V0_GEN (ret)((((SnHostV0Gen*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((sn_host_v0_gen_get_type ())))))); |
529 | else |
530 | return NULL((void*)0); |
531 | } |
532 | |
533 | |
534 | /** |
535 | * sn_host_v0_gen_proxy_new_for_bus: |
536 | * @bus_type: A #GBusType. |
537 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
538 | * @name: A bus name (well-known or unique). |
539 | * @object_path: An object path. |
540 | * @cancellable: (nullable): A #GCancellable or %NULL. |
541 | * @callback: A #GAsyncReadyCallback to call when the request is satisfied. |
542 | * @user_data: User data to pass to @callback. |
543 | * |
544 | * Like sn_host_v0_gen_proxy_new() but takes a #GBusType instead of a #GDBusConnection. |
545 | * |
546 | * 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()). |
547 | * You can then call sn_host_v0_gen_proxy_new_for_bus_finish() to get the result of the operation. |
548 | * |
549 | * See sn_host_v0_gen_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
550 | */ |
551 | void |
552 | sn_host_v0_gen_proxy_new_for_bus ( |
553 | GBusType bus_type, |
554 | GDBusProxyFlags flags, |
555 | const gchar *name, |
556 | const gchar *object_path, |
557 | GCancellable *cancellable, |
558 | GAsyncReadyCallback callback, |
559 | gpointer user_data) |
560 | { |
561 | g_async_initable_new_async (SN_TYPE_HOST_V0_GEN_PROXY(sn_host_v0_gen_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.kde.StatusNotifierHost", NULL((void*)0)); |
562 | } |
563 | |
564 | /** |
565 | * sn_host_v0_gen_proxy_new_for_bus_finish: |
566 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to sn_host_v0_gen_proxy_new_for_bus(). |
567 | * @error: Return location for error or %NULL |
568 | * |
569 | * Finishes an operation started with sn_host_v0_gen_proxy_new_for_bus(). |
570 | * |
571 | * Returns: (transfer full) (type SnHostV0GenProxy): The constructed proxy object or %NULL if @error is set. |
572 | */ |
573 | SnHostV0Gen * |
574 | sn_host_v0_gen_proxy_new_for_bus_finish ( |
575 | GAsyncResult *res, |
576 | GError **error) |
577 | { |
578 | GObject *ret; |
579 | GObject *source_object; |
580 | source_object = g_async_result_get_source_object (res); |
581 | 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); |
582 | g_object_unref (source_object); |
583 | if (ret != NULL((void*)0)) |
584 | return SN_HOST_V0_GEN (ret)((((SnHostV0Gen*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((sn_host_v0_gen_get_type ())))))); |
585 | else |
586 | return NULL((void*)0); |
587 | } |
588 | |
589 | /** |
590 | * sn_host_v0_gen_proxy_new_for_bus_sync: |
591 | * @bus_type: A #GBusType. |
592 | * @flags: Flags from the #GDBusProxyFlags enumeration. |
593 | * @name: A bus name (well-known or unique). |
594 | * @object_path: An object path. |
595 | * @cancellable: (nullable): A #GCancellable or %NULL. |
596 | * @error: Return location for error or %NULL |
597 | * |
598 | * Like sn_host_v0_gen_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
599 | * |
600 | * The calling thread is blocked until a reply is received. |
601 | * |
602 | * See sn_host_v0_gen_proxy_new_for_bus() for the asynchronous version of this constructor. |
603 | * |
604 | * Returns: (transfer full) (type SnHostV0GenProxy): The constructed proxy object or %NULL if @error is set. |
605 | */ |
606 | SnHostV0Gen * |
607 | sn_host_v0_gen_proxy_new_for_bus_sync ( |
608 | GBusType bus_type, |
609 | GDBusProxyFlags flags, |
610 | const gchar *name, |
611 | const gchar *object_path, |
612 | GCancellable *cancellable, |
613 | GError **error) |
614 | { |
615 | GInitable *ret; |
616 | ret = g_initable_new (SN_TYPE_HOST_V0_GEN_PROXY(sn_host_v0_gen_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.kde.StatusNotifierHost", NULL((void*)0)); |
617 | if (ret != NULL((void*)0)) |
618 | return SN_HOST_V0_GEN (ret)((((SnHostV0Gen*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((ret)), ((sn_host_v0_gen_get_type ())))))); |
619 | else |
620 | return NULL((void*)0); |
621 | } |
622 | |
623 | |
624 | /* ------------------------------------------------------------------------ */ |
625 | |
626 | /** |
627 | * SnHostV0GenSkeleton: |
628 | * |
629 | * The #SnHostV0GenSkeleton structure contains only private data and should only be accessed using the provided API. |
630 | */ |
631 | |
632 | /** |
633 | * SnHostV0GenSkeletonClass: |
634 | * @parent_class: The parent class. |
635 | * |
636 | * Class structure for #SnHostV0GenSkeleton. |
637 | */ |
638 | |
639 | struct _SnHostV0GenSkeletonPrivate |
640 | { |
641 | GValue *properties; |
642 | GList *changed_properties; |
643 | GSource *changed_properties_idle_source; |
644 | GMainContext *context; |
645 | GMutex lock; |
646 | }; |
647 | |
648 | static void |
649 | _sn_host_v0_gen_skeleton_handle_method_call ( |
650 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
651 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
652 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
653 | const gchar *interface_name, |
654 | const gchar *method_name, |
655 | GVariant *parameters, |
656 | GDBusMethodInvocation *invocation, |
657 | gpointer user_data) |
658 | { |
659 | SnHostV0GenSkeleton *skeleton = SN_HOST_V0_GEN_SKELETON (user_data)((((SnHostV0GenSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((sn_host_v0_gen_skeleton_get_type ())))))); |
660 | _ExtendedGDBusMethodInfo *info; |
661 | GVariantIter iter; |
662 | GVariant *child; |
663 | GValue *paramv; |
664 | gsize num_params; |
665 | guint num_extra; |
666 | gsize n; |
667 | guint signal_id; |
668 | GValue return_value = G_VALUE_INIT{ 0, { { 0 } } }; |
669 | info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); |
670 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( "notification-area-applet", "sn-host-v0-gen.c", 670, ((const char *) (__func__)), "info != NULL"); } while (0); |
671 | num_params = g_variant_n_children (parameters); |
672 | 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 ))); |
673 | n = 0; |
674 | g_value_init (¶mv[n], SN_TYPE_HOST_V0_GEN(sn_host_v0_gen_get_type ())); |
675 | g_value_set_object (¶mv[n++], skeleton); |
676 | g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION(g_dbus_method_invocation_get_type ())); |
677 | g_value_set_object (¶mv[n++], invocation); |
678 | if (info->pass_fdlist) |
679 | { |
680 | #ifdef G_OS_UNIX |
681 | g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST(g_unix_fd_list_get_type ())); |
682 | g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); |
683 | #else |
684 | g_assert_not_reached ()do { g_assertion_message_expr ("notification-area-applet", "sn-host-v0-gen.c" , 684, ((const char*) (__func__)), ((void*)0)); } while (0); |
685 | #endif |
686 | } |
687 | g_variant_iter_init (&iter, parameters); |
688 | while ((child = g_variant_iter_next_value (&iter)) != NULL((void*)0)) |
689 | { |
690 | _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; |
691 | if (arg_info->use_gvariant) |
692 | { |
693 | g_value_init (¶mv[n], G_TYPE_VARIANT((GType) ((21) << (2)))); |
694 | g_value_set_variant (¶mv[n], child); |
695 | n++; |
696 | } |
697 | else |
698 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
699 | g_variant_unref (child); |
700 | } |
701 | signal_id = g_signal_lookup (info->signal_name, SN_TYPE_HOST_V0_GEN(sn_host_v0_gen_get_type ())); |
702 | g_value_init (&return_value, G_TYPE_BOOLEAN((GType) ((5) << (2)))); |
703 | g_signal_emitv (paramv, signal_id, 0, &return_value); |
704 | if (!g_value_get_boolean (&return_value)) |
705 | 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); |
706 | g_value_unset (&return_value); |
707 | for (n = 0; n < num_params + num_extra; n++) |
708 | g_value_unset (¶mv[n]); |
709 | g_free (paramv); |
710 | } |
711 | |
712 | static GVariant * |
713 | _sn_host_v0_gen_skeleton_handle_get_property ( |
714 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
715 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
716 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
717 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
718 | const gchar *property_name, |
719 | GError **error, |
720 | gpointer user_data) |
721 | { |
722 | SnHostV0GenSkeleton *skeleton = SN_HOST_V0_GEN_SKELETON (user_data)((((SnHostV0GenSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((sn_host_v0_gen_skeleton_get_type ())))))); |
723 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
724 | GParamSpec *pspec; |
725 | _ExtendedGDBusPropertyInfo *info; |
726 | GVariant *ret; |
727 | ret = NULL((void*)0); |
728 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_sn_host_v0_gen_interface_info.parent_struct, property_name); |
729 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( "notification-area-applet", "sn-host-v0-gen.c", 729, ((const char *) (__func__)), "info != NULL"); } while (0); |
730 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
731 | if (pspec == NULL((void*)0)) |
732 | { |
733 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
734 | } |
735 | else |
736 | { |
737 | g_value_init (&value, pspec->value_type); |
738 | g_object_get_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
739 | ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)(g_variant_type_checked_ ((info->parent_struct.signature)) )); |
740 | g_value_unset (&value); |
741 | } |
742 | return ret; |
743 | } |
744 | |
745 | static gboolean |
746 | _sn_host_v0_gen_skeleton_handle_set_property ( |
747 | GDBusConnection *connection G_GNUC_UNUSED__attribute__ ((__unused__)), |
748 | const gchar *sender G_GNUC_UNUSED__attribute__ ((__unused__)), |
749 | const gchar *object_path G_GNUC_UNUSED__attribute__ ((__unused__)), |
750 | const gchar *interface_name G_GNUC_UNUSED__attribute__ ((__unused__)), |
751 | const gchar *property_name, |
752 | GVariant *variant, |
753 | GError **error, |
754 | gpointer user_data) |
755 | { |
756 | SnHostV0GenSkeleton *skeleton = SN_HOST_V0_GEN_SKELETON (user_data)((((SnHostV0GenSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((user_data)), ((sn_host_v0_gen_skeleton_get_type ())))))); |
757 | GValue value = G_VALUE_INIT{ 0, { { 0 } } }; |
758 | GParamSpec *pspec; |
759 | _ExtendedGDBusPropertyInfo *info; |
760 | gboolean ret; |
761 | ret = FALSE(0); |
762 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_sn_host_v0_gen_interface_info.parent_struct, property_name); |
763 | g_assert (info != NULL)do { if (info != ((void*)0)) ; else g_assertion_message_expr ( "notification-area-applet", "sn-host-v0-gen.c", 763, ((const char *) (__func__)), "info != NULL"); } while (0); |
764 | pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton)((((GObjectClass*) (((GTypeInstance*) ((skeleton)))->g_class )))), info->hyphen_name); |
765 | if (pspec == NULL((void*)0)) |
766 | { |
767 | g_set_error (error, G_DBUS_ERRORg_dbus_error_quark(), G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); |
768 | } |
769 | else |
770 | { |
771 | if (info->use_gvariant) |
772 | g_value_set_variant (&value, variant); |
773 | else |
774 | g_dbus_gvariant_to_gvalue (variant, &value); |
775 | g_object_set_property (G_OBJECT (skeleton)((((GObject*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((skeleton)), (((GType) ((20) << (2)))))))), info->hyphen_name, &value); |
776 | g_value_unset (&value); |
777 | ret = TRUE(!(0)); |
778 | } |
779 | return ret; |
780 | } |
781 | |
782 | static const GDBusInterfaceVTable _sn_host_v0_gen_skeleton_vtable = |
783 | { |
784 | _sn_host_v0_gen_skeleton_handle_method_call, |
785 | _sn_host_v0_gen_skeleton_handle_get_property, |
786 | _sn_host_v0_gen_skeleton_handle_set_property, |
787 | {NULL((void*)0)} |
788 | }; |
789 | |
790 | static GDBusInterfaceInfo * |
791 | sn_host_v0_gen_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
792 | { |
793 | return sn_host_v0_gen_interface_info (); |
794 | } |
795 | |
796 | static GDBusInterfaceVTable * |
797 | sn_host_v0_gen_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
798 | { |
799 | return (GDBusInterfaceVTable *) &_sn_host_v0_gen_skeleton_vtable; |
800 | } |
801 | |
802 | static GVariant * |
803 | sn_host_v0_gen_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) |
804 | { |
805 | SnHostV0GenSkeleton *skeleton = SN_HOST_V0_GEN_SKELETON (_skeleton)((((SnHostV0GenSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((_skeleton)), ((sn_host_v0_gen_skeleton_get_type ())))))); |
Value stored to 'skeleton' during its initialization is never read | |
806 | |
807 | GVariantBuilder builder; |
808 | guint n; |
809 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_84(((2) << 16 | (84) << 8)) |
810 | g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
811 | #else |
812 | g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")(g_variant_type_checked_ (("a{sv}")))); |
813 | #endif |
814 | if (_sn_host_v0_gen_interface_info.parent_struct.properties == NULL((void*)0)) |
815 | goto out; |
816 | for (n = 0; _sn_host_v0_gen_interface_info.parent_struct.properties[n] != NULL((void*)0); n++) |
817 | { |
818 | GDBusPropertyInfo *info = _sn_host_v0_gen_interface_info.parent_struct.properties[n]; |
819 | if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) |
820 | { |
821 | GVariant *value; |
822 | value = _sn_host_v0_gen_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.kde.StatusNotifierHost", info->name, NULL((void*)0), skeleton); |
823 | if (value != NULL((void*)0)) |
824 | { |
825 | g_variant_take_ref (value); |
826 | g_variant_builder_add (&builder, "{sv}", info->name, value); |
827 | g_variant_unref (value); |
828 | } |
829 | } |
830 | } |
831 | out: |
832 | return g_variant_builder_end (&builder); |
833 | } |
834 | |
835 | static void |
836 | sn_host_v0_gen_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED__attribute__ ((__unused__))) |
837 | { |
838 | } |
839 | |
840 | static void sn_host_v0_gen_skeleton_iface_init (SnHostV0GenIface *iface); |
841 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
842 | G_DEFINE_TYPE_WITH_CODE (SnHostV0GenSkeleton, sn_host_v0_gen_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void sn_host_v0_gen_skeleton_init (SnHostV0GenSkeleton *self); static void sn_host_v0_gen_skeleton_class_init (SnHostV0GenSkeletonClass *klass); static GType sn_host_v0_gen_skeleton_get_type_once ( void); static gpointer sn_host_v0_gen_skeleton_parent_class = ((void*)0); static gint SnHostV0GenSkeleton_private_offset; static void sn_host_v0_gen_skeleton_class_intern_init (gpointer klass ) { sn_host_v0_gen_skeleton_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenSkeleton_private_offset); sn_host_v0_gen_skeleton_class_init ((SnHostV0GenSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer sn_host_v0_gen_skeleton_get_instance_private (SnHostV0GenSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (SnHostV0GenSkeleton_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_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 ("SnHostV0GenSkeleton"), sizeof (SnHostV0GenSkeletonClass), ( GClassInitFunc)(void (*)(void)) sn_host_v0_gen_skeleton_class_intern_init , sizeof (SnHostV0GenSkeleton), (GInstanceInitFunc)(void (*)( void)) sn_host_v0_gen_skeleton_init, (GTypeFlags) 0); { {{ SnHostV0GenSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (SnHostV0GenSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) sn_host_v0_gen_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
843 | G_ADD_PRIVATE (SnHostV0GenSkeleton)static void sn_host_v0_gen_skeleton_init (SnHostV0GenSkeleton *self); static void sn_host_v0_gen_skeleton_class_init (SnHostV0GenSkeletonClass *klass); static GType sn_host_v0_gen_skeleton_get_type_once ( void); static gpointer sn_host_v0_gen_skeleton_parent_class = ((void*)0); static gint SnHostV0GenSkeleton_private_offset; static void sn_host_v0_gen_skeleton_class_intern_init (gpointer klass ) { sn_host_v0_gen_skeleton_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenSkeleton_private_offset); sn_host_v0_gen_skeleton_class_init ((SnHostV0GenSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer sn_host_v0_gen_skeleton_get_instance_private (SnHostV0GenSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (SnHostV0GenSkeleton_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_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 ("SnHostV0GenSkeleton"), sizeof (SnHostV0GenSkeletonClass), ( GClassInitFunc)(void (*)(void)) sn_host_v0_gen_skeleton_class_intern_init , sizeof (SnHostV0GenSkeleton), (GInstanceInitFunc)(void (*)( void)) sn_host_v0_gen_skeleton_init, (GTypeFlags) 0); { {{ SnHostV0GenSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (SnHostV0GenSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) sn_host_v0_gen_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
844 | G_IMPLEMENT_INTERFACE (SN_TYPE_HOST_V0_GEN, sn_host_v0_gen_skeleton_iface_init))static void sn_host_v0_gen_skeleton_init (SnHostV0GenSkeleton *self); static void sn_host_v0_gen_skeleton_class_init (SnHostV0GenSkeletonClass *klass); static GType sn_host_v0_gen_skeleton_get_type_once ( void); static gpointer sn_host_v0_gen_skeleton_parent_class = ((void*)0); static gint SnHostV0GenSkeleton_private_offset; static void sn_host_v0_gen_skeleton_class_intern_init (gpointer klass ) { sn_host_v0_gen_skeleton_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenSkeleton_private_offset); sn_host_v0_gen_skeleton_class_init ((SnHostV0GenSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer sn_host_v0_gen_skeleton_get_instance_private (SnHostV0GenSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (SnHostV0GenSkeleton_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_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 ("SnHostV0GenSkeleton"), sizeof (SnHostV0GenSkeletonClass), ( GClassInitFunc)(void (*)(void)) sn_host_v0_gen_skeleton_class_intern_init , sizeof (SnHostV0GenSkeleton), (GInstanceInitFunc)(void (*)( void)) sn_host_v0_gen_skeleton_init, (GTypeFlags) 0); { {{ SnHostV0GenSkeleton_private_offset = g_type_add_instance_private (g_define_type_id, sizeof (SnHostV0GenSkeletonPrivate )); } { const GInterfaceInfo g_implement_interface_info = { ( GInterfaceInitFunc)(void (*)(void)) sn_host_v0_gen_skeleton_iface_init , ((void*)0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
845 | |
846 | #else |
847 | G_DEFINE_TYPE_WITH_CODE (SnHostV0GenSkeleton, sn_host_v0_gen_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,static void sn_host_v0_gen_skeleton_init (SnHostV0GenSkeleton *self); static void sn_host_v0_gen_skeleton_class_init (SnHostV0GenSkeletonClass *klass); static GType sn_host_v0_gen_skeleton_get_type_once ( void); static gpointer sn_host_v0_gen_skeleton_parent_class = ((void*)0); static gint SnHostV0GenSkeleton_private_offset; static void sn_host_v0_gen_skeleton_class_intern_init (gpointer klass ) { sn_host_v0_gen_skeleton_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenSkeleton_private_offset); sn_host_v0_gen_skeleton_class_init ((SnHostV0GenSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer sn_host_v0_gen_skeleton_get_instance_private (SnHostV0GenSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (SnHostV0GenSkeleton_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_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 ("SnHostV0GenSkeleton"), sizeof (SnHostV0GenSkeletonClass), ( GClassInitFunc)(void (*)(void)) sn_host_v0_gen_skeleton_class_intern_init , sizeof (SnHostV0GenSkeleton), (GInstanceInitFunc)(void (*)( void)) sn_host_v0_gen_skeleton_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) sn_host_v0_gen_skeleton_iface_init, ((void* )0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
848 | G_IMPLEMENT_INTERFACE (SN_TYPE_HOST_V0_GEN, sn_host_v0_gen_skeleton_iface_init))static void sn_host_v0_gen_skeleton_init (SnHostV0GenSkeleton *self); static void sn_host_v0_gen_skeleton_class_init (SnHostV0GenSkeletonClass *klass); static GType sn_host_v0_gen_skeleton_get_type_once ( void); static gpointer sn_host_v0_gen_skeleton_parent_class = ((void*)0); static gint SnHostV0GenSkeleton_private_offset; static void sn_host_v0_gen_skeleton_class_intern_init (gpointer klass ) { sn_host_v0_gen_skeleton_parent_class = g_type_class_peek_parent (klass); if (SnHostV0GenSkeleton_private_offset != 0) g_type_class_adjust_private_offset (klass, &SnHostV0GenSkeleton_private_offset); sn_host_v0_gen_skeleton_class_init ((SnHostV0GenSkeletonClass*) klass); } __attribute__ ((__unused__ )) static inline gpointer sn_host_v0_gen_skeleton_get_instance_private (SnHostV0GenSkeleton *self) { return (((gpointer) ((guint8*) (self) + (glong) (SnHostV0GenSkeleton_private_offset)))); } GType sn_host_v0_gen_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 = sn_host_v0_gen_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 sn_host_v0_gen_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 ("SnHostV0GenSkeleton"), sizeof (SnHostV0GenSkeletonClass), ( GClassInitFunc)(void (*)(void)) sn_host_v0_gen_skeleton_class_intern_init , sizeof (SnHostV0GenSkeleton), (GInstanceInitFunc)(void (*)( void)) sn_host_v0_gen_skeleton_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc )(void (*)(void)) sn_host_v0_gen_skeleton_iface_init, ((void* )0), ((void*)0) }; g_type_add_interface_static (g_define_type_id , (sn_host_v0_gen_get_type ()), &g_implement_interface_info ); };} } return g_define_type_id; } |
849 | |
850 | #endif |
851 | static void |
852 | sn_host_v0_gen_skeleton_finalize (GObject *object) |
853 | { |
854 | SnHostV0GenSkeleton *skeleton = SN_HOST_V0_GEN_SKELETON (object)((((SnHostV0GenSkeleton*) (void *) g_type_check_instance_cast ((GTypeInstance*) ((object)), ((sn_host_v0_gen_skeleton_get_type ())))))); |
855 | g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); |
856 | if (skeleton->priv->changed_properties_idle_source != NULL((void*)0)) |
857 | g_source_destroy (skeleton->priv->changed_properties_idle_source); |
858 | g_main_context_unref (skeleton->priv->context); |
859 | g_mutex_clear (&skeleton->priv->lock); |
860 | G_OBJECT_CLASS (sn_host_v0_gen_skeleton_parent_class)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((sn_host_v0_gen_skeleton_parent_class)), (((GType) ((20) << (2))))))))->finalize (object); |
861 | } |
862 | |
863 | static void |
864 | sn_host_v0_gen_skeleton_init (SnHostV0GenSkeleton *skeleton) |
865 | { |
866 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) >= GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
867 | skeleton->priv = sn_host_v0_gen_skeleton_get_instance_private (skeleton); |
868 | #else |
869 | skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, SN_TYPE_HOST_V0_GEN_SKELETON, SnHostV0GenSkeletonPrivate)((SnHostV0GenSkeletonPrivate*) g_type_instance_get_private (( GTypeInstance*) (skeleton), ((sn_host_v0_gen_skeleton_get_type ())))) GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\"" ; |
870 | #endif |
871 | |
872 | g_mutex_init (&skeleton->priv->lock); |
873 | skeleton->priv->context = g_main_context_ref_thread_default (); |
874 | } |
875 | |
876 | static void |
877 | sn_host_v0_gen_skeleton_class_init (SnHostV0GenSkeletonClass *klass) |
878 | { |
879 | GObjectClass *gobject_class; |
880 | GDBusInterfaceSkeletonClass *skeleton_class; |
881 | |
882 | gobject_class = G_OBJECT_CLASS (klass)((((GObjectClass*) (void *) g_type_check_class_cast ((GTypeClass *) ((klass)), (((GType) ((20) << (2)))))))); |
883 | gobject_class->finalize = sn_host_v0_gen_skeleton_finalize; |
884 | |
885 | skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass)((((GDBusInterfaceSkeletonClass*) (void *) g_type_check_class_cast ((GTypeClass*) ((klass)), ((g_dbus_interface_skeleton_get_type ())))))); |
886 | skeleton_class->get_info = sn_host_v0_gen_skeleton_dbus_interface_get_info; |
887 | skeleton_class->get_properties = sn_host_v0_gen_skeleton_dbus_interface_get_properties; |
888 | skeleton_class->flush = sn_host_v0_gen_skeleton_dbus_interface_flush; |
889 | skeleton_class->get_vtable = sn_host_v0_gen_skeleton_dbus_interface_get_vtable; |
890 | |
891 | #if GLIB_VERSION_MAX_ALLOWED((((2) << 16 | (84) << 8))) < GLIB_VERSION_2_38(((2) << 16 | (38) << 8)) |
892 | g_type_class_add_private (klass, sizeof (SnHostV0GenSkeletonPrivate)); |
893 | #endif |
894 | } |
895 | |
896 | static void |
897 | sn_host_v0_gen_skeleton_iface_init (SnHostV0GenIface *iface G_GNUC_UNUSED__attribute__ ((__unused__))) |
898 | { |
899 | } |
900 | |
901 | /** |
902 | * sn_host_v0_gen_skeleton_new: |
903 | * |
904 | * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-kde-StatusNotifierHost.top_of_page">org.kde.StatusNotifierHost</link>. |
905 | * |
906 | * Returns: (transfer full) (type SnHostV0GenSkeleton): The skeleton object. |
907 | */ |
908 | SnHostV0Gen * |
909 | sn_host_v0_gen_skeleton_new (void) |
910 | { |
911 | return SN_HOST_V0_GEN (g_object_new (SN_TYPE_HOST_V0_GEN_SKELETON, NULL))((((SnHostV0Gen*) (void *) g_type_check_instance_cast ((GTypeInstance *) ((g_object_new ((sn_host_v0_gen_skeleton_get_type ()), ((void *)0)))), ((sn_host_v0_gen_get_type ())))))); |
912 | } |
913 |