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