initial import
[ICEs.git] / 210125 / gtk.i.0
1 // /usr/libexec/gcc/sh4-unknown-linux-gnu/4.2.2/cc1 -quiet -I. -I. -I.. -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 -MD .libs/gtknotebook.d -MF .deps/gtknotebook.Tpo -MP -MT gtknotebook.lo -MQ .libs/gtknotebook.o -D_REENTRANT -D_PTHREADS -DHAVE_CONFIG_H -DG_LOG_DOMAIN="Gtk" -DGTK_LIBDIR="/usr/lib" -DGTK_DATADIR="/usr/share" -DGTK_DATA_PREFIX="/usr" -DGTK_SYSCONFDIR="/etc" -DGTK_VERSION="2.12.7" -DGTK_BINARY_VERSION="2.10.0" -DGTK_HOST="sh4-unknown-linux-gnu" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS="file,lpr" -DGTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f" -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DPIC gtknotebook.c -quiet -dumpbase gtknotebook.c -auxbase-strip .libs/gtknotebook.o -O2 -Wall -fPIC -o - -frandom-seed=0
2 # 1 "gtknotebook.c"
3 # 1 "<built-in>"
4 # 1 "<command-line>"
5 # 1 "gtknotebook.c"
6 # 28 "gtknotebook.c"
7 # 1 "../config.h" 1
8 # 29 "gtknotebook.c" 2
9 # 1 "/usr/include/string.h" 1 3 4
10 # 26 "/usr/include/string.h" 3 4
11 # 1 "/usr/include/features.h" 1 3 4
12 # 330 "/usr/include/features.h" 3 4
13 # 1 "/usr/include/sys/cdefs.h" 1 3 4
14 # 348 "/usr/include/sys/cdefs.h" 3 4
15 # 1 "/usr/include/bits/wordsize.h" 1 3 4
16 # 349 "/usr/include/sys/cdefs.h" 2 3 4
17 # 331 "/usr/include/features.h" 2 3 4
18 # 354 "/usr/include/features.h" 3 4
19 # 1 "/usr/include/gnu/stubs.h" 1 3 4
20 # 355 "/usr/include/features.h" 2 3 4
21 # 27 "/usr/include/string.h" 2 3 4
22
23
24
25
26
27
28 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4
29 # 214 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 3 4
30 typedef unsigned int size_t;
31 # 34 "/usr/include/string.h" 2 3 4
32
33
34
35
36 extern void *memcpy (void *__restrict __dest,
37 __const void *__restrict __src, size_t __n)
38 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
39
40
41 extern void *memmove (void *__dest, __const void *__src, size_t __n)
42 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
43
44
45
46
47
48
49 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
50 int __c, size_t __n)
51 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
52
53
54
55
56
57 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
58
59
60 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
61 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
62
63
64 extern void *memchr (__const void *__s, int __c, size_t __n)
65 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
66
67 # 82 "/usr/include/string.h" 3 4
68
69
70 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
71 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
72
73 extern char *strncpy (char *__restrict __dest,
74 __const char *__restrict __src, size_t __n)
75 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
76
77
78 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
79 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
80
81 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
82 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
83
84
85 extern int strcmp (__const char *__s1, __const char *__s2)
86 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
87
88 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
89 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
90
91
92 extern int strcoll (__const char *__s1, __const char *__s2)
93 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
94
95 extern size_t strxfrm (char *__restrict __dest,
96 __const char *__restrict __src, size_t __n)
97 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
98
99 # 130 "/usr/include/string.h" 3 4
100 extern char *strdup (__const char *__s)
101 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
102 # 165 "/usr/include/string.h" 3 4
103
104
105 extern char *strchr (__const char *__s, int __c)
106 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
107
108 extern char *strrchr (__const char *__s, int __c)
109 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
110
111 # 181 "/usr/include/string.h" 3 4
112
113
114
115 extern size_t strcspn (__const char *__s, __const char *__reject)
116 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
117
118
119 extern size_t strspn (__const char *__s, __const char *__accept)
120 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
121
122 extern char *strpbrk (__const char *__s, __const char *__accept)
123 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
124
125 extern char *strstr (__const char *__haystack, __const char *__needle)
126 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
127
128
129
130 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
131 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
132
133
134
135
136 extern char *__strtok_r (char *__restrict __s,
137 __const char *__restrict __delim,
138 char **__restrict __save_ptr)
139 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
140
141 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
142 char **__restrict __save_ptr)
143 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
144 # 240 "/usr/include/string.h" 3 4
145
146
147 extern size_t strlen (__const char *__s)
148 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
149
150 # 254 "/usr/include/string.h" 3 4
151
152
153 extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
154
155 # 270 "/usr/include/string.h" 3 4
156 extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
157 # 294 "/usr/include/string.h" 3 4
158 extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
159
160
161
162 extern void bcopy (__const void *__src, void *__dest, size_t __n)
163 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
164
165
166 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
167
168
169 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
170 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
171
172
173 extern char *index (__const char *__s, int __c)
174 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
175
176
177 extern char *rindex (__const char *__s, int __c)
178 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
179
180
181
182 extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
183 # 331 "/usr/include/string.h" 3 4
184 extern int strcasecmp (__const char *__s1, __const char *__s2)
185 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
186
187
188 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
189 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
190 # 354 "/usr/include/string.h" 3 4
191 extern char *strsep (char **__restrict __stringp,
192 __const char *__restrict __delim)
193 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
194 # 420 "/usr/include/string.h" 3 4
195 # 1 "/usr/include/bits/string.h" 1 3 4
196 # 421 "/usr/include/string.h" 2 3 4
197
198
199 # 1 "/usr/include/bits/string2.h" 1 3 4
200 # 80 "/usr/include/bits/string2.h" 3 4
201 typedef struct { unsigned char __arr[2]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR2;
202 typedef struct { unsigned char __arr[3]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR3;
203 typedef struct { unsigned char __arr[4]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR4;
204 typedef struct { unsigned char __arr[5]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR5;
205 typedef struct { unsigned char __arr[6]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR6;
206 typedef struct { unsigned char __arr[7]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR7;
207 typedef struct { unsigned char __arr[8]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR8;
208 # 394 "/usr/include/bits/string2.h" 3 4
209 extern void *__rawmemchr (const void *__s, int __c);
210 # 969 "/usr/include/bits/string2.h" 3 4
211 extern __inline size_t __strcspn_c1 (__const char *__s, int __reject);
212 extern __inline size_t
213 __strcspn_c1 (__const char *__s, int __reject)
214 {
215 register size_t __result = 0;
216 while (__s[__result] != '\0' && __s[__result] != __reject)
217 ++__result;
218 return __result;
219 }
220
221 extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1,
222 int __reject2);
223 extern __inline size_t
224 __strcspn_c2 (__const char *__s, int __reject1, int __reject2)
225 {
226 register size_t __result = 0;
227 while (__s[__result] != '\0' && __s[__result] != __reject1
228 && __s[__result] != __reject2)
229 ++__result;
230 return __result;
231 }
232
233 extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1,
234 int __reject2, int __reject3);
235 extern __inline size_t
236 __strcspn_c3 (__const char *__s, int __reject1, int __reject2,
237 int __reject3)
238 {
239 register size_t __result = 0;
240 while (__s[__result] != '\0' && __s[__result] != __reject1
241 && __s[__result] != __reject2 && __s[__result] != __reject3)
242 ++__result;
243 return __result;
244 }
245 # 1045 "/usr/include/bits/string2.h" 3 4
246 extern __inline size_t __strspn_c1 (__const char *__s, int __accept);
247 extern __inline size_t
248 __strspn_c1 (__const char *__s, int __accept)
249 {
250 register size_t __result = 0;
251
252 while (__s[__result] == __accept)
253 ++__result;
254 return __result;
255 }
256
257 extern __inline size_t __strspn_c2 (__const char *__s, int __accept1,
258 int __accept2);
259 extern __inline size_t
260 __strspn_c2 (__const char *__s, int __accept1, int __accept2)
261 {
262 register size_t __result = 0;
263
264 while (__s[__result] == __accept1 || __s[__result] == __accept2)
265 ++__result;
266 return __result;
267 }
268
269 extern __inline size_t __strspn_c3 (__const char *__s, int __accept1,
270 int __accept2, int __accept3);
271 extern __inline size_t
272 __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
273 {
274 register size_t __result = 0;
275
276 while (__s[__result] == __accept1 || __s[__result] == __accept2
277 || __s[__result] == __accept3)
278 ++__result;
279 return __result;
280 }
281 # 1121 "/usr/include/bits/string2.h" 3 4
282 extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1,
283 int __accept2);
284 extern __inline char *
285 __strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
286 {
287
288 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
289 ++__s;
290 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
291 }
292
293 extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1,
294 int __accept2, int __accept3);
295 extern __inline char *
296 __strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
297 int __accept3)
298 {
299
300 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
301 && *__s != __accept3)
302 ++__s;
303 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
304 }
305 # 1173 "/usr/include/bits/string2.h" 3 4
306 extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
307 extern __inline char *
308 __strtok_r_1c (char *__s, char __sep, char **__nextp)
309 {
310 char *__result;
311 if (__s == ((void *)0))
312 __s = *__nextp;
313 while (*__s == __sep)
314 ++__s;
315 __result = ((void *)0);
316 if (*__s != '\0')
317 {
318 __result = __s++;
319 while (*__s != '\0')
320 if (*__s++ == __sep)
321 {
322 __s[-1] = '\0';
323 break;
324 }
325 *__nextp = __s;
326 }
327 return __result;
328 }
329 # 1205 "/usr/include/bits/string2.h" 3 4
330 extern char *__strsep_g (char **__stringp, __const char *__delim);
331 # 1223 "/usr/include/bits/string2.h" 3 4
332 extern __inline char *__strsep_1c (char **__s, char __reject);
333 extern __inline char *
334 __strsep_1c (char **__s, char __reject)
335 {
336 register char *__retval = *__s;
337 if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0))
338 *(*__s)++ = '\0';
339 return __retval;
340 }
341
342 extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2);
343 extern __inline char *
344 __strsep_2c (char **__s, char __reject1, char __reject2)
345 {
346 register char *__retval = *__s;
347 if (__retval != ((void *)0))
348 {
349 register char *__cp = __retval;
350 while (1)
351 {
352 if (*__cp == '\0')
353 {
354 __cp = ((void *)0);
355 break;
356 }
357 if (*__cp == __reject1 || *__cp == __reject2)
358 {
359 *__cp++ = '\0';
360 break;
361 }
362 ++__cp;
363 }
364 *__s = __cp;
365 }
366 return __retval;
367 }
368
369 extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2,
370 char __reject3);
371 extern __inline char *
372 __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
373 {
374 register char *__retval = *__s;
375 if (__retval != ((void *)0))
376 {
377 register char *__cp = __retval;
378 while (1)
379 {
380 if (*__cp == '\0')
381 {
382 __cp = ((void *)0);
383 break;
384 }
385 if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
386 {
387 *__cp++ = '\0';
388 break;
389 }
390 ++__cp;
391 }
392 *__s = __cp;
393 }
394 return __retval;
395 }
396 # 1299 "/usr/include/bits/string2.h" 3 4
397 # 1 "/usr/include/stdlib.h" 1 3 4
398 # 33 "/usr/include/stdlib.h" 3 4
399 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4
400 # 34 "/usr/include/stdlib.h" 2 3 4
401
402
403 # 469 "/usr/include/stdlib.h" 3 4
404
405
406 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
407
408 extern void *calloc (size_t __nmemb, size_t __size)
409 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
410
411 # 883 "/usr/include/stdlib.h" 3 4
412
413 # 1300 "/usr/include/bits/string2.h" 2 3 4
414
415
416
417
418 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
419 # 1323 "/usr/include/bits/string2.h" 3 4
420 extern char *__strndup (__const char *__string, size_t __n)
421 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
422 # 424 "/usr/include/string.h" 2 3 4
423 # 432 "/usr/include/string.h" 3 4
424
425 # 30 "gtknotebook.c" 2
426 # 1 "gtknotebook.h" 1
427 # 32 "gtknotebook.h"
428 # 1 "../gdk/gdk.h" 1
429 # 30 "../gdk/gdk.h"
430 # 1 "../gdk/gdkcairo.h" 1
431 # 23 "../gdk/gdkcairo.h"
432 # 1 "../gdk/gdkcolor.h" 1
433 # 30 "../gdk/gdkcolor.h"
434 # 1 "/usr/include/cairo/cairo.h" 1
435 # 41 "/usr/include/cairo/cairo.h"
436 # 1 "/usr/include/cairo/cairo-features.h" 1
437 # 42 "/usr/include/cairo/cairo.h" 2
438 # 1 "/usr/include/cairo/cairo-deprecated.h" 1
439 # 43 "/usr/include/cairo/cairo.h" 2
440
441
442 # 56 "/usr/include/cairo/cairo.h"
443 int
444 cairo_version (void);
445
446 const char*
447 cairo_version_string (void);
448 # 76 "/usr/include/cairo/cairo.h"
449 typedef int cairo_bool_t;
450 # 91 "/usr/include/cairo/cairo.h"
451 typedef struct _cairo cairo_t;
452 # 109 "/usr/include/cairo/cairo.h"
453 typedef struct _cairo_surface cairo_surface_t;
454 # 128 "/usr/include/cairo/cairo.h"
455 typedef struct _cairo_matrix {
456 double xx; double yx;
457 double xy; double yy;
458 double x0; double y0;
459 } cairo_matrix_t;
460 # 153 "/usr/include/cairo/cairo.h"
461 typedef struct _cairo_pattern cairo_pattern_t;
462 # 163 "/usr/include/cairo/cairo.h"
463 typedef void (*cairo_destroy_func_t) (void *data);
464 # 175 "/usr/include/cairo/cairo.h"
465 typedef struct _cairo_user_data_key {
466 int unused;
467 } cairo_user_data_key_t;
468 # 213 "/usr/include/cairo/cairo.h"
469 typedef enum _cairo_status {
470 CAIRO_STATUS_SUCCESS = 0,
471 CAIRO_STATUS_NO_MEMORY,
472 CAIRO_STATUS_INVALID_RESTORE,
473 CAIRO_STATUS_INVALID_POP_GROUP,
474 CAIRO_STATUS_NO_CURRENT_POINT,
475 CAIRO_STATUS_INVALID_MATRIX,
476 CAIRO_STATUS_INVALID_STATUS,
477 CAIRO_STATUS_NULL_POINTER,
478 CAIRO_STATUS_INVALID_STRING,
479 CAIRO_STATUS_INVALID_PATH_DATA,
480 CAIRO_STATUS_READ_ERROR,
481 CAIRO_STATUS_WRITE_ERROR,
482 CAIRO_STATUS_SURFACE_FINISHED,
483 CAIRO_STATUS_SURFACE_TYPE_MISMATCH,
484 CAIRO_STATUS_PATTERN_TYPE_MISMATCH,
485 CAIRO_STATUS_INVALID_CONTENT,
486 CAIRO_STATUS_INVALID_FORMAT,
487 CAIRO_STATUS_INVALID_VISUAL,
488 CAIRO_STATUS_FILE_NOT_FOUND,
489 CAIRO_STATUS_INVALID_DASH,
490 CAIRO_STATUS_INVALID_DSC_COMMENT,
491 CAIRO_STATUS_INVALID_INDEX,
492 CAIRO_STATUS_CLIP_NOT_REPRESENTABLE
493 } cairo_status_t;
494 # 253 "/usr/include/cairo/cairo.h"
495 typedef enum _cairo_content {
496 CAIRO_CONTENT_COLOR = 0x1000,
497 CAIRO_CONTENT_ALPHA = 0x2000,
498 CAIRO_CONTENT_COLOR_ALPHA = 0x3000
499 } cairo_content_t;
500 # 275 "/usr/include/cairo/cairo.h"
501 typedef cairo_status_t (*cairo_write_func_t) (void *closure,
502 const unsigned char *data,
503 unsigned int length);
504 # 295 "/usr/include/cairo/cairo.h"
505 typedef cairo_status_t (*cairo_read_func_t) (void *closure,
506 unsigned char *data,
507 unsigned int length);
508
509
510 cairo_t *
511 cairo_create (cairo_surface_t *target);
512
513 cairo_t *
514 cairo_reference (cairo_t *cr);
515
516 void
517 cairo_destroy (cairo_t *cr);
518
519 unsigned int
520 cairo_get_reference_count (cairo_t *cr);
521
522 void *
523 cairo_get_user_data (cairo_t *cr,
524 const cairo_user_data_key_t *key);
525
526 cairo_status_t
527 cairo_set_user_data (cairo_t *cr,
528 const cairo_user_data_key_t *key,
529 void *user_data,
530 cairo_destroy_func_t destroy);
531
532 void
533 cairo_save (cairo_t *cr);
534
535 void
536 cairo_restore (cairo_t *cr);
537
538 void
539 cairo_push_group (cairo_t *cr);
540
541 void
542 cairo_push_group_with_content (cairo_t *cr, cairo_content_t content);
543
544 cairo_pattern_t *
545 cairo_pop_group (cairo_t *cr);
546
547 void
548 cairo_pop_group_to_source (cairo_t *cr);
549
550
551
552 typedef enum _cairo_operator {
553 CAIRO_OPERATOR_CLEAR,
554
555 CAIRO_OPERATOR_SOURCE,
556 CAIRO_OPERATOR_OVER,
557 CAIRO_OPERATOR_IN,
558 CAIRO_OPERATOR_OUT,
559 CAIRO_OPERATOR_ATOP,
560
561 CAIRO_OPERATOR_DEST,
562 CAIRO_OPERATOR_DEST_OVER,
563 CAIRO_OPERATOR_DEST_IN,
564 CAIRO_OPERATOR_DEST_OUT,
565 CAIRO_OPERATOR_DEST_ATOP,
566
567 CAIRO_OPERATOR_XOR,
568 CAIRO_OPERATOR_ADD,
569 CAIRO_OPERATOR_SATURATE
570 } cairo_operator_t;
571
572 void
573 cairo_set_operator (cairo_t *cr, cairo_operator_t op);
574
575 void
576 cairo_set_source (cairo_t *cr, cairo_pattern_t *source);
577
578 void
579 cairo_set_source_rgb (cairo_t *cr, double red, double green, double blue);
580
581 void
582 cairo_set_source_rgba (cairo_t *cr,
583 double red, double green, double blue,
584 double alpha);
585
586 void
587 cairo_set_source_surface (cairo_t *cr,
588 cairo_surface_t *surface,
589 double x,
590 double y);
591
592 void
593 cairo_set_tolerance (cairo_t *cr, double tolerance);
594 # 398 "/usr/include/cairo/cairo.h"
595 typedef enum _cairo_antialias {
596 CAIRO_ANTIALIAS_DEFAULT,
597 CAIRO_ANTIALIAS_NONE,
598 CAIRO_ANTIALIAS_GRAY,
599 CAIRO_ANTIALIAS_SUBPIXEL
600 } cairo_antialias_t;
601
602 void
603 cairo_set_antialias (cairo_t *cr, cairo_antialias_t antialias);
604 # 431 "/usr/include/cairo/cairo.h"
605 typedef enum _cairo_fill_rule {
606 CAIRO_FILL_RULE_WINDING,
607 CAIRO_FILL_RULE_EVEN_ODD
608 } cairo_fill_rule_t;
609
610 void
611 cairo_set_fill_rule (cairo_t *cr, cairo_fill_rule_t fill_rule);
612
613 void
614 cairo_set_line_width (cairo_t *cr, double width);
615 # 450 "/usr/include/cairo/cairo.h"
616 typedef enum _cairo_line_cap {
617 CAIRO_LINE_CAP_BUTT,
618 CAIRO_LINE_CAP_ROUND,
619 CAIRO_LINE_CAP_SQUARE
620 } cairo_line_cap_t;
621
622 void
623 cairo_set_line_cap (cairo_t *cr, cairo_line_cap_t line_cap);
624 # 470 "/usr/include/cairo/cairo.h"
625 typedef enum _cairo_line_join {
626 CAIRO_LINE_JOIN_MITER,
627 CAIRO_LINE_JOIN_ROUND,
628 CAIRO_LINE_JOIN_BEVEL
629 } cairo_line_join_t;
630
631 void
632 cairo_set_line_join (cairo_t *cr, cairo_line_join_t line_join);
633
634 void
635 cairo_set_dash (cairo_t *cr,
636 const double *dashes,
637 int num_dashes,
638 double offset);
639
640 void
641 cairo_set_miter_limit (cairo_t *cr, double limit);
642
643 void
644 cairo_translate (cairo_t *cr, double tx, double ty);
645
646 void
647 cairo_scale (cairo_t *cr, double sx, double sy);
648
649 void
650 cairo_rotate (cairo_t *cr, double angle);
651
652 void
653 cairo_transform (cairo_t *cr,
654 const cairo_matrix_t *matrix);
655
656 void
657 cairo_set_matrix (cairo_t *cr,
658 const cairo_matrix_t *matrix);
659
660 void
661 cairo_identity_matrix (cairo_t *cr);
662
663 void
664 cairo_user_to_device (cairo_t *cr, double *x, double *y);
665
666 void
667 cairo_user_to_device_distance (cairo_t *cr, double *dx, double *dy);
668
669 void
670 cairo_device_to_user (cairo_t *cr, double *x, double *y);
671
672 void
673 cairo_device_to_user_distance (cairo_t *cr, double *dx, double *dy);
674
675
676 void
677 cairo_new_path (cairo_t *cr);
678
679 void
680 cairo_move_to (cairo_t *cr, double x, double y);
681
682 void
683 cairo_new_sub_path (cairo_t *cr);
684
685 void
686 cairo_line_to (cairo_t *cr, double x, double y);
687
688 void
689 cairo_curve_to (cairo_t *cr,
690 double x1, double y1,
691 double x2, double y2,
692 double x3, double y3);
693
694 void
695 cairo_arc (cairo_t *cr,
696 double xc, double yc,
697 double radius,
698 double angle1, double angle2);
699
700 void
701 cairo_arc_negative (cairo_t *cr,
702 double xc, double yc,
703 double radius,
704 double angle1, double angle2);
705 # 559 "/usr/include/cairo/cairo.h"
706 void
707 cairo_rel_move_to (cairo_t *cr, double dx, double dy);
708
709 void
710 cairo_rel_line_to (cairo_t *cr, double dx, double dy);
711
712 void
713 cairo_rel_curve_to (cairo_t *cr,
714 double dx1, double dy1,
715 double dx2, double dy2,
716 double dx3, double dy3);
717
718 void
719 cairo_rectangle (cairo_t *cr,
720 double x, double y,
721 double width, double height);
722
723
724
725
726
727
728 void
729 cairo_close_path (cairo_t *cr);
730
731
732 void
733 cairo_paint (cairo_t *cr);
734
735 void
736 cairo_paint_with_alpha (cairo_t *cr,
737 double alpha);
738
739 void
740 cairo_mask (cairo_t *cr,
741 cairo_pattern_t *pattern);
742
743 void
744 cairo_mask_surface (cairo_t *cr,
745 cairo_surface_t *surface,
746 double surface_x,
747 double surface_y);
748
749 void
750 cairo_stroke (cairo_t *cr);
751
752 void
753 cairo_stroke_preserve (cairo_t *cr);
754
755 void
756 cairo_fill (cairo_t *cr);
757
758 void
759 cairo_fill_preserve (cairo_t *cr);
760
761 void
762 cairo_copy_page (cairo_t *cr);
763
764 void
765 cairo_show_page (cairo_t *cr);
766
767
768 cairo_bool_t
769 cairo_in_stroke (cairo_t *cr, double x, double y);
770
771 cairo_bool_t
772 cairo_in_fill (cairo_t *cr, double x, double y);
773
774
775 void
776 cairo_stroke_extents (cairo_t *cr,
777 double *x1, double *y1,
778 double *x2, double *y2);
779
780 void
781 cairo_fill_extents (cairo_t *cr,
782 double *x1, double *y1,
783 double *x2, double *y2);
784
785
786 void
787 cairo_reset_clip (cairo_t *cr);
788
789 void
790 cairo_clip (cairo_t *cr);
791
792 void
793 cairo_clip_preserve (cairo_t *cr);
794
795 void
796 cairo_clip_extents (cairo_t *cr,
797 double *x1, double *y1,
798 double *x2, double *y2);
799 # 664 "/usr/include/cairo/cairo.h"
800 typedef struct _cairo_rectangle {
801 double x, y, width, height;
802 } cairo_rectangle_t;
803 # 679 "/usr/include/cairo/cairo.h"
804 typedef struct _cairo_rectangle_list {
805 cairo_status_t status;
806 cairo_rectangle_t *rectangles;
807 int num_rectangles;
808 } cairo_rectangle_list_t;
809
810 cairo_rectangle_list_t *
811 cairo_copy_clip_rectangle_list (cairo_t *cr);
812
813 void
814 cairo_rectangle_list_destroy (cairo_rectangle_list_t *rectangle_list);
815 # 708 "/usr/include/cairo/cairo.h"
816 typedef struct _cairo_scaled_font cairo_scaled_font_t;
817 # 727 "/usr/include/cairo/cairo.h"
818 typedef struct _cairo_font_face cairo_font_face_t;
819 # 753 "/usr/include/cairo/cairo.h"
820 typedef struct {
821 unsigned long index;
822 double x;
823 double y;
824 } cairo_glyph_t;
825 # 786 "/usr/include/cairo/cairo.h"
826 typedef struct {
827 double x_bearing;
828 double y_bearing;
829 double width;
830 double height;
831 double x_advance;
832 double y_advance;
833 } cairo_text_extents_t;
834 # 836 "/usr/include/cairo/cairo.h"
835 typedef struct {
836 double ascent;
837 double descent;
838 double height;
839 double max_x_advance;
840 double max_y_advance;
841 } cairo_font_extents_t;
842 # 852 "/usr/include/cairo/cairo.h"
843 typedef enum _cairo_font_slant {
844 CAIRO_FONT_SLANT_NORMAL,
845 CAIRO_FONT_SLANT_ITALIC,
846 CAIRO_FONT_SLANT_OBLIQUE
847 } cairo_font_slant_t;
848 # 865 "/usr/include/cairo/cairo.h"
849 typedef enum _cairo_font_weight {
850 CAIRO_FONT_WEIGHT_NORMAL,
851 CAIRO_FONT_WEIGHT_BOLD
852 } cairo_font_weight_t;
853 # 887 "/usr/include/cairo/cairo.h"
854 typedef enum _cairo_subpixel_order {
855 CAIRO_SUBPIXEL_ORDER_DEFAULT,
856 CAIRO_SUBPIXEL_ORDER_RGB,
857 CAIRO_SUBPIXEL_ORDER_BGR,
858 CAIRO_SUBPIXEL_ORDER_VRGB,
859 CAIRO_SUBPIXEL_ORDER_VBGR
860 } cairo_subpixel_order_t;
861 # 917 "/usr/include/cairo/cairo.h"
862 typedef enum _cairo_hint_style {
863 CAIRO_HINT_STYLE_DEFAULT,
864 CAIRO_HINT_STYLE_NONE,
865 CAIRO_HINT_STYLE_SLIGHT,
866 CAIRO_HINT_STYLE_MEDIUM,
867 CAIRO_HINT_STYLE_FULL
868 } cairo_hint_style_t;
869 # 938 "/usr/include/cairo/cairo.h"
870 typedef enum _cairo_hint_metrics {
871 CAIRO_HINT_METRICS_DEFAULT,
872 CAIRO_HINT_METRICS_OFF,
873 CAIRO_HINT_METRICS_ON
874 } cairo_hint_metrics_t;
875 # 964 "/usr/include/cairo/cairo.h"
876 typedef struct _cairo_font_options cairo_font_options_t;
877
878 cairo_font_options_t *
879 cairo_font_options_create (void);
880
881 cairo_font_options_t *
882 cairo_font_options_copy (const cairo_font_options_t *original);
883
884 void
885 cairo_font_options_destroy (cairo_font_options_t *options);
886
887 cairo_status_t
888 cairo_font_options_status (cairo_font_options_t *options);
889
890 void
891 cairo_font_options_merge (cairo_font_options_t *options,
892 const cairo_font_options_t *other);
893 cairo_bool_t
894 cairo_font_options_equal (const cairo_font_options_t *options,
895 const cairo_font_options_t *other);
896
897 unsigned long
898 cairo_font_options_hash (const cairo_font_options_t *options);
899
900 void
901 cairo_font_options_set_antialias (cairo_font_options_t *options,
902 cairo_antialias_t antialias);
903 cairo_antialias_t
904 cairo_font_options_get_antialias (const cairo_font_options_t *options);
905
906 void
907 cairo_font_options_set_subpixel_order (cairo_font_options_t *options,
908 cairo_subpixel_order_t subpixel_order);
909 cairo_subpixel_order_t
910 cairo_font_options_get_subpixel_order (const cairo_font_options_t *options);
911
912 void
913 cairo_font_options_set_hint_style (cairo_font_options_t *options,
914 cairo_hint_style_t hint_style);
915 cairo_hint_style_t
916 cairo_font_options_get_hint_style (const cairo_font_options_t *options);
917
918 void
919 cairo_font_options_set_hint_metrics (cairo_font_options_t *options,
920 cairo_hint_metrics_t hint_metrics);
921 cairo_hint_metrics_t
922 cairo_font_options_get_hint_metrics (const cairo_font_options_t *options);
923
924
925
926
927 void
928 cairo_select_font_face (cairo_t *cr,
929 const char *family,
930 cairo_font_slant_t slant,
931 cairo_font_weight_t weight);
932
933 void
934 cairo_set_font_size (cairo_t *cr, double size);
935
936 void
937 cairo_set_font_matrix (cairo_t *cr,
938 const cairo_matrix_t *matrix);
939
940 void
941 cairo_get_font_matrix (cairo_t *cr,
942 cairo_matrix_t *matrix);
943
944 void
945 cairo_set_font_options (cairo_t *cr,
946 const cairo_font_options_t *options);
947
948 void
949 cairo_get_font_options (cairo_t *cr,
950 cairo_font_options_t *options);
951
952 void
953 cairo_set_font_face (cairo_t *cr, cairo_font_face_t *font_face);
954
955 cairo_font_face_t *
956 cairo_get_font_face (cairo_t *cr);
957
958 void
959 cairo_set_scaled_font (cairo_t *cr,
960 const cairo_scaled_font_t *scaled_font);
961
962 cairo_scaled_font_t *
963 cairo_get_scaled_font (cairo_t *cr);
964
965 void
966 cairo_show_text (cairo_t *cr, const char *utf8);
967
968 void
969 cairo_show_glyphs (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs);
970
971 void
972 cairo_text_path (cairo_t *cr, const char *utf8);
973
974 void
975 cairo_glyph_path (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs);
976
977 void
978 cairo_text_extents (cairo_t *cr,
979 const char *utf8,
980 cairo_text_extents_t *extents);
981
982 void
983 cairo_glyph_extents (cairo_t *cr,
984 const cairo_glyph_t *glyphs,
985 int num_glyphs,
986 cairo_text_extents_t *extents);
987
988 void
989 cairo_font_extents (cairo_t *cr,
990 cairo_font_extents_t *extents);
991
992
993
994 cairo_font_face_t *
995 cairo_font_face_reference (cairo_font_face_t *font_face);
996
997 void
998 cairo_font_face_destroy (cairo_font_face_t *font_face);
999
1000 unsigned int
1001 cairo_font_face_get_reference_count (cairo_font_face_t *font_face);
1002
1003 cairo_status_t
1004 cairo_font_face_status (cairo_font_face_t *font_face);
1005 # 1130 "/usr/include/cairo/cairo.h"
1006 typedef enum _cairo_font_type {
1007 CAIRO_FONT_TYPE_TOY,
1008 CAIRO_FONT_TYPE_FT,
1009 CAIRO_FONT_TYPE_WIN32,
1010 CAIRO_FONT_TYPE_ATSUI
1011 } cairo_font_type_t;
1012
1013 cairo_font_type_t
1014 cairo_font_face_get_type (cairo_font_face_t *font_face);
1015
1016 void *
1017 cairo_font_face_get_user_data (cairo_font_face_t *font_face,
1018 const cairo_user_data_key_t *key);
1019
1020 cairo_status_t
1021 cairo_font_face_set_user_data (cairo_font_face_t *font_face,
1022 const cairo_user_data_key_t *key,
1023 void *user_data,
1024 cairo_destroy_func_t destroy);
1025
1026
1027
1028 cairo_scaled_font_t *
1029 cairo_scaled_font_create (cairo_font_face_t *font_face,
1030 const cairo_matrix_t *font_matrix,
1031 const cairo_matrix_t *ctm,
1032 const cairo_font_options_t *options);
1033
1034 cairo_scaled_font_t *
1035 cairo_scaled_font_reference (cairo_scaled_font_t *scaled_font);
1036
1037 void
1038 cairo_scaled_font_destroy (cairo_scaled_font_t *scaled_font);
1039
1040 unsigned int
1041 cairo_scaled_font_get_reference_count (cairo_scaled_font_t *scaled_font);
1042
1043 cairo_status_t
1044 cairo_scaled_font_status (cairo_scaled_font_t *scaled_font);
1045
1046 cairo_font_type_t
1047 cairo_scaled_font_get_type (cairo_scaled_font_t *scaled_font);
1048
1049 void *
1050 cairo_scaled_font_get_user_data (cairo_scaled_font_t *scaled_font,
1051 const cairo_user_data_key_t *key);
1052
1053 cairo_status_t
1054 cairo_scaled_font_set_user_data (cairo_scaled_font_t *scaled_font,
1055 const cairo_user_data_key_t *key,
1056 void *user_data,
1057 cairo_destroy_func_t destroy);
1058
1059 void
1060 cairo_scaled_font_extents (cairo_scaled_font_t *scaled_font,
1061 cairo_font_extents_t *extents);
1062
1063 void
1064 cairo_scaled_font_text_extents (cairo_scaled_font_t *scaled_font,
1065 const char *utf8,
1066 cairo_text_extents_t *extents);
1067
1068 void
1069 cairo_scaled_font_glyph_extents (cairo_scaled_font_t *scaled_font,
1070 const cairo_glyph_t *glyphs,
1071 int num_glyphs,
1072 cairo_text_extents_t *extents);
1073
1074 cairo_font_face_t *
1075 cairo_scaled_font_get_font_face (cairo_scaled_font_t *scaled_font);
1076
1077 void
1078 cairo_scaled_font_get_font_matrix (cairo_scaled_font_t *scaled_font,
1079 cairo_matrix_t *font_matrix);
1080
1081 void
1082 cairo_scaled_font_get_ctm (cairo_scaled_font_t *scaled_font,
1083 cairo_matrix_t *ctm);
1084
1085 void
1086 cairo_scaled_font_get_font_options (cairo_scaled_font_t *scaled_font,
1087 cairo_font_options_t *options);
1088
1089
1090
1091 cairo_operator_t
1092 cairo_get_operator (cairo_t *cr);
1093
1094 cairo_pattern_t *
1095 cairo_get_source (cairo_t *cr);
1096
1097 double
1098 cairo_get_tolerance (cairo_t *cr);
1099
1100 cairo_antialias_t
1101 cairo_get_antialias (cairo_t *cr);
1102
1103 void
1104 cairo_get_current_point (cairo_t *cr, double *x, double *y);
1105
1106 cairo_fill_rule_t
1107 cairo_get_fill_rule (cairo_t *cr);
1108
1109 double
1110 cairo_get_line_width (cairo_t *cr);
1111
1112 cairo_line_cap_t
1113 cairo_get_line_cap (cairo_t *cr);
1114
1115 cairo_line_join_t
1116 cairo_get_line_join (cairo_t *cr);
1117
1118 double
1119 cairo_get_miter_limit (cairo_t *cr);
1120
1121 int
1122 cairo_get_dash_count (cairo_t *cr);
1123
1124 void
1125 cairo_get_dash (cairo_t *cr, double *dashes, double *offset);
1126
1127 void
1128 cairo_get_matrix (cairo_t *cr, cairo_matrix_t *matrix);
1129
1130 cairo_surface_t *
1131 cairo_get_target (cairo_t *cr);
1132
1133 cairo_surface_t *
1134 cairo_get_group_target (cairo_t *cr);
1135 # 1271 "/usr/include/cairo/cairo.h"
1136 typedef enum _cairo_path_data_type {
1137 CAIRO_PATH_MOVE_TO,
1138 CAIRO_PATH_LINE_TO,
1139 CAIRO_PATH_CURVE_TO,
1140 CAIRO_PATH_CLOSE_PATH
1141 } cairo_path_data_type_t;
1142 # 1344 "/usr/include/cairo/cairo.h"
1143 typedef union _cairo_path_data_t cairo_path_data_t;
1144 union _cairo_path_data_t {
1145 struct {
1146 cairo_path_data_type_t type;
1147 int length;
1148 } header;
1149 struct {
1150 double x, y;
1151 } point;
1152 };
1153 # 1374 "/usr/include/cairo/cairo.h"
1154 typedef struct cairo_path {
1155 cairo_status_t status;
1156 cairo_path_data_t *data;
1157 int num_data;
1158 } cairo_path_t;
1159
1160 cairo_path_t *
1161 cairo_copy_path (cairo_t *cr);
1162
1163 cairo_path_t *
1164 cairo_copy_path_flat (cairo_t *cr);
1165
1166 void
1167 cairo_append_path (cairo_t *cr,
1168 const cairo_path_t *path);
1169
1170 void
1171 cairo_path_destroy (cairo_path_t *path);
1172
1173
1174
1175 cairo_status_t
1176 cairo_status (cairo_t *cr);
1177
1178 const char *
1179 cairo_status_to_string (cairo_status_t status);
1180
1181
1182
1183 cairo_surface_t *
1184 cairo_surface_create_similar (cairo_surface_t *other,
1185 cairo_content_t content,
1186 int width,
1187 int height);
1188
1189 cairo_surface_t *
1190 cairo_surface_reference (cairo_surface_t *surface);
1191
1192 void
1193 cairo_surface_finish (cairo_surface_t *surface);
1194
1195 void
1196 cairo_surface_destroy (cairo_surface_t *surface);
1197
1198 unsigned int
1199 cairo_surface_get_reference_count (cairo_surface_t *surface);
1200
1201 cairo_status_t
1202 cairo_surface_status (cairo_surface_t *surface);
1203 # 1462 "/usr/include/cairo/cairo.h"
1204 typedef enum _cairo_surface_type {
1205 CAIRO_SURFACE_TYPE_IMAGE,
1206 CAIRO_SURFACE_TYPE_PDF,
1207 CAIRO_SURFACE_TYPE_PS,
1208 CAIRO_SURFACE_TYPE_XLIB,
1209 CAIRO_SURFACE_TYPE_XCB,
1210 CAIRO_SURFACE_TYPE_GLITZ,
1211 CAIRO_SURFACE_TYPE_QUARTZ,
1212 CAIRO_SURFACE_TYPE_WIN32,
1213 CAIRO_SURFACE_TYPE_BEOS,
1214 CAIRO_SURFACE_TYPE_DIRECTFB,
1215 CAIRO_SURFACE_TYPE_SVG,
1216 CAIRO_SURFACE_TYPE_OS2
1217 } cairo_surface_type_t;
1218
1219 cairo_surface_type_t
1220 cairo_surface_get_type (cairo_surface_t *surface);
1221
1222 cairo_content_t
1223 cairo_surface_get_content (cairo_surface_t *surface);
1224
1225
1226
1227 cairo_status_t
1228 cairo_surface_write_to_png (cairo_surface_t *surface,
1229 const char *filename);
1230
1231 cairo_status_t
1232 cairo_surface_write_to_png_stream (cairo_surface_t *surface,
1233 cairo_write_func_t write_func,
1234 void *closure);
1235
1236
1237
1238 void *
1239 cairo_surface_get_user_data (cairo_surface_t *surface,
1240 const cairo_user_data_key_t *key);
1241
1242 cairo_status_t
1243 cairo_surface_set_user_data (cairo_surface_t *surface,
1244 const cairo_user_data_key_t *key,
1245 void *user_data,
1246 cairo_destroy_func_t destroy);
1247
1248 void
1249 cairo_surface_get_font_options (cairo_surface_t *surface,
1250 cairo_font_options_t *options);
1251
1252 void
1253 cairo_surface_flush (cairo_surface_t *surface);
1254
1255 void
1256 cairo_surface_mark_dirty (cairo_surface_t *surface);
1257
1258 void
1259 cairo_surface_mark_dirty_rectangle (cairo_surface_t *surface,
1260 int x,
1261 int y,
1262 int width,
1263 int height);
1264
1265 void
1266 cairo_surface_set_device_offset (cairo_surface_t *surface,
1267 double x_offset,
1268 double y_offset);
1269
1270 void
1271 cairo_surface_get_device_offset (cairo_surface_t *surface,
1272 double *x_offset,
1273 double *y_offset);
1274
1275 void
1276 cairo_surface_set_fallback_resolution (cairo_surface_t *surface,
1277 double x_pixels_per_inch,
1278 double y_pixels_per_inch);
1279 # 1567 "/usr/include/cairo/cairo.h"
1280 typedef enum _cairo_format {
1281 CAIRO_FORMAT_ARGB32,
1282 CAIRO_FORMAT_RGB24,
1283 CAIRO_FORMAT_A8,
1284 CAIRO_FORMAT_A1
1285
1286
1287
1288
1289 } cairo_format_t;
1290
1291 cairo_surface_t *
1292 cairo_image_surface_create (cairo_format_t format,
1293 int width,
1294 int height);
1295
1296 cairo_surface_t *
1297 cairo_image_surface_create_for_data (unsigned char *data,
1298 cairo_format_t format,
1299 int width,
1300 int height,
1301 int stride);
1302
1303 unsigned char *
1304 cairo_image_surface_get_data (cairo_surface_t *surface);
1305
1306 cairo_format_t
1307 cairo_image_surface_get_format (cairo_surface_t *surface);
1308
1309 int
1310 cairo_image_surface_get_width (cairo_surface_t *surface);
1311
1312 int
1313 cairo_image_surface_get_height (cairo_surface_t *surface);
1314
1315 int
1316 cairo_image_surface_get_stride (cairo_surface_t *surface);
1317
1318
1319
1320 cairo_surface_t *
1321 cairo_image_surface_create_from_png (const char *filename);
1322
1323 cairo_surface_t *
1324 cairo_image_surface_create_from_png_stream (cairo_read_func_t read_func,
1325 void *closure);
1326
1327
1328
1329
1330
1331 cairo_pattern_t *
1332 cairo_pattern_create_rgb (double red, double green, double blue);
1333
1334 cairo_pattern_t *
1335 cairo_pattern_create_rgba (double red, double green, double blue,
1336 double alpha);
1337
1338 cairo_pattern_t *
1339 cairo_pattern_create_for_surface (cairo_surface_t *surface);
1340
1341 cairo_pattern_t *
1342 cairo_pattern_create_linear (double x0, double y0,
1343 double x1, double y1);
1344
1345 cairo_pattern_t *
1346 cairo_pattern_create_radial (double cx0, double cy0, double radius0,
1347 double cx1, double cy1, double radius1);
1348
1349 cairo_pattern_t *
1350 cairo_pattern_reference (cairo_pattern_t *pattern);
1351
1352 void
1353 cairo_pattern_destroy (cairo_pattern_t *pattern);
1354
1355 unsigned int
1356 cairo_pattern_get_reference_count (cairo_pattern_t *pattern);
1357
1358 cairo_status_t
1359 cairo_pattern_status (cairo_pattern_t *pattern);
1360
1361 void *
1362 cairo_pattern_get_user_data (cairo_pattern_t *pattern,
1363 const cairo_user_data_key_t *key);
1364
1365 cairo_status_t
1366 cairo_pattern_set_user_data (cairo_pattern_t *pattern,
1367 const cairo_user_data_key_t *key,
1368 void *user_data,
1369 cairo_destroy_func_t destroy);
1370 # 1688 "/usr/include/cairo/cairo.h"
1371 typedef enum _cairo_pattern_type {
1372 CAIRO_PATTERN_TYPE_SOLID,
1373 CAIRO_PATTERN_TYPE_SURFACE,
1374 CAIRO_PATTERN_TYPE_LINEAR,
1375 CAIRO_PATTERN_TYPE_RADIAL
1376 } cairo_pattern_type_t;
1377
1378 cairo_pattern_type_t
1379 cairo_pattern_get_type (cairo_pattern_t *pattern);
1380
1381 void
1382 cairo_pattern_add_color_stop_rgb (cairo_pattern_t *pattern,
1383 double offset,
1384 double red, double green, double blue);
1385
1386 void
1387 cairo_pattern_add_color_stop_rgba (cairo_pattern_t *pattern,
1388 double offset,
1389 double red, double green, double blue,
1390 double alpha);
1391
1392 void
1393 cairo_pattern_set_matrix (cairo_pattern_t *pattern,
1394 const cairo_matrix_t *matrix);
1395
1396 void
1397 cairo_pattern_get_matrix (cairo_pattern_t *pattern,
1398 cairo_matrix_t *matrix);
1399 # 1733 "/usr/include/cairo/cairo.h"
1400 typedef enum _cairo_extend {
1401 CAIRO_EXTEND_NONE,
1402 CAIRO_EXTEND_REPEAT,
1403 CAIRO_EXTEND_REFLECT,
1404 CAIRO_EXTEND_PAD
1405 } cairo_extend_t;
1406
1407 void
1408 cairo_pattern_set_extend (cairo_pattern_t *pattern, cairo_extend_t extend);
1409
1410 cairo_extend_t
1411 cairo_pattern_get_extend (cairo_pattern_t *pattern);
1412
1413 typedef enum _cairo_filter {
1414 CAIRO_FILTER_FAST,
1415 CAIRO_FILTER_GOOD,
1416 CAIRO_FILTER_BEST,
1417 CAIRO_FILTER_NEAREST,
1418 CAIRO_FILTER_BILINEAR,
1419 CAIRO_FILTER_GAUSSIAN
1420 } cairo_filter_t;
1421
1422 void
1423 cairo_pattern_set_filter (cairo_pattern_t *pattern, cairo_filter_t filter);
1424
1425 cairo_filter_t
1426 cairo_pattern_get_filter (cairo_pattern_t *pattern);
1427
1428 cairo_status_t
1429 cairo_pattern_get_rgba (cairo_pattern_t *pattern,
1430 double *red, double *green,
1431 double *blue, double *alpha);
1432
1433 cairo_status_t
1434 cairo_pattern_get_surface (cairo_pattern_t *pattern,
1435 cairo_surface_t **surface);
1436
1437
1438 cairo_status_t
1439 cairo_pattern_get_color_stop_rgba (cairo_pattern_t *pattern,
1440 int index, double *offset,
1441 double *red, double *green,
1442 double *blue, double *alpha);
1443
1444 cairo_status_t
1445 cairo_pattern_get_color_stop_count (cairo_pattern_t *pattern,
1446 int *count);
1447
1448 cairo_status_t
1449 cairo_pattern_get_linear_points (cairo_pattern_t *pattern,
1450 double *x0, double *y0,
1451 double *x1, double *y1);
1452
1453 cairo_status_t
1454 cairo_pattern_get_radial_circles (cairo_pattern_t *pattern,
1455 double *x0, double *y0, double *r0,
1456 double *x1, double *y1, double *r1);
1457
1458
1459
1460 void
1461 cairo_matrix_init (cairo_matrix_t *matrix,
1462 double xx, double yx,
1463 double xy, double yy,
1464 double x0, double y0);
1465
1466 void
1467 cairo_matrix_init_identity (cairo_matrix_t *matrix);
1468
1469 void
1470 cairo_matrix_init_translate (cairo_matrix_t *matrix,
1471 double tx, double ty);
1472
1473 void
1474 cairo_matrix_init_scale (cairo_matrix_t *matrix,
1475 double sx, double sy);
1476
1477 void
1478 cairo_matrix_init_rotate (cairo_matrix_t *matrix,
1479 double radians);
1480
1481 void
1482 cairo_matrix_translate (cairo_matrix_t *matrix, double tx, double ty);
1483
1484 void
1485 cairo_matrix_scale (cairo_matrix_t *matrix, double sx, double sy);
1486
1487 void
1488 cairo_matrix_rotate (cairo_matrix_t *matrix, double radians);
1489
1490 cairo_status_t
1491 cairo_matrix_invert (cairo_matrix_t *matrix);
1492
1493 void
1494 cairo_matrix_multiply (cairo_matrix_t *result,
1495 const cairo_matrix_t *a,
1496 const cairo_matrix_t *b);
1497
1498 void
1499 cairo_matrix_transform_distance (const cairo_matrix_t *matrix,
1500 double *dx, double *dy);
1501
1502 void
1503 cairo_matrix_transform_point (const cairo_matrix_t *matrix,
1504 double *x, double *y);
1505
1506
1507 void
1508 cairo_debug_reset_static_data (void);
1509
1510
1511 # 31 "../gdk/gdkcolor.h" 2
1512 # 1 "../gdk/gdktypes.h" 1
1513 # 32 "../gdk/gdktypes.h"
1514 # 1 "/usr/include/glib-2.0/glib.h" 1
1515 # 30 "/usr/include/glib-2.0/glib.h"
1516 # 1 "/usr/include/glib-2.0/glib/galloca.h" 1
1517 # 30 "/usr/include/glib-2.0/glib/galloca.h"
1518 # 1 "/usr/include/glib-2.0/glib/gtypes.h" 1
1519 # 30 "/usr/include/glib-2.0/glib/gtypes.h"
1520 # 1 "/usr/lib/glib-2.0/include/glibconfig.h" 1
1521 # 9 "/usr/lib/glib-2.0/include/glibconfig.h"
1522 # 1 "/usr/include/glib-2.0/glib/gmacros.h" 1
1523 # 36 "/usr/include/glib-2.0/glib/gmacros.h"
1524 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4
1525 # 152 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 3 4
1526 typedef int ptrdiff_t;
1527 # 326 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 3 4
1528 typedef long int wchar_t;
1529 # 37 "/usr/include/glib-2.0/glib/gmacros.h" 2
1530 # 10 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1531
1532 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 1 3 4
1533 # 11 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 3 4
1534 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/syslimits.h" 1 3 4
1535
1536
1537
1538
1539
1540
1541 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 1 3 4
1542 # 122 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 3 4
1543 # 1 "/usr/include/limits.h" 1 3 4
1544 # 145 "/usr/include/limits.h" 3 4
1545 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
1546 # 153 "/usr/include/bits/posix1_lim.h" 3 4
1547 # 1 "/usr/include/bits/local_lim.h" 1 3 4
1548 # 36 "/usr/include/bits/local_lim.h" 3 4
1549 # 1 "/usr/include/linux/limits.h" 1 3 4
1550 # 37 "/usr/include/bits/local_lim.h" 2 3 4
1551 # 154 "/usr/include/bits/posix1_lim.h" 2 3 4
1552 # 146 "/usr/include/limits.h" 2 3 4
1553
1554
1555
1556 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
1557 # 150 "/usr/include/limits.h" 2 3 4
1558 # 123 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 2 3 4
1559 # 8 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/syslimits.h" 2 3 4
1560 # 12 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 2 3 4
1561 # 12 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1562 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/float.h" 1 3 4
1563 # 13 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1564
1565
1566
1567
1568 # 32 "/usr/lib/glib-2.0/include/glibconfig.h"
1569 typedef signed char gint8;
1570 typedef unsigned char guint8;
1571 typedef signed short gint16;
1572 typedef unsigned short guint16;
1573
1574
1575
1576 typedef signed int gint32;
1577 typedef unsigned int guint32;
1578
1579
1580
1581
1582
1583 __extension__ typedef signed long long gint64;
1584 __extension__ typedef unsigned long long guint64;
1585 # 59 "/usr/lib/glib-2.0/include/glibconfig.h"
1586 typedef signed int gssize;
1587 typedef unsigned int gsize;
1588 # 69 "/usr/lib/glib-2.0/include/glibconfig.h"
1589 typedef gint64 goffset;
1590 # 139 "/usr/lib/glib-2.0/include/glibconfig.h"
1591 typedef struct _GStaticMutex GStaticMutex;
1592 struct _GStaticMutex
1593 {
1594 struct _GMutex *runtime_mutex;
1595 union {
1596 char pad[24];
1597 double dummy_double;
1598 void *dummy_pointer;
1599 long dummy_long;
1600 } static_mutex;
1601 };
1602 # 158 "/usr/lib/glib-2.0/include/glibconfig.h"
1603 typedef union _GSystemThread GSystemThread;
1604 union _GSystemThread
1605 {
1606 char data[4];
1607 double dummy_double;
1608 void *dummy_pointer;
1609 long dummy_long;
1610 };
1611 # 200 "/usr/lib/glib-2.0/include/glibconfig.h"
1612 typedef int GPid;
1613
1614
1615 # 31 "/usr/include/glib-2.0/glib/gtypes.h" 2
1616
1617
1618 # 41 "/usr/include/glib-2.0/glib/gtypes.h"
1619 typedef char gchar;
1620 typedef short gshort;
1621 typedef long glong;
1622 typedef int gint;
1623 typedef gint gboolean;
1624
1625 typedef unsigned char guchar;
1626 typedef unsigned short gushort;
1627 typedef unsigned long gulong;
1628 typedef unsigned int guint;
1629
1630 typedef float gfloat;
1631 typedef double gdouble;
1632 # 72 "/usr/include/glib-2.0/glib/gtypes.h"
1633 typedef void* gpointer;
1634 typedef const void *gconstpointer;
1635
1636 typedef gint (*GCompareFunc) (gconstpointer a,
1637 gconstpointer b);
1638 typedef gint (*GCompareDataFunc) (gconstpointer a,
1639 gconstpointer b,
1640 gpointer user_data);
1641 typedef gboolean (*GEqualFunc) (gconstpointer a,
1642 gconstpointer b);
1643 typedef void (*GDestroyNotify) (gpointer data);
1644 typedef void (*GFunc) (gpointer data,
1645 gpointer user_data);
1646 typedef guint (*GHashFunc) (gconstpointer key);
1647 typedef void (*GHFunc) (gpointer key,
1648 gpointer value,
1649 gpointer user_data);
1650 typedef void (*GFreeFunc) (gpointer data);
1651 typedef const gchar * (*GTranslateFunc) (const gchar *str,
1652 gpointer data);
1653 # 345 "/usr/include/glib-2.0/glib/gtypes.h"
1654 typedef union _GDoubleIEEE754 GDoubleIEEE754;
1655 typedef union _GFloatIEEE754 GFloatIEEE754;
1656
1657
1658
1659
1660
1661 union _GFloatIEEE754
1662 {
1663 gfloat v_float;
1664 struct {
1665 guint mantissa : 23;
1666 guint biased_exponent : 8;
1667 guint sign : 1;
1668 } mpn;
1669 };
1670 union _GDoubleIEEE754
1671 {
1672 gdouble v_double;
1673 struct {
1674 guint mantissa_low : 32;
1675 guint mantissa_high : 20;
1676 guint biased_exponent : 11;
1677 guint sign : 1;
1678 } mpn;
1679 };
1680 # 395 "/usr/include/glib-2.0/glib/gtypes.h"
1681 typedef struct _GTimeVal GTimeVal;
1682
1683 struct _GTimeVal
1684 {
1685 glong tv_sec;
1686 glong tv_usec;
1687 };
1688
1689
1690 # 31 "/usr/include/glib-2.0/glib/galloca.h" 2
1691 # 31 "/usr/include/glib-2.0/glib.h" 2
1692 # 1 "/usr/include/glib-2.0/glib/garray.h" 1
1693 # 32 "/usr/include/glib-2.0/glib/garray.h"
1694
1695
1696 typedef struct _GArray GArray;
1697 typedef struct _GByteArray GByteArray;
1698 typedef struct _GPtrArray GPtrArray;
1699
1700 struct _GArray
1701 {
1702 gchar *data;
1703 guint len;
1704 };
1705
1706 struct _GByteArray
1707 {
1708 guint8 *data;
1709 guint len;
1710 };
1711
1712 struct _GPtrArray
1713 {
1714 gpointer *pdata;
1715 guint len;
1716 };
1717 # 66 "/usr/include/glib-2.0/glib/garray.h"
1718 GArray* g_array_new (gboolean zero_terminated,
1719 gboolean clear_,
1720 guint element_size);
1721 GArray* g_array_sized_new (gboolean zero_terminated,
1722 gboolean clear_,
1723 guint element_size,
1724 guint reserved_size);
1725 gchar* g_array_free (GArray *array,
1726 gboolean free_segment);
1727 GArray* g_array_append_vals (GArray *array,
1728 gconstpointer data,
1729 guint len);
1730 GArray* g_array_prepend_vals (GArray *array,
1731 gconstpointer data,
1732 guint len);
1733 GArray* g_array_insert_vals (GArray *array,
1734 guint index_,
1735 gconstpointer data,
1736 guint len);
1737 GArray* g_array_set_size (GArray *array,
1738 guint length);
1739 GArray* g_array_remove_index (GArray *array,
1740 guint index_);
1741 GArray* g_array_remove_index_fast (GArray *array,
1742 guint index_);
1743 GArray* g_array_remove_range (GArray *array,
1744 guint index_,
1745 guint length);
1746 void g_array_sort (GArray *array,
1747 GCompareFunc compare_func);
1748 void g_array_sort_with_data (GArray *array,
1749 GCompareDataFunc compare_func,
1750 gpointer user_data);
1751
1752
1753
1754
1755
1756
1757 GPtrArray* g_ptr_array_new (void);
1758 GPtrArray* g_ptr_array_sized_new (guint reserved_size);
1759 gpointer* g_ptr_array_free (GPtrArray *array,
1760 gboolean free_seg);
1761 void g_ptr_array_set_size (GPtrArray *array,
1762 gint length);
1763 gpointer g_ptr_array_remove_index (GPtrArray *array,
1764 guint index_);
1765 gpointer g_ptr_array_remove_index_fast (GPtrArray *array,
1766 guint index_);
1767 gboolean g_ptr_array_remove (GPtrArray *array,
1768 gpointer data);
1769 gboolean g_ptr_array_remove_fast (GPtrArray *array,
1770 gpointer data);
1771 void g_ptr_array_remove_range (GPtrArray *array,
1772 guint index_,
1773 guint length);
1774 void g_ptr_array_add (GPtrArray *array,
1775 gpointer data);
1776 void g_ptr_array_sort (GPtrArray *array,
1777 GCompareFunc compare_func);
1778 void g_ptr_array_sort_with_data (GPtrArray *array,
1779 GCompareDataFunc compare_func,
1780 gpointer user_data);
1781 void g_ptr_array_foreach (GPtrArray *array,
1782 GFunc func,
1783 gpointer user_data);
1784
1785
1786
1787
1788
1789
1790 GByteArray* g_byte_array_new (void);
1791 GByteArray* g_byte_array_sized_new (guint reserved_size);
1792 guint8* g_byte_array_free (GByteArray *array,
1793 gboolean free_segment);
1794 GByteArray* g_byte_array_append (GByteArray *array,
1795 const guint8 *data,
1796 guint len);
1797 GByteArray* g_byte_array_prepend (GByteArray *array,
1798 const guint8 *data,
1799 guint len);
1800 GByteArray* g_byte_array_set_size (GByteArray *array,
1801 guint length);
1802 GByteArray* g_byte_array_remove_index (GByteArray *array,
1803 guint index_);
1804 GByteArray* g_byte_array_remove_index_fast (GByteArray *array,
1805 guint index_);
1806 GByteArray* g_byte_array_remove_range (GByteArray *array,
1807 guint index_,
1808 guint length);
1809 void g_byte_array_sort (GByteArray *array,
1810 GCompareFunc compare_func);
1811 void g_byte_array_sort_with_data (GByteArray *array,
1812 GCompareDataFunc compare_func,
1813 gpointer user_data);
1814
1815
1816
1817 # 32 "/usr/include/glib-2.0/glib.h" 2
1818 # 1 "/usr/include/glib-2.0/glib/gasyncqueue.h" 1
1819 # 30 "/usr/include/glib-2.0/glib/gasyncqueue.h"
1820 # 1 "/usr/include/glib-2.0/glib/gthread.h" 1
1821 # 30 "/usr/include/glib-2.0/glib/gthread.h"
1822 # 1 "/usr/include/glib-2.0/glib/gerror.h" 1
1823 # 24 "/usr/include/glib-2.0/glib/gerror.h"
1824 # 1 "/usr/include/glib-2.0/glib/gquark.h" 1
1825 # 32 "/usr/include/glib-2.0/glib/gquark.h"
1826
1827
1828 typedef guint32 GQuark;
1829
1830
1831
1832 GQuark g_quark_try_string (const gchar *string);
1833 GQuark g_quark_from_static_string (const gchar *string);
1834 GQuark g_quark_from_string (const gchar *string);
1835 const gchar* g_quark_to_string (GQuark quark) __attribute__((__const__));
1836
1837 const gchar* g_intern_string (const gchar *string);
1838 const gchar* g_intern_static_string (const gchar *string);
1839
1840
1841
1842 # 25 "/usr/include/glib-2.0/glib/gerror.h" 2
1843
1844
1845
1846 typedef struct _GError GError;
1847
1848 struct _GError
1849 {
1850 GQuark domain;
1851 gint code;
1852 gchar *message;
1853 };
1854
1855 GError* g_error_new (GQuark domain,
1856 gint code,
1857 const gchar *format,
1858 ...) __attribute__((__format__ (__printf__, 3, 4)));
1859
1860 GError* g_error_new_literal (GQuark domain,
1861 gint code,
1862 const gchar *message);
1863
1864 void g_error_free (GError *error);
1865 GError* g_error_copy (const GError *error);
1866
1867 gboolean g_error_matches (const GError *error,
1868 GQuark domain,
1869 gint code);
1870
1871
1872
1873
1874 void g_set_error (GError **err,
1875 GQuark domain,
1876 gint code,
1877 const gchar *format,
1878 ...) __attribute__((__format__ (__printf__, 4, 5)));
1879
1880
1881
1882 void g_propagate_error (GError **dest,
1883 GError *src);
1884
1885
1886 void g_clear_error (GError **err);
1887
1888
1889
1890 # 31 "/usr/include/glib-2.0/glib/gthread.h" 2
1891
1892 # 1 "/usr/include/glib-2.0/glib/gutils.h" 1
1893 # 31 "/usr/include/glib-2.0/glib/gutils.h"
1894 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stdarg.h" 1 3 4
1895 # 43 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stdarg.h" 3 4
1896 typedef __builtin_va_list __gnuc_va_list;
1897 # 105 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stdarg.h" 3 4
1898 typedef __gnuc_va_list va_list;
1899 # 32 "/usr/include/glib-2.0/glib/gutils.h" 2
1900
1901
1902 # 133 "/usr/include/glib-2.0/glib/gutils.h"
1903 const gchar* g_get_user_name (void);
1904 const gchar* g_get_real_name (void);
1905 const gchar* g_get_home_dir (void);
1906 const gchar* g_get_tmp_dir (void);
1907 const gchar* g_get_host_name (void);
1908 gchar* g_get_prgname (void);
1909 void g_set_prgname (const gchar *prgname);
1910 const gchar* g_get_application_name (void);
1911 void g_set_application_name (const gchar *application_name);
1912
1913 const gchar* g_get_user_data_dir (void);
1914 const gchar* g_get_user_config_dir (void);
1915 const gchar* g_get_user_cache_dir (void);
1916 const gchar* const * g_get_system_data_dirs (void);
1917 # 161 "/usr/include/glib-2.0/glib/gutils.h"
1918 const gchar* const * g_get_system_config_dirs (void);
1919
1920 const gchar* const * g_get_language_names (void);
1921 # 187 "/usr/include/glib-2.0/glib/gutils.h"
1922 typedef enum {
1923 G_USER_DIRECTORY_DESKTOP,
1924 G_USER_DIRECTORY_DOCUMENTS,
1925 G_USER_DIRECTORY_DOWNLOAD,
1926 G_USER_DIRECTORY_MUSIC,
1927 G_USER_DIRECTORY_PICTURES,
1928 G_USER_DIRECTORY_PUBLIC_SHARE,
1929 G_USER_DIRECTORY_TEMPLATES,
1930 G_USER_DIRECTORY_VIDEOS,
1931
1932 G_USER_N_DIRECTORIES
1933 } GUserDirectory;
1934
1935 const gchar* g_get_user_special_dir (GUserDirectory directory);
1936
1937 typedef struct _GDebugKey GDebugKey;
1938 struct _GDebugKey
1939 {
1940 gchar *key;
1941 guint value;
1942 };
1943
1944
1945
1946 guint g_parse_debug_string (const gchar *string,
1947 const GDebugKey *keys,
1948 guint nkeys);
1949
1950 gint g_snprintf (gchar *string,
1951 gulong n,
1952 gchar const *format,
1953 ...) __attribute__((__format__ (__printf__, 3, 4)));
1954 gint g_vsnprintf (gchar *string,
1955 gulong n,
1956 gchar const *format,
1957 va_list args);
1958
1959
1960 gboolean g_path_is_absolute (const gchar *file_name);
1961
1962
1963 const gchar* g_path_skip_root (const gchar *file_name);
1964
1965
1966
1967
1968
1969
1970
1971 const gchar* g_basename (const gchar *file_name);
1972 # 246 "/usr/include/glib-2.0/glib/gutils.h"
1973 gchar* g_get_current_dir (void);
1974 gchar* g_path_get_basename (const gchar *file_name) __attribute__((__malloc__));
1975 gchar* g_path_get_dirname (const gchar *file_name) __attribute__((__malloc__));
1976
1977
1978 void g_nullify_pointer (gpointer *nullify_location);
1979 # 262 "/usr/include/glib-2.0/glib/gutils.h"
1980 const gchar* g_getenv (const gchar *variable);
1981 gboolean g_setenv (const gchar *variable,
1982 const gchar *value,
1983 gboolean overwrite);
1984 void g_unsetenv (const gchar *variable);
1985 gchar** g_listenv (void);
1986
1987
1988 const gchar* _g_getenv_nomalloc (const gchar *variable,
1989 gchar buffer[1024]);
1990
1991
1992
1993
1994
1995 typedef void (*GVoidFunc) (void);
1996 # 288 "/usr/include/glib-2.0/glib/gutils.h"
1997 void g_atexit (GVoidFunc func);
1998 # 302 "/usr/include/glib-2.0/glib/gutils.h"
1999 gchar* g_find_program_in_path (const gchar *program);
2000
2001
2002
2003 extern __inline gint g_bit_nth_lsf (gulong mask,
2004 gint nth_bit) __attribute__((__const__));
2005 extern __inline gint g_bit_nth_msf (gulong mask,
2006 gint nth_bit) __attribute__((__const__));
2007 extern __inline guint g_bit_storage (gulong number) __attribute__((__const__));
2008
2009
2010
2011
2012 typedef struct _GTrashStack GTrashStack;
2013 struct _GTrashStack
2014 {
2015 GTrashStack *next;
2016 };
2017
2018 extern __inline void g_trash_stack_push (GTrashStack **stack_p,
2019 gpointer data_p);
2020 extern __inline gpointer g_trash_stack_pop (GTrashStack **stack_p);
2021 extern __inline gpointer g_trash_stack_peek (GTrashStack **stack_p);
2022 extern __inline guint g_trash_stack_height (GTrashStack **stack_p);
2023
2024
2025
2026
2027 extern __inline gint
2028 g_bit_nth_lsf (gulong mask,
2029 gint nth_bit)
2030 {
2031 if ((__builtin_expect (__extension__ ({ int _g_boolean_var_; if (nth_bit < -1) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 0)))
2032 nth_bit = -1;
2033 while (nth_bit < ((4 * 8) - 1))
2034 {
2035 nth_bit++;
2036 if (mask & (1UL << nth_bit))
2037 return nth_bit;
2038 }
2039 return -1;
2040 }
2041 extern __inline gint
2042 g_bit_nth_msf (gulong mask,
2043 gint nth_bit)
2044 {
2045 if (nth_bit < 0 || (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (nth_bit > 4 * 8) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 0)))
2046 nth_bit = 4 * 8;
2047 while (nth_bit > 0)
2048 {
2049 nth_bit--;
2050 if (mask & (1UL << nth_bit))
2051 return nth_bit;
2052 }
2053 return -1;
2054 }
2055 extern __inline guint
2056 g_bit_storage (gulong number)
2057 {
2058
2059 return (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (number) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) ?
2060 ((4 * 8 - 1) ^ __builtin_clzl(number)) + 1 : 1;
2061 # 375 "/usr/include/glib-2.0/glib/gutils.h"
2062 }
2063 extern __inline void
2064 g_trash_stack_push (GTrashStack **stack_p,
2065 gpointer data_p)
2066 {
2067 GTrashStack *data = (GTrashStack *) data_p;
2068
2069 data->next = *stack_p;
2070 *stack_p = data;
2071 }
2072 extern __inline gpointer
2073 g_trash_stack_pop (GTrashStack **stack_p)
2074 {
2075 GTrashStack *data;
2076
2077 data = *stack_p;
2078 if (data)
2079 {
2080 *stack_p = data->next;
2081
2082
2083
2084 data->next = ((void *)0);
2085 }
2086
2087 return data;
2088 }
2089 extern __inline gpointer
2090 g_trash_stack_peek (GTrashStack **stack_p)
2091 {
2092 GTrashStack *data;
2093
2094 data = *stack_p;
2095
2096 return data;
2097 }
2098 extern __inline guint
2099 g_trash_stack_height (GTrashStack **stack_p)
2100 {
2101 GTrashStack *data;
2102 guint i = 0;
2103
2104 for (data = *stack_p; data; data = data->next)
2105 i++;
2106
2107 return i;
2108 }
2109
2110
2111
2112
2113
2114
2115 extern const guint glib_major_version;
2116 extern const guint glib_minor_version;
2117 extern const guint glib_micro_version;
2118 extern const guint glib_interface_age;
2119 extern const guint glib_binary_age;
2120
2121 const gchar * glib_check_version (guint required_major,
2122 guint required_minor,
2123 guint required_micro);
2124
2125
2126
2127
2128
2129
2130
2131
2132 # 33 "/usr/include/glib-2.0/glib/gthread.h" 2
2133 # 1 "/usr/include/glib-2.0/glib/gatomic.h" 1
2134 # 35 "/usr/include/glib-2.0/glib/gatomic.h"
2135
2136
2137 gint g_atomic_int_exchange_and_add (volatile gint *atomic,
2138 gint val);
2139 void g_atomic_int_add (volatile gint *atomic,
2140 gint val);
2141 gboolean g_atomic_int_compare_and_exchange (volatile gint *atomic,
2142 gint oldval,
2143 gint newval);
2144 gboolean g_atomic_pointer_compare_and_exchange (volatile gpointer *atomic,
2145 gpointer oldval,
2146 gpointer newval);
2147
2148 gint g_atomic_int_get (volatile gint *atomic);
2149 void g_atomic_int_set (volatile gint *atomic,
2150 gint newval);
2151 gpointer g_atomic_pointer_get (volatile gpointer *atomic);
2152 void g_atomic_pointer_set (volatile gpointer *atomic,
2153 gpointer newval);
2154 # 66 "/usr/include/glib-2.0/glib/gatomic.h"
2155
2156 # 34 "/usr/include/glib-2.0/glib/gthread.h" 2
2157
2158
2159
2160
2161
2162
2163 extern GQuark g_thread_error_quark (void);
2164
2165
2166 typedef enum
2167 {
2168 G_THREAD_ERROR_AGAIN
2169 } GThreadError;
2170
2171 typedef gpointer (*GThreadFunc) (gpointer data);
2172
2173 typedef enum
2174 {
2175 G_THREAD_PRIORITY_LOW,
2176 G_THREAD_PRIORITY_NORMAL,
2177 G_THREAD_PRIORITY_HIGH,
2178 G_THREAD_PRIORITY_URGENT
2179 } GThreadPriority;
2180
2181 typedef struct _GThread GThread;
2182 struct _GThread
2183 {
2184
2185 GThreadFunc func;
2186 gpointer data;
2187 gboolean joinable;
2188 GThreadPriority priority;
2189 };
2190
2191 typedef struct _GMutex GMutex;
2192 typedef struct _GCond GCond;
2193 typedef struct _GPrivate GPrivate;
2194 typedef struct _GStaticPrivate GStaticPrivate;
2195
2196 typedef struct _GThreadFunctions GThreadFunctions;
2197 struct _GThreadFunctions
2198 {
2199 GMutex* (*mutex_new) (void);
2200 void (*mutex_lock) (GMutex *mutex);
2201 gboolean (*mutex_trylock) (GMutex *mutex);
2202 void (*mutex_unlock) (GMutex *mutex);
2203 void (*mutex_free) (GMutex *mutex);
2204 GCond* (*cond_new) (void);
2205 void (*cond_signal) (GCond *cond);
2206 void (*cond_broadcast) (GCond *cond);
2207 void (*cond_wait) (GCond *cond,
2208 GMutex *mutex);
2209 gboolean (*cond_timed_wait) (GCond *cond,
2210 GMutex *mutex,
2211 GTimeVal *end_time);
2212 void (*cond_free) (GCond *cond);
2213 GPrivate* (*private_new) (GDestroyNotify destructor);
2214 gpointer (*private_get) (GPrivate *private_key);
2215 void (*private_set) (GPrivate *private_key,
2216 gpointer data);
2217 void (*thread_create) (GThreadFunc func,
2218 gpointer data,
2219 gulong stack_size,
2220 gboolean joinable,
2221 gboolean bound,
2222 GThreadPriority priority,
2223 gpointer thread,
2224 GError **error);
2225 void (*thread_yield) (void);
2226 void (*thread_join) (gpointer thread);
2227 void (*thread_exit) (void);
2228 void (*thread_set_priority)(gpointer thread,
2229 GThreadPriority priority);
2230 void (*thread_self) (gpointer thread);
2231 gboolean (*thread_equal) (gpointer thread1,
2232 gpointer thread2);
2233 };
2234
2235 extern GThreadFunctions g_thread_functions_for_glib_use;
2236 extern gboolean g_thread_use_default_impl;
2237 extern gboolean g_threads_got_initialized;
2238
2239 extern guint64 (*g_thread_gettime) (void);
2240
2241
2242
2243
2244
2245 void g_thread_init (GThreadFunctions *vtable);
2246 # 131 "/usr/include/glib-2.0/glib/gthread.h"
2247 void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable);
2248 # 141 "/usr/include/glib-2.0/glib/gthread.h"
2249 GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex);
2250 # 212 "/usr/include/glib-2.0/glib/gthread.h"
2251 GThread* g_thread_create_full (GThreadFunc func,
2252 gpointer data,
2253 gulong stack_size,
2254 gboolean joinable,
2255 gboolean bound,
2256 GThreadPriority priority,
2257 GError **error);
2258 GThread* g_thread_self (void);
2259 void g_thread_exit (gpointer retval);
2260 gpointer g_thread_join (GThread *thread);
2261
2262 void g_thread_set_priority (GThread *thread,
2263 GThreadPriority priority);
2264 # 237 "/usr/include/glib-2.0/glib/gthread.h"
2265 void g_static_mutex_init (GStaticMutex *mutex);
2266 void g_static_mutex_free (GStaticMutex *mutex);
2267
2268 struct _GStaticPrivate
2269 {
2270
2271 guint index;
2272 };
2273
2274 void g_static_private_init (GStaticPrivate *private_key);
2275 gpointer g_static_private_get (GStaticPrivate *private_key);
2276 void g_static_private_set (GStaticPrivate *private_key,
2277 gpointer data,
2278 GDestroyNotify notify);
2279 void g_static_private_free (GStaticPrivate *private_key);
2280
2281 typedef struct _GStaticRecMutex GStaticRecMutex;
2282 struct _GStaticRecMutex
2283 {
2284
2285 GStaticMutex mutex;
2286 guint depth;
2287 GSystemThread owner;
2288 };
2289
2290
2291 void g_static_rec_mutex_init (GStaticRecMutex *mutex);
2292 void g_static_rec_mutex_lock (GStaticRecMutex *mutex);
2293 gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);
2294 void g_static_rec_mutex_unlock (GStaticRecMutex *mutex);
2295 void g_static_rec_mutex_lock_full (GStaticRecMutex *mutex,
2296 guint depth);
2297 guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex);
2298 void g_static_rec_mutex_free (GStaticRecMutex *mutex);
2299
2300 typedef struct _GStaticRWLock GStaticRWLock;
2301 struct _GStaticRWLock
2302 {
2303
2304 GStaticMutex mutex;
2305 GCond *read_cond;
2306 GCond *write_cond;
2307 guint read_counter;
2308 gboolean have_writer;
2309 guint want_to_read;
2310 guint want_to_write;
2311 };
2312
2313
2314
2315 void g_static_rw_lock_init (GStaticRWLock* lock);
2316 void g_static_rw_lock_reader_lock (GStaticRWLock* lock);
2317 gboolean g_static_rw_lock_reader_trylock (GStaticRWLock* lock);
2318 void g_static_rw_lock_reader_unlock (GStaticRWLock* lock);
2319 void g_static_rw_lock_writer_lock (GStaticRWLock* lock);
2320 gboolean g_static_rw_lock_writer_trylock (GStaticRWLock* lock);
2321 void g_static_rw_lock_writer_unlock (GStaticRWLock* lock);
2322 void g_static_rw_lock_free (GStaticRWLock* lock);
2323
2324 void g_thread_foreach (GFunc thread_func,
2325 gpointer user_data);
2326
2327 typedef enum
2328 {
2329 G_ONCE_STATUS_NOTCALLED,
2330 G_ONCE_STATUS_PROGRESS,
2331 G_ONCE_STATUS_READY
2332 } GOnceStatus;
2333
2334 typedef struct _GOnce GOnce;
2335 struct _GOnce
2336 {
2337 volatile GOnceStatus status;
2338 volatile gpointer retval;
2339 };
2340
2341
2342
2343 gpointer g_once_impl (GOnce *once, GThreadFunc func, gpointer arg);
2344 # 327 "/usr/include/glib-2.0/glib/gthread.h"
2345 extern __inline gboolean g_once_init_enter (volatile gsize *value_location);
2346 gboolean g_once_init_enter_impl (volatile gsize *value_location);
2347 void g_once_init_leave (volatile gsize *value_location,
2348 gsize initialization_value);
2349
2350 extern __inline gboolean
2351 g_once_init_enter (volatile gsize *value_location)
2352 {
2353 if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (g_atomic_pointer_get ((void*volatile*) value_location) != ((void *)0)) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1))
2354 return (0);
2355 else
2356 return g_once_init_enter_impl (value_location);
2357 }
2358 # 351 "/usr/include/glib-2.0/glib/gthread.h"
2359 extern void glib_dummy_decl (void);
2360 # 394 "/usr/include/glib-2.0/glib/gthread.h"
2361
2362 # 31 "/usr/include/glib-2.0/glib/gasyncqueue.h" 2
2363
2364
2365
2366 typedef struct _GAsyncQueue GAsyncQueue;
2367
2368
2369
2370
2371 GAsyncQueue* g_async_queue_new (void);
2372
2373
2374
2375
2376
2377 void g_async_queue_lock (GAsyncQueue *queue);
2378 void g_async_queue_unlock (GAsyncQueue *queue);
2379
2380
2381 GAsyncQueue* g_async_queue_ref (GAsyncQueue *queue);
2382 void g_async_queue_unref (GAsyncQueue *queue);
2383
2384
2385
2386 void g_async_queue_ref_unlocked (GAsyncQueue *queue);
2387 void g_async_queue_unref_and_unlock (GAsyncQueue *queue);
2388
2389
2390
2391 void g_async_queue_push (GAsyncQueue *queue,
2392 gpointer data);
2393 void g_async_queue_push_unlocked (GAsyncQueue *queue,
2394 gpointer data);
2395
2396 void g_async_queue_push_sorted (GAsyncQueue *queue,
2397 gpointer data,
2398 GCompareDataFunc func,
2399 gpointer user_data);
2400 void g_async_queue_push_sorted_unlocked (GAsyncQueue *queue,
2401 gpointer data,
2402 GCompareDataFunc func,
2403 gpointer user_data);
2404
2405
2406
2407
2408 gpointer g_async_queue_pop (GAsyncQueue *queue);
2409 gpointer g_async_queue_pop_unlocked (GAsyncQueue *queue);
2410
2411
2412 gpointer g_async_queue_try_pop (GAsyncQueue *queue);
2413 gpointer g_async_queue_try_pop_unlocked (GAsyncQueue *queue);
2414
2415
2416
2417
2418
2419
2420 gpointer g_async_queue_timed_pop (GAsyncQueue *queue,
2421 GTimeVal *end_time);
2422 gpointer g_async_queue_timed_pop_unlocked (GAsyncQueue *queue,
2423 GTimeVal *end_time);
2424 # 100 "/usr/include/glib-2.0/glib/gasyncqueue.h"
2425 gint g_async_queue_length (GAsyncQueue *queue);
2426 gint g_async_queue_length_unlocked (GAsyncQueue *queue);
2427 void g_async_queue_sort (GAsyncQueue *queue,
2428 GCompareDataFunc func,
2429 gpointer user_data);
2430 void g_async_queue_sort_unlocked (GAsyncQueue *queue,
2431 GCompareDataFunc func,
2432 gpointer user_data);
2433
2434
2435 GMutex* _g_async_queue_get_mutex (GAsyncQueue *queue);
2436
2437
2438 # 33 "/usr/include/glib-2.0/glib.h" 2
2439
2440 # 1 "/usr/include/glib-2.0/glib/gbacktrace.h" 1
2441 # 32 "/usr/include/glib-2.0/glib/gbacktrace.h"
2442
2443 # 43 "/usr/include/glib-2.0/glib/gbacktrace.h"
2444 void g_on_error_query (const gchar *prg_name);
2445 void g_on_error_stack_trace (const gchar *prg_name);
2446 # 59 "/usr/include/glib-2.0/glib/gbacktrace.h"
2447
2448 # 35 "/usr/include/glib-2.0/glib.h" 2
2449 # 1 "/usr/include/glib-2.0/glib/gbase64.h" 1
2450 # 26 "/usr/include/glib-2.0/glib/gbase64.h"
2451
2452
2453 gsize g_base64_encode_step (const guchar *in,
2454 gsize len,
2455 gboolean break_lines,
2456 gchar *out,
2457 gint *state,
2458 gint *save);
2459 gsize g_base64_encode_close (gboolean break_lines,
2460 gchar *out,
2461 gint *state,
2462 gint *save);
2463 gchar* g_base64_encode (const guchar *data,
2464 gsize len) __attribute__((__malloc__));
2465 gsize g_base64_decode_step (const gchar *in,
2466 gsize len,
2467 guchar *out,
2468 gint *state,
2469 guint *save);
2470 guchar *g_base64_decode (const gchar *text,
2471 gsize *out_len) __attribute__((__malloc__));
2472
2473
2474 # 36 "/usr/include/glib-2.0/glib.h" 2
2475 # 1 "/usr/include/glib-2.0/glib/gbookmarkfile.h" 1
2476 # 24 "/usr/include/glib-2.0/glib/gbookmarkfile.h"
2477 # 1 "/usr/include/time.h" 1 3 4
2478 # 31 "/usr/include/time.h" 3 4
2479
2480
2481
2482
2483
2484
2485
2486
2487 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4
2488 # 40 "/usr/include/time.h" 2 3 4
2489
2490
2491
2492 # 1 "/usr/include/bits/time.h" 1 3 4
2493 # 44 "/usr/include/time.h" 2 3 4
2494 # 57 "/usr/include/time.h" 3 4
2495 # 1 "/usr/include/bits/types.h" 1 3 4
2496 # 28 "/usr/include/bits/types.h" 3 4
2497 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2498 # 29 "/usr/include/bits/types.h" 2 3 4
2499
2500
2501 typedef unsigned char __u_char;
2502 typedef unsigned short int __u_short;
2503 typedef unsigned int __u_int;
2504 typedef unsigned long int __u_long;
2505
2506
2507 typedef signed char __int8_t;
2508 typedef unsigned char __uint8_t;
2509 typedef signed short int __int16_t;
2510 typedef unsigned short int __uint16_t;
2511 typedef signed int __int32_t;
2512 typedef unsigned int __uint32_t;
2513
2514
2515
2516
2517 __extension__ typedef signed long long int __int64_t;
2518 __extension__ typedef unsigned long long int __uint64_t;
2519
2520
2521
2522
2523
2524
2525
2526 __extension__ typedef long long int __quad_t;
2527 __extension__ typedef unsigned long long int __u_quad_t;
2528 # 131 "/usr/include/bits/types.h" 3 4
2529 # 1 "/usr/include/bits/typesizes.h" 1 3 4
2530 # 132 "/usr/include/bits/types.h" 2 3 4
2531
2532
2533 __extension__ typedef __u_quad_t __dev_t;
2534 __extension__ typedef unsigned int __uid_t;
2535 __extension__ typedef unsigned int __gid_t;
2536 __extension__ typedef unsigned long int __ino_t;
2537 __extension__ typedef __u_quad_t __ino64_t;
2538 __extension__ typedef unsigned int __mode_t;
2539 __extension__ typedef unsigned int __nlink_t;
2540 __extension__ typedef long int __off_t;
2541 __extension__ typedef __quad_t __off64_t;
2542 __extension__ typedef int __pid_t;
2543 __extension__ typedef struct { int __val[2]; } __fsid_t;
2544 __extension__ typedef long int __clock_t;
2545 __extension__ typedef unsigned long int __rlim_t;
2546 __extension__ typedef __u_quad_t __rlim64_t;
2547 __extension__ typedef unsigned int __id_t;
2548 __extension__ typedef long int __time_t;
2549 __extension__ typedef unsigned int __useconds_t;
2550 __extension__ typedef long int __suseconds_t;
2551
2552 __extension__ typedef int __daddr_t;
2553 __extension__ typedef long int __swblk_t;
2554 __extension__ typedef int __key_t;
2555
2556
2557 __extension__ typedef int __clockid_t;
2558
2559
2560 __extension__ typedef void * __timer_t;
2561
2562
2563 __extension__ typedef long int __blksize_t;
2564
2565
2566
2567
2568 __extension__ typedef long int __blkcnt_t;
2569 __extension__ typedef __quad_t __blkcnt64_t;
2570
2571
2572 __extension__ typedef unsigned long int __fsblkcnt_t;
2573 __extension__ typedef __u_quad_t __fsblkcnt64_t;
2574
2575
2576 __extension__ typedef unsigned long int __fsfilcnt_t;
2577 __extension__ typedef __u_quad_t __fsfilcnt64_t;
2578
2579 __extension__ typedef int __ssize_t;
2580
2581
2582
2583 typedef __off64_t __loff_t;
2584 typedef __quad_t *__qaddr_t;
2585 typedef char *__caddr_t;
2586
2587
2588 __extension__ typedef int __intptr_t;
2589
2590
2591 __extension__ typedef unsigned int __socklen_t;
2592 # 58 "/usr/include/time.h" 2 3 4
2593
2594
2595
2596 typedef __clock_t clock_t;
2597
2598
2599
2600 # 75 "/usr/include/time.h" 3 4
2601
2602
2603 typedef __time_t time_t;
2604
2605
2606
2607 # 93 "/usr/include/time.h" 3 4
2608 typedef __clockid_t clockid_t;
2609 # 105 "/usr/include/time.h" 3 4
2610 typedef __timer_t timer_t;
2611 # 121 "/usr/include/time.h" 3 4
2612 struct timespec
2613 {
2614 __time_t tv_sec;
2615 long int tv_nsec;
2616 };
2617
2618
2619
2620
2621
2622
2623
2624
2625 struct tm
2626 {
2627 int tm_sec;
2628 int tm_min;
2629 int tm_hour;
2630 int tm_mday;
2631 int tm_mon;
2632 int tm_year;
2633 int tm_wday;
2634 int tm_yday;
2635 int tm_isdst;
2636
2637
2638 long int tm_gmtoff;
2639 __const char *tm_zone;
2640
2641
2642
2643
2644 };
2645
2646
2647
2648
2649
2650
2651
2652
2653 struct itimerspec
2654 {
2655 struct timespec it_interval;
2656 struct timespec it_value;
2657 };
2658
2659
2660 struct sigevent;
2661
2662
2663
2664
2665
2666 typedef __pid_t pid_t;
2667
2668
2669
2670
2671
2672
2673
2674
2675 extern clock_t clock (void) __attribute__ ((__nothrow__));
2676
2677
2678 extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
2679
2680
2681 extern double difftime (time_t __time1, time_t __time0)
2682 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2683
2684
2685 extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
2686
2687
2688
2689
2690
2691 extern size_t strftime (char *__restrict __s, size_t __maxsize,
2692 __const char *__restrict __format,
2693 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2694
2695 # 229 "/usr/include/time.h" 3 4
2696
2697
2698
2699 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
2700
2701
2702
2703 extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
2704
2705
2706
2707
2708
2709 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
2710 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2711
2712
2713
2714 extern struct tm *localtime_r (__const time_t *__restrict __timer,
2715 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2716
2717
2718
2719
2720
2721 extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
2722
2723
2724 extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
2725
2726
2727
2728
2729
2730
2731
2732 extern char *asctime_r (__const struct tm *__restrict __tp,
2733 char *__restrict __buf) __attribute__ ((__nothrow__));
2734
2735
2736 extern char *ctime_r (__const time_t *__restrict __timer,
2737 char *__restrict __buf) __attribute__ ((__nothrow__));
2738
2739
2740
2741
2742 extern char *__tzname[2];
2743 extern int __daylight;
2744 extern long int __timezone;
2745
2746
2747
2748
2749 extern char *tzname[2];
2750
2751
2752
2753 extern void tzset (void) __attribute__ ((__nothrow__));
2754
2755
2756
2757 extern int daylight;
2758 extern long int timezone;
2759
2760
2761
2762
2763
2764 extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
2765 # 312 "/usr/include/time.h" 3 4
2766 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
2767
2768
2769 extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
2770
2771
2772 extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2773 # 327 "/usr/include/time.h" 3 4
2774 extern int nanosleep (__const struct timespec *__requested_time,
2775 struct timespec *__remaining);
2776
2777
2778
2779 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
2780
2781
2782 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
2783
2784
2785 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
2786 __attribute__ ((__nothrow__));
2787
2788
2789
2790
2791
2792
2793 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
2794 __const struct timespec *__req,
2795 struct timespec *__rem);
2796
2797
2798 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
2799
2800
2801
2802
2803 extern int timer_create (clockid_t __clock_id,
2804 struct sigevent *__restrict __evp,
2805 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
2806
2807
2808 extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
2809
2810
2811 extern int timer_settime (timer_t __timerid, int __flags,
2812 __const struct itimerspec *__restrict __value,
2813 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
2814
2815
2816 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
2817 __attribute__ ((__nothrow__));
2818
2819
2820 extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
2821 # 416 "/usr/include/time.h" 3 4
2822
2823 # 25 "/usr/include/glib-2.0/glib/gbookmarkfile.h" 2
2824
2825
2826
2827
2828
2829
2830
2831 typedef enum
2832 {
2833 G_BOOKMARK_FILE_ERROR_INVALID_URI,
2834 G_BOOKMARK_FILE_ERROR_INVALID_VALUE,
2835 G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED,
2836 G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND,
2837 G_BOOKMARK_FILE_ERROR_READ,
2838 G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING,
2839 G_BOOKMARK_FILE_ERROR_WRITE,
2840 G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND
2841 } GBookmarkFileError;
2842
2843 GQuark g_bookmark_file_error_quark (void);
2844
2845
2846
2847
2848 typedef struct _GBookmarkFile GBookmarkFile;
2849
2850 GBookmarkFile *g_bookmark_file_new (void);
2851 void g_bookmark_file_free (GBookmarkFile *bookmark);
2852
2853 gboolean g_bookmark_file_load_from_file (GBookmarkFile *bookmark,
2854 const gchar *filename,
2855 GError **error);
2856 gboolean g_bookmark_file_load_from_data (GBookmarkFile *bookmark,
2857 const gchar *data,
2858 gsize length,
2859 GError **error);
2860 gboolean g_bookmark_file_load_from_data_dirs (GBookmarkFile *bookmark,
2861 const gchar *file,
2862 gchar **full_path,
2863 GError **error);
2864 gchar * g_bookmark_file_to_data (GBookmarkFile *bookmark,
2865 gsize *length,
2866 GError **error) __attribute__((__malloc__));
2867 gboolean g_bookmark_file_to_file (GBookmarkFile *bookmark,
2868 const gchar *filename,
2869 GError **error);
2870
2871 void g_bookmark_file_set_title (GBookmarkFile *bookmark,
2872 const gchar *uri,
2873 const gchar *title);
2874 gchar * g_bookmark_file_get_title (GBookmarkFile *bookmark,
2875 const gchar *uri,
2876 GError **error) __attribute__((__malloc__));
2877 void g_bookmark_file_set_description (GBookmarkFile *bookmark,
2878 const gchar *uri,
2879 const gchar *description);
2880 gchar * g_bookmark_file_get_description (GBookmarkFile *bookmark,
2881 const gchar *uri,
2882 GError **error) __attribute__((__malloc__));
2883 void g_bookmark_file_set_mime_type (GBookmarkFile *bookmark,
2884 const gchar *uri,
2885 const gchar *mime_type);
2886 gchar * g_bookmark_file_get_mime_type (GBookmarkFile *bookmark,
2887 const gchar *uri,
2888 GError **error) __attribute__((__malloc__));
2889 void g_bookmark_file_set_groups (GBookmarkFile *bookmark,
2890 const gchar *uri,
2891 const gchar **groups,
2892 gsize length);
2893 void g_bookmark_file_add_group (GBookmarkFile *bookmark,
2894 const gchar *uri,
2895 const gchar *group);
2896 gboolean g_bookmark_file_has_group (GBookmarkFile *bookmark,
2897 const gchar *uri,
2898 const gchar *group,
2899 GError **error);
2900 gchar ** g_bookmark_file_get_groups (GBookmarkFile *bookmark,
2901 const gchar *uri,
2902 gsize *length,
2903 GError **error) __attribute__((__malloc__));
2904 void g_bookmark_file_add_application (GBookmarkFile *bookmark,
2905 const gchar *uri,
2906 const gchar *name,
2907 const gchar *exec);
2908 gboolean g_bookmark_file_has_application (GBookmarkFile *bookmark,
2909 const gchar *uri,
2910 const gchar *name,
2911 GError **error);
2912 gchar ** g_bookmark_file_get_applications (GBookmarkFile *bookmark,
2913 const gchar *uri,
2914 gsize *length,
2915 GError **error) __attribute__((__malloc__));
2916 gboolean g_bookmark_file_set_app_info (GBookmarkFile *bookmark,
2917 const gchar *uri,
2918 const gchar *name,
2919 const gchar *exec,
2920 gint count,
2921 time_t stamp,
2922 GError **error);
2923 gboolean g_bookmark_file_get_app_info (GBookmarkFile *bookmark,
2924 const gchar *uri,
2925 const gchar *name,
2926 gchar **exec,
2927 guint *count,
2928 time_t *stamp,
2929 GError **error);
2930 void g_bookmark_file_set_is_private (GBookmarkFile *bookmark,
2931 const gchar *uri,
2932 gboolean is_private);
2933 gboolean g_bookmark_file_get_is_private (GBookmarkFile *bookmark,
2934 const gchar *uri,
2935 GError **error);
2936 void g_bookmark_file_set_icon (GBookmarkFile *bookmark,
2937 const gchar *uri,
2938 const gchar *href,
2939 const gchar *mime_type);
2940 gboolean g_bookmark_file_get_icon (GBookmarkFile *bookmark,
2941 const gchar *uri,
2942 gchar **href,
2943 gchar **mime_type,
2944 GError **error);
2945 void g_bookmark_file_set_added (GBookmarkFile *bookmark,
2946 const gchar *uri,
2947 time_t added);
2948 time_t g_bookmark_file_get_added (GBookmarkFile *bookmark,
2949 const gchar *uri,
2950 GError **error);
2951 void g_bookmark_file_set_modified (GBookmarkFile *bookmark,
2952 const gchar *uri,
2953 time_t modified);
2954 time_t g_bookmark_file_get_modified (GBookmarkFile *bookmark,
2955 const gchar *uri,
2956 GError **error);
2957 void g_bookmark_file_set_visited (GBookmarkFile *bookmark,
2958 const gchar *uri,
2959 time_t visited);
2960 time_t g_bookmark_file_get_visited (GBookmarkFile *bookmark,
2961 const gchar *uri,
2962 GError **error);
2963 gboolean g_bookmark_file_has_item (GBookmarkFile *bookmark,
2964 const gchar *uri);
2965 gint g_bookmark_file_get_size (GBookmarkFile *bookmark);
2966 gchar ** g_bookmark_file_get_uris (GBookmarkFile *bookmark,
2967 gsize *length) __attribute__((__malloc__));
2968 gboolean g_bookmark_file_remove_group (GBookmarkFile *bookmark,
2969 const gchar *uri,
2970 const gchar *group,
2971 GError **error);
2972 gboolean g_bookmark_file_remove_application (GBookmarkFile *bookmark,
2973 const gchar *uri,
2974 const gchar *name,
2975 GError **error);
2976 gboolean g_bookmark_file_remove_item (GBookmarkFile *bookmark,
2977 const gchar *uri,
2978 GError **error);
2979 gboolean g_bookmark_file_move_item (GBookmarkFile *bookmark,
2980 const gchar *old_uri,
2981 const gchar *new_uri,
2982 GError **error);
2983
2984
2985 # 37 "/usr/include/glib-2.0/glib.h" 2
2986 # 1 "/usr/include/glib-2.0/glib/gcache.h" 1
2987 # 30 "/usr/include/glib-2.0/glib/gcache.h"
2988 # 1 "/usr/include/glib-2.0/glib/glist.h" 1
2989 # 30 "/usr/include/glib-2.0/glib/glist.h"
2990 # 1 "/usr/include/glib-2.0/glib/gmem.h" 1
2991 # 30 "/usr/include/glib-2.0/glib/gmem.h"
2992 # 1 "/usr/include/glib-2.0/glib/gslice.h" 1
2993 # 28 "/usr/include/glib-2.0/glib/gslice.h"
2994
2995
2996
2997
2998 gpointer g_slice_alloc (gsize block_size) __attribute__((__malloc__));
2999 gpointer g_slice_alloc0 (gsize block_size) __attribute__((__malloc__));
3000 gpointer g_slice_copy (gsize block_size,
3001 gconstpointer mem_block) __attribute__((__malloc__));
3002 void g_slice_free1 (gsize block_size,
3003 gpointer mem_block);
3004 void g_slice_free_chain_with_offset (gsize block_size,
3005 gpointer mem_chain,
3006 gsize next_offset);
3007 # 70 "/usr/include/glib-2.0/glib/gslice.h"
3008 typedef enum {
3009 G_SLICE_CONFIG_ALWAYS_MALLOC = 1,
3010 G_SLICE_CONFIG_BYPASS_MAGAZINES,
3011 G_SLICE_CONFIG_WORKING_SET_MSECS,
3012 G_SLICE_CONFIG_COLOR_INCREMENT,
3013 G_SLICE_CONFIG_CHUNK_SIZES,
3014 G_SLICE_CONFIG_CONTENTION_COUNTER
3015 } GSliceConfig;
3016 void g_slice_set_config (GSliceConfig ckey, gint64 value);
3017 gint64 g_slice_get_config (GSliceConfig ckey);
3018 gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
3019
3020
3021 # 31 "/usr/include/glib-2.0/glib/gmem.h" 2
3022
3023
3024
3025
3026 typedef struct _GMemVTable GMemVTable;
3027 # 47 "/usr/include/glib-2.0/glib/gmem.h"
3028 gpointer g_malloc (gulong n_bytes) __attribute__((__malloc__));
3029 gpointer g_malloc0 (gulong n_bytes) __attribute__((__malloc__));
3030 gpointer g_realloc (gpointer mem,
3031 gulong n_bytes) __attribute__((warn_unused_result));
3032 void g_free (gpointer mem);
3033 gpointer g_try_malloc (gulong n_bytes) __attribute__((__malloc__));
3034 gpointer g_try_malloc0 (gulong n_bytes) __attribute__((__malloc__));
3035 gpointer g_try_realloc (gpointer mem,
3036 gulong n_bytes) __attribute__((warn_unused_result));
3037 # 79 "/usr/include/glib-2.0/glib/gmem.h"
3038 struct _GMemVTable
3039 {
3040 gpointer (*malloc) (gsize n_bytes);
3041 gpointer (*realloc) (gpointer mem,
3042 gsize n_bytes);
3043 void (*free) (gpointer mem);
3044
3045 gpointer (*calloc) (gsize n_blocks,
3046 gsize n_block_bytes);
3047 gpointer (*try_malloc) (gsize n_bytes);
3048 gpointer (*try_realloc) (gpointer mem,
3049 gsize n_bytes);
3050 };
3051 void g_mem_set_vtable (GMemVTable *vtable);
3052 gboolean g_mem_is_system_malloc (void);
3053
3054 extern gboolean g_mem_gc_friendly;
3055
3056
3057
3058 extern GMemVTable *glib_mem_profiler_table;
3059 void g_mem_profile (void);
3060
3061
3062
3063
3064 typedef struct _GAllocator GAllocator;
3065 typedef struct _GMemChunk GMemChunk;
3066 # 124 "/usr/include/glib-2.0/glib/gmem.h"
3067 GMemChunk* g_mem_chunk_new (const gchar *name,
3068 gint atom_size,
3069 gulong area_size,
3070 gint type);
3071 void g_mem_chunk_destroy (GMemChunk *mem_chunk);
3072 gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk);
3073 gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk);
3074 void g_mem_chunk_free (GMemChunk *mem_chunk,
3075 gpointer mem);
3076 void g_mem_chunk_clean (GMemChunk *mem_chunk);
3077 void g_mem_chunk_reset (GMemChunk *mem_chunk);
3078 void g_mem_chunk_print (GMemChunk *mem_chunk);
3079 void g_mem_chunk_info (void);
3080 void g_blow_chunks (void);
3081 GAllocator*g_allocator_new (const gchar *name,
3082 guint n_preallocs);
3083 void g_allocator_free (GAllocator *allocator);
3084
3085
3086
3087
3088
3089
3090 # 31 "/usr/include/glib-2.0/glib/glist.h" 2
3091
3092
3093
3094 typedef struct _GList GList;
3095
3096 struct _GList
3097 {
3098 gpointer data;
3099 GList *next;
3100 GList *prev;
3101 };
3102
3103
3104
3105 GList* g_list_alloc (void) __attribute__((warn_unused_result));
3106 void g_list_free (GList *list);
3107 void g_list_free_1 (GList *list);
3108
3109 GList* g_list_append (GList *list,
3110 gpointer data) __attribute__((warn_unused_result));
3111 GList* g_list_prepend (GList *list,
3112 gpointer data) __attribute__((warn_unused_result));
3113 GList* g_list_insert (GList *list,
3114 gpointer data,
3115 gint position) __attribute__((warn_unused_result));
3116 GList* g_list_insert_sorted (GList *list,
3117 gpointer data,
3118 GCompareFunc func) __attribute__((warn_unused_result));
3119 GList* g_list_insert_sorted_with_data (GList *list,
3120 gpointer data,
3121 GCompareDataFunc func,
3122 gpointer user_data) __attribute__((warn_unused_result));
3123 GList* g_list_insert_before (GList *list,
3124 GList *sibling,
3125 gpointer data) __attribute__((warn_unused_result));
3126 GList* g_list_concat (GList *list1,
3127 GList *list2) __attribute__((warn_unused_result));
3128 GList* g_list_remove (GList *list,
3129 gconstpointer data) __attribute__((warn_unused_result));
3130 GList* g_list_remove_all (GList *list,
3131 gconstpointer data) __attribute__((warn_unused_result));
3132 GList* g_list_remove_link (GList *list,
3133 GList *llink) __attribute__((warn_unused_result));
3134 GList* g_list_delete_link (GList *list,
3135 GList *link_) __attribute__((warn_unused_result));
3136 GList* g_list_reverse (GList *list) __attribute__((warn_unused_result));
3137 GList* g_list_copy (GList *list) __attribute__((warn_unused_result));
3138 GList* g_list_nth (GList *list,
3139 guint n);
3140 GList* g_list_nth_prev (GList *list,
3141 guint n);
3142 GList* g_list_find (GList *list,
3143 gconstpointer data);
3144 GList* g_list_find_custom (GList *list,
3145 gconstpointer data,
3146 GCompareFunc func);
3147 gint g_list_position (GList *list,
3148 GList *llink);
3149 gint g_list_index (GList *list,
3150 gconstpointer data);
3151 GList* g_list_last (GList *list);
3152 GList* g_list_first (GList *list);
3153 guint g_list_length (GList *list);
3154 void g_list_foreach (GList *list,
3155 GFunc func,
3156 gpointer user_data);
3157 GList* g_list_sort (GList *list,
3158 GCompareFunc compare_func) __attribute__((warn_unused_result));
3159 GList* g_list_sort_with_data (GList *list,
3160 GCompareDataFunc compare_func,
3161 gpointer user_data) __attribute__((warn_unused_result));
3162 gpointer g_list_nth_data (GList *list,
3163 guint n);
3164
3165
3166
3167
3168
3169
3170 void g_list_push_allocator (gpointer allocator);
3171 void g_list_pop_allocator (void);
3172
3173
3174 # 31 "/usr/include/glib-2.0/glib/gcache.h" 2
3175
3176
3177
3178 typedef struct _GCache GCache;
3179
3180 typedef gpointer (*GCacheNewFunc) (gpointer key);
3181 typedef gpointer (*GCacheDupFunc) (gpointer value);
3182 typedef void (*GCacheDestroyFunc) (gpointer value);
3183
3184
3185
3186 GCache* g_cache_new (GCacheNewFunc value_new_func,
3187 GCacheDestroyFunc value_destroy_func,
3188 GCacheDupFunc key_dup_func,
3189 GCacheDestroyFunc key_destroy_func,
3190 GHashFunc hash_key_func,
3191 GHashFunc hash_value_func,
3192 GEqualFunc key_equal_func);
3193 void g_cache_destroy (GCache *cache);
3194 gpointer g_cache_insert (GCache *cache,
3195 gpointer key);
3196 void g_cache_remove (GCache *cache,
3197 gconstpointer value);
3198 void g_cache_key_foreach (GCache *cache,
3199 GHFunc func,
3200 gpointer user_data);
3201
3202 void g_cache_value_foreach (GCache *cache,
3203 GHFunc func,
3204 gpointer user_data);
3205
3206
3207
3208 # 38 "/usr/include/glib-2.0/glib.h" 2
3209 # 1 "/usr/include/glib-2.0/glib/gcompletion.h" 1
3210 # 32 "/usr/include/glib-2.0/glib/gcompletion.h"
3211
3212
3213 typedef struct _GCompletion GCompletion;
3214
3215 typedef gchar* (*GCompletionFunc) (gpointer);
3216
3217
3218
3219
3220 typedef gint (*GCompletionStrncmpFunc) (const gchar *s1,
3221 const gchar *s2,
3222 gsize n);
3223
3224 struct _GCompletion
3225 {
3226 GList* items;
3227 GCompletionFunc func;
3228
3229 gchar* prefix;
3230 GList* cache;
3231 GCompletionStrncmpFunc strncmp_func;
3232 };
3233
3234 GCompletion* g_completion_new (GCompletionFunc func);
3235 void g_completion_add_items (GCompletion* cmp,
3236 GList* items);
3237 void g_completion_remove_items (GCompletion* cmp,
3238 GList* items);
3239 void g_completion_clear_items (GCompletion* cmp);
3240 GList* g_completion_complete (GCompletion* cmp,
3241 const gchar* prefix,
3242 gchar** new_prefix);
3243 GList* g_completion_complete_utf8 (GCompletion *cmp,
3244 const gchar* prefix,
3245 gchar** new_prefix);
3246 void g_completion_set_compare (GCompletion *cmp,
3247 GCompletionStrncmpFunc strncmp_func);
3248 void g_completion_free (GCompletion* cmp);
3249
3250
3251 # 39 "/usr/include/glib-2.0/glib.h" 2
3252 # 1 "/usr/include/glib-2.0/glib/gconvert.h" 1
3253 # 32 "/usr/include/glib-2.0/glib/gconvert.h"
3254
3255
3256 typedef enum
3257 {
3258 G_CONVERT_ERROR_NO_CONVERSION,
3259 G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
3260 G_CONVERT_ERROR_FAILED,
3261 G_CONVERT_ERROR_PARTIAL_INPUT,
3262 G_CONVERT_ERROR_BAD_URI,
3263 G_CONVERT_ERROR_NOT_ABSOLUTE_PATH
3264 } GConvertError;
3265
3266
3267 GQuark g_convert_error_quark (void);
3268
3269
3270
3271 typedef struct _GIConv *GIConv;
3272
3273 GIConv g_iconv_open (const gchar *to_codeset,
3274 const gchar *from_codeset);
3275 gsize g_iconv (GIConv converter,
3276 gchar **inbuf,
3277 gsize *inbytes_left,
3278 gchar **outbuf,
3279 gsize *outbytes_left);
3280 gint g_iconv_close (GIConv converter);
3281
3282
3283 gchar* g_convert (const gchar *str,
3284 gssize len,
3285 const gchar *to_codeset,
3286 const gchar *from_codeset,
3287 gsize *bytes_read,
3288 gsize *bytes_written,
3289 GError **error) __attribute__((__malloc__));
3290 gchar* g_convert_with_iconv (const gchar *str,
3291 gssize len,
3292 GIConv converter,
3293 gsize *bytes_read,
3294 gsize *bytes_written,
3295 GError **error) __attribute__((__malloc__));
3296 gchar* g_convert_with_fallback (const gchar *str,
3297 gssize len,
3298 const gchar *to_codeset,
3299 const gchar *from_codeset,
3300 gchar *fallback,
3301 gsize *bytes_read,
3302 gsize *bytes_written,
3303 GError **error) __attribute__((__malloc__));
3304
3305
3306
3307
3308 gchar* g_locale_to_utf8 (const gchar *opsysstring,
3309 gssize len,
3310 gsize *bytes_read,
3311 gsize *bytes_written,
3312 GError **error) __attribute__((__malloc__));
3313 gchar* g_locale_from_utf8 (const gchar *utf8string,
3314 gssize len,
3315 gsize *bytes_read,
3316 gsize *bytes_written,
3317 GError **error) __attribute__((__malloc__));
3318 # 107 "/usr/include/glib-2.0/glib/gconvert.h"
3319 gchar* g_filename_to_utf8 (const gchar *opsysstring,
3320 gssize len,
3321 gsize *bytes_read,
3322 gsize *bytes_written,
3323 GError **error) __attribute__((__malloc__));
3324 gchar* g_filename_from_utf8 (const gchar *utf8string,
3325 gssize len,
3326 gsize *bytes_read,
3327 gsize *bytes_written,
3328 GError **error) __attribute__((__malloc__));
3329
3330 gchar *g_filename_from_uri (const gchar *uri,
3331 gchar **hostname,
3332 GError **error) __attribute__((__malloc__));
3333
3334 gchar *g_filename_to_uri (const gchar *filename,
3335 const gchar *hostname,
3336 GError **error) __attribute__((__malloc__));
3337 gchar *g_filename_display_name (const gchar *filename) __attribute__((__malloc__));
3338 gboolean g_get_filename_charsets (const gchar ***charsets);
3339
3340 gchar *g_filename_display_basename (const gchar *filename) __attribute__((__malloc__));
3341
3342 gchar **g_uri_list_extract_uris (const gchar *uri_list) __attribute__((__malloc__));
3343
3344
3345 # 40 "/usr/include/glib-2.0/glib.h" 2
3346 # 1 "/usr/include/glib-2.0/glib/gdataset.h" 1
3347 # 32 "/usr/include/glib-2.0/glib/gdataset.h"
3348
3349
3350 typedef struct _GData GData;
3351
3352 typedef void (*GDataForeachFunc) (GQuark key_id,
3353 gpointer data,
3354 gpointer user_data);
3355
3356
3357
3358 void g_datalist_init (GData **datalist);
3359 void g_datalist_clear (GData **datalist);
3360 gpointer g_datalist_id_get_data (GData **datalist,
3361 GQuark key_id);
3362 void g_datalist_id_set_data_full (GData **datalist,
3363 GQuark key_id,
3364 gpointer data,
3365 GDestroyNotify destroy_func);
3366 gpointer g_datalist_id_remove_no_notify (GData **datalist,
3367 GQuark key_id);
3368 void g_datalist_foreach (GData **datalist,
3369 GDataForeachFunc func,
3370 gpointer user_data);
3371 # 65 "/usr/include/glib-2.0/glib/gdataset.h"
3372 void g_datalist_set_flags (GData **datalist,
3373 guint flags);
3374 void g_datalist_unset_flags (GData **datalist,
3375 guint flags);
3376 guint g_datalist_get_flags (GData **datalist);
3377 # 89 "/usr/include/glib-2.0/glib/gdataset.h"
3378 void g_dataset_destroy (gconstpointer dataset_location);
3379 gpointer g_dataset_id_get_data (gconstpointer dataset_location,
3380 GQuark key_id);
3381 void g_dataset_id_set_data_full (gconstpointer dataset_location,
3382 GQuark key_id,
3383 gpointer data,
3384 GDestroyNotify destroy_func);
3385 gpointer g_dataset_id_remove_no_notify (gconstpointer dataset_location,
3386 GQuark key_id);
3387 void g_dataset_foreach (gconstpointer dataset_location,
3388 GDataForeachFunc func,
3389 gpointer user_data);
3390 # 116 "/usr/include/glib-2.0/glib/gdataset.h"
3391
3392 # 41 "/usr/include/glib-2.0/glib.h" 2
3393 # 1 "/usr/include/glib-2.0/glib/gdate.h" 1
3394 # 35 "/usr/include/glib-2.0/glib/gdate.h"
3395
3396 # 46 "/usr/include/glib-2.0/glib/gdate.h"
3397 typedef gint32 GTime;
3398 typedef guint16 GDateYear;
3399 typedef guint8 GDateDay;
3400 typedef struct _GDate GDate;
3401
3402
3403 typedef enum
3404 {
3405 G_DATE_DAY = 0,
3406 G_DATE_MONTH = 1,
3407 G_DATE_YEAR = 2
3408 } GDateDMY;
3409
3410
3411 typedef enum
3412 {
3413 G_DATE_BAD_WEEKDAY = 0,
3414 G_DATE_MONDAY = 1,
3415 G_DATE_TUESDAY = 2,
3416 G_DATE_WEDNESDAY = 3,
3417 G_DATE_THURSDAY = 4,
3418 G_DATE_FRIDAY = 5,
3419 G_DATE_SATURDAY = 6,
3420 G_DATE_SUNDAY = 7
3421 } GDateWeekday;
3422 typedef enum
3423 {
3424 G_DATE_BAD_MONTH = 0,
3425 G_DATE_JANUARY = 1,
3426 G_DATE_FEBRUARY = 2,
3427 G_DATE_MARCH = 3,
3428 G_DATE_APRIL = 4,
3429 G_DATE_MAY = 5,
3430 G_DATE_JUNE = 6,
3431 G_DATE_JULY = 7,
3432 G_DATE_AUGUST = 8,
3433 G_DATE_SEPTEMBER = 9,
3434 G_DATE_OCTOBER = 10,
3435 G_DATE_NOVEMBER = 11,
3436 G_DATE_DECEMBER = 12
3437 } GDateMonth;
3438 # 97 "/usr/include/glib-2.0/glib/gdate.h"
3439 struct _GDate
3440 {
3441 guint julian_days : 32;
3442
3443
3444
3445
3446
3447 guint julian : 1;
3448 guint dmy : 1;
3449
3450
3451 guint day : 6;
3452 guint month : 4;
3453 guint year : 16;
3454 };
3455
3456
3457
3458
3459
3460 GDate* g_date_new (void);
3461 GDate* g_date_new_dmy (GDateDay day,
3462 GDateMonth month,
3463 GDateYear year);
3464 GDate* g_date_new_julian (guint32 julian_day);
3465 void g_date_free (GDate *date);
3466
3467
3468
3469
3470
3471
3472 gboolean g_date_valid (const GDate *date);
3473 gboolean g_date_valid_day (GDateDay day) __attribute__((__const__));
3474 gboolean g_date_valid_month (GDateMonth month) __attribute__((__const__));
3475 gboolean g_date_valid_year (GDateYear year) __attribute__((__const__));
3476 gboolean g_date_valid_weekday (GDateWeekday weekday) __attribute__((__const__));
3477 gboolean g_date_valid_julian (guint32 julian_date) __attribute__((__const__));
3478 gboolean g_date_valid_dmy (GDateDay day,
3479 GDateMonth month,
3480 GDateYear year) __attribute__((__const__));
3481
3482 GDateWeekday g_date_get_weekday (const GDate *date);
3483 GDateMonth g_date_get_month (const GDate *date);
3484 GDateYear g_date_get_year (const GDate *date);
3485 GDateDay g_date_get_day (const GDate *date);
3486 guint32 g_date_get_julian (const GDate *date);
3487 guint g_date_get_day_of_year (const GDate *date);
3488
3489
3490
3491
3492
3493
3494 guint g_date_get_monday_week_of_year (const GDate *date);
3495 guint g_date_get_sunday_week_of_year (const GDate *date);
3496 guint g_date_get_iso8601_week_of_year (const GDate *date);
3497
3498
3499
3500
3501
3502 void g_date_clear (GDate *date,
3503 guint n_dates);
3504
3505
3506
3507
3508
3509 void g_date_set_parse (GDate *date,
3510 const gchar *str);
3511 void g_date_set_time_t (GDate *date,
3512 time_t timet);
3513 void g_date_set_time_val (GDate *date,
3514 GTimeVal *timeval);
3515
3516 void g_date_set_time (GDate *date,
3517 GTime time_);
3518
3519 void g_date_set_month (GDate *date,
3520 GDateMonth month);
3521 void g_date_set_day (GDate *date,
3522 GDateDay day);
3523 void g_date_set_year (GDate *date,
3524 GDateYear year);
3525 void g_date_set_dmy (GDate *date,
3526 GDateDay day,
3527 GDateMonth month,
3528 GDateYear y);
3529 void g_date_set_julian (GDate *date,
3530 guint32 julian_date);
3531 gboolean g_date_is_first_of_month (const GDate *date);
3532 gboolean g_date_is_last_of_month (const GDate *date);
3533
3534
3535 void g_date_add_days (GDate *date,
3536 guint n_days);
3537 void g_date_subtract_days (GDate *date,
3538 guint n_days);
3539
3540
3541 void g_date_add_months (GDate *date,
3542 guint n_months);
3543 void g_date_subtract_months (GDate *date,
3544 guint n_months);
3545
3546
3547 void g_date_add_years (GDate *date,
3548 guint n_years);
3549 void g_date_subtract_years (GDate *date,
3550 guint n_years);
3551 gboolean g_date_is_leap_year (GDateYear year) __attribute__((__const__));
3552 guint8 g_date_get_days_in_month (GDateMonth month,
3553 GDateYear year) __attribute__((__const__));
3554 guint8 g_date_get_monday_weeks_in_year (GDateYear year) __attribute__((__const__));
3555 guint8 g_date_get_sunday_weeks_in_year (GDateYear year) __attribute__((__const__));
3556
3557
3558
3559 gint g_date_days_between (const GDate *date1,
3560 const GDate *date2);
3561
3562
3563 gint g_date_compare (const GDate *lhs,
3564 const GDate *rhs);
3565 void g_date_to_struct_tm (const GDate *date,
3566 struct tm *tm);
3567
3568 void g_date_clamp (GDate *date,
3569 const GDate *min_date,
3570 const GDate *max_date);
3571
3572
3573 void g_date_order (GDate *date1, GDate *date2);
3574
3575
3576
3577
3578 gsize g_date_strftime (gchar *s,
3579 gsize slen,
3580 const gchar *format,
3581 const GDate *date);
3582 # 257 "/usr/include/glib-2.0/glib/gdate.h"
3583
3584 # 42 "/usr/include/glib-2.0/glib.h" 2
3585 # 1 "/usr/include/glib-2.0/glib/gdir.h" 1
3586 # 28 "/usr/include/glib-2.0/glib/gdir.h"
3587
3588
3589 typedef struct _GDir GDir;
3590
3591
3592
3593
3594
3595
3596
3597 GDir * g_dir_open (const gchar *path,
3598 guint flags,
3599 GError **error);
3600 const gchar *g_dir_read_name (GDir *dir);
3601 void g_dir_rewind (GDir *dir);
3602 void g_dir_close (GDir *dir);
3603
3604
3605 # 43 "/usr/include/glib-2.0/glib.h" 2
3606
3607 # 1 "/usr/include/glib-2.0/glib/gfileutils.h" 1
3608 # 26 "/usr/include/glib-2.0/glib/gfileutils.h"
3609
3610
3611
3612
3613 typedef enum
3614 {
3615 G_FILE_ERROR_EXIST,
3616 G_FILE_ERROR_ISDIR,
3617 G_FILE_ERROR_ACCES,
3618 G_FILE_ERROR_NAMETOOLONG,
3619 G_FILE_ERROR_NOENT,
3620 G_FILE_ERROR_NOTDIR,
3621 G_FILE_ERROR_NXIO,
3622 G_FILE_ERROR_NODEV,
3623 G_FILE_ERROR_ROFS,
3624 G_FILE_ERROR_TXTBSY,
3625 G_FILE_ERROR_FAULT,
3626 G_FILE_ERROR_LOOP,
3627 G_FILE_ERROR_NOSPC,
3628 G_FILE_ERROR_NOMEM,
3629 G_FILE_ERROR_MFILE,
3630 G_FILE_ERROR_NFILE,
3631 G_FILE_ERROR_BADF,
3632 G_FILE_ERROR_INVAL,
3633 G_FILE_ERROR_PIPE,
3634 G_FILE_ERROR_AGAIN,
3635 G_FILE_ERROR_INTR,
3636 G_FILE_ERROR_IO,
3637 G_FILE_ERROR_PERM,
3638 G_FILE_ERROR_NOSYS,
3639 G_FILE_ERROR_FAILED
3640 } GFileError;
3641
3642
3643
3644
3645
3646 typedef enum
3647 {
3648 G_FILE_TEST_IS_REGULAR = 1 << 0,
3649 G_FILE_TEST_IS_SYMLINK = 1 << 1,
3650 G_FILE_TEST_IS_DIR = 1 << 2,
3651 G_FILE_TEST_IS_EXECUTABLE = 1 << 3,
3652 G_FILE_TEST_EXISTS = 1 << 4
3653 } GFileTest;
3654
3655 GQuark g_file_error_quark (void);
3656
3657 GFileError g_file_error_from_errno (gint err_no);
3658 # 83 "/usr/include/glib-2.0/glib/gfileutils.h"
3659 gboolean g_file_test (const gchar *filename,
3660 GFileTest test);
3661 gboolean g_file_get_contents (const gchar *filename,
3662 gchar **contents,
3663 gsize *length,
3664 GError **error);
3665 gboolean g_file_set_contents (const gchar *filename,
3666 const gchar *contents,
3667 gssize length,
3668 GError **error);
3669 gchar *g_file_read_link (const gchar *filename,
3670 GError **error);
3671
3672
3673 gint g_mkstemp (gchar *tmpl);
3674
3675
3676 gint g_file_open_tmp (const gchar *tmpl,
3677 gchar **name_used,
3678 GError **error);
3679
3680 gchar *g_build_path (const gchar *separator,
3681 const gchar *first_element,
3682 ...) __attribute__((__malloc__)) __attribute__((__sentinel__));
3683 gchar *g_build_pathv (const gchar *separator,
3684 gchar **args) __attribute__((__malloc__));
3685
3686 gchar *g_build_filename (const gchar *first_element,
3687 ...) __attribute__((__malloc__)) __attribute__((__sentinel__));
3688 gchar *g_build_filenamev (gchar **args) __attribute__((__malloc__));
3689
3690 int g_mkdir_with_parents (const gchar *pathname,
3691 int mode);
3692
3693
3694 # 45 "/usr/include/glib-2.0/glib.h" 2
3695 # 1 "/usr/include/glib-2.0/glib/ghash.h" 1
3696 # 33 "/usr/include/glib-2.0/glib/ghash.h"
3697
3698
3699 typedef struct _GHashTable GHashTable;
3700
3701 typedef gboolean (*GHRFunc) (gpointer key,
3702 gpointer value,
3703 gpointer user_data);
3704
3705
3706
3707 GHashTable* g_hash_table_new (GHashFunc hash_func,
3708 GEqualFunc key_equal_func);
3709 GHashTable* g_hash_table_new_full (GHashFunc hash_func,
3710 GEqualFunc key_equal_func,
3711 GDestroyNotify key_destroy_func,
3712 GDestroyNotify value_destroy_func);
3713 void g_hash_table_destroy (GHashTable *hash_table);
3714 void g_hash_table_insert (GHashTable *hash_table,
3715 gpointer key,
3716 gpointer value);
3717 void g_hash_table_replace (GHashTable *hash_table,
3718 gpointer key,
3719 gpointer value);
3720 gboolean g_hash_table_remove (GHashTable *hash_table,
3721 gconstpointer key);
3722 void g_hash_table_remove_all (GHashTable *hash_table);
3723 gboolean g_hash_table_steal (GHashTable *hash_table,
3724 gconstpointer key);
3725 void g_hash_table_steal_all (GHashTable *hash_table);
3726 gpointer g_hash_table_lookup (GHashTable *hash_table,
3727 gconstpointer key);
3728 gboolean g_hash_table_lookup_extended (GHashTable *hash_table,
3729 gconstpointer lookup_key,
3730 gpointer *orig_key,
3731 gpointer *value);
3732 void g_hash_table_foreach (GHashTable *hash_table,
3733 GHFunc func,
3734 gpointer user_data);
3735 gpointer g_hash_table_find (GHashTable *hash_table,
3736 GHRFunc predicate,
3737 gpointer user_data);
3738 guint g_hash_table_foreach_remove (GHashTable *hash_table,
3739 GHRFunc func,
3740 gpointer user_data);
3741 guint g_hash_table_foreach_steal (GHashTable *hash_table,
3742 GHRFunc func,
3743 gpointer user_data);
3744 guint g_hash_table_size (GHashTable *hash_table);
3745 GList * g_hash_table_get_keys (GHashTable *hash_table);
3746 GList * g_hash_table_get_values (GHashTable *hash_table);
3747
3748
3749 GHashTable* g_hash_table_ref (GHashTable *hash_table);
3750 void g_hash_table_unref (GHashTable *hash_table);
3751 # 99 "/usr/include/glib-2.0/glib/ghash.h"
3752 gboolean g_str_equal (gconstpointer v1,
3753 gconstpointer v2);
3754 guint g_str_hash (gconstpointer v);
3755
3756 gboolean g_int_equal (gconstpointer v1,
3757 gconstpointer v2);
3758 guint g_int_hash (gconstpointer v);
3759
3760
3761
3762
3763
3764
3765
3766 guint g_direct_hash (gconstpointer v) __attribute__((__const__));
3767 gboolean g_direct_equal (gconstpointer v1,
3768 gconstpointer v2) __attribute__((__const__));
3769
3770
3771 # 46 "/usr/include/glib-2.0/glib.h" 2
3772 # 1 "/usr/include/glib-2.0/glib/ghook.h" 1
3773 # 32 "/usr/include/glib-2.0/glib/ghook.h"
3774
3775
3776
3777
3778 typedef struct _GHook GHook;
3779 typedef struct _GHookList GHookList;
3780
3781 typedef gint (*GHookCompareFunc) (GHook *new_hook,
3782 GHook *sibling);
3783 typedef gboolean (*GHookFindFunc) (GHook *hook,
3784 gpointer data);
3785 typedef void (*GHookMarshaller) (GHook *hook,
3786 gpointer marshal_data);
3787 typedef gboolean (*GHookCheckMarshaller) (GHook *hook,
3788 gpointer marshal_data);
3789 typedef void (*GHookFunc) (gpointer data);
3790 typedef gboolean (*GHookCheckFunc) (gpointer data);
3791 typedef void (*GHookFinalizeFunc) (GHookList *hook_list,
3792 GHook *hook);
3793 typedef enum
3794 {
3795 G_HOOK_FLAG_ACTIVE = 1 << 0,
3796 G_HOOK_FLAG_IN_CALL = 1 << 1,
3797 G_HOOK_FLAG_MASK = 0x0f
3798 } GHookFlagMask;
3799
3800
3801
3802
3803 struct _GHookList
3804 {
3805 gulong seq_id;
3806 guint hook_size : 16;
3807 guint is_setup : 1;
3808 GHook *hooks;
3809 gpointer dummy3;
3810 GHookFinalizeFunc finalize_hook;
3811 gpointer dummy[2];
3812 };
3813 struct _GHook
3814 {
3815 gpointer data;
3816 GHook *next;
3817 GHook *prev;
3818 guint ref_count;
3819 gulong hook_id;
3820 guint flags;
3821 gpointer func;
3822 GDestroyNotify destroy;
3823 };
3824 # 102 "/usr/include/glib-2.0/glib/ghook.h"
3825 void g_hook_list_init (GHookList *hook_list,
3826 guint hook_size);
3827 void g_hook_list_clear (GHookList *hook_list);
3828 GHook* g_hook_alloc (GHookList *hook_list);
3829 void g_hook_free (GHookList *hook_list,
3830 GHook *hook);
3831 GHook * g_hook_ref (GHookList *hook_list,
3832 GHook *hook);
3833 void g_hook_unref (GHookList *hook_list,
3834 GHook *hook);
3835 gboolean g_hook_destroy (GHookList *hook_list,
3836 gulong hook_id);
3837 void g_hook_destroy_link (GHookList *hook_list,
3838 GHook *hook);
3839 void g_hook_prepend (GHookList *hook_list,
3840 GHook *hook);
3841 void g_hook_insert_before (GHookList *hook_list,
3842 GHook *sibling,
3843 GHook *hook);
3844 void g_hook_insert_sorted (GHookList *hook_list,
3845 GHook *hook,
3846 GHookCompareFunc func);
3847 GHook* g_hook_get (GHookList *hook_list,
3848 gulong hook_id);
3849 GHook* g_hook_find (GHookList *hook_list,
3850 gboolean need_valids,
3851 GHookFindFunc func,
3852 gpointer data);
3853 GHook* g_hook_find_data (GHookList *hook_list,
3854 gboolean need_valids,
3855 gpointer data);
3856 GHook* g_hook_find_func (GHookList *hook_list,
3857 gboolean need_valids,
3858 gpointer func);
3859 GHook* g_hook_find_func_data (GHookList *hook_list,
3860 gboolean need_valids,
3861 gpointer func,
3862 gpointer data);
3863
3864 GHook* g_hook_first_valid (GHookList *hook_list,
3865 gboolean may_be_in_call);
3866
3867
3868
3869 GHook* g_hook_next_valid (GHookList *hook_list,
3870 GHook *hook,
3871 gboolean may_be_in_call);
3872
3873 gint g_hook_compare_ids (GHook *new_hook,
3874 GHook *sibling);
3875
3876
3877
3878
3879
3880 void g_hook_list_invoke (GHookList *hook_list,
3881 gboolean may_recurse);
3882
3883
3884
3885 void g_hook_list_invoke_check (GHookList *hook_list,
3886 gboolean may_recurse);
3887
3888
3889 void g_hook_list_marshal (GHookList *hook_list,
3890 gboolean may_recurse,
3891 GHookMarshaller marshaller,
3892 gpointer marshal_data);
3893 void g_hook_list_marshal_check (GHookList *hook_list,
3894 gboolean may_recurse,
3895 GHookCheckMarshaller marshaller,
3896 gpointer marshal_data);
3897
3898
3899 # 47 "/usr/include/glib-2.0/glib.h" 2
3900 # 1 "/usr/include/glib-2.0/glib/giochannel.h" 1
3901 # 31 "/usr/include/glib-2.0/glib/giochannel.h"
3902 # 1 "/usr/include/glib-2.0/glib/gmain.h" 1
3903 # 23 "/usr/include/glib-2.0/glib/gmain.h"
3904 # 1 "/usr/include/glib-2.0/glib/gslist.h" 1
3905 # 32 "/usr/include/glib-2.0/glib/gslist.h"
3906
3907
3908 typedef struct _GSList GSList;
3909
3910 struct _GSList
3911 {
3912 gpointer data;
3913 GSList *next;
3914 };
3915
3916
3917
3918 GSList* g_slist_alloc (void) __attribute__((warn_unused_result));
3919 void g_slist_free (GSList *list);
3920 void g_slist_free_1 (GSList *list);
3921
3922 GSList* g_slist_append (GSList *list,
3923 gpointer data) __attribute__((warn_unused_result));
3924 GSList* g_slist_prepend (GSList *list,
3925 gpointer data) __attribute__((warn_unused_result));
3926 GSList* g_slist_insert (GSList *list,
3927 gpointer data,
3928 gint position) __attribute__((warn_unused_result));
3929 GSList* g_slist_insert_sorted (GSList *list,
3930 gpointer data,
3931 GCompareFunc func) __attribute__((warn_unused_result));
3932 GSList* g_slist_insert_sorted_with_data (GSList *list,
3933 gpointer data,
3934 GCompareDataFunc func,
3935 gpointer user_data) __attribute__((warn_unused_result));
3936 GSList* g_slist_insert_before (GSList *slist,
3937 GSList *sibling,
3938 gpointer data) __attribute__((warn_unused_result));
3939 GSList* g_slist_concat (GSList *list1,
3940 GSList *list2) __attribute__((warn_unused_result));
3941 GSList* g_slist_remove (GSList *list,
3942 gconstpointer data) __attribute__((warn_unused_result));
3943 GSList* g_slist_remove_all (GSList *list,
3944 gconstpointer data) __attribute__((warn_unused_result));
3945 GSList* g_slist_remove_link (GSList *list,
3946 GSList *link_) __attribute__((warn_unused_result));
3947 GSList* g_slist_delete_link (GSList *list,
3948 GSList *link_) __attribute__((warn_unused_result));
3949 GSList* g_slist_reverse (GSList *list) __attribute__((warn_unused_result));
3950 GSList* g_slist_copy (GSList *list) __attribute__((warn_unused_result));
3951 GSList* g_slist_nth (GSList *list,
3952 guint n);
3953 GSList* g_slist_find (GSList *list,
3954 gconstpointer data);
3955 GSList* g_slist_find_custom (GSList *list,
3956 gconstpointer data,
3957 GCompareFunc func);
3958 gint g_slist_position (GSList *list,
3959 GSList *llink);
3960 gint g_slist_index (GSList *list,
3961 gconstpointer data);
3962 GSList* g_slist_last (GSList *list);
3963 guint g_slist_length (GSList *list);
3964 void g_slist_foreach (GSList *list,
3965 GFunc func,
3966 gpointer user_data);
3967 GSList* g_slist_sort (GSList *list,
3968 GCompareFunc compare_func) __attribute__((warn_unused_result));
3969 GSList* g_slist_sort_with_data (GSList *list,
3970 GCompareDataFunc compare_func,
3971 gpointer user_data) __attribute__((warn_unused_result));
3972 gpointer g_slist_nth_data (GSList *list,
3973 guint n);
3974
3975
3976
3977
3978 void g_slist_push_allocator (gpointer dummy);
3979 void g_slist_pop_allocator (void);
3980
3981
3982 # 24 "/usr/include/glib-2.0/glib/gmain.h" 2
3983
3984
3985
3986
3987 typedef struct _GMainContext GMainContext;
3988 typedef struct _GMainLoop GMainLoop;
3989 typedef struct _GSource GSource;
3990 typedef struct _GSourceCallbackFuncs GSourceCallbackFuncs;
3991 typedef struct _GSourceFuncs GSourceFuncs;
3992
3993 typedef gboolean (*GSourceFunc) (gpointer data);
3994 typedef void (*GChildWatchFunc) (GPid pid,
3995 gint status,
3996 gpointer data);
3997 struct _GSource
3998 {
3999
4000 gpointer callback_data;
4001 GSourceCallbackFuncs *callback_funcs;
4002
4003 GSourceFuncs *source_funcs;
4004 guint ref_count;
4005
4006 GMainContext *context;
4007
4008 gint priority;
4009 guint flags;
4010 guint source_id;
4011
4012 GSList *poll_fds;
4013
4014 GSource *prev;
4015 GSource *next;
4016
4017 gpointer reserved1;
4018 gpointer reserved2;
4019 };
4020
4021 struct _GSourceCallbackFuncs
4022 {
4023 void (*ref) (gpointer cb_data);
4024 void (*unref) (gpointer cb_data);
4025 void (*get) (gpointer cb_data,
4026 GSource *source,
4027 GSourceFunc *func,
4028 gpointer *data);
4029 };
4030
4031 typedef void (*GSourceDummyMarshal) (void);
4032
4033 struct _GSourceFuncs
4034 {
4035 gboolean (*prepare) (GSource *source,
4036 gint *timeout_);
4037 gboolean (*check) (GSource *source);
4038 gboolean (*dispatch) (GSource *source,
4039 GSourceFunc callback,
4040 gpointer user_data);
4041 void (*finalize) (GSource *source);
4042
4043
4044 GSourceFunc closure_callback;
4045 GSourceDummyMarshal closure_marshal;
4046 };
4047 # 116 "/usr/include/glib-2.0/glib/gmain.h"
4048 typedef struct _GPollFD GPollFD;
4049 typedef gint (*GPollFunc) (GPollFD *ufds,
4050 guint nfsd,
4051 gint timeout_);
4052
4053 struct _GPollFD
4054 {
4055
4056
4057
4058 gint fd;
4059
4060 gushort events;
4061 gushort revents;
4062 };
4063 # 142 "/usr/include/glib-2.0/glib/gmain.h"
4064 GMainContext *g_main_context_new (void);
4065 GMainContext *g_main_context_ref (GMainContext *context);
4066 void g_main_context_unref (GMainContext *context);
4067 GMainContext *g_main_context_default (void);
4068
4069 gboolean g_main_context_iteration (GMainContext *context,
4070 gboolean may_block);
4071 gboolean g_main_context_pending (GMainContext *context);
4072
4073
4074
4075 GSource *g_main_context_find_source_by_id (GMainContext *context,
4076 guint source_id);
4077 GSource *g_main_context_find_source_by_user_data (GMainContext *context,
4078 gpointer user_data);
4079 GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context,
4080 GSourceFuncs *funcs,
4081 gpointer user_data);
4082
4083
4084
4085 void g_main_context_wakeup (GMainContext *context);
4086 gboolean g_main_context_acquire (GMainContext *context);
4087 void g_main_context_release (GMainContext *context);
4088 gboolean g_main_context_is_owner (GMainContext *context);
4089 gboolean g_main_context_wait (GMainContext *context,
4090 GCond *cond,
4091 GMutex *mutex);
4092
4093 gboolean g_main_context_prepare (GMainContext *context,
4094 gint *priority);
4095 gint g_main_context_query (GMainContext *context,
4096 gint max_priority,
4097 gint *timeout_,
4098 GPollFD *fds,
4099 gint n_fds);
4100 gint g_main_context_check (GMainContext *context,
4101 gint max_priority,
4102 GPollFD *fds,
4103 gint n_fds);
4104 void g_main_context_dispatch (GMainContext *context);
4105
4106 void g_main_context_set_poll_func (GMainContext *context,
4107 GPollFunc func);
4108 GPollFunc g_main_context_get_poll_func (GMainContext *context);
4109
4110
4111
4112 void g_main_context_add_poll (GMainContext *context,
4113 GPollFD *fd,
4114 gint priority);
4115 void g_main_context_remove_poll (GMainContext *context,
4116 GPollFD *fd);
4117
4118 gint g_main_depth (void);
4119 GSource *g_main_current_source (void);
4120
4121
4122
4123
4124 GMainLoop *g_main_loop_new (GMainContext *context,
4125 gboolean is_running);
4126 void g_main_loop_run (GMainLoop *loop);
4127 void g_main_loop_quit (GMainLoop *loop);
4128 GMainLoop *g_main_loop_ref (GMainLoop *loop);
4129 void g_main_loop_unref (GMainLoop *loop);
4130 gboolean g_main_loop_is_running (GMainLoop *loop);
4131 GMainContext *g_main_loop_get_context (GMainLoop *loop);
4132
4133
4134
4135 GSource *g_source_new (GSourceFuncs *source_funcs,
4136 guint struct_size);
4137 GSource *g_source_ref (GSource *source);
4138 void g_source_unref (GSource *source);
4139
4140 guint g_source_attach (GSource *source,
4141 GMainContext *context);
4142 void g_source_destroy (GSource *source);
4143
4144 void g_source_set_priority (GSource *source,
4145 gint priority);
4146 gint g_source_get_priority (GSource *source);
4147 void g_source_set_can_recurse (GSource *source,
4148 gboolean can_recurse);
4149 gboolean g_source_get_can_recurse (GSource *source);
4150 guint g_source_get_id (GSource *source);
4151
4152 GMainContext *g_source_get_context (GSource *source);
4153
4154 void g_source_set_callback (GSource *source,
4155 GSourceFunc func,
4156 gpointer data,
4157 GDestroyNotify notify);
4158
4159 void g_source_set_funcs (GSource *source,
4160 GSourceFuncs *funcs);
4161 gboolean g_source_is_destroyed (GSource *source);
4162
4163
4164 void g_source_set_callback_indirect (GSource *source,
4165 gpointer callback_data,
4166 GSourceCallbackFuncs *callback_funcs);
4167
4168 void g_source_add_poll (GSource *source,
4169 GPollFD *fd);
4170 void g_source_remove_poll (GSource *source,
4171 GPollFD *fd);
4172
4173 void g_source_get_current_time (GSource *source,
4174 GTimeVal *timeval);
4175
4176
4177
4178
4179
4180
4181
4182 GSource *g_idle_source_new (void);
4183 GSource *g_child_watch_source_new (GPid pid);
4184 GSource *g_timeout_source_new (guint interval);
4185 GSource *g_timeout_source_new_seconds (guint interval);
4186
4187
4188
4189 void g_get_current_time (GTimeVal *result);
4190 # 292 "/usr/include/glib-2.0/glib/gmain.h"
4191 gboolean g_source_remove (guint tag);
4192 gboolean g_source_remove_by_user_data (gpointer user_data);
4193 gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
4194 gpointer user_data);
4195
4196
4197 guint g_timeout_add_full (gint priority,
4198 guint interval,
4199 GSourceFunc function,
4200 gpointer data,
4201 GDestroyNotify notify);
4202 guint g_timeout_add (guint interval,
4203 GSourceFunc function,
4204 gpointer data);
4205 guint g_timeout_add_seconds_full (gint priority,
4206 guint interval,
4207 GSourceFunc function,
4208 gpointer data,
4209 GDestroyNotify notify);
4210 guint g_timeout_add_seconds (guint interval,
4211 GSourceFunc function,
4212 gpointer data);
4213 guint g_child_watch_add_full (gint priority,
4214 GPid pid,
4215 GChildWatchFunc function,
4216 gpointer data,
4217 GDestroyNotify notify);
4218 guint g_child_watch_add (GPid pid,
4219 GChildWatchFunc function,
4220 gpointer data);
4221 guint g_idle_add (GSourceFunc function,
4222 gpointer data);
4223 guint g_idle_add_full (gint priority,
4224 GSourceFunc function,
4225 gpointer data,
4226 GDestroyNotify notify);
4227 gboolean g_idle_remove_by_data (gpointer data);
4228
4229
4230 extern GSourceFuncs g_timeout_funcs;
4231 extern GSourceFuncs g_child_watch_funcs;
4232 extern GSourceFuncs g_idle_funcs;
4233
4234
4235 # 32 "/usr/include/glib-2.0/glib/giochannel.h" 2
4236 # 1 "/usr/include/glib-2.0/glib/gstring.h" 1
4237 # 31 "/usr/include/glib-2.0/glib/gstring.h"
4238 # 1 "/usr/include/glib-2.0/glib/gunicode.h" 1
4239 # 28 "/usr/include/glib-2.0/glib/gunicode.h"
4240
4241
4242 typedef guint32 gunichar;
4243 typedef guint16 gunichar2;
4244
4245
4246
4247
4248 typedef enum
4249 {
4250 G_UNICODE_CONTROL,
4251 G_UNICODE_FORMAT,
4252 G_UNICODE_UNASSIGNED,
4253 G_UNICODE_PRIVATE_USE,
4254 G_UNICODE_SURROGATE,
4255 G_UNICODE_LOWERCASE_LETTER,
4256 G_UNICODE_MODIFIER_LETTER,
4257 G_UNICODE_OTHER_LETTER,
4258 G_UNICODE_TITLECASE_LETTER,
4259 G_UNICODE_UPPERCASE_LETTER,
4260 G_UNICODE_COMBINING_MARK,
4261 G_UNICODE_ENCLOSING_MARK,
4262 G_UNICODE_NON_SPACING_MARK,
4263 G_UNICODE_DECIMAL_NUMBER,
4264 G_UNICODE_LETTER_NUMBER,
4265 G_UNICODE_OTHER_NUMBER,
4266 G_UNICODE_CONNECT_PUNCTUATION,
4267 G_UNICODE_DASH_PUNCTUATION,
4268 G_UNICODE_CLOSE_PUNCTUATION,
4269 G_UNICODE_FINAL_PUNCTUATION,
4270 G_UNICODE_INITIAL_PUNCTUATION,
4271 G_UNICODE_OTHER_PUNCTUATION,
4272 G_UNICODE_OPEN_PUNCTUATION,
4273 G_UNICODE_CURRENCY_SYMBOL,
4274 G_UNICODE_MODIFIER_SYMBOL,
4275 G_UNICODE_MATH_SYMBOL,
4276 G_UNICODE_OTHER_SYMBOL,
4277 G_UNICODE_LINE_SEPARATOR,
4278 G_UNICODE_PARAGRAPH_SEPARATOR,
4279 G_UNICODE_SPACE_SEPARATOR
4280 } GUnicodeType;
4281
4282
4283
4284
4285
4286
4287 typedef enum
4288 {
4289 G_UNICODE_BREAK_MANDATORY,
4290 G_UNICODE_BREAK_CARRIAGE_RETURN,
4291 G_UNICODE_BREAK_LINE_FEED,
4292 G_UNICODE_BREAK_COMBINING_MARK,
4293 G_UNICODE_BREAK_SURROGATE,
4294 G_UNICODE_BREAK_ZERO_WIDTH_SPACE,
4295 G_UNICODE_BREAK_INSEPARABLE,
4296 G_UNICODE_BREAK_NON_BREAKING_GLUE,
4297 G_UNICODE_BREAK_CONTINGENT,
4298 G_UNICODE_BREAK_SPACE,
4299 G_UNICODE_BREAK_AFTER,
4300 G_UNICODE_BREAK_BEFORE,
4301 G_UNICODE_BREAK_BEFORE_AND_AFTER,
4302 G_UNICODE_BREAK_HYPHEN,
4303 G_UNICODE_BREAK_NON_STARTER,
4304 G_UNICODE_BREAK_OPEN_PUNCTUATION,
4305 G_UNICODE_BREAK_CLOSE_PUNCTUATION,
4306 G_UNICODE_BREAK_QUOTATION,
4307 G_UNICODE_BREAK_EXCLAMATION,
4308 G_UNICODE_BREAK_IDEOGRAPHIC,
4309 G_UNICODE_BREAK_NUMERIC,
4310 G_UNICODE_BREAK_INFIX_SEPARATOR,
4311 G_UNICODE_BREAK_SYMBOL,
4312 G_UNICODE_BREAK_ALPHABETIC,
4313 G_UNICODE_BREAK_PREFIX,
4314 G_UNICODE_BREAK_POSTFIX,
4315 G_UNICODE_BREAK_COMPLEX_CONTEXT,
4316 G_UNICODE_BREAK_AMBIGUOUS,
4317 G_UNICODE_BREAK_UNKNOWN,
4318 G_UNICODE_BREAK_NEXT_LINE,
4319 G_UNICODE_BREAK_WORD_JOINER,
4320 G_UNICODE_BREAK_HANGUL_L_JAMO,
4321 G_UNICODE_BREAK_HANGUL_V_JAMO,
4322 G_UNICODE_BREAK_HANGUL_T_JAMO,
4323 G_UNICODE_BREAK_HANGUL_LV_SYLLABLE,
4324 G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE
4325 } GUnicodeBreakType;
4326
4327 typedef enum
4328 {
4329 G_UNICODE_SCRIPT_INVALID_CODE = -1,
4330 G_UNICODE_SCRIPT_COMMON = 0,
4331 G_UNICODE_SCRIPT_INHERITED,
4332 G_UNICODE_SCRIPT_ARABIC,
4333 G_UNICODE_SCRIPT_ARMENIAN,
4334 G_UNICODE_SCRIPT_BENGALI,
4335 G_UNICODE_SCRIPT_BOPOMOFO,
4336 G_UNICODE_SCRIPT_CHEROKEE,
4337 G_UNICODE_SCRIPT_COPTIC,
4338 G_UNICODE_SCRIPT_CYRILLIC,
4339 G_UNICODE_SCRIPT_DESERET,
4340 G_UNICODE_SCRIPT_DEVANAGARI,
4341 G_UNICODE_SCRIPT_ETHIOPIC,
4342 G_UNICODE_SCRIPT_GEORGIAN,
4343 G_UNICODE_SCRIPT_GOTHIC,
4344 G_UNICODE_SCRIPT_GREEK,
4345 G_UNICODE_SCRIPT_GUJARATI,
4346 G_UNICODE_SCRIPT_GURMUKHI,
4347 G_UNICODE_SCRIPT_HAN,
4348 G_UNICODE_SCRIPT_HANGUL,
4349 G_UNICODE_SCRIPT_HEBREW,
4350 G_UNICODE_SCRIPT_HIRAGANA,
4351 G_UNICODE_SCRIPT_KANNADA,
4352 G_UNICODE_SCRIPT_KATAKANA,
4353 G_UNICODE_SCRIPT_KHMER,
4354 G_UNICODE_SCRIPT_LAO,
4355 G_UNICODE_SCRIPT_LATIN,
4356 G_UNICODE_SCRIPT_MALAYALAM,
4357 G_UNICODE_SCRIPT_MONGOLIAN,
4358 G_UNICODE_SCRIPT_MYANMAR,
4359 G_UNICODE_SCRIPT_OGHAM,
4360 G_UNICODE_SCRIPT_OLD_ITALIC,
4361 G_UNICODE_SCRIPT_ORIYA,
4362 G_UNICODE_SCRIPT_RUNIC,
4363 G_UNICODE_SCRIPT_SINHALA,
4364 G_UNICODE_SCRIPT_SYRIAC,
4365 G_UNICODE_SCRIPT_TAMIL,
4366 G_UNICODE_SCRIPT_TELUGU,
4367 G_UNICODE_SCRIPT_THAANA,
4368 G_UNICODE_SCRIPT_THAI,
4369 G_UNICODE_SCRIPT_TIBETAN,
4370 G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL,
4371 G_UNICODE_SCRIPT_YI,
4372 G_UNICODE_SCRIPT_TAGALOG,
4373 G_UNICODE_SCRIPT_HANUNOO,
4374 G_UNICODE_SCRIPT_BUHID,
4375 G_UNICODE_SCRIPT_TAGBANWA,
4376
4377
4378 G_UNICODE_SCRIPT_BRAILLE,
4379 G_UNICODE_SCRIPT_CYPRIOT,
4380 G_UNICODE_SCRIPT_LIMBU,
4381 G_UNICODE_SCRIPT_OSMANYA,
4382 G_UNICODE_SCRIPT_SHAVIAN,
4383 G_UNICODE_SCRIPT_LINEAR_B,
4384 G_UNICODE_SCRIPT_TAI_LE,
4385 G_UNICODE_SCRIPT_UGARITIC,
4386
4387
4388 G_UNICODE_SCRIPT_NEW_TAI_LUE,
4389 G_UNICODE_SCRIPT_BUGINESE,
4390 G_UNICODE_SCRIPT_GLAGOLITIC,
4391 G_UNICODE_SCRIPT_TIFINAGH,
4392 G_UNICODE_SCRIPT_SYLOTI_NAGRI,
4393 G_UNICODE_SCRIPT_OLD_PERSIAN,
4394 G_UNICODE_SCRIPT_KHAROSHTHI,
4395
4396
4397 G_UNICODE_SCRIPT_UNKNOWN,
4398 G_UNICODE_SCRIPT_BALINESE,
4399 G_UNICODE_SCRIPT_CUNEIFORM,
4400 G_UNICODE_SCRIPT_PHOENICIAN,
4401 G_UNICODE_SCRIPT_PHAGS_PA,
4402 G_UNICODE_SCRIPT_NKO
4403 } GUnicodeScript;
4404
4405
4406
4407
4408
4409
4410
4411 gboolean g_get_charset (const char **charset);
4412
4413
4414
4415 gboolean g_unichar_isalnum (gunichar c) __attribute__((__const__));
4416 gboolean g_unichar_isalpha (gunichar c) __attribute__((__const__));
4417 gboolean g_unichar_iscntrl (gunichar c) __attribute__((__const__));
4418 gboolean g_unichar_isdigit (gunichar c) __attribute__((__const__));
4419 gboolean g_unichar_isgraph (gunichar c) __attribute__((__const__));
4420 gboolean g_unichar_islower (gunichar c) __attribute__((__const__));
4421 gboolean g_unichar_isprint (gunichar c) __attribute__((__const__));
4422 gboolean g_unichar_ispunct (gunichar c) __attribute__((__const__));
4423 gboolean g_unichar_isspace (gunichar c) __attribute__((__const__));
4424 gboolean g_unichar_isupper (gunichar c) __attribute__((__const__));
4425 gboolean g_unichar_isxdigit (gunichar c) __attribute__((__const__));
4426 gboolean g_unichar_istitle (gunichar c) __attribute__((__const__));
4427 gboolean g_unichar_isdefined (gunichar c) __attribute__((__const__));
4428 gboolean g_unichar_iswide (gunichar c) __attribute__((__const__));
4429 gboolean g_unichar_iswide_cjk(gunichar c) __attribute__((__const__));
4430 gboolean g_unichar_iszerowidth(gunichar c) __attribute__((__const__));
4431 gboolean g_unichar_ismark (gunichar c) __attribute__((__const__));
4432
4433
4434
4435 gunichar g_unichar_toupper (gunichar c) __attribute__((__const__));
4436 gunichar g_unichar_tolower (gunichar c) __attribute__((__const__));
4437 gunichar g_unichar_totitle (gunichar c) __attribute__((__const__));
4438
4439
4440
4441 gint g_unichar_digit_value (gunichar c) __attribute__((__const__));
4442
4443 gint g_unichar_xdigit_value (gunichar c) __attribute__((__const__));
4444
4445
4446 GUnicodeType g_unichar_type (gunichar c) __attribute__((__const__));
4447
4448
4449 GUnicodeBreakType g_unichar_break_type (gunichar c) __attribute__((__const__));
4450
4451
4452 gint g_unichar_combining_class (gunichar uc) __attribute__((__const__));
4453
4454
4455
4456
4457
4458 void g_unicode_canonical_ordering (gunichar *string,
4459 gsize len);
4460
4461
4462
4463
4464 gunichar *g_unicode_canonical_decomposition (gunichar ch,
4465 gsize *result_len) __attribute__((__malloc__));
4466
4467
4468
4469 extern const gchar * const g_utf8_skip;
4470
4471
4472
4473 gunichar g_utf8_get_char (const gchar *p) __attribute__((__pure__));
4474 gunichar g_utf8_get_char_validated (const gchar *p,
4475 gssize max_len) __attribute__((__pure__));
4476
4477 gchar* g_utf8_offset_to_pointer (const gchar *str,
4478 glong offset) __attribute__((__pure__));
4479 glong g_utf8_pointer_to_offset (const gchar *str,
4480 const gchar *pos) __attribute__((__pure__));
4481 gchar* g_utf8_prev_char (const gchar *p) __attribute__((__pure__));
4482 gchar* g_utf8_find_next_char (const gchar *p,
4483 const gchar *end) __attribute__((__pure__));
4484 gchar* g_utf8_find_prev_char (const gchar *str,
4485 const gchar *p) __attribute__((__pure__));
4486
4487 glong g_utf8_strlen (const gchar *p,
4488 gssize max) __attribute__((__pure__));
4489
4490
4491 gchar* g_utf8_strncpy (gchar *dest,
4492 const gchar *src,
4493 gsize n);
4494
4495
4496
4497 gchar* g_utf8_strchr (const gchar *p,
4498 gssize len,
4499 gunichar c);
4500 gchar* g_utf8_strrchr (const gchar *p,
4501 gssize len,
4502 gunichar c);
4503 gchar* g_utf8_strreverse (const gchar *str,
4504 gssize len);
4505
4506 gunichar2 *g_utf8_to_utf16 (const gchar *str,
4507 glong len,
4508 glong *items_read,
4509 glong *items_written,
4510 GError **error) __attribute__((__malloc__));
4511 gunichar * g_utf8_to_ucs4 (const gchar *str,
4512 glong len,
4513 glong *items_read,
4514 glong *items_written,
4515 GError **error) __attribute__((__malloc__));
4516 gunichar * g_utf8_to_ucs4_fast (const gchar *str,
4517 glong len,
4518 glong *items_written) __attribute__((__malloc__));
4519 gunichar * g_utf16_to_ucs4 (const gunichar2 *str,
4520 glong len,
4521 glong *items_read,
4522 glong *items_written,
4523 GError **error) __attribute__((__malloc__));
4524 gchar* g_utf16_to_utf8 (const gunichar2 *str,
4525 glong len,
4526 glong *items_read,
4527 glong *items_written,
4528 GError **error) __attribute__((__malloc__));
4529 gunichar2 *g_ucs4_to_utf16 (const gunichar *str,
4530 glong len,
4531 glong *items_read,
4532 glong *items_written,
4533 GError **error) __attribute__((__malloc__));
4534 gchar* g_ucs4_to_utf8 (const gunichar *str,
4535 glong len,
4536 glong *items_read,
4537 glong *items_written,
4538 GError **error) __attribute__((__malloc__));
4539
4540
4541
4542
4543
4544 gint g_unichar_to_utf8 (gunichar c,
4545 gchar *outbuf);
4546
4547
4548
4549
4550
4551 gboolean g_utf8_validate (const gchar *str,
4552 gssize max_len,
4553 const gchar **end);
4554
4555
4556 gboolean g_unichar_validate (gunichar ch) __attribute__((__const__));
4557
4558 gchar *g_utf8_strup (const gchar *str,
4559 gssize len) __attribute__((__malloc__));
4560 gchar *g_utf8_strdown (const gchar *str,
4561 gssize len) __attribute__((__malloc__));
4562 gchar *g_utf8_casefold (const gchar *str,
4563 gssize len) __attribute__((__malloc__));
4564
4565 typedef enum {
4566 G_NORMALIZE_DEFAULT,
4567 G_NORMALIZE_NFD = G_NORMALIZE_DEFAULT,
4568 G_NORMALIZE_DEFAULT_COMPOSE,
4569 G_NORMALIZE_NFC = G_NORMALIZE_DEFAULT_COMPOSE,
4570 G_NORMALIZE_ALL,
4571 G_NORMALIZE_NFKD = G_NORMALIZE_ALL,
4572 G_NORMALIZE_ALL_COMPOSE,
4573 G_NORMALIZE_NFKC = G_NORMALIZE_ALL_COMPOSE
4574 } GNormalizeMode;
4575
4576 gchar *g_utf8_normalize (const gchar *str,
4577 gssize len,
4578 GNormalizeMode mode) __attribute__((__malloc__));
4579
4580 gint g_utf8_collate (const gchar *str1,
4581 const gchar *str2) __attribute__((__pure__));
4582 gchar *g_utf8_collate_key (const gchar *str,
4583 gssize len) __attribute__((__malloc__));
4584 gchar *g_utf8_collate_key_for_filename (const gchar *str,
4585 gssize len) __attribute__((__malloc__));
4586
4587 gboolean g_unichar_get_mirror_char (gunichar ch,
4588 gunichar *mirrored_ch);
4589
4590 GUnicodeScript g_unichar_get_script (gunichar ch) __attribute__((__const__));
4591
4592
4593
4594
4595 gchar *_g_utf8_make_valid (const gchar *name);
4596
4597
4598
4599 # 32 "/usr/include/glib-2.0/glib/gstring.h" 2
4600
4601
4602
4603
4604 typedef struct _GString GString;
4605 typedef struct _GStringChunk GStringChunk;
4606
4607 struct _GString
4608 {
4609 gchar *str;
4610 gsize len;
4611 gsize allocated_len;
4612 };
4613
4614
4615
4616 GStringChunk* g_string_chunk_new (gsize size);
4617 void g_string_chunk_free (GStringChunk *chunk);
4618 void g_string_chunk_clear (GStringChunk *chunk);
4619 gchar* g_string_chunk_insert (GStringChunk *chunk,
4620 const gchar *string);
4621 gchar* g_string_chunk_insert_len (GStringChunk *chunk,
4622 const gchar *string,
4623 gssize len);
4624 gchar* g_string_chunk_insert_const (GStringChunk *chunk,
4625 const gchar *string);
4626
4627
4628
4629
4630 GString* g_string_new (const gchar *init);
4631 GString* g_string_new_len (const gchar *init,
4632 gssize len);
4633 GString* g_string_sized_new (gsize dfl_size);
4634 gchar* g_string_free (GString *string,
4635 gboolean free_segment);
4636 gboolean g_string_equal (const GString *v,