GCC Code Coverage Report


Directory: ./
File: _build/panels/bluetooth/cc-bluetooth-resources.c
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 6 8 75.0%
Functions: 2 3 66.7%
Branches: 0 0 -%

Line Branch Exec Source
1 #include <gio/gio.h>
2
3 #if defined (__ELF__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
4 # define SECTION __attribute__ ((section (".gresource.cc_bluetooth"), aligned (sizeof(void *) > 8 ? sizeof(void *) : 8)))
5 #else
6 # define SECTION
7 #endif
8
9 static const SECTION union { const guint8 data[3035]; const double alignment; void * const ptr;} cc_bluetooth_resource_data = {
10 "\107\126\141\162\151\141\156\164\000\000\000\000\000\000\000\000"
11 "\030\000\000\000\310\000\000\000\000\000\000\050\006\000\000\000"
12 "\000\000\000\000\001\000\000\000\002\000\000\000\004\000\000\000"
13 "\004\000\000\000\004\000\000\000\316\327\054\215\003\000\000\000"
14 "\310\000\000\000\017\000\114\000\330\000\000\000\334\000\000\000"
15 "\113\120\220\013\002\000\000\000\334\000\000\000\004\000\114\000"
16 "\340\000\000\000\344\000\000\000\324\265\002\000\377\377\377\377"
17 "\344\000\000\000\001\000\114\000\350\000\000\000\354\000\000\000"
18 "\260\267\044\060\001\000\000\000\354\000\000\000\006\000\114\000"
19 "\364\000\000\000\370\000\000\000\123\321\010\101\000\000\000\000"
20 "\370\000\000\000\012\000\114\000\004\001\000\000\010\001\000\000"
21 "\305\162\325\036\004\000\000\000\010\001\000\000\025\000\166\000"
22 "\040\001\000\000\332\013\000\000\143\157\156\164\162\157\154\055"
23 "\143\145\156\164\145\162\057\000\004\000\000\000\157\162\147\057"
24 "\003\000\000\000\057\000\000\000\001\000\000\000\147\156\157\155"
25 "\145\057\000\000\000\000\000\000\142\154\165\145\164\157\157\164"
26 "\150\057\000\000\005\000\000\000\143\143\055\142\154\165\145\164"
27 "\157\157\164\150\055\160\141\156\145\154\056\165\151\000\000\000"
28 "\252\012\000\000\000\000\000\000\074\077\170\155\154\040\166\145"
29 "\162\163\151\157\156\075\042\061\056\060\042\040\145\156\143\157"
30 "\144\151\156\147\075\042\125\124\106\055\070\042\077\076\012\074"
31 "\151\156\164\145\162\146\141\143\145\076\074\164\145\155\160\154"
32 "\141\164\145\040\143\154\141\163\163\075\042\103\143\102\154\165"
33 "\145\164\157\157\164\150\120\141\156\145\154\042\040\160\141\162"
34 "\145\156\164\075\042\103\143\120\141\156\145\154\042\076\074\160"
35 "\162\157\160\145\162\164\171\040\156\141\155\145\075\042\143\150"
36 "\151\154\144\042\076\074\157\142\152\145\143\164\040\143\154\141"
37 "\163\163\075\042\101\144\167\124\157\157\154\142\141\162\126\151"
38 "\145\167\042\076\074\143\150\151\154\144\040\164\171\160\145\075"
39 "\042\164\157\160\042\076\074\157\142\152\145\143\164\040\143\154"
40 "\141\163\163\075\042\101\144\167\110\145\141\144\145\162\102\141"
41 "\162\042\076\074\143\150\151\154\144\040\164\171\160\145\075\042"
42 "\145\156\144\042\076\074\157\142\152\145\143\164\040\143\154\141"
43 "\163\163\075\042\107\164\153\102\157\170\042\040\151\144\075\042"
44 "\150\145\141\144\145\162\137\142\157\170\042\076\074\143\150\151"
45 "\154\144\076\074\157\142\152\145\143\164\040\143\154\141\163\163"
46 "\075\042\107\164\153\123\167\151\164\143\150\042\040\151\144\075"
47 "\042\145\156\141\142\154\145\137\163\167\151\164\143\150\042\076"
48 "\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042"
49 "\166\141\154\151\147\156\042\076\143\145\156\164\145\162\074\057"
50 "\160\162\157\160\145\162\164\171\076\074\141\143\143\145\163\163"
51 "\151\142\151\154\151\164\171\076\074\160\162\157\160\145\162\164"
52 "\171\040\156\141\155\145\075\042\154\141\142\145\154\042\040\164"
53 "\162\141\156\163\154\141\164\141\142\154\145\075\042\171\145\163"
54 "\042\076\105\156\141\142\154\145\074\057\160\162\157\160\145\162"
55 "\164\171\076\074\057\141\143\143\145\163\163\151\142\151\154\151"
56 "\164\171\076\074\163\151\147\156\141\154\040\156\141\155\145\075"
57 "\042\163\164\141\164\145\055\163\145\164\042\040\150\141\156\144"
58 "\154\145\162\075\042\145\156\141\142\154\145\137\163\167\151\164"
59 "\143\150\137\163\164\141\164\145\137\163\145\164\137\143\142\042"
60 "\040\157\142\152\145\143\164\075\042\103\143\102\154\165\145\164"
61 "\157\157\164\150\120\141\156\145\154\042\040\163\167\141\160\160"
62 "\145\144\075\042\171\145\163\042\057\076\074\057\157\142\152\145"
63 "\143\164\076\074\057\143\150\151\154\144\076\074\057\157\142\152"
64 "\145\143\164\076\074\057\143\150\151\154\144\076\074\057\157\142"
65 "\152\145\143\164\076\074\057\143\150\151\154\144\076\074\160\162"
66 "\157\160\145\162\164\171\040\156\141\155\145\075\042\143\157\156"
67 "\164\145\156\164\042\076\074\157\142\152\145\143\164\040\143\154"
68 "\141\163\163\075\042\107\164\153\123\164\141\143\153\042\040\151"
69 "\144\075\042\163\164\141\143\153\042\076\074\143\150\151\154\144"
70 "\076\074\157\142\152\145\143\164\040\143\154\141\163\163\075\042"
71 "\101\144\167\123\164\141\164\165\163\120\141\147\145\042\040\151"
72 "\144\075\042\156\157\137\144\145\166\151\143\145\163\137\160\141"
73 "\147\145\042\076\074\160\162\157\160\145\162\164\171\040\156\141"
74 "\155\145\075\042\151\143\157\156\055\156\141\155\145\042\076\142"
75 "\154\165\145\164\157\157\164\150\055\141\143\164\151\166\145\055"
76 "\163\171\155\142\157\154\151\143\074\057\160\162\157\160\145\162"
77 "\164\171\076\074\160\162\157\160\145\162\164\171\040\156\141\155"
78 "\145\075\042\164\151\164\154\145\042\040\164\162\141\156\163\154"
79 "\141\164\141\142\154\145\075\042\171\145\163\042\076\116\157\040"
80 "\102\154\165\145\164\157\157\164\150\040\106\157\165\156\144\074"
81 "\057\160\162\157\160\145\162\164\171\076\074\160\162\157\160\145"
82 "\162\164\171\040\156\141\155\145\075\042\144\145\163\143\162\151"
83 "\160\164\151\157\156\042\040\164\162\141\156\163\154\141\164\141"
84 "\142\154\145\075\042\171\145\163\042\076\120\154\165\147\040\151"
85 "\156\040\141\040\144\157\156\147\154\145\040\164\157\040\165\163"
86 "\145\040\102\154\165\145\164\157\157\164\150\074\057\160\162\157"
87 "\160\145\162\164\171\076\074\057\157\142\152\145\143\164\076\074"
88 "\057\143\150\151\154\144\076\074\143\150\151\154\144\076\074\157"
89 "\142\152\145\143\164\040\143\154\141\163\163\075\042\101\144\167"
90 "\123\164\141\164\165\163\120\141\147\145\042\040\151\144\075\042"
91 "\144\151\163\141\142\154\145\144\137\160\141\147\145\042\076\074"
92 "\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042\151"
93 "\143\157\156\055\156\141\155\145\042\076\142\154\165\145\164\157"
94 "\157\164\150\055\141\143\164\151\166\145\055\163\171\155\142\157"
95 "\154\151\143\074\057\160\162\157\160\145\162\164\171\076\074\160"
96 "\162\157\160\145\162\164\171\040\156\141\155\145\075\042\164\151"
97 "\164\154\145\042\040\164\162\141\156\163\154\141\164\141\142\154"
98 "\145\075\042\171\145\163\042\076\102\154\165\145\164\157\157\164"
99 "\150\040\124\165\162\156\145\144\040\117\146\146\074\057\160\162"
100 "\157\160\145\162\164\171\076\074\160\162\157\160\145\162\164\171"
101 "\040\156\141\155\145\075\042\144\145\163\143\162\151\160\164\151"
102 "\157\156\042\040\164\162\141\156\163\154\141\164\141\142\154\145"
103 "\075\042\171\145\163\042\076\124\165\162\156\040\157\156\040\164"
104 "\157\040\143\157\156\156\145\143\164\040\144\145\166\151\143\145"
105 "\163\040\141\156\144\040\162\145\143\145\151\166\145\040\146\151"
106 "\154\145\040\164\162\141\156\163\146\145\162\163\074\057\160\162"
107 "\157\160\145\162\164\171\076\074\057\157\142\152\145\143\164\076"
108 "\074\057\143\150\151\154\144\076\074\143\150\151\154\144\076\074"
109 "\157\142\152\145\143\164\040\143\154\141\163\163\075\042\101\144"
110 "\167\123\164\141\164\165\163\120\141\147\145\042\040\151\144\075"
111 "\042\141\151\162\160\154\141\156\145\137\160\141\147\145\042\076"
112 "\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042"
113 "\151\143\157\156\055\156\141\155\145\042\076\141\151\162\160\154"
114 "\141\156\145\055\155\157\144\145\055\163\171\155\142\157\154\151"
115 "\143\074\057\160\162\157\160\145\162\164\171\076\074\160\162\157"
116 "\160\145\162\164\171\040\156\141\155\145\075\042\164\151\164\154"
117 "\145\042\040\164\162\141\156\163\154\141\164\141\142\154\145\075"
118 "\042\171\145\163\042\076\101\151\162\160\154\141\156\145\040\115"
119 "\157\144\145\040\151\163\040\117\156\074\057\160\162\157\160\145"
120 "\162\164\171\076\074\160\162\157\160\145\162\164\171\040\156\141"
121 "\155\145\075\042\144\145\163\143\162\151\160\164\151\157\156\042"
122 "\040\164\162\141\156\163\154\141\164\141\142\154\145\075\042\171"
123 "\145\163\042\076\102\154\165\145\164\157\157\164\150\040\151\163"
124 "\040\144\151\163\141\142\154\145\144\040\167\150\145\156\040\141"
125 "\151\162\160\154\141\156\145\040\155\157\144\145\040\151\163\040"
126 "\157\156\074\057\160\162\157\160\145\162\164\171\076\074\160\162"
127 "\157\160\145\162\164\171\040\156\141\155\145\075\042\143\150\151"
128 "\154\144\042\076\074\157\142\152\145\143\164\040\143\154\141\163"
129 "\163\075\042\107\164\153\102\165\164\164\157\156\042\076\074\160"
130 "\162\157\160\145\162\164\171\040\156\141\155\145\075\042\154\141"
131 "\142\145\154\042\040\164\162\141\156\163\154\141\164\141\142\154"
132 "\145\075\042\171\145\163\042\076\137\124\165\162\156\040\117\146"
133 "\146\040\101\151\162\160\154\141\156\145\040\115\157\144\145\074"
134 "\057\160\162\157\160\145\162\164\171\076\074\160\162\157\160\145"
135 "\162\164\171\040\156\141\155\145\075\042\165\163\145\055\165\156"
136 "\144\145\162\154\151\156\145\042\076\124\162\165\145\074\057\160"
137 "\162\157\160\145\162\164\171\076\074\160\162\157\160\145\162\164"
138 "\171\040\156\141\155\145\075\042\150\141\154\151\147\156\042\076"
139 "\143\145\156\164\145\162\074\057\160\162\157\160\145\162\164\171"
140 "\076\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075"
141 "\042\166\141\154\151\147\156\042\076\143\145\156\164\145\162\074"
142 "\057\160\162\157\160\145\162\164\171\076\074\163\151\147\156\141"
143 "\154\040\156\141\155\145\075\042\143\154\151\143\153\145\144\042"
144 "\040\150\141\156\144\154\145\162\075\042\141\151\162\160\154\141"
145 "\156\145\137\155\157\144\145\137\157\146\146\137\142\165\164\164"
146 "\157\156\137\143\154\151\143\153\145\144\137\143\142\042\040\157"
147 "\142\152\145\143\164\075\042\103\143\102\154\165\145\164\157\157"
148 "\164\150\120\141\156\145\154\042\040\163\167\141\160\160\145\144"
149 "\075\042\171\145\163\042\057\076\074\163\164\171\154\145\076\074"
150 "\143\154\141\163\163\040\156\141\155\145\075\042\160\151\154\154"
151 "\042\057\076\074\143\154\141\163\163\040\156\141\155\145\075\042"
152 "\163\165\147\147\145\163\164\145\144\055\141\143\164\151\157\156"
153 "\042\057\076\074\057\163\164\171\154\145\076\074\057\157\142\152"
154 "\145\143\164\076\074\057\160\162\157\160\145\162\164\171\076\074"
155 "\057\157\142\152\145\143\164\076\074\057\143\150\151\154\144\076"
156 "\074\143\150\151\154\144\076\074\157\142\152\145\143\164\040\143"
157 "\154\141\163\163\075\042\101\144\167\123\164\141\164\165\163\120"
158 "\141\147\145\042\040\151\144\075\042\150\167\137\141\151\162\160"
159 "\154\141\156\145\137\160\141\147\145\042\076\074\160\162\157\160"
160 "\145\162\164\171\040\156\141\155\145\075\042\151\143\157\156\055"
161 "\156\141\155\145\042\076\141\151\162\160\154\141\156\145\055\155"
162 "\157\144\145\055\163\171\155\142\157\154\151\143\074\057\160\162"
163 "\157\160\145\162\164\171\076\074\160\162\157\160\145\162\164\171"
164 "\040\156\141\155\145\075\042\164\151\164\154\145\042\040\164\162"
165 "\141\156\163\154\141\164\141\142\154\145\075\042\171\145\163\042"
166 "\076\110\141\162\144\167\141\162\145\040\101\151\162\160\154\141"
167 "\156\145\040\115\157\144\145\040\151\163\040\117\156\074\057\160"
168 "\162\157\160\145\162\164\171\076\074\160\162\157\160\145\162\164"
169 "\171\040\156\141\155\145\075\042\144\145\163\143\162\151\160\164"
170 "\151\157\156\042\040\164\162\141\156\163\154\141\164\141\142\154"
171 "\145\075\042\171\145\163\042\076\124\165\162\156\040\157\146\146"
172 "\040\164\150\145\040\101\151\162\160\154\141\156\145\040\155\157"
173 "\144\145\040\163\167\151\164\143\150\040\164\157\040\145\156\141"
174 "\142\154\145\040\102\154\165\145\164\157\157\164\150\074\057\160"
175 "\162\157\160\145\162\164\171\076\074\057\157\142\152\145\143\164"
176 "\076\074\057\143\150\151\154\144\076\074\143\150\151\154\144\076"
177 "\074\157\142\152\145\143\164\040\143\154\141\163\163\075\042\102"
178 "\154\165\145\164\157\157\164\150\123\145\164\164\151\156\147\163"
179 "\127\151\144\147\145\164\042\040\151\144\075\042\163\145\164\164"
180 "\151\156\147\163\137\167\151\144\147\145\164\042\076\074\163\151"
181 "\147\156\141\154\040\156\141\155\145\075\042\160\141\156\145\154"
182 "\055\143\150\141\156\147\145\144\042\040\150\141\156\144\154\145"
183 "\162\075\042\160\141\156\145\154\137\143\150\141\156\147\145\144"
184 "\137\143\142\042\040\157\142\152\145\143\164\075\042\103\143\102"
185 "\154\165\145\164\157\157\164\150\120\141\156\145\154\042\040\163"
186 "\167\141\160\160\145\144\075\042\171\145\163\042\057\076\074\163"
187 "\151\147\156\141\154\040\156\141\155\145\075\042\141\144\141\160"
188 "\164\145\162\055\163\164\141\164\165\163\055\143\150\141\156\147"
189 "\145\144\042\040\150\141\156\144\154\145\162\075\042\141\144\141"
190 "\160\164\145\162\137\163\164\141\164\165\163\137\143\150\141\156"
191 "\147\145\144\137\143\142\042\040\157\142\152\145\143\164\075\042"
192 "\103\143\102\154\165\145\164\157\157\164\150\120\141\156\145\154"
193 "\042\040\163\167\141\160\160\145\144\075\042\171\145\163\042\057"
194 "\076\074\057\157\142\152\145\143\164\076\074\057\143\150\151\154"
195 "\144\076\074\057\157\142\152\145\143\164\076\074\057\160\162\157"
196 "\160\145\162\164\171\076\074\057\157\142\152\145\143\164\076\074"
197 "\057\160\162\157\160\145\162\164\171\076\074\057\164\145\155\160"
198 "\154\141\164\145\076\074\057\151\156\164\145\162\146\141\143\145"
199 "\076\012\000\000\050\165\165\141\171\051" };
200
201 static GStaticResource static_resource = { cc_bluetooth_resource_data.data, sizeof (cc_bluetooth_resource_data.data) - 1 /* nul terminator */, NULL, NULL, NULL };
202
203 G_MODULE_EXPORT
204 GResource *cc_bluetooth_get_resource (void);
205 GResource *cc_bluetooth_get_resource (void)
206 {
207 return g_static_resource_get_resource (&static_resource);
208 }
209 /* GLIB - Library of useful routines for C programming
210 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
211 *
212 * SPDX-License-Identifier: LGPL-2.1-or-later
213 *
214 * This library is free software; you can redistribute it and/or
215 * modify it under the terms of the GNU Lesser General Public
216 * License as published by the Free Software Foundation; either
217 * version 2.1 of the License, or (at your option) any later version.
218 *
219 * This library is distributed in the hope that it will be useful,
220 * but WITHOUT ANY WARRANTY; without even the implied warranty of
221 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
222 * Lesser General Public License for more details.
223 *
224 * You should have received a copy of the GNU Lesser General Public
225 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
226 */
227
228 /*
229 * Modified by the GLib Team and others 1997-2000. See the AUTHORS
230 * file for a list of people on the GLib Team. See the ChangeLog
231 * files for a list of changes. These files are distributed with
232 * GLib at ftp://ftp.gtk.org/pub/gtk/.
233 */
234
235 #ifndef __G_CONSTRUCTOR_H__
236 #define __G_CONSTRUCTOR_H__
237
238 /*
239 If G_HAS_CONSTRUCTORS is true then the compiler support *both* constructors and
240 destructors, in a usable way, including e.g. on library unload. If not you're on
241 your own.
242
243 Some compilers need #pragma to handle this, which does not work with macros,
244 so the way you need to use this is (for constructors):
245
246 #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
247 #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(my_constructor)
248 #endif
249 G_DEFINE_CONSTRUCTOR(my_constructor)
250 static void my_constructor(void) {
251 ...
252 }
253
254 */
255
256 #ifndef __GTK_DOC_IGNORE__
257
258 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
259
260 #define G_HAS_CONSTRUCTORS 1
261
262 #define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void);
263 #define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void);
264
265 #elif defined (_MSC_VER)
266
267 /*
268 * Only try to include gslist.h if not already included via glib.h,
269 * so that items using gconstructor.h outside of GLib (such as
270 * GResources) continue to build properly.
271 */
272 #ifndef __G_LIB_H__
273 #include "gslist.h"
274 #endif
275
276 #include <stdlib.h>
277
278 #define G_HAS_CONSTRUCTORS 1
279
280 /* We do some weird things to avoid the constructors being optimized
281 * away on VS2015 if WholeProgramOptimization is enabled. First we
282 * make a reference to the array from the wrapper to make sure its
283 * references. Then we use a pragma to make sure the wrapper function
284 * symbol is always included at the link stage. Also, the symbols
285 * need to be extern (but not dllexport), even though they are not
286 * really used from another object file.
287 */
288
289 /* We need to account for differences between the mangling of symbols
290 * for x86 and x64/ARM/ARM64 programs, as symbols on x86 are prefixed
291 * with an underscore but symbols on x64/ARM/ARM64 are not.
292 */
293 #ifdef _M_IX86
294 #define G_MSVC_SYMBOL_PREFIX "_"
295 #else
296 #define G_MSVC_SYMBOL_PREFIX ""
297 #endif
298
299 #define G_DEFINE_CONSTRUCTOR(_func) G_MSVC_CTOR (_func, G_MSVC_SYMBOL_PREFIX)
300 #define G_DEFINE_DESTRUCTOR(_func) G_MSVC_DTOR (_func, G_MSVC_SYMBOL_PREFIX)
301
302 #define G_MSVC_CTOR(_func,_sym_prefix) \
303 static void _func(void); \
304 extern int (* _array ## _func)(void); \
305 int _func ## _wrapper(void); \
306 int _func ## _wrapper(void) { _func(); g_slist_find (NULL, _array ## _func); return 0; } \
307 __pragma(comment(linker,"/include:" _sym_prefix # _func "_wrapper")) \
308 __pragma(section(".CRT$XCU",read)) \
309 __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _wrapper;
310
311 #define G_MSVC_DTOR(_func,_sym_prefix) \
312 static void _func(void); \
313 extern int (* _array ## _func)(void); \
314 int _func ## _constructor(void); \
315 int _func ## _constructor(void) { atexit (_func); g_slist_find (NULL, _array ## _func); return 0; } \
316 __pragma(comment(linker,"/include:" _sym_prefix # _func "_constructor")) \
317 __pragma(section(".CRT$XCU",read)) \
318 __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _constructor;
319
320 #elif defined(__SUNPRO_C)
321
322 /* This is not tested, but i believe it should work, based on:
323 * http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c
324 */
325
326 #define G_HAS_CONSTRUCTORS 1
327
328 #define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1
329 #define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1
330
331 #define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \
332 init(_func)
333 #define G_DEFINE_CONSTRUCTOR(_func) \
334 static void _func(void);
335
336 #define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \
337 fini(_func)
338 #define G_DEFINE_DESTRUCTOR(_func) \
339 static void _func(void);
340
341 #else
342
343 /* constructors not supported for this compiler */
344
345 #endif
346
347 #endif /* __GTK_DOC_IGNORE__ */
348 #endif /* __G_CONSTRUCTOR_H__ */
349
350 #ifdef G_HAS_CONSTRUCTORS
351
352 #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
353 #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(cc_bluetoothresource_constructor)
354 #endif
355 G_DEFINE_CONSTRUCTOR(cc_bluetoothresource_constructor)
356 #ifdef G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA
357 #pragma G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(cc_bluetoothresource_destructor)
358 #endif
359 G_DEFINE_DESTRUCTOR(cc_bluetoothresource_destructor)
360
361 #else
362 #warning "Constructor not supported on this compiler, linking in resources will not work"
363 #endif
364
365 1 static void cc_bluetoothresource_constructor (void)
366 {
367 1 g_static_resource_init (&static_resource);
368 1 }
369
370 1 static void cc_bluetoothresource_destructor (void)
371 {
372 1 g_static_resource_fini (&static_resource);
373 1 }
374