]>
Commit | Line | Data |
---|---|---|
45516216 | 1 | # 1 "gconf.c" |
2 | # 1 "<built-in>" | |
3 | #define __STDC_HOSTED__ 1 | |
4 | #define __GNUC__ 3 | |
5 | #define __GNUC_MINOR__ 4 | |
6 | #define __GNUC_PATCHLEVEL__ 6 | |
7 | #define __SIZE_TYPE__ unsigned int | |
8 | #define __PTRDIFF_TYPE__ int | |
9 | #define __WCHAR_TYPE__ long int | |
10 | #define __WINT_TYPE__ unsigned int | |
11 | #define __GXX_ABI_VERSION 1002 | |
12 | #define __SCHAR_MAX__ 127 | |
13 | #define __SHRT_MAX__ 32767 | |
14 | #define __INT_MAX__ 2147483647 | |
15 | #define __LONG_MAX__ 2147483647L | |
16 | #define __LONG_LONG_MAX__ 9223372036854775807LL | |
17 | #define __WCHAR_MAX__ 2147483647 | |
18 | #define __CHAR_BIT__ 8 | |
19 | #define __FLT_EVAL_METHOD__ 0 | |
20 | #define __FLT_RADIX__ 2 | |
21 | #define __FLT_MANT_DIG__ 24 | |
22 | #define __FLT_DIG__ 6 | |
23 | #define __FLT_MIN_EXP__ (-125) | |
24 | #define __FLT_MIN_10_EXP__ (-37) | |
25 | #define __FLT_MAX_EXP__ 128 | |
26 | #define __FLT_MAX_10_EXP__ 38 | |
27 | #define __FLT_MAX__ 3.40282347e+38F | |
28 | #define __FLT_MIN__ 1.17549435e-38F | |
29 | #define __FLT_EPSILON__ 1.19209290e-7F | |
30 | #define __FLT_DENORM_MIN__ 1.40129846e-45F | |
31 | #define __FLT_HAS_INFINITY__ 1 | |
32 | #define __FLT_HAS_QUIET_NAN__ 1 | |
33 | #define __DBL_MANT_DIG__ 53 | |
34 | #define __DBL_DIG__ 15 | |
35 | #define __DBL_MIN_EXP__ (-1021) | |
36 | #define __DBL_MIN_10_EXP__ (-307) | |
37 | #define __DBL_MAX_EXP__ 1024 | |
38 | #define __DBL_MAX_10_EXP__ 308 | |
39 | #define __DBL_MAX__ 1.7976931348623157e+308 | |
40 | #define __DBL_MIN__ 2.2250738585072014e-308 | |
41 | #define __DBL_EPSILON__ 2.2204460492503131e-16 | |
42 | #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 | |
43 | #define __DBL_HAS_INFINITY__ 1 | |
44 | #define __DBL_HAS_QUIET_NAN__ 1 | |
45 | #define __LDBL_MANT_DIG__ 64 | |
46 | #define __LDBL_DIG__ 18 | |
47 | #define __LDBL_MIN_EXP__ (-16381) | |
48 | #define __LDBL_MIN_10_EXP__ (-4931) | |
49 | #define __LDBL_MAX_EXP__ 16384 | |
50 | #define __LDBL_MAX_10_EXP__ 4932 | |
51 | #define __DECIMAL_DIG__ 21 | |
52 | #define __LDBL_MAX__ 1.18973149535723176502e+4932L | |
53 | #define __LDBL_MIN__ 3.36210314311209350626e-4932L | |
54 | #define __LDBL_EPSILON__ 1.08420217248550443401e-19L | |
55 | #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L | |
56 | #define __LDBL_HAS_INFINITY__ 1 | |
57 | #define __LDBL_HAS_QUIET_NAN__ 1 | |
58 | #define __REGISTER_PREFIX__ | |
59 | #define __USER_LABEL_PREFIX__ | |
60 | #define __VERSION__ "3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)" | |
61 | #define __OPTIMIZE_SIZE__ 1 | |
62 | #define __OPTIMIZE__ 1 | |
63 | #define __FINITE_MATH_ONLY__ 0 | |
64 | ||
65 | ||
66 | #define __i386 1 | |
67 | #define __i386__ 1 | |
68 | #define i386 1 | |
69 | #define __tune_pentium4__ 1 | |
70 | #define __MMX__ 1 | |
71 | #define __SSE__ 1 | |
72 | #define __SSE2__ 1 | |
73 | #define __SSE_MATH__ 1 | |
74 | #define __SSE2_MATH__ 1 | |
75 | #define __gnu_linux__ 1 | |
76 | #define __linux 1 | |
77 | #define __linux__ 1 | |
78 | #define linux 1 | |
79 | #define __unix 1 | |
80 | #define __unix__ 1 | |
81 | #define unix 1 | |
82 | ||
83 | ||
84 | ||
85 | #define __PIC__ 1 | |
86 | #define __pic__ 1 | |
87 | #define __ELF__ 1 | |
88 | # 1 "<command line>" | |
89 | #define HAVE_CONFIG_H 1 | |
90 | #define PIC 1 | |
91 | # 1 "gconf.c" | |
92 | # 33 "gconf.c" | |
93 | # 1 "../../src/include/platform.h" 1 | |
94 | # 29 "../../src/include/platform.h" | |
95 | #define PLATFORM_H | |
96 | ||
97 | ||
98 | #define HAVE_USED_CONFIG_H | |
99 | # 1 "../../config.h" 1 | |
100 | ||
101 | ||
102 | ||
103 | #define _GNU_SOURCE 1 | |
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | #define CURSES_LOC <ncurses.h> | |
110 | ||
111 | ||
112 | ||
113 | ||
114 | ||
115 | #define DATADIR "/usr/share/GNUnet/" | |
116 | # 26 "../../config.h" | |
117 | #define HAVE_ARGZ_APPEND 1 | |
118 | ||
119 | ||
120 | #define HAVE_ARGZ_CREATE_SEP 1 | |
121 | ||
122 | ||
123 | #define HAVE_ARGZ_H 1 | |
124 | ||
125 | ||
126 | #define HAVE_ARGZ_INSERT 1 | |
127 | ||
128 | ||
129 | #define HAVE_ARGZ_NEXT 1 | |
130 | ||
131 | ||
132 | #define HAVE_ARGZ_STRINGIFY 1 | |
133 | ||
134 | ||
135 | #define HAVE_ARPA_INET_H 1 | |
136 | ||
137 | ||
138 | #define HAVE_ASSERT_H 1 | |
139 | ||
140 | ||
141 | #define HAVE_ATOLL 1 | |
142 | # 59 "../../config.h" | |
143 | #define HAVE_CLOSEDIR 1 | |
144 | ||
145 | ||
146 | #define HAVE_CTYPE_H 1 | |
147 | ||
148 | ||
149 | #define HAVE_CURSES 1 | |
150 | ||
151 | ||
152 | ||
153 | ||
154 | ||
155 | ||
156 | ||
157 | #define HAVE_DIRENT_H 1 | |
158 | # 82 "../../config.h" | |
159 | #define HAVE_DLERROR 1 | |
160 | ||
161 | ||
162 | #define HAVE_DLFCN_H 1 | |
163 | # 94 "../../config.h" | |
164 | #define HAVE_DUP2 1 | |
165 | ||
166 | ||
167 | ||
168 | ||
169 | ||
170 | #define HAVE_ERRNO_H 1 | |
171 | ||
172 | ||
173 | #define HAVE_ERROR_T 1 | |
174 | ||
175 | ||
176 | #define HAVE_EXTRACTOR_H 1 | |
177 | ||
178 | ||
179 | #define HAVE_FCNTL_H 1 | |
180 | ||
181 | ||
182 | #define HAVE_FDATASYNC 1 | |
183 | ||
184 | ||
185 | #define HAVE_FLOOR 1 | |
186 | ||
187 | ||
188 | #define HAVE_FORK 1 | |
189 | ||
190 | ||
191 | #define HAVE_FSEEKO 1 | |
192 | ||
193 | ||
194 | #define HAVE_FTRUNCATE 1 | |
195 | ||
196 | ||
197 | #define HAVE_GETCWD 1 | |
198 | ||
199 | ||
200 | #define HAVE_GETHOSTBYNAME 1 | |
201 | ||
202 | ||
203 | #define HAVE_GETHOSTNAME 1 | |
204 | ||
205 | ||
206 | #define HAVE_GETLOADAVG 1 | |
207 | ||
208 | ||
209 | #define HAVE_GETRUSAGE 1 | |
210 | ||
211 | ||
212 | ||
213 | ||
214 | ||
215 | #define HAVE_GETTIMEOFDAY 1 | |
216 | ||
217 | ||
218 | #define HAVE_GMP_H 1 | |
219 | ||
220 | ||
221 | #define HAVE_GMTIME 1 | |
222 | ||
223 | ||
224 | #define HAVE_GMTIME_R 1 | |
225 | ||
226 | ||
227 | #define HAVE_GTK 1 | |
228 | # 166 "../../config.h" | |
229 | #define HAVE_INTTYPES_H 1 | |
230 | # 175 "../../config.h" | |
231 | #define HAVE_LANGINFO_H 1 | |
232 | ||
233 | ||
234 | #define HAVE_LIBDL 1 | |
235 | ||
236 | ||
237 | #define HAVE_LIBGMP 1 | |
238 | ||
239 | ||
240 | ||
241 | ||
242 | ||
243 | #define HAVE_LIBINTL_H 1 | |
244 | # 196 "../../config.h" | |
245 | #define HAVE_LIBM 1 | |
246 | ||
247 | ||
248 | #define HAVE_LIBNCURSES 1 | |
249 | ||
250 | ||
251 | #define HAVE_LIBNSL 1 | |
252 | # 214 "../../config.h" | |
253 | #define HAVE_LIBZ 1 | |
254 | ||
255 | ||
256 | #define HAVE_LIMITS_H 1 | |
257 | ||
258 | ||
259 | #define HAVE_LOCALE_H 1 | |
260 | ||
261 | ||
262 | ||
263 | ||
264 | ||
265 | #define HAVE_MALLOC_H 1 | |
266 | ||
267 | ||
268 | #define HAVE_MATH_H 1 | |
269 | ||
270 | ||
271 | #define HAVE_MEMCPY 1 | |
272 | ||
273 | ||
274 | #define HAVE_MEMMOVE 1 | |
275 | ||
276 | ||
277 | #define HAVE_MEMORY_H 1 | |
278 | ||
279 | ||
280 | #define HAVE_MEMSET 1 | |
281 | ||
282 | ||
283 | #define HAVE_MKDIR 1 | |
284 | ||
285 | ||
286 | #define HAVE_MKFIFO 1 | |
287 | ||
288 | ||
289 | #define HAVE_MKTIME 1 | |
290 | ||
291 | ||
292 | #define HAVE_MYSQL_MYSQL_H 1 | |
293 | ||
294 | ||
295 | ||
296 | ||
297 | ||
298 | #define HAVE_NETDB_H 1 | |
299 | ||
300 | ||
301 | #define HAVE_NETINET_IN_H 1 | |
302 | ||
303 | ||
304 | ||
305 | ||
306 | ||
307 | #define HAVE_OFF_T 1 | |
308 | ||
309 | ||
310 | #define HAVE_OPENDIR 1 | |
311 | ||
312 | ||
313 | #define HAVE_PRELOADED_SYMBOLS 1 | |
314 | ||
315 | ||
316 | #define HAVE_PTHREAD_H 1 | |
317 | ||
318 | ||
319 | #define HAVE_RAND 1 | |
320 | ||
321 | ||
322 | #define HAVE_READDIR 1 | |
323 | ||
324 | ||
325 | ||
326 | ||
327 | ||
328 | #define HAVE_RMDIR 1 | |
329 | ||
330 | ||
331 | #define HAVE_SELECT 1 | |
332 | ||
333 | ||
334 | #define HAVE_SETLOCALE 1 | |
335 | ||
336 | ||
337 | ||
338 | ||
339 | ||
340 | #define HAVE_SIGSET_T 1 | |
341 | ||
342 | ||
343 | #define HAVE_SIZE_T 1 | |
344 | ||
345 | ||
346 | #define HAVE_SOCKET 1 | |
347 | ||
348 | ||
349 | ||
350 | ||
351 | ||
352 | #define HAVE_STAT64 1 | |
353 | ||
354 | ||
355 | ||
356 | ||
357 | ||
358 | ||
359 | #define HAVE_STDINT_H 1 | |
360 | ||
361 | ||
362 | #define HAVE_STDIO_H 1 | |
363 | ||
364 | ||
365 | #define HAVE_STDLIB_H 1 | |
366 | ||
367 | ||
368 | #define HAVE_STRCASECMP 1 | |
369 | ||
370 | ||
371 | #define HAVE_STRCHR 1 | |
372 | ||
373 | ||
374 | #define HAVE_STRCMP 1 | |
375 | ||
376 | ||
377 | #define HAVE_STRDUP 1 | |
378 | ||
379 | ||
380 | #define HAVE_STRERROR 1 | |
381 | ||
382 | ||
383 | #define HAVE_STRFTIME 1 | |
384 | ||
385 | ||
386 | #define HAVE_STRINGS_H 1 | |
387 | ||
388 | ||
389 | #define HAVE_STRING_H 1 | |
390 | # 359 "../../config.h" | |
391 | #define HAVE_STRNCASECMP 1 | |
392 | ||
393 | ||
394 | #define HAVE_STRRCHR 1 | |
395 | ||
396 | ||
397 | #define HAVE_STRSTR 1 | |
398 | ||
399 | ||
400 | #define HAVE_STRTOL 1 | |
401 | # 378 "../../config.h" | |
402 | #define HAVE_SYS_FILE_H 1 | |
403 | ||
404 | ||
405 | #define HAVE_SYS_IOCTL_H 1 | |
406 | ||
407 | ||
408 | #define HAVE_SYS_MOUNT_H 1 | |
409 | ||
410 | ||
411 | ||
412 | ||
413 | ||
414 | ||
415 | #define HAVE_SYS_PARAM_H 1 | |
416 | ||
417 | ||
418 | #define HAVE_SYS_SELECT_H 1 | |
419 | ||
420 | ||
421 | #define HAVE_SYS_SOCKET_H 1 | |
422 | ||
423 | ||
424 | #define HAVE_SYS_STATVFS_H 1 | |
425 | ||
426 | ||
427 | #define HAVE_SYS_STAT_H 1 | |
428 | ||
429 | ||
430 | #define HAVE_SYS_SYSINFO_H 1 | |
431 | ||
432 | ||
433 | #define HAVE_SYS_TIME_H 1 | |
434 | ||
435 | ||
436 | #define HAVE_SYS_TYPES_H 1 | |
437 | ||
438 | ||
439 | #define HAVE_SYS_VFS_H 1 | |
440 | ||
441 | ||
442 | #define HAVE_SYS_WAIT_H 1 | |
443 | ||
444 | ||
445 | #define HAVE_UNAME 1 | |
446 | ||
447 | ||
448 | #define HAVE_UNISTD_H 1 | |
449 | ||
450 | ||
451 | #define HAVE_VFORK 1 | |
452 | ||
453 | ||
454 | ||
455 | ||
456 | ||
457 | #define HAVE_VPRINTF 1 | |
458 | ||
459 | ||
460 | #define HAVE_WORKING_FORK 1 | |
461 | ||
462 | ||
463 | #define HAVE_WORKING_VFORK 1 | |
464 | ||
465 | ||
466 | #define LINUX 1 | |
467 | ||
468 | ||
469 | #define LOCALEDIR "/usr/share/locale/" | |
470 | ||
471 | ||
472 | ||
473 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
474 | ||
475 | ||
476 | ||
477 | ||
478 | ||
479 | ||
480 | #define LTDL_OBJDIR ".libs/" | |
481 | ||
482 | ||
483 | ||
484 | #define LTDL_SHLIBPATH_VAR "LD_LIBRARY_PATH" | |
485 | ||
486 | ||
487 | #define LTDL_SHLIB_EXT ".so" | |
488 | ||
489 | ||
490 | #define LTDL_SYSSEARCHPATH "/lib:/usr/lib:/usr/local/lib://usr//lib/opengl/xorg-x11/lib:/usr/i686-pc-linux-gnu/lib:/usr/lib/gcc/i686-pc-linux-gnu/3.4.6:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6:/usr/lib/gcc/i686-pc-linux-gnu/4.1.1:/usr/lib/nspr:/usr/lib/nss:/usr/lib:/usr/lib/openmotif-2.2:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/native_threads/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/client/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/server/:/usr/lib/qt4:/usr/kde/3.5/lib:/usr/qt/3/lib:/usr/kde/3.4/lib:/usr/kde/3.3/lib:/usr/games/lib:/usr/lib/jahshaka:/usr/lib/fltk-1.1:/usr/lib/octave-2.1.72" | |
491 | # 487 "../../config.h" | |
492 | #define PACKAGE "GNUnet" | |
493 | ||
494 | ||
495 | #define PACKAGE_BUGREPORT "bug-gnunet@gnu.org" | |
496 | ||
497 | ||
498 | #define PACKAGE_NAME "GNUnet" | |
499 | ||
500 | ||
501 | #define PACKAGE_STRING "GNUnet 0.7.0d" | |
502 | ||
503 | ||
504 | #define PACKAGE_TARNAME "gnunet" | |
505 | ||
506 | ||
507 | #define PACKAGE_VERSION "0.7.0d" | |
508 | ||
509 | ||
510 | #define RETSIGTYPE void | |
511 | ||
512 | ||
513 | #define SELECT_TYPE_ARG1 int | |
514 | ||
515 | ||
516 | #define SELECT_TYPE_ARG234 (fd_set *) | |
517 | ||
518 | ||
519 | #define SELECT_TYPE_ARG5 (struct timeval *) | |
520 | # 523 "../../config.h" | |
521 | #define STDC_HEADERS 1 | |
522 | ||
523 | ||
524 | #define TIME_WITH_SYS_TIME 1 | |
525 | ||
526 | ||
527 | ||
528 | ||
529 | ||
530 | #define USE_IPV6 1 | |
531 | ||
532 | ||
533 | #define VERSION "0.7.0d" | |
534 | ||
535 | ||
536 | ||
537 | ||
538 | ||
539 | #define _FILE_OFFSET_BITS 64 | |
540 | # 34 "../../src/include/platform.h" 2 | |
541 | ||
542 | ||
543 | # 1 "../../src/include/plibc.h" 1 | |
544 | # 29 "../../src/include/plibc.h" | |
545 | #define _PLIBC_H_ | |
546 | ||
547 | ||
548 | #define SIGALRM 14 | |
549 | # 428 "../../src/include/plibc.h" | |
550 | #define DIR_SEPARATOR '/' | |
551 | #define DIR_SEPARATOR_STR "/" | |
552 | #define NEWLINE "\n" | |
553 | ||
554 | ||
555 | ||
556 | ||
557 | #define CREAT(p,m) creat(p, m) | |
558 | #undef FOPEN | |
559 | #define FOPEN(f,m) fopen(f, m) | |
560 | #define OPENDIR(d) opendir(d) | |
561 | #define OPEN(f) open(f) | |
562 | #define CHDIR(d) chdir(d) | |
563 | #define CLOSE(f) close(f) | |
564 | #define RMDIR(f) rmdir(f) | |
565 | #define ACCESS(p,m) access(p, m) | |
566 | #define CHMOD(f,p) chmod(f, p) | |
567 | #define FSTAT(h,b) fstat(h, b) | |
568 | #define PIPE(h) pipe(h) | |
569 | #define REMOVE(p) remove(p) | |
570 | #define RENAME(o,n) rename(o, n) | |
571 | #define STAT(p,b) stat(p, b) | |
572 | #define STAT64(p,b) stat64(p, b) | |
573 | #define UNLINK(f) unlink(f) | |
574 | #define WRITE(f,b,n) write(f, b, n) | |
575 | #define READ(f,b,n) read(f, b, n) | |
576 | #define GN_FREAD(b,s,c,f) fread(b, s, c, f) | |
577 | #define GN_FWRITE(b,s,c,f) fwrite(b, s, c, f) | |
578 | #define SYMLINK(a,b) symlink(a, b) | |
579 | #define MMAP(s,l,p,f,d,o) mmap(s, l, p, f, d, o) | |
580 | #define MUNMAP(s,l) munmap(s, l) | |
581 | #define STRERROR(i) strerror(i) | |
582 | #define RANDOM() random() | |
583 | #define READLINK(p,b,s) readlink(p, b, s) | |
584 | #define LSTAT(p,b) lstat(p, b) | |
585 | #define LSTAT64(p,b) lstat64(p, b) | |
586 | #define PRINTF printf | |
587 | #define FPRINTF fprintf | |
588 | #define VPRINTF(f,a) vprintf(f, a) | |
589 | #define VFPRINTF(s,f,a) vfprintf(s, f, a) | |
590 | #define VSPRINTF(d,f,a) vsprintf(d, f, a) | |
591 | #define VSNPRINTF(str,size,fmt,a) vsnprintf(str, size, fmt, a) | |
592 | #define _REAL_SNPRINTF snprintf | |
593 | #define SPRINTF sprintf | |
594 | #define VSSCANF(s,f,a) vsscanf(s, f, a) | |
595 | #define SSCANF sscanf | |
596 | #define VFSCANF(s,f,a) vfscanf(s, f, a) | |
597 | #define VSCANF(f,a) vscanf(f, a) | |
598 | #define SCANF scanf | |
599 | #define FSCANF fscanf | |
600 | #define WAITPID(p,s,o) waitpid(p, s, o) | |
601 | #define ACCEPT(s,a,l) accept(s, a, l) | |
602 | #define BIND(s,n,l) bind(s, n, l) | |
603 | #define CONNECT(s,n,l) connect(s, n, l) | |
604 | #define GETPEERNAME(s,n,l) getpeername(s, n, l) | |
605 | #define GETSOCKNAME(s,n,l) getsockname(s, n, l) | |
606 | #define GETSOCKOPT(s,l,o,v,p) getsockopt(s, l, o, v, p) | |
607 | #define LISTEN(s,b) listen(s, b) | |
608 | #define RECV(s,b,l,f) recv(s, b, l, f) | |
609 | #define RECVFROM(s,b,l,f,r,o) recvfrom(s, b, l, f, r, o) | |
610 | #define SELECT(n,r,w,e,t) select(n, r, w, e, t) | |
611 | #define SEND(s,b,l,f) send(s, b, l, f) | |
612 | #define SENDTO(s,b,l,f,o,n) sendto(s, b, l, f, o, n) | |
613 | #define SETSOCKOPT(s,l,o,v,n) setsockopt(s, l, o, v, n) | |
614 | #define SHUTDOWN(s,h) shutdown(s, h) | |
615 | #define SOCKET(a,t,p) socket(a, t, p) | |
616 | #define GETHOSTBYADDR(a,l,t) gethostbyname(a, l, t) | |
617 | #define GETHOSTBYNAME(n) gethostbyname(n) | |
618 | # 37 "../../src/include/platform.h" 2 | |
619 | ||
620 | ||
621 | ||
622 | ||
623 | ||
624 | #define _XOPEN_SOURCE | |
625 | ||
626 | ||
627 | ||
628 | ||
629 | ||
630 | #define VERBOSE_STATS 0 | |
631 | ||
632 | ||
633 | ||
634 | ||
635 | ||
636 | ||
637 | # 1 "/usr/include/pthread.h" 1 3 4 | |
638 | # 20 "/usr/include/pthread.h" 3 4 | |
639 | #define _PTHREAD_H 1 | |
640 | ||
641 | # 1 "/usr/include/features.h" 1 3 4 | |
642 | # 21 "/usr/include/features.h" 3 4 | |
643 | #define _FEATURES_H 1 | |
644 | # 93 "/usr/include/features.h" 3 4 | |
645 | #undef __USE_ISOC99 | |
646 | #undef __USE_POSIX | |
647 | #undef __USE_POSIX2 | |
648 | #undef __USE_POSIX199309 | |
649 | #undef __USE_POSIX199506 | |
650 | #undef __USE_XOPEN | |
651 | #undef __USE_XOPEN_EXTENDED | |
652 | #undef __USE_UNIX98 | |
653 | #undef __USE_XOPEN2K | |
654 | #undef __USE_LARGEFILE | |
655 | #undef __USE_LARGEFILE64 | |
656 | #undef __USE_FILE_OFFSET64 | |
657 | #undef __USE_BSD | |
658 | #undef __USE_SVID | |
659 | #undef __USE_MISC | |
660 | #undef __USE_ATFILE | |
661 | #undef __USE_GNU | |
662 | #undef __USE_REENTRANT | |
663 | #undef __USE_FORTIFY_LEVEL | |
664 | #undef __FAVOR_BSD | |
665 | #undef __KERNEL_STRICT_NAMES | |
666 | ||
667 | ||
668 | ||
669 | ||
670 | #define __KERNEL_STRICT_NAMES | |
671 | ||
672 | ||
673 | ||
674 | #define __USE_ANSI 1 | |
675 | # 132 "/usr/include/features.h" 3 4 | |
676 | #define __GNUC_PREREQ(maj,min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) | |
677 | # 149 "/usr/include/features.h" 3 4 | |
678 | #undef _ISOC99_SOURCE | |
679 | #define _ISOC99_SOURCE 1 | |
680 | #undef _POSIX_SOURCE | |
681 | #define _POSIX_SOURCE 1 | |
682 | #undef _POSIX_C_SOURCE | |
683 | #define _POSIX_C_SOURCE 199506L | |
684 | #undef _XOPEN_SOURCE | |
685 | #define _XOPEN_SOURCE 600 | |
686 | #undef _XOPEN_SOURCE_EXTENDED | |
687 | #define _XOPEN_SOURCE_EXTENDED 1 | |
688 | #undef _LARGEFILE64_SOURCE | |
689 | #define _LARGEFILE64_SOURCE 1 | |
690 | #undef _BSD_SOURCE | |
691 | #define _BSD_SOURCE 1 | |
692 | #undef _SVID_SOURCE | |
693 | #define _SVID_SOURCE 1 | |
694 | #undef _ATFILE_SOURCE | |
695 | #define _ATFILE_SOURCE 1 | |
696 | # 185 "/usr/include/features.h" 3 4 | |
697 | #define __USE_ISOC99 1 | |
698 | # 203 "/usr/include/features.h" 3 4 | |
699 | #define __USE_POSIX 1 | |
700 | ||
701 | ||
702 | ||
703 | #define __USE_POSIX2 1 | |
704 | ||
705 | ||
706 | ||
707 | #define __USE_POSIX199309 1 | |
708 | ||
709 | ||
710 | ||
711 | #define __USE_POSIX199506 1 | |
712 | ||
713 | ||
714 | ||
715 | ||
716 | ||
717 | ||
718 | ||
719 | #define __USE_XOPEN 1 | |
720 | ||
721 | #define __USE_XOPEN_EXTENDED 1 | |
722 | #define __USE_UNIX98 1 | |
723 | #undef _LARGEFILE_SOURCE | |
724 | #define _LARGEFILE_SOURCE 1 | |
725 | ||
726 | #define __USE_XOPEN2K 1 | |
727 | #undef __USE_ISOC99 | |
728 | #define __USE_ISOC99 1 | |
729 | # 242 "/usr/include/features.h" 3 4 | |
730 | #define __USE_LARGEFILE 1 | |
731 | ||
732 | ||
733 | ||
734 | #define __USE_LARGEFILE64 1 | |
735 | ||
736 | ||
737 | ||
738 | #define __USE_FILE_OFFSET64 1 | |
739 | ||
740 | ||
741 | ||
742 | #define __USE_MISC 1 | |
743 | ||
744 | ||
745 | ||
746 | #define __USE_BSD 1 | |
747 | ||
748 | ||
749 | ||
750 | #define __USE_SVID 1 | |
751 | ||
752 | ||
753 | ||
754 | #define __USE_ATFILE 1 | |
755 | ||
756 | ||
757 | ||
758 | #define __USE_GNU 1 | |
759 | # 285 "/usr/include/features.h" 3 4 | |
760 | #define __USE_FORTIFY_LEVEL 0 | |
761 | ||
762 | ||
763 | ||
764 | #define __STDC_IEC_559__ 1 | |
765 | #define __STDC_IEC_559_COMPLEX__ 1 | |
766 | ||
767 | ||
768 | #define __STDC_ISO_10646__ 200009L | |
769 | ||
770 | ||
771 | ||
772 | ||
773 | ||
774 | ||
775 | ||
776 | #undef __GNU_LIBRARY__ | |
777 | #define __GNU_LIBRARY__ 6 | |
778 | ||
779 | ||
780 | ||
781 | #define __GLIBC__ 2 | |
782 | #define __GLIBC_MINOR__ 4 | |
783 | ||
784 | #define __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) | |
785 | ||
786 | ||
787 | ||
788 | ||
789 | ||
790 | ||
791 | ||
792 | #define __GLIBC_HAVE_LONG_LONG 1 | |
793 | ||
794 | ||
795 | ||
796 | ||
797 | ||
798 | # 1 "/usr/include/sys/cdefs.h" 1 3 4 | |
799 | # 21 "/usr/include/sys/cdefs.h" 3 4 | |
800 | #define _SYS_CDEFS_H 1 | |
801 | # 36 "/usr/include/sys/cdefs.h" 3 4 | |
802 | #undef __P | |
803 | #undef __PMT | |
804 | # 47 "/usr/include/sys/cdefs.h" 3 4 | |
805 | #define __THROW __attribute__ ((__nothrow__)) | |
806 | #define __NTH(fct) __attribute__ ((__nothrow__)) fct | |
807 | # 74 "/usr/include/sys/cdefs.h" 3 4 | |
808 | #define __P(args) args | |
809 | #define __PMT(args) args | |
810 | ||
811 | ||
812 | ||
813 | ||
814 | #define __CONCAT(x,y) x ## y | |
815 | #define __STRING(x) #x | |
816 | ||
817 | ||
818 | #define __ptr_t void * | |
819 | #define __long_double_t long double | |
820 | ||
821 | ||
822 | ||
823 | ||
824 | ||
825 | ||
826 | ||
827 | #define __BEGIN_DECLS | |
828 | #define __END_DECLS | |
829 | # 114 "/usr/include/sys/cdefs.h" 3 4 | |
830 | #define __BEGIN_NAMESPACE_STD | |
831 | #define __END_NAMESPACE_STD | |
832 | #define __USING_NAMESPACE_STD(name) | |
833 | #define __BEGIN_NAMESPACE_C99 | |
834 | #define __END_NAMESPACE_C99 | |
835 | #define __USING_NAMESPACE_C99(name) | |
836 | ||
837 | ||
838 | ||
839 | ||
840 | ||
841 | #define __bounded | |
842 | #define __unbounded | |
843 | #define __ptrvalue | |
844 | ||
845 | ||
846 | ||
847 | ||
848 | #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) | |
849 | #define __bos0(ptr) __builtin_object_size (ptr, 0) | |
850 | #define __warndecl(name,msg) extern void name (void) | |
851 | ||
852 | ||
853 | ||
854 | ||
855 | ||
856 | #define __flexarr [] | |
857 | # 167 "/usr/include/sys/cdefs.h" 3 4 | |
858 | #define __REDIRECT(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) | |
859 | ||
860 | ||
861 | ||
862 | ||
863 | #define __REDIRECT_NTH(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) __THROW | |
864 | ||
865 | ||
866 | #define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname) | |
867 | #define __ASMNAME2(prefix,cname) __STRING (prefix) cname | |
868 | # 197 "/usr/include/sys/cdefs.h" 3 4 | |
869 | #define __attribute_malloc__ __attribute__ ((__malloc__)) | |
870 | # 206 "/usr/include/sys/cdefs.h" 3 4 | |
871 | #define __attribute_pure__ __attribute__ ((__pure__)) | |
872 | # 215 "/usr/include/sys/cdefs.h" 3 4 | |
873 | #define __attribute_used__ __attribute__ ((__used__)) | |
874 | #define __attribute_noinline__ __attribute__ ((__noinline__)) | |
875 | ||
876 | ||
877 | ||
878 | ||
879 | ||
880 | ||
881 | ||
882 | #define __attribute_deprecated__ __attribute__ ((__deprecated__)) | |
883 | # 236 "/usr/include/sys/cdefs.h" 3 4 | |
884 | #define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x))) | |
885 | # 246 "/usr/include/sys/cdefs.h" 3 4 | |
886 | #define __attribute_format_strfmon__(a,b) __attribute__ ((__format__ (__strfmon__, a, b))) | |
887 | # 255 "/usr/include/sys/cdefs.h" 3 4 | |
888 | #define __nonnull(params) __attribute__ ((__nonnull__ params)) | |
889 | ||
890 | ||
891 | ||
892 | ||
893 | ||
894 | ||
895 | ||
896 | #define __attribute_warn_unused_result__ __attribute__ ((__warn_unused_result__)) | |
897 | # 272 "/usr/include/sys/cdefs.h" 3 4 | |
898 | #define __wur | |
899 | ||
900 | ||
901 | ||
902 | ||
903 | #define __always_inline __inline __attribute__ ((__always_inline__)) | |
904 | # 299 "/usr/include/sys/cdefs.h" 3 4 | |
905 | #define __restrict_arr __restrict | |
906 | # 313 "/usr/include/sys/cdefs.h" 3 4 | |
907 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
908 | # 19 "/usr/include/bits/wordsize.h" 3 4 | |
909 | #define __WORDSIZE 32 | |
910 | # 314 "/usr/include/sys/cdefs.h" 2 3 4 | |
911 | # 331 "/usr/include/sys/cdefs.h" 3 4 | |
912 | #define __LDBL_REDIR1(name,proto,alias) name proto | |
913 | #define __LDBL_REDIR(name,proto) name proto | |
914 | #define __LDBL_REDIR1_NTH(name,proto,alias) name proto __THROW | |
915 | #define __LDBL_REDIR_NTH(name,proto) name proto __THROW | |
916 | #define __LDBL_REDIR_DECL(name) | |
917 | # 324 "/usr/include/features.h" 2 3 4 | |
918 | # 346 "/usr/include/features.h" 3 4 | |
919 | # 1 "/usr/include/gnu/stubs.h" 1 3 4 | |
920 | ||
921 | ||
922 | ||
923 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
924 | # 19 "/usr/include/bits/wordsize.h" 3 4 | |
925 | #define __WORDSIZE 32 | |
926 | # 5 "/usr/include/gnu/stubs.h" 2 3 4 | |
927 | ||
928 | ||
929 | # 1 "/usr/include/gnu/stubs-32.h" 1 3 4 | |
930 | # 10 "/usr/include/gnu/stubs-32.h" 3 4 | |
931 | #define __stub___kernel_cosl | |
932 | #define __stub___kernel_sinl | |
933 | #define __stub___kernel_tanl | |
934 | #define __stub_chflags | |
935 | #define __stub_fattach | |
936 | #define __stub_fchflags | |
937 | #define __stub_fdetach | |
938 | #define __stub_gtty | |
939 | #define __stub_inotify_add_watch | |
940 | #define __stub_inotify_init | |
941 | #define __stub_inotify_rm_watch | |
942 | #define __stub_lchmod | |
943 | #define __stub_lutimes | |
944 | #define __stub_revoke | |
945 | #define __stub_setlogin | |
946 | #define __stub_sigreturn | |
947 | #define __stub_sstk | |
948 | #define __stub_stty | |
949 | #define __stub_unshare | |
950 | # 8 "/usr/include/gnu/stubs.h" 2 3 4 | |
951 | # 347 "/usr/include/features.h" 2 3 4 | |
952 | # 23 "/usr/include/pthread.h" 2 3 4 | |
953 | # 1 "/usr/include/sched.h" 1 3 4 | |
954 | # 21 "/usr/include/sched.h" 3 4 | |
955 | #define _SCHED_H 1 | |
956 | ||
957 | ||
958 | ||
959 | ||
960 | # 1 "/usr/include/bits/types.h" 1 3 4 | |
961 | # 25 "/usr/include/bits/types.h" 3 4 | |
962 | #define _BITS_TYPES_H 1 | |
963 | ||
964 | ||
965 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
966 | # 19 "/usr/include/bits/wordsize.h" 3 4 | |
967 | #define __WORDSIZE 32 | |
968 | # 29 "/usr/include/bits/types.h" 2 3 4 | |
969 | ||
970 | #define __need_size_t | |
971 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
972 | # 188 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
973 | #define __size_t__ | |
974 | #define __SIZE_T__ | |
975 | #define _SIZE_T | |
976 | #define _SYS_SIZE_T_H | |
977 | #define _T_SIZE_ | |
978 | #define _T_SIZE | |
979 | #define __SIZE_T | |
980 | #define _SIZE_T_ | |
981 | #define _BSD_SIZE_T_ | |
982 | #define _SIZE_T_DEFINED_ | |
983 | #define _SIZE_T_DEFINED | |
984 | #define _BSD_SIZE_T_DEFINED_ | |
985 | #define _SIZE_T_DECLARED | |
986 | #define ___int_size_t_h | |
987 | #define _GCC_SIZE_T | |
988 | #define _SIZET_ | |
989 | ||
990 | ||
991 | ||
992 | #define __size_t | |
993 | ||
994 | ||
995 | ||
996 | ||
997 | ||
998 | typedef unsigned int size_t; | |
999 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
1000 | #undef __need_size_t | |
1001 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
1002 | #undef __need_NULL | |
1003 | # 32 "/usr/include/bits/types.h" 2 3 4 | |
1004 | ||
1005 | ||
1006 | typedef unsigned char __u_char; | |
1007 | typedef unsigned short int __u_short; | |
1008 | typedef unsigned int __u_int; | |
1009 | typedef unsigned long int __u_long; | |
1010 | ||
1011 | ||
1012 | typedef signed char __int8_t; | |
1013 | typedef unsigned char __uint8_t; | |
1014 | typedef signed short int __int16_t; | |
1015 | typedef unsigned short int __uint16_t; | |
1016 | typedef signed int __int32_t; | |
1017 | typedef unsigned int __uint32_t; | |
1018 | ||
1019 | ||
1020 | ||
1021 | ||
1022 | __extension__ typedef signed long long int __int64_t; | |
1023 | __extension__ typedef unsigned long long int __uint64_t; | |
1024 | ||
1025 | ||
1026 | ||
1027 | ||
1028 | ||
1029 | ||
1030 | ||
1031 | __extension__ typedef long long int __quad_t; | |
1032 | __extension__ typedef unsigned long long int __u_quad_t; | |
1033 | # 102 "/usr/include/bits/types.h" 3 4 | |
1034 | #define __S16_TYPE short int | |
1035 | #define __U16_TYPE unsigned short int | |
1036 | #define __S32_TYPE int | |
1037 | #define __U32_TYPE unsigned int | |
1038 | #define __SLONGWORD_TYPE long int | |
1039 | #define __ULONGWORD_TYPE unsigned long int | |
1040 | ||
1041 | #define __SQUAD_TYPE __quad_t | |
1042 | #define __UQUAD_TYPE __u_quad_t | |
1043 | #define __SWORD_TYPE int | |
1044 | #define __UWORD_TYPE unsigned int | |
1045 | #define __SLONG32_TYPE long int | |
1046 | #define __ULONG32_TYPE unsigned long int | |
1047 | #define __S64_TYPE __quad_t | |
1048 | #define __U64_TYPE __u_quad_t | |
1049 | ||
1050 | ||
1051 | #define __STD_TYPE __extension__ typedef | |
1052 | # 134 "/usr/include/bits/types.h" 3 4 | |
1053 | # 1 "/usr/include/bits/typesizes.h" 1 3 4 | |
1054 | # 25 "/usr/include/bits/typesizes.h" 3 4 | |
1055 | #define _BITS_TYPESIZES_H 1 | |
1056 | ||
1057 | ||
1058 | ||
1059 | ||
1060 | #define __DEV_T_TYPE __UQUAD_TYPE | |
1061 | #define __UID_T_TYPE __U32_TYPE | |
1062 | #define __GID_T_TYPE __U32_TYPE | |
1063 | #define __INO_T_TYPE __ULONGWORD_TYPE | |
1064 | #define __INO64_T_TYPE __UQUAD_TYPE | |
1065 | #define __MODE_T_TYPE __U32_TYPE | |
1066 | #define __NLINK_T_TYPE __UWORD_TYPE | |
1067 | #define __OFF_T_TYPE __SLONGWORD_TYPE | |
1068 | #define __OFF64_T_TYPE __SQUAD_TYPE | |
1069 | #define __PID_T_TYPE __S32_TYPE | |
1070 | #define __RLIM_T_TYPE __ULONGWORD_TYPE | |
1071 | #define __RLIM64_T_TYPE __UQUAD_TYPE | |
1072 | #define __BLKCNT_T_TYPE __SLONGWORD_TYPE | |
1073 | #define __BLKCNT64_T_TYPE __SQUAD_TYPE | |
1074 | #define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE | |
1075 | #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE | |
1076 | #define __FSFILCNT_T_TYPE __ULONGWORD_TYPE | |
1077 | #define __FSFILCNT64_T_TYPE __UQUAD_TYPE | |
1078 | #define __ID_T_TYPE __U32_TYPE | |
1079 | #define __CLOCK_T_TYPE __SLONGWORD_TYPE | |
1080 | #define __TIME_T_TYPE __SLONGWORD_TYPE | |
1081 | #define __USECONDS_T_TYPE __U32_TYPE | |
1082 | #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE | |
1083 | #define __DADDR_T_TYPE __S32_TYPE | |
1084 | #define __SWBLK_T_TYPE __SLONGWORD_TYPE | |
1085 | #define __KEY_T_TYPE __S32_TYPE | |
1086 | #define __CLOCKID_T_TYPE __S32_TYPE | |
1087 | #define __TIMER_T_TYPE void * | |
1088 | #define __BLKSIZE_T_TYPE __SLONGWORD_TYPE | |
1089 | #define __FSID_T_TYPE struct { int __val[2]; } | |
1090 | #define __SSIZE_T_TYPE __SWORD_TYPE | |
1091 | ||
1092 | ||
1093 | #define __FD_SETSIZE 1024 | |
1094 | # 135 "/usr/include/bits/types.h" 2 3 4 | |
1095 | ||
1096 | ||
1097 | __extension__ typedef __u_quad_t __dev_t; | |
1098 | __extension__ typedef unsigned int __uid_t; | |
1099 | __extension__ typedef unsigned int __gid_t; | |
1100 | __extension__ typedef unsigned long int __ino_t; | |
1101 | __extension__ typedef __u_quad_t __ino64_t; | |
1102 | __extension__ typedef unsigned int __mode_t; | |
1103 | __extension__ typedef unsigned int __nlink_t; | |
1104 | __extension__ typedef long int __off_t; | |
1105 | __extension__ typedef __quad_t __off64_t; | |
1106 | __extension__ typedef int __pid_t; | |
1107 | __extension__ typedef struct { int __val[2]; } __fsid_t; | |
1108 | __extension__ typedef long int __clock_t; | |
1109 | __extension__ typedef unsigned long int __rlim_t; | |
1110 | __extension__ typedef __u_quad_t __rlim64_t; | |
1111 | __extension__ typedef unsigned int __id_t; | |
1112 | __extension__ typedef long int __time_t; | |
1113 | __extension__ typedef unsigned int __useconds_t; | |
1114 | __extension__ typedef long int __suseconds_t; | |
1115 | ||
1116 | __extension__ typedef int __daddr_t; | |
1117 | __extension__ typedef long int __swblk_t; | |
1118 | __extension__ typedef int __key_t; | |
1119 | ||
1120 | ||
1121 | __extension__ typedef int __clockid_t; | |
1122 | ||
1123 | ||
1124 | __extension__ typedef void * __timer_t; | |
1125 | ||
1126 | ||
1127 | __extension__ typedef long int __blksize_t; | |
1128 | ||
1129 | ||
1130 | ||
1131 | ||
1132 | __extension__ typedef long int __blkcnt_t; | |
1133 | __extension__ typedef __quad_t __blkcnt64_t; | |
1134 | ||
1135 | ||
1136 | __extension__ typedef unsigned long int __fsblkcnt_t; | |
1137 | __extension__ typedef __u_quad_t __fsblkcnt64_t; | |
1138 | ||
1139 | ||
1140 | __extension__ typedef unsigned long int __fsfilcnt_t; | |
1141 | __extension__ typedef __u_quad_t __fsfilcnt64_t; | |
1142 | ||
1143 | __extension__ typedef int __ssize_t; | |
1144 | ||
1145 | ||
1146 | ||
1147 | typedef __off64_t __loff_t; | |
1148 | typedef __quad_t *__qaddr_t; | |
1149 | typedef char *__caddr_t; | |
1150 | ||
1151 | ||
1152 | __extension__ typedef int __intptr_t; | |
1153 | ||
1154 | ||
1155 | __extension__ typedef unsigned int __socklen_t; | |
1156 | ||
1157 | ||
1158 | #undef __STD_TYPE | |
1159 | # 27 "/usr/include/sched.h" 2 3 4 | |
1160 | ||
1161 | #define __need_timespec | |
1162 | # 1 "/usr/include/time.h" 1 3 4 | |
1163 | # 68 "/usr/include/time.h" 3 4 | |
1164 | #undef __need_clock_t | |
1165 | # 84 "/usr/include/time.h" 3 4 | |
1166 | #undef __need_time_t | |
1167 | # 96 "/usr/include/time.h" 3 4 | |
1168 | #undef __clockid_time_t | |
1169 | # 108 "/usr/include/time.h" 3 4 | |
1170 | #undef __need_timer_t | |
1171 | ||
1172 | ||
1173 | ||
1174 | ||
1175 | ||
1176 | ||
1177 | #define __timespec_defined 1 | |
1178 | ||
1179 | ||
1180 | ||
1181 | ||
1182 | ||
1183 | struct timespec | |
1184 | { | |
1185 | __time_t tv_sec; | |
1186 | long int tv_nsec; | |
1187 | }; | |
1188 | ||
1189 | ||
1190 | #undef __need_timespec | |
1191 | # 30 "/usr/include/sched.h" 2 3 4 | |
1192 | ||
1193 | ||
1194 | # 1 "/usr/include/bits/sched.h" 1 3 4 | |
1195 | # 29 "/usr/include/bits/sched.h" 3 4 | |
1196 | #define SCHED_OTHER 0 | |
1197 | #define SCHED_FIFO 1 | |
1198 | #define SCHED_RR 2 | |
1199 | ||
1200 | #define SCHED_BATCH 3 | |
1201 | ||
1202 | ||
1203 | ||
1204 | ||
1205 | #define CSIGNAL 0x000000ff | |
1206 | #define CLONE_VM 0x00000100 | |
1207 | #define CLONE_FS 0x00000200 | |
1208 | #define CLONE_FILES 0x00000400 | |
1209 | #define CLONE_SIGHAND 0x00000800 | |
1210 | #define CLONE_PTRACE 0x00002000 | |
1211 | #define CLONE_VFORK 0x00004000 | |
1212 | ||
1213 | #define CLONE_PARENT 0x00008000 | |
1214 | ||
1215 | #define CLONE_THREAD 0x00010000 | |
1216 | #define CLONE_NEWNS 0x00020000 | |
1217 | #define CLONE_SYSVSEM 0x00040000 | |
1218 | #define CLONE_SETTLS 0x00080000 | |
1219 | #define CLONE_PARENT_SETTID 0x00100000 | |
1220 | ||
1221 | #define CLONE_CHILD_CLEARTID 0x00200000 | |
1222 | ||
1223 | #define CLONE_DETACHED 0x00400000 | |
1224 | #define CLONE_UNTRACED 0x00800000 | |
1225 | ||
1226 | #define CLONE_CHILD_SETTID 0x01000000 | |
1227 | ||
1228 | #define CLONE_STOPPED 0x02000000 | |
1229 | ||
1230 | ||
1231 | ||
1232 | struct sched_param | |
1233 | { | |
1234 | int __sched_priority; | |
1235 | }; | |
1236 | ||
1237 | ||
1238 | ||
1239 | ||
1240 | ||
1241 | extern int clone (int (*__fn) (void *__arg), void *__child_stack, | |
1242 | int __flags, void *__arg, ...) __attribute__ ((__nothrow__)); | |
1243 | ||
1244 | ||
1245 | extern int unshare (int __flags) __attribute__ ((__nothrow__)); | |
1246 | ||
1247 | ||
1248 | ||
1249 | ||
1250 | ||
1251 | ||
1252 | ||
1253 | ||
1254 | #define __defined_schedparam 1 | |
1255 | ||
1256 | struct __sched_param | |
1257 | { | |
1258 | int __sched_priority; | |
1259 | }; | |
1260 | #undef __need_schedparam | |
1261 | ||
1262 | ||
1263 | ||
1264 | ||
1265 | #define __cpu_set_t_defined | |
1266 | ||
1267 | #define __CPU_SETSIZE 1024 | |
1268 | #define __NCPUBITS (8 * sizeof (__cpu_mask)) | |
1269 | ||
1270 | ||
1271 | typedef unsigned long int __cpu_mask; | |
1272 | ||
1273 | ||
1274 | #define __CPUELT(cpu) ((cpu) / __NCPUBITS) | |
1275 | #define __CPUMASK(cpu) ((__cpu_mask) 1 << ((cpu) % __NCPUBITS)) | |
1276 | ||
1277 | ||
1278 | typedef struct | |
1279 | { | |
1280 | __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; | |
1281 | } cpu_set_t; | |
1282 | ||
1283 | ||
1284 | #define __CPU_ZERO(cpusetp) do { unsigned int __i; cpu_set_t *__arr = (cpusetp); for (__i = 0; __i < sizeof (cpu_set_t) / sizeof (__cpu_mask); ++__i) __arr->__bits[__i] = 0; } while (0) | |
1285 | ||
1286 | ||
1287 | ||
1288 | ||
1289 | ||
1290 | ||
1291 | #define __CPU_SET(cpu,cpusetp) ((cpusetp)->__bits[__CPUELT (cpu)] |= __CPUMASK (cpu)) | |
1292 | ||
1293 | #define __CPU_CLR(cpu,cpusetp) ((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu)) | |
1294 | ||
1295 | #define __CPU_ISSET(cpu,cpusetp) (((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0) | |
1296 | # 33 "/usr/include/sched.h" 2 3 4 | |
1297 | ||
1298 | #define sched_priority __sched_priority | |
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param) | |
1305 | __attribute__ ((__nothrow__)); | |
1306 | ||
1307 | ||
1308 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__)); | |
1309 | ||
1310 | ||
1311 | extern int sched_setscheduler (__pid_t __pid, int __policy, | |
1312 | __const struct sched_param *__param) __attribute__ ((__nothrow__)); | |
1313 | ||
1314 | ||
1315 | extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__)); | |
1316 | ||
1317 | ||
1318 | extern int sched_yield (void) __attribute__ ((__nothrow__)); | |
1319 | ||
1320 | ||
1321 | extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__)); | |
1322 | ||
1323 | ||
1324 | extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__)); | |
1325 | ||
1326 | ||
1327 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__)); | |
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | #define CPU_SETSIZE __CPU_SETSIZE | |
1333 | #define CPU_SET(cpu,cpusetp) __CPU_SET (cpu, cpusetp) | |
1334 | #define CPU_CLR(cpu,cpusetp) __CPU_CLR (cpu, cpusetp) | |
1335 | #define CPU_ISSET(cpu,cpusetp) __CPU_ISSET (cpu, cpusetp) | |
1336 | #define CPU_ZERO(cpusetp) __CPU_ZERO (cpusetp) | |
1337 | ||
1338 | ||
1339 | ||
1340 | extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, | |
1341 | __const cpu_set_t *__cpuset) __attribute__ ((__nothrow__)); | |
1342 | ||
1343 | ||
1344 | extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, | |
1345 | cpu_set_t *__cpuset) __attribute__ ((__nothrow__)); | |
1346 | ||
1347 | ||
1348 | ||
1349 | # 24 "/usr/include/pthread.h" 2 3 4 | |
1350 | # 1 "/usr/include/time.h" 1 3 4 | |
1351 | # 28 "/usr/include/time.h" 3 4 | |
1352 | #define _TIME_H 1 | |
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
1361 | #define __need_size_t | |
1362 | #define __need_NULL | |
1363 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
1364 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
1365 | #undef __need_size_t | |
1366 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
1367 | #undef NULL | |
1368 | ||
1369 | ||
1370 | ||
1371 | ||
1372 | #define NULL ((void *)0) | |
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
1378 | #undef __need_NULL | |
1379 | # 40 "/usr/include/time.h" 2 3 4 | |
1380 | ||
1381 | ||
1382 | ||
1383 | # 1 "/usr/include/bits/time.h" 1 3 4 | |
1384 | # 26 "/usr/include/bits/time.h" 3 4 | |
1385 | #define _BITS_TIME_H 1 | |
1386 | ||
1387 | ||
1388 | ||
1389 | ||
1390 | ||
1391 | ||
1392 | ||
1393 | #define CLOCKS_PER_SEC 1000000l | |
1394 | # 46 "/usr/include/bits/time.h" 3 4 | |
1395 | #define CLOCK_REALTIME 0 | |
1396 | ||
1397 | #define CLOCK_MONOTONIC 1 | |
1398 | ||
1399 | #define CLOCK_PROCESS_CPUTIME_ID 2 | |
1400 | ||
1401 | #define CLOCK_THREAD_CPUTIME_ID 3 | |
1402 | ||
1403 | ||
1404 | #define TIMER_ABSTIME 1 | |
1405 | # 44 "/usr/include/time.h" 2 3 4 | |
1406 | # 55 "/usr/include/time.h" 3 4 | |
1407 | #define __clock_t_defined 1 | |
1408 | ||
1409 | ||
1410 | ||
1411 | ||
1412 | ||
1413 | typedef __clock_t clock_t; | |
1414 | ||
1415 | ||
1416 | ||
1417 | ||
1418 | ||
1419 | ||
1420 | #undef __need_clock_t | |
1421 | ||
1422 | ||
1423 | #define __time_t_defined 1 | |
1424 | ||
1425 | ||
1426 | ||
1427 | ||
1428 | ||
1429 | typedef __time_t time_t; | |
1430 | ||
1431 | ||
1432 | ||
1433 | ||
1434 | ||
1435 | ||
1436 | #undef __need_time_t | |
1437 | ||
1438 | ||
1439 | ||
1440 | #define __clockid_t_defined 1 | |
1441 | ||
1442 | ||
1443 | ||
1444 | ||
1445 | typedef __clockid_t clockid_t; | |
1446 | ||
1447 | ||
1448 | #undef __clockid_time_t | |
1449 | ||
1450 | ||
1451 | ||
1452 | #define __timer_t_defined 1 | |
1453 | ||
1454 | ||
1455 | ||
1456 | ||
1457 | typedef __timer_t timer_t; | |
1458 | ||
1459 | ||
1460 | #undef __need_timer_t | |
1461 | # 128 "/usr/include/time.h" 3 4 | |
1462 | #undef __need_timespec | |
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | struct tm | |
1469 | { | |
1470 | int tm_sec; | |
1471 | int tm_min; | |
1472 | int tm_hour; | |
1473 | int tm_mday; | |
1474 | int tm_mon; | |
1475 | int tm_year; | |
1476 | int tm_wday; | |
1477 | int tm_yday; | |
1478 | int tm_isdst; | |
1479 | ||
1480 | ||
1481 | long int tm_gmtoff; | |
1482 | __const char *tm_zone; | |
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | }; | |
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | struct itimerspec | |
1497 | { | |
1498 | struct timespec it_interval; | |
1499 | struct timespec it_value; | |
1500 | }; | |
1501 | ||
1502 | ||
1503 | struct sigevent; | |
1504 | ||
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | typedef __pid_t pid_t; | |
1510 | #define __pid_t_defined | |
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | extern clock_t clock (void) __attribute__ ((__nothrow__)); | |
1519 | ||
1520 | ||
1521 | extern time_t time (time_t *__timer) __attribute__ ((__nothrow__)); | |
1522 | ||
1523 | ||
1524 | extern double difftime (time_t __time1, time_t __time0) | |
1525 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
1526 | ||
1527 | ||
1528 | extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__)); | |
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | extern size_t strftime (char *__restrict __s, size_t __maxsize, | |
1535 | __const char *__restrict __format, | |
1536 | __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); | |
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | extern char *strptime (__const char *__restrict __s, | |
1543 | __const char *__restrict __fmt, struct tm *__tp) | |
1544 | __attribute__ ((__nothrow__)); | |
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | # 1 "/usr/include/xlocale.h" 1 3 4 | |
1551 | # 22 "/usr/include/xlocale.h" 3 4 | |
1552 | #define _XLOCALE_H 1 | |
1553 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | typedef struct __locale_struct | |
1559 | { | |
1560 | ||
1561 | struct locale_data *__locales[13]; | |
1562 | ||
1563 | ||
1564 | const unsigned short int *__ctype_b; | |
1565 | const int *__ctype_tolower; | |
1566 | const int *__ctype_toupper; | |
1567 | ||
1568 | ||
1569 | const char *__names[13]; | |
1570 | } *__locale_t; | |
1571 | # 217 "/usr/include/time.h" 2 3 4 | |
1572 | ||
1573 | extern size_t strftime_l (char *__restrict __s, size_t __maxsize, | |
1574 | __const char *__restrict __format, | |
1575 | __const struct tm *__restrict __tp, | |
1576 | __locale_t __loc) __attribute__ ((__nothrow__)); | |
1577 | ||
1578 | extern char *strptime_l (__const char *__restrict __s, | |
1579 | __const char *__restrict __fmt, struct tm *__tp, | |
1580 | __locale_t __loc) __attribute__ ((__nothrow__)); | |
1581 | ||
1582 | ||
1583 | ||
1584 | ||
1585 | ||
1586 | ||
1587 | extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__)); | |
1588 | ||
1589 | ||
1590 | ||
1591 | extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__)); | |
1592 | ||
1593 | ||
1594 | ||
1595 | ||
1596 | ||
1597 | extern struct tm *gmtime_r (__const time_t *__restrict __timer, | |
1598 | struct tm *__restrict __tp) __attribute__ ((__nothrow__)); | |
1599 | ||
1600 | ||
1601 | ||
1602 | extern struct tm *localtime_r (__const time_t *__restrict __timer, | |
1603 | struct tm *__restrict __tp) __attribute__ ((__nothrow__)); | |
1604 | ||
1605 | ||
1606 | ||
1607 | ||
1608 | ||
1609 | extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__)); | |
1610 | ||
1611 | ||
1612 | extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__)); | |
1613 | ||
1614 | ||
1615 | ||
1616 | ||
1617 | ||
1618 | ||
1619 | ||
1620 | extern char *asctime_r (__const struct tm *__restrict __tp, | |
1621 | char *__restrict __buf) __attribute__ ((__nothrow__)); | |
1622 | ||
1623 | ||
1624 | extern char *ctime_r (__const time_t *__restrict __timer, | |
1625 | char *__restrict __buf) __attribute__ ((__nothrow__)); | |
1626 | ||
1627 | ||
1628 | ||
1629 | ||
1630 | extern char *__tzname[2]; | |
1631 | extern int __daylight; | |
1632 | extern long int __timezone; | |
1633 | ||
1634 | ||
1635 | ||
1636 | ||
1637 | extern char *tzname[2]; | |
1638 | ||
1639 | ||
1640 | ||
1641 | extern void tzset (void) __attribute__ ((__nothrow__)); | |
1642 | ||
1643 | ||
1644 | ||
1645 | extern int daylight; | |
1646 | extern long int timezone; | |
1647 | ||
1648 | ||
1649 | ||
1650 | ||
1651 | ||
1652 | extern int stime (__const time_t *__when) __attribute__ ((__nothrow__)); | |
1653 | ||
1654 | ||
1655 | ||
1656 | ||
1657 | ||
1658 | #define __isleap(year) ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) | |
1659 | # 312 "/usr/include/time.h" 3 4 | |
1660 | extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__)); | |
1661 | ||
1662 | ||
1663 | extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__)); | |
1664 | ||
1665 | ||
1666 | extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
1667 | # 327 "/usr/include/time.h" 3 4 | |
1668 | extern int nanosleep (__const struct timespec *__requested_time, | |
1669 | struct timespec *__remaining); | |
1670 | ||
1671 | ||
1672 | ||
1673 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__)); | |
1674 | ||
1675 | ||
1676 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__)); | |
1677 | ||
1678 | ||
1679 | extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) | |
1680 | __attribute__ ((__nothrow__)); | |
1681 | ||
1682 | ||
1683 | ||
1684 | ||
1685 | ||
1686 | ||
1687 | extern int clock_nanosleep (clockid_t __clock_id, int __flags, | |
1688 | __const struct timespec *__req, | |
1689 | struct timespec *__rem); | |
1690 | ||
1691 | ||
1692 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__)); | |
1693 | ||
1694 | ||
1695 | ||
1696 | ||
1697 | extern int timer_create (clockid_t __clock_id, | |
1698 | struct sigevent *__restrict __evp, | |
1699 | timer_t *__restrict __timerid) __attribute__ ((__nothrow__)); | |
1700 | ||
1701 | ||
1702 | extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__)); | |
1703 | ||
1704 | ||
1705 | extern int timer_settime (timer_t __timerid, int __flags, | |
1706 | __const struct itimerspec *__restrict __value, | |
1707 | struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__)); | |
1708 | ||
1709 | ||
1710 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) | |
1711 | __attribute__ ((__nothrow__)); | |
1712 | ||
1713 | ||
1714 | extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__)); | |
1715 | # 389 "/usr/include/time.h" 3 4 | |
1716 | extern int getdate_err; | |
1717 | # 398 "/usr/include/time.h" 3 4 | |
1718 | extern struct tm *getdate (__const char *__string); | |
1719 | # 412 "/usr/include/time.h" 3 4 | |
1720 | extern int getdate_r (__const char *__restrict __string, | |
1721 | struct tm *__restrict __resbufp); | |
1722 | ||
1723 | ||
1724 | ||
1725 | # 25 "/usr/include/pthread.h" 2 3 4 | |
1726 | ||
1727 | #define __need_sigset_t | |
1728 | # 1 "/usr/include/signal.h" 1 3 4 | |
1729 | # 31 "/usr/include/signal.h" 3 4 | |
1730 | ||
1731 | ||
1732 | # 1 "/usr/include/bits/sigset.h" 1 3 4 | |
1733 | # 21 "/usr/include/bits/sigset.h" 3 4 | |
1734 | #define _SIGSET_H_types 1 | |
1735 | ||
1736 | typedef int __sig_atomic_t; | |
1737 | ||
1738 | ||
1739 | ||
1740 | #define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int))) | |
1741 | typedef struct | |
1742 | { | |
1743 | unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; | |
1744 | } __sigset_t; | |
1745 | # 34 "/usr/include/signal.h" 2 3 4 | |
1746 | # 49 "/usr/include/signal.h" 3 4 | |
1747 | #define __sigset_t_defined | |
1748 | typedef __sigset_t sigset_t; | |
1749 | ||
1750 | #undef __need_sigset_t | |
1751 | # 400 "/usr/include/signal.h" 3 4 | |
1752 | ||
1753 | # 28 "/usr/include/pthread.h" 2 3 4 | |
1754 | # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 | |
1755 | # 20 "/usr/include/bits/pthreadtypes.h" 3 4 | |
1756 | #define _BITS_PTHREADTYPES_H 1 | |
1757 | ||
1758 | #define __SIZEOF_PTHREAD_ATTR_T 36 | |
1759 | #define __SIZEOF_PTHREAD_MUTEX_T 24 | |
1760 | #define __SIZEOF_PTHREAD_MUTEXATTR_T 4 | |
1761 | #define __SIZEOF_PTHREAD_COND_T 48 | |
1762 | #define __SIZEOF_PTHREAD_COND_COMPAT_T 12 | |
1763 | #define __SIZEOF_PTHREAD_CONDATTR_T 4 | |
1764 | #define __SIZEOF_PTHREAD_RWLOCK_T 32 | |
1765 | #define __SIZEOF_PTHREAD_RWLOCKATTR_T 8 | |
1766 | #define __SIZEOF_PTHREAD_BARRIER_T 20 | |
1767 | #define __SIZEOF_PTHREAD_BARRIERATTR_T 4 | |
1768 | ||
1769 | ||
1770 | ||
1771 | ||
1772 | typedef unsigned long int pthread_t; | |
1773 | ||
1774 | ||
1775 | typedef union | |
1776 | { | |
1777 | char __size[36]; | |
1778 | long int __align; | |
1779 | } pthread_attr_t; | |
1780 | ||
1781 | ||
1782 | typedef struct __pthread_internal_slist | |
1783 | { | |
1784 | struct __pthread_internal_slist *__next; | |
1785 | } __pthread_slist_t; | |
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | typedef union | |
1791 | { | |
1792 | struct __pthread_mutex_s | |
1793 | { | |
1794 | int __lock; | |
1795 | unsigned int __count; | |
1796 | int __owner; | |
1797 | ||
1798 | ||
1799 | int __kind; | |
1800 | unsigned int __nusers; | |
1801 | __extension__ union | |
1802 | { | |
1803 | int __spins; | |
1804 | __pthread_slist_t __list; | |
1805 | }; | |
1806 | } __data; | |
1807 | char __size[24]; | |
1808 | long int __align; | |
1809 | } pthread_mutex_t; | |
1810 | ||
1811 | typedef union | |
1812 | { | |
1813 | char __size[4]; | |
1814 | long int __align; | |
1815 | } pthread_mutexattr_t; | |
1816 | ||
1817 | ||
1818 | ||
1819 | ||
1820 | typedef union | |
1821 | { | |
1822 | struct | |
1823 | { | |
1824 | int __lock; | |
1825 | unsigned int __futex; | |
1826 | __extension__ unsigned long long int __total_seq; | |
1827 | __extension__ unsigned long long int __wakeup_seq; | |
1828 | __extension__ unsigned long long int __woken_seq; | |
1829 | void *__mutex; | |
1830 | unsigned int __nwaiters; | |
1831 | unsigned int __broadcast_seq; | |
1832 | } __data; | |
1833 | char __size[48]; | |
1834 | __extension__ long long int __align; | |
1835 | } pthread_cond_t; | |
1836 | ||
1837 | typedef union | |
1838 | { | |
1839 | char __size[4]; | |
1840 | long int __align; | |
1841 | } pthread_condattr_t; | |
1842 | ||
1843 | ||
1844 | ||
1845 | typedef unsigned int pthread_key_t; | |
1846 | ||
1847 | ||
1848 | ||
1849 | typedef int pthread_once_t; | |
1850 | ||
1851 | ||
1852 | ||
1853 | ||
1854 | ||
1855 | typedef union | |
1856 | { | |
1857 | struct | |
1858 | { | |
1859 | int __lock; | |
1860 | unsigned int __nr_readers; | |
1861 | unsigned int __readers_wakeup; | |
1862 | unsigned int __writer_wakeup; | |
1863 | unsigned int __nr_readers_queued; | |
1864 | unsigned int __nr_writers_queued; | |
1865 | ||
1866 | ||
1867 | unsigned int __flags; | |
1868 | int __writer; | |
1869 | } __data; | |
1870 | char __size[32]; | |
1871 | long int __align; | |
1872 | } pthread_rwlock_t; | |
1873 | ||
1874 | typedef union | |
1875 | { | |
1876 | char __size[8]; | |
1877 | long int __align; | |
1878 | } pthread_rwlockattr_t; | |
1879 | ||
1880 | ||
1881 | ||
1882 | ||
1883 | ||
1884 | typedef volatile int pthread_spinlock_t; | |
1885 | ||
1886 | ||
1887 | ||
1888 | ||
1889 | typedef union | |
1890 | { | |
1891 | char __size[20]; | |
1892 | long int __align; | |
1893 | } pthread_barrier_t; | |
1894 | ||
1895 | typedef union | |
1896 | { | |
1897 | char __size[4]; | |
1898 | int __align; | |
1899 | } pthread_barrierattr_t; | |
1900 | ||
1901 | ||
1902 | ||
1903 | ||
1904 | #define __cleanup_fct_attribute __attribute__ ((__regparm__ (1))) | |
1905 | # 29 "/usr/include/pthread.h" 2 3 4 | |
1906 | # 1 "/usr/include/bits/setjmp.h" 1 3 4 | |
1907 | # 22 "/usr/include/bits/setjmp.h" 3 4 | |
1908 | #define _BITS_SETJMP_H 1 | |
1909 | ||
1910 | ||
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | typedef int __jmp_buf[6]; | |
1916 | # 30 "/usr/include/pthread.h" 2 3 4 | |
1917 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
1918 | # 19 "/usr/include/bits/wordsize.h" 3 4 | |
1919 | #define __WORDSIZE 32 | |
1920 | # 31 "/usr/include/pthread.h" 2 3 4 | |
1921 | ||
1922 | ||
1923 | ||
1924 | enum | |
1925 | { | |
1926 | PTHREAD_CREATE_JOINABLE, | |
1927 | #define PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE | |
1928 | PTHREAD_CREATE_DETACHED | |
1929 | #define PTHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED | |
1930 | }; | |
1931 | ||
1932 | ||
1933 | ||
1934 | enum | |
1935 | { | |
1936 | PTHREAD_MUTEX_TIMED_NP, | |
1937 | PTHREAD_MUTEX_RECURSIVE_NP, | |
1938 | PTHREAD_MUTEX_ERRORCHECK_NP, | |
1939 | PTHREAD_MUTEX_ADAPTIVE_NP | |
1940 | ||
1941 | , | |
1942 | PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, | |
1943 | PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, | |
1944 | PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, | |
1945 | PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL | |
1946 | ||
1947 | ||
1948 | ||
1949 | , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP | |
1950 | ||
1951 | }; | |
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | enum | |
1957 | { | |
1958 | PTHREAD_MUTEX_STALLED_NP, | |
1959 | PTHREAD_MUTEX_ROBUST_NP | |
1960 | }; | |
1961 | ||
1962 | ||
1963 | ||
1964 | ||
1965 | ||
1966 | enum | |
1967 | { | |
1968 | PTHREAD_PRIO_NONE, | |
1969 | PTHREAD_PRIO_INHERIT, | |
1970 | PTHREAD_PRIO_PROTECT | |
1971 | }; | |
1972 | # 98 "/usr/include/pthread.h" 3 4 | |
1973 | #define PTHREAD_MUTEX_INITIALIZER { { 0, 0, 0, 0, 0, { 0 } } } | |
1974 | ||
1975 | ||
1976 | #define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } } | |
1977 | ||
1978 | #define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, { 0 } } } | |
1979 | ||
1980 | #define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, { 0 } } } | |
1981 | ||
1982 | ||
1983 | ||
1984 | ||
1985 | ||
1986 | ||
1987 | ||
1988 | enum | |
1989 | { | |
1990 | PTHREAD_RWLOCK_PREFER_READER_NP, | |
1991 | PTHREAD_RWLOCK_PREFER_WRITER_NP, | |
1992 | PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, | |
1993 | PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP | |
1994 | }; | |
1995 | ||
1996 | ||
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | #define PTHREAD_RWLOCK_INITIALIZER { { 0, 0, 0, 0, 0, 0, 0, 0 } } | |
2002 | # 135 "/usr/include/pthread.h" 3 4 | |
2003 | #define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 0 } } | |
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | ||
2011 | enum | |
2012 | { | |
2013 | PTHREAD_INHERIT_SCHED, | |
2014 | #define PTHREAD_INHERIT_SCHED PTHREAD_INHERIT_SCHED | |
2015 | PTHREAD_EXPLICIT_SCHED | |
2016 | #define PTHREAD_EXPLICIT_SCHED PTHREAD_EXPLICIT_SCHED | |
2017 | }; | |
2018 | ||
2019 | ||
2020 | ||
2021 | enum | |
2022 | { | |
2023 | PTHREAD_SCOPE_SYSTEM, | |
2024 | #define PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_SYSTEM | |
2025 | PTHREAD_SCOPE_PROCESS | |
2026 | #define PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_PROCESS | |
2027 | }; | |
2028 | ||
2029 | ||
2030 | ||
2031 | enum | |
2032 | { | |
2033 | PTHREAD_PROCESS_PRIVATE, | |
2034 | #define PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE | |
2035 | PTHREAD_PROCESS_SHARED | |
2036 | #define PTHREAD_PROCESS_SHARED PTHREAD_PROCESS_SHARED | |
2037 | }; | |
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | #define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } } | |
2043 | ||
2044 | ||
2045 | ||
2046 | struct _pthread_cleanup_buffer | |
2047 | { | |
2048 | void (*__routine) (void *); | |
2049 | void *__arg; | |
2050 | int __canceltype; | |
2051 | struct _pthread_cleanup_buffer *__prev; | |
2052 | }; | |
2053 | ||
2054 | ||
2055 | enum | |
2056 | { | |
2057 | PTHREAD_CANCEL_ENABLE, | |
2058 | #define PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE | |
2059 | PTHREAD_CANCEL_DISABLE | |
2060 | #define PTHREAD_CANCEL_DISABLE PTHREAD_CANCEL_DISABLE | |
2061 | }; | |
2062 | enum | |
2063 | { | |
2064 | PTHREAD_CANCEL_DEFERRED, | |
2065 | #define PTHREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED | |
2066 | PTHREAD_CANCEL_ASYNCHRONOUS | |
2067 | #define PTHREAD_CANCEL_ASYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS | |
2068 | }; | |
2069 | #define PTHREAD_CANCELED ((void *) -1) | |
2070 | ||
2071 | ||
2072 | ||
2073 | #define PTHREAD_ONCE_INIT 0 | |
2074 | ||
2075 | ||
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | #define PTHREAD_BARRIER_SERIAL_THREAD -1 | |
2081 | ||
2082 | ||
2083 | ||
2084 | ||
2085 | ||
2086 | ||
2087 | ||
2088 | ||
2089 | extern int pthread_create (pthread_t *__restrict __newthread, | |
2090 | __const pthread_attr_t *__restrict __attr, | |
2091 | void *(*__start_routine) (void *), | |
2092 | void *__restrict __arg) __attribute__ ((__nothrow__)); | |
2093 | ||
2094 | ||
2095 | ||
2096 | ||
2097 | ||
2098 | extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); | |
2099 | ||
2100 | ||
2101 | ||
2102 | ||
2103 | ||
2104 | ||
2105 | ||
2106 | extern int pthread_join (pthread_t __th, void **__thread_return); | |
2107 | ||
2108 | ||
2109 | ||
2110 | ||
2111 | extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) __attribute__ ((__nothrow__)); | |
2112 | ||
2113 | ||
2114 | ||
2115 | ||
2116 | ||
2117 | ||
2118 | ||
2119 | extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, | |
2120 | __const struct timespec *__abstime); | |
2121 | ||
2122 | ||
2123 | ||
2124 | ||
2125 | ||
2126 | ||
2127 | extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__)); | |
2128 | ||
2129 | ||
2130 | ||
2131 | extern pthread_t pthread_self (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
2132 | ||
2133 | ||
2134 | extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__)); | |
2135 | ||
2136 | ||
2137 | ||
2138 | ||
2139 | ||
2140 | ||
2141 | ||
2142 | extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__)); | |
2143 | ||
2144 | ||
2145 | extern int pthread_attr_destroy (pthread_attr_t *__attr) __attribute__ ((__nothrow__)); | |
2146 | ||
2147 | ||
2148 | extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr, | |
2149 | int *__detachstate) __attribute__ ((__nothrow__)); | |
2150 | ||
2151 | ||
2152 | extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, | |
2153 | int __detachstate) __attribute__ ((__nothrow__)); | |
2154 | ||
2155 | ||
2156 | ||
2157 | extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr, | |
2158 | size_t *__guardsize) __attribute__ ((__nothrow__)); | |
2159 | ||
2160 | ||
2161 | extern int pthread_attr_setguardsize (pthread_attr_t *__attr, | |
2162 | size_t __guardsize) __attribute__ ((__nothrow__)); | |
2163 | ||
2164 | ||
2165 | ||
2166 | extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict | |
2167 | __attr, | |
2168 | struct sched_param *__restrict __param) | |
2169 | __attribute__ ((__nothrow__)); | |
2170 | ||
2171 | ||
2172 | extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, | |
2173 | __const struct sched_param *__restrict | |
2174 | __param) __attribute__ ((__nothrow__)); | |
2175 | ||
2176 | ||
2177 | extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict | |
2178 | __attr, int *__restrict __policy) | |
2179 | __attribute__ ((__nothrow__)); | |
2180 | ||
2181 | ||
2182 | extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) | |
2183 | __attribute__ ((__nothrow__)); | |
2184 | ||
2185 | ||
2186 | extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict | |
2187 | __attr, int *__restrict __inherit) | |
2188 | __attribute__ ((__nothrow__)); | |
2189 | ||
2190 | ||
2191 | extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, | |
2192 | int __inherit) __attribute__ ((__nothrow__)); | |
2193 | ||
2194 | ||
2195 | ||
2196 | extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr, | |
2197 | int *__restrict __scope) __attribute__ ((__nothrow__)); | |
2198 | ||
2199 | ||
2200 | extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) | |
2201 | __attribute__ ((__nothrow__)); | |
2202 | ||
2203 | ||
2204 | extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict | |
2205 | __attr, void **__restrict __stackaddr) | |
2206 | __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); | |
2207 | ||
2208 | ||
2209 | ||
2210 | ||
2211 | ||
2212 | extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, | |
2213 | void *__stackaddr) | |
2214 | __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); | |
2215 | ||
2216 | ||
2217 | extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict | |
2218 | __attr, size_t *__restrict __stacksize) | |
2219 | __attribute__ ((__nothrow__)); | |
2220 | ||
2221 | ||
2222 | ||
2223 | ||
2224 | extern int pthread_attr_setstacksize (pthread_attr_t *__attr, | |
2225 | size_t __stacksize) __attribute__ ((__nothrow__)); | |
2226 | ||
2227 | ||
2228 | ||
2229 | extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr, | |
2230 | void **__restrict __stackaddr, | |
2231 | size_t *__restrict __stacksize) __attribute__ ((__nothrow__)); | |
2232 | ||
2233 | ||
2234 | ||
2235 | ||
2236 | extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, | |
2237 | size_t __stacksize) __attribute__ ((__nothrow__)); | |
2238 | ||
2239 | ||
2240 | ||
2241 | ||
2242 | ||
2243 | extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, | |
2244 | size_t __cpusetsize, | |
2245 | __const cpu_set_t *__cpuset) __attribute__ ((__nothrow__)); | |
2246 | ||
2247 | ||
2248 | ||
2249 | extern int pthread_attr_getaffinity_np (__const pthread_attr_t *__attr, | |
2250 | size_t __cpusetsize, | |
2251 | cpu_set_t *__cpuset) __attribute__ ((__nothrow__)); | |
2252 | ||
2253 | ||
2254 | ||
2255 | ||
2256 | ||
2257 | extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __attribute__ ((__nothrow__)); | |
2258 | ||
2259 | ||
2260 | ||
2261 | ||
2262 | ||
2263 | ||
2264 | ||
2265 | extern int pthread_setschedparam (pthread_t __target_thread, int __policy, | |
2266 | __const struct sched_param *__param) | |
2267 | __attribute__ ((__nothrow__)); | |
2268 | ||
2269 | ||
2270 | extern int pthread_getschedparam (pthread_t __target_thread, | |
2271 | int *__restrict __policy, | |
2272 | struct sched_param *__restrict __param) | |
2273 | __attribute__ ((__nothrow__)); | |
2274 | ||
2275 | ||
2276 | extern int pthread_setschedprio (pthread_t __target_thread, int __prio) | |
2277 | __attribute__ ((__nothrow__)); | |
2278 | ||
2279 | ||
2280 | ||
2281 | ||
2282 | extern int pthread_getconcurrency (void) __attribute__ ((__nothrow__)); | |
2283 | ||
2284 | ||
2285 | extern int pthread_setconcurrency (int __level) __attribute__ ((__nothrow__)); | |
2286 | ||
2287 | ||
2288 | ||
2289 | ||
2290 | ||
2291 | ||
2292 | ||
2293 | extern int pthread_yield (void) __attribute__ ((__nothrow__)); | |
2294 | ||
2295 | ||
2296 | ||
2297 | ||
2298 | extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, | |
2299 | __const cpu_set_t *__cpuset) __attribute__ ((__nothrow__)); | |
2300 | ||
2301 | ||
2302 | extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, | |
2303 | cpu_set_t *__cpuset) __attribute__ ((__nothrow__)); | |
2304 | # 448 "/usr/include/pthread.h" 3 4 | |
2305 | extern int pthread_once (pthread_once_t *__once_control, | |
2306 | void (*__init_routine) (void)); | |
2307 | # 460 "/usr/include/pthread.h" 3 4 | |
2308 | extern int pthread_setcancelstate (int __state, int *__oldstate); | |
2309 | ||
2310 | ||
2311 | ||
2312 | extern int pthread_setcanceltype (int __type, int *__oldtype); | |
2313 | ||
2314 | ||
2315 | extern int pthread_cancel (pthread_t __th); | |
2316 | ||
2317 | ||
2318 | ||
2319 | ||
2320 | extern void pthread_testcancel (void); | |
2321 | ||
2322 | ||
2323 | ||
2324 | ||
2325 | typedef struct | |
2326 | { | |
2327 | struct | |
2328 | { | |
2329 | __jmp_buf __cancel_jmp_buf; | |
2330 | int __mask_was_saved; | |
2331 | } __cancel_jmp_buf[1]; | |
2332 | void *__pad[4]; | |
2333 | } __pthread_unwind_buf_t __attribute__ ((__aligned__)); | |
2334 | # 494 "/usr/include/pthread.h" 3 4 | |
2335 | struct __pthread_cleanup_frame | |
2336 | { | |
2337 | void (*__cancel_routine) (void *); | |
2338 | void *__cancel_arg; | |
2339 | int __do_it; | |
2340 | int __cancel_type; | |
2341 | }; | |
2342 | # 618 "/usr/include/pthread.h" 3 4 | |
2343 | #define pthread_cleanup_push(routine,arg) do { __pthread_unwind_buf_t __cancel_buf; void (*__cancel_routine) (void *) = (routine); void *__cancel_arg = (arg); int not_first_call = __sigsetjmp ((struct __jmp_buf_tag *) __cancel_buf.__cancel_jmp_buf, 0); if (__builtin_expect (not_first_call, 0)) { __cancel_routine (__cancel_arg); __pthread_unwind_next (&__cancel_buf); } __pthread_register_cancel (&__cancel_buf); do { | |
2344 | # 634 "/usr/include/pthread.h" 3 4 | |
2345 | extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf) | |
2346 | __attribute__ ((__regparm__ (1))); | |
2347 | ||
2348 | ||
2349 | ||
2350 | #define pthread_cleanup_pop(execute) } while (0); __pthread_unregister_cancel (&__cancel_buf); if (execute) __cancel_routine (__cancel_arg); } while (0) | |
2351 | ||
2352 | ||
2353 | ||
2354 | ||
2355 | ||
2356 | extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf) | |
2357 | __attribute__ ((__regparm__ (1))); | |
2358 | ||
2359 | ||
2360 | ||
2361 | ||
2362 | ||
2363 | #define pthread_cleanup_push_defer_np(routine,arg) do { __pthread_unwind_buf_t __cancel_buf; void (*__cancel_routine) (void *) = (routine); void *__cancel_arg = (arg); int not_first_call = __sigsetjmp ((struct __jmp_buf_tag *) __cancel_buf.__cancel_jmp_buf, 0); if (__builtin_expect (not_first_call, 0)) { __cancel_routine (__cancel_arg); __pthread_unwind_next (&__cancel_buf); } __pthread_register_cancel_defer (&__cancel_buf); do { | |
2364 | # 668 "/usr/include/pthread.h" 3 4 | |
2365 | extern void __pthread_register_cancel_defer (__pthread_unwind_buf_t *__buf) | |
2366 | __attribute__ ((__regparm__ (1))); | |
2367 | ||
2368 | ||
2369 | ||
2370 | ||
2371 | #define pthread_cleanup_pop_restore_np(execute) } while (0); __pthread_unregister_cancel_restore (&__cancel_buf); if (execute) __cancel_routine (__cancel_arg); } while (0) | |
2372 | ||
2373 | ||
2374 | ||
2375 | ||
2376 | ||
2377 | extern void __pthread_unregister_cancel_restore (__pthread_unwind_buf_t *__buf) | |
2378 | __attribute__ ((__regparm__ (1))); | |
2379 | ||
2380 | ||
2381 | ||
2382 | extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf) | |
2383 | __attribute__ ((__regparm__ (1))) __attribute__ ((__noreturn__)) | |
2384 | ||
2385 | __attribute__ ((__weak__)) | |
2386 | ||
2387 | ; | |
2388 | ||
2389 | ||
2390 | ||
2391 | struct __jmp_buf_tag; | |
2392 | extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__)); | |
2393 | ||
2394 | ||
2395 | ||
2396 | ||
2397 | ||
2398 | extern int pthread_mutex_init (pthread_mutex_t *__mutex, | |
2399 | __const pthread_mutexattr_t *__mutexattr) | |
2400 | __attribute__ ((__nothrow__)); | |
2401 | ||
2402 | ||
2403 | extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__)); | |
2404 | ||
2405 | ||
2406 | extern int pthread_mutex_trylock (pthread_mutex_t *_mutex) __attribute__ ((__nothrow__)); | |
2407 | ||
2408 | ||
2409 | extern int pthread_mutex_lock (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__)); | |
2410 | ||
2411 | ||
2412 | ||
2413 | extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, | |
2414 | __const struct timespec *__restrict | |
2415 | __abstime) __attribute__ ((__nothrow__)); | |
2416 | ||
2417 | ||
2418 | ||
2419 | extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__)); | |
2420 | ||
2421 | ||
2422 | ||
2423 | ||
2424 | extern int pthread_mutex_getprioceiling (__const pthread_mutex_t * | |
2425 | __restrict __mutex, | |
2426 | int *__restrict __prioceiling) | |
2427 | __attribute__ ((__nothrow__)); | |
2428 | ||
2429 | ||
2430 | ||
2431 | extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, | |
2432 | int __prioceiling, | |
2433 | int *__restrict __old_ceiling) | |
2434 | __attribute__ ((__nothrow__)); | |
2435 | ||
2436 | ||
2437 | ||
2438 | ||
2439 | ||
2440 | extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__)); | |
2441 | ||
2442 | ||
2443 | ||
2444 | ||
2445 | ||
2446 | ||
2447 | ||
2448 | extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) __attribute__ ((__nothrow__)); | |
2449 | ||
2450 | ||
2451 | extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) __attribute__ ((__nothrow__)); | |
2452 | ||
2453 | ||
2454 | extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t * | |
2455 | __restrict __attr, | |
2456 | int *__restrict __pshared) __attribute__ ((__nothrow__)); | |
2457 | ||
2458 | ||
2459 | extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, | |
2460 | int __pshared) __attribute__ ((__nothrow__)); | |
2461 | ||
2462 | ||
2463 | ||
2464 | extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict | |
2465 | __attr, int *__restrict __kind) __attribute__ ((__nothrow__)); | |
2466 | ||
2467 | ||
2468 | ||
2469 | ||
2470 | extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) | |
2471 | __attribute__ ((__nothrow__)); | |
2472 | ||
2473 | ||
2474 | extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t * | |
2475 | __restrict __attr, | |
2476 | int *__restrict __protocol) __attribute__ ((__nothrow__)); | |
2477 | ||
2478 | ||
2479 | ||
2480 | extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, | |
2481 | int __protocol) __attribute__ ((__nothrow__)); | |
2482 | ||
2483 | ||
2484 | extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t * | |
2485 | __restrict __attr, | |
2486 | int *__restrict __prioceiling) | |
2487 | __attribute__ ((__nothrow__)); | |
2488 | ||
2489 | ||
2490 | extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, | |
2491 | int __prioceiling) __attribute__ ((__nothrow__)); | |
2492 | ||
2493 | ||
2494 | ||
2495 | ||
2496 | extern int pthread_mutexattr_getrobust_np (__const pthread_mutexattr_t *__attr, | |
2497 | int *__robustness) __attribute__ ((__nothrow__)); | |
2498 | ||
2499 | ||
2500 | extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr, | |
2501 | int __robustness) __attribute__ ((__nothrow__)); | |
2502 | # 813 "/usr/include/pthread.h" 3 4 | |
2503 | extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, | |
2504 | __const pthread_rwlockattr_t *__restrict | |
2505 | __attr) __attribute__ ((__nothrow__)); | |
2506 | ||
2507 | ||
2508 | extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__)); | |
2509 | ||
2510 | ||
2511 | extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__)); | |
2512 | ||
2513 | ||
2514 | extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__)); | |
2515 | ||
2516 | ||
2517 | ||
2518 | extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, | |
2519 | __const struct timespec *__restrict | |
2520 | __abstime) __attribute__ ((__nothrow__)); | |
2521 | ||
2522 | ||
2523 | ||
2524 | extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__)); | |
2525 | ||
2526 | ||
2527 | extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__)); | |
2528 | ||
2529 | ||
2530 | ||
2531 | extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, | |
2532 | __const struct timespec *__restrict | |
2533 | __abstime) __attribute__ ((__nothrow__)); | |
2534 | ||
2535 | ||
2536 | ||
2537 | extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__)); | |
2538 | ||
2539 | ||
2540 | ||
2541 | ||
2542 | ||
2543 | extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) __attribute__ ((__nothrow__)); | |
2544 | ||
2545 | ||
2546 | extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) __attribute__ ((__nothrow__)); | |
2547 | ||
2548 | ||
2549 | extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t * | |
2550 | __restrict __attr, | |
2551 | int *__restrict __pshared) __attribute__ ((__nothrow__)); | |
2552 | ||
2553 | ||
2554 | extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, | |
2555 | int __pshared) __attribute__ ((__nothrow__)); | |
2556 | ||
2557 | ||
2558 | extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t * | |
2559 | __restrict __attr, | |
2560 | int *__restrict __pref) __attribute__ ((__nothrow__)); | |
2561 | ||
2562 | ||
2563 | extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, | |
2564 | int __pref) __attribute__ ((__nothrow__)); | |
2565 | ||
2566 | ||
2567 | ||
2568 | ||
2569 | ||
2570 | ||
2571 | ||
2572 | extern int pthread_cond_init (pthread_cond_t *__restrict __cond, | |
2573 | __const pthread_condattr_t *__restrict | |
2574 | __cond_attr) __attribute__ ((__nothrow__)); | |
2575 | ||
2576 | ||
2577 | extern int pthread_cond_destroy (pthread_cond_t *__cond) __attribute__ ((__nothrow__)); | |
2578 | ||
2579 | ||
2580 | extern int pthread_cond_signal (pthread_cond_t *__cond) __attribute__ ((__nothrow__)); | |
2581 | ||
2582 | ||
2583 | extern int pthread_cond_broadcast (pthread_cond_t *__cond) __attribute__ ((__nothrow__)); | |
2584 | ||
2585 | ||
2586 | ||
2587 | ||
2588 | ||
2589 | ||
2590 | extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, | |
2591 | pthread_mutex_t *__restrict __mutex); | |
2592 | # 910 "/usr/include/pthread.h" 3 4 | |
2593 | extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, | |
2594 | pthread_mutex_t *__restrict __mutex, | |
2595 | __const struct timespec *__restrict | |
2596 | __abstime); | |
2597 | ||
2598 | ||
2599 | ||
2600 | ||
2601 | extern int pthread_condattr_init (pthread_condattr_t *__attr) __attribute__ ((__nothrow__)); | |
2602 | ||
2603 | ||
2604 | extern int pthread_condattr_destroy (pthread_condattr_t *__attr) __attribute__ ((__nothrow__)); | |
2605 | ||
2606 | ||
2607 | extern int pthread_condattr_getpshared (__const pthread_condattr_t * | |
2608 | __restrict __attr, | |
2609 | int *__restrict __pshared) __attribute__ ((__nothrow__)); | |
2610 | ||
2611 | ||
2612 | extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, | |
2613 | int __pshared) __attribute__ ((__nothrow__)); | |
2614 | ||
2615 | ||
2616 | ||
2617 | extern int pthread_condattr_getclock (__const pthread_condattr_t * | |
2618 | __restrict __attr, | |
2619 | __clockid_t *__restrict __clock_id) | |
2620 | __attribute__ ((__nothrow__)); | |
2621 | ||
2622 | ||
2623 | extern int pthread_condattr_setclock (pthread_condattr_t *__attr, | |
2624 | __clockid_t __clock_id) __attribute__ ((__nothrow__)); | |
2625 | # 951 "/usr/include/pthread.h" 3 4 | |
2626 | extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) | |
2627 | __attribute__ ((__nothrow__)); | |
2628 | ||
2629 | ||
2630 | extern int pthread_spin_destroy (pthread_spinlock_t *__lock) __attribute__ ((__nothrow__)); | |
2631 | ||
2632 | ||
2633 | extern int pthread_spin_lock (pthread_spinlock_t *__lock) __attribute__ ((__nothrow__)); | |
2634 | ||
2635 | ||
2636 | extern int pthread_spin_trylock (pthread_spinlock_t *__lock) __attribute__ ((__nothrow__)); | |
2637 | ||
2638 | ||
2639 | extern int pthread_spin_unlock (pthread_spinlock_t *__lock) __attribute__ ((__nothrow__)); | |
2640 | ||
2641 | ||
2642 | ||
2643 | ||
2644 | ||
2645 | ||
2646 | extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, | |
2647 | __const pthread_barrierattr_t *__restrict | |
2648 | __attr, unsigned int __count) __attribute__ ((__nothrow__)); | |
2649 | ||
2650 | ||
2651 | extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) __attribute__ ((__nothrow__)); | |
2652 | ||
2653 | ||
2654 | extern int pthread_barrier_wait (pthread_barrier_t *__barrier) __attribute__ ((__nothrow__)); | |
2655 | ||
2656 | ||
2657 | ||
2658 | extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) __attribute__ ((__nothrow__)); | |
2659 | ||
2660 | ||
2661 | extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) __attribute__ ((__nothrow__)); | |
2662 | ||
2663 | ||
2664 | extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t * | |
2665 | __restrict __attr, | |
2666 | int *__restrict __pshared) __attribute__ ((__nothrow__)); | |
2667 | ||
2668 | ||
2669 | extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, | |
2670 | int __pshared) __attribute__ ((__nothrow__)); | |
2671 | # 1007 "/usr/include/pthread.h" 3 4 | |
2672 | extern int pthread_key_create (pthread_key_t *__key, | |
2673 | void (*__destr_function) (void *)) __attribute__ ((__nothrow__)); | |
2674 | ||
2675 | ||
2676 | extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__)); | |
2677 | ||
2678 | ||
2679 | extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__)); | |
2680 | ||
2681 | ||
2682 | extern int pthread_setspecific (pthread_key_t __key, | |
2683 | __const void *__pointer) __attribute__ ((__nothrow__)); | |
2684 | ||
2685 | ||
2686 | ||
2687 | ||
2688 | extern int pthread_getcpuclockid (pthread_t __thread_id, | |
2689 | __clockid_t *__clock_id) __attribute__ ((__nothrow__)); | |
2690 | # 1039 "/usr/include/pthread.h" 3 4 | |
2691 | extern int pthread_atfork (void (*__prepare) (void), | |
2692 | void (*__parent) (void), | |
2693 | void (*__child) (void)) __attribute__ ((__nothrow__)); | |
2694 | ||
2695 | ||
2696 | # 56 "../../src/include/platform.h" 2 | |
2697 | # 64 "../../src/include/platform.h" | |
2698 | # 1 "/usr/include/netdb.h" 1 3 4 | |
2699 | # 24 "/usr/include/netdb.h" 3 4 | |
2700 | #define _NETDB_H 1 | |
2701 | ||
2702 | ||
2703 | ||
2704 | # 1 "/usr/include/netinet/in.h" 1 3 4 | |
2705 | # 20 "/usr/include/netinet/in.h" 3 4 | |
2706 | #define _NETINET_IN_H 1 | |
2707 | ||
2708 | ||
2709 | # 1 "/usr/include/stdint.h" 1 3 4 | |
2710 | # 24 "/usr/include/stdint.h" 3 4 | |
2711 | #define _STDINT_H 1 | |
2712 | ||
2713 | ||
2714 | # 1 "/usr/include/bits/wchar.h" 1 3 4 | |
2715 | # 21 "/usr/include/bits/wchar.h" 3 4 | |
2716 | #define _BITS_WCHAR_H 1 | |
2717 | ||
2718 | #define __WCHAR_MIN (-2147483647l - 1l) | |
2719 | #define __WCHAR_MAX (2147483647l) | |
2720 | # 28 "/usr/include/stdint.h" 2 3 4 | |
2721 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
2722 | # 19 "/usr/include/bits/wordsize.h" 3 4 | |
2723 | #define __WORDSIZE 32 | |
2724 | # 29 "/usr/include/stdint.h" 2 3 4 | |
2725 | ||
2726 | ||
2727 | ||
2728 | ||
2729 | ||
2730 | ||
2731 | ||
2732 | #define __int8_t_defined | |
2733 | typedef signed char int8_t; | |
2734 | typedef short int int16_t; | |
2735 | typedef int int32_t; | |
2736 | ||
2737 | ||
2738 | ||
2739 | __extension__ | |
2740 | typedef long long int int64_t; | |
2741 | ||
2742 | ||
2743 | ||
2744 | ||
2745 | typedef unsigned char uint8_t; | |
2746 | typedef unsigned short int uint16_t; | |
2747 | ||
2748 | typedef unsigned int uint32_t; | |
2749 | #define __uint32_t_defined | |
2750 | ||
2751 | ||
2752 | ||
2753 | ||
2754 | __extension__ | |
2755 | typedef unsigned long long int uint64_t; | |
2756 | ||
2757 | ||
2758 | ||
2759 | ||
2760 | ||
2761 | ||
2762 | typedef signed char int_least8_t; | |
2763 | typedef short int int_least16_t; | |
2764 | typedef int int_least32_t; | |
2765 | ||
2766 | ||
2767 | ||
2768 | __extension__ | |
2769 | typedef long long int int_least64_t; | |
2770 | ||
2771 | ||
2772 | ||
2773 | typedef unsigned char uint_least8_t; | |
2774 | typedef unsigned short int uint_least16_t; | |
2775 | typedef unsigned int uint_least32_t; | |
2776 | ||
2777 | ||
2778 | ||
2779 | __extension__ | |
2780 | typedef unsigned long long int uint_least64_t; | |
2781 | ||
2782 | ||
2783 | ||
2784 | ||
2785 | ||
2786 | ||
2787 | typedef signed char int_fast8_t; | |
2788 | ||
2789 | ||
2790 | ||
2791 | ||
2792 | ||
2793 | typedef int int_fast16_t; | |
2794 | typedef int int_fast32_t; | |
2795 | __extension__ | |
2796 | typedef long long int int_fast64_t; | |
2797 | ||
2798 | ||
2799 | ||
2800 | typedef unsigned char uint_fast8_t; | |
2801 | ||
2802 | ||
2803 | ||
2804 | ||
2805 | ||
2806 | typedef unsigned int uint_fast16_t; | |
2807 | typedef unsigned int uint_fast32_t; | |
2808 | __extension__ | |
2809 | typedef unsigned long long int uint_fast64_t; | |
2810 | # 126 "/usr/include/stdint.h" 3 4 | |
2811 | typedef int intptr_t; | |
2812 | #define __intptr_t_defined | |
2813 | ||
2814 | typedef unsigned int uintptr_t; | |
2815 | # 138 "/usr/include/stdint.h" 3 4 | |
2816 | __extension__ | |
2817 | typedef long long int intmax_t; | |
2818 | __extension__ | |
2819 | typedef unsigned long long int uintmax_t; | |
2820 | # 153 "/usr/include/stdint.h" 3 4 | |
2821 | #define __INT64_C(c) c ## LL | |
2822 | #define __UINT64_C(c) c ## ULL | |
2823 | ||
2824 | ||
2825 | ||
2826 | ||
2827 | ||
2828 | #define INT8_MIN (-128) | |
2829 | #define INT16_MIN (-32767-1) | |
2830 | #define INT32_MIN (-2147483647-1) | |
2831 | #define INT64_MIN (-__INT64_C(9223372036854775807)-1) | |
2832 | ||
2833 | #define INT8_MAX (127) | |
2834 | #define INT16_MAX (32767) | |
2835 | #define INT32_MAX (2147483647) | |
2836 | #define INT64_MAX (__INT64_C(9223372036854775807)) | |
2837 | ||
2838 | ||
2839 | #define UINT8_MAX (255) | |
2840 | #define UINT16_MAX (65535) | |
2841 | #define UINT32_MAX (4294967295U) | |
2842 | #define UINT64_MAX (__UINT64_C(18446744073709551615)) | |
2843 | ||
2844 | ||
2845 | ||
2846 | #define INT_LEAST8_MIN (-128) | |
2847 | #define INT_LEAST16_MIN (-32767-1) | |
2848 | #define INT_LEAST32_MIN (-2147483647-1) | |
2849 | #define INT_LEAST64_MIN (-__INT64_C(9223372036854775807)-1) | |
2850 | ||
2851 | #define INT_LEAST8_MAX (127) | |
2852 | #define INT_LEAST16_MAX (32767) | |
2853 | #define INT_LEAST32_MAX (2147483647) | |
2854 | #define INT_LEAST64_MAX (__INT64_C(9223372036854775807)) | |
2855 | ||
2856 | ||
2857 | #define UINT_LEAST8_MAX (255) | |
2858 | #define UINT_LEAST16_MAX (65535) | |
2859 | #define UINT_LEAST32_MAX (4294967295U) | |
2860 | #define UINT_LEAST64_MAX (__UINT64_C(18446744073709551615)) | |
2861 | ||
2862 | ||
2863 | ||
2864 | #define INT_FAST8_MIN (-128) | |
2865 | ||
2866 | ||
2867 | ||
2868 | ||
2869 | #define INT_FAST16_MIN (-2147483647-1) | |
2870 | #define INT_FAST32_MIN (-2147483647-1) | |
2871 | ||
2872 | #define INT_FAST64_MIN (-__INT64_C(9223372036854775807)-1) | |
2873 | ||
2874 | #define INT_FAST8_MAX (127) | |
2875 | ||
2876 | ||
2877 | ||
2878 | ||
2879 | #define INT_FAST16_MAX (2147483647) | |
2880 | #define INT_FAST32_MAX (2147483647) | |
2881 | ||
2882 | #define INT_FAST64_MAX (__INT64_C(9223372036854775807)) | |
2883 | ||
2884 | ||
2885 | #define UINT_FAST8_MAX (255) | |
2886 | ||
2887 | ||
2888 | ||
2889 | ||
2890 | #define UINT_FAST16_MAX (4294967295U) | |
2891 | #define UINT_FAST32_MAX (4294967295U) | |
2892 | ||
2893 | #define UINT_FAST64_MAX (__UINT64_C(18446744073709551615)) | |
2894 | # 234 "/usr/include/stdint.h" 3 4 | |
2895 | #define INTPTR_MIN (-2147483647-1) | |
2896 | #define INTPTR_MAX (2147483647) | |
2897 | #define UINTPTR_MAX (4294967295U) | |
2898 | ||
2899 | ||
2900 | ||
2901 | ||
2902 | #define INTMAX_MIN (-__INT64_C(9223372036854775807)-1) | |
2903 | ||
2904 | #define INTMAX_MAX (__INT64_C(9223372036854775807)) | |
2905 | ||
2906 | ||
2907 | #define UINTMAX_MAX (__UINT64_C(18446744073709551615)) | |
2908 | # 256 "/usr/include/stdint.h" 3 4 | |
2909 | #define PTRDIFF_MIN (-2147483647-1) | |
2910 | #define PTRDIFF_MAX (2147483647) | |
2911 | ||
2912 | ||
2913 | ||
2914 | #define SIG_ATOMIC_MIN (-2147483647-1) | |
2915 | #define SIG_ATOMIC_MAX (2147483647) | |
2916 | ||
2917 | ||
2918 | ||
2919 | ||
2920 | ||
2921 | #define SIZE_MAX (4294967295U) | |
2922 | ||
2923 | ||
2924 | ||
2925 | ||
2926 | ||
2927 | #define WCHAR_MIN __WCHAR_MIN | |
2928 | #define WCHAR_MAX __WCHAR_MAX | |
2929 | ||
2930 | ||
2931 | ||
2932 | #define WINT_MIN (0u) | |
2933 | #define WINT_MAX (4294967295u) | |
2934 | # 290 "/usr/include/stdint.h" 3 4 | |
2935 | #define INT8_C(c) c | |
2936 | #define INT16_C(c) c | |
2937 | #define INT32_C(c) c | |
2938 | ||
2939 | ||
2940 | ||
2941 | #define INT64_C(c) c ## LL | |
2942 | ||
2943 | ||
2944 | ||
2945 | #define UINT8_C(c) c ## U | |
2946 | #define UINT16_C(c) c ## U | |
2947 | #define UINT32_C(c) c ## U | |
2948 | ||
2949 | ||
2950 | ||
2951 | #define UINT64_C(c) c ## ULL | |
2952 | ||
2953 | ||
2954 | ||
2955 | ||
2956 | ||
2957 | ||
2958 | ||
2959 | #define INTMAX_C(c) c ## LL | |
2960 | #define UINTMAX_C(c) c ## ULL | |
2961 | # 24 "/usr/include/netinet/in.h" 2 3 4 | |
2962 | # 1 "/usr/include/sys/socket.h" 1 3 4 | |
2963 | # 21 "/usr/include/sys/socket.h" 3 4 | |
2964 | #define _SYS_SOCKET_H 1 | |
2965 | ||
2966 | ||
2967 | ||
2968 | ||
2969 | ||
2970 | # 1 "/usr/include/sys/uio.h" 1 3 4 | |
2971 | # 20 "/usr/include/sys/uio.h" 3 4 | |
2972 | #define _SYS_UIO_H 1 | |
2973 | ||
2974 | ||
2975 | ||
2976 | # 1 "/usr/include/sys/types.h" 1 3 4 | |
2977 | # 25 "/usr/include/sys/types.h" 3 4 | |
2978 | #define _SYS_TYPES_H 1 | |
2979 | ||
2980 | ||
2981 | ||
2982 | ||
2983 | ||
2984 | ||
2985 | ||
2986 | ||
2987 | ||
2988 | typedef __u_char u_char; | |
2989 | typedef __u_short u_short; | |
2990 | typedef __u_int u_int; | |
2991 | typedef __u_long u_long; | |
2992 | typedef __quad_t quad_t; | |
2993 | typedef __u_quad_t u_quad_t; | |
2994 | typedef __fsid_t fsid_t; | |
2995 | #define __u_char_defined | |
2996 | ||
2997 | ||
2998 | ||
2999 | typedef __loff_t loff_t; | |
3000 | ||
3001 | ||
3002 | ||
3003 | ||
3004 | ||
3005 | typedef __ino64_t ino_t; | |
3006 | ||
3007 | #define __ino_t_defined | |
3008 | ||
3009 | ||
3010 | typedef __ino64_t ino64_t; | |
3011 | #define __ino64_t_defined | |
3012 | ||
3013 | ||
3014 | ||
3015 | typedef __dev_t dev_t; | |
3016 | #define __dev_t_defined | |
3017 | ||
3018 | ||
3019 | ||
3020 | typedef __gid_t gid_t; | |
3021 | #define __gid_t_defined | |
3022 | ||
3023 | ||
3024 | ||
3025 | typedef __mode_t mode_t; | |
3026 | #define __mode_t_defined | |
3027 | ||
3028 | ||
3029 | ||
3030 | typedef __nlink_t nlink_t; | |
3031 | #define __nlink_t_defined | |
3032 | ||
3033 | ||
3034 | ||
3035 | typedef __uid_t uid_t; | |
3036 | #define __uid_t_defined | |
3037 | ||
3038 | ||
3039 | ||
3040 | ||
3041 | ||
3042 | ||
3043 | typedef __off64_t off_t; | |
3044 | ||
3045 | #define __off_t_defined | |
3046 | ||
3047 | ||
3048 | typedef __off64_t off64_t; | |
3049 | #define __off64_t_defined | |
3050 | # 105 "/usr/include/sys/types.h" 3 4 | |
3051 | typedef __id_t id_t; | |
3052 | #define __id_t_defined | |
3053 | ||
3054 | ||
3055 | ||
3056 | typedef __ssize_t ssize_t; | |
3057 | #define __ssize_t_defined | |
3058 | ||
3059 | ||
3060 | ||
3061 | ||
3062 | typedef __daddr_t daddr_t; | |
3063 | typedef __caddr_t caddr_t; | |
3064 | #define __daddr_t_defined | |
3065 | ||
3066 | ||
3067 | ||
3068 | ||
3069 | typedef __key_t key_t; | |
3070 | #define __key_t_defined | |
3071 | ||
3072 | ||
3073 | ||
3074 | #define __need_clock_t | |
3075 | ||
3076 | #define __need_time_t | |
3077 | #define __need_timer_t | |
3078 | #define __need_clockid_t | |
3079 | ||
3080 | ||
3081 | ||
3082 | ||
3083 | typedef __useconds_t useconds_t; | |
3084 | #define __useconds_t_defined | |
3085 | ||
3086 | ||
3087 | typedef __suseconds_t suseconds_t; | |
3088 | #define __suseconds_t_defined | |
3089 | ||
3090 | ||
3091 | ||
3092 | #define __need_size_t | |
3093 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
3094 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
3095 | #undef __need_size_t | |
3096 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
3097 | #undef __need_NULL | |
3098 | # 148 "/usr/include/sys/types.h" 2 3 4 | |
3099 | ||
3100 | ||
3101 | ||
3102 | typedef unsigned long int ulong; | |
3103 | typedef unsigned short int ushort; | |
3104 | typedef unsigned int uint; | |
3105 | # 188 "/usr/include/sys/types.h" 3 4 | |
3106 | #define __intN_t(N,MODE) typedef int int ##N ##_t __attribute__ ((__mode__ (MODE))) | |
3107 | ||
3108 | #define __u_intN_t(N,MODE) typedef unsigned int u_int ##N ##_t __attribute__ ((__mode__ (MODE))) | |
3109 | # 201 "/usr/include/sys/types.h" 3 4 | |
3110 | typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); | |
3111 | typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); | |
3112 | typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); | |
3113 | typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); | |
3114 | ||
3115 | typedef int register_t __attribute__ ((__mode__ (__word__))); | |
3116 | ||
3117 | ||
3118 | ||
3119 | ||
3120 | ||
3121 | #define __BIT_TYPES_DEFINED__ 1 | |
3122 | ||
3123 | ||
3124 | ||
3125 | ||
3126 | # 1 "/usr/include/endian.h" 1 3 4 | |
3127 | # 20 "/usr/include/endian.h" 3 4 | |
3128 | #define _ENDIAN_H 1 | |
3129 | # 32 "/usr/include/endian.h" 3 4 | |
3130 | #define __LITTLE_ENDIAN 1234 | |
3131 | #define __BIG_ENDIAN 4321 | |
3132 | #define __PDP_ENDIAN 3412 | |
3133 | ||
3134 | ||
3135 | # 1 "/usr/include/bits/endian.h" 1 3 4 | |
3136 | ||
3137 | ||
3138 | ||
3139 | ||
3140 | ||
3141 | ||
3142 | #define __BYTE_ORDER __LITTLE_ENDIAN | |
3143 | # 38 "/usr/include/endian.h" 2 3 4 | |
3144 | ||
3145 | ||
3146 | ||
3147 | ||
3148 | #define __FLOAT_WORD_ORDER __BYTE_ORDER | |
3149 | ||
3150 | ||
3151 | ||
3152 | #define LITTLE_ENDIAN __LITTLE_ENDIAN | |
3153 | #define BIG_ENDIAN __BIG_ENDIAN | |
3154 | #define PDP_ENDIAN __PDP_ENDIAN | |
3155 | #define BYTE_ORDER __BYTE_ORDER | |
3156 | ||
3157 | ||
3158 | ||
3159 | #define __LONG_LONG_PAIR(HI,LO) LO, HI | |
3160 | # 218 "/usr/include/sys/types.h" 2 3 4 | |
3161 | ||
3162 | ||
3163 | # 1 "/usr/include/sys/select.h" 1 3 4 | |
3164 | # 23 "/usr/include/sys/select.h" 3 4 | |
3165 | #define _SYS_SELECT_H 1 | |
3166 | ||
3167 | ||
3168 | ||
3169 | ||
3170 | ||
3171 | ||
3172 | ||
3173 | # 1 "/usr/include/bits/select.h" 1 3 4 | |
3174 | # 26 "/usr/include/bits/select.h" 3 4 | |
3175 | #define __FD_ZERO(fdsp) do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; stosl" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&__FDS_BITS (fdsp)[0]) : "memory"); } while (0) | |
3176 | # 37 "/usr/include/bits/select.h" 3 4 | |
3177 | #define __FD_SET(fd,fdsp) __asm__ __volatile__ ("btsl %1,%0" : "=m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "r" (((int) (fd)) % __NFDBITS) : "cc","memory") | |
3178 | ||
3179 | ||
3180 | ||
3181 | ||
3182 | #define __FD_CLR(fd,fdsp) __asm__ __volatile__ ("btrl %1,%0" : "=m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "r" (((int) (fd)) % __NFDBITS) : "cc","memory") | |
3183 | ||
3184 | ||
3185 | ||
3186 | ||
3187 | #define __FD_ISSET(fd,fdsp) (__extension__ ({register char __result; __asm__ __volatile__ ("btl %1,%2 ; setcb %b0" : "=q" (__result) : "r" (((int) (fd)) % __NFDBITS), "m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "cc"); __result; })) | |
3188 | # 32 "/usr/include/sys/select.h" 2 3 4 | |
3189 | ||
3190 | ||
3191 | # 1 "/usr/include/bits/sigset.h" 1 3 4 | |
3192 | # 35 "/usr/include/sys/select.h" 2 3 4 | |
3193 | ||
3194 | ||
3195 | ||
3196 | ||
3197 | ||
3198 | ||
3199 | ||
3200 | #define __need_time_t | |
3201 | #define __need_timespec | |
3202 | ||
3203 | #define __need_timeval | |
3204 | # 1 "/usr/include/bits/time.h" 1 3 4 | |
3205 | # 62 "/usr/include/bits/time.h" 3 4 | |
3206 | #undef __need_timeval | |
3207 | ||
3208 | #define _STRUCT_TIMEVAL 1 | |
3209 | ||
3210 | ||
3211 | ||
3212 | ||
3213 | struct timeval | |
3214 | { | |
3215 | __time_t tv_sec; | |
3216 | __suseconds_t tv_usec; | |
3217 | }; | |
3218 | # 47 "/usr/include/sys/select.h" 2 3 4 | |
3219 | # 55 "/usr/include/sys/select.h" 3 4 | |
3220 | typedef long int __fd_mask; | |
3221 | ||
3222 | ||
3223 | #undef __NFDBITS | |
3224 | #undef __FDELT | |
3225 | #undef __FDMASK | |
3226 | ||
3227 | #define __NFDBITS (8 * sizeof (__fd_mask)) | |
3228 | #define __FDELT(d) ((d) / __NFDBITS) | |
3229 | #define __FDMASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS)) | |
3230 | ||
3231 | ||
3232 | typedef struct | |
3233 | { | |
3234 | ||
3235 | ||
3236 | ||
3237 | __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; | |
3238 | #define __FDS_BITS(set) ((set)->fds_bits) | |
3239 | ||
3240 | ||
3241 | ||
3242 | ||
3243 | } fd_set; | |
3244 | ||
3245 | ||
3246 | #define FD_SETSIZE __FD_SETSIZE | |
3247 | ||
3248 | ||
3249 | ||
3250 | typedef __fd_mask fd_mask; | |
3251 | ||
3252 | ||
3253 | #define NFDBITS __NFDBITS | |
3254 | ||
3255 | ||
3256 | ||
3257 | ||
3258 | #define FD_SET(fd,fdsetp) __FD_SET (fd, fdsetp) | |
3259 | #define FD_CLR(fd,fdsetp) __FD_CLR (fd, fdsetp) | |
3260 | #define FD_ISSET(fd,fdsetp) __FD_ISSET (fd, fdsetp) | |
3261 | #define FD_ZERO(fdsetp) __FD_ZERO (fdsetp) | |
3262 | ||
3263 | ||
3264 | ||
3265 | # 109 "/usr/include/sys/select.h" 3 4 | |
3266 | extern int select (int __nfds, fd_set *__restrict __readfds, | |
3267 | fd_set *__restrict __writefds, | |
3268 | fd_set *__restrict __exceptfds, | |
3269 | struct timeval *__restrict __timeout); | |
3270 | # 121 "/usr/include/sys/select.h" 3 4 | |
3271 | extern int pselect (int __nfds, fd_set *__restrict __readfds, | |
3272 | fd_set *__restrict __writefds, | |
3273 | fd_set *__restrict __exceptfds, | |
3274 | const struct timespec *__restrict __timeout, | |
3275 | const __sigset_t *__restrict __sigmask); | |
3276 | ||
3277 | ||
3278 | ||
3279 | # 221 "/usr/include/sys/types.h" 2 3 4 | |
3280 | ||
3281 | ||
3282 | # 1 "/usr/include/sys/sysmacros.h" 1 3 4 | |
3283 | # 21 "/usr/include/sys/sysmacros.h" 3 4 | |
3284 | #define _SYS_SYSMACROS_H 1 | |
3285 | ||
3286 | ||
3287 | ||
3288 | ||
3289 | ||
3290 | ||
3291 | ||
3292 | __extension__ | |
3293 | extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) | |
3294 | __attribute__ ((__nothrow__)); | |
3295 | __extension__ | |
3296 | extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) | |
3297 | __attribute__ ((__nothrow__)); | |
3298 | __extension__ | |
3299 | extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, | |
3300 | unsigned int __minor) | |
3301 | __attribute__ ((__nothrow__)); | |
3302 | ||
3303 | ||
3304 | __extension__ extern __inline unsigned int | |
3305 | __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) | |
3306 | { | |
3307 | return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); | |
3308 | } | |
3309 | ||
3310 | __extension__ extern __inline unsigned int | |
3311 | __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) | |
3312 | { | |
3313 | return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); | |
3314 | } | |
3315 | ||
3316 | __extension__ extern __inline unsigned long long int | |
3317 | __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) | |
3318 | { | |
3319 | return ((__minor & 0xff) | ((__major & 0xfff) << 8) | |
3320 | | (((unsigned long long int) (__minor & ~0xff)) << 12) | |
3321 | | (((unsigned long long int) (__major & ~0xfff)) << 32)); | |
3322 | } | |
3323 | ||
3324 | ||
3325 | ||
3326 | ||
3327 | #define major(dev) gnu_dev_major (dev) | |
3328 | #define minor(dev) gnu_dev_minor (dev) | |
3329 | #define makedev(maj,min) gnu_dev_makedev (maj, min) | |
3330 | # 224 "/usr/include/sys/types.h" 2 3 4 | |
3331 | ||
3332 | ||
3333 | ||
3334 | ||
3335 | typedef __blksize_t blksize_t; | |
3336 | #define __blksize_t_defined | |
3337 | # 248 "/usr/include/sys/types.h" 3 4 | |
3338 | typedef __blkcnt64_t blkcnt_t; | |
3339 | #define __blkcnt_t_defined | |
3340 | ||
3341 | ||
3342 | typedef __fsblkcnt64_t fsblkcnt_t; | |
3343 | #define __fsblkcnt_t_defined | |
3344 | ||
3345 | ||
3346 | typedef __fsfilcnt64_t fsfilcnt_t; | |
3347 | #define __fsfilcnt_t_defined | |
3348 | ||
3349 | ||
3350 | ||
3351 | ||
3352 | typedef __blkcnt64_t blkcnt64_t; | |
3353 | typedef __fsblkcnt64_t fsblkcnt64_t; | |
3354 | typedef __fsfilcnt64_t fsfilcnt64_t; | |
3355 | # 273 "/usr/include/sys/types.h" 3 4 | |
3356 | ||
3357 | # 25 "/usr/include/sys/uio.h" 2 3 4 | |
3358 | ||
3359 | ||
3360 | ||
3361 | ||
3362 | # 1 "/usr/include/bits/uio.h" 1 3 4 | |
3363 | # 38 "/usr/include/bits/uio.h" 3 4 | |
3364 | #define UIO_MAXIOV 1024 | |
3365 | ||
3366 | ||
3367 | ||
3368 | struct iovec | |
3369 | { | |
3370 | void *iov_base; | |
3371 | size_t iov_len; | |
3372 | }; | |
3373 | # 30 "/usr/include/sys/uio.h" 2 3 4 | |
3374 | # 40 "/usr/include/sys/uio.h" 3 4 | |
3375 | extern ssize_t readv (int __fd, __const struct iovec *__iovec, int __count); | |
3376 | # 50 "/usr/include/sys/uio.h" 3 4 | |
3377 | extern ssize_t writev (int __fd, __const struct iovec *__iovec, int __count); | |
3378 | ||
3379 | ||
3380 | # 28 "/usr/include/sys/socket.h" 2 3 4 | |
3381 | #define __need_size_t | |
3382 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
3383 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
3384 | #undef __need_size_t | |
3385 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
3386 | #undef __need_NULL | |
3387 | # 30 "/usr/include/sys/socket.h" 2 3 4 | |
3388 | ||
3389 | ||
3390 | ||
3391 | ||
3392 | ||
3393 | # 1 "/usr/include/bits/socket.h" 1 3 4 | |
3394 | # 21 "/usr/include/bits/socket.h" 3 4 | |
3395 | #define __BITS_SOCKET_H | |
3396 | ||
3397 | ||
3398 | ||
3399 | ||
3400 | ||
3401 | #define __need_size_t | |
3402 | #define __need_NULL | |
3403 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
3404 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
3405 | #undef __need_size_t | |
3406 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
3407 | #undef NULL | |
3408 | ||
3409 | ||
3410 | ||
3411 | ||
3412 | #define NULL ((void *)0) | |
3413 | ||
3414 | ||
3415 | ||
3416 | ||
3417 | ||
3418 | #undef __need_NULL | |
3419 | # 30 "/usr/include/bits/socket.h" 2 3 4 | |
3420 | ||
3421 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 1 3 4 | |
3422 | ||
3423 | ||
3424 | ||
3425 | ||
3426 | ||
3427 | ||
3428 | #define _GCC_LIMITS_H_ | |
3429 | ||
3430 | ||
3431 | ||
3432 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/syslimits.h" 1 3 4 | |
3433 | ||
3434 | ||
3435 | ||
3436 | ||
3437 | ||
3438 | #define _GCC_NEXT_LIMITS_H | |
3439 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 1 3 4 | |
3440 | # 122 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 3 4 | |
3441 | # 1 "/usr/include/limits.h" 1 3 4 | |
3442 | # 25 "/usr/include/limits.h" 3 4 | |
3443 | #define _LIBC_LIMITS_H_ 1 | |
3444 | ||
3445 | ||
3446 | ||
3447 | ||
3448 | ||
3449 | ||
3450 | ||
3451 | #define MB_LEN_MAX 16 | |
3452 | # 133 "/usr/include/limits.h" 3 4 | |
3453 | #define LLONG_MIN (-LLONG_MAX-1) | |
3454 | ||
3455 | ||
3456 | #define LLONG_MAX __LONG_LONG_MAX__ | |
3457 | ||
3458 | ||
3459 | #define ULLONG_MAX (LLONG_MAX * 2ULL + 1) | |
3460 | ||
3461 | ||
3462 | ||
3463 | ||
3464 | ||
3465 | # 1 "/usr/include/bits/posix1_lim.h" 1 3 4 | |
3466 | # 26 "/usr/include/bits/posix1_lim.h" 3 4 | |
3467 | #define _BITS_POSIX1_LIM_H 1 | |
3468 | ||
3469 | ||
3470 | ||
3471 | ||
3472 | ||
3473 | #define _POSIX_AIO_LISTIO_MAX 2 | |
3474 | ||
3475 | ||
3476 | #define _POSIX_AIO_MAX 1 | |
3477 | ||
3478 | ||
3479 | #define _POSIX_ARG_MAX 4096 | |
3480 | ||
3481 | ||
3482 | ||
3483 | #define _POSIX_CHILD_MAX 25 | |
3484 | ||
3485 | ||
3486 | ||
3487 | ||
3488 | ||
3489 | #define _POSIX_DELAYTIMER_MAX 32 | |
3490 | ||
3491 | ||
3492 | ||
3493 | #define _POSIX_HOST_NAME_MAX 255 | |
3494 | ||
3495 | ||
3496 | #define _POSIX_LINK_MAX 8 | |
3497 | ||
3498 | ||
3499 | #define _POSIX_LOGIN_NAME_MAX 9 | |
3500 | ||
3501 | ||
3502 | #define _POSIX_MAX_CANON 255 | |
3503 | ||
3504 | ||
3505 | ||
3506 | #define _POSIX_MAX_INPUT 255 | |
3507 | ||
3508 | ||
3509 | #define _POSIX_MQ_OPEN_MAX 8 | |
3510 | ||
3511 | ||
3512 | #define _POSIX_MQ_PRIO_MAX 32 | |
3513 | ||
3514 | ||
3515 | #define _POSIX_NAME_MAX 14 | |
3516 | ||
3517 | ||
3518 | ||
3519 | #define _POSIX_NGROUPS_MAX 8 | |
3520 | ||
3521 | ||
3522 | ||
3523 | ||
3524 | ||
3525 | ||
3526 | #define _POSIX_OPEN_MAX 20 | |
3527 | ||
3528 | ||
3529 | ||
3530 | ||
3531 | ||
3532 | ||
3533 | #define _POSIX_FD_SETSIZE _POSIX_OPEN_MAX | |
3534 | ||
3535 | ||
3536 | #define _POSIX_PATH_MAX 256 | |
3537 | ||
3538 | ||
3539 | #define _POSIX_PIPE_BUF 512 | |
3540 | ||
3541 | ||
3542 | ||
3543 | #define _POSIX_RE_DUP_MAX 255 | |
3544 | ||
3545 | ||
3546 | #define _POSIX_RTSIG_MAX 8 | |
3547 | ||
3548 | ||
3549 | #define _POSIX_SEM_NSEMS_MAX 256 | |
3550 | ||
3551 | ||
3552 | #define _POSIX_SEM_VALUE_MAX 32767 | |
3553 | ||
3554 | ||
3555 | #define _POSIX_SIGQUEUE_MAX 32 | |
3556 | ||
3557 | ||
3558 | #define _POSIX_SSIZE_MAX 32767 | |
3559 | ||
3560 | ||
3561 | #define _POSIX_STREAM_MAX 8 | |
3562 | ||
3563 | ||
3564 | #define _POSIX_SYMLINK_MAX 255 | |
3565 | ||
3566 | ||
3567 | ||
3568 | #define _POSIX_SYMLOOP_MAX 8 | |
3569 | ||
3570 | ||
3571 | #define _POSIX_TIMER_MAX 32 | |
3572 | ||
3573 | ||
3574 | #define _POSIX_TTY_NAME_MAX 9 | |
3575 | ||
3576 | ||
3577 | #define _POSIX_TZNAME_MAX 6 | |
3578 | ||
3579 | ||
3580 | #define _POSIX_QLIMIT 1 | |
3581 | ||
3582 | ||
3583 | ||
3584 | #define _POSIX_HIWAT _POSIX_PIPE_BUF | |
3585 | ||
3586 | ||
3587 | #define _POSIX_UIO_MAXIOV 16 | |
3588 | ||
3589 | ||
3590 | #define _POSIX_CLOCKRES_MIN 20000000 | |
3591 | ||
3592 | ||
3593 | ||
3594 | # 1 "/usr/include/bits/local_lim.h" 1 3 4 | |
3595 | # 26 "/usr/include/bits/local_lim.h" 3 4 | |
3596 | #define __undef_NR_OPEN | |
3597 | ||
3598 | ||
3599 | #define __undef_LINK_MAX | |
3600 | ||
3601 | ||
3602 | #define __undef_OPEN_MAX | |
3603 | ||
3604 | ||
3605 | ||
3606 | # 1 "/usr/include/linux/limits.h" 1 3 4 | |
3607 | ||
3608 | #define _LINUX_LIMITS_H | |
3609 | ||
3610 | #define NR_OPEN 1024 | |
3611 | ||
3612 | #define NGROUPS_MAX 65536 | |
3613 | #define ARG_MAX 131072 | |
3614 | #define CHILD_MAX 999 | |
3615 | #define OPEN_MAX 256 | |
3616 | #define LINK_MAX 127 | |
3617 | #define MAX_CANON 255 | |
3618 | #define MAX_INPUT 255 | |
3619 | #define NAME_MAX 255 | |
3620 | #define PATH_MAX 4096 | |
3621 | #define PIPE_BUF 4096 | |
3622 | #define XATTR_NAME_MAX 255 | |
3623 | #define XATTR_SIZE_MAX 65536 | |
3624 | #define XATTR_LIST_MAX 65536 | |
3625 | ||
3626 | #define RTSIG_MAX 32 | |
3627 | # 37 "/usr/include/bits/local_lim.h" 2 3 4 | |
3628 | ||
3629 | ||
3630 | ||
3631 | #undef NR_OPEN | |
3632 | #undef __undef_NR_OPEN | |
3633 | ||
3634 | ||
3635 | ||
3636 | #undef LINK_MAX | |
3637 | #undef __undef_LINK_MAX | |
3638 | ||
3639 | ||
3640 | ||
3641 | #undef OPEN_MAX | |
3642 | #undef __undef_OPEN_MAX | |
3643 | ||
3644 | ||
3645 | ||
3646 | #define _POSIX_THREAD_KEYS_MAX 128 | |
3647 | ||
3648 | #define PTHREAD_KEYS_MAX 1024 | |
3649 | ||
3650 | ||
3651 | #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 | |
3652 | ||
3653 | #define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS | |
3654 | ||
3655 | ||
3656 | #define _POSIX_THREAD_THREADS_MAX 64 | |
3657 | ||
3658 | #undef PTHREAD_THREADS_MAX | |
3659 | ||
3660 | ||
3661 | ||
3662 | #define AIO_PRIO_DELTA_MAX 20 | |
3663 | ||
3664 | ||
3665 | #define PTHREAD_STACK_MIN 16384 | |
3666 | ||
3667 | ||
3668 | #define DELAYTIMER_MAX 2147483647 | |
3669 | ||
3670 | ||
3671 | #define TTY_NAME_MAX 32 | |
3672 | ||
3673 | ||
3674 | #define LOGIN_NAME_MAX 256 | |
3675 | ||
3676 | ||
3677 | #define HOST_NAME_MAX 64 | |
3678 | ||
3679 | ||
3680 | #define MQ_PRIO_MAX 32768 | |
3681 | # 154 "/usr/include/bits/posix1_lim.h" 2 3 4 | |
3682 | ||
3683 | ||
3684 | ||
3685 | #define SSIZE_MAX LONG_MAX | |
3686 | # 146 "/usr/include/limits.h" 2 3 4 | |
3687 | ||
3688 | ||
3689 | ||
3690 | # 1 "/usr/include/bits/posix2_lim.h" 1 3 4 | |
3691 | # 24 "/usr/include/bits/posix2_lim.h" 3 4 | |
3692 | #define _BITS_POSIX2_LIM_H 1 | |
3693 | ||
3694 | ||
3695 | ||
3696 | #define _POSIX2_BC_BASE_MAX 99 | |
3697 | ||
3698 | ||
3699 | #define _POSIX2_BC_DIM_MAX 2048 | |
3700 | ||
3701 | ||
3702 | #define _POSIX2_BC_SCALE_MAX 99 | |
3703 | ||
3704 | ||
3705 | #define _POSIX2_BC_STRING_MAX 1000 | |
3706 | ||
3707 | ||
3708 | ||
3709 | #define _POSIX2_COLL_WEIGHTS_MAX 2 | |
3710 | ||
3711 | ||
3712 | ||
3713 | #define _POSIX2_EXPR_NEST_MAX 32 | |
3714 | ||
3715 | ||
3716 | #define _POSIX2_LINE_MAX 2048 | |
3717 | ||
3718 | ||
3719 | ||
3720 | #define _POSIX2_RE_DUP_MAX 255 | |
3721 | ||
3722 | ||
3723 | ||
3724 | #define _POSIX2_CHARCLASS_NAME_MAX 14 | |
3725 | ||
3726 | ||
3727 | ||
3728 | ||
3729 | ||
3730 | ||
3731 | ||
3732 | #define BC_BASE_MAX _POSIX2_BC_BASE_MAX | |
3733 | ||
3734 | ||
3735 | #define BC_DIM_MAX _POSIX2_BC_DIM_MAX | |
3736 | ||
3737 | ||
3738 | #define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX | |
3739 | ||
3740 | ||
3741 | #define BC_STRING_MAX _POSIX2_BC_STRING_MAX | |
3742 | ||
3743 | ||
3744 | #define COLL_WEIGHTS_MAX 255 | |
3745 | ||
3746 | ||
3747 | #define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX | |
3748 | ||
3749 | ||
3750 | #define LINE_MAX _POSIX2_LINE_MAX | |
3751 | ||
3752 | ||
3753 | #define CHARCLASS_NAME_MAX 2048 | |
3754 | ||
3755 | ||
3756 | ||
3757 | #define RE_DUP_MAX (0x7fff) | |
3758 | # 150 "/usr/include/limits.h" 2 3 4 | |
3759 | ||
3760 | ||
3761 | ||
3762 | # 1 "/usr/include/bits/xopen_lim.h" 1 3 4 | |
3763 | # 31 "/usr/include/bits/xopen_lim.h" 3 4 | |
3764 | #define _XOPEN_LIM_H 1 | |
3765 | ||
3766 | #define __need_IOV_MAX | |
3767 | # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 | |
3768 | # 40 "/usr/include/bits/stdio_lim.h" 3 4 | |
3769 | #define IOV_MAX 1024 | |
3770 | # 35 "/usr/include/bits/xopen_lim.h" 2 3 4 | |
3771 | # 66 "/usr/include/bits/xopen_lim.h" 3 4 | |
3772 | #define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV | |
3773 | ||
3774 | ||
3775 | ||
3776 | ||
3777 | #define NL_ARGMAX _POSIX_ARG_MAX | |
3778 | ||
3779 | ||
3780 | #define NL_LANGMAX _POSIX2_LINE_MAX | |
3781 | ||
3782 | ||
3783 | #define NL_MSGMAX INT_MAX | |
3784 | ||
3785 | ||
3786 | ||
3787 | #define NL_NMAX INT_MAX | |
3788 | ||
3789 | ||
3790 | #define NL_SETMAX INT_MAX | |
3791 | ||
3792 | ||
3793 | #define NL_TEXTMAX INT_MAX | |
3794 | ||
3795 | ||
3796 | #define NZERO 20 | |
3797 | # 110 "/usr/include/bits/xopen_lim.h" 3 4 | |
3798 | #define WORD_BIT 32 | |
3799 | # 130 "/usr/include/bits/xopen_lim.h" 3 4 | |
3800 | #define LONG_BIT 32 | |
3801 | # 154 "/usr/include/limits.h" 2 3 4 | |
3802 | # 123 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 2 3 4 | |
3803 | # 8 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/syslimits.h" 2 3 4 | |
3804 | #undef _GCC_NEXT_LIMITS_H | |
3805 | # 12 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 2 3 4 | |
3806 | ||
3807 | ||
3808 | #define _LIMITS_H___ | |
3809 | ||
3810 | ||
3811 | #undef CHAR_BIT | |
3812 | #define CHAR_BIT __CHAR_BIT__ | |
3813 | ||
3814 | ||
3815 | ||
3816 | ||
3817 | ||
3818 | ||
3819 | ||
3820 | #undef SCHAR_MIN | |
3821 | #define SCHAR_MIN (-SCHAR_MAX - 1) | |
3822 | #undef SCHAR_MAX | |
3823 | #define SCHAR_MAX __SCHAR_MAX__ | |
3824 | ||
3825 | ||
3826 | #undef UCHAR_MAX | |
3827 | ||
3828 | ||
3829 | ||
3830 | #define UCHAR_MAX (SCHAR_MAX * 2 + 1) | |
3831 | # 50 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 3 4 | |
3832 | #undef CHAR_MIN | |
3833 | #define CHAR_MIN SCHAR_MIN | |
3834 | #undef CHAR_MAX | |
3835 | #define CHAR_MAX SCHAR_MAX | |
3836 | ||
3837 | ||
3838 | ||
3839 | #undef SHRT_MIN | |
3840 | #define SHRT_MIN (-SHRT_MAX - 1) | |
3841 | #undef SHRT_MAX | |
3842 | #define SHRT_MAX __SHRT_MAX__ | |
3843 | ||
3844 | ||
3845 | #undef USHRT_MAX | |
3846 | ||
3847 | ||
3848 | ||
3849 | #define USHRT_MAX (SHRT_MAX * 2 + 1) | |
3850 | ||
3851 | ||
3852 | ||
3853 | #undef INT_MIN | |
3854 | #define INT_MIN (-INT_MAX - 1) | |
3855 | #undef INT_MAX | |
3856 | #define INT_MAX __INT_MAX__ | |
3857 | ||
3858 | ||
3859 | #undef UINT_MAX | |
3860 | #define UINT_MAX (INT_MAX * 2U + 1U) | |
3861 | ||
3862 | ||
3863 | ||
3864 | #undef LONG_MIN | |
3865 | #define LONG_MIN (-LONG_MAX - 1L) | |
3866 | #undef LONG_MAX | |
3867 | #define LONG_MAX __LONG_MAX__ | |
3868 | ||
3869 | ||
3870 | #undef ULONG_MAX | |
3871 | #define ULONG_MAX (LONG_MAX * 2UL + 1UL) | |
3872 | # 105 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 3 4 | |
3873 | #undef LONG_LONG_MIN | |
3874 | #define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL) | |
3875 | #undef LONG_LONG_MAX | |
3876 | #define LONG_LONG_MAX __LONG_LONG_MAX__ | |
3877 | ||
3878 | ||
3879 | #undef ULONG_LONG_MAX | |
3880 | #define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1ULL) | |
3881 | # 32 "/usr/include/bits/socket.h" 2 3 4 | |
3882 | ||
3883 | ||
3884 | ||
3885 | ||
3886 | typedef __socklen_t socklen_t; | |
3887 | #define __socklen_t_defined | |
3888 | ||
3889 | ||
3890 | ||
3891 | enum __socket_type | |
3892 | { | |
3893 | SOCK_STREAM = 1, | |
3894 | ||
3895 | #define SOCK_STREAM SOCK_STREAM | |
3896 | SOCK_DGRAM = 2, | |
3897 | ||
3898 | #define SOCK_DGRAM SOCK_DGRAM | |
3899 | SOCK_RAW = 3, | |
3900 | #define SOCK_RAW SOCK_RAW | |
3901 | SOCK_RDM = 4, | |
3902 | #define SOCK_RDM SOCK_RDM | |
3903 | SOCK_SEQPACKET = 5, | |
3904 | ||
3905 | #define SOCK_SEQPACKET SOCK_SEQPACKET | |
3906 | SOCK_PACKET = 10 | |
3907 | ||
3908 | ||
3909 | #define SOCK_PACKET SOCK_PACKET | |
3910 | }; | |
3911 | ||
3912 | ||
3913 | #define PF_UNSPEC 0 | |
3914 | #define PF_LOCAL 1 | |
3915 | #define PF_UNIX PF_LOCAL | |
3916 | #define PF_FILE PF_LOCAL | |
3917 | #define PF_INET 2 | |
3918 | #define PF_AX25 3 | |
3919 | #define PF_IPX 4 | |
3920 | #define PF_APPLETALK 5 | |
3921 | #define PF_NETROM 6 | |
3922 | #define PF_BRIDGE 7 | |
3923 | #define PF_ATMPVC 8 | |
3924 | #define PF_X25 9 | |
3925 | #define PF_INET6 10 | |
3926 | #define PF_ROSE 11 | |
3927 | #define PF_DECnet 12 | |
3928 | #define PF_NETBEUI 13 | |
3929 | #define PF_SECURITY 14 | |
3930 | #define PF_KEY 15 | |
3931 | #define PF_NETLINK 16 | |
3932 | #define PF_ROUTE PF_NETLINK | |
3933 | #define PF_PACKET 17 | |
3934 | #define PF_ASH 18 | |
3935 | #define PF_ECONET 19 | |
3936 | #define PF_ATMSVC 20 | |
3937 | #define PF_SNA 22 | |
3938 | #define PF_IRDA 23 | |
3939 | #define PF_PPPOX 24 | |
3940 | #define PF_WANPIPE 25 | |
3941 | #define PF_BLUETOOTH 31 | |
3942 | #define PF_MAX 32 | |
3943 | ||
3944 | ||
3945 | #define AF_UNSPEC PF_UNSPEC | |
3946 | #define AF_LOCAL PF_LOCAL | |
3947 | #define AF_UNIX PF_UNIX | |
3948 | #define AF_FILE PF_FILE | |
3949 | #define AF_INET PF_INET | |
3950 | #define AF_AX25 PF_AX25 | |
3951 | #define AF_IPX PF_IPX | |
3952 | #define AF_APPLETALK PF_APPLETALK | |
3953 | #define AF_NETROM PF_NETROM | |
3954 | #define AF_BRIDGE PF_BRIDGE | |
3955 | #define AF_ATMPVC PF_ATMPVC | |
3956 | #define AF_X25 PF_X25 | |
3957 | #define AF_INET6 PF_INET6 | |
3958 | #define AF_ROSE PF_ROSE | |
3959 | #define AF_DECnet PF_DECnet | |
3960 | #define AF_NETBEUI PF_NETBEUI | |
3961 | #define AF_SECURITY PF_SECURITY | |
3962 | #define AF_KEY PF_KEY | |
3963 | #define AF_NETLINK PF_NETLINK | |
3964 | #define AF_ROUTE PF_ROUTE | |
3965 | #define AF_PACKET PF_PACKET | |
3966 | #define AF_ASH PF_ASH | |
3967 | #define AF_ECONET PF_ECONET | |
3968 | #define AF_ATMSVC PF_ATMSVC | |
3969 | #define AF_SNA PF_SNA | |
3970 | #define AF_IRDA PF_IRDA | |
3971 | #define AF_PPPOX PF_PPPOX | |
3972 | #define AF_WANPIPE PF_WANPIPE | |
3973 | #define AF_BLUETOOTH PF_BLUETOOTH | |
3974 | #define AF_MAX PF_MAX | |
3975 | ||
3976 | ||
3977 | ||
3978 | ||
3979 | ||
3980 | #define SOL_RAW 255 | |
3981 | #define SOL_DECNET 261 | |
3982 | #define SOL_X25 262 | |
3983 | #define SOL_PACKET 263 | |
3984 | #define SOL_ATM 264 | |
3985 | #define SOL_AAL 265 | |
3986 | #define SOL_IRDA 266 | |
3987 | ||
3988 | ||
3989 | #define SOMAXCONN 128 | |
3990 | ||
3991 | ||
3992 | # 1 "/usr/include/bits/sockaddr.h" 1 3 4 | |
3993 | # 25 "/usr/include/bits/sockaddr.h" 3 4 | |
3994 | #define _BITS_SOCKADDR_H 1 | |
3995 | ||
3996 | ||
3997 | ||
3998 | typedef unsigned short int sa_family_t; | |
3999 | ||
4000 | ||
4001 | ||
4002 | ||
4003 | ||
4004 | #define __SOCKADDR_COMMON(sa_prefix) sa_family_t sa_prefix ##family | |
4005 | ||
4006 | ||
4007 | #define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int)) | |
4008 | # 143 "/usr/include/bits/socket.h" 2 3 4 | |
4009 | ||
4010 | ||
4011 | struct sockaddr | |
4012 | { | |
4013 | sa_family_t sa_family; | |
4014 | char sa_data[14]; | |
4015 | }; | |
4016 | ||
4017 | ||
4018 | ||
4019 | ||
4020 | ||
4021 | ||
4022 | ||
4023 | #define __ss_aligntype __uint32_t | |
4024 | ||
4025 | #define _SS_SIZE 128 | |
4026 | #define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype))) | |
4027 | ||
4028 | struct sockaddr_storage | |
4029 | { | |
4030 | sa_family_t ss_family; | |
4031 | __uint32_t __ss_align; | |
4032 | char __ss_padding[(128 - (2 * sizeof (__uint32_t)))]; | |
4033 | }; | |
4034 | ||
4035 | ||
4036 | ||
4037 | enum | |
4038 | { | |
4039 | MSG_OOB = 0x01, | |
4040 | #define MSG_OOB MSG_OOB | |
4041 | MSG_PEEK = 0x02, | |
4042 | #define MSG_PEEK MSG_PEEK | |
4043 | MSG_DONTROUTE = 0x04, | |
4044 | #define MSG_DONTROUTE MSG_DONTROUTE | |
4045 | ||
4046 | ||
4047 | MSG_TRYHARD = MSG_DONTROUTE, | |
4048 | #define MSG_TRYHARD MSG_DONTROUTE | |
4049 | ||
4050 | MSG_CTRUNC = 0x08, | |
4051 | #define MSG_CTRUNC MSG_CTRUNC | |
4052 | MSG_PROXY = 0x10, | |
4053 | #define MSG_PROXY MSG_PROXY | |
4054 | MSG_TRUNC = 0x20, | |
4055 | #define MSG_TRUNC MSG_TRUNC | |
4056 | MSG_DONTWAIT = 0x40, | |
4057 | #define MSG_DONTWAIT MSG_DONTWAIT | |
4058 | MSG_EOR = 0x80, | |
4059 | #define MSG_EOR MSG_EOR | |
4060 | MSG_WAITALL = 0x100, | |
4061 | #define MSG_WAITALL MSG_WAITALL | |
4062 | MSG_FIN = 0x200, | |
4063 | #define MSG_FIN MSG_FIN | |
4064 | MSG_SYN = 0x400, | |
4065 | #define MSG_SYN MSG_SYN | |
4066 | MSG_CONFIRM = 0x800, | |
4067 | #define MSG_CONFIRM MSG_CONFIRM | |
4068 | MSG_RST = 0x1000, | |
4069 | #define MSG_RST MSG_RST | |
4070 | MSG_ERRQUEUE = 0x2000, | |
4071 | #define MSG_ERRQUEUE MSG_ERRQUEUE | |
4072 | MSG_NOSIGNAL = 0x4000, | |
4073 | #define MSG_NOSIGNAL MSG_NOSIGNAL | |
4074 | MSG_MORE = 0x8000 | |
4075 | #define MSG_MORE MSG_MORE | |
4076 | }; | |
4077 | ||
4078 | ||
4079 | ||
4080 | ||
4081 | struct msghdr | |
4082 | { | |
4083 | void *msg_name; | |
4084 | socklen_t msg_namelen; | |
4085 | ||
4086 | struct iovec *msg_iov; | |
4087 | size_t msg_iovlen; | |
4088 | ||
4089 | void *msg_control; | |
4090 | size_t msg_controllen; | |
4091 | ||
4092 | int msg_flags; | |
4093 | }; | |
4094 | ||
4095 | ||
4096 | struct cmsghdr | |
4097 | { | |
4098 | size_t cmsg_len; | |
4099 | ||
4100 | int cmsg_level; | |
4101 | int cmsg_type; | |
4102 | ||
4103 | __extension__ unsigned char __cmsg_data []; | |
4104 | ||
4105 | }; | |
4106 | ||
4107 | ||
4108 | ||
4109 | #define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data) | |
4110 | ||
4111 | ||
4112 | ||
4113 | #define CMSG_NXTHDR(mhdr,cmsg) __cmsg_nxthdr (mhdr, cmsg) | |
4114 | #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL) | |
4115 | ||
4116 | ||
4117 | #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) | |
4118 | ||
4119 | #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr))) | |
4120 | ||
4121 | #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) | |
4122 | ||
4123 | extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, | |
4124 | struct cmsghdr *__cmsg) __attribute__ ((__nothrow__)); | |
4125 | # 284 "/usr/include/bits/socket.h" 3 4 | |
4126 | enum | |
4127 | { | |
4128 | SCM_RIGHTS = 0x01 | |
4129 | #define SCM_RIGHTS SCM_RIGHTS | |
4130 | ||
4131 | , SCM_CREDENTIALS = 0x02 | |
4132 | #define SCM_CREDENTIALS SCM_CREDENTIALS | |
4133 | ||
4134 | }; | |
4135 | ||
4136 | ||
4137 | ||
4138 | struct ucred | |
4139 | { | |
4140 | pid_t pid; | |
4141 | uid_t uid; | |
4142 | gid_t gid; | |
4143 | }; | |
4144 | ||
4145 | ||
4146 | # 1 "/usr/include/asm/socket.h" 1 3 4 | |
4147 | ||
4148 | #define _ASM_SOCKET_H | |
4149 | ||
4150 | # 1 "/usr/include/asm/sockios.h" 1 3 4 | |
4151 | ||
4152 | #define __ARCH_I386_SOCKIOS__ | |
4153 | ||
4154 | ||
4155 | #define FIOSETOWN 0x8901 | |
4156 | #define SIOCSPGRP 0x8902 | |
4157 | #define FIOGETOWN 0x8903 | |
4158 | #define SIOCGPGRP 0x8904 | |
4159 | #define SIOCATMARK 0x8905 | |
4160 | #define SIOCGSTAMP 0x8906 | |
4161 | # 5 "/usr/include/asm/socket.h" 2 3 4 | |
4162 | ||
4163 | ||
4164 | #define SOL_SOCKET 1 | |
4165 | ||
4166 | #define SO_DEBUG 1 | |
4167 | #define SO_REUSEADDR 2 | |
4168 | #define SO_TYPE 3 | |
4169 | #define SO_ERROR 4 | |
4170 | #define SO_DONTROUTE 5 | |
4171 | #define SO_BROADCAST 6 | |
4172 | #define SO_SNDBUF 7 | |
4173 | #define SO_RCVBUF 8 | |
4174 | #define SO_KEEPALIVE 9 | |
4175 | #define SO_OOBINLINE 10 | |
4176 | #define SO_NO_CHECK 11 | |
4177 | #define SO_PRIORITY 12 | |
4178 | #define SO_LINGER 13 | |
4179 | #define SO_BSDCOMPAT 14 | |
4180 | ||
4181 | #define SO_PASSCRED 16 | |
4182 | #define SO_PEERCRED 17 | |
4183 | #define SO_RCVLOWAT 18 | |
4184 | #define SO_SNDLOWAT 19 | |
4185 | #define SO_RCVTIMEO 20 | |
4186 | #define SO_SNDTIMEO 21 | |
4187 | ||
4188 | ||
4189 | #define SO_SECURITY_AUTHENTICATION 22 | |
4190 | #define SO_SECURITY_ENCRYPTION_TRANSPORT 23 | |
4191 | #define SO_SECURITY_ENCRYPTION_NETWORK 24 | |
4192 | ||
4193 | #define SO_BINDTODEVICE 25 | |
4194 | ||
4195 | ||
4196 | #define SO_ATTACH_FILTER 26 | |
4197 | #define SO_DETACH_FILTER 27 | |
4198 | ||
4199 | #define SO_PEERNAME 28 | |
4200 | #define SO_TIMESTAMP 29 | |
4201 | #define SCM_TIMESTAMP SO_TIMESTAMP | |
4202 | ||
4203 | #define SO_ACCEPTCONN 30 | |
4204 | ||
4205 | #define SO_PEERSEC 31 | |
4206 | # 305 "/usr/include/bits/socket.h" 2 3 4 | |
4207 | ||
4208 | ||
4209 | ||
4210 | struct linger | |
4211 | { | |
4212 | int l_onoff; | |
4213 | int l_linger; | |
4214 | }; | |
4215 | # 36 "/usr/include/sys/socket.h" 2 3 4 | |
4216 | ||
4217 | ||
4218 | ||
4219 | ||
4220 | struct osockaddr | |
4221 | { | |
4222 | unsigned short int sa_family; | |
4223 | unsigned char sa_data[14]; | |
4224 | }; | |
4225 | ||
4226 | ||
4227 | ||
4228 | ||
4229 | enum | |
4230 | { | |
4231 | SHUT_RD = 0, | |
4232 | #define SHUT_RD SHUT_RD | |
4233 | SHUT_WR, | |
4234 | #define SHUT_WR SHUT_WR | |
4235 | SHUT_RDWR | |
4236 | #define SHUT_RDWR SHUT_RDWR | |
4237 | }; | |
4238 | # 71 "/usr/include/sys/socket.h" 3 4 | |
4239 | #define __SOCKADDR_ALLTYPES __SOCKADDR_ONETYPE (sockaddr) __SOCKADDR_ONETYPE (sockaddr_at) __SOCKADDR_ONETYPE (sockaddr_ax25) __SOCKADDR_ONETYPE (sockaddr_dl) __SOCKADDR_ONETYPE (sockaddr_eon) __SOCKADDR_ONETYPE (sockaddr_in) __SOCKADDR_ONETYPE (sockaddr_in6) __SOCKADDR_ONETYPE (sockaddr_inarp) __SOCKADDR_ONETYPE (sockaddr_ipx) __SOCKADDR_ONETYPE (sockaddr_iso) __SOCKADDR_ONETYPE (sockaddr_ns) __SOCKADDR_ONETYPE (sockaddr_un) __SOCKADDR_ONETYPE (sockaddr_x25) | |
4240 | # 86 "/usr/include/sys/socket.h" 3 4 | |
4241 | #define __SOCKADDR_ONETYPE(type) struct type *__restrict __ ##type ##__; | |
4242 | typedef union { struct sockaddr *__restrict __sockaddr__; struct sockaddr_at *__restrict __sockaddr_at__; struct sockaddr_ax25 *__restrict __sockaddr_ax25__; struct sockaddr_dl *__restrict __sockaddr_dl__; struct sockaddr_eon *__restrict __sockaddr_eon__; struct sockaddr_in *__restrict __sockaddr_in__; struct sockaddr_in6 *__restrict __sockaddr_in6__; struct sockaddr_inarp *__restrict __sockaddr_inarp__; struct sockaddr_ipx *__restrict __sockaddr_ipx__; struct sockaddr_iso *__restrict __sockaddr_iso__; struct sockaddr_ns *__restrict __sockaddr_ns__; struct sockaddr_un *__restrict __sockaddr_un__; struct sockaddr_x25 *__restrict __sockaddr_x25__; | |
4243 | } __SOCKADDR_ARG __attribute__ ((__transparent_union__)); | |
4244 | #undef __SOCKADDR_ONETYPE | |
4245 | #define __SOCKADDR_ONETYPE(type) __const struct type *__restrict __ ##type ##__; | |
4246 | typedef union { __const struct sockaddr *__restrict __sockaddr__; __const struct sockaddr_at *__restrict __sockaddr_at__; __const struct sockaddr_ax25 *__restrict __sockaddr_ax25__; __const struct sockaddr_dl *__restrict __sockaddr_dl__; __const struct sockaddr_eon *__restrict __sockaddr_eon__; __const struct sockaddr_in *__restrict __sockaddr_in__; __const struct sockaddr_in6 *__restrict __sockaddr_in6__; __const struct sockaddr_inarp *__restrict __sockaddr_inarp__; __const struct sockaddr_ipx *__restrict __sockaddr_ipx__; __const struct sockaddr_iso *__restrict __sockaddr_iso__; __const struct sockaddr_ns *__restrict __sockaddr_ns__; __const struct sockaddr_un *__restrict __sockaddr_un__; __const struct sockaddr_x25 *__restrict __sockaddr_x25__; | |
4247 | } __CONST_SOCKADDR_ARG __attribute__ ((__transparent_union__)); | |
4248 | #undef __SOCKADDR_ONETYPE | |
4249 | ||
4250 | ||
4251 | ||
4252 | ||
4253 | ||
4254 | ||
4255 | extern int socket (int __domain, int __type, int __protocol) __attribute__ ((__nothrow__)); | |
4256 | ||
4257 | ||
4258 | ||
4259 | ||
4260 | ||
4261 | extern int socketpair (int __domain, int __type, int __protocol, | |
4262 | int __fds[2]) __attribute__ ((__nothrow__)); | |
4263 | ||
4264 | ||
4265 | extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len) | |
4266 | __attribute__ ((__nothrow__)); | |
4267 | ||
4268 | ||
4269 | extern int getsockname (int __fd, __SOCKADDR_ARG __addr, | |
4270 | socklen_t *__restrict __len) __attribute__ ((__nothrow__)); | |
4271 | # 124 "/usr/include/sys/socket.h" 3 4 | |
4272 | extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); | |
4273 | ||
4274 | ||
4275 | ||
4276 | extern int getpeername (int __fd, __SOCKADDR_ARG __addr, | |
4277 | socklen_t *__restrict __len) __attribute__ ((__nothrow__)); | |
4278 | ||
4279 | ||
4280 | ||
4281 | ||
4282 | ||
4283 | ||
4284 | extern ssize_t send (int __fd, __const void *__buf, size_t __n, int __flags); | |
4285 | ||
4286 | ||
4287 | ||
4288 | ||
4289 | ||
4290 | ||
4291 | extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags); | |
4292 | ||
4293 | ||
4294 | ||
4295 | ||
4296 | ||
4297 | ||
4298 | extern ssize_t sendto (int __fd, __const void *__buf, size_t __n, | |
4299 | int __flags, __CONST_SOCKADDR_ARG __addr, | |
4300 | socklen_t __addr_len); | |
4301 | # 161 "/usr/include/sys/socket.h" 3 4 | |
4302 | extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, | |
4303 | int __flags, __SOCKADDR_ARG __addr, | |
4304 | socklen_t *__restrict __addr_len); | |
4305 | ||
4306 | ||
4307 | ||
4308 | ||
4309 | ||
4310 | ||
4311 | ||
4312 | extern ssize_t sendmsg (int __fd, __const struct msghdr *__message, | |
4313 | int __flags); | |
4314 | ||
4315 | ||
4316 | ||
4317 | ||
4318 | ||
4319 | ||
4320 | extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags); | |
4321 | ||
4322 | ||
4323 | ||
4324 | ||
4325 | ||
4326 | extern int getsockopt (int __fd, int __level, int __optname, | |
4327 | void *__restrict __optval, | |
4328 | socklen_t *__restrict __optlen) __attribute__ ((__nothrow__)); | |
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | extern int setsockopt (int __fd, int __level, int __optname, | |
4334 | __const void *__optval, socklen_t __optlen) __attribute__ ((__nothrow__)); | |
4335 | ||
4336 | ||
4337 | ||
4338 | ||
4339 | ||
4340 | extern int listen (int __fd, int __n) __attribute__ ((__nothrow__)); | |
4341 | # 209 "/usr/include/sys/socket.h" 3 4 | |
4342 | extern int accept (int __fd, __SOCKADDR_ARG __addr, | |
4343 | socklen_t *__restrict __addr_len); | |
4344 | ||
4345 | ||
4346 | ||
4347 | ||
4348 | ||
4349 | ||
4350 | ||
4351 | extern int shutdown (int __fd, int __how) __attribute__ ((__nothrow__)); | |
4352 | ||
4353 | ||
4354 | ||
4355 | ||
4356 | extern int sockatmark (int __fd) __attribute__ ((__nothrow__)); | |
4357 | ||
4358 | ||
4359 | ||
4360 | ||
4361 | ||
4362 | ||
4363 | ||
4364 | extern int isfdtype (int __fd, int __fdtype) __attribute__ ((__nothrow__)); | |
4365 | # 240 "/usr/include/sys/socket.h" 3 4 | |
4366 | ||
4367 | # 25 "/usr/include/netinet/in.h" 2 3 4 | |
4368 | ||
4369 | ||
4370 | ||
4371 | ||
4372 | ||
4373 | ||
4374 | enum | |
4375 | { | |
4376 | IPPROTO_IP = 0, | |
4377 | #define IPPROTO_IP IPPROTO_IP | |
4378 | IPPROTO_HOPOPTS = 0, | |
4379 | #define IPPROTO_HOPOPTS IPPROTO_HOPOPTS | |
4380 | IPPROTO_ICMP = 1, | |
4381 | #define IPPROTO_ICMP IPPROTO_ICMP | |
4382 | IPPROTO_IGMP = 2, | |
4383 | #define IPPROTO_IGMP IPPROTO_IGMP | |
4384 | IPPROTO_IPIP = 4, | |
4385 | #define IPPROTO_IPIP IPPROTO_IPIP | |
4386 | IPPROTO_TCP = 6, | |
4387 | #define IPPROTO_TCP IPPROTO_TCP | |
4388 | IPPROTO_EGP = 8, | |
4389 | #define IPPROTO_EGP IPPROTO_EGP | |
4390 | IPPROTO_PUP = 12, | |
4391 | #define IPPROTO_PUP IPPROTO_PUP | |
4392 | IPPROTO_UDP = 17, | |
4393 | #define IPPROTO_UDP IPPROTO_UDP | |
4394 | IPPROTO_IDP = 22, | |
4395 | #define IPPROTO_IDP IPPROTO_IDP | |
4396 | IPPROTO_TP = 29, | |
4397 | #define IPPROTO_TP IPPROTO_TP | |
4398 | IPPROTO_IPV6 = 41, | |
4399 | #define IPPROTO_IPV6 IPPROTO_IPV6 | |
4400 | IPPROTO_ROUTING = 43, | |
4401 | #define IPPROTO_ROUTING IPPROTO_ROUTING | |
4402 | IPPROTO_FRAGMENT = 44, | |
4403 | #define IPPROTO_FRAGMENT IPPROTO_FRAGMENT | |
4404 | IPPROTO_RSVP = 46, | |
4405 | #define IPPROTO_RSVP IPPROTO_RSVP | |
4406 | IPPROTO_GRE = 47, | |
4407 | #define IPPROTO_GRE IPPROTO_GRE | |
4408 | IPPROTO_ESP = 50, | |
4409 | #define IPPROTO_ESP IPPROTO_ESP | |
4410 | IPPROTO_AH = 51, | |
4411 | #define IPPROTO_AH IPPROTO_AH | |
4412 | IPPROTO_ICMPV6 = 58, | |
4413 | #define IPPROTO_ICMPV6 IPPROTO_ICMPV6 | |
4414 | IPPROTO_NONE = 59, | |
4415 | #define IPPROTO_NONE IPPROTO_NONE | |
4416 | IPPROTO_DSTOPTS = 60, | |
4417 | #define IPPROTO_DSTOPTS IPPROTO_DSTOPTS | |
4418 | IPPROTO_MTP = 92, | |
4419 | #define IPPROTO_MTP IPPROTO_MTP | |
4420 | IPPROTO_ENCAP = 98, | |
4421 | #define IPPROTO_ENCAP IPPROTO_ENCAP | |
4422 | IPPROTO_PIM = 103, | |
4423 | #define IPPROTO_PIM IPPROTO_PIM | |
4424 | IPPROTO_COMP = 108, | |
4425 | #define IPPROTO_COMP IPPROTO_COMP | |
4426 | IPPROTO_SCTP = 132, | |
4427 | #define IPPROTO_SCTP IPPROTO_SCTP | |
4428 | IPPROTO_RAW = 255, | |
4429 | #define IPPROTO_RAW IPPROTO_RAW | |
4430 | IPPROTO_MAX | |
4431 | }; | |
4432 | ||
4433 | ||
4434 | ||
4435 | typedef uint16_t in_port_t; | |
4436 | ||
4437 | ||
4438 | enum | |
4439 | { | |
4440 | IPPORT_ECHO = 7, | |
4441 | IPPORT_DISCARD = 9, | |
4442 | IPPORT_SYSTAT = 11, | |
4443 | IPPORT_DAYTIME = 13, | |
4444 | IPPORT_NETSTAT = 15, | |
4445 | IPPORT_FTP = 21, | |
4446 | IPPORT_TELNET = 23, | |
4447 | IPPORT_SMTP = 25, | |
4448 | IPPORT_TIMESERVER = 37, | |
4449 | IPPORT_NAMESERVER = 42, | |
4450 | IPPORT_WHOIS = 43, | |
4451 | IPPORT_MTP = 57, | |
4452 | ||
4453 | IPPORT_TFTP = 69, | |
4454 | IPPORT_RJE = 77, | |
4455 | IPPORT_FINGER = 79, | |
4456 | IPPORT_TTYLINK = 87, | |
4457 | IPPORT_SUPDUP = 95, | |
4458 | ||
4459 | ||
4460 | IPPORT_EXECSERVER = 512, | |
4461 | IPPORT_LOGINSERVER = 513, | |
4462 | IPPORT_CMDSERVER = 514, | |
4463 | IPPORT_EFSSERVER = 520, | |
4464 | ||
4465 | ||
4466 | IPPORT_BIFFUDP = 512, | |
4467 | IPPORT_WHOSERVER = 513, | |
4468 | IPPORT_ROUTESERVER = 520, | |
4469 | ||
4470 | ||
4471 | IPPORT_RESERVED = 1024, | |
4472 | ||
4473 | ||
4474 | IPPORT_USERRESERVED = 5000 | |
4475 | }; | |
4476 | ||
4477 | ||
4478 | ||
4479 | typedef uint32_t in_addr_t; | |
4480 | struct in_addr | |
4481 | { | |
4482 | in_addr_t s_addr; | |
4483 | }; | |
4484 | ||
4485 | ||
4486 | ||
4487 | ||
4488 | ||
4489 | ||
4490 | ||
4491 | #define IN_CLASSA(a) ((((in_addr_t)(a)) & 0x80000000) == 0) | |
4492 | #define IN_CLASSA_NET 0xff000000 | |
4493 | #define IN_CLASSA_NSHIFT 24 | |
4494 | #define IN_CLASSA_HOST (0xffffffff & ~IN_CLASSA_NET) | |
4495 | #define IN_CLASSA_MAX 128 | |
4496 | ||
4497 | #define IN_CLASSB(a) ((((in_addr_t)(a)) & 0xc0000000) == 0x80000000) | |
4498 | #define IN_CLASSB_NET 0xffff0000 | |
4499 | #define IN_CLASSB_NSHIFT 16 | |
4500 | #define IN_CLASSB_HOST (0xffffffff & ~IN_CLASSB_NET) | |
4501 | #define IN_CLASSB_MAX 65536 | |
4502 | ||
4503 | #define IN_CLASSC(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xc0000000) | |
4504 | #define IN_CLASSC_NET 0xffffff00 | |
4505 | #define IN_CLASSC_NSHIFT 8 | |
4506 | #define IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET) | |
4507 | ||
4508 | #define IN_CLASSD(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xe0000000) | |
4509 | #define IN_MULTICAST(a) IN_CLASSD(a) | |
4510 | ||
4511 | #define IN_EXPERIMENTAL(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000) | |
4512 | #define IN_BADCLASS(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000) | |
4513 | ||
4514 | ||
4515 | #define INADDR_ANY ((in_addr_t) 0x00000000) | |
4516 | ||
4517 | #define INADDR_BROADCAST ((in_addr_t) 0xffffffff) | |
4518 | ||
4519 | #define INADDR_NONE ((in_addr_t) 0xffffffff) | |
4520 | ||
4521 | ||
4522 | #define IN_LOOPBACKNET 127 | |
4523 | ||
4524 | ||
4525 | #define INADDR_LOOPBACK ((in_addr_t) 0x7f000001) | |
4526 | ||
4527 | ||
4528 | ||
4529 | #define INADDR_UNSPEC_GROUP ((in_addr_t) 0xe0000000) | |
4530 | #define INADDR_ALLHOSTS_GROUP ((in_addr_t) 0xe0000001) | |
4531 | #define INADDR_ALLRTRS_GROUP ((in_addr_t) 0xe0000002) | |
4532 | #define INADDR_MAX_LOCAL_GROUP ((in_addr_t) 0xe00000ff) | |
4533 | ||
4534 | ||
4535 | ||
4536 | struct in6_addr | |
4537 | { | |
4538 | union | |
4539 | { | |
4540 | uint8_t u6_addr8[16]; | |
4541 | uint16_t u6_addr16[8]; | |
4542 | uint32_t u6_addr32[4]; | |
4543 | } in6_u; | |
4544 | #define s6_addr in6_u.u6_addr8 | |
4545 | #define s6_addr16 in6_u.u6_addr16 | |
4546 | #define s6_addr32 in6_u.u6_addr32 | |
4547 | }; | |
4548 | ||
4549 | extern const struct in6_addr in6addr_any; | |
4550 | extern const struct in6_addr in6addr_loopback; | |
4551 | #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } | |
4552 | #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } | |
4553 | ||
4554 | #define INET_ADDRSTRLEN 16 | |
4555 | #define INET6_ADDRSTRLEN 46 | |
4556 | ||
4557 | ||
4558 | ||
4559 | ||
4560 | ||
4561 | ||
4562 | struct sockaddr_in | |
4563 | { | |
4564 | sa_family_t sin_family; | |
4565 | in_port_t sin_port; | |
4566 | struct in_addr sin_addr; | |
4567 | ||
4568 | ||
4569 | unsigned char sin_zero[sizeof (struct sockaddr) - | |
4570 | (sizeof (unsigned short int)) - | |
4571 | sizeof (in_port_t) - | |
4572 | sizeof (struct in_addr)]; | |
4573 | }; | |
4574 | ||
4575 | ||
4576 | struct sockaddr_in6 | |
4577 | { | |
4578 | sa_family_t sin6_family; | |
4579 | in_port_t sin6_port; | |
4580 | uint32_t sin6_flowinfo; | |
4581 | struct in6_addr sin6_addr; | |
4582 | uint32_t sin6_scope_id; | |
4583 | }; | |
4584 | ||
4585 | ||
4586 | ||
4587 | struct ip_mreq | |
4588 | { | |
4589 | ||
4590 | struct in_addr imr_multiaddr; | |
4591 | ||
4592 | ||
4593 | struct in_addr imr_interface; | |
4594 | }; | |
4595 | ||
4596 | struct ip_mreq_source | |
4597 | { | |
4598 | ||
4599 | struct in_addr imr_multiaddr; | |
4600 | ||
4601 | ||
4602 | struct in_addr imr_interface; | |
4603 | ||
4604 | ||
4605 | struct in_addr imr_sourceaddr; | |
4606 | }; | |
4607 | ||
4608 | ||
4609 | struct ipv6_mreq | |
4610 | { | |
4611 | ||
4612 | struct in6_addr ipv6mr_multiaddr; | |
4613 | ||
4614 | ||
4615 | unsigned int ipv6mr_interface; | |
4616 | }; | |
4617 | ||
4618 | ||
4619 | ||
4620 | struct group_req | |
4621 | { | |
4622 | ||
4623 | uint32_t gr_interface; | |
4624 | ||
4625 | ||
4626 | struct sockaddr_storage gr_group; | |
4627 | }; | |
4628 | ||
4629 | struct group_source_req | |
4630 | { | |
4631 | ||
4632 | uint32_t gsr_interface; | |
4633 | ||
4634 | ||
4635 | struct sockaddr_storage gsr_group; | |
4636 | ||
4637 | ||
4638 | struct sockaddr_storage gsr_source; | |
4639 | }; | |
4640 | ||
4641 | ||
4642 | ||
4643 | struct ip_msfilter | |
4644 | { | |
4645 | ||
4646 | struct in_addr imsf_multiaddr; | |
4647 | ||
4648 | ||
4649 | struct in_addr imsf_interface; | |
4650 | ||
4651 | ||
4652 | uint32_t imsf_fmode; | |
4653 | ||
4654 | ||
4655 | uint32_t imsf_numsrc; | |
4656 | ||
4657 | struct in_addr imsf_slist[1]; | |
4658 | }; | |
4659 | ||
4660 | #define IP_MSFILTER_SIZE(numsrc) (sizeof (struct ip_msfilter) - sizeof (struct in_addr) + (numsrc) * sizeof (struct in_addr)) | |
4661 | ||
4662 | ||
4663 | ||
4664 | struct group_filter | |
4665 | { | |
4666 | ||
4667 | uint32_t gf_interface; | |
4668 | ||
4669 | ||
4670 | struct sockaddr_storage gf_group; | |
4671 | ||
4672 | ||
4673 | uint32_t gf_fmode; | |
4674 | ||
4675 | ||
4676 | uint32_t gf_numsrc; | |
4677 | ||
4678 | struct sockaddr_storage gf_slist[1]; | |
4679 | }; | |
4680 | ||
4681 | #define GROUP_FILTER_SIZE(numsrc) (sizeof (struct group_filter) - sizeof (struct sockaddr_storage) + ((numsrc) * sizeof (struct sockaddr_storage))) | |
4682 | ||
4683 | ||
4684 | ||
4685 | ||
4686 | ||
4687 | ||
4688 | # 1 "/usr/include/bits/in.h" 1 3 4 | |
4689 | # 28 "/usr/include/bits/in.h" 3 4 | |
4690 | #define IP_OPTIONS 4 | |
4691 | #define IP_HDRINCL 3 | |
4692 | #define IP_TOS 1 | |
4693 | #define IP_TTL 2 | |
4694 | #define IP_RECVOPTS 6 | |
4695 | ||
4696 | #define IP_RECVRETOPTS IP_RETOPTS | |
4697 | #define IP_RETOPTS 7 | |
4698 | #define IP_MULTICAST_IF 32 | |
4699 | #define IP_MULTICAST_TTL 33 | |
4700 | #define IP_MULTICAST_LOOP 34 | |
4701 | #define IP_ADD_MEMBERSHIP 35 | |
4702 | #define IP_DROP_MEMBERSHIP 36 | |
4703 | #define IP_UNBLOCK_SOURCE 37 | |
4704 | #define IP_BLOCK_SOURCE 38 | |
4705 | #define IP_ADD_SOURCE_MEMBERSHIP 39 | |
4706 | #define IP_DROP_SOURCE_MEMBERSHIP 40 | |
4707 | #define IP_MSFILTER 41 | |
4708 | #define MCAST_JOIN_GROUP 42 | |
4709 | #define MCAST_BLOCK_SOURCE 43 | |
4710 | #define MCAST_UNBLOCK_SOURCE 44 | |
4711 | #define MCAST_LEAVE_GROUP 45 | |
4712 | #define MCAST_JOIN_SOURCE_GROUP 46 | |
4713 | #define MCAST_LEAVE_SOURCE_GROUP 47 | |
4714 | #define MCAST_MSFILTER 48 | |
4715 | ||
4716 | #define MCAST_EXCLUDE 0 | |
4717 | #define MCAST_INCLUDE 1 | |
4718 | ||
4719 | #define IP_ROUTER_ALERT 5 | |
4720 | #define IP_PKTINFO 8 | |
4721 | #define IP_PKTOPTIONS 9 | |
4722 | #define IP_PMTUDISC 10 | |
4723 | #define IP_MTU_DISCOVER 10 | |
4724 | #define IP_RECVERR 11 | |
4725 | #define IP_RECVTTL 12 | |
4726 | #define IP_RECVTOS 13 | |
4727 | ||
4728 | ||
4729 | ||
4730 | #define IP_PMTUDISC_DONT 0 | |
4731 | #define IP_PMTUDISC_WANT 1 | |
4732 | #define IP_PMTUDISC_DO 2 | |
4733 | ||
4734 | ||
4735 | #define SOL_IP 0 | |
4736 | ||
4737 | #define IP_DEFAULT_MULTICAST_TTL 1 | |
4738 | #define IP_DEFAULT_MULTICAST_LOOP 1 | |
4739 | #define IP_MAX_MEMBERSHIPS 20 | |
4740 | ||
4741 | ||
4742 | ||
4743 | ||
4744 | struct ip_opts | |
4745 | { | |
4746 | struct in_addr ip_dst; | |
4747 | char ip_opts[40]; | |
4748 | }; | |
4749 | ||
4750 | ||
4751 | struct ip_mreqn | |
4752 | { | |
4753 | struct in_addr imr_multiaddr; | |
4754 | struct in_addr imr_address; | |
4755 | int imr_ifindex; | |
4756 | }; | |
4757 | ||
4758 | ||
4759 | struct in_pktinfo | |
4760 | { | |
4761 | int ipi_ifindex; | |
4762 | struct in_addr ipi_spec_dst; | |
4763 | struct in_addr ipi_addr; | |
4764 | }; | |
4765 | ||
4766 | ||
4767 | ||
4768 | ||
4769 | #define IPV6_ADDRFORM 1 | |
4770 | #define IPV6_2292PKTINFO 2 | |
4771 | #define IPV6_2292HOPOPTS 3 | |
4772 | #define IPV6_2292DSTOPTS 4 | |
4773 | #define IPV6_2292RTHDR 5 | |
4774 | #define IPV6_2292PKTOPTIONS 6 | |
4775 | #define IPV6_CHECKSUM 7 | |
4776 | #define IPV6_2292HOPLIMIT 8 | |
4777 | ||
4778 | #define SCM_SRCRT IPV6_RXSRCRT | |
4779 | ||
4780 | #define IPV6_NEXTHOP 9 | |
4781 | #define IPV6_AUTHHDR 10 | |
4782 | #define IPV6_UNICAST_HOPS 16 | |
4783 | #define IPV6_MULTICAST_IF 17 | |
4784 | #define IPV6_MULTICAST_HOPS 18 | |
4785 | #define IPV6_MULTICAST_LOOP 19 | |
4786 | #define IPV6_JOIN_GROUP 20 | |
4787 | #define IPV6_LEAVE_GROUP 21 | |
4788 | #define IPV6_ROUTER_ALERT 22 | |
4789 | #define IPV6_MTU_DISCOVER 23 | |
4790 | #define IPV6_MTU 24 | |
4791 | #define IPV6_RECVERR 25 | |
4792 | #define IPV6_V6ONLY 26 | |
4793 | #define IPV6_JOIN_ANYCAST 27 | |
4794 | #define IPV6_LEAVE_ANYCAST 28 | |
4795 | #define IPV6_IPSEC_POLICY 34 | |
4796 | #define IPV6_XFRM_POLICY 35 | |
4797 | ||
4798 | #define IPV6_RECVPKTINFO 49 | |
4799 | #define IPV6_PKTINFO 50 | |
4800 | #define IPV6_RECVHOPLIMIT 51 | |
4801 | #define IPV6_HOPLIMIT 52 | |
4802 | #define IPV6_RECVHOPOPTS 53 | |
4803 | #define IPV6_HOPOPTS 54 | |
4804 | #define IPV6_RTHDRDSTOPTS 55 | |
4805 | #define IPV6_RECVRTHDR 56 | |
4806 | #define IPV6_RTHDR 57 | |
4807 | #define IPV6_RECVDSTOPTS 58 | |
4808 | #define IPV6_DSTOPTS 59 | |
4809 | ||
4810 | #define IPV6_RECVTCLASS 66 | |
4811 | #define IPV6_TCLASS 67 | |
4812 | ||
4813 | ||
4814 | #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP | |
4815 | #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP | |
4816 | #define IPV6_RXHOPOPTS IPV6_HOPOPTS | |
4817 | #define IPV6_RXDSTOPTS IPV6_DSTOPTS | |
4818 | ||
4819 | ||
4820 | #define IPV6_PMTUDISC_DONT 0 | |
4821 | #define IPV6_PMTUDISC_WANT 1 | |
4822 | #define IPV6_PMTUDISC_DO 2 | |
4823 | ||
4824 | ||
4825 | #define SOL_IPV6 41 | |
4826 | #define SOL_ICMPV6 58 | |
4827 | ||
4828 | ||
4829 | #define IPV6_RTHDR_LOOSE 0 | |
4830 | #define IPV6_RTHDR_STRICT 1 | |
4831 | ||
4832 | #define IPV6_RTHDR_TYPE_0 0 | |
4833 | # 346 "/usr/include/netinet/in.h" 2 3 4 | |
4834 | # 354 "/usr/include/netinet/in.h" 3 4 | |
4835 | extern uint32_t ntohl (uint32_t __netlong) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
4836 | extern uint16_t ntohs (uint16_t __netshort) | |
4837 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
4838 | extern uint32_t htonl (uint32_t __hostlong) | |
4839 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
4840 | extern uint16_t htons (uint16_t __hostshort) | |
4841 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
4842 | ||
4843 | ||
4844 | ||
4845 | ||
4846 | # 1 "/usr/include/bits/byteswap.h" 1 3 4 | |
4847 | # 25 "/usr/include/bits/byteswap.h" 3 4 | |
4848 | #define _BITS_BYTESWAP_H 1 | |
4849 | ||
4850 | ||
4851 | #define __bswap_constant_16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)) | |
4852 | ||
4853 | ||
4854 | ||
4855 | ||
4856 | #define __bswap_16(x) (__extension__ ({ register unsigned short int __v, __x = (x); if (__builtin_constant_p (__x)) __v = __bswap_constant_16 (__x); else __asm__ ("rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) | |
4857 | # 59 "/usr/include/bits/byteswap.h" 3 4 | |
4858 | #define __bswap_constant_32(x) ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) | |
4859 | # 69 "/usr/include/bits/byteswap.h" 3 4 | |
4860 | #define __bswap_32(x) (__extension__ ({ register unsigned int __v, __x = (x); if (__builtin_constant_p (__x)) __v = __bswap_constant_32 (__x); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) | |
4861 | # 108 "/usr/include/bits/byteswap.h" 3 4 | |
4862 | #define __bswap_constant_64(x) ((((x) & 0xff00000000000000ull) >> 56) | (((x) & 0x00ff000000000000ull) >> 40) | (((x) & 0x0000ff0000000000ull) >> 24) | (((x) & 0x000000ff00000000ull) >> 8) | (((x) & 0x00000000ff000000ull) << 8) | (((x) & 0x0000000000ff0000ull) << 24) | (((x) & 0x000000000000ff00ull) << 40) | (((x) & 0x00000000000000ffull) << 56)) | |
4863 | # 118 "/usr/include/bits/byteswap.h" 3 4 | |
4864 | #define __bswap_64(x) (__extension__ ({ union { __extension__ unsigned long long int __ll; unsigned long int __l[2]; } __w, __r; if (__builtin_constant_p (x)) __r.__ll = __bswap_constant_64 (x); else { __w.__ll = (x); __r.__l[0] = __bswap_32 (__w.__l[1]); __r.__l[1] = __bswap_32 (__w.__l[0]); } __r.__ll; })) | |
4865 | # 366 "/usr/include/netinet/in.h" 2 3 4 | |
4866 | # 380 "/usr/include/netinet/in.h" 3 4 | |
4867 | #define ntohl(x) __bswap_32 (x) | |
4868 | #define ntohs(x) __bswap_16 (x) | |
4869 | #define htonl(x) __bswap_32 (x) | |
4870 | #define htons(x) __bswap_16 (x) | |
4871 | ||
4872 | ||
4873 | ||
4874 | ||
4875 | #define IN6_IS_ADDR_UNSPECIFIED(a) (((__const uint32_t *) (a))[0] == 0 && ((__const uint32_t *) (a))[1] == 0 && ((__const uint32_t *) (a))[2] == 0 && ((__const uint32_t *) (a))[3] == 0) | |
4876 | ||
4877 | ||
4878 | ||
4879 | ||
4880 | ||
4881 | #define IN6_IS_ADDR_LOOPBACK(a) (((__const uint32_t *) (a))[0] == 0 && ((__const uint32_t *) (a))[1] == 0 && ((__const uint32_t *) (a))[2] == 0 && ((__const uint32_t *) (a))[3] == htonl (1)) | |
4882 | ||
4883 | ||
4884 | ||
4885 | ||
4886 | ||
4887 | #define IN6_IS_ADDR_MULTICAST(a) (((__const uint8_t *) (a))[0] == 0xff) | |
4888 | ||
4889 | #define IN6_IS_ADDR_LINKLOCAL(a) ((((__const uint32_t *) (a))[0] & htonl (0xffc00000)) == htonl (0xfe800000)) | |
4890 | ||
4891 | ||
4892 | ||
4893 | #define IN6_IS_ADDR_SITELOCAL(a) ((((__const uint32_t *) (a))[0] & htonl (0xffc00000)) == htonl (0xfec00000)) | |
4894 | ||
4895 | ||
4896 | ||
4897 | #define IN6_IS_ADDR_V4MAPPED(a) ((((__const uint32_t *) (a))[0] == 0) && (((__const uint32_t *) (a))[1] == 0) && (((__const uint32_t *) (a))[2] == htonl (0xffff))) | |
4898 | ||
4899 | ||
4900 | ||
4901 | ||
4902 | #define IN6_IS_ADDR_V4COMPAT(a) ((((__const uint32_t *) (a))[0] == 0) && (((__const uint32_t *) (a))[1] == 0) && (((__const uint32_t *) (a))[2] == 0) && (ntohl (((__const uint32_t *) (a))[3]) > 1)) | |
4903 | ||
4904 | ||
4905 | ||
4906 | ||
4907 | ||
4908 | #define IN6_ARE_ADDR_EQUAL(a,b) ((((__const uint32_t *) (a))[0] == ((__const uint32_t *) (b))[0]) && (((__const uint32_t *) (a))[1] == ((__const uint32_t *) (b))[1]) && (((__const uint32_t *) (a))[2] == ((__const uint32_t *) (b))[2]) && (((__const uint32_t *) (a))[3] == ((__const uint32_t *) (b))[3])) | |
4909 | ||
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) __attribute__ ((__nothrow__)); | |
4916 | ||
4917 | ||
4918 | extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in) | |
4919 | __attribute__ ((__nothrow__)); | |
4920 | ||
4921 | ||
4922 | #define IN6_IS_ADDR_MC_NODELOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((__const uint8_t *) (a))[1] & 0xf) == 0x1)) | |
4923 | ||
4924 | ||
4925 | ||
4926 | #define IN6_IS_ADDR_MC_LINKLOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((__const uint8_t *) (a))[1] & 0xf) == 0x2)) | |
4927 | ||
4928 | ||
4929 | ||
4930 | #define IN6_IS_ADDR_MC_SITELOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((__const uint8_t *) (a))[1] & 0xf) == 0x5)) | |
4931 | ||
4932 | ||
4933 | ||
4934 | #define IN6_IS_ADDR_MC_ORGLOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((__const uint8_t *) (a))[1] & 0xf) == 0x8)) | |
4935 | ||
4936 | ||
4937 | ||
4938 | #define IN6_IS_ADDR_MC_GLOBAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((__const uint8_t *) (a))[1] & 0xf) == 0xe)) | |
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | struct in6_pktinfo | |
4944 | { | |
4945 | struct in6_addr ipi6_addr; | |
4946 | unsigned int ipi6_ifindex; | |
4947 | }; | |
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | extern int inet6_option_space (int __nbytes) __attribute__ ((__nothrow__)); | |
4953 | extern int inet6_option_init (void *__bp, struct cmsghdr **__cmsgp, | |
4954 | int __type) __attribute__ ((__nothrow__)); | |
4955 | extern int inet6_option_append (struct cmsghdr *__cmsg, | |
4956 | __const uint8_t *__typep, int __multx, | |
4957 | int __plusy) __attribute__ ((__nothrow__)); | |
4958 | extern uint8_t *inet6_option_alloc (struct cmsghdr *__cmsg, int __datalen, | |
4959 | int __multx, int __plusy) __attribute__ ((__nothrow__)); | |
4960 | extern int inet6_option_next (__const struct cmsghdr *__cmsg, | |
4961 | uint8_t **__tptrp) __attribute__ ((__nothrow__)); | |
4962 | extern int inet6_option_find (__const struct cmsghdr *__cmsg, | |
4963 | uint8_t **__tptrp, int __type) __attribute__ ((__nothrow__)); | |
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | extern int getipv4sourcefilter (int __s, struct in_addr __interface_addr, | |
4970 | struct in_addr __group, uint32_t *__fmode, | |
4971 | uint32_t *__numsrc, struct in_addr *__slist) | |
4972 | __attribute__ ((__nothrow__)); | |
4973 | ||
4974 | ||
4975 | extern int setipv4sourcefilter (int __s, struct in_addr __interface_addr, | |
4976 | struct in_addr __group, uint32_t __fmode, | |
4977 | uint32_t __numsrc, | |
4978 | __const struct in_addr *__slist) | |
4979 | __attribute__ ((__nothrow__)); | |
4980 | ||
4981 | ||
4982 | ||
4983 | extern int getsourcefilter (int __s, uint32_t __interface_addr, | |
4984 | __const struct sockaddr *__group, | |
4985 | socklen_t __grouplen, uint32_t *__fmode, | |
4986 | uint32_t *__numsrc, | |
4987 | struct sockaddr_storage *__slist) __attribute__ ((__nothrow__)); | |
4988 | ||
4989 | ||
4990 | extern int setsourcefilter (int __s, uint32_t __interface_addr, | |
4991 | __const struct sockaddr *__group, | |
4992 | socklen_t __grouplen, uint32_t __fmode, | |
4993 | uint32_t __numsrc, | |
4994 | __const struct sockaddr_storage *__slist) __attribute__ ((__nothrow__)); | |
4995 | ||
4996 | ||
4997 | ||
4998 | # 29 "/usr/include/netdb.h" 2 3 4 | |
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | # 1 "/usr/include/rpc/netdb.h" 1 3 4 | |
5004 | # 37 "/usr/include/rpc/netdb.h" 3 4 | |
5005 | #define _RPC_NETDB_H 1 | |
5006 | ||
5007 | ||
5008 | ||
5009 | #define __need_size_t | |
5010 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
5011 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
5012 | #undef __need_size_t | |
5013 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
5014 | #undef __need_NULL | |
5015 | # 43 "/usr/include/rpc/netdb.h" 2 3 4 | |
5016 | ||
5017 | ||
5018 | ||
5019 | struct rpcent | |
5020 | { | |
5021 | char *r_name; | |
5022 | char **r_aliases; | |
5023 | int r_number; | |
5024 | }; | |
5025 | ||
5026 | extern void setrpcent (int __stayopen) __attribute__ ((__nothrow__)); | |
5027 | extern void endrpcent (void) __attribute__ ((__nothrow__)); | |
5028 | extern struct rpcent *getrpcbyname (__const char *__name) __attribute__ ((__nothrow__)); | |
5029 | extern struct rpcent *getrpcbynumber (int __number) __attribute__ ((__nothrow__)); | |
5030 | extern struct rpcent *getrpcent (void) __attribute__ ((__nothrow__)); | |
5031 | ||
5032 | ||
5033 | extern int getrpcbyname_r (__const char *__name, struct rpcent *__result_buf, | |
5034 | char *__buffer, size_t __buflen, | |
5035 | struct rpcent **__result) __attribute__ ((__nothrow__)); | |
5036 | ||
5037 | extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf, | |
5038 | char *__buffer, size_t __buflen, | |
5039 | struct rpcent **__result) __attribute__ ((__nothrow__)); | |
5040 | ||
5041 | extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer, | |
5042 | size_t __buflen, struct rpcent **__result) __attribute__ ((__nothrow__)); | |
5043 | ||
5044 | ||
5045 | ||
5046 | # 34 "/usr/include/netdb.h" 2 3 4 | |
5047 | ||
5048 | ||
5049 | ||
5050 | #define __need_sigevent_t | |
5051 | # 1 "/usr/include/bits/siginfo.h" 1 3 4 | |
5052 | # 25 "/usr/include/bits/siginfo.h" 3 4 | |
5053 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
5054 | # 19 "/usr/include/bits/wordsize.h" 3 4 | |
5055 | #define __WORDSIZE 32 | |
5056 | # 26 "/usr/include/bits/siginfo.h" 2 3 4 | |
5057 | ||
5058 | ||
5059 | ||
5060 | ||
5061 | #define __have_sigval_t 1 | |
5062 | ||
5063 | ||
5064 | typedef union sigval | |
5065 | { | |
5066 | int sival_int; | |
5067 | void *sival_ptr; | |
5068 | } sigval_t; | |
5069 | # 263 "/usr/include/bits/siginfo.h" 3 4 | |
5070 | #define __have_sigevent_t 1 | |
5071 | ||
5072 | ||
5073 | #define __SIGEV_MAX_SIZE 64 | |
5074 | ||
5075 | ||
5076 | ||
5077 | #define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) | |
5078 | ||
5079 | ||
5080 | typedef struct sigevent | |
5081 | { | |
5082 | sigval_t sigev_value; | |
5083 | int sigev_signo; | |
5084 | int sigev_notify; | |
5085 | ||
5086 | union | |
5087 | { | |
5088 | int _pad[((64 / sizeof (int)) - 3)]; | |
5089 | ||
5090 | ||
5091 | ||
5092 | __pid_t _tid; | |
5093 | ||
5094 | struct | |
5095 | { | |
5096 | void (*_function) (sigval_t); | |
5097 | void *_attribute; | |
5098 | } _sigev_thread; | |
5099 | } _sigev_un; | |
5100 | } sigevent_t; | |
5101 | ||
5102 | ||
5103 | #define sigev_notify_function _sigev_un._sigev_thread._function | |
5104 | #define sigev_notify_attributes _sigev_un._sigev_thread._attribute | |
5105 | ||
5106 | ||
5107 | enum | |
5108 | { | |
5109 | SIGEV_SIGNAL = 0, | |
5110 | #define SIGEV_SIGNAL SIGEV_SIGNAL | |
5111 | SIGEV_NONE, | |
5112 | #define SIGEV_NONE SIGEV_NONE | |
5113 | SIGEV_THREAD, | |
5114 | #define SIGEV_THREAD SIGEV_THREAD | |
5115 | ||
5116 | SIGEV_THREAD_ID = 4 | |
5117 | #define SIGEV_THREAD_ID SIGEV_THREAD_ID | |
5118 | }; | |
5119 | # 39 "/usr/include/netdb.h" 2 3 4 | |
5120 | #define __need_timespec | |
5121 | ||
5122 | ||
5123 | ||
5124 | # 1 "/usr/include/bits/netdb.h" 1 3 4 | |
5125 | # 27 "/usr/include/bits/netdb.h" 3 4 | |
5126 | struct netent | |
5127 | { | |
5128 | char *n_name; | |
5129 | char **n_aliases; | |
5130 | int n_addrtype; | |
5131 | uint32_t n_net; | |
5132 | }; | |
5133 | # 44 "/usr/include/netdb.h" 2 3 4 | |
5134 | ||
5135 | ||
5136 | #define _PATH_HEQUIV "/etc/hosts.equiv" | |
5137 | #define _PATH_HOSTS "/etc/hosts" | |
5138 | #define _PATH_NETWORKS "/etc/networks" | |
5139 | #define _PATH_NSSWITCH_CONF "/etc/nsswitch.conf" | |
5140 | #define _PATH_PROTOCOLS "/etc/protocols" | |
5141 | #define _PATH_SERVICES "/etc/services" | |
5142 | ||
5143 | ||
5144 | ||
5145 | ||
5146 | ||
5147 | ||
5148 | #define h_errno (*__h_errno_location ()) | |
5149 | ||
5150 | ||
5151 | extern int *__h_errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
5152 | ||
5153 | ||
5154 | ||
5155 | #define NETDB_INTERNAL -1 | |
5156 | #define NETDB_SUCCESS 0 | |
5157 | #define HOST_NOT_FOUND 1 | |
5158 | #define TRY_AGAIN 2 | |
5159 | ||
5160 | #define NO_RECOVERY 3 | |
5161 | ||
5162 | #define NO_DATA 4 | |
5163 | ||
5164 | #define NO_ADDRESS NO_DATA | |
5165 | ||
5166 | ||
5167 | ||
5168 | #define IPPORT_RESERVED 1024 | |
5169 | ||
5170 | ||
5171 | ||
5172 | ||
5173 | #define SCOPE_DELIMITER '%' | |
5174 | ||
5175 | ||
5176 | ||
5177 | ||
5178 | extern void herror (__const char *__str) __attribute__ ((__nothrow__)); | |
5179 | ||
5180 | ||
5181 | extern __const char *hstrerror (int __err_num) __attribute__ ((__nothrow__)); | |
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | struct hostent | |
5187 | { | |
5188 | char *h_name; | |
5189 | char **h_aliases; | |
5190 | int h_addrtype; | |
5191 | int h_length; | |
5192 | char **h_addr_list; | |
5193 | #define h_addr h_addr_list[0] | |
5194 | }; | |
5195 | ||
5196 | ||
5197 | ||
5198 | ||
5199 | ||
5200 | ||
5201 | extern void sethostent (int __stay_open); | |
5202 | ||
5203 | ||
5204 | ||
5205 | ||
5206 | ||
5207 | extern void endhostent (void); | |
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | extern struct hostent *gethostent (void); | |
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | extern struct hostent *gethostbyaddr (__const void *__addr, __socklen_t __len, | |
5222 | int __type); | |
5223 | ||
5224 | ||
5225 | ||
5226 | ||
5227 | ||
5228 | extern struct hostent *gethostbyname (__const char *__name); | |
5229 | # 149 "/usr/include/netdb.h" 3 4 | |
5230 | extern struct hostent *gethostbyname2 (__const char *__name, int __af); | |
5231 | # 161 "/usr/include/netdb.h" 3 4 | |
5232 | extern int gethostent_r (struct hostent *__restrict __result_buf, | |
5233 | char *__restrict __buf, size_t __buflen, | |
5234 | struct hostent **__restrict __result, | |
5235 | int *__restrict __h_errnop); | |
5236 | ||
5237 | extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len, | |
5238 | int __type, | |
5239 | struct hostent *__restrict __result_buf, | |
5240 | char *__restrict __buf, size_t __buflen, | |
5241 | struct hostent **__restrict __result, | |
5242 | int *__restrict __h_errnop); | |
5243 | ||
5244 | extern int gethostbyname_r (__const char *__restrict __name, | |
5245 | struct hostent *__restrict __result_buf, | |
5246 | char *__restrict __buf, size_t __buflen, | |
5247 | struct hostent **__restrict __result, | |
5248 | int *__restrict __h_errnop); | |
5249 | ||
5250 | extern int gethostbyname2_r (__const char *__restrict __name, int __af, | |
5251 | struct hostent *__restrict __result_buf, | |
5252 | char *__restrict __buf, size_t __buflen, | |
5253 | struct hostent **__restrict __result, | |
5254 | int *__restrict __h_errnop); | |
5255 | # 192 "/usr/include/netdb.h" 3 4 | |
5256 | extern void setnetent (int __stay_open); | |
5257 | ||
5258 | ||
5259 | ||
5260 | ||
5261 | ||
5262 | extern void endnetent (void); | |
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | extern struct netent *getnetent (void); | |
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | extern struct netent *getnetbyaddr (uint32_t __net, int __type); | |
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | extern struct netent *getnetbyname (__const char *__name); | |
5283 | # 231 "/usr/include/netdb.h" 3 4 | |
5284 | extern int getnetent_r (struct netent *__restrict __result_buf, | |
5285 | char *__restrict __buf, size_t __buflen, | |
5286 | struct netent **__restrict __result, | |
5287 | int *__restrict __h_errnop); | |
5288 | ||
5289 | extern int getnetbyaddr_r (uint32_t __net, int __type, | |
5290 | struct netent *__restrict __result_buf, | |
5291 | char *__restrict __buf, size_t __buflen, | |
5292 | struct netent **__restrict __result, | |
5293 | int *__restrict __h_errnop); | |
5294 | ||
5295 | extern int getnetbyname_r (__const char *__restrict __name, | |
5296 | struct netent *__restrict __result_buf, | |
5297 | char *__restrict __buf, size_t __buflen, | |
5298 | struct netent **__restrict __result, | |
5299 | int *__restrict __h_errnop); | |
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | struct servent | |
5305 | { | |
5306 | char *s_name; | |
5307 | char **s_aliases; | |
5308 | int s_port; | |
5309 | char *s_proto; | |
5310 | }; | |
5311 | ||
5312 | ||
5313 | ||
5314 | ||
5315 | ||
5316 | ||
5317 | extern void setservent (int __stay_open); | |
5318 | ||
5319 | ||
5320 | ||
5321 | ||
5322 | ||
5323 | extern void endservent (void); | |
5324 | ||
5325 | ||
5326 | ||
5327 | ||
5328 | ||
5329 | ||
5330 | extern struct servent *getservent (void); | |
5331 | ||
5332 | ||
5333 | ||
5334 | ||
5335 | ||
5336 | ||
5337 | extern struct servent *getservbyname (__const char *__name, | |
5338 | __const char *__proto); | |
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
5344 | ||
5345 | extern struct servent *getservbyport (int __port, __const char *__proto); | |
5346 | # 303 "/usr/include/netdb.h" 3 4 | |
5347 | extern int getservent_r (struct servent *__restrict __result_buf, | |
5348 | char *__restrict __buf, size_t __buflen, | |
5349 | struct servent **__restrict __result); | |
5350 | ||
5351 | extern int getservbyname_r (__const char *__restrict __name, | |
5352 | __const char *__restrict __proto, | |
5353 | struct servent *__restrict __result_buf, | |
5354 | char *__restrict __buf, size_t __buflen, | |
5355 | struct servent **__restrict __result); | |
5356 | ||
5357 | extern int getservbyport_r (int __port, __const char *__restrict __proto, | |
5358 | struct servent *__restrict __result_buf, | |
5359 | char *__restrict __buf, size_t __buflen, | |
5360 | struct servent **__restrict __result); | |
5361 | ||
5362 | ||
5363 | ||
5364 | ||
5365 | struct protoent | |
5366 | { | |
5367 | char *p_name; | |
5368 | char **p_aliases; | |
5369 | int p_proto; | |
5370 | }; | |
5371 | ||
5372 | ||
5373 | ||
5374 | ||
5375 | ||
5376 | ||
5377 | extern void setprotoent (int __stay_open); | |
5378 | ||
5379 | ||
5380 | ||
5381 | ||
5382 | ||
5383 | extern void endprotoent (void); | |
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | extern struct protoent *getprotoent (void); | |
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | extern struct protoent *getprotobyname (__const char *__name); | |
5397 | ||
5398 | ||
5399 | ||
5400 | ||
5401 | ||
5402 | extern struct protoent *getprotobynumber (int __proto); | |
5403 | # 369 "/usr/include/netdb.h" 3 4 | |
5404 | extern int getprotoent_r (struct protoent *__restrict __result_buf, | |
5405 | char *__restrict __buf, size_t __buflen, | |
5406 | struct protoent **__restrict __result); | |
5407 | ||
5408 | extern int getprotobyname_r (__const char *__restrict __name, | |
5409 | struct protoent *__restrict __result_buf, | |
5410 | char *__restrict __buf, size_t __buflen, | |
5411 | struct protoent **__restrict __result); | |
5412 | ||
5413 | extern int getprotobynumber_r (int __proto, | |
5414 | struct protoent *__restrict __result_buf, | |
5415 | char *__restrict __buf, size_t __buflen, | |
5416 | struct protoent **__restrict __result); | |
5417 | # 390 "/usr/include/netdb.h" 3 4 | |
5418 | extern int setnetgrent (__const char *__netgroup); | |
5419 | ||
5420 | ||
5421 | ||
5422 | ||
5423 | ||
5424 | ||
5425 | ||
5426 | extern void endnetgrent (void); | |
5427 | # 407 "/usr/include/netdb.h" 3 4 | |
5428 | extern int getnetgrent (char **__restrict __hostp, | |
5429 | char **__restrict __userp, | |
5430 | char **__restrict __domainp); | |
5431 | # 418 "/usr/include/netdb.h" 3 4 | |
5432 | extern int innetgr (__const char *__netgroup, __const char *__host, | |
5433 | __const char *__user, __const char *domain); | |
5434 | ||
5435 | ||
5436 | ||
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | extern int getnetgrent_r (char **__restrict __hostp, | |
5442 | char **__restrict __userp, | |
5443 | char **__restrict __domainp, | |
5444 | char *__restrict __buffer, size_t __buflen); | |
5445 | # 446 "/usr/include/netdb.h" 3 4 | |
5446 | extern int rcmd (char **__restrict __ahost, unsigned short int __rport, | |
5447 | __const char *__restrict __locuser, | |
5448 | __const char *__restrict __remuser, | |
5449 | __const char *__restrict __cmd, int *__restrict __fd2p); | |
5450 | # 458 "/usr/include/netdb.h" 3 4 | |
5451 | extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport, | |
5452 | __const char *__restrict __locuser, | |
5453 | __const char *__restrict __remuser, | |
5454 | __const char *__restrict __cmd, int *__restrict __fd2p, | |
5455 | sa_family_t __af); | |
5456 | # 474 "/usr/include/netdb.h" 3 4 | |
5457 | extern int rexec (char **__restrict __ahost, int __rport, | |
5458 | __const char *__restrict __name, | |
5459 | __const char *__restrict __pass, | |
5460 | __const char *__restrict __cmd, int *__restrict __fd2p); | |
5461 | # 486 "/usr/include/netdb.h" 3 4 | |
5462 | extern int rexec_af (char **__restrict __ahost, int __rport, | |
5463 | __const char *__restrict __name, | |
5464 | __const char *__restrict __pass, | |
5465 | __const char *__restrict __cmd, int *__restrict __fd2p, | |
5466 | sa_family_t __af); | |
5467 | # 500 "/usr/include/netdb.h" 3 4 | |
5468 | extern int ruserok (__const char *__rhost, int __suser, | |
5469 | __const char *__remuser, __const char *__locuser); | |
5470 | # 510 "/usr/include/netdb.h" 3 4 | |
5471 | extern int ruserok_af (__const char *__rhost, int __suser, | |
5472 | __const char *__remuser, __const char *__locuser, | |
5473 | sa_family_t __af); | |
5474 | # 522 "/usr/include/netdb.h" 3 4 | |
5475 | extern int rresvport (int *__alport); | |
5476 | # 531 "/usr/include/netdb.h" 3 4 | |
5477 | extern int rresvport_af (int *__alport, sa_family_t __af); | |
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | struct addrinfo | |
5485 | { | |
5486 | int ai_flags; | |
5487 | int ai_family; | |
5488 | int ai_socktype; | |
5489 | int ai_protocol; | |
5490 | socklen_t ai_addrlen; | |
5491 | struct sockaddr *ai_addr; | |
5492 | char *ai_canonname; | |
5493 | struct addrinfo *ai_next; | |
5494 | }; | |
5495 | ||
5496 | ||
5497 | ||
5498 | struct gaicb | |
5499 | { | |
5500 | const char *ar_name; | |
5501 | const char *ar_service; | |
5502 | const struct addrinfo *ar_request; | |
5503 | struct addrinfo *ar_result; | |
5504 | ||
5505 | int __return; | |
5506 | int __unused[5]; | |
5507 | }; | |
5508 | ||
5509 | ||
5510 | #define GAI_WAIT 0 | |
5511 | #define GAI_NOWAIT 1 | |
5512 | ||
5513 | ||
5514 | ||
5515 | #define AI_PASSIVE 0x0001 | |
5516 | #define AI_CANONNAME 0x0002 | |
5517 | #define AI_NUMERICHOST 0x0004 | |
5518 | #define AI_V4MAPPED 0x0008 | |
5519 | #define AI_ALL 0x0010 | |
5520 | #define AI_ADDRCONFIG 0x0020 | |
5521 | ||
5522 | ||
5523 | #define AI_IDN 0x0040 | |
5524 | ||
5525 | ||
5526 | #define AI_CANONIDN 0x0080 | |
5527 | #define AI_IDN_ALLOW_UNASSIGNED 0x0100 | |
5528 | ||
5529 | #define AI_IDN_USE_STD3_ASCII_RULES 0x0200 | |
5530 | ||
5531 | ||
5532 | #define AI_NUMERICSERV 0x0400 | |
5533 | ||
5534 | ||
5535 | #define EAI_BADFLAGS -1 | |
5536 | #define EAI_NONAME -2 | |
5537 | #define EAI_AGAIN -3 | |
5538 | #define EAI_FAIL -4 | |
5539 | #define EAI_NODATA -5 | |
5540 | #define EAI_FAMILY -6 | |
5541 | #define EAI_SOCKTYPE -7 | |
5542 | #define EAI_SERVICE -8 | |
5543 | #define EAI_ADDRFAMILY -9 | |
5544 | #define EAI_MEMORY -10 | |
5545 | #define EAI_SYSTEM -11 | |
5546 | #define EAI_OVERFLOW -12 | |
5547 | ||
5548 | #define EAI_INPROGRESS -100 | |
5549 | #define EAI_CANCELED -101 | |
5550 | #define EAI_NOTCANCELED -102 | |
5551 | #define EAI_ALLDONE -103 | |
5552 | #define EAI_INTR -104 | |
5553 | #define EAI_IDN_ENCODE -105 | |
5554 | ||
5555 | ||
5556 | #define NI_MAXHOST 1025 | |
5557 | #define NI_MAXSERV 32 | |
5558 | ||
5559 | #define NI_NUMERICHOST 1 | |
5560 | #define NI_NUMERICSERV 2 | |
5561 | #define NI_NOFQDN 4 | |
5562 | #define NI_NAMEREQD 8 | |
5563 | #define NI_DGRAM 16 | |
5564 | ||
5565 | #define NI_IDN 32 | |
5566 | #define NI_IDN_ALLOW_UNASSIGNED 64 | |
5567 | ||
5568 | #define NI_IDN_USE_STD3_ASCII_RULES 128 | |
5569 | # 631 "/usr/include/netdb.h" 3 4 | |
5570 | extern int getaddrinfo (__const char *__restrict __name, | |
5571 | __const char *__restrict __service, | |
5572 | __const struct addrinfo *__restrict __req, | |
5573 | struct addrinfo **__restrict __pai); | |
5574 | ||
5575 | ||
5576 | extern void freeaddrinfo (struct addrinfo *__ai) __attribute__ ((__nothrow__)); | |
5577 | ||
5578 | ||
5579 | extern __const char *gai_strerror (int __ecode) __attribute__ ((__nothrow__)); | |
5580 | ||
5581 | ||
5582 | ||
5583 | ||
5584 | ||
5585 | extern int getnameinfo (__const struct sockaddr *__restrict __sa, | |
5586 | socklen_t __salen, char *__restrict __host, | |
5587 | socklen_t __hostlen, char *__restrict __serv, | |
5588 | socklen_t __servlen, unsigned int __flags); | |
5589 | # 661 "/usr/include/netdb.h" 3 4 | |
5590 | extern int getaddrinfo_a (int __mode, struct gaicb *__list[__restrict], | |
5591 | int __ent, struct sigevent *__restrict __sig); | |
5592 | # 672 "/usr/include/netdb.h" 3 4 | |
5593 | extern int gai_suspend (__const struct gaicb *__const __list[], int __ent, | |
5594 | __const struct timespec *__timeout); | |
5595 | ||
5596 | ||
5597 | extern int gai_error (struct gaicb *__req) __attribute__ ((__nothrow__)); | |
5598 | ||
5599 | ||
5600 | extern int gai_cancel (struct gaicb *__gaicbp) __attribute__ ((__nothrow__)); | |
5601 | ||
5602 | ||
5603 | ||
5604 | # 65 "../../src/include/platform.h" 2 | |
5605 | ||
5606 | ||
5607 | # 1 "/usr/include/arpa/inet.h" 1 3 4 | |
5608 | # 20 "/usr/include/arpa/inet.h" 3 4 | |
5609 | #define _ARPA_INET_H 1 | |
5610 | # 31 "/usr/include/arpa/inet.h" 3 4 | |
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | extern in_addr_t inet_addr (__const char *__cp) __attribute__ ((__nothrow__)); | |
5616 | ||
5617 | ||
5618 | extern in_addr_t inet_lnaof (struct in_addr __in) __attribute__ ((__nothrow__)); | |
5619 | ||
5620 | ||
5621 | ||
5622 | extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host) | |
5623 | __attribute__ ((__nothrow__)); | |
5624 | ||
5625 | ||
5626 | extern in_addr_t inet_netof (struct in_addr __in) __attribute__ ((__nothrow__)); | |
5627 | ||
5628 | ||
5629 | ||
5630 | extern in_addr_t inet_network (__const char *__cp) __attribute__ ((__nothrow__)); | |
5631 | ||
5632 | ||
5633 | ||
5634 | extern char *inet_ntoa (struct in_addr __in) __attribute__ ((__nothrow__)); | |
5635 | ||
5636 | ||
5637 | ||
5638 | ||
5639 | extern int inet_pton (int __af, __const char *__restrict __cp, | |
5640 | void *__restrict __buf) __attribute__ ((__nothrow__)); | |
5641 | ||
5642 | ||
5643 | ||
5644 | ||
5645 | extern __const char *inet_ntop (int __af, __const void *__restrict __cp, | |
5646 | char *__restrict __buf, socklen_t __len) | |
5647 | __attribute__ ((__nothrow__)); | |
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | extern int inet_aton (__const char *__cp, struct in_addr *__inp) __attribute__ ((__nothrow__)); | |
5655 | ||
5656 | ||
5657 | ||
5658 | extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __attribute__ ((__nothrow__)); | |
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | extern char *inet_net_ntop (int __af, __const void *__cp, int __bits, | |
5664 | char *__buf, size_t __len) __attribute__ ((__nothrow__)); | |
5665 | ||
5666 | ||
5667 | ||
5668 | ||
5669 | extern int inet_net_pton (int __af, __const char *__cp, | |
5670 | void *__buf, size_t __len) __attribute__ ((__nothrow__)); | |
5671 | ||
5672 | ||
5673 | ||
5674 | ||
5675 | extern unsigned int inet_nsap_addr (__const char *__cp, | |
5676 | unsigned char *__buf, int __len) __attribute__ ((__nothrow__)); | |
5677 | ||
5678 | ||
5679 | ||
5680 | extern char *inet_nsap_ntoa (int __len, __const unsigned char *__cp, | |
5681 | char *__buf) __attribute__ ((__nothrow__)); | |
5682 | ||
5683 | ||
5684 | ||
5685 | # 68 "../../src/include/platform.h" 2 | |
5686 | # 1 "/usr/include/netinet/tcp.h" 1 3 4 | |
5687 | # 33 "/usr/include/netinet/tcp.h" 3 4 | |
5688 | #define _NETINET_TCP_H 1 | |
5689 | ||
5690 | ||
5691 | ||
5692 | ||
5693 | ||
5694 | ||
5695 | #define TCP_NODELAY 1 | |
5696 | #define TCP_MAXSEG 2 | |
5697 | #define TCP_CORK 3 | |
5698 | #define TCP_KEEPIDLE 4 | |
5699 | #define TCP_KEEPINTVL 5 | |
5700 | #define TCP_KEEPCNT 6 | |
5701 | #define TCP_SYNCNT 7 | |
5702 | #define TCP_LINGER2 8 | |
5703 | #define TCP_DEFER_ACCEPT 9 | |
5704 | #define TCP_WINDOW_CLAMP 10 | |
5705 | #define TCP_INFO 11 | |
5706 | #define TCP_QUICKACK 12 | |
5707 | # 89 "/usr/include/netinet/tcp.h" 3 4 | |
5708 | struct tcphdr | |
5709 | { | |
5710 | u_int16_t source; | |
5711 | u_int16_t dest; | |
5712 | u_int32_t seq; | |
5713 | u_int32_t ack_seq; | |
5714 | ||
5715 | u_int16_t res1:4; | |
5716 | u_int16_t doff:4; | |
5717 | u_int16_t fin:1; | |
5718 | u_int16_t syn:1; | |
5719 | u_int16_t rst:1; | |
5720 | u_int16_t psh:1; | |
5721 | u_int16_t ack:1; | |
5722 | u_int16_t urg:1; | |
5723 | u_int16_t res2:2; | |
5724 | # 118 "/usr/include/netinet/tcp.h" 3 4 | |
5725 | u_int16_t window; | |
5726 | u_int16_t check; | |
5727 | u_int16_t urg_ptr; | |
5728 | }; | |
5729 | ||
5730 | ||
5731 | enum | |
5732 | { | |
5733 | TCP_ESTABLISHED = 1, | |
5734 | TCP_SYN_SENT, | |
5735 | TCP_SYN_RECV, | |
5736 | TCP_FIN_WAIT1, | |
5737 | TCP_FIN_WAIT2, | |
5738 | TCP_TIME_WAIT, | |
5739 | TCP_CLOSE, | |
5740 | TCP_CLOSE_WAIT, | |
5741 | TCP_LAST_ACK, | |
5742 | TCP_LISTEN, | |
5743 | TCP_CLOSING | |
5744 | }; | |
5745 | ||
5746 | #define TCPOPT_EOL 0 | |
5747 | #define TCPOPT_NOP 1 | |
5748 | #define TCPOPT_MAXSEG 2 | |
5749 | #define TCPOLEN_MAXSEG 4 | |
5750 | #define TCPOPT_WINDOW 3 | |
5751 | #define TCPOLEN_WINDOW 3 | |
5752 | #define TCPOPT_SACK_PERMITTED 4 | |
5753 | #define TCPOLEN_SACK_PERMITTED 2 | |
5754 | #define TCPOPT_SACK 5 | |
5755 | #define TCPOPT_TIMESTAMP 8 | |
5756 | #define TCPOLEN_TIMESTAMP 10 | |
5757 | #define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) | |
5758 | ||
5759 | #define TCPOPT_TSTAMP_HDR (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP) | |
5760 | # 161 "/usr/include/netinet/tcp.h" 3 4 | |
5761 | #define TCP_MSS 512 | |
5762 | ||
5763 | #define TCP_MAXWIN 65535 | |
5764 | ||
5765 | #define TCP_MAX_WINSHIFT 14 | |
5766 | ||
5767 | #define SOL_TCP 6 | |
5768 | ||
5769 | ||
5770 | #define TCPI_OPT_TIMESTAMPS 1 | |
5771 | #define TCPI_OPT_SACK 2 | |
5772 | #define TCPI_OPT_WSCALE 4 | |
5773 | #define TCPI_OPT_ECN 8 | |
5774 | ||
5775 | ||
5776 | enum tcp_ca_state | |
5777 | { | |
5778 | TCP_CA_Open = 0, | |
5779 | TCP_CA_Disorder = 1, | |
5780 | TCP_CA_CWR = 2, | |
5781 | TCP_CA_Recovery = 3, | |
5782 | TCP_CA_Loss = 4 | |
5783 | }; | |
5784 | ||
5785 | struct tcp_info | |
5786 | { | |
5787 | u_int8_t tcpi_state; | |
5788 | u_int8_t tcpi_ca_state; | |
5789 | u_int8_t tcpi_retransmits; | |
5790 | u_int8_t tcpi_probes; | |
5791 | u_int8_t tcpi_backoff; | |
5792 | u_int8_t tcpi_options; | |
5793 | u_int8_t tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4; | |
5794 | ||
5795 | u_int32_t tcpi_rto; | |
5796 | u_int32_t tcpi_ato; | |
5797 | u_int32_t tcpi_snd_mss; | |
5798 | u_int32_t tcpi_rcv_mss; | |
5799 | ||
5800 | u_int32_t tcpi_unacked; | |
5801 | u_int32_t tcpi_sacked; | |
5802 | u_int32_t tcpi_lost; | |
5803 | u_int32_t tcpi_retrans; | |
5804 | u_int32_t tcpi_fackets; | |
5805 | ||
5806 | ||
5807 | u_int32_t tcpi_last_data_sent; | |
5808 | u_int32_t tcpi_last_ack_sent; | |
5809 | u_int32_t tcpi_last_data_recv; | |
5810 | u_int32_t tcpi_last_ack_recv; | |
5811 | ||
5812 | ||
5813 | u_int32_t tcpi_pmtu; | |
5814 | u_int32_t tcpi_rcv_ssthresh; | |
5815 | u_int32_t tcpi_rtt; | |
5816 | u_int32_t tcpi_rttvar; | |
5817 | u_int32_t tcpi_snd_ssthresh; | |
5818 | u_int32_t tcpi_snd_cwnd; | |
5819 | u_int32_t tcpi_advmss; | |
5820 | u_int32_t tcpi_reordering; | |
5821 | }; | |
5822 | # 69 "../../src/include/platform.h" 2 | |
5823 | ||
5824 | # 1 "/usr/include/pwd.h" 1 3 4 | |
5825 | # 24 "/usr/include/pwd.h" 3 4 | |
5826 | #define _PWD_H 1 | |
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | ||
5832 | ||
5833 | ||
5834 | #define __need_size_t | |
5835 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
5836 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
5837 | #undef __need_size_t | |
5838 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
5839 | #undef __need_NULL | |
5840 | # 34 "/usr/include/pwd.h" 2 3 4 | |
5841 | # 50 "/usr/include/pwd.h" 3 4 | |
5842 | struct passwd | |
5843 | { | |
5844 | char *pw_name; | |
5845 | char *pw_passwd; | |
5846 | __uid_t pw_uid; | |
5847 | __gid_t pw_gid; | |
5848 | char *pw_gecos; | |
5849 | char *pw_dir; | |
5850 | char *pw_shell; | |
5851 | }; | |
5852 | ||
5853 | ||
5854 | ||
5855 | #define __need_FILE | |
5856 | # 1 "/usr/include/stdio.h" 1 3 4 | |
5857 | # 44 "/usr/include/stdio.h" 3 4 | |
5858 | ||
5859 | ||
5860 | typedef struct _IO_FILE FILE; | |
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | #define __FILE_defined 1 | |
5869 | ||
5870 | #undef __need_FILE | |
5871 | # 66 "/usr/include/stdio.h" 3 4 | |
5872 | #undef __need___FILE | |
5873 | # 65 "/usr/include/pwd.h" 2 3 4 | |
5874 | # 73 "/usr/include/pwd.h" 3 4 | |
5875 | extern void setpwent (void); | |
5876 | ||
5877 | ||
5878 | ||
5879 | ||
5880 | ||
5881 | extern void endpwent (void); | |
5882 | ||
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | extern struct passwd *getpwent (void); | |
5888 | # 95 "/usr/include/pwd.h" 3 4 | |
5889 | extern struct passwd *fgetpwent (FILE *__stream); | |
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | extern int putpwent (__const struct passwd *__restrict __p, | |
5898 | FILE *__restrict __f); | |
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | extern struct passwd *getpwuid (__uid_t __uid); | |
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | ||
5911 | extern struct passwd *getpwnam (__const char *__name); | |
5912 | ||
5913 | ||
5914 | ||
5915 | ||
5916 | ||
5917 | ||
5918 | #define NSS_BUFLEN_PASSWD 1024 | |
5919 | # 140 "/usr/include/pwd.h" 3 4 | |
5920 | extern int getpwent_r (struct passwd *__restrict __resultbuf, | |
5921 | char *__restrict __buffer, size_t __buflen, | |
5922 | struct passwd **__restrict __result); | |
5923 | ||
5924 | ||
5925 | extern int getpwuid_r (__uid_t __uid, | |
5926 | struct passwd *__restrict __resultbuf, | |
5927 | char *__restrict __buffer, size_t __buflen, | |
5928 | struct passwd **__restrict __result); | |
5929 | ||
5930 | extern int getpwnam_r (__const char *__restrict __name, | |
5931 | struct passwd *__restrict __resultbuf, | |
5932 | char *__restrict __buffer, size_t __buflen, | |
5933 | struct passwd **__restrict __result); | |
5934 | # 164 "/usr/include/pwd.h" 3 4 | |
5935 | extern int fgetpwent_r (FILE *__restrict __stream, | |
5936 | struct passwd *__restrict __resultbuf, | |
5937 | char *__restrict __buffer, size_t __buflen, | |
5938 | struct passwd **__restrict __result); | |
5939 | # 181 "/usr/include/pwd.h" 3 4 | |
5940 | extern int getpw (__uid_t __uid, char *__buffer); | |
5941 | ||
5942 | ||
5943 | ||
5944 | # 71 "../../src/include/platform.h" 2 | |
5945 | # 1 "/usr/include/sys/ioctl.h" 1 3 4 | |
5946 | # 20 "/usr/include/sys/ioctl.h" 3 4 | |
5947 | #define _SYS_IOCTL_H 1 | |
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | # 1 "/usr/include/bits/ioctls.h" 1 3 4 | |
5955 | # 24 "/usr/include/bits/ioctls.h" 3 4 | |
5956 | # 1 "/usr/include/asm/ioctls.h" 1 3 4 | |
5957 | ||
5958 | #define __ARCH_I386_IOCTLS_H__ | |
5959 | ||
5960 | # 1 "/usr/include/asm/ioctl.h" 1 3 4 | |
5961 | ||
5962 | ||
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | #define _ASMI386_IOCTL_H | |
5968 | # 27 "/usr/include/asm/ioctl.h" 3 4 | |
5969 | #define _IOC_NRBITS 8 | |
5970 | #define _IOC_TYPEBITS 8 | |
5971 | #define _IOC_SIZEBITS 14 | |
5972 | #define _IOC_DIRBITS 2 | |
5973 | ||
5974 | #define _IOC_NRMASK ((1 << _IOC_NRBITS)-1) | |
5975 | #define _IOC_TYPEMASK ((1 << _IOC_TYPEBITS)-1) | |
5976 | #define _IOC_SIZEMASK ((1 << _IOC_SIZEBITS)-1) | |
5977 | #define _IOC_DIRMASK ((1 << _IOC_DIRBITS)-1) | |
5978 | ||
5979 | #define _IOC_NRSHIFT 0 | |
5980 | #define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS) | |
5981 | #define _IOC_SIZESHIFT (_IOC_TYPESHIFT+_IOC_TYPEBITS) | |
5982 | #define _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS) | |
5983 | ||
5984 | ||
5985 | ||
5986 | ||
5987 | #define _IOC_NONE 0U | |
5988 | #define _IOC_WRITE 1U | |
5989 | #define _IOC_READ 2U | |
5990 | ||
5991 | #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT)) | |
5992 | ||
5993 | ||
5994 | ||
5995 | ||
5996 | ||
5997 | ||
5998 | extern unsigned int __invalid_size_argument_for_IOC; | |
5999 | #define _IOC_TYPECHECK(t) ((sizeof(t) == sizeof(t[1]) && sizeof(t) < (1 << _IOC_SIZEBITS)) ? sizeof(t) : __invalid_size_argument_for_IOC) | |
6000 | ||
6001 | ||
6002 | ||
6003 | ||
6004 | ||
6005 | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) | |
6006 | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) | |
6007 | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) | |
6008 | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) | |
6009 | #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) | |
6010 | #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) | |
6011 | #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) | |
6012 | ||
6013 | ||
6014 | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) | |
6015 | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) | |
6016 | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) | |
6017 | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) | |
6018 | ||
6019 | ||
6020 | ||
6021 | #define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT) | |
6022 | #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) | |
6023 | #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT) | |
6024 | #define IOCSIZE_MASK (_IOC_SIZEMASK << _IOC_SIZESHIFT) | |
6025 | #define IOCSIZE_SHIFT (_IOC_SIZESHIFT) | |
6026 | # 5 "/usr/include/asm/ioctls.h" 2 3 4 | |
6027 | ||
6028 | ||
6029 | ||
6030 | #define TCGETS 0x5401 | |
6031 | #define TCSETS 0x5402 | |
6032 | #define TCSETSW 0x5403 | |
6033 | #define TCSETSF 0x5404 | |
6034 | #define TCGETA 0x5405 | |
6035 | #define TCSETA 0x5406 | |
6036 | #define TCSETAW 0x5407 | |
6037 | #define TCSETAF 0x5408 | |
6038 | #define TCSBRK 0x5409 | |
6039 | #define TCXONC 0x540A | |
6040 | #define TCFLSH 0x540B | |
6041 | #define TIOCEXCL 0x540C | |
6042 | #define TIOCNXCL 0x540D | |
6043 | #define TIOCSCTTY 0x540E | |
6044 | #define TIOCGPGRP 0x540F | |
6045 | #define TIOCSPGRP 0x5410 | |
6046 | #define TIOCOUTQ 0x5411 | |
6047 | #define TIOCSTI 0x5412 | |
6048 | #define TIOCGWINSZ 0x5413 | |
6049 | #define TIOCSWINSZ 0x5414 | |
6050 | #define TIOCMGET 0x5415 | |
6051 | #define TIOCMBIS 0x5416 | |
6052 | #define TIOCMBIC 0x5417 | |
6053 | #define TIOCMSET 0x5418 | |
6054 | #define TIOCGSOFTCAR 0x5419 | |
6055 | #define TIOCSSOFTCAR 0x541A | |
6056 | #define FIONREAD 0x541B | |
6057 | #define TIOCINQ FIONREAD | |
6058 | #define TIOCLINUX 0x541C | |
6059 | #define TIOCCONS 0x541D | |
6060 | #define TIOCGSERIAL 0x541E | |
6061 | #define TIOCSSERIAL 0x541F | |
6062 | #define TIOCPKT 0x5420 | |
6063 | #define FIONBIO 0x5421 | |
6064 | #define TIOCNOTTY 0x5422 | |
6065 | #define TIOCSETD 0x5423 | |
6066 | #define TIOCGETD 0x5424 | |
6067 | #define TCSBRKP 0x5425 | |
6068 | ||
6069 | #define TIOCSBRK 0x5427 | |
6070 | #define TIOCCBRK 0x5428 | |
6071 | #define TIOCGSID 0x5429 | |
6072 | #define TIOCGPTN _IOR('T',0x30, unsigned int) | |
6073 | #define TIOCSPTLCK _IOW('T',0x31, int) | |
6074 | ||
6075 | #define FIONCLEX 0x5450 | |
6076 | #define FIOCLEX 0x5451 | |
6077 | #define FIOASYNC 0x5452 | |
6078 | #define TIOCSERCONFIG 0x5453 | |
6079 | #define TIOCSERGWILD 0x5454 | |
6080 | #define TIOCSERSWILD 0x5455 | |
6081 | #define TIOCGLCKTRMIOS 0x5456 | |
6082 | #define TIOCSLCKTRMIOS 0x5457 | |
6083 | #define TIOCSERGSTRUCT 0x5458 | |
6084 | #define TIOCSERGETLSR 0x5459 | |
6085 | #define TIOCSERGETMULTI 0x545A | |
6086 | #define TIOCSERSETMULTI 0x545B | |
6087 | ||
6088 | #define TIOCMIWAIT 0x545C | |
6089 | #define TIOCGICOUNT 0x545D | |
6090 | #define TIOCGHAYESESP 0x545E | |
6091 | #define TIOCSHAYESESP 0x545F | |
6092 | #define FIOQSIZE 0x5460 | |
6093 | ||
6094 | ||
6095 | #define TIOCPKT_DATA 0 | |
6096 | #define TIOCPKT_FLUSHREAD 1 | |
6097 | #define TIOCPKT_FLUSHWRITE 2 | |
6098 | #define TIOCPKT_STOP 4 | |
6099 | #define TIOCPKT_START 8 | |
6100 | #define TIOCPKT_NOSTOP 16 | |
6101 | #define TIOCPKT_DOSTOP 32 | |
6102 | ||
6103 | #define TIOCSER_TEMT 0x01 | |
6104 | # 25 "/usr/include/bits/ioctls.h" 2 3 4 | |
6105 | ||
6106 | ||
6107 | #define SIOCADDRT 0x890B | |
6108 | #define SIOCDELRT 0x890C | |
6109 | #define SIOCRTMSG 0x890D | |
6110 | ||
6111 | ||
6112 | #define SIOCGIFNAME 0x8910 | |
6113 | #define SIOCSIFLINK 0x8911 | |
6114 | #define SIOCGIFCONF 0x8912 | |
6115 | #define SIOCGIFFLAGS 0x8913 | |
6116 | #define SIOCSIFFLAGS 0x8914 | |
6117 | #define SIOCGIFADDR 0x8915 | |
6118 | #define SIOCSIFADDR 0x8916 | |
6119 | #define SIOCGIFDSTADDR 0x8917 | |
6120 | #define SIOCSIFDSTADDR 0x8918 | |
6121 | #define SIOCGIFBRDADDR 0x8919 | |
6122 | #define SIOCSIFBRDADDR 0x891a | |
6123 | #define SIOCGIFNETMASK 0x891b | |
6124 | #define SIOCSIFNETMASK 0x891c | |
6125 | #define SIOCGIFMETRIC 0x891d | |
6126 | #define SIOCSIFMETRIC 0x891e | |
6127 | #define SIOCGIFMEM 0x891f | |
6128 | #define SIOCSIFMEM 0x8920 | |
6129 | #define SIOCGIFMTU 0x8921 | |
6130 | #define SIOCSIFMTU 0x8922 | |
6131 | #define SIOCSIFNAME 0x8923 | |
6132 | #define SIOCSIFHWADDR 0x8924 | |
6133 | #define SIOCGIFENCAP 0x8925 | |
6134 | #define SIOCSIFENCAP 0x8926 | |
6135 | #define SIOCGIFHWADDR 0x8927 | |
6136 | #define SIOCGIFSLAVE 0x8929 | |
6137 | #define SIOCSIFSLAVE 0x8930 | |
6138 | #define SIOCADDMULTI 0x8931 | |
6139 | #define SIOCDELMULTI 0x8932 | |
6140 | #define SIOCGIFINDEX 0x8933 | |
6141 | #define SIOGIFINDEX SIOCGIFINDEX | |
6142 | #define SIOCSIFPFLAGS 0x8934 | |
6143 | #define SIOCGIFPFLAGS 0x8935 | |
6144 | #define SIOCDIFADDR 0x8936 | |
6145 | #define SIOCSIFHWBROADCAST 0x8937 | |
6146 | #define SIOCGIFCOUNT 0x8938 | |
6147 | ||
6148 | #define SIOCGIFBR 0x8940 | |
6149 | #define SIOCSIFBR 0x8941 | |
6150 | ||
6151 | #define SIOCGIFTXQLEN 0x8942 | |
6152 | #define SIOCSIFTXQLEN 0x8943 | |
6153 | ||
6154 | ||
6155 | ||
6156 | ||
6157 | #define SIOCDARP 0x8953 | |
6158 | #define SIOCGARP 0x8954 | |
6159 | #define SIOCSARP 0x8955 | |
6160 | ||
6161 | ||
6162 | #define SIOCDRARP 0x8960 | |
6163 | #define SIOCGRARP 0x8961 | |
6164 | #define SIOCSRARP 0x8962 | |
6165 | ||
6166 | ||
6167 | ||
6168 | #define SIOCGIFMAP 0x8970 | |
6169 | #define SIOCSIFMAP 0x8971 | |
6170 | ||
6171 | ||
6172 | ||
6173 | #define SIOCADDDLCI 0x8980 | |
6174 | #define SIOCDELDLCI 0x8981 | |
6175 | # 103 "/usr/include/bits/ioctls.h" 3 4 | |
6176 | #define SIOCDEVPRIVATE 0x89F0 | |
6177 | ||
6178 | ||
6179 | ||
6180 | ||
6181 | ||
6182 | #define SIOCPROTOPRIVATE 0x89E0 | |
6183 | # 28 "/usr/include/sys/ioctl.h" 2 3 4 | |
6184 | ||
6185 | ||
6186 | # 1 "/usr/include/bits/ioctl-types.h" 1 3 4 | |
6187 | # 28 "/usr/include/bits/ioctl-types.h" 3 4 | |
6188 | struct winsize | |
6189 | { | |
6190 | unsigned short int ws_row; | |
6191 | unsigned short int ws_col; | |
6192 | unsigned short int ws_xpixel; | |
6193 | unsigned short int ws_ypixel; | |
6194 | }; | |
6195 | ||
6196 | #define NCC 8 | |
6197 | struct termio | |
6198 | { | |
6199 | unsigned short int c_iflag; | |
6200 | unsigned short int c_oflag; | |
6201 | unsigned short int c_cflag; | |
6202 | unsigned short int c_lflag; | |
6203 | unsigned char c_line; | |
6204 | unsigned char c_cc[8]; | |
6205 | }; | |
6206 | ||
6207 | ||
6208 | #define TIOCM_LE 0x001 | |
6209 | #define TIOCM_DTR 0x002 | |
6210 | #define TIOCM_RTS 0x004 | |
6211 | #define TIOCM_ST 0x008 | |
6212 | #define TIOCM_SR 0x010 | |
6213 | #define TIOCM_CTS 0x020 | |
6214 | #define TIOCM_CAR 0x040 | |
6215 | #define TIOCM_RNG 0x080 | |
6216 | #define TIOCM_DSR 0x100 | |
6217 | #define TIOCM_CD TIOCM_CAR | |
6218 | #define TIOCM_RI TIOCM_RNG | |
6219 | ||
6220 | ||
6221 | ||
6222 | ||
6223 | #define N_TTY 0 | |
6224 | #define N_SLIP 1 | |
6225 | #define N_MOUSE 2 | |
6226 | #define N_PPP 3 | |
6227 | #define N_STRIP 4 | |
6228 | #define N_AX25 5 | |
6229 | #define N_X25 6 | |
6230 | #define N_6PACK 7 | |
6231 | #define N_MASC 8 | |
6232 | #define N_R3964 9 | |
6233 | #define N_PROFIBUS_FDL 10 | |
6234 | #define N_IRDA 11 | |
6235 | #define N_SMSBLOCK 12 | |
6236 | #define N_HDLC 13 | |
6237 | #define N_SYNC_PPP 14 | |
6238 | #define N_HCI 15 | |
6239 | # 31 "/usr/include/sys/ioctl.h" 2 3 4 | |
6240 | ||
6241 | ||
6242 | ||
6243 | ||
6244 | ||
6245 | ||
6246 | # 1 "/usr/include/sys/ttydefaults.h" 1 3 4 | |
6247 | # 41 "/usr/include/sys/ttydefaults.h" 3 4 | |
6248 | #define _SYS_TTYDEFAULTS_H_ | |
6249 | ||
6250 | ||
6251 | ||
6252 | ||
6253 | #define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY) | |
6254 | #define TTYDEF_OFLAG (OPOST | ONLCR | XTABS) | |
6255 | #define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL) | |
6256 | #define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL) | |
6257 | #define TTYDEF_SPEED (B9600) | |
6258 | ||
6259 | ||
6260 | ||
6261 | ||
6262 | #define CTRL(x) (x&037) | |
6263 | #define CEOF CTRL('d') | |
6264 | ||
6265 | ||
6266 | ||
6267 | #define CEOL '\0' | |
6268 | ||
6269 | #define CERASE 0177 | |
6270 | #define CINTR CTRL('c') | |
6271 | ||
6272 | ||
6273 | ||
6274 | #define CSTATUS '\0' | |
6275 | ||
6276 | #define CKILL CTRL('u') | |
6277 | #define CMIN 1 | |
6278 | #define CQUIT 034 | |
6279 | #define CSUSP CTRL('z') | |
6280 | #define CTIME 0 | |
6281 | #define CDSUSP CTRL('y') | |
6282 | #define CSTART CTRL('q') | |
6283 | #define CSTOP CTRL('s') | |
6284 | #define CLNEXT CTRL('v') | |
6285 | #define CDISCARD CTRL('o') | |
6286 | #define CWERASE CTRL('w') | |
6287 | #define CREPRINT CTRL('r') | |
6288 | #define CEOT CEOF | |
6289 | ||
6290 | #define CBRK CEOL | |
6291 | #define CRPRNT CREPRINT | |
6292 | #define CFLUSH CDISCARD | |
6293 | # 38 "/usr/include/sys/ioctl.h" 2 3 4 | |
6294 | ||
6295 | ||
6296 | ||
6297 | ||
6298 | extern int ioctl (int __fd, unsigned long int __request, ...) __attribute__ ((__nothrow__)); | |
6299 | ||
6300 | ||
6301 | # 72 "../../src/include/platform.h" 2 | |
6302 | # 1 "/usr/include/sys/wait.h" 1 3 4 | |
6303 | # 25 "/usr/include/sys/wait.h" 3 4 | |
6304 | #define _SYS_WAIT_H 1 | |
6305 | ||
6306 | ||
6307 | ||
6308 | ||
6309 | ||
6310 | # 1 "/usr/include/signal.h" 1 3 4 | |
6311 | # 26 "/usr/include/signal.h" 3 4 | |
6312 | #define _SIGNAL_H | |
6313 | ||
6314 | ||
6315 | ||
6316 | ||
6317 | ||
6318 | ||
6319 | # 1 "/usr/include/bits/sigset.h" 1 3 4 | |
6320 | # 43 "/usr/include/bits/sigset.h" 3 4 | |
6321 | #define _SIGSET_H_fns 1 | |
6322 | ||
6323 | ||
6324 | #define _EXTERN_INLINE extern __inline | |
6325 | ||
6326 | ||
6327 | ||
6328 | #define __sigmask(sig) (((unsigned long int) 1) << (((sig) - 1) % (8 * sizeof (unsigned long int)))) | |
6329 | ||
6330 | ||
6331 | ||
6332 | #define __sigword(sig) (((sig) - 1) / (8 * sizeof (unsigned long int))) | |
6333 | ||
6334 | ||
6335 | #define __sigemptyset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__set = (set); while (--__cnt >= 0) __set->__val[__cnt] = 0; 0; })) | |
6336 | ||
6337 | ||
6338 | ||
6339 | ||
6340 | #define __sigfillset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__set = (set); while (--__cnt >= 0) __set->__val[__cnt] = ~0UL; 0; })) | |
6341 | # 72 "/usr/include/bits/sigset.h" 3 4 | |
6342 | #define __sigisemptyset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; const sigset_t *__set = (set); int __ret = __set->__val[--__cnt]; while (!__ret && --__cnt >= 0) __ret = __set->__val[__cnt]; __ret == 0; })) | |
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | ||
6348 | ||
6349 | #define __sigandset(dest,left,right) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__dest = (dest); const sigset_t *__left = (left); const sigset_t *__right = (right); while (--__cnt >= 0) __dest->__val[__cnt] = (__left->__val[__cnt] & __right->__val[__cnt]); 0; })) | |
6350 | # 88 "/usr/include/bits/sigset.h" 3 4 | |
6351 | #define __sigorset(dest,left,right) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__dest = (dest); const sigset_t *__left = (left); const sigset_t *__right = (right); while (--__cnt >= 0) __dest->__val[__cnt] = (__left->__val[__cnt] | __right->__val[__cnt]); 0; })) | |
6352 | # 103 "/usr/include/bits/sigset.h" 3 4 | |
6353 | extern int __sigismember (__const __sigset_t *, int); | |
6354 | extern int __sigaddset (__sigset_t *, int); | |
6355 | extern int __sigdelset (__sigset_t *, int); | |
6356 | # 34 "/usr/include/signal.h" 2 3 4 | |
6357 | ||
6358 | ||
6359 | ||
6360 | ||
6361 | ||
6362 | #define __sig_atomic_t_defined | |
6363 | ||
6364 | typedef __sig_atomic_t sig_atomic_t; | |
6365 | ||
6366 | ||
6367 | #undef __need_sig_atomic_t | |
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | #undef __need_sigset_t | |
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
6381 | # 1 "/usr/include/bits/signum.h" 1 3 4 | |
6382 | # 23 "/usr/include/bits/signum.h" 3 4 | |
6383 | #define SIG_ERR ((__sighandler_t) -1) | |
6384 | #define SIG_DFL ((__sighandler_t) 0) | |
6385 | #define SIG_IGN ((__sighandler_t) 1) | |
6386 | ||
6387 | ||
6388 | #define SIG_HOLD ((__sighandler_t) 2) | |
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | #define SIGHUP 1 | |
6394 | #define SIGINT 2 | |
6395 | #define SIGQUIT 3 | |
6396 | #define SIGILL 4 | |
6397 | #define SIGTRAP 5 | |
6398 | #define SIGABRT 6 | |
6399 | #define SIGIOT 6 | |
6400 | #define SIGBUS 7 | |
6401 | #define SIGFPE 8 | |
6402 | #define SIGKILL 9 | |
6403 | #define SIGUSR1 10 | |
6404 | #define SIGSEGV 11 | |
6405 | #define SIGUSR2 12 | |
6406 | #define SIGPIPE 13 | |
6407 | #define SIGALRM 14 | |
6408 | #define SIGTERM 15 | |
6409 | #define SIGSTKFLT 16 | |
6410 | #define SIGCLD SIGCHLD | |
6411 | #define SIGCHLD 17 | |
6412 | #define SIGCONT 18 | |
6413 | #define SIGSTOP 19 | |
6414 | #define SIGTSTP 20 | |
6415 | #define SIGTTIN 21 | |
6416 | #define SIGTTOU 22 | |
6417 | #define SIGURG 23 | |
6418 | #define SIGXCPU 24 | |
6419 | #define SIGXFSZ 25 | |
6420 | #define SIGVTALRM 26 | |
6421 | #define SIGPROF 27 | |
6422 | #define SIGWINCH 28 | |
6423 | #define SIGPOLL SIGIO | |
6424 | #define SIGIO 29 | |
6425 | #define SIGPWR 30 | |
6426 | #define SIGSYS 31 | |
6427 | #define SIGUNUSED 31 | |
6428 | ||
6429 | #define _NSIG 65 | |
6430 | ||
6431 | ||
6432 | #define SIGRTMIN (__libc_current_sigrtmin ()) | |
6433 | #define SIGRTMAX (__libc_current_sigrtmax ()) | |
6434 | ||
6435 | ||
6436 | ||
6437 | #define __SIGRTMIN 32 | |
6438 | #define __SIGRTMAX (_NSIG - 1) | |
6439 | # 59 "/usr/include/signal.h" 2 3 4 | |
6440 | # 75 "/usr/include/signal.h" 3 4 | |
6441 | typedef void (*__sighandler_t) (int); | |
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) | |
6447 | __attribute__ ((__nothrow__)); | |
6448 | ||
6449 | extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler) | |
6450 | __attribute__ ((__nothrow__)); | |
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | |
6459 | __attribute__ ((__nothrow__)); | |
6460 | # 104 "/usr/include/signal.h" 3 4 | |
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | ||
6466 | extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler) | |
6467 | __attribute__ ((__nothrow__)); | |
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__)); | |
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__)); | |
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | extern int raise (int __sig) __attribute__ ((__nothrow__)); | |
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) | |
6492 | __attribute__ ((__nothrow__)); | |
6493 | extern int gsignal (int __sig) __attribute__ ((__nothrow__)); | |
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | extern void psignal (int __sig, __const char *__s); | |
6499 | # 153 "/usr/include/signal.h" 3 4 | |
6500 | extern int __sigpause (int __sig_or_mask, int __is_sig); | |
6501 | # 162 "/usr/include/signal.h" 3 4 | |
6502 | extern int sigpause (int __sig) __asm__ ("__xpg_sigpause"); | |
6503 | # 178 "/usr/include/signal.h" 3 4 | |
6504 | #define sigmask(sig) __sigmask(sig) | |
6505 | ||
6506 | ||
6507 | extern int sigblock (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); | |
6508 | ||
6509 | ||
6510 | extern int sigsetmask (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); | |
6511 | ||
6512 | ||
6513 | extern int siggetmask (void) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); | |
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | #define NSIG _NSIG | |
6519 | ||
6520 | ||
6521 | ||
6522 | typedef __sighandler_t sighandler_t; | |
6523 | ||
6524 | ||
6525 | ||
6526 | ||
6527 | typedef __sighandler_t sig_t; | |
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | #define __need_timespec | |
6535 | ||
6536 | ||
6537 | ||
6538 | # 1 "/usr/include/bits/siginfo.h" 1 3 4 | |
6539 | # 25 "/usr/include/bits/siginfo.h" 3 4 | |
6540 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
6541 | # 19 "/usr/include/bits/wordsize.h" 3 4 | |
6542 | #define __WORDSIZE 32 | |
6543 | # 26 "/usr/include/bits/siginfo.h" 2 3 4 | |
6544 | # 42 "/usr/include/bits/siginfo.h" 3 4 | |
6545 | #define __have_siginfo_t 1 | |
6546 | ||
6547 | #define __SI_MAX_SIZE 128 | |
6548 | ||
6549 | ||
6550 | ||
6551 | #define __SI_PAD_SIZE ((__SI_MAX_SIZE / sizeof (int)) - 3) | |
6552 | ||
6553 | ||
6554 | typedef struct siginfo | |
6555 | { | |
6556 | int si_signo; | |
6557 | int si_errno; | |
6558 | ||
6559 | int si_code; | |
6560 | ||
6561 | union | |
6562 | { | |
6563 | int _pad[((128 / sizeof (int)) - 3)]; | |
6564 | ||
6565 | ||
6566 | struct | |
6567 | { | |
6568 | __pid_t si_pid; | |
6569 | __uid_t si_uid; | |
6570 | } _kill; | |
6571 | ||
6572 | ||
6573 | struct | |
6574 | { | |
6575 | int si_tid; | |
6576 | int si_overrun; | |
6577 | sigval_t si_sigval; | |
6578 | } _timer; | |
6579 | ||
6580 | ||
6581 | struct | |
6582 | { | |
6583 | __pid_t si_pid; | |
6584 | __uid_t si_uid; | |
6585 | sigval_t si_sigval; | |
6586 | } _rt; | |
6587 | ||
6588 | ||
6589 | struct | |
6590 | { | |
6591 | __pid_t si_pid; | |
6592 | __uid_t si_uid; | |
6593 | int si_status; | |
6594 | __clock_t si_utime; | |
6595 | __clock_t si_stime; | |
6596 | } _sigchld; | |
6597 | ||
6598 | ||
6599 | struct | |
6600 | { | |
6601 | void *si_addr; | |
6602 | } _sigfault; | |
6603 | ||
6604 | ||
6605 | struct | |
6606 | { | |
6607 | long int si_band; | |
6608 | int si_fd; | |
6609 | } _sigpoll; | |
6610 | } _sifields; | |
6611 | } siginfo_t; | |
6612 | ||
6613 | ||
6614 | ||
6615 | #define si_pid _sifields._kill.si_pid | |
6616 | #define si_uid _sifields._kill.si_uid | |
6617 | #define si_timerid _sifields._timer.si_tid | |
6618 | #define si_overrun _sifields._timer.si_overrun | |
6619 | #define si_status _sifields._sigchld.si_status | |
6620 | #define si_utime _sifields._sigchld.si_utime | |
6621 | #define si_stime _sifields._sigchld.si_stime | |
6622 | #define si_value _sifields._rt.si_sigval | |
6623 | #define si_int _sifields._rt.si_sigval.sival_int | |
6624 | #define si_ptr _sifields._rt.si_sigval.sival_ptr | |
6625 | #define si_addr _sifields._sigfault.si_addr | |
6626 | #define si_band _sifields._sigpoll.si_band | |
6627 | #define si_fd _sifields._sigpoll.si_fd | |
6628 | ||
6629 | ||
6630 | ||
6631 | ||
6632 | enum | |
6633 | { | |
6634 | SI_ASYNCNL = -60, | |
6635 | #define SI_ASYNCNL SI_ASYNCNL | |
6636 | SI_TKILL = -6, | |
6637 | #define SI_TKILL SI_TKILL | |
6638 | SI_SIGIO, | |
6639 | #define SI_SIGIO SI_SIGIO | |
6640 | SI_ASYNCIO, | |
6641 | #define SI_ASYNCIO SI_ASYNCIO | |
6642 | SI_MESGQ, | |
6643 | #define SI_MESGQ SI_MESGQ | |
6644 | SI_TIMER, | |
6645 | #define SI_TIMER SI_TIMER | |
6646 | SI_QUEUE, | |
6647 | #define SI_QUEUE SI_QUEUE | |
6648 | SI_USER, | |
6649 | #define SI_USER SI_USER | |
6650 | SI_KERNEL = 0x80 | |
6651 | #define SI_KERNEL SI_KERNEL | |
6652 | }; | |
6653 | ||
6654 | ||
6655 | ||
6656 | enum | |
6657 | { | |
6658 | ILL_ILLOPC = 1, | |
6659 | #define ILL_ILLOPC ILL_ILLOPC | |
6660 | ILL_ILLOPN, | |
6661 | #define ILL_ILLOPN ILL_ILLOPN | |
6662 | ILL_ILLADR, | |
6663 | #define ILL_ILLADR ILL_ILLADR | |
6664 | ILL_ILLTRP, | |
6665 | #define ILL_ILLTRP ILL_ILLTRP | |
6666 | ILL_PRVOPC, | |
6667 | #define ILL_PRVOPC ILL_PRVOPC | |
6668 | ILL_PRVREG, | |
6669 | #define ILL_PRVREG ILL_PRVREG | |
6670 | ILL_COPROC, | |
6671 | #define ILL_COPROC ILL_COPROC | |
6672 | ILL_BADSTK | |
6673 | #define ILL_BADSTK ILL_BADSTK | |
6674 | }; | |
6675 | ||
6676 | ||
6677 | enum | |
6678 | { | |
6679 | FPE_INTDIV = 1, | |
6680 | #define FPE_INTDIV FPE_INTDIV | |
6681 | FPE_INTOVF, | |
6682 | #define FPE_INTOVF FPE_INTOVF | |
6683 | FPE_FLTDIV, | |
6684 | #define FPE_FLTDIV FPE_FLTDIV | |
6685 | FPE_FLTOVF, | |
6686 | #define FPE_FLTOVF FPE_FLTOVF | |
6687 | FPE_FLTUND, | |
6688 | #define FPE_FLTUND FPE_FLTUND | |
6689 | FPE_FLTRES, | |
6690 | #define FPE_FLTRES FPE_FLTRES | |
6691 | FPE_FLTINV, | |
6692 | #define FPE_FLTINV FPE_FLTINV | |
6693 | FPE_FLTSUB | |
6694 | #define FPE_FLTSUB FPE_FLTSUB | |
6695 | }; | |
6696 | ||
6697 | ||
6698 | enum | |
6699 | { | |
6700 | SEGV_MAPERR = 1, | |
6701 | #define SEGV_MAPERR SEGV_MAPERR | |
6702 | SEGV_ACCERR | |
6703 | #define SEGV_ACCERR SEGV_ACCERR | |
6704 | }; | |
6705 | ||
6706 | ||
6707 | enum | |
6708 | { | |
6709 | BUS_ADRALN = 1, | |
6710 | #define BUS_ADRALN BUS_ADRALN | |
6711 | BUS_ADRERR, | |
6712 | #define BUS_ADRERR BUS_ADRERR | |
6713 | BUS_OBJERR | |
6714 | #define BUS_OBJERR BUS_OBJERR | |
6715 | }; | |
6716 | ||
6717 | ||
6718 | enum | |
6719 | { | |
6720 | TRAP_BRKPT = 1, | |
6721 | #define TRAP_BRKPT TRAP_BRKPT | |
6722 | TRAP_TRACE | |
6723 | #define TRAP_TRACE TRAP_TRACE | |
6724 | }; | |
6725 | ||
6726 | ||
6727 | enum | |
6728 | { | |
6729 | CLD_EXITED = 1, | |
6730 | #define CLD_EXITED CLD_EXITED | |
6731 | CLD_KILLED, | |
6732 | #define CLD_KILLED CLD_KILLED | |
6733 | CLD_DUMPED, | |
6734 | #define CLD_DUMPED CLD_DUMPED | |
6735 | CLD_TRAPPED, | |
6736 | #define CLD_TRAPPED CLD_TRAPPED | |
6737 | CLD_STOPPED, | |
6738 | #define CLD_STOPPED CLD_STOPPED | |
6739 | CLD_CONTINUED | |
6740 | #define CLD_CONTINUED CLD_CONTINUED | |
6741 | }; | |
6742 | ||
6743 | ||
6744 | enum | |
6745 | { | |
6746 | POLL_IN = 1, | |
6747 | #define POLL_IN POLL_IN | |
6748 | POLL_OUT, | |
6749 | #define POLL_OUT POLL_OUT | |
6750 | POLL_MSG, | |
6751 | #define POLL_MSG POLL_MSG | |
6752 | POLL_ERR, | |
6753 | #define POLL_ERR POLL_ERR | |
6754 | POLL_PRI, | |
6755 | #define POLL_PRI POLL_PRI | |
6756 | POLL_HUP | |
6757 | #define POLL_HUP POLL_HUP | |
6758 | }; | |
6759 | ||
6760 | #undef __need_siginfo_t | |
6761 | # 213 "/usr/include/signal.h" 2 3 4 | |
6762 | ||
6763 | ||
6764 | ||
6765 | extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
6766 | ||
6767 | ||
6768 | extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
6769 | ||
6770 | ||
6771 | extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
6772 | ||
6773 | ||
6774 | extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
6775 | ||
6776 | ||
6777 | extern int sigismember (__const sigset_t *__set, int __signo) | |
6778 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
6779 | ||
6780 | ||
6781 | ||
6782 | extern int sigisemptyset (__const sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
6783 | ||
6784 | ||
6785 | extern int sigandset (sigset_t *__set, __const sigset_t *__left, | |
6786 | __const sigset_t *__right) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))); | |
6787 | ||
6788 | ||
6789 | extern int sigorset (sigset_t *__set, __const sigset_t *__left, | |
6790 | __const sigset_t *__right) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))); | |
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | # 1 "/usr/include/bits/sigaction.h" 1 3 4 | |
6796 | # 25 "/usr/include/bits/sigaction.h" 3 4 | |
6797 | struct sigaction | |
6798 | { | |
6799 | ||
6800 | ||
6801 | union | |
6802 | { | |
6803 | ||
6804 | __sighandler_t sa_handler; | |
6805 | ||
6806 | void (*sa_sigaction) (int, siginfo_t *, void *); | |
6807 | } | |
6808 | __sigaction_handler; | |
6809 | #define sa_handler __sigaction_handler.sa_handler | |
6810 | #define sa_sigaction __sigaction_handler.sa_sigaction | |
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | __sigset_t sa_mask; | |
6817 | ||
6818 | ||
6819 | int sa_flags; | |
6820 | ||
6821 | ||
6822 | void (*sa_restorer) (void); | |
6823 | }; | |
6824 | ||
6825 | ||
6826 | #define SA_NOCLDSTOP 1 | |
6827 | #define SA_NOCLDWAIT 2 | |
6828 | #define SA_SIGINFO 4 | |
6829 | ||
6830 | ||
6831 | #define SA_ONSTACK 0x08000000 | |
6832 | #define SA_RESTART 0x10000000 | |
6833 | #define SA_NODEFER 0x40000000 | |
6834 | ||
6835 | #define SA_RESETHAND 0x80000000 | |
6836 | ||
6837 | ||
6838 | #define SA_INTERRUPT 0x20000000 | |
6839 | ||
6840 | ||
6841 | #define SA_NOMASK SA_NODEFER | |
6842 | #define SA_ONESHOT SA_RESETHAND | |
6843 | #define SA_STACK SA_ONSTACK | |
6844 | ||
6845 | ||
6846 | ||
6847 | #define SIG_BLOCK 0 | |
6848 | #define SIG_UNBLOCK 1 | |
6849 | #define SIG_SETMASK 2 | |
6850 | # 247 "/usr/include/signal.h" 2 3 4 | |
6851 | ||
6852 | ||
6853 | extern int sigprocmask (int __how, __const sigset_t *__restrict __set, | |
6854 | sigset_t *__restrict __oset) __attribute__ ((__nothrow__)); | |
6855 | ||
6856 | ||
6857 | ||
6858 | ||
6859 | ||
6860 | ||
6861 | extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1))); | |
6862 | ||
6863 | ||
6864 | extern int sigaction (int __sig, __const struct sigaction *__restrict __act, | |
6865 | struct sigaction *__restrict __oact) __attribute__ ((__nothrow__)); | |
6866 | ||
6867 | ||
6868 | extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
6869 | ||
6870 | ||
6871 | ||
6872 | ||
6873 | ||
6874 | ||
6875 | extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig) | |
6876 | __attribute__ ((__nonnull__ (1, 2))); | |
6877 | ||
6878 | ||
6879 | ||
6880 | ||
6881 | ||
6882 | ||
6883 | extern int sigwaitinfo (__const sigset_t *__restrict __set, | |
6884 | siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1))); | |
6885 | ||
6886 | ||
6887 | ||
6888 | ||
6889 | ||
6890 | ||
6891 | extern int sigtimedwait (__const sigset_t *__restrict __set, | |
6892 | siginfo_t *__restrict __info, | |
6893 | __const struct timespec *__restrict __timeout) | |
6894 | __attribute__ ((__nonnull__ (1))); | |
6895 | ||
6896 | ||
6897 | ||
6898 | extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val) | |
6899 | __attribute__ ((__nothrow__)); | |
6900 | # 304 "/usr/include/signal.h" 3 4 | |
6901 | extern __const char *__const _sys_siglist[65]; | |
6902 | extern __const char *__const sys_siglist[65]; | |
6903 | ||
6904 | ||
6905 | struct sigvec | |
6906 | { | |
6907 | __sighandler_t sv_handler; | |
6908 | int sv_mask; | |
6909 | ||
6910 | int sv_flags; | |
6911 | #define sv_onstack sv_flags | |
6912 | }; | |
6913 | ||
6914 | ||
6915 | #define SV_ONSTACK (1 << 0) | |
6916 | #define SV_INTERRUPT (1 << 1) | |
6917 | #define SV_RESETHAND (1 << 2) | |
6918 | ||
6919 | ||
6920 | ||
6921 | ||
6922 | ||
6923 | ||
6924 | ||
6925 | extern int sigvec (int __sig, __const struct sigvec *__vec, | |
6926 | struct sigvec *__ovec) __attribute__ ((__nothrow__)); | |
6927 | ||
6928 | ||
6929 | ||
6930 | # 1 "/usr/include/bits/sigcontext.h" 1 3 4 | |
6931 | # 26 "/usr/include/bits/sigcontext.h" 3 4 | |
6932 | #define sigcontext_struct sigcontext | |
6933 | ||
6934 | # 1 "/usr/include/asm/sigcontext.h" 1 3 4 | |
6935 | ||
6936 | #define _ASMi386_SIGCONTEXT_H | |
6937 | ||
6938 | # 1 "/usr/include/linux/compiler.h" 1 3 4 | |
6939 | ||
6940 | #define __LINUX_COMPILER_H | |
6941 | # 20 "/usr/include/linux/compiler.h" 3 4 | |
6942 | #define __user | |
6943 | #define __kernel | |
6944 | #define __safe | |
6945 | #define __force | |
6946 | #define __iomem | |
6947 | #define __chk_user_ptr(x) (void)0 | |
6948 | #define __chk_io_ptr(x) (void)0 | |
6949 | #define __builtin_warning(x,y...) (1) | |
6950 | #define __acquires(x) | |
6951 | #define __releases(x) | |
6952 | #define __acquire(x) (void)0 | |
6953 | #define __release(x) (void)0 | |
6954 | #define __cond_lock(x) (x) | |
6955 | ||
6956 | ||
6957 | ||
6958 | ||
6959 | #define inline __inline__ | |
6960 | #define __inline__ __inline__ | |
6961 | #define __inline __inline__ | |
6962 | ||
6963 | #define asm __asm__ | |
6964 | ||
6965 | ||
6966 | #define volatile __volatile__ | |
6967 | # 73 "/usr/include/linux/compiler.h" 3 4 | |
6968 | #define likely(x) __builtin_expect(!!(x), 1) | |
6969 | #define unlikely(x) __builtin_expect(!!(x), 0) | |
6970 | ||
6971 | ||
6972 | ||
6973 | ||
6974 | ||
6975 | ||
6976 | #define barrier() __asm__ __volatile__ ("" : : : "memory") | |
6977 | ||
6978 | ||
6979 | ||
6980 | ||
6981 | #define RELOC_HIDE(ptr,off) ({ unsigned long __ptr; __ptr = (unsigned long) (ptr); (typeof(ptr)) (__ptr + (off)); }) | |
6982 | # 101 "/usr/include/linux/compiler.h" 3 4 | |
6983 | #define __deprecated | |
6984 | ||
6985 | ||
6986 | ||
6987 | #define __must_check | |
6988 | # 152 "/usr/include/linux/compiler.h" 3 4 | |
6989 | #define __attribute_const__ | |
6990 | # 162 "/usr/include/linux/compiler.h" 3 4 | |
6991 | #define __cast__(_to) | |
6992 | # 5 "/usr/include/asm/sigcontext.h" 2 3 4 | |
6993 | # 20 "/usr/include/asm/sigcontext.h" 3 4 | |
6994 | struct _fpreg { | |
6995 | unsigned short significand[4]; | |
6996 | unsigned short exponent; | |
6997 | }; | |
6998 | ||
6999 | struct _fpxreg { | |
7000 | unsigned short significand[4]; | |
7001 | unsigned short exponent; | |
7002 | unsigned short padding[3]; | |
7003 | }; | |
7004 | ||
7005 | struct _xmmreg { | |
7006 | unsigned long element[4]; | |
7007 | }; | |
7008 | ||
7009 | struct _fpstate { | |
7010 | ||
7011 | unsigned long cw; | |
7012 | unsigned long sw; | |
7013 | unsigned long tag; | |
7014 | unsigned long ipoff; | |
7015 | unsigned long cssel; | |
7016 | unsigned long dataoff; | |
7017 | unsigned long datasel; | |
7018 | struct _fpreg _st[8]; | |
7019 | unsigned short status; | |
7020 | unsigned short magic; | |
7021 | ||
7022 | ||
7023 | unsigned long _fxsr_env[6]; | |
7024 | unsigned long mxcsr; | |
7025 | unsigned long reserved; | |
7026 | struct _fpxreg _fxsr_st[8]; | |
7027 | struct _xmmreg _xmm[8]; | |
7028 | unsigned long padding[56]; | |
7029 | }; | |
7030 | ||
7031 | #define X86_FXSR_MAGIC 0x0000 | |
7032 | ||
7033 | struct sigcontext { | |
7034 | unsigned short gs, __gsh; | |
7035 | unsigned short fs, __fsh; | |
7036 | unsigned short es, __esh; | |
7037 | unsigned short ds, __dsh; | |
7038 | unsigned long edi; | |
7039 | unsigned long esi; | |
7040 | unsigned long ebp; | |
7041 | unsigned long esp; | |
7042 | unsigned long ebx; | |
7043 | unsigned long edx; | |
7044 | unsigned long ecx; | |
7045 | unsigned long eax; | |
7046 | unsigned long trapno; | |
7047 | unsigned long err; | |
7048 | unsigned long eip; | |
7049 | unsigned short cs, __csh; | |
7050 | unsigned long eflags; | |
7051 | unsigned long esp_at_signal; | |
7052 | unsigned short ss, __ssh; | |
7053 | struct _fpstate * fpstate; | |
7054 | unsigned long oldmask; | |
7055 | unsigned long cr2; | |
7056 | }; | |
7057 | # 29 "/usr/include/bits/sigcontext.h" 2 3 4 | |
7058 | # 334 "/usr/include/signal.h" 2 3 4 | |
7059 | ||
7060 | ||
7061 | extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__)); | |
7062 | # 346 "/usr/include/signal.h" 3 4 | |
7063 | extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__)); | |
7064 | ||
7065 | # 1 "/usr/include/bits/sigstack.h" 1 3 4 | |
7066 | # 26 "/usr/include/bits/sigstack.h" 3 4 | |
7067 | struct sigstack | |
7068 | { | |
7069 | void *ss_sp; | |
7070 | int ss_onstack; | |
7071 | }; | |
7072 | ||
7073 | ||
7074 | ||
7075 | enum | |
7076 | { | |
7077 | SS_ONSTACK = 1, | |
7078 | #define SS_ONSTACK SS_ONSTACK | |
7079 | SS_DISABLE | |
7080 | #define SS_DISABLE SS_DISABLE | |
7081 | }; | |
7082 | ||
7083 | ||
7084 | #define MINSIGSTKSZ 2048 | |
7085 | ||
7086 | ||
7087 | #define SIGSTKSZ 8192 | |
7088 | ||
7089 | ||
7090 | ||
7091 | typedef struct sigaltstack | |
7092 | { | |
7093 | void *ss_sp; | |
7094 | int ss_flags; | |
7095 | size_t ss_size; | |
7096 | } stack_t; | |
7097 | # 349 "/usr/include/signal.h" 2 3 4 | |
7098 | ||
7099 | ||
7100 | # 1 "/usr/include/sys/ucontext.h" 1 3 4 | |
7101 | # 20 "/usr/include/sys/ucontext.h" 3 4 | |
7102 | #define _SYS_UCONTEXT_H 1 | |
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | # 1 "/usr/include/bits/sigcontext.h" 1 3 4 | |
7110 | # 28 "/usr/include/sys/ucontext.h" 2 3 4 | |
7111 | ||
7112 | ||
7113 | ||
7114 | typedef int greg_t; | |
7115 | ||
7116 | ||
7117 | #define NGREG 19 | |
7118 | ||
7119 | ||
7120 | typedef greg_t gregset_t[19]; | |
7121 | ||
7122 | ||
7123 | ||
7124 | enum | |
7125 | { | |
7126 | REG_GS = 0, | |
7127 | #define REG_GS REG_GS | |
7128 | REG_FS, | |
7129 | #define REG_FS REG_FS | |
7130 | REG_ES, | |
7131 | #define REG_ES REG_ES | |
7132 | REG_DS, | |
7133 | #define REG_DS REG_DS | |
7134 | REG_EDI, | |
7135 | #define REG_EDI REG_EDI | |
7136 | REG_ESI, | |
7137 | #define REG_ESI REG_ESI | |
7138 | REG_EBP, | |
7139 | #define REG_EBP REG_EBP | |
7140 | REG_ESP, | |
7141 | #define REG_ESP REG_ESP | |
7142 | REG_EBX, | |
7143 | #define REG_EBX REG_EBX | |
7144 | REG_EDX, | |
7145 | #define REG_EDX REG_EDX | |
7146 | REG_ECX, | |
7147 | #define REG_ECX REG_ECX | |
7148 | REG_EAX, | |
7149 | #define REG_EAX REG_EAX | |
7150 | REG_TRAPNO, | |
7151 | #define REG_TRAPNO REG_TRAPNO | |
7152 | REG_ERR, | |
7153 | #define REG_ERR REG_ERR | |
7154 | REG_EIP, | |
7155 | #define REG_EIP REG_EIP | |
7156 | REG_CS, | |
7157 | #define REG_CS REG_CS | |
7158 | REG_EFL, | |
7159 | #define REG_EFL REG_EFL | |
7160 | REG_UESP, | |
7161 | #define REG_UESP REG_UESP | |
7162 | REG_SS | |
7163 | #define REG_SS REG_SS | |
7164 | }; | |
7165 | ||
7166 | ||
7167 | ||
7168 | struct _libc_fpreg | |
7169 | { | |
7170 | unsigned short int significand[4]; | |
7171 | unsigned short int exponent; | |
7172 | }; | |
7173 | ||
7174 | struct _libc_fpstate | |
7175 | { | |
7176 | unsigned long int cw; | |
7177 | unsigned long int sw; | |
7178 | unsigned long int tag; | |
7179 | unsigned long int ipoff; | |
7180 | unsigned long int cssel; | |
7181 | unsigned long int dataoff; | |
7182 | unsigned long int datasel; | |
7183 | struct _libc_fpreg _st[8]; | |
7184 | unsigned long int status; | |
7185 | }; | |
7186 | ||
7187 | ||
7188 | typedef struct _libc_fpstate *fpregset_t; | |
7189 | ||
7190 | ||
7191 | typedef struct | |
7192 | { | |
7193 | gregset_t gregs; | |
7194 | ||
7195 | ||
7196 | fpregset_t fpregs; | |
7197 | unsigned long int oldmask; | |
7198 | unsigned long int cr2; | |
7199 | } mcontext_t; | |
7200 | ||
7201 | ||
7202 | typedef struct ucontext | |
7203 | { | |
7204 | unsigned long int uc_flags; | |
7205 | struct ucontext *uc_link; | |
7206 | stack_t uc_stack; | |
7207 | mcontext_t uc_mcontext; | |
7208 | __sigset_t uc_sigmask; | |
7209 | struct _libc_fpstate __fpregs_mem; | |
7210 | } ucontext_t; | |
7211 | # 352 "/usr/include/signal.h" 2 3 4 | |
7212 | ||
7213 | ||
7214 | ||
7215 | ||
7216 | ||
7217 | extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) | |
7218 | __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); | |
7219 | ||
7220 | ||
7221 | ||
7222 | extern int sigaltstack (__const struct sigaltstack *__restrict __ss, | |
7223 | struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__)); | |
7224 | ||
7225 | ||
7226 | ||
7227 | ||
7228 | ||
7229 | ||
7230 | ||
7231 | extern int sighold (int __sig) __attribute__ ((__nothrow__)); | |
7232 | ||
7233 | ||
7234 | extern int sigrelse (int __sig) __attribute__ ((__nothrow__)); | |
7235 | ||
7236 | ||
7237 | extern int sigignore (int __sig) __attribute__ ((__nothrow__)); | |
7238 | ||
7239 | ||
7240 | extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __attribute__ ((__nothrow__)); | |
7241 | ||
7242 | ||
7243 | ||
7244 | ||
7245 | ||
7246 | ||
7247 | # 1 "/usr/include/bits/sigthread.h" 1 3 4 | |
7248 | # 21 "/usr/include/bits/sigthread.h" 3 4 | |
7249 | #define _BITS_SIGTHREAD_H 1 | |
7250 | # 31 "/usr/include/bits/sigthread.h" 3 4 | |
7251 | extern int pthread_sigmask (int __how, | |
7252 | __const __sigset_t *__restrict __newmask, | |
7253 | __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__)); | |
7254 | ||
7255 | ||
7256 | extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__)); | |
7257 | # 388 "/usr/include/signal.h" 2 3 4 | |
7258 | ||
7259 | ||
7260 | ||
7261 | ||
7262 | ||
7263 | ||
7264 | extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__)); | |
7265 | ||
7266 | extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__)); | |
7267 | ||
7268 | ||
7269 | ||
7270 | ||
7271 | # 32 "/usr/include/sys/wait.h" 2 3 4 | |
7272 | # 1 "/usr/include/sys/resource.h" 1 3 4 | |
7273 | # 20 "/usr/include/sys/resource.h" 3 4 | |
7274 | #define _SYS_RESOURCE_H 1 | |
7275 | ||
7276 | ||
7277 | ||
7278 | ||
7279 | # 1 "/usr/include/bits/resource.h" 1 3 4 | |
7280 | # 33 "/usr/include/bits/resource.h" 3 4 | |
7281 | enum __rlimit_resource | |
7282 | { | |
7283 | ||
7284 | RLIMIT_CPU = 0, | |
7285 | #define RLIMIT_CPU RLIMIT_CPU | |
7286 | ||
7287 | ||
7288 | RLIMIT_FSIZE = 1, | |
7289 | #define RLIMIT_FSIZE RLIMIT_FSIZE | |
7290 | ||
7291 | ||
7292 | RLIMIT_DATA = 2, | |
7293 | #define RLIMIT_DATA RLIMIT_DATA | |
7294 | ||
7295 | ||
7296 | RLIMIT_STACK = 3, | |
7297 | #define RLIMIT_STACK RLIMIT_STACK | |
7298 | ||
7299 | ||
7300 | RLIMIT_CORE = 4, | |
7301 | #define RLIMIT_CORE RLIMIT_CORE | |
7302 | ||
7303 | ||
7304 | ||
7305 | ||
7306 | ||
7307 | __RLIMIT_RSS = 5, | |
7308 | #define RLIMIT_RSS __RLIMIT_RSS | |
7309 | ||
7310 | ||
7311 | RLIMIT_NOFILE = 7, | |
7312 | __RLIMIT_OFILE = RLIMIT_NOFILE, | |
7313 | #define RLIMIT_NOFILE RLIMIT_NOFILE | |
7314 | #define RLIMIT_OFILE __RLIMIT_OFILE | |
7315 | ||
7316 | ||
7317 | RLIMIT_AS = 9, | |
7318 | #define RLIMIT_AS RLIMIT_AS | |
7319 | ||
7320 | ||
7321 | __RLIMIT_NPROC = 6, | |
7322 | #define RLIMIT_NPROC __RLIMIT_NPROC | |
7323 | ||
7324 | ||
7325 | __RLIMIT_MEMLOCK = 8, | |
7326 | #define RLIMIT_MEMLOCK __RLIMIT_MEMLOCK | |
7327 | ||
7328 | ||
7329 | __RLIMIT_LOCKS = 10, | |
7330 | #define RLIMIT_LOCKS __RLIMIT_LOCKS | |
7331 | ||
7332 | ||
7333 | __RLIMIT_SIGPENDING = 11, | |
7334 | #define RLIMIT_SIGPENDING __RLIMIT_SIGPENDING | |
7335 | ||
7336 | ||
7337 | __RLIMIT_MSGQUEUE = 12, | |
7338 | #define RLIMIT_MSGQUEUE __RLIMIT_MSGQUEUE | |
7339 | ||
7340 | ||
7341 | ||
7342 | ||
7343 | __RLIMIT_NICE = 13, | |
7344 | #define RLIMIT_NICE __RLIMIT_NICE | |
7345 | ||
7346 | ||
7347 | ||
7348 | __RLIMIT_RTPRIO = 14, | |
7349 | #define RLIMIT_RTPRIO __RLIMIT_RTPRIO | |
7350 | ||
7351 | __RLIMIT_NLIMITS = 15, | |
7352 | __RLIM_NLIMITS = __RLIMIT_NLIMITS | |
7353 | #define RLIMIT_NLIMITS __RLIMIT_NLIMITS | |
7354 | #define RLIM_NLIMITS __RLIM_NLIMITS | |
7355 | }; | |
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7360 | ||
7361 | #define RLIM_INFINITY 0xffffffffffffffffuLL | |
7362 | ||
7363 | ||
7364 | ||
7365 | #define RLIM64_INFINITY 0xffffffffffffffffuLL | |
7366 | ||
7367 | ||
7368 | ||
7369 | #define RLIM_SAVED_MAX RLIM_INFINITY | |
7370 | #define RLIM_SAVED_CUR RLIM_INFINITY | |
7371 | ||
7372 | ||
7373 | ||
7374 | ||
7375 | ||
7376 | ||
7377 | typedef __rlim64_t rlim_t; | |
7378 | ||
7379 | ||
7380 | typedef __rlim64_t rlim64_t; | |
7381 | ||
7382 | ||
7383 | struct rlimit | |
7384 | { | |
7385 | ||
7386 | rlim_t rlim_cur; | |
7387 | ||
7388 | rlim_t rlim_max; | |
7389 | }; | |
7390 | ||
7391 | ||
7392 | struct rlimit64 | |
7393 | { | |
7394 | ||
7395 | rlim64_t rlim_cur; | |
7396 | ||
7397 | rlim64_t rlim_max; | |
7398 | }; | |
7399 | ||
7400 | ||
7401 | ||
7402 | enum __rusage_who | |
7403 | { | |
7404 | ||
7405 | RUSAGE_SELF = 0, | |
7406 | #define RUSAGE_SELF RUSAGE_SELF | |
7407 | ||
7408 | ||
7409 | RUSAGE_CHILDREN = -1 | |
7410 | #define RUSAGE_CHILDREN RUSAGE_CHILDREN | |
7411 | }; | |
7412 | ||
7413 | #define __need_timeval | |
7414 | # 1 "/usr/include/bits/time.h" 1 3 4 | |
7415 | # 62 "/usr/include/bits/time.h" 3 4 | |
7416 | #undef __need_timeval | |
7417 | # 167 "/usr/include/bits/resource.h" 2 3 4 | |
7418 | ||
7419 | ||
7420 | struct rusage | |
7421 | { | |
7422 | ||
7423 | struct timeval ru_utime; | |
7424 | ||
7425 | struct timeval ru_stime; | |
7426 | ||
7427 | long int ru_maxrss; | |
7428 | ||
7429 | ||
7430 | long int ru_ixrss; | |
7431 | ||
7432 | long int ru_idrss; | |
7433 | ||
7434 | long int ru_isrss; | |
7435 | ||
7436 | ||
7437 | long int ru_minflt; | |
7438 | ||
7439 | long int ru_majflt; | |
7440 | ||
7441 | long int ru_nswap; | |
7442 | ||
7443 | ||
7444 | long int ru_inblock; | |
7445 | ||
7446 | long int ru_oublock; | |
7447 | ||
7448 | long int ru_msgsnd; | |
7449 | ||
7450 | long int ru_msgrcv; | |
7451 | ||
7452 | long int ru_nsignals; | |
7453 | ||
7454 | ||
7455 | ||
7456 | long int ru_nvcsw; | |
7457 | ||
7458 | ||
7459 | long int ru_nivcsw; | |
7460 | }; | |
7461 | ||
7462 | ||
7463 | #define PRIO_MIN -20 | |
7464 | #define PRIO_MAX 20 | |
7465 | ||
7466 | ||
7467 | ||
7468 | enum __priority_which | |
7469 | { | |
7470 | PRIO_PROCESS = 0, | |
7471 | #define PRIO_PROCESS PRIO_PROCESS | |
7472 | PRIO_PGRP = 1, | |
7473 | #define PRIO_PGRP PRIO_PGRP | |
7474 | PRIO_USER = 2 | |
7475 | #define PRIO_USER PRIO_USER | |
7476 | }; | |
7477 | # 26 "/usr/include/sys/resource.h" 2 3 4 | |
7478 | ||
7479 | ||
7480 | ||
7481 | ||
7482 | ||
7483 | ||
7484 | ||
7485 | ||
7486 | ||
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | typedef enum __rlimit_resource __rlimit_resource_t; | |
7492 | typedef enum __rusage_who __rusage_who_t; | |
7493 | typedef enum __priority_which __priority_which_t; | |
7494 | # 55 "/usr/include/sys/resource.h" 3 4 | |
7495 | extern int getrlimit (__rlimit_resource_t __resource, struct rlimit *__rlimits) __asm__ ("" "getrlimit64") __attribute__ ((__nothrow__)); | |
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | ||
7502 | extern int getrlimit64 (__rlimit_resource_t __resource, | |
7503 | struct rlimit64 *__rlimits) __attribute__ ((__nothrow__)); | |
7504 | # 74 "/usr/include/sys/resource.h" 3 4 | |
7505 | extern int setrlimit (__rlimit_resource_t __resource, __const struct rlimit *__rlimits) __asm__ ("" "setrlimit64") __attribute__ ((__nothrow__)); | |
7506 | ||
7507 | ||
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | extern int setrlimit64 (__rlimit_resource_t __resource, | |
7514 | __const struct rlimit64 *__rlimits) __attribute__ ((__nothrow__)); | |
7515 | ||
7516 | ||
7517 | ||
7518 | ||
7519 | extern int getrusage (__rusage_who_t __who, struct rusage *__usage) __attribute__ ((__nothrow__)); | |
7520 | ||
7521 | ||
7522 | ||
7523 | ||
7524 | ||
7525 | extern int getpriority (__priority_which_t __which, id_t __who) __attribute__ ((__nothrow__)); | |
7526 | ||
7527 | ||
7528 | ||
7529 | extern int setpriority (__priority_which_t __which, id_t __who, int __prio) | |
7530 | __attribute__ ((__nothrow__)); | |
7531 | ||
7532 | ||
7533 | # 33 "/usr/include/sys/wait.h" 2 3 4 | |
7534 | ||
7535 | ||
7536 | ||
7537 | ||
7538 | ||
7539 | # 1 "/usr/include/bits/waitflags.h" 1 3 4 | |
7540 | # 26 "/usr/include/bits/waitflags.h" 3 4 | |
7541 | #define WNOHANG 1 | |
7542 | #define WUNTRACED 2 | |
7543 | ||
7544 | ||
7545 | #define WSTOPPED 2 | |
7546 | #define WEXITED 4 | |
7547 | #define WCONTINUED 8 | |
7548 | #define WNOWAIT 0x01000000 | |
7549 | ||
7550 | #define __WNOTHREAD 0x20000000 | |
7551 | ||
7552 | #define __WALL 0x40000000 | |
7553 | #define __WCLONE 0x80000000 | |
7554 | # 39 "/usr/include/sys/wait.h" 2 3 4 | |
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | #define __WAIT_INT(status) (__extension__ (((union { __typeof(status) __in; int __i; }) { .__in = (status) }).__i)) | |
7563 | # 63 "/usr/include/sys/wait.h" 3 4 | |
7564 | typedef union | |
7565 | { | |
7566 | union wait *__uptr; | |
7567 | int *__iptr; | |
7568 | } __WAIT_STATUS __attribute__ ((__transparent_union__)); | |
7569 | #define __WAIT_STATUS_DEFN int * | |
7570 | # 80 "/usr/include/sys/wait.h" 3 4 | |
7571 | # 1 "/usr/include/bits/waitstatus.h" 1 3 4 | |
7572 | # 29 "/usr/include/bits/waitstatus.h" 3 4 | |
7573 | #define __WEXITSTATUS(status) (((status) & 0xff00) >> 8) | |
7574 | ||
7575 | ||
7576 | #define __WTERMSIG(status) ((status) & 0x7f) | |
7577 | ||
7578 | ||
7579 | #define __WSTOPSIG(status) __WEXITSTATUS(status) | |
7580 | ||
7581 | ||
7582 | #define __WIFEXITED(status) (__WTERMSIG(status) == 0) | |
7583 | ||
7584 | ||
7585 | #define __WIFSIGNALED(status) (((signed char) (((status) & 0x7f) + 1) >> 1) > 0) | |
7586 | ||
7587 | ||
7588 | ||
7589 | #define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f) | |
7590 | ||
7591 | ||
7592 | ||
7593 | ||
7594 | #define __WIFCONTINUED(status) ((status) == __W_CONTINUED) | |
7595 | ||
7596 | ||
7597 | ||
7598 | #define __WCOREDUMP(status) ((status) & __WCOREFLAG) | |
7599 | ||
7600 | ||
7601 | #define __W_EXITCODE(ret,sig) ((ret) << 8 | (sig)) | |
7602 | #define __W_STOPCODE(sig) ((sig) << 8 | 0x7f) | |
7603 | #define __W_CONTINUED 0xffff | |
7604 | #define __WCOREFLAG 0x80 | |
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | union wait | |
7612 | { | |
7613 | int w_status; | |
7614 | struct | |
7615 | { | |
7616 | ||
7617 | unsigned int __w_termsig:7; | |
7618 | unsigned int __w_coredump:1; | |
7619 | unsigned int __w_retcode:8; | |
7620 | unsigned int:16; | |
7621 | ||
7622 | ||
7623 | ||
7624 | ||
7625 | ||
7626 | ||
7627 | ||
7628 | } __wait_terminated; | |
7629 | struct | |
7630 | { | |
7631 | ||
7632 | unsigned int __w_stopval:8; | |
7633 | unsigned int __w_stopsig:8; | |
7634 | unsigned int:16; | |
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7640 | ||
7641 | } __wait_stopped; | |
7642 | }; | |
7643 | ||
7644 | #define w_termsig __wait_terminated.__w_termsig | |
7645 | #define w_coredump __wait_terminated.__w_coredump | |
7646 | #define w_retcode __wait_terminated.__w_retcode | |
7647 | #define w_stopsig __wait_stopped.__w_stopsig | |
7648 | #define w_stopval __wait_stopped.__w_stopval | |
7649 | # 81 "/usr/include/sys/wait.h" 2 3 4 | |
7650 | ||
7651 | #define WEXITSTATUS(status) __WEXITSTATUS(__WAIT_INT(status)) | |
7652 | #define WTERMSIG(status) __WTERMSIG(__WAIT_INT(status)) | |
7653 | #define WSTOPSIG(status) __WSTOPSIG(__WAIT_INT(status)) | |
7654 | #define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status)) | |
7655 | #define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status)) | |
7656 | #define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status)) | |
7657 | ||
7658 | #define WIFCONTINUED(status) __WIFCONTINUED(__WAIT_INT(status)) | |
7659 | ||
7660 | ||
7661 | ||
7662 | ||
7663 | #define WCOREFLAG __WCOREFLAG | |
7664 | #define WCOREDUMP(status) __WCOREDUMP(__WAIT_INT(status)) | |
7665 | #define W_EXITCODE(ret,sig) __W_EXITCODE(ret, sig) | |
7666 | #define W_STOPCODE(sig) __W_STOPCODE(sig) | |
7667 | ||
7668 | ||
7669 | ||
7670 | ||
7671 | typedef enum | |
7672 | { | |
7673 | P_ALL, | |
7674 | P_PID, | |
7675 | P_PGID | |
7676 | } idtype_t; | |
7677 | # 116 "/usr/include/sys/wait.h" 3 4 | |
7678 | extern __pid_t wait (__WAIT_STATUS __stat_loc); | |
7679 | ||
7680 | ||
7681 | ||
7682 | #define WAIT_ANY (-1) | |
7683 | #define WAIT_MYPGRP 0 | |
7684 | # 139 "/usr/include/sys/wait.h" 3 4 | |
7685 | extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options); | |
7686 | ||
7687 | ||
7688 | #define __need_siginfo_t | |
7689 | # 1 "/usr/include/bits/siginfo.h" 1 3 4 | |
7690 | # 25 "/usr/include/bits/siginfo.h" 3 4 | |
7691 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
7692 | # 19 "/usr/include/bits/wordsize.h" 3 4 | |
7693 | #define __WORDSIZE 32 | |
7694 | # 26 "/usr/include/bits/siginfo.h" 2 3 4 | |
7695 | # 144 "/usr/include/sys/wait.h" 2 3 4 | |
7696 | # 155 "/usr/include/sys/wait.h" 3 4 | |
7697 | extern int waitid (idtype_t __idtype, __id_t __id, siginfo_t *__infop, | |
7698 | int __options); | |
7699 | ||
7700 | ||
7701 | ||
7702 | ||
7703 | ||
7704 | struct rusage; | |
7705 | ||
7706 | ||
7707 | ||
7708 | ||
7709 | ||
7710 | ||
7711 | extern __pid_t wait3 (__WAIT_STATUS __stat_loc, int __options, | |
7712 | struct rusage * __usage) __attribute__ ((__nothrow__)); | |
7713 | ||
7714 | ||
7715 | ||
7716 | ||
7717 | ||
7718 | struct rusage; | |
7719 | ||
7720 | ||
7721 | extern __pid_t wait4 (__pid_t __pid, __WAIT_STATUS __stat_loc, int __options, | |
7722 | struct rusage *__usage) __attribute__ ((__nothrow__)); | |
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | # 73 "../../src/include/platform.h" 2 | |
7728 | ||
7729 | ||
7730 | ||
7731 | ||
7732 | ||
7733 | # 1 "/usr/include/string.h" 1 3 4 | |
7734 | # 24 "/usr/include/string.h" 3 4 | |
7735 | #define _STRING_H 1 | |
7736 | ||
7737 | ||
7738 | ||
7739 | ||
7740 | ||
7741 | ||
7742 | #define __need_size_t | |
7743 | #define __need_NULL | |
7744 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
7745 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
7746 | #undef __need_size_t | |
7747 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
7748 | #undef NULL | |
7749 | ||
7750 | ||
7751 | ||
7752 | ||
7753 | #define NULL ((void *)0) | |
7754 | ||
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | #undef __need_NULL | |
7760 | # 34 "/usr/include/string.h" 2 3 4 | |
7761 | ||
7762 | ||
7763 | ||
7764 | ||
7765 | extern void *memcpy (void *__restrict __dest, | |
7766 | __const void *__restrict __src, size_t __n) | |
7767 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7768 | ||
7769 | ||
7770 | extern void *memmove (void *__dest, __const void *__src, size_t __n) | |
7771 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | ||
7777 | ||
7778 | extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, | |
7779 | int __c, size_t __n) | |
7780 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7781 | ||
7782 | ||
7783 | ||
7784 | ||
7785 | ||
7786 | extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
7787 | ||
7788 | ||
7789 | extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) | |
7790 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7791 | ||
7792 | ||
7793 | extern void *memchr (__const void *__s, int __c, size_t __n) | |
7794 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7795 | ||
7796 | ||
7797 | ||
7798 | ||
7799 | ||
7800 | extern void *rawmemchr (__const void *__s, int __c) | |
7801 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7802 | ||
7803 | ||
7804 | extern void *memrchr (__const void *__s, int __c, size_t __n) | |
7805 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7806 | ||
7807 | ||
7808 | ||
7809 | ||
7810 | ||
7811 | extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) | |
7812 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7813 | ||
7814 | extern char *strncpy (char *__restrict __dest, | |
7815 | __const char *__restrict __src, size_t __n) | |
7816 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7817 | ||
7818 | ||
7819 | extern char *strcat (char *__restrict __dest, __const char *__restrict __src) | |
7820 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7821 | ||
7822 | extern char *strncat (char *__restrict __dest, __const char *__restrict __src, | |
7823 | size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7824 | ||
7825 | ||
7826 | extern int strcmp (__const char *__s1, __const char *__s2) | |
7827 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7828 | ||
7829 | extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) | |
7830 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7831 | ||
7832 | ||
7833 | extern int strcoll (__const char *__s1, __const char *__s2) | |
7834 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7835 | ||
7836 | extern size_t strxfrm (char *__restrict __dest, | |
7837 | __const char *__restrict __src, size_t __n) | |
7838 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
7839 | ||
7840 | # 121 "/usr/include/string.h" 3 4 | |
7841 | extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) | |
7842 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); | |
7843 | ||
7844 | extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n, | |
7845 | __locale_t __l) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); | |
7846 | ||
7847 | ||
7848 | ||
7849 | ||
7850 | extern char *strdup (__const char *__s) | |
7851 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); | |
7852 | ||
7853 | ||
7854 | ||
7855 | ||
7856 | ||
7857 | ||
7858 | extern char *strndup (__const char *__string, size_t __n) | |
7859 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); | |
7860 | ||
7861 | ||
7862 | ||
7863 | ||
7864 | #define strdupa(s) (__extension__ ({ __const char *__old = (s); size_t __len = strlen (__old) + 1; char *__new = (char *) __builtin_alloca (__len); (char *) memcpy (__new, __old, __len); })) | |
7865 | # 154 "/usr/include/string.h" 3 4 | |
7866 | #define strndupa(s,n) (__extension__ ({ __const char *__old = (s); size_t __len = strnlen (__old, (n)); char *__new = (char *) __builtin_alloca (__len + 1); __new[__len] = '\0'; (char *) memcpy (__new, __old, __len); })) | |
7867 | # 165 "/usr/include/string.h" 3 4 | |
7868 | ||
7869 | ||
7870 | extern char *strchr (__const char *__s, int __c) | |
7871 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7872 | ||
7873 | extern char *strrchr (__const char *__s, int __c) | |
7874 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7875 | ||
7876 | ||
7877 | ||
7878 | ||
7879 | ||
7880 | extern char *strchrnul (__const char *__s, int __c) | |
7881 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7882 | ||
7883 | ||
7884 | ||
7885 | ||
7886 | ||
7887 | extern size_t strcspn (__const char *__s, __const char *__reject) | |
7888 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7889 | ||
7890 | ||
7891 | extern size_t strspn (__const char *__s, __const char *__accept) | |
7892 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7893 | ||
7894 | extern char *strpbrk (__const char *__s, __const char *__accept) | |
7895 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7896 | ||
7897 | extern char *strstr (__const char *__haystack, __const char *__needle) | |
7898 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7899 | ||
7900 | ||
7901 | ||
7902 | extern char *strtok (char *__restrict __s, __const char *__restrict __delim) | |
7903 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
7904 | ||
7905 | ||
7906 | ||
7907 | ||
7908 | extern char *__strtok_r (char *__restrict __s, | |
7909 | __const char *__restrict __delim, | |
7910 | char **__restrict __save_ptr) | |
7911 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); | |
7912 | ||
7913 | extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, | |
7914 | char **__restrict __save_ptr) | |
7915 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); | |
7916 | ||
7917 | ||
7918 | ||
7919 | ||
7920 | extern char *strcasestr (__const char *__haystack, __const char *__needle) | |
7921 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7922 | ||
7923 | ||
7924 | ||
7925 | ||
7926 | ||
7927 | ||
7928 | extern void *memmem (__const void *__haystack, size_t __haystacklen, | |
7929 | __const void *__needle, size_t __needlelen) | |
7930 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))); | |
7931 | ||
7932 | ||
7933 | ||
7934 | extern void *__mempcpy (void *__restrict __dest, | |
7935 | __const void *__restrict __src, size_t __n) | |
7936 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7937 | extern void *mempcpy (void *__restrict __dest, | |
7938 | __const void *__restrict __src, size_t __n) | |
7939 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7940 | ||
7941 | ||
7942 | ||
7943 | ||
7944 | ||
7945 | extern size_t strlen (__const char *__s) | |
7946 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7947 | ||
7948 | ||
7949 | ||
7950 | ||
7951 | ||
7952 | extern size_t strnlen (__const char *__string, size_t __maxlen) | |
7953 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7954 | ||
7955 | ||
7956 | ||
7957 | ||
7958 | ||
7959 | extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); | |
7960 | ||
7961 | # 281 "/usr/include/string.h" 3 4 | |
7962 | extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) | |
7963 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
7964 | ||
7965 | ||
7966 | ||
7967 | ||
7968 | ||
7969 | extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
7970 | ||
7971 | ||
7972 | ||
7973 | extern void bcopy (__const void *__src, void *__dest, size_t __n) | |
7974 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
7975 | ||
7976 | ||
7977 | extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
7978 | ||
7979 | ||
7980 | extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) | |
7981 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
7982 | ||
7983 | ||
7984 | extern char *index (__const char *__s, int __c) | |
7985 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7986 | ||
7987 | ||
7988 | extern char *rindex (__const char *__s, int __c) | |
7989 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
7990 | ||
7991 | ||
7992 | ||
7993 | extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
7994 | ||
7995 | ||
7996 | ||
7997 | ||
7998 | extern int ffsl (long int __l) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
7999 | ||
8000 | __extension__ extern int ffsll (long long int __ll) | |
8001 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
8002 | ||
8003 | ||
8004 | ||
8005 | ||
8006 | extern int strcasecmp (__const char *__s1, __const char *__s2) | |
8007 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
8008 | ||
8009 | ||
8010 | extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) | |
8011 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
8012 | ||
8013 | ||
8014 | ||
8015 | ||
8016 | ||
8017 | extern int strcasecmp_l (__const char *__s1, __const char *__s2, | |
8018 | __locale_t __loc) | |
8019 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); | |
8020 | ||
8021 | extern int strncasecmp_l (__const char *__s1, __const char *__s2, | |
8022 | size_t __n, __locale_t __loc) | |
8023 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); | |
8024 | ||
8025 | ||
8026 | ||
8027 | ||
8028 | ||
8029 | extern char *strsep (char **__restrict __stringp, | |
8030 | __const char *__restrict __delim) | |
8031 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
8032 | ||
8033 | ||
8034 | ||
8035 | ||
8036 | extern int strverscmp (__const char *__s1, __const char *__s2) | |
8037 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
8038 | ||
8039 | ||
8040 | extern char *strsignal (int __sig) __attribute__ ((__nothrow__)); | |
8041 | ||
8042 | ||
8043 | extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) | |
8044 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
8045 | extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) | |
8046 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
8047 | ||
8048 | ||
8049 | ||
8050 | extern char *__stpncpy (char *__restrict __dest, | |
8051 | __const char *__restrict __src, size_t __n) | |
8052 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
8053 | extern char *stpncpy (char *__restrict __dest, | |
8054 | __const char *__restrict __src, size_t __n) | |
8055 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
8056 | ||
8057 | ||
8058 | extern char *strfry (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
8059 | ||
8060 | ||
8061 | extern void *memfrob (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
8069 | # 426 "/usr/include/string.h" 3 4 | |
8070 | ||
8071 | # 79 "../../src/include/platform.h" 2 | |
8072 | # 1 "/usr/include/stdio.h" 1 3 4 | |
8073 | # 27 "/usr/include/stdio.h" 3 4 | |
8074 | #define _STDIO_H 1 | |
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | #define __need_size_t | |
8080 | #define __need_NULL | |
8081 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
8082 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8083 | #undef __need_size_t | |
8084 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8085 | #undef NULL | |
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | #define NULL ((void *)0) | |
8091 | ||
8092 | ||
8093 | ||
8094 | ||
8095 | ||
8096 | #undef __need_NULL | |
8097 | # 35 "/usr/include/stdio.h" 2 3 4 | |
8098 | ||
8099 | ||
8100 | #define __need_FILE | |
8101 | #define __need___FILE | |
8102 | # 56 "/usr/include/stdio.h" 3 4 | |
8103 | #undef __need_FILE | |
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | typedef struct _IO_FILE __FILE; | |
8110 | ||
8111 | #define ____FILE_defined 1 | |
8112 | ||
8113 | #undef __need___FILE | |
8114 | ||
8115 | ||
8116 | ||
8117 | #define _STDIO_USES_IOSTREAM | |
8118 | ||
8119 | # 1 "/usr/include/libio.h" 1 3 4 | |
8120 | # 30 "/usr/include/libio.h" 3 4 | |
8121 | #define _IO_STDIO_H | |
8122 | ||
8123 | # 1 "/usr/include/_G_config.h" 1 3 4 | |
8124 | ||
8125 | ||
8126 | ||
8127 | ||
8128 | #define _G_config_h 1 | |
8129 | ||
8130 | ||
8131 | ||
8132 | ||
8133 | #define __need_size_t | |
8134 | #define __need_wchar_t | |
8135 | #define __need_wint_t | |
8136 | #define __need_NULL | |
8137 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
8138 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8139 | #undef __need_size_t | |
8140 | # 264 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8141 | #define __wchar_t__ | |
8142 | #define __WCHAR_T__ | |
8143 | #define _WCHAR_T | |
8144 | #define _T_WCHAR_ | |
8145 | #define _T_WCHAR | |
8146 | #define __WCHAR_T | |
8147 | #define _WCHAR_T_ | |
8148 | #define _BSD_WCHAR_T_ | |
8149 | #define _WCHAR_T_DEFINED_ | |
8150 | #define _WCHAR_T_DEFINED | |
8151 | #define _WCHAR_T_H | |
8152 | #define ___int_wchar_t_h | |
8153 | #define __INT_WCHAR_T_H | |
8154 | #define _GCC_WCHAR_T | |
8155 | #define _WCHAR_T_DECLARED | |
8156 | # 291 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8157 | #undef _BSD_WCHAR_T_ | |
8158 | # 325 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8159 | typedef long int wchar_t; | |
8160 | # 344 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8161 | #undef __need_wchar_t | |
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | #define _WINT_T | |
8167 | ||
8168 | ||
8169 | ||
8170 | ||
8171 | typedef unsigned int wint_t; | |
8172 | ||
8173 | #undef __need_wint_t | |
8174 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8175 | #undef NULL | |
8176 | ||
8177 | ||
8178 | ||
8179 | ||
8180 | #define NULL ((void *)0) | |
8181 | ||
8182 | ||
8183 | ||
8184 | ||
8185 | ||
8186 | #undef __need_NULL | |
8187 | # 15 "/usr/include/_G_config.h" 2 3 4 | |
8188 | # 23 "/usr/include/_G_config.h" 3 4 | |
8189 | #define __need_mbstate_t | |
8190 | # 1 "/usr/include/wchar.h" 1 3 4 | |
8191 | # 47 "/usr/include/wchar.h" 3 4 | |
8192 | #define __need_wint_t | |
8193 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
8194 | # 356 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8195 | #undef __need_wint_t | |
8196 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8197 | #undef __need_NULL | |
8198 | # 49 "/usr/include/wchar.h" 2 3 4 | |
8199 | # 74 "/usr/include/wchar.h" 3 4 | |
8200 | #define __mbstate_t_defined 1 | |
8201 | ||
8202 | typedef struct | |
8203 | { | |
8204 | int __count; | |
8205 | union | |
8206 | { | |
8207 | wint_t __wch; | |
8208 | char __wchb[4]; | |
8209 | } __value; | |
8210 | } __mbstate_t; | |
8211 | ||
8212 | #undef __need_mbstate_t | |
8213 | # 25 "/usr/include/_G_config.h" 2 3 4 | |
8214 | #define _G_size_t size_t | |
8215 | typedef struct | |
8216 | { | |
8217 | __off_t __pos; | |
8218 | __mbstate_t __state; | |
8219 | } _G_fpos_t; | |
8220 | typedef struct | |
8221 | { | |
8222 | __off64_t __pos; | |
8223 | __mbstate_t __state; | |
8224 | } _G_fpos64_t; | |
8225 | #define _G_ssize_t __ssize_t | |
8226 | #define _G_off_t __off_t | |
8227 | #define _G_off64_t __off64_t | |
8228 | #define _G_pid_t __pid_t | |
8229 | #define _G_uid_t __uid_t | |
8230 | #define _G_wchar_t wchar_t | |
8231 | #define _G_wint_t wint_t | |
8232 | #define _G_stat64 stat64 | |
8233 | # 1 "/usr/include/gconv.h" 1 3 4 | |
8234 | # 24 "/usr/include/gconv.h" 3 4 | |
8235 | #define _GCONV_H 1 | |
8236 | ||
8237 | ||
8238 | #define __need_mbstate_t | |
8239 | # 1 "/usr/include/wchar.h" 1 3 4 | |
8240 | # 47 "/usr/include/wchar.h" 3 4 | |
8241 | #define __need_wint_t | |
8242 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
8243 | # 356 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8244 | #undef __need_wint_t | |
8245 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8246 | #undef __need_NULL | |
8247 | # 49 "/usr/include/wchar.h" 2 3 4 | |
8248 | # 86 "/usr/include/wchar.h" 3 4 | |
8249 | #undef __need_mbstate_t | |
8250 | # 29 "/usr/include/gconv.h" 2 3 4 | |
8251 | #define __need_size_t | |
8252 | #define __need_wchar_t | |
8253 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
8254 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8255 | #undef __need_size_t | |
8256 | # 344 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8257 | #undef __need_wchar_t | |
8258 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
8259 | #undef __need_NULL | |
8260 | # 32 "/usr/include/gconv.h" 2 3 4 | |
8261 | ||
8262 | ||
8263 | #define __UNKNOWN_10646_CHAR ((wchar_t) 0xfffd) | |
8264 | ||
8265 | ||
8266 | enum | |
8267 | { | |
8268 | __GCONV_OK = 0, | |
8269 | __GCONV_NOCONV, | |
8270 | __GCONV_NODB, | |
8271 | __GCONV_NOMEM, | |
8272 | ||
8273 | __GCONV_EMPTY_INPUT, | |
8274 | __GCONV_FULL_OUTPUT, | |
8275 | __GCONV_ILLEGAL_INPUT, | |
8276 | __GCONV_INCOMPLETE_INPUT, | |
8277 | ||
8278 | __GCONV_ILLEGAL_DESCRIPTOR, | |
8279 | __GCONV_INTERNAL_ERROR | |
8280 | }; | |
8281 | ||
8282 | ||
8283 | ||
8284 | enum | |
8285 | { | |
8286 | __GCONV_IS_LAST = 0x0001, | |
8287 | __GCONV_IGNORE_ERRORS = 0x0002 | |
8288 | }; | |
8289 | ||
8290 | ||
8291 | ||
8292 | struct __gconv_step; | |
8293 | struct __gconv_step_data; | |
8294 | struct __gconv_loaded_object; | |
8295 | struct __gconv_trans_data; | |
8296 | ||
8297 | ||
8298 | ||
8299 | typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, | |
8300 | __const unsigned char **, __const unsigned char *, | |
8301 | unsigned char **, size_t *, int, int); | |
8302 | ||
8303 | ||
8304 | typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); | |
8305 | ||
8306 | ||
8307 | typedef int (*__gconv_init_fct) (struct __gconv_step *); | |
8308 | typedef void (*__gconv_end_fct) (struct __gconv_step *); | |
8309 | ||
8310 | ||
8311 | ||
8312 | typedef int (*__gconv_trans_fct) (struct __gconv_step *, | |
8313 | struct __gconv_step_data *, void *, | |
8314 | __const unsigned char *, | |
8315 | __const unsigned char **, | |
8316 | __const unsigned char *, unsigned char **, | |
8317 | size_t *); | |
8318 | ||
8319 | ||
8320 | typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, | |
8321 | __const unsigned char *, | |
8322 | unsigned char *, unsigned char *); | |
8323 | ||
8324 | ||
8325 | typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, | |
8326 | size_t *); | |
8327 | ||
8328 | ||
8329 | typedef int (*__gconv_trans_init_fct) (void **, const char *); | |
8330 | typedef void (*__gconv_trans_end_fct) (void *); | |
8331 | ||
8332 | struct __gconv_trans_data | |
8333 | { | |
8334 | ||
8335 | __gconv_trans_fct __trans_fct; | |
8336 | __gconv_trans_context_fct __trans_context_fct; | |
8337 | __gconv_trans_end_fct __trans_end_fct; | |
8338 | void *__data; | |
8339 | struct __gconv_trans_data *__next; | |
8340 | }; | |
8341 | ||
8342 | ||
8343 | ||
8344 | struct __gconv_step | |
8345 | { | |
8346 | struct __gconv_loaded_object *__shlib_handle; | |
8347 | __const char *__modname; | |
8348 | ||
8349 | int __counter; | |
8350 | ||
8351 | char *__from_name; | |
8352 | char *__to_name; | |
8353 | ||
8354 | __gconv_fct __fct; | |
8355 | __gconv_btowc_fct __btowc_fct; | |
8356 | __gconv_init_fct __init_fct; | |
8357 | __gconv_end_fct __end_fct; | |
8358 | ||
8359 | ||
8360 | ||
8361 | int __min_needed_from; | |
8362 | int __max_needed_from; | |
8363 | int __min_needed_to; | |
8364 | int __max_needed_to; | |
8365 | ||
8366 | ||
8367 | int __stateful; | |
8368 | ||
8369 | void *__data; | |
8370 | }; | |
8371 | ||
8372 | ||
8373 | ||
8374 | struct __gconv_step_data | |
8375 | { | |
8376 | unsigned char *__outbuf; | |
8377 | unsigned char *__outbufend; | |
8378 | ||
8379 | ||
8380 | ||
8381 | int __flags; | |
8382 | ||
8383 | ||
8384 | ||
8385 | int __invocation_counter; | |
8386 | ||
8387 | ||
8388 | ||
8389 | int __internal_use; | |
8390 | ||
8391 | __mbstate_t *__statep; | |
8392 | __mbstate_t __state; | |
8393 | ||
8394 | ||
8395 | ||
8396 | struct __gconv_trans_data *__trans; | |
8397 | }; | |
8398 | ||
8399 | ||
8400 | ||
8401 | typedef struct __gconv_info | |
8402 | { | |
8403 | size_t __nsteps; | |
8404 | struct __gconv_step *__steps; | |
8405 | __extension__ struct __gconv_step_data __data []; | |
8406 | } *__gconv_t; | |
8407 | # 45 "/usr/include/_G_config.h" 2 3 4 | |
8408 | typedef union | |
8409 | { | |
8410 | struct __gconv_info __cd; | |
8411 | struct | |
8412 | { | |
8413 | struct __gconv_info __cd; | |
8414 | struct __gconv_step_data __data; | |
8415 | } __combined; | |
8416 | } _G_iconv_t; | |
8417 | ||
8418 | typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); | |
8419 | typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); | |
8420 | typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); | |
8421 | typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); | |
8422 | ||
8423 | #define _G_HAVE_BOOL 1 | |
8424 | ||
8425 | ||
8426 | ||
8427 | #define _G_HAVE_ATEXIT 1 | |
8428 | #define _G_HAVE_SYS_CDEFS 1 | |
8429 | #define _G_HAVE_SYS_WAIT 1 | |
8430 | #define _G_NEED_STDARG_H 1 | |
8431 | #define _G_va_list __gnuc_va_list | |
8432 | ||
8433 | #define _G_HAVE_PRINTF_FP 1 | |
8434 | #define _G_HAVE_MMAP 1 | |
8435 | #define _G_HAVE_MREMAP 1 | |
8436 | #define _G_HAVE_LONG_DOUBLE_IO 1 | |
8437 | #define _G_HAVE_IO_FILE_OPEN 1 | |
8438 | #define _G_HAVE_IO_GETLINE_INFO 1 | |
8439 | ||
8440 | #define _G_IO_IO_FILE_VERSION 0x20001 | |
8441 | ||
8442 | #define _G_OPEN64 __open64 | |
8443 | #define _G_LSEEK64 __lseek64 | |
8444 | #define _G_MMAP64 __mmap64 | |
8445 | #define _G_FSTAT64(fd,buf) __fxstat64 (_STAT_VER, fd, buf) | |
8446 | ||
8447 | ||
8448 | #define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE) | |
8449 | ||
8450 | #define _G_BUFSIZ 8192 | |
8451 | ||
8452 | ||
8453 | #define _G_NAMES_HAVE_UNDERSCORE 0 | |
8454 | #define _G_VTABLE_LABEL_HAS_LENGTH 1 | |
8455 | #define _G_USING_THUNKS 1 | |
8456 | #define _G_VTABLE_LABEL_PREFIX "__vt_" | |
8457 | #define _G_VTABLE_LABEL_PREFIX_ID __vt_ | |
8458 | ||
8459 | ||
8460 | ||
8461 | #define _G_ARGS(ARGLIST) ARGLIST | |
8462 | # 33 "/usr/include/libio.h" 2 3 4 | |
8463 | ||
8464 | #define _IO_pos_t _G_fpos_t | |
8465 | #define _IO_fpos_t _G_fpos_t | |
8466 | #define _IO_fpos64_t _G_fpos64_t | |
8467 | #define _IO_size_t _G_size_t | |
8468 | #define _IO_ssize_t _G_ssize_t | |
8469 | #define _IO_off_t _G_off_t | |
8470 | #define _IO_off64_t _G_off64_t | |
8471 | #define _IO_pid_t _G_pid_t | |
8472 | #define _IO_uid_t _G_uid_t | |
8473 | #define _IO_iconv_t _G_iconv_t | |
8474 | #define _IO_HAVE_SYS_WAIT _G_HAVE_SYS_WAIT | |
8475 | #define _IO_HAVE_ST_BLKSIZE _G_HAVE_ST_BLKSIZE | |
8476 | #define _IO_BUFSIZ _G_BUFSIZ | |
8477 | #define _IO_va_list _G_va_list | |
8478 | #define _IO_wint_t _G_wint_t | |
8479 | ||
8480 | ||
8481 | ||
8482 | #define __need___va_list | |
8483 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdarg.h" 1 3 4 | |
8484 | # 37 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdarg.h" 3 4 | |
8485 | #undef __need___va_list | |
8486 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | #define __GNUC_VA_LIST | |
8491 | typedef __builtin_va_list __gnuc_va_list; | |
8492 | # 54 "/usr/include/libio.h" 2 3 4 | |
8493 | ||
8494 | #undef _IO_va_list | |
8495 | #define _IO_va_list __gnuc_va_list | |
8496 | # 76 "/usr/include/libio.h" 3 4 | |
8497 | #define _PARAMS(protos) __P(protos) | |
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | #define _IO_UNIFIED_JUMPTABLES 1 | |
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | #define EOF (-1) | |
8512 | # 105 "/usr/include/libio.h" 3 4 | |
8513 | #define _IOS_INPUT 1 | |
8514 | #define _IOS_OUTPUT 2 | |
8515 | #define _IOS_ATEND 4 | |
8516 | #define _IOS_APPEND 8 | |
8517 | #define _IOS_TRUNC 16 | |
8518 | #define _IOS_NOCREATE 32 | |
8519 | #define _IOS_NOREPLACE 64 | |
8520 | #define _IOS_BIN 128 | |
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | #define _IO_MAGIC 0xFBAD0000 | |
8529 | #define _OLD_STDIO_MAGIC 0xFABC0000 | |
8530 | #define _IO_MAGIC_MASK 0xFFFF0000 | |
8531 | #define _IO_USER_BUF 1 | |
8532 | #define _IO_UNBUFFERED 2 | |
8533 | #define _IO_NO_READS 4 | |
8534 | #define _IO_NO_WRITES 8 | |
8535 | #define _IO_EOF_SEEN 0x10 | |
8536 | #define _IO_ERR_SEEN 0x20 | |
8537 | #define _IO_DELETE_DONT_CLOSE 0x40 | |
8538 | #define _IO_LINKED 0x80 | |
8539 | #define _IO_IN_BACKUP 0x100 | |
8540 | #define _IO_LINE_BUF 0x200 | |
8541 | #define _IO_TIED_PUT_GET 0x400 | |
8542 | #define _IO_CURRENTLY_PUTTING 0x800 | |
8543 | #define _IO_IS_APPENDING 0x1000 | |
8544 | #define _IO_IS_FILEBUF 0x2000 | |
8545 | #define _IO_BAD_SEEN 0x4000 | |
8546 | #define _IO_USER_LOCK 0x8000 | |
8547 | ||
8548 | #define _IO_FLAGS2_MMAP 1 | |
8549 | #define _IO_FLAGS2_NOTCANCEL 2 | |
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | #define _IO_SKIPWS 01 | |
8556 | #define _IO_LEFT 02 | |
8557 | #define _IO_RIGHT 04 | |
8558 | #define _IO_INTERNAL 010 | |
8559 | #define _IO_DEC 020 | |
8560 | #define _IO_OCT 040 | |
8561 | #define _IO_HEX 0100 | |
8562 | #define _IO_SHOWBASE 0200 | |
8563 | #define _IO_SHOWPOINT 0400 | |
8564 | #define _IO_UPPERCASE 01000 | |
8565 | #define _IO_SHOWPOS 02000 | |
8566 | #define _IO_SCIENTIFIC 04000 | |
8567 | #define _IO_FIXED 010000 | |
8568 | #define _IO_UNITBUF 020000 | |
8569 | #define _IO_STDIO 040000 | |
8570 | #define _IO_DONT_CLOSE 0100000 | |
8571 | #define _IO_BOOLALPHA 0200000 | |
8572 | ||
8573 | ||
8574 | struct _IO_jump_t; struct _IO_FILE; | |
8575 | # 176 "/usr/include/libio.h" 3 4 | |
8576 | typedef void _IO_lock_t; | |
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | ||
8582 | struct _IO_marker { | |
8583 | struct _IO_marker *_next; | |
8584 | struct _IO_FILE *_sbuf; | |
8585 | ||
8586 | ||
8587 | ||
8588 | int _pos; | |
8589 | # 199 "/usr/include/libio.h" 3 4 | |
8590 | }; | |
8591 | ||
8592 | ||
8593 | enum __codecvt_result | |
8594 | { | |
8595 | __codecvt_ok, | |
8596 | __codecvt_partial, | |
8597 | __codecvt_error, | |
8598 | __codecvt_noconv | |
8599 | }; | |
8600 | # 267 "/usr/include/libio.h" 3 4 | |
8601 | struct _IO_FILE { | |
8602 | int _flags; | |
8603 | #define _IO_file_flags _flags | |
8604 | ||
8605 | ||
8606 | ||
8607 | char* _IO_read_ptr; | |
8608 | char* _IO_read_end; | |
8609 | char* _IO_read_base; | |
8610 | char* _IO_write_base; | |
8611 | char* _IO_write_ptr; | |
8612 | char* _IO_write_end; | |
8613 | char* _IO_buf_base; | |
8614 | char* _IO_buf_end; | |
8615 | ||
8616 | char *_IO_save_base; | |
8617 | char *_IO_backup_base; | |
8618 | char *_IO_save_end; | |
8619 | ||
8620 | struct _IO_marker *_markers; | |
8621 | ||
8622 | struct _IO_FILE *_chain; | |
8623 | ||
8624 | int _fileno; | |
8625 | ||
8626 | ||
8627 | ||
8628 | int _flags2; | |
8629 | ||
8630 | __off_t _old_offset; | |
8631 | ||
8632 | #define __HAVE_COLUMN | |
8633 | ||
8634 | unsigned short _cur_column; | |
8635 | signed char _vtable_offset; | |
8636 | char _shortbuf[1]; | |
8637 | ||
8638 | ||
8639 | ||
8640 | _IO_lock_t *_lock; | |
8641 | # 315 "/usr/include/libio.h" 3 4 | |
8642 | __off64_t _offset; | |
8643 | # 324 "/usr/include/libio.h" 3 4 | |
8644 | void *__pad1; | |
8645 | void *__pad2; | |
8646 | void *__pad3; | |
8647 | void *__pad4; | |
8648 | size_t __pad5; | |
8649 | ||
8650 | int _mode; | |
8651 | ||
8652 | char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; | |
8653 | ||
8654 | }; | |
8655 | ||
8656 | ||
8657 | typedef struct _IO_FILE _IO_FILE; | |
8658 | ||
8659 | ||
8660 | struct _IO_FILE_plus; | |
8661 | ||
8662 | extern struct _IO_FILE_plus _IO_2_1_stdin_; | |
8663 | extern struct _IO_FILE_plus _IO_2_1_stdout_; | |
8664 | extern struct _IO_FILE_plus _IO_2_1_stderr_; | |
8665 | ||
8666 | #define _IO_stdin ((_IO_FILE*)(&_IO_2_1_stdin_)) | |
8667 | #define _IO_stdout ((_IO_FILE*)(&_IO_2_1_stdout_)) | |
8668 | #define _IO_stderr ((_IO_FILE*)(&_IO_2_1_stderr_)) | |
8669 | # 360 "/usr/include/libio.h" 3 4 | |
8670 | typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); | |
8671 | ||
8672 | ||
8673 | ||
8674 | ||
8675 | ||
8676 | ||
8677 | ||
8678 | typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, | |
8679 | size_t __n); | |
8680 | ||
8681 | ||
8682 | ||
8683 | ||
8684 | ||
8685 | ||
8686 | ||
8687 | typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); | |
8688 | ||
8689 | ||
8690 | typedef int __io_close_fn (void *__cookie); | |
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | typedef __io_read_fn cookie_read_function_t; | |
8696 | typedef __io_write_fn cookie_write_function_t; | |
8697 | typedef __io_seek_fn cookie_seek_function_t; | |
8698 | typedef __io_close_fn cookie_close_function_t; | |
8699 | ||
8700 | ||
8701 | typedef struct | |
8702 | { | |
8703 | __io_read_fn *read; | |
8704 | __io_write_fn *write; | |
8705 | __io_seek_fn *seek; | |
8706 | __io_close_fn *close; | |
8707 | } _IO_cookie_io_functions_t; | |
8708 | typedef _IO_cookie_io_functions_t cookie_io_functions_t; | |
8709 | ||
8710 | struct _IO_cookie_file; | |
8711 | ||
8712 | ||
8713 | extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, | |
8714 | void *__cookie, _IO_cookie_io_functions_t __fns); | |
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8721 | ||
8722 | extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__)); | |
8723 | extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__)); | |
8724 | extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__)); | |
8725 | extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__)); | |
8726 | extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__)); | |
8727 | extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__)); | |
8728 | ||
8729 | ||
8730 | #define _IO_BE(expr,res) __builtin_expect ((expr), res) | |
8731 | ||
8732 | ||
8733 | ||
8734 | ||
8735 | #define _IO_getc_unlocked(_fp) (_IO_BE ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end, 0) ? __uflow (_fp) : *(unsigned char *) (_fp)->_IO_read_ptr++) | |
8736 | ||
8737 | ||
8738 | #define _IO_peekc_unlocked(_fp) (_IO_BE ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end, 0) && __underflow (_fp) == EOF ? EOF : *(unsigned char *) (_fp)->_IO_read_ptr) | |
8739 | ||
8740 | ||
8741 | ||
8742 | #define _IO_putc_unlocked(_ch,_fp) (_IO_BE ((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end, 0) ? __overflow (_fp, (unsigned char) (_ch)) : (unsigned char) (*(_fp)->_IO_write_ptr++ = (_ch))) | |
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | #define _IO_getwc_unlocked(_fp) (_IO_BE ((_fp)->_wide_data->_IO_read_ptr >= (_fp)->_wide_data->_IO_read_end, 0) ? __wuflow (_fp) : (_IO_wint_t) *(_fp)->_wide_data->_IO_read_ptr++) | |
8748 | ||
8749 | ||
8750 | ||
8751 | #define _IO_putwc_unlocked(_wch,_fp) (_IO_BE ((_fp)->_wide_data->_IO_write_ptr >= (_fp)->_wide_data->_IO_write_end, 0) ? __woverflow (_fp, _wch) : (_IO_wint_t) (*(_fp)->_wide_data->_IO_write_ptr++ = (_wch))) | |
8752 | ||
8753 | ||
8754 | ||
8755 | ||
8756 | ||
8757 | #define _IO_feof_unlocked(__fp) (((__fp)->_flags & _IO_EOF_SEEN) != 0) | |
8758 | #define _IO_ferror_unlocked(__fp) (((__fp)->_flags & _IO_ERR_SEEN) != 0) | |
8759 | ||
8760 | extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__)); | |
8761 | extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__)); | |
8762 | extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__)); | |
8763 | extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__)); | |
8764 | ||
8765 | extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__)); | |
8766 | ||
8767 | ||
8768 | #define _IO_PENDING_OUTPUT_COUNT(_fp) ((_fp)->_IO_write_ptr - (_fp)->_IO_write_base) | |
8769 | ||
8770 | ||
8771 | extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); | |
8772 | extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); | |
8773 | extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); | |
8774 | # 472 "/usr/include/libio.h" 3 4 | |
8775 | #define _IO_peekc(_fp) _IO_peekc_unlocked (_fp) | |
8776 | #define _IO_flockfile(_fp) | |
8777 | #define _IO_funlockfile(_fp) | |
8778 | #define _IO_ftrylockfile(_fp) | |
8779 | #define _IO_cleanup_region_start(_fct,_fp) | |
8780 | #define _IO_cleanup_region_end(_Doit) | |
8781 | ||
8782 | ||
8783 | extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, | |
8784 | __gnuc_va_list, int *__restrict); | |
8785 | extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, | |
8786 | __gnuc_va_list); | |
8787 | extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__)); | |
8788 | extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__)); | |
8789 | ||
8790 | extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__)); | |
8791 | extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__)); | |
8792 | ||
8793 | extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__)); | |
8794 | # 73 "/usr/include/stdio.h" 2 3 4 | |
8795 | ||
8796 | ||
8797 | ||
8798 | ||
8799 | typedef __gnuc_va_list va_list; | |
8800 | #define _VA_LIST_DEFINED | |
8801 | ||
8802 | ||
8803 | ||
8804 | ||
8805 | ||
8806 | ||
8807 | ||
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | typedef _G_fpos64_t fpos_t; | |
8813 | ||
8814 | ||
8815 | ||
8816 | typedef _G_fpos64_t fpos64_t; | |
8817 | ||
8818 | ||
8819 | ||
8820 | #define _IOFBF 0 | |
8821 | #define _IOLBF 1 | |
8822 | #define _IONBF 2 | |
8823 | ||
8824 | ||
8825 | ||
8826 | ||
8827 | #define BUFSIZ _IO_BUFSIZ | |
8828 | # 118 "/usr/include/stdio.h" 3 4 | |
8829 | #define SEEK_SET 0 | |
8830 | #define SEEK_CUR 1 | |
8831 | #define SEEK_END 2 | |
8832 | ||
8833 | ||
8834 | ||
8835 | ||
8836 | #define P_tmpdir "/tmp" | |
8837 | # 138 "/usr/include/stdio.h" 3 4 | |
8838 | # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 | |
8839 | # 24 "/usr/include/bits/stdio_lim.h" 3 4 | |
8840 | #define L_tmpnam 20 | |
8841 | #define TMP_MAX 238328 | |
8842 | #define FILENAME_MAX 4096 | |
8843 | ||
8844 | ||
8845 | #define L_ctermid 9 | |
8846 | #define L_cuserid 9 | |
8847 | ||
8848 | ||
8849 | ||
8850 | ||
8851 | #undef FOPEN_MAX | |
8852 | #define FOPEN_MAX 16 | |
8853 | # 139 "/usr/include/stdio.h" 2 3 4 | |
8854 | ||
8855 | ||
8856 | ||
8857 | extern struct _IO_FILE *stdin; | |
8858 | extern struct _IO_FILE *stdout; | |
8859 | extern struct _IO_FILE *stderr; | |
8860 | ||
8861 | #define stdin stdin | |
8862 | #define stdout stdout | |
8863 | #define stderr stderr | |
8864 | ||
8865 | ||
8866 | ||
8867 | extern int remove (__const char *__filename) __attribute__ ((__nothrow__)); | |
8868 | ||
8869 | extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__)); | |
8870 | ||
8871 | ||
8872 | ||
8873 | ||
8874 | extern int renameat (int __oldfd, __const char *__old, int __newfd, | |
8875 | __const char *__new) __attribute__ ((__nothrow__)); | |
8876 | ||
8877 | ||
8878 | ||
8879 | # 172 "/usr/include/stdio.h" 3 4 | |
8880 | extern FILE *tmpfile (void) __asm__ ("" "tmpfile64"); | |
8881 | ||
8882 | ||
8883 | ||
8884 | ||
8885 | ||
8886 | ||
8887 | extern FILE *tmpfile64 (void); | |
8888 | ||
8889 | ||
8890 | ||
8891 | extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)); | |
8892 | ||
8893 | ||
8894 | ||
8895 | ||
8896 | ||
8897 | extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)); | |
8898 | # 201 "/usr/include/stdio.h" 3 4 | |
8899 | extern char *tempnam (__const char *__dir, __const char *__pfx) | |
8900 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); | |
8901 | ||
8902 | ||
8903 | ||
8904 | ||
8905 | ||
8906 | ||
8907 | ||
8908 | ||
8909 | extern int fclose (FILE *__stream); | |
8910 | ||
8911 | ||
8912 | ||
8913 | ||
8914 | extern int fflush (FILE *__stream); | |
8915 | ||
8916 | # 226 "/usr/include/stdio.h" 3 4 | |
8917 | extern int fflush_unlocked (FILE *__stream); | |
8918 | # 236 "/usr/include/stdio.h" 3 4 | |
8919 | extern int fcloseall (void); | |
8920 | ||
8921 | ||
8922 | ||
8923 | ||
8924 | # 257 "/usr/include/stdio.h" 3 4 | |
8925 | extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64"); | |
8926 | ||
8927 | extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64"); | |
8928 | ||
8929 | ||
8930 | ||
8931 | ||
8932 | ||
8933 | ||
8934 | ||
8935 | ||
8936 | ||
8937 | extern FILE *fopen64 (__const char *__restrict __filename, | |
8938 | __const char *__restrict __modes); | |
8939 | extern FILE *freopen64 (__const char *__restrict __filename, | |
8940 | __const char *__restrict __modes, | |
8941 | FILE *__restrict __stream); | |
8942 | ||
8943 | ||
8944 | ||
8945 | ||
8946 | extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)); | |
8947 | ||
8948 | ||
8949 | ||
8950 | ||
8951 | ||
8952 | extern FILE *fopencookie (void *__restrict __magic_cookie, | |
8953 | __const char *__restrict __modes, | |
8954 | _IO_cookie_io_functions_t __io_funcs) __attribute__ ((__nothrow__)); | |
8955 | ||
8956 | ||
8957 | extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) __attribute__ ((__nothrow__)); | |
8958 | ||
8959 | ||
8960 | ||
8961 | ||
8962 | extern FILE *open_memstream (char **__restrict __bufloc, | |
8963 | size_t *__restrict __sizeloc) __attribute__ ((__nothrow__)); | |
8964 | ||
8965 | ||
8966 | ||
8967 | extern FILE *open_wmemstream (wchar_t **__restrict __bufloc, | |
8968 | size_t *__restrict __sizeloc) __attribute__ ((__nothrow__)); | |
8969 | ||
8970 | ||
8971 | ||
8972 | ||
8973 | ||
8974 | ||
8975 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__)); | |
8976 | ||
8977 | ||
8978 | ||
8979 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, | |
8980 | int __modes, size_t __n) __attribute__ ((__nothrow__)); | |
8981 | ||
8982 | ||
8983 | ||
8984 | ||
8985 | ||
8986 | extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, | |
8987 | size_t __size) __attribute__ ((__nothrow__)); | |
8988 | ||
8989 | ||
8990 | extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__)); | |
8991 | ||
8992 | ||
8993 | ||
8994 | ||
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | extern int fprintf (FILE *__restrict __stream, | |
9000 | __const char *__restrict __format, ...); | |
9001 | ||
9002 | ||
9003 | ||
9004 | ||
9005 | extern int printf (__const char *__restrict __format, ...); | |
9006 | ||
9007 | extern int sprintf (char *__restrict __s, | |
9008 | __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); | |
9009 | ||
9010 | ||
9011 | ||
9012 | ||
9013 | ||
9014 | extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, | |
9015 | __gnuc_va_list __arg); | |
9016 | ||
9017 | ||
9018 | ||
9019 | ||
9020 | extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); | |
9021 | ||
9022 | extern int vsprintf (char *__restrict __s, __const char *__restrict __format, | |
9023 | __gnuc_va_list __arg) __attribute__ ((__nothrow__)); | |
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | ||
9029 | extern int snprintf (char *__restrict __s, size_t __maxlen, | |
9030 | __const char *__restrict __format, ...) | |
9031 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); | |
9032 | ||
9033 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | |
9034 | __const char *__restrict __format, __gnuc_va_list __arg) | |
9035 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); | |
9036 | ||
9037 | ||
9038 | ||
9039 | ||
9040 | ||
9041 | ||
9042 | extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f, | |
9043 | __gnuc_va_list __arg) | |
9044 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))); | |
9045 | extern int __asprintf (char **__restrict __ptr, | |
9046 | __const char *__restrict __fmt, ...) | |
9047 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))); | |
9048 | extern int asprintf (char **__restrict __ptr, | |
9049 | __const char *__restrict __fmt, ...) | |
9050 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))); | |
9051 | ||
9052 | ||
9053 | ||
9054 | ||
9055 | ||
9056 | ||
9057 | ||
9058 | extern int vdprintf (int __fd, __const char *__restrict __fmt, | |
9059 | __gnuc_va_list __arg) | |
9060 | __attribute__ ((__format__ (__printf__, 2, 0))); | |
9061 | extern int dprintf (int __fd, __const char *__restrict __fmt, ...) | |
9062 | __attribute__ ((__format__ (__printf__, 2, 3))); | |
9063 | ||
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | ||
9071 | extern int fscanf (FILE *__restrict __stream, | |
9072 | __const char *__restrict __format, ...) ; | |
9073 | ||
9074 | ||
9075 | ||
9076 | ||
9077 | extern int scanf (__const char *__restrict __format, ...) ; | |
9078 | ||
9079 | extern int sscanf (__const char *__restrict __s, | |
9080 | __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); | |
9081 | ||
9082 | ||
9083 | ||
9084 | ||
9085 | ||
9086 | ||
9087 | ||
9088 | ||
9089 | extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, | |
9090 | __gnuc_va_list __arg) | |
9091 | __attribute__ ((__format__ (__scanf__, 2, 0))) ; | |
9092 | ||
9093 | ||
9094 | ||
9095 | ||
9096 | ||
9097 | extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) | |
9098 | __attribute__ ((__format__ (__scanf__, 1, 0))) ; | |
9099 | ||
9100 | ||
9101 | extern int vsscanf (__const char *__restrict __s, | |
9102 | __const char *__restrict __format, __gnuc_va_list __arg) | |
9103 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0))); | |
9104 | ||
9105 | ||
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
9111 | ||
9112 | ||
9113 | extern int fgetc (FILE *__stream); | |
9114 | extern int getc (FILE *__stream); | |
9115 | ||
9116 | ||
9117 | ||
9118 | ||
9119 | ||
9120 | extern int getchar (void); | |
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | #define getc(_fp) _IO_getc (_fp) | |
9126 | ||
9127 | ||
9128 | ||
9129 | ||
9130 | ||
9131 | ||
9132 | extern int getc_unlocked (FILE *__stream); | |
9133 | extern int getchar_unlocked (void); | |
9134 | # 475 "/usr/include/stdio.h" 3 4 | |
9135 | extern int fgetc_unlocked (FILE *__stream); | |
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | ||
9147 | extern int fputc (int __c, FILE *__stream); | |
9148 | extern int putc (int __c, FILE *__stream); | |
9149 | ||
9150 | ||
9151 | ||
9152 | ||
9153 | ||
9154 | extern int putchar (int __c); | |
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | #define putc(_ch,_fp) _IO_putc (_ch, _fp) | |
9160 | # 508 "/usr/include/stdio.h" 3 4 | |
9161 | extern int fputc_unlocked (int __c, FILE *__stream); | |
9162 | ||
9163 | ||
9164 | ||
9165 | ||
9166 | ||
9167 | ||
9168 | ||
9169 | extern int putc_unlocked (int __c, FILE *__stream); | |
9170 | extern int putchar_unlocked (int __c); | |
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | ||
9176 | ||
9177 | extern int getw (FILE *__stream); | |
9178 | ||
9179 | ||
9180 | extern int putw (int __w, FILE *__stream); | |
9181 | ||
9182 | ||
9183 | ||
9184 | ||
9185 | ||
9186 | ||
9187 | ||
9188 | ||
9189 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | |
9190 | ; | |
9191 | ||
9192 | ||
9193 | ||
9194 | ||
9195 | ||
9196 | ||
9197 | extern char *gets (char *__s) ; | |
9198 | ||
9199 | # 554 "/usr/include/stdio.h" 3 4 | |
9200 | extern char *fgets_unlocked (char *__restrict __s, int __n, | |
9201 | FILE *__restrict __stream) ; | |
9202 | # 570 "/usr/include/stdio.h" 3 4 | |
9203 | extern __ssize_t __getdelim (char **__restrict __lineptr, | |
9204 | size_t *__restrict __n, int __delimiter, | |
9205 | FILE *__restrict __stream) ; | |
9206 | extern __ssize_t getdelim (char **__restrict __lineptr, | |
9207 | size_t *__restrict __n, int __delimiter, | |
9208 | FILE *__restrict __stream) ; | |
9209 | ||
9210 | ||
9211 | ||
9212 | ||
9213 | ||
9214 | ||
9215 | ||
9216 | extern __ssize_t getline (char **__restrict __lineptr, | |
9217 | size_t *__restrict __n, | |
9218 | FILE *__restrict __stream) ; | |
9219 | ||
9220 | ||
9221 | ||
9222 | ||
9223 | ||
9224 | ||
9225 | ||
9226 | ||
9227 | extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); | |
9228 | ||
9229 | ||
9230 | ||
9231 | ||
9232 | ||
9233 | extern int puts (__const char *__s); | |
9234 | ||
9235 | ||
9236 | ||
9237 | ||
9238 | ||
9239 | ||
9240 | extern int ungetc (int __c, FILE *__stream); | |
9241 | ||
9242 | ||
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | extern size_t fread (void *__restrict __ptr, size_t __size, | |
9248 | size_t __n, FILE *__restrict __stream) ; | |
9249 | ||
9250 | ||
9251 | ||
9252 | ||
9253 | extern size_t fwrite (__const void *__restrict __ptr, size_t __size, | |
9254 | size_t __n, FILE *__restrict __s) ; | |
9255 | ||
9256 | # 631 "/usr/include/stdio.h" 3 4 | |
9257 | extern int fputs_unlocked (__const char *__restrict __s, | |
9258 | FILE *__restrict __stream); | |
9259 | # 642 "/usr/include/stdio.h" 3 4 | |
9260 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | |
9261 | size_t __n, FILE *__restrict __stream) ; | |
9262 | extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, | |
9263 | size_t __n, FILE *__restrict __stream) ; | |
9264 | ||
9265 | ||
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | extern int fseek (FILE *__stream, long int __off, int __whence); | |
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | extern long int ftell (FILE *__stream) ; | |
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | extern void rewind (FILE *__stream); | |
9283 | ||
9284 | # 686 "/usr/include/stdio.h" 3 4 | |
9285 | extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64"); | |
9286 | ||
9287 | ||
9288 | extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64"); | |
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | # 711 "/usr/include/stdio.h" 3 4 | |
9298 | extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64"); | |
9299 | ||
9300 | extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64"); | |
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); | |
9311 | extern __off64_t ftello64 (FILE *__stream) ; | |
9312 | extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); | |
9313 | extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos); | |
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__)); | |
9319 | ||
9320 | extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
9321 | ||
9322 | extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); | |
9328 | extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
9329 | extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | extern void perror (__const char *__s); | |
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | # 1 "/usr/include/bits/sys_errlist.h" 1 3 4 | |
9346 | # 27 "/usr/include/bits/sys_errlist.h" 3 4 | |
9347 | extern int sys_nerr; | |
9348 | extern __const char *__const sys_errlist[]; | |
9349 | ||
9350 | ||
9351 | extern int _sys_nerr; | |
9352 | extern __const char *__const _sys_errlist[]; | |
9353 | # 759 "/usr/include/stdio.h" 2 3 4 | |
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
9364 | # 778 "/usr/include/stdio.h" 3 4 | |
9365 | extern FILE *popen (__const char *__command, __const char *__modes) ; | |
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | extern int pclose (FILE *__stream); | |
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); | |
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | extern char *cuserid (char *__s); | |
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | struct obstack; | |
9389 | ||
9390 | ||
9391 | extern int obstack_printf (struct obstack *__restrict __obstack, | |
9392 | __const char *__restrict __format, ...) | |
9393 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))); | |
9394 | extern int obstack_vprintf (struct obstack *__restrict __obstack, | |
9395 | __const char *__restrict __format, | |
9396 | __gnuc_va_list __args) | |
9397 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))); | |
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__)); | |
9406 | ||
9407 | ||
9408 | ||
9409 | extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
9410 | ||
9411 | ||
9412 | extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__)); | |
9413 | # 848 "/usr/include/stdio.h" 3 4 | |
9414 | ||
9415 | # 80 "../../src/include/platform.h" 2 | |
9416 | # 1 "/usr/include/stdlib.h" 1 3 4 | |
9417 | # 28 "/usr/include/stdlib.h" 3 4 | |
9418 | #define __need_size_t | |
9419 | ||
9420 | #define __need_wchar_t | |
9421 | #define __need_NULL | |
9422 | ||
9423 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
9424 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
9425 | #undef __need_size_t | |
9426 | # 344 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
9427 | #undef __need_wchar_t | |
9428 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
9429 | #undef NULL | |
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | #define NULL ((void *)0) | |
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | #undef __need_NULL | |
9441 | # 34 "/usr/include/stdlib.h" 2 3 4 | |
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | #define _STDLIB_H 1 | |
9447 | # 96 "/usr/include/stdlib.h" 3 4 | |
9448 | ||
9449 | ||
9450 | typedef struct | |
9451 | { | |
9452 | int quot; | |
9453 | int rem; | |
9454 | } div_t; | |
9455 | ||
9456 | ||
9457 | ||
9458 | typedef struct | |
9459 | { | |
9460 | long int quot; | |
9461 | long int rem; | |
9462 | } ldiv_t; | |
9463 | #define __ldiv_t_defined 1 | |
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
9470 | __extension__ typedef struct | |
9471 | { | |
9472 | long long int quot; | |
9473 | long long int rem; | |
9474 | } lldiv_t; | |
9475 | #define __lldiv_t_defined 1 | |
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | #define RAND_MAX 2147483647 | |
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | #define EXIT_FAILURE 1 | |
9487 | #define EXIT_SUCCESS 0 | |
9488 | ||
9489 | ||
9490 | ||
9491 | #define MB_CUR_MAX (__ctype_get_mb_cur_max ()) | |
9492 | extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ; | |
9493 | ||
9494 | ||
9495 | ||
9496 | ||
9497 | extern double atof (__const char *__nptr) | |
9498 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; | |
9499 | ||
9500 | extern int atoi (__const char *__nptr) | |
9501 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; | |
9502 | ||
9503 | extern long int atol (__const char *__nptr) | |
9504 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; | |
9505 | ||
9506 | ||
9507 | ||
9508 | ||
9509 | ||
9510 | __extension__ extern long long int atoll (__const char *__nptr) | |
9511 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; | |
9512 | ||
9513 | ||
9514 | ||
9515 | ||
9516 | ||
9517 | extern double strtod (__const char *__restrict __nptr, | |
9518 | char **__restrict __endptr) | |
9519 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | ||
9525 | extern float strtof (__const char *__restrict __nptr, | |
9526 | char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9527 | ||
9528 | extern long double strtold (__const char *__restrict __nptr, | |
9529 | char **__restrict __endptr) | |
9530 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | ||
9536 | extern long int strtol (__const char *__restrict __nptr, | |
9537 | char **__restrict __endptr, int __base) | |
9538 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9539 | ||
9540 | extern unsigned long int strtoul (__const char *__restrict __nptr, | |
9541 | char **__restrict __endptr, int __base) | |
9542 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9543 | ||
9544 | ||
9545 | ||
9546 | ||
9547 | __extension__ | |
9548 | extern long long int strtoq (__const char *__restrict __nptr, | |
9549 | char **__restrict __endptr, int __base) | |
9550 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9551 | ||
9552 | __extension__ | |
9553 | extern unsigned long long int strtouq (__const char *__restrict __nptr, | |
9554 | char **__restrict __endptr, int __base) | |
9555 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9556 | ||
9557 | ||
9558 | ||
9559 | ||
9560 | ||
9561 | __extension__ | |
9562 | extern long long int strtoll (__const char *__restrict __nptr, | |
9563 | char **__restrict __endptr, int __base) | |
9564 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9565 | ||
9566 | __extension__ | |
9567 | extern unsigned long long int strtoull (__const char *__restrict __nptr, | |
9568 | char **__restrict __endptr, int __base) | |
9569 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9570 | ||
9571 | # 240 "/usr/include/stdlib.h" 3 4 | |
9572 | extern long int strtol_l (__const char *__restrict __nptr, | |
9573 | char **__restrict __endptr, int __base, | |
9574 | __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ; | |
9575 | ||
9576 | extern unsigned long int strtoul_l (__const char *__restrict __nptr, | |
9577 | char **__restrict __endptr, | |
9578 | int __base, __locale_t __loc) | |
9579 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ; | |
9580 | ||
9581 | __extension__ | |
9582 | extern long long int strtoll_l (__const char *__restrict __nptr, | |
9583 | char **__restrict __endptr, int __base, | |
9584 | __locale_t __loc) | |
9585 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ; | |
9586 | ||
9587 | __extension__ | |
9588 | extern unsigned long long int strtoull_l (__const char *__restrict __nptr, | |
9589 | char **__restrict __endptr, | |
9590 | int __base, __locale_t __loc) | |
9591 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))) ; | |
9592 | ||
9593 | extern double strtod_l (__const char *__restrict __nptr, | |
9594 | char **__restrict __endptr, __locale_t __loc) | |
9595 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ; | |
9596 | ||
9597 | extern float strtof_l (__const char *__restrict __nptr, | |
9598 | char **__restrict __endptr, __locale_t __loc) | |
9599 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ; | |
9600 | ||
9601 | extern long double strtold_l (__const char *__restrict __nptr, | |
9602 | char **__restrict __endptr, | |
9603 | __locale_t __loc) | |
9604 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ; | |
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | ||
9610 | ||
9611 | extern double __strtod_internal (__const char *__restrict __nptr, | |
9612 | char **__restrict __endptr, int __group) | |
9613 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9614 | extern float __strtof_internal (__const char *__restrict __nptr, | |
9615 | char **__restrict __endptr, int __group) | |
9616 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9617 | extern long double __strtold_internal (__const char *__restrict __nptr, | |
9618 | char **__restrict __endptr, | |
9619 | int __group) | |
9620 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9621 | ||
9622 | extern long int __strtol_internal (__const char *__restrict __nptr, | |
9623 | char **__restrict __endptr, | |
9624 | int __base, int __group) | |
9625 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9626 | #define __strtol_internal_defined 1 | |
9627 | ||
9628 | ||
9629 | extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, | |
9630 | char **__restrict __endptr, | |
9631 | int __base, int __group) | |
9632 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9633 | #define __strtoul_internal_defined 1 | |
9634 | ||
9635 | ||
9636 | ||
9637 | __extension__ | |
9638 | extern long long int __strtoll_internal (__const char *__restrict __nptr, | |
9639 | char **__restrict __endptr, | |
9640 | int __base, int __group) | |
9641 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9642 | #define __strtoll_internal_defined 1 | |
9643 | ||
9644 | ||
9645 | __extension__ | |
9646 | extern unsigned long long int __strtoull_internal (__const char * | |
9647 | __restrict __nptr, | |
9648 | char **__restrict __endptr, | |
9649 | int __base, int __group) | |
9650 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9651 | #define __strtoull_internal_defined 1 | |
9652 | # 429 "/usr/include/stdlib.h" 3 4 | |
9653 | extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ; | |
9654 | ||
9655 | ||
9656 | extern long int a64l (__const char *__s) | |
9657 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; | |
9658 | # 445 "/usr/include/stdlib.h" 3 4 | |
9659 | extern long int random (void) __attribute__ ((__nothrow__)); | |
9660 | ||
9661 | ||
9662 | extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__)); | |
9663 | ||
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | extern char *initstate (unsigned int __seed, char *__statebuf, | |
9669 | size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
9670 | ||
9671 | ||
9672 | ||
9673 | extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9674 | ||
9675 | ||
9676 | ||
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | struct random_data | |
9682 | { | |
9683 | int32_t *fptr; | |
9684 | int32_t *rptr; | |
9685 | int32_t *state; | |
9686 | int rand_type; | |
9687 | int rand_deg; | |
9688 | int rand_sep; | |
9689 | int32_t *end_ptr; | |
9690 | }; | |
9691 | ||
9692 | extern int random_r (struct random_data *__restrict __buf, | |
9693 | int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9694 | ||
9695 | extern int srandom_r (unsigned int __seed, struct random_data *__buf) | |
9696 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
9697 | ||
9698 | extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, | |
9699 | size_t __statelen, | |
9700 | struct random_data *__restrict __buf) | |
9701 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); | |
9702 | ||
9703 | extern int setstate_r (char *__restrict __statebuf, | |
9704 | struct random_data *__restrict __buf) | |
9705 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | extern int rand (void) __attribute__ ((__nothrow__)); | |
9713 | ||
9714 | extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); | |
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__)); | |
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ||
9726 | ||
9727 | extern double drand48 (void) __attribute__ ((__nothrow__)); | |
9728 | extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9729 | ||
9730 | ||
9731 | extern long int lrand48 (void) __attribute__ ((__nothrow__)); | |
9732 | extern long int nrand48 (unsigned short int __xsubi[3]) | |
9733 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9734 | ||
9735 | ||
9736 | extern long int mrand48 (void) __attribute__ ((__nothrow__)); | |
9737 | extern long int jrand48 (unsigned short int __xsubi[3]) | |
9738 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9739 | ||
9740 | ||
9741 | extern void srand48 (long int __seedval) __attribute__ ((__nothrow__)); | |
9742 | extern unsigned short int *seed48 (unsigned short int __seed16v[3]) | |
9743 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9744 | extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | struct drand48_data | |
9751 | { | |
9752 | unsigned short int __x[3]; | |
9753 | unsigned short int __old_x[3]; | |
9754 | unsigned short int __c; | |
9755 | unsigned short int __init; | |
9756 | unsigned long long int __a; | |
9757 | }; | |
9758 | ||
9759 | ||
9760 | extern int drand48_r (struct drand48_data *__restrict __buffer, | |
9761 | double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9762 | extern int erand48_r (unsigned short int __xsubi[3], | |
9763 | struct drand48_data *__restrict __buffer, | |
9764 | double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9765 | ||
9766 | ||
9767 | extern int lrand48_r (struct drand48_data *__restrict __buffer, | |
9768 | long int *__restrict __result) | |
9769 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9770 | extern int nrand48_r (unsigned short int __xsubi[3], | |
9771 | struct drand48_data *__restrict __buffer, | |
9772 | long int *__restrict __result) | |
9773 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9774 | ||
9775 | ||
9776 | extern int mrand48_r (struct drand48_data *__restrict __buffer, | |
9777 | long int *__restrict __result) | |
9778 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9779 | extern int jrand48_r (unsigned short int __xsubi[3], | |
9780 | struct drand48_data *__restrict __buffer, | |
9781 | long int *__restrict __result) | |
9782 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9783 | ||
9784 | ||
9785 | extern int srand48_r (long int __seedval, struct drand48_data *__buffer) | |
9786 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
9787 | ||
9788 | extern int seed48_r (unsigned short int __seed16v[3], | |
9789 | struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9790 | ||
9791 | extern int lcong48_r (unsigned short int __param[7], | |
9792 | struct drand48_data *__buffer) | |
9793 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | #define __malloc_and_calloc_defined | |
9801 | ||
9802 | ||
9803 | extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; | |
9804 | ||
9805 | extern void *calloc (size_t __nmemb, size_t __size) | |
9806 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; | |
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | ||
9812 | ||
9813 | ||
9814 | extern void *realloc (void *__ptr, size_t __size) | |
9815 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); | |
9816 | ||
9817 | extern void free (void *__ptr) __attribute__ ((__nothrow__)); | |
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); | |
9823 | ||
9824 | ||
9825 | ||
9826 | # 1 "/usr/include/alloca.h" 1 3 4 | |
9827 | # 20 "/usr/include/alloca.h" 3 4 | |
9828 | #define _ALLOCA_H 1 | |
9829 | ||
9830 | ||
9831 | ||
9832 | #define __need_size_t | |
9833 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
9834 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
9835 | #undef __need_size_t | |
9836 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
9837 | #undef __need_NULL | |
9838 | # 26 "/usr/include/alloca.h" 2 3 4 | |
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | #undef alloca | |
9844 | ||
9845 | ||
9846 | extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); | |
9847 | ||
9848 | ||
9849 | #define alloca(size) __builtin_alloca (size) | |
9850 | ||
9851 | ||
9852 | ||
9853 | # 613 "/usr/include/stdlib.h" 2 3 4 | |
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; | |
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) | |
9864 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); | |
9870 | ||
9871 | ||
9872 | ||
9873 | extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) | |
9880 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); | |
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); | |
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | extern char *__secure_getenv (__const char *__name) | |
9907 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | extern int setenv (__const char *__name, __const char *__value, int __replace) | |
9920 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
9921 | ||
9922 | ||
9923 | extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)); | |
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | extern int clearenv (void) __attribute__ ((__nothrow__)); | |
9931 | # 698 "/usr/include/stdlib.h" 3 4 | |
9932 | extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9933 | # 712 "/usr/include/stdlib.h" 3 4 | |
9934 | extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") | |
9935 | __attribute__ ((__nonnull__ (1))) ; | |
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ; | |
9942 | # 729 "/usr/include/stdlib.h" 3 4 | |
9943 | extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | ||
9950 | ||
9951 | ||
9952 | extern int system (__const char *__command) ; | |
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | extern char *canonicalize_file_name (__const char *__name) | |
9961 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
9962 | # 757 "/usr/include/stdlib.h" 3 4 | |
9963 | extern char *realpath (__const char *__restrict __name, | |
9964 | char *__restrict __resolved) __attribute__ ((__nothrow__)) ; | |
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | #define __COMPAR_FN_T | |
9971 | typedef int (*__compar_fn_t) (__const void *, __const void *); | |
9972 | ||
9973 | ||
9974 | typedef __compar_fn_t comparison_fn_t; | |
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | extern void *bsearch (__const void *__key, __const void *__base, | |
9982 | size_t __nmemb, size_t __size, __compar_fn_t __compar) | |
9983 | __attribute__ ((__nonnull__ (1, 2, 5))) ; | |
9984 | ||
9985 | ||
9986 | ||
9987 | extern void qsort (void *__base, size_t __nmemb, size_t __size, | |
9988 | __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); | |
9989 | ||
9990 | ||
9991 | ||
9992 | extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; | |
9993 | extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; | |
9994 | ||
9995 | ||
9996 | ||
9997 | __extension__ extern long long int llabs (long long int __x) | |
9998 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; | |
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | extern div_t div (int __numer, int __denom) | |
10007 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; | |
10008 | extern ldiv_t ldiv (long int __numer, long int __denom) | |
10009 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; | |
10010 | ||
10011 | ||
10012 | ||
10013 | ||
10014 | __extension__ extern lldiv_t lldiv (long long int __numer, | |
10015 | long long int __denom) | |
10016 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; | |
10017 | ||
10018 | # 822 "/usr/include/stdlib.h" 3 4 | |
10019 | extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, | |
10020 | int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; | |
10021 | ||
10022 | ||
10023 | ||
10024 | ||
10025 | extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, | |
10026 | int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; | |
10027 | ||
10028 | ||
10029 | ||
10030 | ||
10031 | extern char *gcvt (double __value, int __ndigit, char *__buf) | |
10032 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; | |
10033 | ||
10034 | ||
10035 | ||
10036 | ||
10037 | extern char *qecvt (long double __value, int __ndigit, | |
10038 | int *__restrict __decpt, int *__restrict __sign) | |
10039 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; | |
10040 | extern char *qfcvt (long double __value, int __ndigit, | |
10041 | int *__restrict __decpt, int *__restrict __sign) | |
10042 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; | |
10043 | extern char *qgcvt (long double __value, int __ndigit, char *__buf) | |
10044 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; | |
10045 | ||
10046 | ||
10047 | ||
10048 | ||
10049 | extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, | |
10050 | int *__restrict __sign, char *__restrict __buf, | |
10051 | size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); | |
10052 | extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, | |
10053 | int *__restrict __sign, char *__restrict __buf, | |
10054 | size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); | |
10055 | ||
10056 | extern int qecvt_r (long double __value, int __ndigit, | |
10057 | int *__restrict __decpt, int *__restrict __sign, | |
10058 | char *__restrict __buf, size_t __len) | |
10059 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); | |
10060 | extern int qfcvt_r (long double __value, int __ndigit, | |
10061 | int *__restrict __decpt, int *__restrict __sign, | |
10062 | char *__restrict __buf, size_t __len) | |
10063 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); | |
10064 | ||
10065 | ||
10066 | ||
10067 | ||
10068 | ||
10069 | ||
10070 | ||
10071 | extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ; | |
10072 | ||
10073 | ||
10074 | extern int mbtowc (wchar_t *__restrict __pwc, | |
10075 | __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ; | |
10076 | ||
10077 | ||
10078 | extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ; | |
10079 | ||
10080 | ||
10081 | ||
10082 | extern size_t mbstowcs (wchar_t *__restrict __pwcs, | |
10083 | __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); | |
10084 | ||
10085 | extern size_t wcstombs (char *__restrict __s, | |
10086 | __const wchar_t *__restrict __pwcs, size_t __n) | |
10087 | __attribute__ ((__nothrow__)); | |
10088 | ||
10089 | ||
10090 | ||
10091 | ||
10092 | ||
10093 | ||
10094 | ||
10095 | ||
10096 | extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
10097 | # 910 "/usr/include/stdlib.h" 3 4 | |
10098 | extern int getsubopt (char **__restrict __optionp, | |
10099 | char *__const *__restrict __tokens, | |
10100 | char **__restrict __valuep) | |
10101 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; | |
10102 | ||
10103 | ||
10104 | ||
10105 | ||
10106 | ||
10107 | extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
10108 | ||
10109 | ||
10110 | ||
10111 | ||
10112 | ||
10113 | ||
10114 | ||
10115 | extern int posix_openpt (int __oflag) ; | |
10116 | ||
10117 | ||
10118 | ||
10119 | ||
10120 | ||
10121 | ||
10122 | ||
10123 | extern int grantpt (int __fd) __attribute__ ((__nothrow__)); | |
10124 | ||
10125 | ||
10126 | ||
10127 | extern int unlockpt (int __fd) __attribute__ ((__nothrow__)); | |
10128 | ||
10129 | ||
10130 | ||
10131 | ||
10132 | extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) ; | |
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | extern int ptsname_r (int __fd, char *__buf, size_t __buflen) | |
10140 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
10141 | ||
10142 | ||
10143 | extern int getpt (void); | |
10144 | ||
10145 | ||
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | extern int getloadavg (double __loadavg[], int __nelem) | |
10151 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
10152 | # 976 "/usr/include/stdlib.h" 3 4 | |
10153 | #undef __need_malloc_and_calloc | |
10154 | ||
10155 | ||
10156 | # 81 "../../src/include/platform.h" 2 | |
10157 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdarg.h" 1 3 4 | |
10158 | # 34 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdarg.h" 3 4 | |
10159 | #define _STDARG_H | |
10160 | #define _ANSI_STDARG_H_ | |
10161 | ||
10162 | #undef __need___va_list | |
10163 | # 50 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdarg.h" 3 4 | |
10164 | #define va_start(v,l) __builtin_va_start(v,l) | |
10165 | #define va_end(v) __builtin_va_end(v) | |
10166 | #define va_arg(v,l) __builtin_va_arg(v,l) | |
10167 | ||
10168 | #define va_copy(d,s) __builtin_va_copy(d,s) | |
10169 | ||
10170 | #define __va_copy(d,s) __builtin_va_copy(d,s) | |
10171 | # 111 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdarg.h" 3 4 | |
10172 | #define _VA_LIST_ | |
10173 | ||
10174 | ||
10175 | #define _VA_LIST | |
10176 | ||
10177 | ||
10178 | ||
10179 | ||
10180 | ||
10181 | #define _VA_LIST_T_H | |
10182 | ||
10183 | ||
10184 | #define __va_list__ | |
10185 | # 82 "../../src/include/platform.h" 2 | |
10186 | ||
10187 | # 1 "/usr/include/ltdl.h" 1 3 4 | |
10188 | # 29 "/usr/include/ltdl.h" 3 4 | |
10189 | #define LTDL_H 1 | |
10190 | # 38 "/usr/include/ltdl.h" 3 4 | |
10191 | #define LT_EOS_CHAR '\0' | |
10192 | # 47 "/usr/include/ltdl.h" 3 4 | |
10193 | #define LT_BEGIN_C_DECLS | |
10194 | #define LT_END_C_DECLS | |
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | #define LT_PARAMS(protos) protos | |
10205 | #define lt_ptr void* | |
10206 | # 68 "/usr/include/ltdl.h" 3 4 | |
10207 | #define LT_STMT_START (void)( | |
10208 | #define LT_STMT_END ) | |
10209 | # 83 "/usr/include/ltdl.h" 3 4 | |
10210 | #define LT_CONC(s,t) s ##t | |
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | #define LT_STRLEN(s) (((s) && (s)[0]) ? strlen (s) : 0) | |
10217 | # 124 "/usr/include/ltdl.h" 3 4 | |
10218 | #define LT_PATHSEP_CHAR ':' | |
10219 | # 139 "/usr/include/ltdl.h" 3 4 | |
10220 | #define LT_SCOPE extern | |
10221 | # 153 "/usr/include/ltdl.h" 3 4 | |
10222 | typedef struct lt_dlhandle_struct *lt_dlhandle; | |
10223 | ||
10224 | ||
10225 | extern int lt_dlinit (void); | |
10226 | extern int lt_dlexit (void); | |
10227 | ||
10228 | ||
10229 | extern int lt_dladdsearchdir (const char *search_dir); | |
10230 | extern int lt_dlinsertsearchdir (const char *before, const char *search_dir); | |
10231 | ||
10232 | extern int lt_dlsetsearchpath (const char *search_path); | |
10233 | extern const char *lt_dlgetsearchpath (void); | |
10234 | extern int lt_dlforeachfile ( const char *search_path, int (*func) (const char *filename, void* data), void* data); | |
10235 | ||
10236 | ||
10237 | ||
10238 | ||
10239 | ||
10240 | extern lt_dlhandle lt_dlopen (const char *filename); | |
10241 | extern lt_dlhandle lt_dlopenext (const char *filename); | |
10242 | extern void* lt_dlsym (lt_dlhandle handle, const char *name); | |
10243 | ||
10244 | extern const char *lt_dlerror (void); | |
10245 | extern int lt_dlclose (lt_dlhandle handle); | |
10246 | ||
10247 | ||
10248 | extern int lt_dlmakeresident (lt_dlhandle handle); | |
10249 | extern int lt_dlisresident (lt_dlhandle handle); | |
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | typedef void lt_dlmutex_lock (void); | |
10258 | typedef void lt_dlmutex_unlock (void); | |
10259 | typedef void lt_dlmutex_seterror (const char *errmsg); | |
10260 | typedef const char *lt_dlmutex_geterror (void); | |
10261 | ||
10262 | extern int lt_dlmutex_register (lt_dlmutex_lock *lock, lt_dlmutex_unlock *unlock, lt_dlmutex_seterror *seterror, lt_dlmutex_geterror *geterror); | |
10263 | # 209 "/usr/include/ltdl.h" 3 4 | |
10264 | extern void* (*lt_dlmalloc) (size_t size); | |
10265 | extern void* (*lt_dlrealloc) (void* ptr, size_t size); | |
10266 | extern void (*lt_dlfree) (void* ptr); | |
10267 | # 221 "/usr/include/ltdl.h" 3 4 | |
10268 | typedef struct { | |
10269 | const char *name; | |
10270 | void* address; | |
10271 | } lt_dlsymlist; | |
10272 | ||
10273 | extern int lt_dlpreload (const lt_dlsymlist *preloaded); | |
10274 | extern int lt_dlpreload_default | |
10275 | (const lt_dlsymlist *preloaded); | |
10276 | ||
10277 | #define LTDL_SET_PRELOADED_SYMBOLS() LT_STMT_START{ extern const lt_dlsymlist lt_preloaded_symbols[]; lt_dlpreload_default(lt_preloaded_symbols); }LT_STMT_END | |
10278 | # 242 "/usr/include/ltdl.h" 3 4 | |
10279 | typedef struct { | |
10280 | char *filename; | |
10281 | char *name; | |
10282 | int ref_count; | |
10283 | ||
10284 | } lt_dlinfo; | |
10285 | ||
10286 | extern const lt_dlinfo *lt_dlgetinfo (lt_dlhandle handle); | |
10287 | extern lt_dlhandle lt_dlhandle_next (lt_dlhandle place); | |
10288 | extern int lt_dlforeach ( int (*func) (lt_dlhandle handle, void* data), void* data); | |
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | typedef unsigned lt_dlcaller_id; | |
10294 | ||
10295 | extern lt_dlcaller_id lt_dlcaller_register (void); | |
10296 | extern void* lt_dlcaller_set_data (lt_dlcaller_id key, lt_dlhandle handle, void* data); | |
10297 | ||
10298 | ||
10299 | extern void* lt_dlcaller_get_data (lt_dlcaller_id key, lt_dlhandle handle); | |
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | typedef struct lt_dlloader lt_dlloader; | |
10308 | typedef void* lt_user_data; | |
10309 | typedef void* lt_module; | |
10310 | ||
10311 | ||
10312 | typedef lt_module lt_module_open (lt_user_data loader_data, const char *filename); | |
10313 | ||
10314 | typedef int lt_module_close (lt_user_data loader_data, lt_module handle); | |
10315 | ||
10316 | typedef void* lt_find_sym (lt_user_data loader_data, lt_module handle, const char *symbol); | |
10317 | ||
10318 | ||
10319 | typedef int lt_dlloader_exit (lt_user_data loader_data); | |
10320 | ||
10321 | struct lt_user_dlloader { | |
10322 | const char *sym_prefix; | |
10323 | lt_module_open *module_open; | |
10324 | lt_module_close *module_close; | |
10325 | lt_find_sym *find_sym; | |
10326 | lt_dlloader_exit *dlloader_exit; | |
10327 | lt_user_data dlloader_data; | |
10328 | }; | |
10329 | ||
10330 | extern lt_dlloader *lt_dlloader_next (lt_dlloader *place); | |
10331 | extern lt_dlloader *lt_dlloader_find ( const char *loader_name); | |
10332 | ||
10333 | extern const char *lt_dlloader_name (lt_dlloader *place); | |
10334 | extern lt_user_data *lt_dlloader_data (lt_dlloader *place); | |
10335 | extern int lt_dlloader_add (lt_dlloader *place, const struct lt_user_dlloader *dlloader, const char *loader_name); | |
10336 | ||
10337 | ||
10338 | extern int lt_dlloader_remove ( const char *loader_name); | |
10339 | # 313 "/usr/include/ltdl.h" 3 4 | |
10340 | #define lt_dlerror_table LT_ERROR(UNKNOWN, "unknown error") LT_ERROR(DLOPEN_NOT_SUPPORTED, "dlopen support not available") LT_ERROR(INVALID_LOADER, "invalid loader") LT_ERROR(INIT_LOADER, "loader initialization failed") LT_ERROR(REMOVE_LOADER, "loader removal failed") LT_ERROR(FILE_NOT_FOUND, "file not found") LT_ERROR(DEPLIB_NOT_FOUND, "dependency library not found") LT_ERROR(NO_SYMBOLS, "no symbols defined") LT_ERROR(CANNOT_OPEN, "can't open the module") LT_ERROR(CANNOT_CLOSE, "can't close the module") LT_ERROR(SYMBOL_NOT_FOUND, "symbol not found") LT_ERROR(NO_MEMORY, "not enough memory") LT_ERROR(INVALID_HANDLE, "invalid module handle") LT_ERROR(BUFFER_OVERFLOW, "internal buffer overflow") LT_ERROR(INVALID_ERRORCODE, "invalid errorcode") LT_ERROR(SHUTDOWN, "library already shutdown") LT_ERROR(CLOSE_RESIDENT_MODULE, "can't close resident module") LT_ERROR(INVALID_MUTEX_ARGS, "invalid mutex handler registration") LT_ERROR(INVALID_POSITION, "invalid search path insert position") | |
10341 | # 335 "/usr/include/ltdl.h" 3 4 | |
10342 | enum { | |
10343 | #define LT_ERROR(name,diagnostic) LT_CONC(LT_ERROR_, name), | |
10344 | LT_ERROR_UNKNOWN, LT_ERROR_DLOPEN_NOT_SUPPORTED, LT_ERROR_INVALID_LOADER, LT_ERROR_INIT_LOADER, LT_ERROR_REMOVE_LOADER, LT_ERROR_FILE_NOT_FOUND, LT_ERROR_DEPLIB_NOT_FOUND, LT_ERROR_NO_SYMBOLS, LT_ERROR_CANNOT_OPEN, LT_ERROR_CANNOT_CLOSE, LT_ERROR_SYMBOL_NOT_FOUND, LT_ERROR_NO_MEMORY, LT_ERROR_INVALID_HANDLE, LT_ERROR_BUFFER_OVERFLOW, LT_ERROR_INVALID_ERRORCODE, LT_ERROR_SHUTDOWN, LT_ERROR_CLOSE_RESIDENT_MODULE, LT_ERROR_INVALID_MUTEX_ARGS, LT_ERROR_INVALID_POSITION, | |
10345 | #undef LT_ERROR | |
10346 | ||
10347 | LT_ERROR_MAX | |
10348 | }; | |
10349 | ||
10350 | ||
10351 | extern int lt_dladderror (const char *diagnostic); | |
10352 | extern int lt_dlseterror (int errorcode); | |
10353 | # 364 "/usr/include/ltdl.h" 3 4 | |
10354 | ||
10355 | # 84 "../../src/include/platform.h" 2 | |
10356 | ||
10357 | # 1 "/usr/include/errno.h" 1 3 4 | |
10358 | # 28 "/usr/include/errno.h" 3 4 | |
10359 | #define _ERRNO_H 1 | |
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | # 1 "/usr/include/bits/errno.h" 1 3 4 | |
10368 | # 22 "/usr/include/bits/errno.h" 3 4 | |
10369 | #undef EDOM | |
10370 | #undef EILSEQ | |
10371 | #undef ERANGE | |
10372 | # 1 "/usr/include/linux/errno.h" 1 3 4 | |
10373 | ||
10374 | #define _LINUX_ERRNO_H | |
10375 | ||
10376 | # 1 "/usr/include/asm/errno.h" 1 3 4 | |
10377 | ||
10378 | #define _I386_ERRNO_H | |
10379 | ||
10380 | # 1 "/usr/include/asm-generic/errno.h" 1 3 4 | |
10381 | ||
10382 | #define _ASM_GENERIC_ERRNO_H | |
10383 | ||
10384 | # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 | |
10385 | ||
10386 | #define _ASM_GENERIC_ERRNO_BASE_H | |
10387 | ||
10388 | #define EPERM 1 | |
10389 | #define ENOENT 2 | |
10390 | #define ESRCH 3 | |
10391 | #define EINTR 4 | |
10392 | #define EIO 5 | |
10393 | #define ENXIO 6 | |
10394 | #define E2BIG 7 | |
10395 | #define ENOEXEC 8 | |
10396 | #define EBADF 9 | |
10397 | #define ECHILD 10 | |
10398 | #define EAGAIN 11 | |
10399 | #define ENOMEM 12 | |
10400 | #define EACCES 13 | |
10401 | #define EFAULT 14 | |
10402 | #define ENOTBLK 15 | |
10403 | #define EBUSY 16 | |
10404 | #define EEXIST 17 | |
10405 | #define EXDEV 18 | |
10406 | #define ENODEV 19 | |
10407 | #define ENOTDIR 20 | |
10408 | #define EISDIR 21 | |
10409 | #define EINVAL 22 | |
10410 | #define ENFILE 23 | |
10411 | #define EMFILE 24 | |
10412 | #define ENOTTY 25 | |
10413 | #define ETXTBSY 26 | |
10414 | #define EFBIG 27 | |
10415 | #define ENOSPC 28 | |
10416 | #define ESPIPE 29 | |
10417 | #define EROFS 30 | |
10418 | #define EMLINK 31 | |
10419 | #define EPIPE 32 | |
10420 | #define EDOM 33 | |
10421 | #define ERANGE 34 | |
10422 | # 5 "/usr/include/asm-generic/errno.h" 2 3 4 | |
10423 | ||
10424 | #define EDEADLK 35 | |
10425 | #define ENAMETOOLONG 36 | |
10426 | #define ENOLCK 37 | |
10427 | #define ENOSYS 38 | |
10428 | #define ENOTEMPTY 39 | |
10429 | #define ELOOP 40 | |
10430 | #define EWOULDBLOCK EAGAIN | |
10431 | #define ENOMSG 42 | |
10432 | #define EIDRM 43 | |
10433 | #define ECHRNG 44 | |
10434 | #define EL2NSYNC 45 | |
10435 | #define EL3HLT 46 | |
10436 | #define EL3RST 47 | |
10437 | #define ELNRNG 48 | |
10438 | #define EUNATCH 49 | |
10439 | #define ENOCSI 50 | |
10440 | #define EL2HLT 51 | |
10441 | #define EBADE 52 | |
10442 | #define EBADR 53 | |
10443 | #define EXFULL 54 | |
10444 | #define ENOANO 55 | |
10445 | #define EBADRQC 56 | |
10446 | #define EBADSLT 57 | |
10447 | ||
10448 | #define EDEADLOCK EDEADLK | |
10449 | ||
10450 | #define EBFONT 59 | |
10451 | #define ENOSTR 60 | |
10452 | #define ENODATA 61 | |
10453 | #define ETIME 62 | |
10454 | #define ENOSR 63 | |
10455 | #define ENONET 64 | |
10456 | #define ENOPKG 65 | |
10457 | #define EREMOTE 66 | |
10458 | #define ENOLINK 67 | |
10459 | #define EADV 68 | |
10460 | #define ESRMNT 69 | |
10461 | #define ECOMM 70 | |
10462 | #define EPROTO 71 | |
10463 | #define EMULTIHOP 72 | |
10464 | #define EDOTDOT 73 | |
10465 | #define EBADMSG 74 | |
10466 | #define EOVERFLOW 75 | |
10467 | #define ENOTUNIQ 76 | |
10468 | #define EBADFD 77 | |
10469 | #define EREMCHG 78 | |
10470 | #define ELIBACC 79 | |
10471 | #define ELIBBAD 80 | |
10472 | #define ELIBSCN 81 | |
10473 | #define ELIBMAX 82 | |
10474 | #define ELIBEXEC 83 | |
10475 | #define EILSEQ 84 | |
10476 | #define ERESTART 85 | |
10477 | #define ESTRPIPE 86 | |
10478 | #define EUSERS 87 | |
10479 | #define ENOTSOCK 88 | |
10480 | #define EDESTADDRREQ 89 | |
10481 | #define EMSGSIZE 90 | |
10482 | #define EPROTOTYPE 91 | |
10483 | #define ENOPROTOOPT 92 | |
10484 | #define EPROTONOSUPPORT 93 | |
10485 | #define ESOCKTNOSUPPORT 94 | |
10486 | #define EOPNOTSUPP 95 | |
10487 | #define EPFNOSUPPORT 96 | |
10488 | #define EAFNOSUPPORT 97 | |
10489 | #define EADDRINUSE 98 | |
10490 | #define EADDRNOTAVAIL 99 | |
10491 | #define ENETDOWN 100 | |
10492 | #define ENETUNREACH 101 | |
10493 | #define ENETRESET 102 | |
10494 | #define ECONNABORTED 103 | |
10495 | #define ECONNRESET 104 | |
10496 | #define ENOBUFS 105 | |
10497 | #define EISCONN 106 | |
10498 | #define ENOTCONN 107 | |
10499 | #define ESHUTDOWN 108 | |
10500 | #define ETOOMANYREFS 109 | |
10501 | #define ETIMEDOUT 110 | |
10502 | #define ECONNREFUSED 111 | |
10503 | #define EHOSTDOWN 112 | |
10504 | #define EHOSTUNREACH 113 | |
10505 | #define EALREADY 114 | |
10506 | #define EINPROGRESS 115 | |
10507 | #define ESTALE 116 | |
10508 | #define EUCLEAN 117 | |
10509 | #define ENOTNAM 118 | |
10510 | #define ENAVAIL 119 | |
10511 | #define EISNAM 120 | |
10512 | #define EREMOTEIO 121 | |
10513 | #define EDQUOT 122 | |
10514 | ||
10515 | #define ENOMEDIUM 123 | |
10516 | #define EMEDIUMTYPE 124 | |
10517 | #define ECANCELED 125 | |
10518 | #define ENOKEY 126 | |
10519 | #define EKEYEXPIRED 127 | |
10520 | #define EKEYREVOKED 128 | |
10521 | #define EKEYREJECTED 129 | |
10522 | # 5 "/usr/include/asm/errno.h" 2 3 4 | |
10523 | # 5 "/usr/include/linux/errno.h" 2 3 4 | |
10524 | # 26 "/usr/include/bits/errno.h" 2 3 4 | |
10525 | ||
10526 | ||
10527 | #define ENOTSUP EOPNOTSUPP | |
10528 | # 37 "/usr/include/bits/errno.h" 3 4 | |
10529 | #define EOWNERDEAD 130 | |
10530 | #define ENOTRECOVERABLE 131 | |
10531 | ||
10532 | ||
10533 | ||
10534 | ||
10535 | extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
10536 | ||
10537 | ||
10538 | ||
10539 | #define errno (*__errno_location ()) | |
10540 | # 37 "/usr/include/errno.h" 2 3 4 | |
10541 | #undef __need_Emath | |
10542 | # 55 "/usr/include/errno.h" 3 4 | |
10543 | extern char *program_invocation_name, *program_invocation_short_name; | |
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | # 69 "/usr/include/errno.h" 3 4 | |
10549 | typedef int error_t; | |
10550 | #define __error_t_defined 1 | |
10551 | ||
10552 | #undef __need_error_t | |
10553 | # 86 "../../src/include/platform.h" 2 | |
10554 | ||
10555 | ||
10556 | # 1 "/usr/include/unistd.h" 1 3 4 | |
10557 | # 24 "/usr/include/unistd.h" 3 4 | |
10558 | #define _UNISTD_H 1 | |
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | #define _POSIX_VERSION 200112L | |
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | #define _POSIX2_VERSION 200112L | |
10575 | ||
10576 | ||
10577 | ||
10578 | #define _POSIX2_C_BIND 200112L | |
10579 | ||
10580 | ||
10581 | ||
10582 | #define _POSIX2_C_DEV 200112L | |
10583 | ||
10584 | ||
10585 | ||
10586 | #define _POSIX2_SW_DEV 200112L | |
10587 | ||
10588 | ||
10589 | ||
10590 | #define _POSIX2_LOCALEDEF 200112L | |
10591 | ||
10592 | ||
10593 | ||
10594 | #define _XOPEN_VERSION 500 | |
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | #define _XOPEN_XCU_VERSION 4 | |
10601 | ||
10602 | ||
10603 | #define _XOPEN_XPG2 1 | |
10604 | #define _XOPEN_XPG3 1 | |
10605 | #define _XOPEN_XPG4 1 | |
10606 | ||
10607 | ||
10608 | #define _XOPEN_UNIX 1 | |
10609 | ||
10610 | ||
10611 | #define _XOPEN_CRYPT 1 | |
10612 | ||
10613 | ||
10614 | ||
10615 | #define _XOPEN_ENH_I18N 1 | |
10616 | ||
10617 | ||
10618 | #define _XOPEN_LEGACY 1 | |
10619 | # 171 "/usr/include/unistd.h" 3 4 | |
10620 | # 1 "/usr/include/bits/posix_opt.h" 1 3 4 | |
10621 | # 21 "/usr/include/bits/posix_opt.h" 3 4 | |
10622 | #define _POSIX_OPT_H 1 | |
10623 | ||
10624 | ||
10625 | #define _POSIX_JOB_CONTROL 1 | |
10626 | ||
10627 | ||
10628 | #define _POSIX_SAVED_IDS 1 | |
10629 | ||
10630 | ||
10631 | #define _POSIX_PRIORITY_SCHEDULING 200112L | |
10632 | ||
10633 | ||
10634 | #define _POSIX_SYNCHRONIZED_IO 200112L | |
10635 | ||
10636 | ||
10637 | #define _POSIX_FSYNC 200112L | |
10638 | ||
10639 | ||
10640 | #define _POSIX_MAPPED_FILES 200112L | |
10641 | ||
10642 | ||
10643 | #define _POSIX_MEMLOCK 200112L | |
10644 | ||
10645 | ||
10646 | #define _POSIX_MEMLOCK_RANGE 200112L | |
10647 | ||
10648 | ||
10649 | #define _POSIX_MEMORY_PROTECTION 200112L | |
10650 | ||
10651 | ||
10652 | #define _POSIX_CHOWN_RESTRICTED 1 | |
10653 | ||
10654 | ||
10655 | ||
10656 | #define _POSIX_VDISABLE '\0' | |
10657 | ||
10658 | ||
10659 | #define _POSIX_NO_TRUNC 1 | |
10660 | ||
10661 | ||
10662 | #define _XOPEN_REALTIME 1 | |
10663 | ||
10664 | ||
10665 | #define _XOPEN_SHM 1 | |
10666 | ||
10667 | ||
10668 | #define _POSIX_THREADS 200112L | |
10669 | ||
10670 | ||
10671 | #define _POSIX_REENTRANT_FUNCTIONS 1 | |
10672 | #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L | |
10673 | ||
10674 | ||
10675 | #define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L | |
10676 | ||
10677 | ||
10678 | #define _POSIX_THREAD_ATTR_STACKSIZE 200112L | |
10679 | ||
10680 | ||
10681 | #define _POSIX_THREAD_ATTR_STACKADDR 200112L | |
10682 | ||
10683 | ||
10684 | #define _POSIX_SEMAPHORES 200112L | |
10685 | ||
10686 | ||
10687 | #define _POSIX_REALTIME_SIGNALS 200112L | |
10688 | ||
10689 | ||
10690 | #define _POSIX_ASYNCHRONOUS_IO 200112L | |
10691 | #define _POSIX_ASYNC_IO 1 | |
10692 | ||
10693 | #define _LFS_ASYNCHRONOUS_IO 1 | |
10694 | ||
10695 | #define _POSIX_PRIORITIZED_IO 200112L | |
10696 | ||
10697 | ||
10698 | #define _LFS64_ASYNCHRONOUS_IO 1 | |
10699 | ||
10700 | ||
10701 | #define _LFS_LARGEFILE 1 | |
10702 | #define _LFS64_LARGEFILE 1 | |
10703 | #define _LFS64_STDIO 1 | |
10704 | ||
10705 | ||
10706 | #define _POSIX_SHARED_MEMORY_OBJECTS 200112L | |
10707 | ||
10708 | ||
10709 | #define _POSIX_CPUTIME 0 | |
10710 | ||
10711 | ||
10712 | #define _POSIX_THREAD_CPUTIME 0 | |
10713 | ||
10714 | ||
10715 | #define _POSIX_REGEXP 1 | |
10716 | ||
10717 | ||
10718 | #define _POSIX_READER_WRITER_LOCKS 200112L | |
10719 | ||
10720 | ||
10721 | #define _POSIX_SHELL 1 | |
10722 | ||
10723 | ||
10724 | #define _POSIX_TIMEOUTS 200112L | |
10725 | ||
10726 | ||
10727 | #define _POSIX_SPIN_LOCKS 200112L | |
10728 | ||
10729 | ||
10730 | #define _POSIX_SPAWN 200112L | |
10731 | ||
10732 | ||
10733 | #define _POSIX_TIMERS 200112L | |
10734 | ||
10735 | ||
10736 | #define _POSIX_BARRIERS 200112L | |
10737 | ||
10738 | ||
10739 | #define _POSIX_MESSAGE_PASSING 200112L | |
10740 | ||
10741 | ||
10742 | #define _POSIX_THREAD_PROCESS_SHARED 200112L | |
10743 | ||
10744 | ||
10745 | #define _POSIX_MONOTONIC_CLOCK 0 | |
10746 | ||
10747 | ||
10748 | #define _POSIX_CLOCK_SELECTION 200112L | |
10749 | ||
10750 | ||
10751 | #define _POSIX_ADVISORY_INFO 200112L | |
10752 | ||
10753 | ||
10754 | #define _POSIX_IPV6 200112L | |
10755 | ||
10756 | ||
10757 | #define _POSIX_RAW_SOCKETS 200112L | |
10758 | ||
10759 | ||
10760 | #define _POSIX2_CHAR_TERM 200112L | |
10761 | ||
10762 | ||
10763 | #define _POSIX_SPORADIC_SERVER -1 | |
10764 | #define _POSIX_THREAD_SPORADIC_SERVER -1 | |
10765 | ||
10766 | ||
10767 | #define _POSIX_TRACE -1 | |
10768 | #define _POSIX_TRACE_EVENT_FILTER -1 | |
10769 | #define _POSIX_TRACE_INHERIT -1 | |
10770 | #define _POSIX_TRACE_LOG -1 | |
10771 | ||
10772 | ||
10773 | #define _POSIX_TYPED_MEMORY_OBJECTS -1 | |
10774 | ||
10775 | ||
10776 | #define _POSIX_THREAD_PRIO_INHERIT -1 | |
10777 | #define _POSIX_THREAD_PRIO_PROTECT -1 | |
10778 | # 172 "/usr/include/unistd.h" 2 3 4 | |
10779 | ||
10780 | ||
10781 | ||
10782 | # 1 "/usr/include/bits/environments.h" 1 3 4 | |
10783 | # 41 "/usr/include/bits/environments.h" 3 4 | |
10784 | #define _POSIX_V6_ILP32_OFF32 1 | |
10785 | #define _POSIX_V6_ILP32_OFFBIG 1 | |
10786 | #define _XBS5_ILP32_OFF32 1 | |
10787 | #define _XBS5_ILP32_OFFBIG 1 | |
10788 | # 57 "/usr/include/bits/environments.h" 3 4 | |
10789 | #define __ILP32_OFF32_CFLAGS "-m32" | |
10790 | #define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" | |
10791 | #define __ILP32_OFF32_LDFLAGS "-m32" | |
10792 | #define __ILP32_OFFBIG_LDFLAGS "-m32" | |
10793 | #define __LP64_OFF64_CFLAGS "-m64" | |
10794 | #define __LP64_OFF64_LDFLAGS "-m64" | |
10795 | # 176 "/usr/include/unistd.h" 2 3 4 | |
10796 | ||
10797 | ||
10798 | ||
10799 | #define STDIN_FILENO 0 | |
10800 | #define STDOUT_FILENO 1 | |
10801 | #define STDERR_FILENO 2 | |
10802 | # 193 "/usr/include/unistd.h" 3 4 | |
10803 | #define __need_size_t | |
10804 | #define __need_NULL | |
10805 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
10806 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
10807 | #undef __need_size_t | |
10808 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
10809 | #undef NULL | |
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | #define NULL ((void *)0) | |
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | #undef __need_NULL | |
10821 | # 196 "/usr/include/unistd.h" 2 3 4 | |
10822 | # 250 "/usr/include/unistd.h" 3 4 | |
10823 | #define R_OK 4 | |
10824 | #define W_OK 2 | |
10825 | #define X_OK 1 | |
10826 | #define F_OK 0 | |
10827 | ||
10828 | ||
10829 | extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | extern int euidaccess (__const char *__name, int __type) | |
10835 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
10836 | ||
10837 | ||
10838 | extern int eaccess (__const char *__name, int __type) | |
10839 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | extern int faccessat (int __fd, __const char *__file, int __type, int __flag) | |
10847 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; | |
10848 | # 287 "/usr/include/unistd.h" 3 4 | |
10849 | #define L_SET SEEK_SET | |
10850 | #define L_INCR SEEK_CUR | |
10851 | #define L_XTND SEEK_END | |
10852 | # 302 "/usr/include/unistd.h" 3 4 | |
10853 | extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) __asm__ ("" "lseek64") __attribute__ ((__nothrow__)); | |
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) | |
10862 | __attribute__ ((__nothrow__)); | |
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | extern int close (int __fd); | |
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ; | |
10877 | ||
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | extern ssize_t write (int __fd, __const void *__buf, size_t __n) ; | |
10883 | # 353 "/usr/include/unistd.h" 3 4 | |
10884 | extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") ; | |
10885 | ||
10886 | ||
10887 | extern ssize_t pwrite (int __fd, __const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") ; | |
10888 | # 369 "/usr/include/unistd.h" 3 4 | |
10889 | extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, | |
10890 | __off64_t __offset) ; | |
10891 | ||
10892 | ||
10893 | extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n, | |
10894 | __off64_t __offset) ; | |
10895 | ||
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__)) ; | |
10903 | # 391 "/usr/include/unistd.h" 3 4 | |
10904 | extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__)); | |
10905 | # 403 "/usr/include/unistd.h" 3 4 | |
10906 | extern unsigned int sleep (unsigned int __seconds); | |
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) | |
10914 | __attribute__ ((__nothrow__)); | |
10915 | ||
10916 | ||
10917 | ||
10918 | ||
10919 | ||
10920 | ||
10921 | extern int usleep (__useconds_t __useconds); | |
10922 | # 427 "/usr/include/unistd.h" 3 4 | |
10923 | extern int pause (void); | |
10924 | ||
10925 | ||
10926 | ||
10927 | extern int chown (__const char *__file, __uid_t __owner, __gid_t __group) | |
10928 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
10929 | ||
10930 | ||
10931 | ||
10932 | extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)) ; | |
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group) | |
10938 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | extern int fchownat (int __fd, __const char *__file, __uid_t __owner, | |
10946 | __gid_t __group, int __flag) | |
10947 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; | |
10948 | ||
10949 | ||
10950 | ||
10951 | extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
10952 | ||
10953 | ||
10954 | ||
10955 | extern int fchdir (int __fd) __attribute__ ((__nothrow__)) ; | |
10956 | # 469 "/usr/include/unistd.h" 3 4 | |
10957 | extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__)) ; | |
10958 | ||
10959 | ||
10960 | ||
10961 | ||
10962 | ||
10963 | extern char *get_current_dir_name (void) __attribute__ ((__nothrow__)); | |
10964 | ||
10965 | ||
10966 | ||
10967 | ||
10968 | ||
10969 | ||
10970 | extern char *getwd (char *__buf) | |
10971 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ; | |
10972 | ||
10973 | ||
10974 | ||
10975 | ||
10976 | extern int dup (int __fd) __attribute__ ((__nothrow__)) ; | |
10977 | ||
10978 | ||
10979 | extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__)); | |
10980 | ||
10981 | ||
10982 | extern char **__environ; | |
10983 | ||
10984 | extern char **environ; | |
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | extern int execve (__const char *__path, char *__const __argv[], | |
10991 | char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
10992 | ||
10993 | ||
10994 | ||
10995 | ||
10996 | extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[]) | |
10997 | __attribute__ ((__nothrow__)); | |
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | extern int execv (__const char *__path, char *__const __argv[]) | |
11003 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11004 | ||
11005 | ||
11006 | ||
11007 | extern int execle (__const char *__path, __const char *__arg, ...) | |
11008 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11009 | ||
11010 | ||
11011 | ||
11012 | extern int execl (__const char *__path, __const char *__arg, ...) | |
11013 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11014 | ||
11015 | ||
11016 | ||
11017 | extern int execvp (__const char *__file, char *__const __argv[]) | |
11018 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | extern int execlp (__const char *__file, __const char *__arg, ...) | |
11024 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | extern int nice (int __inc) __attribute__ ((__nothrow__)) ; | |
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | extern void _exit (int __status) __attribute__ ((__noreturn__)); | |
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | # 1 "/usr/include/bits/confname.h" 1 3 4 | |
11041 | # 26 "/usr/include/bits/confname.h" 3 4 | |
11042 | enum | |
11043 | { | |
11044 | _PC_LINK_MAX, | |
11045 | #define _PC_LINK_MAX _PC_LINK_MAX | |
11046 | _PC_MAX_CANON, | |
11047 | #define _PC_MAX_CANON _PC_MAX_CANON | |
11048 | _PC_MAX_INPUT, | |
11049 | #define _PC_MAX_INPUT _PC_MAX_INPUT | |
11050 | _PC_NAME_MAX, | |
11051 | #define _PC_NAME_MAX _PC_NAME_MAX | |
11052 | _PC_PATH_MAX, | |
11053 | #define _PC_PATH_MAX _PC_PATH_MAX | |
11054 | _PC_PIPE_BUF, | |
11055 | #define _PC_PIPE_BUF _PC_PIPE_BUF | |
11056 | _PC_CHOWN_RESTRICTED, | |
11057 | #define _PC_CHOWN_RESTRICTED _PC_CHOWN_RESTRICTED | |
11058 | _PC_NO_TRUNC, | |
11059 | #define _PC_NO_TRUNC _PC_NO_TRUNC | |
11060 | _PC_VDISABLE, | |
11061 | #define _PC_VDISABLE _PC_VDISABLE | |
11062 | _PC_SYNC_IO, | |
11063 | #define _PC_SYNC_IO _PC_SYNC_IO | |
11064 | _PC_ASYNC_IO, | |
11065 | #define _PC_ASYNC_IO _PC_ASYNC_IO | |
11066 | _PC_PRIO_IO, | |
11067 | #define _PC_PRIO_IO _PC_PRIO_IO | |
11068 | _PC_SOCK_MAXBUF, | |
11069 | #define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF | |
11070 | _PC_FILESIZEBITS, | |
11071 | #define _PC_FILESIZEBITS _PC_FILESIZEBITS | |
11072 | _PC_REC_INCR_XFER_SIZE, | |
11073 | #define _PC_REC_INCR_XFER_SIZE _PC_REC_INCR_XFER_SIZE | |
11074 | _PC_REC_MAX_XFER_SIZE, | |
11075 | #define _PC_REC_MAX_XFER_SIZE _PC_REC_MAX_XFER_SIZE | |
11076 | _PC_REC_MIN_XFER_SIZE, | |
11077 | #define _PC_REC_MIN_XFER_SIZE _PC_REC_MIN_XFER_SIZE | |
11078 | _PC_REC_XFER_ALIGN, | |
11079 | #define _PC_REC_XFER_ALIGN _PC_REC_XFER_ALIGN | |
11080 | _PC_ALLOC_SIZE_MIN, | |
11081 | #define _PC_ALLOC_SIZE_MIN _PC_ALLOC_SIZE_MIN | |
11082 | _PC_SYMLINK_MAX, | |
11083 | #define _PC_SYMLINK_MAX _PC_SYMLINK_MAX | |
11084 | _PC_2_SYMLINKS | |
11085 | #define _PC_2_SYMLINKS _PC_2_SYMLINKS | |
11086 | }; | |
11087 | ||
11088 | ||
11089 | enum | |
11090 | { | |
11091 | _SC_ARG_MAX, | |
11092 | #define _SC_ARG_MAX _SC_ARG_MAX | |
11093 | _SC_CHILD_MAX, | |
11094 | #define _SC_CHILD_MAX _SC_CHILD_MAX | |
11095 | _SC_CLK_TCK, | |
11096 | #define _SC_CLK_TCK _SC_CLK_TCK | |
11097 | _SC_NGROUPS_MAX, | |
11098 | #define _SC_NGROUPS_MAX _SC_NGROUPS_MAX | |
11099 | _SC_OPEN_MAX, | |
11100 | #define _SC_OPEN_MAX _SC_OPEN_MAX | |
11101 | _SC_STREAM_MAX, | |
11102 | #define _SC_STREAM_MAX _SC_STREAM_MAX | |
11103 | _SC_TZNAME_MAX, | |
11104 | #define _SC_TZNAME_MAX _SC_TZNAME_MAX | |
11105 | _SC_JOB_CONTROL, | |
11106 | #define _SC_JOB_CONTROL _SC_JOB_CONTROL | |
11107 | _SC_SAVED_IDS, | |
11108 | #define _SC_SAVED_IDS _SC_SAVED_IDS | |
11109 | _SC_REALTIME_SIGNALS, | |
11110 | #define _SC_REALTIME_SIGNALS _SC_REALTIME_SIGNALS | |
11111 | _SC_PRIORITY_SCHEDULING, | |
11112 | #define _SC_PRIORITY_SCHEDULING _SC_PRIORITY_SCHEDULING | |
11113 | _SC_TIMERS, | |
11114 | #define _SC_TIMERS _SC_TIMERS | |
11115 | _SC_ASYNCHRONOUS_IO, | |
11116 | #define _SC_ASYNCHRONOUS_IO _SC_ASYNCHRONOUS_IO | |
11117 | _SC_PRIORITIZED_IO, | |
11118 | #define _SC_PRIORITIZED_IO _SC_PRIORITIZED_IO | |
11119 | _SC_SYNCHRONIZED_IO, | |
11120 | #define _SC_SYNCHRONIZED_IO _SC_SYNCHRONIZED_IO | |
11121 | _SC_FSYNC, | |
11122 | #define _SC_FSYNC _SC_FSYNC | |
11123 | _SC_MAPPED_FILES, | |
11124 | #define _SC_MAPPED_FILES _SC_MAPPED_FILES | |
11125 | _SC_MEMLOCK, | |
11126 | #define _SC_MEMLOCK _SC_MEMLOCK | |
11127 | _SC_MEMLOCK_RANGE, | |
11128 | #define _SC_MEMLOCK_RANGE _SC_MEMLOCK_RANGE | |
11129 | _SC_MEMORY_PROTECTION, | |
11130 | #define _SC_MEMORY_PROTECTION _SC_MEMORY_PROTECTION | |
11131 | _SC_MESSAGE_PASSING, | |
11132 | #define _SC_MESSAGE_PASSING _SC_MESSAGE_PASSING | |
11133 | _SC_SEMAPHORES, | |
11134 | #define _SC_SEMAPHORES _SC_SEMAPHORES | |
11135 | _SC_SHARED_MEMORY_OBJECTS, | |
11136 | #define _SC_SHARED_MEMORY_OBJECTS _SC_SHARED_MEMORY_OBJECTS | |
11137 | _SC_AIO_LISTIO_MAX, | |
11138 | #define _SC_AIO_LISTIO_MAX _SC_AIO_LISTIO_MAX | |
11139 | _SC_AIO_MAX, | |
11140 | #define _SC_AIO_MAX _SC_AIO_MAX | |
11141 | _SC_AIO_PRIO_DELTA_MAX, | |
11142 | #define _SC_AIO_PRIO_DELTA_MAX _SC_AIO_PRIO_DELTA_MAX | |
11143 | _SC_DELAYTIMER_MAX, | |
11144 | #define _SC_DELAYTIMER_MAX _SC_DELAYTIMER_MAX | |
11145 | _SC_MQ_OPEN_MAX, | |
11146 | #define _SC_MQ_OPEN_MAX _SC_MQ_OPEN_MAX | |
11147 | _SC_MQ_PRIO_MAX, | |
11148 | #define _SC_MQ_PRIO_MAX _SC_MQ_PRIO_MAX | |
11149 | _SC_VERSION, | |
11150 | #define _SC_VERSION _SC_VERSION | |
11151 | _SC_PAGESIZE, | |
11152 | #define _SC_PAGESIZE _SC_PAGESIZE | |
11153 | #define _SC_PAGE_SIZE _SC_PAGESIZE | |
11154 | _SC_RTSIG_MAX, | |
11155 | #define _SC_RTSIG_MAX _SC_RTSIG_MAX | |
11156 | _SC_SEM_NSEMS_MAX, | |
11157 | #define _SC_SEM_NSEMS_MAX _SC_SEM_NSEMS_MAX | |
11158 | _SC_SEM_VALUE_MAX, | |
11159 | #define _SC_SEM_VALUE_MAX _SC_SEM_VALUE_MAX | |
11160 | _SC_SIGQUEUE_MAX, | |
11161 | #define _SC_SIGQUEUE_MAX _SC_SIGQUEUE_MAX | |
11162 | _SC_TIMER_MAX, | |
11163 | #define _SC_TIMER_MAX _SC_TIMER_MAX | |
11164 | ||
11165 | ||
11166 | ||
11167 | _SC_BC_BASE_MAX, | |
11168 | #define _SC_BC_BASE_MAX _SC_BC_BASE_MAX | |
11169 | _SC_BC_DIM_MAX, | |
11170 | #define _SC_BC_DIM_MAX _SC_BC_DIM_MAX | |
11171 | _SC_BC_SCALE_MAX, | |
11172 | #define _SC_BC_SCALE_MAX _SC_BC_SCALE_MAX | |
11173 | _SC_BC_STRING_MAX, | |
11174 | #define _SC_BC_STRING_MAX _SC_BC_STRING_MAX | |
11175 | _SC_COLL_WEIGHTS_MAX, | |
11176 | #define _SC_COLL_WEIGHTS_MAX _SC_COLL_WEIGHTS_MAX | |
11177 | _SC_EQUIV_CLASS_MAX, | |
11178 | #define _SC_EQUIV_CLASS_MAX _SC_EQUIV_CLASS_MAX | |
11179 | _SC_EXPR_NEST_MAX, | |
11180 | #define _SC_EXPR_NEST_MAX _SC_EXPR_NEST_MAX | |
11181 | _SC_LINE_MAX, | |
11182 | #define _SC_LINE_MAX _SC_LINE_MAX | |
11183 | _SC_RE_DUP_MAX, | |
11184 | #define _SC_RE_DUP_MAX _SC_RE_DUP_MAX | |
11185 | _SC_CHARCLASS_NAME_MAX, | |
11186 | #define _SC_CHARCLASS_NAME_MAX _SC_CHARCLASS_NAME_MAX | |
11187 | ||
11188 | _SC_2_VERSION, | |
11189 | #define _SC_2_VERSION _SC_2_VERSION | |
11190 | _SC_2_C_BIND, | |
11191 | #define _SC_2_C_BIND _SC_2_C_BIND | |
11192 | _SC_2_C_DEV, | |
11193 | #define _SC_2_C_DEV _SC_2_C_DEV | |
11194 | _SC_2_FORT_DEV, | |
11195 | #define _SC_2_FORT_DEV _SC_2_FORT_DEV | |
11196 | _SC_2_FORT_RUN, | |
11197 | #define _SC_2_FORT_RUN _SC_2_FORT_RUN | |
11198 | _SC_2_SW_DEV, | |
11199 | #define _SC_2_SW_DEV _SC_2_SW_DEV | |
11200 | _SC_2_LOCALEDEF, | |
11201 | #define _SC_2_LOCALEDEF _SC_2_LOCALEDEF | |
11202 | ||
11203 | _SC_PII, | |
11204 | #define _SC_PII _SC_PII | |
11205 | _SC_PII_XTI, | |
11206 | #define _SC_PII_XTI _SC_PII_XTI | |
11207 | _SC_PII_SOCKET, | |
11208 | #define _SC_PII_SOCKET _SC_PII_SOCKET | |
11209 | _SC_PII_INTERNET, | |
11210 | #define _SC_PII_INTERNET _SC_PII_INTERNET | |
11211 | _SC_PII_OSI, | |
11212 | #define _SC_PII_OSI _SC_PII_OSI | |
11213 | _SC_POLL, | |
11214 | #define _SC_POLL _SC_POLL | |
11215 | _SC_SELECT, | |
11216 | #define _SC_SELECT _SC_SELECT | |
11217 | _SC_UIO_MAXIOV, | |
11218 | #define _SC_UIO_MAXIOV _SC_UIO_MAXIOV | |
11219 | _SC_IOV_MAX = _SC_UIO_MAXIOV, | |
11220 | #define _SC_IOV_MAX _SC_IOV_MAX | |
11221 | _SC_PII_INTERNET_STREAM, | |
11222 | #define _SC_PII_INTERNET_STREAM _SC_PII_INTERNET_STREAM | |
11223 | _SC_PII_INTERNET_DGRAM, | |
11224 | #define _SC_PII_INTERNET_DGRAM _SC_PII_INTERNET_DGRAM | |
11225 | _SC_PII_OSI_COTS, | |
11226 | #define _SC_PII_OSI_COTS _SC_PII_OSI_COTS | |
11227 | _SC_PII_OSI_CLTS, | |
11228 | #define _SC_PII_OSI_CLTS _SC_PII_OSI_CLTS | |
11229 | _SC_PII_OSI_M, | |
11230 | #define _SC_PII_OSI_M _SC_PII_OSI_M | |
11231 | _SC_T_IOV_MAX, | |
11232 | #define _SC_T_IOV_MAX _SC_T_IOV_MAX | |
11233 | ||
11234 | ||
11235 | _SC_THREADS, | |
11236 | #define _SC_THREADS _SC_THREADS | |
11237 | _SC_THREAD_SAFE_FUNCTIONS, | |
11238 | #define _SC_THREAD_SAFE_FUNCTIONS _SC_THREAD_SAFE_FUNCTIONS | |
11239 | _SC_GETGR_R_SIZE_MAX, | |
11240 | #define _SC_GETGR_R_SIZE_MAX _SC_GETGR_R_SIZE_MAX | |
11241 | _SC_GETPW_R_SIZE_MAX, | |
11242 | #define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX | |
11243 | _SC_LOGIN_NAME_MAX, | |
11244 | #define _SC_LOGIN_NAME_MAX _SC_LOGIN_NAME_MAX | |
11245 | _SC_TTY_NAME_MAX, | |
11246 | #define _SC_TTY_NAME_MAX _SC_TTY_NAME_MAX | |
11247 | _SC_THREAD_DESTRUCTOR_ITERATIONS, | |
11248 | #define _SC_THREAD_DESTRUCTOR_ITERATIONS _SC_THREAD_DESTRUCTOR_ITERATIONS | |
11249 | _SC_THREAD_KEYS_MAX, | |
11250 | #define _SC_THREAD_KEYS_MAX _SC_THREAD_KEYS_MAX | |
11251 | _SC_THREAD_STACK_MIN, | |
11252 | #define _SC_THREAD_STACK_MIN _SC_THREAD_STACK_MIN | |
11253 | _SC_THREAD_THREADS_MAX, | |
11254 | #define _SC_THREAD_THREADS_MAX _SC_THREAD_THREADS_MAX | |
11255 | _SC_THREAD_ATTR_STACKADDR, | |
11256 | #define _SC_THREAD_ATTR_STACKADDR _SC_THREAD_ATTR_STACKADDR | |
11257 | _SC_THREAD_ATTR_STACKSIZE, | |
11258 | #define _SC_THREAD_ATTR_STACKSIZE _SC_THREAD_ATTR_STACKSIZE | |
11259 | _SC_THREAD_PRIORITY_SCHEDULING, | |
11260 | #define _SC_THREAD_PRIORITY_SCHEDULING _SC_THREAD_PRIORITY_SCHEDULING | |
11261 | _SC_THREAD_PRIO_INHERIT, | |
11262 | #define _SC_THREAD_PRIO_INHERIT _SC_THREAD_PRIO_INHERIT | |
11263 | _SC_THREAD_PRIO_PROTECT, | |
11264 | #define _SC_THREAD_PRIO_PROTECT _SC_THREAD_PRIO_PROTECT | |
11265 | _SC_THREAD_PROCESS_SHARED, | |
11266 | #define _SC_THREAD_PROCESS_SHARED _SC_THREAD_PROCESS_SHARED | |
11267 | ||
11268 | _SC_NPROCESSORS_CONF, | |
11269 | #define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF | |
11270 | _SC_NPROCESSORS_ONLN, | |
11271 | #define _SC_NPROCESSORS_ONLN _SC_NPROCESSORS_ONLN | |
11272 | _SC_PHYS_PAGES, | |
11273 | #define _SC_PHYS_PAGES _SC_PHYS_PAGES | |
11274 | _SC_AVPHYS_PAGES, | |
11275 | #define _SC_AVPHYS_PAGES _SC_AVPHYS_PAGES | |
11276 | _SC_ATEXIT_MAX, | |
11277 | #define _SC_ATEXIT_MAX _SC_ATEXIT_MAX | |
11278 | _SC_PASS_MAX, | |
11279 | #define _SC_PASS_MAX _SC_PASS_MAX | |
11280 | ||
11281 | _SC_XOPEN_VERSION, | |
11282 | #define _SC_XOPEN_VERSION _SC_XOPEN_VERSION | |
11283 | _SC_XOPEN_XCU_VERSION, | |
11284 | #define _SC_XOPEN_XCU_VERSION _SC_XOPEN_XCU_VERSION | |
11285 | _SC_XOPEN_UNIX, | |
11286 | #define _SC_XOPEN_UNIX _SC_XOPEN_UNIX | |
11287 | _SC_XOPEN_CRYPT, | |
11288 | #define _SC_XOPEN_CRYPT _SC_XOPEN_CRYPT | |
11289 | _SC_XOPEN_ENH_I18N, | |
11290 | #define _SC_XOPEN_ENH_I18N _SC_XOPEN_ENH_I18N | |
11291 | _SC_XOPEN_SHM, | |
11292 | #define _SC_XOPEN_SHM _SC_XOPEN_SHM | |
11293 | ||
11294 | _SC_2_CHAR_TERM, | |
11295 | #define _SC_2_CHAR_TERM _SC_2_CHAR_TERM | |
11296 | _SC_2_C_VERSION, | |
11297 | #define _SC_2_C_VERSION _SC_2_C_VERSION | |
11298 | _SC_2_UPE, | |
11299 | #define _SC_2_UPE _SC_2_UPE | |
11300 | ||
11301 | _SC_XOPEN_XPG2, | |
11302 | #define _SC_XOPEN_XPG2 _SC_XOPEN_XPG2 | |
11303 | _SC_XOPEN_XPG3, | |
11304 | #define _SC_XOPEN_XPG3 _SC_XOPEN_XPG3 | |
11305 | _SC_XOPEN_XPG4, | |
11306 | #define _SC_XOPEN_XPG4 _SC_XOPEN_XPG4 | |
11307 | ||
11308 | _SC_CHAR_BIT, | |
11309 | #define _SC_CHAR_BIT _SC_CHAR_BIT | |
11310 | _SC_CHAR_MAX, | |
11311 | #define _SC_CHAR_MAX _SC_CHAR_MAX | |
11312 | _SC_CHAR_MIN, | |
11313 | #define _SC_CHAR_MIN _SC_CHAR_MIN | |
11314 | _SC_INT_MAX, | |
11315 | #define _SC_INT_MAX _SC_INT_MAX | |
11316 | _SC_INT_MIN, | |
11317 | #define _SC_INT_MIN _SC_INT_MIN | |
11318 | _SC_LONG_BIT, | |
11319 | #define _SC_LONG_BIT _SC_LONG_BIT | |
11320 | _SC_WORD_BIT, | |
11321 | #define _SC_WORD_BIT _SC_WORD_BIT | |
11322 | _SC_MB_LEN_MAX, | |
11323 | #define _SC_MB_LEN_MAX _SC_MB_LEN_MAX | |
11324 | _SC_NZERO, | |
11325 | #define _SC_NZERO _SC_NZERO | |
11326 | _SC_SSIZE_MAX, | |
11327 | #define _SC_SSIZE_MAX _SC_SSIZE_MAX | |
11328 | _SC_SCHAR_MAX, | |
11329 | #define _SC_SCHAR_MAX _SC_SCHAR_MAX | |
11330 | _SC_SCHAR_MIN, | |
11331 | #define _SC_SCHAR_MIN _SC_SCHAR_MIN | |
11332 | _SC_SHRT_MAX, | |
11333 | #define _SC_SHRT_MAX _SC_SHRT_MAX | |
11334 | _SC_SHRT_MIN, | |
11335 | #define _SC_SHRT_MIN _SC_SHRT_MIN | |
11336 | _SC_UCHAR_MAX, | |
11337 | #define _SC_UCHAR_MAX _SC_UCHAR_MAX | |
11338 | _SC_UINT_MAX, | |
11339 | #define _SC_UINT_MAX _SC_UINT_MAX | |
11340 | _SC_ULONG_MAX, | |
11341 | #define _SC_ULONG_MAX _SC_ULONG_MAX | |
11342 | _SC_USHRT_MAX, | |
11343 | #define _SC_USHRT_MAX _SC_USHRT_MAX | |
11344 | ||
11345 | _SC_NL_ARGMAX, | |
11346 | #define _SC_NL_ARGMAX _SC_NL_ARGMAX | |
11347 | _SC_NL_LANGMAX, | |
11348 | #define _SC_NL_LANGMAX _SC_NL_LANGMAX | |
11349 | _SC_NL_MSGMAX, | |
11350 | #define _SC_NL_MSGMAX _SC_NL_MSGMAX | |
11351 | _SC_NL_NMAX, | |
11352 | #define _SC_NL_NMAX _SC_NL_NMAX | |
11353 | _SC_NL_SETMAX, | |
11354 | #define _SC_NL_SETMAX _SC_NL_SETMAX | |
11355 | _SC_NL_TEXTMAX, | |
11356 | #define _SC_NL_TEXTMAX _SC_NL_TEXTMAX | |
11357 | ||
11358 | _SC_XBS5_ILP32_OFF32, | |
11359 | #define _SC_XBS5_ILP32_OFF32 _SC_XBS5_ILP32_OFF32 | |
11360 | _SC_XBS5_ILP32_OFFBIG, | |
11361 | #define _SC_XBS5_ILP32_OFFBIG _SC_XBS5_ILP32_OFFBIG | |
11362 | _SC_XBS5_LP64_OFF64, | |
11363 | #define _SC_XBS5_LP64_OFF64 _SC_XBS5_LP64_OFF64 | |
11364 | _SC_XBS5_LPBIG_OFFBIG, | |
11365 | #define _SC_XBS5_LPBIG_OFFBIG _SC_XBS5_LPBIG_OFFBIG | |
11366 | ||
11367 | _SC_XOPEN_LEGACY, | |
11368 | #define _SC_XOPEN_LEGACY _SC_XOPEN_LEGACY | |
11369 | _SC_XOPEN_REALTIME, | |
11370 | #define _SC_XOPEN_REALTIME _SC_XOPEN_REALTIME | |
11371 | _SC_XOPEN_REALTIME_THREADS, | |
11372 | #define _SC_XOPEN_REALTIME_THREADS _SC_XOPEN_REALTIME_THREADS | |
11373 | ||
11374 | _SC_ADVISORY_INFO, | |
11375 | #define _SC_ADVISORY_INFO _SC_ADVISORY_INFO | |
11376 | _SC_BARRIERS, | |
11377 | #define _SC_BARRIERS _SC_BARRIERS | |
11378 | _SC_BASE, | |
11379 | #define _SC_BASE _SC_BASE | |
11380 | _SC_C_LANG_SUPPORT, | |
11381 | #define _SC_C_LANG_SUPPORT _SC_C_LANG_SUPPORT | |
11382 | _SC_C_LANG_SUPPORT_R, | |
11383 | #define _SC_C_LANG_SUPPORT_R _SC_C_LANG_SUPPORT_R | |
11384 | _SC_CLOCK_SELECTION, | |
11385 | #define _SC_CLOCK_SELECTION _SC_CLOCK_SELECTION | |
11386 | _SC_CPUTIME, | |
11387 | #define _SC_CPUTIME _SC_CPUTIME | |
11388 | _SC_THREAD_CPUTIME, | |
11389 | #define _SC_THREAD_CPUTIME _SC_THREAD_CPUTIME | |
11390 | _SC_DEVICE_IO, | |
11391 | #define _SC_DEVICE_IO _SC_DEVICE_IO | |
11392 | _SC_DEVICE_SPECIFIC, | |
11393 | #define _SC_DEVICE_SPECIFIC _SC_DEVICE_SPECIFIC | |
11394 | _SC_DEVICE_SPECIFIC_R, | |
11395 | #define _SC_DEVICE_SPECIFIC_R _SC_DEVICE_SPECIFIC_R | |
11396 | _SC_FD_MGMT, | |
11397 | #define _SC_FD_MGMT _SC_FD_MGMT | |
11398 | _SC_FIFO, | |
11399 | #define _SC_FIFO _SC_FIFO | |
11400 | _SC_PIPE, | |
11401 | #define _SC_PIPE _SC_PIPE | |
11402 | _SC_FILE_ATTRIBUTES, | |
11403 | #define _SC_FILE_ATTRIBUTES _SC_FILE_ATTRIBUTES | |
11404 | _SC_FILE_LOCKING, | |
11405 | #define _SC_FILE_LOCKING _SC_FILE_LOCKING | |
11406 | _SC_FILE_SYSTEM, | |
11407 | #define _SC_FILE_SYSTEM _SC_FILE_SYSTEM | |
11408 | _SC_MONOTONIC_CLOCK, | |
11409 | #define _SC_MONOTONIC_CLOCK _SC_MONOTONIC_CLOCK | |
11410 | _SC_MULTI_PROCESS, | |
11411 | #define _SC_MULTI_PROCESS _SC_MULTI_PROCESS | |
11412 | _SC_SINGLE_PROCESS, | |
11413 | #define _SC_SINGLE_PROCESS _SC_SINGLE_PROCESS | |
11414 | _SC_NETWORKING, | |
11415 | #define _SC_NETWORKING _SC_NETWORKING | |
11416 | _SC_READER_WRITER_LOCKS, | |
11417 | #define _SC_READER_WRITER_LOCKS _SC_READER_WRITER_LOCKS | |
11418 | _SC_SPIN_LOCKS, | |
11419 | #define _SC_SPIN_LOCKS _SC_SPIN_LOCKS | |
11420 | _SC_REGEXP, | |
11421 | #define _SC_REGEXP _SC_REGEXP | |
11422 | _SC_REGEX_VERSION, | |
11423 | #define _SC_REGEX_VERSION _SC_REGEX_VERSION | |
11424 | _SC_SHELL, | |
11425 | #define _SC_SHELL _SC_SHELL | |
11426 | _SC_SIGNALS, | |
11427 | #define _SC_SIGNALS _SC_SIGNALS | |
11428 | _SC_SPAWN, | |
11429 | #define _SC_SPAWN _SC_SPAWN | |
11430 | _SC_SPORADIC_SERVER, | |
11431 | #define _SC_SPORADIC_SERVER _SC_SPORADIC_SERVER | |
11432 | _SC_THREAD_SPORADIC_SERVER, | |
11433 | #define _SC_THREAD_SPORADIC_SERVER _SC_THREAD_SPORADIC_SERVER | |
11434 | _SC_SYSTEM_DATABASE, | |
11435 | #define _SC_SYSTEM_DATABASE _SC_SYSTEM_DATABASE | |
11436 | _SC_SYSTEM_DATABASE_R, | |
11437 | #define _SC_SYSTEM_DATABASE_R _SC_SYSTEM_DATABASE_R | |
11438 | _SC_TIMEOUTS, | |
11439 | #define _SC_TIMEOUTS _SC_TIMEOUTS | |
11440 | _SC_TYPED_MEMORY_OBJECTS, | |
11441 | #define _SC_TYPED_MEMORY_OBJECTS _SC_TYPED_MEMORY_OBJECTS | |
11442 | _SC_USER_GROUPS, | |
11443 | #define _SC_USER_GROUPS _SC_USER_GROUPS | |
11444 | _SC_USER_GROUPS_R, | |
11445 | #define _SC_USER_GROUPS_R _SC_USER_GROUPS_R | |
11446 | _SC_2_PBS, | |
11447 | #define _SC_2_PBS _SC_2_PBS | |
11448 | _SC_2_PBS_ACCOUNTING, | |
11449 | #define _SC_2_PBS_ACCOUNTING _SC_2_PBS_ACCOUNTING | |
11450 | _SC_2_PBS_LOCATE, | |
11451 | #define _SC_2_PBS_LOCATE _SC_2_PBS_LOCATE | |
11452 | _SC_2_PBS_MESSAGE, | |
11453 | #define _SC_2_PBS_MESSAGE _SC_2_PBS_MESSAGE | |
11454 | _SC_2_PBS_TRACK, | |
11455 | #define _SC_2_PBS_TRACK _SC_2_PBS_TRACK | |
11456 | _SC_SYMLOOP_MAX, | |
11457 | #define _SC_SYMLOOP_MAX _SC_SYMLOOP_MAX | |
11458 | _SC_STREAMS, | |
11459 | #define _SC_STREAMS _SC_STREAMS | |
11460 | _SC_2_PBS_CHECKPOINT, | |
11461 | #define _SC_2_PBS_CHECKPOINT _SC_2_PBS_CHECKPOINT | |
11462 | ||
11463 | _SC_V6_ILP32_OFF32, | |
11464 | #define _SC_V6_ILP32_OFF32 _SC_V6_ILP32_OFF32 | |
11465 | _SC_V6_ILP32_OFFBIG, | |
11466 | #define _SC_V6_ILP32_OFFBIG _SC_V6_ILP32_OFFBIG | |
11467 | _SC_V6_LP64_OFF64, | |
11468 | #define _SC_V6_LP64_OFF64 _SC_V6_LP64_OFF64 | |
11469 | _SC_V6_LPBIG_OFFBIG, | |
11470 | #define _SC_V6_LPBIG_OFFBIG _SC_V6_LPBIG_OFFBIG | |
11471 | ||
11472 | _SC_HOST_NAME_MAX, | |
11473 | #define _SC_HOST_NAME_MAX _SC_HOST_NAME_MAX | |
11474 | _SC_TRACE, | |
11475 | #define _SC_TRACE _SC_TRACE | |
11476 | _SC_TRACE_EVENT_FILTER, | |
11477 | #define _SC_TRACE_EVENT_FILTER _SC_TRACE_EVENT_FILTER | |
11478 | _SC_TRACE_INHERIT, | |
11479 | #define _SC_TRACE_INHERIT _SC_TRACE_INHERIT | |
11480 | _SC_TRACE_LOG, | |
11481 | #define _SC_TRACE_LOG _SC_TRACE_LOG | |
11482 | ||
11483 | _SC_LEVEL1_ICACHE_SIZE, | |
11484 | #define _SC_LEVEL1_ICACHE_SIZE _SC_LEVEL1_ICACHE_SIZE | |
11485 | _SC_LEVEL1_ICACHE_ASSOC, | |
11486 | #define _SC_LEVEL1_ICACHE_ASSOC _SC_LEVEL1_ICACHE_ASSOC | |
11487 | _SC_LEVEL1_ICACHE_LINESIZE, | |
11488 | #define _SC_LEVEL1_ICACHE_LINESIZE _SC_LEVEL1_ICACHE_LINESIZE | |
11489 | _SC_LEVEL1_DCACHE_SIZE, | |
11490 | #define _SC_LEVEL1_DCACHE_SIZE _SC_LEVEL1_DCACHE_SIZE | |
11491 | _SC_LEVEL1_DCACHE_ASSOC, | |
11492 | #define _SC_LEVEL1_DCACHE_ASSOC _SC_LEVEL1_DCACHE_ASSOC | |
11493 | _SC_LEVEL1_DCACHE_LINESIZE, | |
11494 | #define _SC_LEVEL1_DCACHE_LINESIZE _SC_LEVEL1_DCACHE_LINESIZE | |
11495 | _SC_LEVEL2_CACHE_SIZE, | |
11496 | #define _SC_LEVEL2_CACHE_SIZE _SC_LEVEL2_CACHE_SIZE | |
11497 | _SC_LEVEL2_CACHE_ASSOC, | |
11498 | #define _SC_LEVEL2_CACHE_ASSOC _SC_LEVEL2_CACHE_ASSOC | |
11499 | _SC_LEVEL2_CACHE_LINESIZE, | |
11500 | #define _SC_LEVEL2_CACHE_LINESIZE _SC_LEVEL2_CACHE_LINESIZE | |
11501 | _SC_LEVEL3_CACHE_SIZE, | |
11502 | #define _SC_LEVEL3_CACHE_SIZE _SC_LEVEL3_CACHE_SIZE | |
11503 | _SC_LEVEL3_CACHE_ASSOC, | |
11504 | #define _SC_LEVEL3_CACHE_ASSOC _SC_LEVEL3_CACHE_ASSOC | |
11505 | _SC_LEVEL3_CACHE_LINESIZE, | |
11506 | #define _SC_LEVEL3_CACHE_LINESIZE _SC_LEVEL3_CACHE_LINESIZE | |
11507 | _SC_LEVEL4_CACHE_SIZE, | |
11508 | #define _SC_LEVEL4_CACHE_SIZE _SC_LEVEL4_CACHE_SIZE | |
11509 | _SC_LEVEL4_CACHE_ASSOC, | |
11510 | #define _SC_LEVEL4_CACHE_ASSOC _SC_LEVEL4_CACHE_ASSOC | |
11511 | _SC_LEVEL4_CACHE_LINESIZE, | |
11512 | #define _SC_LEVEL4_CACHE_LINESIZE _SC_LEVEL4_CACHE_LINESIZE | |
11513 | ||
11514 | ||
11515 | _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, | |
11516 | #define _SC_IPV6 _SC_IPV6 | |
11517 | _SC_RAW_SOCKETS | |
11518 | #define _SC_RAW_SOCKETS _SC_RAW_SOCKETS | |
11519 | }; | |
11520 | ||
11521 | ||
11522 | enum | |
11523 | { | |
11524 | _CS_PATH, | |
11525 | #define _CS_PATH _CS_PATH | |
11526 | ||
11527 | _CS_V6_WIDTH_RESTRICTED_ENVS, | |
11528 | #define _CS_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS | |
11529 | ||
11530 | _CS_GNU_LIBC_VERSION, | |
11531 | #define _CS_GNU_LIBC_VERSION _CS_GNU_LIBC_VERSION | |
11532 | _CS_GNU_LIBPTHREAD_VERSION, | |
11533 | #define _CS_GNU_LIBPTHREAD_VERSION _CS_GNU_LIBPTHREAD_VERSION | |
11534 | ||
11535 | _CS_LFS_CFLAGS = 1000, | |
11536 | #define _CS_LFS_CFLAGS _CS_LFS_CFLAGS | |
11537 | _CS_LFS_LDFLAGS, | |
11538 | #define _CS_LFS_LDFLAGS _CS_LFS_LDFLAGS | |
11539 | _CS_LFS_LIBS, | |
11540 | #define _CS_LFS_LIBS _CS_LFS_LIBS | |
11541 | _CS_LFS_LINTFLAGS, | |
11542 | #define _CS_LFS_LINTFLAGS _CS_LFS_LINTFLAGS | |
11543 | _CS_LFS64_CFLAGS, | |
11544 | #define _CS_LFS64_CFLAGS _CS_LFS64_CFLAGS | |
11545 | _CS_LFS64_LDFLAGS, | |
11546 | #define _CS_LFS64_LDFLAGS _CS_LFS64_LDFLAGS | |
11547 | _CS_LFS64_LIBS, | |
11548 | #define _CS_LFS64_LIBS _CS_LFS64_LIBS | |
11549 | _CS_LFS64_LINTFLAGS, | |
11550 | #define _CS_LFS64_LINTFLAGS _CS_LFS64_LINTFLAGS | |
11551 | ||
11552 | _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, | |
11553 | #define _CS_XBS5_ILP32_OFF32_CFLAGS _CS_XBS5_ILP32_OFF32_CFLAGS | |
11554 | _CS_XBS5_ILP32_OFF32_LDFLAGS, | |
11555 | #define _CS_XBS5_ILP32_OFF32_LDFLAGS _CS_XBS5_ILP32_OFF32_LDFLAGS | |
11556 | _CS_XBS5_ILP32_OFF32_LIBS, | |
11557 | #define _CS_XBS5_ILP32_OFF32_LIBS _CS_XBS5_ILP32_OFF32_LIBS | |
11558 | _CS_XBS5_ILP32_OFF32_LINTFLAGS, | |
11559 | #define _CS_XBS5_ILP32_OFF32_LINTFLAGS _CS_XBS5_ILP32_OFF32_LINTFLAGS | |
11560 | _CS_XBS5_ILP32_OFFBIG_CFLAGS, | |
11561 | #define _CS_XBS5_ILP32_OFFBIG_CFLAGS _CS_XBS5_ILP32_OFFBIG_CFLAGS | |
11562 | _CS_XBS5_ILP32_OFFBIG_LDFLAGS, | |
11563 | #define _CS_XBS5_ILP32_OFFBIG_LDFLAGS _CS_XBS5_ILP32_OFFBIG_LDFLAGS | |
11564 | _CS_XBS5_ILP32_OFFBIG_LIBS, | |
11565 | #define _CS_XBS5_ILP32_OFFBIG_LIBS _CS_XBS5_ILP32_OFFBIG_LIBS | |
11566 | _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, | |
11567 | #define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS _CS_XBS5_ILP32_OFFBIG_LINTFLAGS | |
11568 | _CS_XBS5_LP64_OFF64_CFLAGS, | |
11569 | #define _CS_XBS5_LP64_OFF64_CFLAGS _CS_XBS5_LP64_OFF64_CFLAGS | |
11570 | _CS_XBS5_LP64_OFF64_LDFLAGS, | |
11571 | #define _CS_XBS5_LP64_OFF64_LDFLAGS _CS_XBS5_LP64_OFF64_LDFLAGS | |
11572 | _CS_XBS5_LP64_OFF64_LIBS, | |
11573 | #define _CS_XBS5_LP64_OFF64_LIBS _CS_XBS5_LP64_OFF64_LIBS | |
11574 | _CS_XBS5_LP64_OFF64_LINTFLAGS, | |
11575 | #define _CS_XBS5_LP64_OFF64_LINTFLAGS _CS_XBS5_LP64_OFF64_LINTFLAGS | |
11576 | _CS_XBS5_LPBIG_OFFBIG_CFLAGS, | |
11577 | #define _CS_XBS5_LPBIG_OFFBIG_CFLAGS _CS_XBS5_LPBIG_OFFBIG_CFLAGS | |
11578 | _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, | |
11579 | #define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS _CS_XBS5_LPBIG_OFFBIG_LDFLAGS | |
11580 | _CS_XBS5_LPBIG_OFFBIG_LIBS, | |
11581 | #define _CS_XBS5_LPBIG_OFFBIG_LIBS _CS_XBS5_LPBIG_OFFBIG_LIBS | |
11582 | _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, | |
11583 | #define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS | |
11584 | ||
11585 | _CS_POSIX_V6_ILP32_OFF32_CFLAGS, | |
11586 | #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS _CS_POSIX_V6_ILP32_OFF32_CFLAGS | |
11587 | _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, | |
11588 | #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS _CS_POSIX_V6_ILP32_OFF32_LDFLAGS | |
11589 | _CS_POSIX_V6_ILP32_OFF32_LIBS, | |
11590 | #define _CS_POSIX_V6_ILP32_OFF32_LIBS _CS_POSIX_V6_ILP32_OFF32_LIBS | |
11591 | _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, | |
11592 | #define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS | |
11593 | _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, | |
11594 | #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS | |
11595 | _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, | |
11596 | #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS | |
11597 | _CS_POSIX_V6_ILP32_OFFBIG_LIBS, | |
11598 | #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS _CS_POSIX_V6_ILP32_OFFBIG_LIBS | |
11599 | _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, | |
11600 | #define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS | |
11601 | _CS_POSIX_V6_LP64_OFF64_CFLAGS, | |
11602 | #define _CS_POSIX_V6_LP64_OFF64_CFLAGS _CS_POSIX_V6_LP64_OFF64_CFLAGS | |
11603 | _CS_POSIX_V6_LP64_OFF64_LDFLAGS, | |
11604 | #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS _CS_POSIX_V6_LP64_OFF64_LDFLAGS | |
11605 | _CS_POSIX_V6_LP64_OFF64_LIBS, | |
11606 | #define _CS_POSIX_V6_LP64_OFF64_LIBS _CS_POSIX_V6_LP64_OFF64_LIBS | |
11607 | _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, | |
11608 | #define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS _CS_POSIX_V6_LP64_OFF64_LINTFLAGS | |
11609 | _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, | |
11610 | #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS | |
11611 | _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, | |
11612 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS | |
11613 | _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, | |
11614 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS _CS_POSIX_V6_LPBIG_OFFBIG_LIBS | |
11615 | _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS | |
11616 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS | |
11617 | }; | |
11618 | # 553 "/usr/include/unistd.h" 2 3 4 | |
11619 | ||
11620 | ||
11621 | extern long int pathconf (__const char *__path, int __name) | |
11622 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11623 | ||
11624 | ||
11625 | extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__)); | |
11626 | ||
11627 | ||
11628 | extern long int sysconf (int __name) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
11629 | ||
11630 | ||
11631 | ||
11632 | extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__)); | |
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | extern __pid_t getpid (void) __attribute__ ((__nothrow__)); | |
11638 | ||
11639 | ||
11640 | extern __pid_t getppid (void) __attribute__ ((__nothrow__)); | |
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | extern __pid_t getpgrp (void) __attribute__ ((__nothrow__)); | |
11646 | # 589 "/usr/include/unistd.h" 3 4 | |
11647 | extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); | |
11648 | ||
11649 | extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); | |
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__)); | |
11657 | # 615 "/usr/include/unistd.h" 3 4 | |
11658 | extern int setpgrp (void) __attribute__ ((__nothrow__)); | |
11659 | # 632 "/usr/include/unistd.h" 3 4 | |
11660 | extern __pid_t setsid (void) __attribute__ ((__nothrow__)); | |
11661 | ||
11662 | ||
11663 | ||
11664 | extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__)); | |
11665 | ||
11666 | ||
11667 | ||
11668 | extern __uid_t getuid (void) __attribute__ ((__nothrow__)); | |
11669 | ||
11670 | ||
11671 | extern __uid_t geteuid (void) __attribute__ ((__nothrow__)); | |
11672 | ||
11673 | ||
11674 | extern __gid_t getgid (void) __attribute__ ((__nothrow__)); | |
11675 | ||
11676 | ||
11677 | extern __gid_t getegid (void) __attribute__ ((__nothrow__)); | |
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__)) ; | |
11683 | ||
11684 | ||
11685 | ||
11686 | extern int group_member (__gid_t __gid) __attribute__ ((__nothrow__)); | |
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__)); | |
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__)); | |
11699 | ||
11700 | ||
11701 | ||
11702 | ||
11703 | extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__)); | |
11704 | ||
11705 | ||
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__)); | |
11711 | ||
11712 | ||
11713 | ||
11714 | ||
11715 | extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__)); | |
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__)); | |
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) | |
11727 | __attribute__ ((__nothrow__)); | |
11728 | ||
11729 | ||
11730 | ||
11731 | extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) | |
11732 | __attribute__ ((__nothrow__)); | |
11733 | ||
11734 | ||
11735 | ||
11736 | extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) | |
11737 | __attribute__ ((__nothrow__)); | |
11738 | ||
11739 | ||
11740 | ||
11741 | extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) | |
11742 | __attribute__ ((__nothrow__)); | |
11743 | ||
11744 | ||
11745 | ||
11746 | ||
11747 | ||
11748 | ||
11749 | extern __pid_t fork (void) __attribute__ ((__nothrow__)); | |
11750 | ||
11751 | ||
11752 | ||
11753 | ||
11754 | ||
11755 | ||
11756 | extern __pid_t vfork (void) __attribute__ ((__nothrow__)); | |
11757 | ||
11758 | ||
11759 | ||
11760 | ||
11761 | ||
11762 | extern char *ttyname (int __fd) __attribute__ ((__nothrow__)); | |
11763 | ||
11764 | ||
11765 | ||
11766 | extern int ttyname_r (int __fd, char *__buf, size_t __buflen) | |
11767 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; | |
11768 | ||
11769 | ||
11770 | ||
11771 | extern int isatty (int __fd) __attribute__ ((__nothrow__)); | |
11772 | ||
11773 | ||
11774 | ||
11775 | ||
11776 | ||
11777 | extern int ttyslot (void) __attribute__ ((__nothrow__)); | |
11778 | ||
11779 | ||
11780 | ||
11781 | ||
11782 | extern int link (__const char *__from, __const char *__to) | |
11783 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; | |
11784 | ||
11785 | ||
11786 | ||
11787 | ||
11788 | extern int linkat (int __fromfd, __const char *__from, int __tofd, | |
11789 | __const char *__to, int __flags) | |
11790 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))) ; | |
11791 | ||
11792 | ||
11793 | ||
11794 | ||
11795 | extern int symlink (__const char *__from, __const char *__to) | |
11796 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; | |
11797 | ||
11798 | ||
11799 | ||
11800 | ||
11801 | extern int readlink (__const char *__restrict __path, char *__restrict __buf, | |
11802 | size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; | |
11803 | ||
11804 | ||
11805 | ||
11806 | ||
11807 | extern int symlinkat (__const char *__from, int __tofd, | |
11808 | __const char *__to) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ; | |
11809 | ||
11810 | ||
11811 | extern int readlinkat (int __fd, __const char *__restrict __path, | |
11812 | char *__restrict __buf, size_t __len) | |
11813 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))) ; | |
11814 | ||
11815 | ||
11816 | ||
11817 | extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11818 | ||
11819 | ||
11820 | ||
11821 | extern int unlinkat (int __fd, __const char *__name, int __flag) | |
11822 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
11823 | ||
11824 | ||
11825 | ||
11826 | extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11827 | ||
11828 | ||
11829 | ||
11830 | extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__)); | |
11831 | ||
11832 | ||
11833 | extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__)); | |
11834 | ||
11835 | ||
11836 | ||
11837 | ||
11838 | ||
11839 | ||
11840 | extern char *getlogin (void); | |
11841 | ||
11842 | ||
11843 | ||
11844 | ||
11845 | ||
11846 | ||
11847 | ||
11848 | extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))); | |
11849 | ||
11850 | ||
11851 | ||
11852 | ||
11853 | extern int setlogin (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11854 | ||
11855 | ||
11856 | ||
11857 | ||
11858 | ||
11859 | ||
11860 | ||
11861 | #define __need_getopt | |
11862 | # 1 "/usr/include/getopt.h" 1 3 4 | |
11863 | # 59 "/usr/include/getopt.h" 3 4 | |
11864 | extern char *optarg; | |
11865 | # 73 "/usr/include/getopt.h" 3 4 | |
11866 | extern int optind; | |
11867 | ||
11868 | ||
11869 | ||
11870 | ||
11871 | extern int opterr; | |
11872 | ||
11873 | ||
11874 | ||
11875 | extern int optopt; | |
11876 | # 152 "/usr/include/getopt.h" 3 4 | |
11877 | extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) | |
11878 | __attribute__ ((__nothrow__)); | |
11879 | # 175 "/usr/include/getopt.h" 3 4 | |
11880 | #undef __need_getopt | |
11881 | # 835 "/usr/include/unistd.h" 2 3 4 | |
11882 | ||
11883 | ||
11884 | ||
11885 | ||
11886 | ||
11887 | ||
11888 | ||
11889 | extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11890 | ||
11891 | ||
11892 | ||
11893 | ||
11894 | ||
11895 | ||
11896 | extern int sethostname (__const char *__name, size_t __len) | |
11897 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
11898 | ||
11899 | ||
11900 | ||
11901 | extern int sethostid (long int __id) __attribute__ ((__nothrow__)) ; | |
11902 | ||
11903 | ||
11904 | ||
11905 | ||
11906 | ||
11907 | extern int getdomainname (char *__name, size_t __len) | |
11908 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
11909 | extern int setdomainname (__const char *__name, size_t __len) | |
11910 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
11911 | ||
11912 | ||
11913 | ||
11914 | ||
11915 | ||
11916 | extern int vhangup (void) __attribute__ ((__nothrow__)); | |
11917 | ||
11918 | ||
11919 | extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
11920 | ||
11921 | ||
11922 | ||
11923 | ||
11924 | ||
11925 | ||
11926 | ||
11927 | extern int profil (unsigned short int *__sample_buffer, size_t __size, | |
11928 | size_t __offset, unsigned int __scale) | |
11929 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
11930 | ||
11931 | ||
11932 | ||
11933 | ||
11934 | ||
11935 | extern int acct (__const char *__name) __attribute__ ((__nothrow__)); | |
11936 | ||
11937 | ||
11938 | ||
11939 | extern char *getusershell (void) __attribute__ ((__nothrow__)); | |
11940 | extern void endusershell (void) __attribute__ ((__nothrow__)); | |
11941 | extern void setusershell (void) __attribute__ ((__nothrow__)); | |
11942 | ||
11943 | ||
11944 | ||
11945 | ||
11946 | ||
11947 | extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__)) ; | |
11948 | ||
11949 | ||
11950 | ||
11951 | ||
11952 | ||
11953 | ||
11954 | extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
11955 | ||
11956 | ||
11957 | ||
11958 | extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1))); | |
11959 | # 920 "/usr/include/unistd.h" 3 4 | |
11960 | extern int fsync (int __fd); | |
11961 | ||
11962 | ||
11963 | ||
11964 | ||
11965 | ||
11966 | ||
11967 | extern long int gethostid (void); | |
11968 | ||
11969 | ||
11970 | extern void sync (void) __attribute__ ((__nothrow__)); | |
11971 | ||
11972 | ||
11973 | ||
11974 | ||
11975 | extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
11976 | ||
11977 | ||
11978 | ||
11979 | ||
11980 | extern int getdtablesize (void) __attribute__ ((__nothrow__)); | |
11981 | # 949 "/usr/include/unistd.h" 3 4 | |
11982 | extern int truncate (__const char *__file, __off64_t __length) __asm__ ("" "truncate64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | extern int truncate64 (__const char *__file, __off64_t __length) | |
11991 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; | |
11992 | # 970 "/usr/include/unistd.h" 3 4 | |
11993 | extern int ftruncate (int __fd, __off64_t __length) __asm__ ("" "ftruncate64") __attribute__ ((__nothrow__)) ; | |
11994 | ||
11995 | ||
11996 | ||
11997 | ||
11998 | ||
11999 | ||
12000 | extern int ftruncate64 (int __fd, __off64_t __length) __attribute__ ((__nothrow__)) ; | |
12001 | # 987 "/usr/include/unistd.h" 3 4 | |
12002 | extern int brk (void *__addr) __attribute__ ((__nothrow__)) ; | |
12003 | ||
12004 | ||
12005 | ||
12006 | ||
12007 | ||
12008 | extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__)); | |
12009 | # 1008 "/usr/include/unistd.h" 3 4 | |
12010 | extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__)); | |
12011 | # 1025 "/usr/include/unistd.h" 3 4 | |
12012 | #define F_ULOCK 0 | |
12013 | #define F_LOCK 1 | |
12014 | #define F_TLOCK 2 | |
12015 | #define F_TEST 3 | |
12016 | ||
12017 | ||
12018 | ||
12019 | ||
12020 | ||
12021 | extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64") ; | |
12022 | ||
12023 | ||
12024 | ||
12025 | ||
12026 | ||
12027 | ||
12028 | extern int lockf64 (int __fd, int __cmd, __off64_t __len) ; | |
12029 | # 1051 "/usr/include/unistd.h" 3 4 | |
12030 | #define TEMP_FAILURE_RETRY(expression) (__extension__ ({ long int __result; do __result = (long int) (expression); while (__result == -1L && errno == EINTR); __result; })) | |
12031 | # 1062 "/usr/include/unistd.h" 3 4 | |
12032 | extern int fdatasync (int __fildes) __attribute__ ((__nothrow__)); | |
12033 | ||
12034 | ||
12035 | ||
12036 | ||
12037 | ||
12038 | ||
12039 | ||
12040 | extern char *crypt (__const char *__key, __const char *__salt) | |
12041 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
12042 | ||
12043 | ||
12044 | ||
12045 | extern void encrypt (char *__block, int __edflag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12046 | ||
12047 | ||
12048 | ||
12049 | ||
12050 | ||
12051 | ||
12052 | extern void swab (__const void *__restrict __from, void *__restrict __to, | |
12053 | ssize_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
12054 | ||
12055 | ||
12056 | ||
12057 | ||
12058 | ||
12059 | ||
12060 | ||
12061 | extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); | |
12062 | # 1100 "/usr/include/unistd.h" 3 4 | |
12063 | ||
12064 | # 89 "../../src/include/platform.h" 2 | |
12065 | ||
12066 | # 1 "/usr/include/sys/stat.h" 1 3 4 | |
12067 | # 24 "/usr/include/sys/stat.h" 3 4 | |
12068 | #define _SYS_STAT_H 1 | |
12069 | ||
12070 | ||
12071 | ||
12072 | ||
12073 | ||
12074 | ||
12075 | ||
12076 | #define __need_time_t | |
12077 | ||
12078 | ||
12079 | #define __need_timespec | |
12080 | # 103 "/usr/include/sys/stat.h" 3 4 | |
12081 | ||
12082 | ||
12083 | # 1 "/usr/include/bits/stat.h" 1 3 4 | |
12084 | # 24 "/usr/include/bits/stat.h" 3 4 | |
12085 | #define _STAT_VER_LINUX_OLD 1 | |
12086 | #define _STAT_VER_KERNEL 1 | |
12087 | #define _STAT_VER_SVR4 2 | |
12088 | #define _STAT_VER_LINUX 3 | |
12089 | #define _STAT_VER _STAT_VER_LINUX | |
12090 | ||
12091 | ||
12092 | #define _MKNOD_VER_LINUX 1 | |
12093 | #define _MKNOD_VER_SVR4 2 | |
12094 | #define _MKNOD_VER _MKNOD_VER_LINUX | |
12095 | ||
12096 | ||
12097 | struct stat | |
12098 | { | |
12099 | __dev_t st_dev; | |
12100 | unsigned short int __pad1; | |
12101 | ||
12102 | ||
12103 | ||
12104 | __ino_t __st_ino; | |
12105 | ||
12106 | __mode_t st_mode; | |
12107 | __nlink_t st_nlink; | |
12108 | __uid_t st_uid; | |
12109 | __gid_t st_gid; | |
12110 | __dev_t st_rdev; | |
12111 | unsigned short int __pad2; | |
12112 | ||
12113 | ||
12114 | ||
12115 | __off64_t st_size; | |
12116 | ||
12117 | __blksize_t st_blksize; | |
12118 | ||
12119 | ||
12120 | ||
12121 | ||
12122 | __blkcnt64_t st_blocks; | |
12123 | # 70 "/usr/include/bits/stat.h" 3 4 | |
12124 | struct timespec st_atim; | |
12125 | struct timespec st_mtim; | |
12126 | struct timespec st_ctim; | |
12127 | #define st_atime st_atim.tv_sec | |
12128 | #define st_mtime st_mtim.tv_sec | |
12129 | #define st_ctime st_ctim.tv_sec | |
12130 | # 88 "/usr/include/bits/stat.h" 3 4 | |
12131 | __ino64_t st_ino; | |
12132 | ||
12133 | }; | |
12134 | ||
12135 | ||
12136 | struct stat64 | |
12137 | { | |
12138 | __dev_t st_dev; | |
12139 | unsigned int __pad1; | |
12140 | ||
12141 | __ino_t __st_ino; | |
12142 | __mode_t st_mode; | |
12143 | __nlink_t st_nlink; | |
12144 | __uid_t st_uid; | |
12145 | __gid_t st_gid; | |
12146 | __dev_t st_rdev; | |
12147 | unsigned int __pad2; | |
12148 | __off64_t st_size; | |
12149 | __blksize_t st_blksize; | |
12150 | ||
12151 | __blkcnt64_t st_blocks; | |
12152 | ||
12153 | ||
12154 | ||
12155 | ||
12156 | ||
12157 | ||
12158 | ||
12159 | struct timespec st_atim; | |
12160 | struct timespec st_mtim; | |
12161 | struct timespec st_ctim; | |
12162 | # 127 "/usr/include/bits/stat.h" 3 4 | |
12163 | __ino64_t st_ino; | |
12164 | }; | |
12165 | ||
12166 | ||
12167 | ||
12168 | #define _STATBUF_ST_BLKSIZE | |
12169 | #define _STATBUF_ST_RDEV | |
12170 | ||
12171 | #define _STATBUF_ST_NSEC | |
12172 | ||
12173 | ||
12174 | ||
12175 | #define __S_IFMT 0170000 | |
12176 | ||
12177 | ||
12178 | #define __S_IFDIR 0040000 | |
12179 | #define __S_IFCHR 0020000 | |
12180 | #define __S_IFBLK 0060000 | |
12181 | #define __S_IFREG 0100000 | |
12182 | #define __S_IFIFO 0010000 | |
12183 | #define __S_IFLNK 0120000 | |
12184 | #define __S_IFSOCK 0140000 | |
12185 | ||
12186 | ||
12187 | ||
12188 | #define __S_TYPEISMQ(buf) ((buf)->st_mode - (buf)->st_mode) | |
12189 | #define __S_TYPEISSEM(buf) ((buf)->st_mode - (buf)->st_mode) | |
12190 | #define __S_TYPEISSHM(buf) ((buf)->st_mode - (buf)->st_mode) | |
12191 | ||
12192 | ||
12193 | ||
12194 | #define __S_ISUID 04000 | |
12195 | #define __S_ISGID 02000 | |
12196 | #define __S_ISVTX 01000 | |
12197 | #define __S_IREAD 0400 | |
12198 | #define __S_IWRITE 0200 | |
12199 | #define __S_IEXEC 0100 | |
12200 | # 106 "/usr/include/sys/stat.h" 2 3 4 | |
12201 | ||
12202 | ||
12203 | #define S_IFMT __S_IFMT | |
12204 | #define S_IFDIR __S_IFDIR | |
12205 | #define S_IFCHR __S_IFCHR | |
12206 | #define S_IFBLK __S_IFBLK | |
12207 | #define S_IFREG __S_IFREG | |
12208 | ||
12209 | #define S_IFIFO __S_IFIFO | |
12210 | ||
12211 | ||
12212 | #define S_IFLNK __S_IFLNK | |
12213 | ||
12214 | ||
12215 | ||
12216 | #define S_IFSOCK __S_IFSOCK | |
12217 | ||
12218 | ||
12219 | ||
12220 | ||
12221 | ||
12222 | #define __S_ISTYPE(mode,mask) (((mode) & __S_IFMT) == (mask)) | |
12223 | ||
12224 | #define S_ISDIR(mode) __S_ISTYPE((mode), __S_IFDIR) | |
12225 | #define S_ISCHR(mode) __S_ISTYPE((mode), __S_IFCHR) | |
12226 | #define S_ISBLK(mode) __S_ISTYPE((mode), __S_IFBLK) | |
12227 | #define S_ISREG(mode) __S_ISTYPE((mode), __S_IFREG) | |
12228 | ||
12229 | #define S_ISFIFO(mode) __S_ISTYPE((mode), __S_IFIFO) | |
12230 | ||
12231 | ||
12232 | #define S_ISLNK(mode) __S_ISTYPE((mode), __S_IFLNK) | |
12233 | # 146 "/usr/include/sys/stat.h" 3 4 | |
12234 | #define S_ISSOCK(mode) __S_ISTYPE((mode), __S_IFSOCK) | |
12235 | ||
12236 | ||
12237 | ||
12238 | ||
12239 | ||
12240 | ||
12241 | ||
12242 | #define S_TYPEISMQ(buf) __S_TYPEISMQ(buf) | |
12243 | #define S_TYPEISSEM(buf) __S_TYPEISSEM(buf) | |
12244 | #define S_TYPEISSHM(buf) __S_TYPEISSHM(buf) | |
12245 | ||
12246 | ||
12247 | ||
12248 | ||
12249 | ||
12250 | #define S_ISUID __S_ISUID | |
12251 | #define S_ISGID __S_ISGID | |
12252 | ||
12253 | ||
12254 | ||
12255 | #define S_ISVTX __S_ISVTX | |
12256 | ||
12257 | ||
12258 | #define S_IRUSR __S_IREAD | |
12259 | #define S_IWUSR __S_IWRITE | |
12260 | #define S_IXUSR __S_IEXEC | |
12261 | ||
12262 | #define S_IRWXU (__S_IREAD|__S_IWRITE|__S_IEXEC) | |
12263 | ||
12264 | ||
12265 | #define S_IREAD S_IRUSR | |
12266 | #define S_IWRITE S_IWUSR | |
12267 | #define S_IEXEC S_IXUSR | |
12268 | ||
12269 | ||
12270 | #define S_IRGRP (S_IRUSR >> 3) | |
12271 | #define S_IWGRP (S_IWUSR >> 3) | |
12272 | #define S_IXGRP (S_IXUSR >> 3) | |
12273 | ||
12274 | #define S_IRWXG (S_IRWXU >> 3) | |
12275 | ||
12276 | #define S_IROTH (S_IRGRP >> 3) | |
12277 | #define S_IWOTH (S_IWGRP >> 3) | |
12278 | #define S_IXOTH (S_IXGRP >> 3) | |
12279 | ||
12280 | #define S_IRWXO (S_IRWXG >> 3) | |
12281 | ||
12282 | ||
12283 | ||
12284 | ||
12285 | #define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) | |
12286 | #define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) | |
12287 | #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) | |
12288 | ||
12289 | #define S_BLKSIZE 512 | |
12290 | # 215 "/usr/include/sys/stat.h" 3 4 | |
12291 | extern int stat (__const char *__restrict __file, struct stat *__restrict __buf) __asm__ ("" "stat64") __attribute__ ((__nothrow__)) | |
12292 | ||
12293 | __attribute__ ((__nonnull__ (1, 2))); | |
12294 | extern int fstat (int __fd, struct stat *__buf) __asm__ ("" "fstat64") __attribute__ ((__nothrow__)) | |
12295 | __attribute__ ((__nonnull__ (2))); | |
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | extern int stat64 (__const char *__restrict __file, | |
12303 | struct stat64 *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
12304 | extern int fstat64 (int __fd, struct stat64 *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
12305 | # 241 "/usr/include/sys/stat.h" 3 4 | |
12306 | extern int fstatat (int __fd, __const char *__restrict __file, struct stat *__restrict __buf, int __flag) __asm__ ("" "fstatat64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); | |
12307 | # 250 "/usr/include/sys/stat.h" 3 4 | |
12308 | extern int fstatat64 (int __fd, __const char *__restrict __file, | |
12309 | struct stat64 *__restrict __buf, int __flag) | |
12310 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); | |
12311 | # 263 "/usr/include/sys/stat.h" 3 4 | |
12312 | extern int lstat (__const char *__restrict __file, struct stat *__restrict __buf) __asm__ ("" "lstat64") __attribute__ ((__nothrow__)) | |
12313 | ||
12314 | ||
12315 | __attribute__ ((__nonnull__ (1, 2))); | |
12316 | ||
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | extern int lstat64 (__const char *__restrict __file, | |
12322 | struct stat64 *__restrict __buf) | |
12323 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
12324 | ||
12325 | ||
12326 | ||
12327 | ||
12328 | ||
12329 | extern int chmod (__const char *__file, __mode_t __mode) | |
12330 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12331 | ||
12332 | ||
12333 | ||
12334 | ||
12335 | ||
12336 | extern int lchmod (__const char *__file, __mode_t __mode) | |
12337 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12338 | ||
12339 | ||
12340 | ||
12341 | ||
12342 | extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__)); | |
12343 | ||
12344 | ||
12345 | ||
12346 | ||
12347 | ||
12348 | extern int fchmodat (int __fd, __const char *__file, __mode_t mode, int __flag) | |
12349 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; | |
12350 | ||
12351 | ||
12352 | ||
12353 | ||
12354 | ||
12355 | ||
12356 | extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__)); | |
12357 | ||
12358 | ||
12359 | ||
12360 | ||
12361 | extern __mode_t getumask (void) __attribute__ ((__nothrow__)); | |
12362 | ||
12363 | ||
12364 | ||
12365 | extern int mkdir (__const char *__path, __mode_t __mode) | |
12366 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12367 | ||
12368 | ||
12369 | ||
12370 | ||
12371 | ||
12372 | extern int mkdirat (int __fd, __const char *__path, __mode_t __mode) | |
12373 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
12374 | ||
12375 | ||
12376 | ||
12377 | ||
12378 | ||
12379 | ||
12380 | extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev) | |
12381 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12382 | ||
12383 | ||
12384 | ||
12385 | ||
12386 | ||
12387 | ||
12388 | extern int mknodat (int __fd, __const char *__path, __mode_t __mode, | |
12389 | __dev_t __dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
12390 | ||
12391 | ||
12392 | ||
12393 | ||
12394 | extern int mkfifo (__const char *__path, __mode_t __mode) | |
12395 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12396 | ||
12397 | ||
12398 | ||
12399 | ||
12400 | ||
12401 | extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode) | |
12402 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
12403 | # 391 "/usr/include/sys/stat.h" 3 4 | |
12404 | extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) __asm__ ("" "__fxstat64") __attribute__ ((__nothrow__)) | |
12405 | ||
12406 | __attribute__ ((__nonnull__ (3))); | |
12407 | extern int __xstat (int __ver, __const char *__filename, struct stat *__stat_buf) __asm__ ("" "__xstat64") __attribute__ ((__nothrow__)) | |
12408 | ||
12409 | __attribute__ ((__nonnull__ (2, 3))); | |
12410 | extern int __lxstat (int __ver, __const char *__filename, struct stat *__stat_buf) __asm__ ("" "__lxstat64") __attribute__ ((__nothrow__)) | |
12411 | ||
12412 | __attribute__ ((__nonnull__ (2, 3))); | |
12413 | extern int __fxstatat (int __ver, int __fildes, __const char *__filename, struct stat *__stat_buf, int __flag) __asm__ ("" "__fxstatat64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); | |
12414 | # 413 "/usr/include/sys/stat.h" 3 4 | |
12415 | extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf) | |
12416 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))); | |
12417 | extern int __xstat64 (int __ver, __const char *__filename, | |
12418 | struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); | |
12419 | extern int __lxstat64 (int __ver, __const char *__filename, | |
12420 | struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); | |
12421 | extern int __fxstatat64 (int __ver, int __fildes, __const char *__filename, | |
12422 | struct stat64 *__stat_buf, int __flag) | |
12423 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); | |
12424 | ||
12425 | extern int __xmknod (int __ver, __const char *__path, __mode_t __mode, | |
12426 | __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); | |
12427 | ||
12428 | extern int __xmknodat (int __ver, int __fd, __const char *__path, | |
12429 | __mode_t __mode, __dev_t *__dev) | |
12430 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 5))); | |
12431 | ||
12432 | ||
12433 | ||
12434 | ||
12435 | extern __inline__ int | |
12436 | __attribute__ ((__nothrow__)) stat (__const char *__path, struct stat *__statbuf) | |
12437 | { | |
12438 | return __xstat (3, __path, __statbuf); | |
12439 | } | |
12440 | ||
12441 | ||
12442 | extern __inline__ int | |
12443 | __attribute__ ((__nothrow__)) lstat (__const char *__path, struct stat *__statbuf) | |
12444 | { | |
12445 | return __lxstat (3, __path, __statbuf); | |
12446 | } | |
12447 | ||
12448 | ||
12449 | extern __inline__ int | |
12450 | __attribute__ ((__nothrow__)) fstat (int __fd, struct stat *__statbuf) | |
12451 | { | |
12452 | return __fxstat (3, __fd, __statbuf); | |
12453 | } | |
12454 | ||
12455 | ||
12456 | extern __inline__ int | |
12457 | __attribute__ ((__nothrow__)) fstatat (int __fd, __const char *__filename, struct stat *__statbuf, int __flag) | |
12458 | ||
12459 | { | |
12460 | return __fxstatat (3, __fd, __filename, __statbuf, __flag); | |
12461 | } | |
12462 | ||
12463 | ||
12464 | ||
12465 | extern __inline__ int | |
12466 | __attribute__ ((__nothrow__)) mknod (__const char *__path, __mode_t __mode, __dev_t __dev) | |
12467 | { | |
12468 | return __xmknod (1, __path, __mode, &__dev); | |
12469 | } | |
12470 | ||
12471 | ||
12472 | ||
12473 | extern __inline__ int | |
12474 | __attribute__ ((__nothrow__)) mknodat (int __fd, __const char *__path, __mode_t __mode, __dev_t __dev) | |
12475 | ||
12476 | { | |
12477 | return __xmknodat (1, __fd, __path, __mode, &__dev); | |
12478 | } | |
12479 | ||
12480 | ||
12481 | ||
12482 | ||
12483 | ||
12484 | extern __inline__ int | |
12485 | __attribute__ ((__nothrow__)) stat64 (__const char *__path, struct stat64 *__statbuf) | |
12486 | { | |
12487 | return __xstat64 (3, __path, __statbuf); | |
12488 | } | |
12489 | ||
12490 | ||
12491 | extern __inline__ int | |
12492 | __attribute__ ((__nothrow__)) lstat64 (__const char *__path, struct stat64 *__statbuf) | |
12493 | { | |
12494 | return __lxstat64 (3, __path, __statbuf); | |
12495 | } | |
12496 | ||
12497 | ||
12498 | extern __inline__ int | |
12499 | __attribute__ ((__nothrow__)) fstat64 (int __fd, struct stat64 *__statbuf) | |
12500 | { | |
12501 | return __fxstat64 (3, __fd, __statbuf); | |
12502 | } | |
12503 | ||
12504 | ||
12505 | extern __inline__ int | |
12506 | __attribute__ ((__nothrow__)) fstatat64 (int __fd, __const char *__filename, struct stat64 *__statbuf, int __flag) | |
12507 | ||
12508 | { | |
12509 | return __fxstatat64 (3, __fd, __filename, __statbuf, __flag); | |
12510 | } | |
12511 | ||
12512 | ||
12513 | ||
12514 | ||
12515 | ||
12516 | ||
12517 | ||
12518 | # 91 "../../src/include/platform.h" 2 | |
12519 | ||
12520 | ||
12521 | # 1 "/usr/include/dirent.h" 1 3 4 | |
12522 | # 24 "/usr/include/dirent.h" 3 4 | |
12523 | #define _DIRENT_H 1 | |
12524 | ||
12525 | ||
12526 | ||
12527 | ||
12528 | # 62 "/usr/include/dirent.h" 3 4 | |
12529 | # 1 "/usr/include/bits/dirent.h" 1 3 4 | |
12530 | # 23 "/usr/include/bits/dirent.h" 3 4 | |
12531 | struct dirent | |
12532 | { | |
12533 | ||
12534 | ||
12535 | ||
12536 | ||
12537 | __ino64_t d_ino; | |
12538 | __off64_t d_off; | |
12539 | ||
12540 | unsigned short int d_reclen; | |
12541 | unsigned char d_type; | |
12542 | char d_name[256]; | |
12543 | }; | |
12544 | ||
12545 | ||
12546 | struct dirent64 | |
12547 | { | |
12548 | __ino64_t d_ino; | |
12549 | __off64_t d_off; | |
12550 | unsigned short int d_reclen; | |
12551 | unsigned char d_type; | |
12552 | char d_name[256]; | |
12553 | }; | |
12554 | ||
12555 | ||
12556 | #define d_fileno d_ino | |
12557 | ||
12558 | #undef _DIRENT_HAVE_D_NAMLEN | |
12559 | #define _DIRENT_HAVE_D_RECLEN | |
12560 | #define _DIRENT_HAVE_D_OFF | |
12561 | #define _DIRENT_HAVE_D_TYPE | |
12562 | # 63 "/usr/include/dirent.h" 2 3 4 | |
12563 | # 86 "/usr/include/dirent.h" 3 4 | |
12564 | #define _D_EXACT_NAMLEN(d) (strlen ((d)->d_name)) | |
12565 | ||
12566 | #define _D_ALLOC_NAMLEN(d) (((char *) (d) + (d)->d_reclen) - &(d)->d_name[0]) | |
12567 | # 98 "/usr/include/dirent.h" 3 4 | |
12568 | enum | |
12569 | { | |
12570 | DT_UNKNOWN = 0, | |
12571 | #define DT_UNKNOWN DT_UNKNOWN | |
12572 | DT_FIFO = 1, | |
12573 | #define DT_FIFO DT_FIFO | |
12574 | DT_CHR = 2, | |
12575 | #define DT_CHR DT_CHR | |
12576 | DT_DIR = 4, | |
12577 | #define DT_DIR DT_DIR | |
12578 | DT_BLK = 6, | |
12579 | #define DT_BLK DT_BLK | |
12580 | DT_REG = 8, | |
12581 | #define DT_REG DT_REG | |
12582 | DT_LNK = 10, | |
12583 | #define DT_LNK DT_LNK | |
12584 | DT_SOCK = 12, | |
12585 | #define DT_SOCK DT_SOCK | |
12586 | DT_WHT = 14 | |
12587 | #define DT_WHT DT_WHT | |
12588 | }; | |
12589 | ||
12590 | ||
12591 | #define IFTODT(mode) (((mode) & 0170000) >> 12) | |
12592 | #define DTTOIF(dirtype) ((dirtype) << 12) | |
12593 | ||
12594 | ||
12595 | ||
12596 | ||
12597 | ||
12598 | typedef struct __dirstream DIR; | |
12599 | ||
12600 | ||
12601 | ||
12602 | ||
12603 | ||
12604 | ||
12605 | extern DIR *opendir (__const char *__name) __attribute__ ((__nonnull__ (1))); | |
12606 | ||
12607 | ||
12608 | ||
12609 | ||
12610 | ||
12611 | ||
12612 | extern DIR *fdopendir (int __fd); | |
12613 | ||
12614 | ||
12615 | ||
12616 | ||
12617 | ||
12618 | ||
12619 | ||
12620 | extern int closedir (DIR *__dirp) __attribute__ ((__nonnull__ (1))); | |
12621 | # 166 "/usr/include/dirent.h" 3 4 | |
12622 | extern struct dirent *readdir (DIR *__dirp) __asm__ ("" "readdir64") | |
12623 | __attribute__ ((__nonnull__ (1))); | |
12624 | ||
12625 | ||
12626 | ||
12627 | ||
12628 | ||
12629 | ||
12630 | extern struct dirent64 *readdir64 (DIR *__dirp) __attribute__ ((__nonnull__ (1))); | |
12631 | # 190 "/usr/include/dirent.h" 3 4 | |
12632 | extern int readdir_r (DIR *__restrict __dirp, struct dirent *__restrict __entry, struct dirent **__restrict __result) __asm__ ("" "readdir64_r") __attribute__ ((__nonnull__ (1, 2, 3))); | |
12633 | # 201 "/usr/include/dirent.h" 3 4 | |
12634 | extern int readdir64_r (DIR *__restrict __dirp, | |
12635 | struct dirent64 *__restrict __entry, | |
12636 | struct dirent64 **__restrict __result) | |
12637 | __attribute__ ((__nonnull__ (1, 2, 3))); | |
12638 | ||
12639 | ||
12640 | ||
12641 | ||
12642 | extern void rewinddir (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12643 | ||
12644 | ||
12645 | ||
12646 | ||
12647 | ||
12648 | extern void seekdir (DIR *__dirp, long int __pos) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12649 | ||
12650 | ||
12651 | extern long int telldir (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12652 | ||
12653 | ||
12654 | ||
12655 | ||
12656 | ||
12657 | extern int dirfd (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
12658 | # 236 "/usr/include/dirent.h" 3 4 | |
12659 | #define MAXNAMLEN NAME_MAX | |
12660 | ||
12661 | ||
12662 | ||
12663 | ||
12664 | ||
12665 | #define __need_size_t | |
12666 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
12667 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
12668 | #undef __need_size_t | |
12669 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
12670 | #undef __need_NULL | |
12671 | # 244 "/usr/include/dirent.h" 2 3 4 | |
12672 | # 257 "/usr/include/dirent.h" 3 4 | |
12673 | extern int scandir (__const char *__restrict __dir, struct dirent ***__restrict __namelist, int (*__selector) (__const struct dirent *), int (*__cmp) (__const void *, __const void *)) __asm__ ("" "scandir64") __attribute__ ((__nonnull__ (1, 2))); | |
12674 | # 271 "/usr/include/dirent.h" 3 4 | |
12675 | extern int scandir64 (__const char *__restrict __dir, | |
12676 | struct dirent64 ***__restrict __namelist, | |
12677 | int (*__selector) (__const struct dirent64 *), | |
12678 | int (*__cmp) (__const void *, __const void *)) | |
12679 | __attribute__ ((__nonnull__ (1, 2))); | |
12680 | # 284 "/usr/include/dirent.h" 3 4 | |
12681 | extern int alphasort (__const void *__e1, __const void *__e2) __asm__ ("" "alphasort64") __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
12682 | # 293 "/usr/include/dirent.h" 3 4 | |
12683 | extern int alphasort64 (__const void *__e1, __const void *__e2) | |
12684 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
12685 | # 304 "/usr/include/dirent.h" 3 4 | |
12686 | extern int versionsort (__const void *__e1, __const void *__e2) __asm__ ("" "versionsort64") __attribute__ ((__nothrow__)) | |
12687 | ||
12688 | ||
12689 | __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
12690 | ||
12691 | ||
12692 | ||
12693 | ||
12694 | ||
12695 | ||
12696 | extern int versionsort64 (__const void *__e1, __const void *__e2) | |
12697 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
12698 | # 330 "/usr/include/dirent.h" 3 4 | |
12699 | extern __ssize_t getdirentries (int __fd, char *__restrict __buf, size_t __nbytes, __off64_t *__restrict __basep) __asm__ ("" "getdirentries64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); | |
12700 | # 341 "/usr/include/dirent.h" 3 4 | |
12701 | extern __ssize_t getdirentries64 (int __fd, char *__restrict __buf, | |
12702 | size_t __nbytes, | |
12703 | __off64_t *__restrict __basep) | |
12704 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); | |
12705 | ||
12706 | ||
12707 | ||
12708 | ||
12709 | ||
12710 | # 94 "../../src/include/platform.h" 2 | |
12711 | ||
12712 | # 1 "/usr/include/fcntl.h" 1 3 4 | |
12713 | # 25 "/usr/include/fcntl.h" 3 4 | |
12714 | #define _FCNTL_H 1 | |
12715 | ||
12716 | ||
12717 | ||
12718 | ||
12719 | ||
12720 | ||
12721 | ||
12722 | ||
12723 | # 1 "/usr/include/bits/fcntl.h" 1 3 4 | |
12724 | # 30 "/usr/include/bits/fcntl.h" 3 4 | |
12725 | #define O_ACCMODE 0003 | |
12726 | #define O_RDONLY 00 | |
12727 | #define O_WRONLY 01 | |
12728 | #define O_RDWR 02 | |
12729 | #define O_CREAT 0100 | |
12730 | #define O_EXCL 0200 | |
12731 | #define O_NOCTTY 0400 | |
12732 | #define O_TRUNC 01000 | |
12733 | #define O_APPEND 02000 | |
12734 | #define O_NONBLOCK 04000 | |
12735 | #define O_NDELAY O_NONBLOCK | |
12736 | #define O_SYNC 010000 | |
12737 | #define O_FSYNC O_SYNC | |
12738 | #define O_ASYNC 020000 | |
12739 | ||
12740 | ||
12741 | #define O_DIRECT 040000 | |
12742 | #define O_DIRECTORY 0200000 | |
12743 | #define O_NOFOLLOW 0400000 | |
12744 | #define O_NOATIME 01000000 | |
12745 | ||
12746 | ||
12747 | ||
12748 | ||
12749 | ||
12750 | ||
12751 | #define O_DSYNC O_SYNC | |
12752 | #define O_RSYNC O_SYNC | |
12753 | ||
12754 | ||
12755 | ||
12756 | #define O_LARGEFILE 0100000 | |
12757 | ||
12758 | ||
12759 | ||
12760 | #define F_DUPFD 0 | |
12761 | #define F_GETFD 1 | |
12762 | #define F_SETFD 2 | |
12763 | #define F_GETFL 3 | |
12764 | #define F_SETFL 4 | |
12765 | ||
12766 | ||
12767 | ||
12768 | ||
12769 | ||
12770 | #define F_GETLK F_GETLK64 | |
12771 | #define F_SETLK F_SETLK64 | |
12772 | #define F_SETLKW F_SETLKW64 | |
12773 | ||
12774 | #define F_GETLK64 12 | |
12775 | #define F_SETLK64 13 | |
12776 | #define F_SETLKW64 14 | |
12777 | ||
12778 | ||
12779 | #define F_SETOWN 8 | |
12780 | #define F_GETOWN 9 | |
12781 | ||
12782 | ||
12783 | ||
12784 | #define F_SETSIG 10 | |
12785 | #define F_GETSIG 11 | |
12786 | ||
12787 | ||
12788 | ||
12789 | #define F_SETLEASE 1024 | |
12790 | #define F_GETLEASE 1025 | |
12791 | #define F_NOTIFY 1026 | |
12792 | ||
12793 | ||
12794 | ||
12795 | #define FD_CLOEXEC 1 | |
12796 | ||
12797 | ||
12798 | #define F_RDLCK 0 | |
12799 | #define F_WRLCK 1 | |
12800 | #define F_UNLCK 2 | |
12801 | ||
12802 | ||
12803 | #define F_EXLCK 4 | |
12804 | #define F_SHLCK 8 | |
12805 | ||
12806 | ||
12807 | ||
12808 | #define LOCK_SH 1 | |
12809 | #define LOCK_EX 2 | |
12810 | #define LOCK_NB 4 | |
12811 | ||
12812 | #define LOCK_UN 8 | |
12813 | ||
12814 | ||
12815 | ||
12816 | #define LOCK_MAND 32 | |
12817 | #define LOCK_READ 64 | |
12818 | #define LOCK_WRITE 128 | |
12819 | #define LOCK_RW 192 | |
12820 | ||
12821 | ||
12822 | ||
12823 | ||
12824 | #define DN_ACCESS 0x00000001 | |
12825 | #define DN_MODIFY 0x00000002 | |
12826 | #define DN_CREATE 0x00000004 | |
12827 | #define DN_DELETE 0x00000008 | |
12828 | #define DN_RENAME 0x00000010 | |
12829 | #define DN_ATTRIB 0x00000020 | |
12830 | #define DN_MULTISHOT 0x80000000 | |
12831 | ||
12832 | ||
12833 | struct flock | |
12834 | { | |
12835 | short int l_type; | |
12836 | short int l_whence; | |
12837 | ||
12838 | ||
12839 | ||
12840 | ||
12841 | __off64_t l_start; | |
12842 | __off64_t l_len; | |
12843 | ||
12844 | __pid_t l_pid; | |
12845 | }; | |
12846 | ||
12847 | ||
12848 | struct flock64 | |
12849 | { | |
12850 | short int l_type; | |
12851 | short int l_whence; | |
12852 | __off64_t l_start; | |
12853 | __off64_t l_len; | |
12854 | __pid_t l_pid; | |
12855 | }; | |
12856 | ||
12857 | ||
12858 | ||
12859 | ||
12860 | ||
12861 | #define FAPPEND O_APPEND | |
12862 | #define FFSYNC O_FSYNC | |
12863 | #define FASYNC O_ASYNC | |
12864 | #define FNONBLOCK O_NONBLOCK | |
12865 | #define FNDELAY O_NDELAY | |
12866 | ||
12867 | ||
12868 | ||
12869 | ||
12870 | #define POSIX_FADV_NORMAL 0 | |
12871 | #define POSIX_FADV_RANDOM 1 | |
12872 | #define POSIX_FADV_SEQUENTIAL 2 | |
12873 | #define POSIX_FADV_WILLNEED 3 | |
12874 | #define POSIX_FADV_DONTNEED 4 | |
12875 | #define POSIX_FADV_NOREUSE 5 | |
12876 | ||
12877 | ||
12878 | ||
12879 | ||
12880 | ||
12881 | extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) | |
12882 | __attribute__ ((__nothrow__)); | |
12883 | ||
12884 | ||
12885 | # 35 "/usr/include/fcntl.h" 2 3 4 | |
12886 | # 54 "/usr/include/fcntl.h" 3 4 | |
12887 | #define SEEK_SET 0 | |
12888 | #define SEEK_CUR 1 | |
12889 | #define SEEK_END 2 | |
12890 | ||
12891 | ||
12892 | ||
12893 | #define AT_FDCWD -100 | |
12894 | ||
12895 | ||
12896 | #define AT_SYMLINK_NOFOLLOW 0x100 | |
12897 | #define AT_REMOVEDIR 0x200 | |
12898 | ||
12899 | #define AT_SYMLINK_FOLLOW 0x400 | |
12900 | #define AT_EACCESS 0x200 | |
12901 | # 76 "/usr/include/fcntl.h" 3 4 | |
12902 | extern int fcntl (int __fd, int __cmd, ...); | |
12903 | # 88 "/usr/include/fcntl.h" 3 4 | |
12904 | extern int open (__const char *__file, int __oflag, ...) __asm__ ("" "open64") | |
12905 | __attribute__ ((__nonnull__ (1))); | |
12906 | ||
12907 | ||
12908 | ||
12909 | ||
12910 | ||
12911 | extern int open64 (__const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); | |
12912 | # 113 "/usr/include/fcntl.h" 3 4 | |
12913 | extern int openat (int __fd, __const char *__file, int __oflag, ...) __asm__ ("" "openat64") __attribute__ ((__nonnull__ (2))); | |
12914 | ||
12915 | ||
12916 | ||
12917 | ||
12918 | ||
12919 | ||
12920 | extern int openat64 (int __fd, __const char *__file, int __oflag, ...) | |
12921 | __attribute__ ((__nonnull__ (2))); | |
12922 | # 133 "/usr/include/fcntl.h" 3 4 | |
12923 | extern int creat (__const char *__file, __mode_t __mode) __asm__ ("" "creat64") __attribute__ ((__nonnull__ (1))); | |
12924 | ||
12925 | ||
12926 | ||
12927 | ||
12928 | ||
12929 | ||
12930 | extern int creat64 (__const char *__file, __mode_t __mode) __attribute__ ((__nonnull__ (1))); | |
12931 | # 180 "/usr/include/fcntl.h" 3 4 | |
12932 | extern int posix_fadvise (int __fd, __off64_t __offset, __off64_t __len, int __advise) __asm__ ("" "posix_fadvise64") __attribute__ ((__nothrow__)); | |
12933 | ||
12934 | ||
12935 | ||
12936 | ||
12937 | ||
12938 | ||
12939 | ||
12940 | extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len, | |
12941 | int __advise) __attribute__ ((__nothrow__)); | |
12942 | # 201 "/usr/include/fcntl.h" 3 4 | |
12943 | extern int posix_fallocate (int __fd, __off64_t __offset, __off64_t __len) __asm__ ("" "posix_fallocate64"); | |
12944 | ||
12945 | ||
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len); | |
12952 | ||
12953 | ||
12954 | ||
12955 | ||
12956 | # 96 "../../src/include/platform.h" 2 | |
12957 | # 1 "/usr/include/math.h" 1 3 4 | |
12958 | # 26 "/usr/include/math.h" 3 4 | |
12959 | #define _MATH_H 1 | |
12960 | ||
12961 | ||
12962 | ||
12963 | ||
12964 | ||
12965 | ||
12966 | ||
12967 | # 1 "/usr/include/bits/huge_val.h" 1 3 4 | |
12968 | # 29 "/usr/include/bits/huge_val.h" 3 4 | |
12969 | #define HUGE_VAL (__builtin_huge_val()) | |
12970 | # 35 "/usr/include/math.h" 2 3 4 | |
12971 | ||
12972 | # 1 "/usr/include/bits/huge_valf.h" 1 3 4 | |
12973 | # 29 "/usr/include/bits/huge_valf.h" 3 4 | |
12974 | #define HUGE_VALF (__builtin_huge_valf()) | |
12975 | # 37 "/usr/include/math.h" 2 3 4 | |
12976 | # 1 "/usr/include/bits/huge_vall.h" 1 3 4 | |
12977 | # 27 "/usr/include/bits/huge_vall.h" 3 4 | |
12978 | #define HUGE_VALL (__builtin_huge_vall()) | |
12979 | # 38 "/usr/include/math.h" 2 3 4 | |
12980 | ||
12981 | ||
12982 | # 1 "/usr/include/bits/inf.h" 1 3 4 | |
12983 | # 27 "/usr/include/bits/inf.h" 3 4 | |
12984 | #define INFINITY (__builtin_inff()) | |
12985 | # 41 "/usr/include/math.h" 2 3 4 | |
12986 | ||
12987 | ||
12988 | # 1 "/usr/include/bits/nan.h" 1 3 4 | |
12989 | # 29 "/usr/include/bits/nan.h" 3 4 | |
12990 | #define NAN (__builtin_nanf ("")) | |
12991 | # 44 "/usr/include/math.h" 2 3 4 | |
12992 | ||
12993 | ||
12994 | ||
12995 | # 1 "/usr/include/bits/mathdef.h" 1 3 4 | |
12996 | # 24 "/usr/include/bits/mathdef.h" 3 4 | |
12997 | #define _MATH_H_MATHDEF 1 | |
12998 | ||
12999 | ||
13000 | ||
13001 | ||
13002 | typedef float float_t; | |
13003 | typedef double double_t; | |
13004 | # 43 "/usr/include/bits/mathdef.h" 3 4 | |
13005 | #define FP_ILOGB0 (-2147483647 - 1) | |
13006 | #define FP_ILOGBNAN (-2147483647 - 1) | |
13007 | # 48 "/usr/include/math.h" 2 3 4 | |
13008 | ||
13009 | ||
13010 | ||
13011 | ||
13012 | ||
13013 | ||
13014 | #define __MATHCALL(function,suffix,args) __MATHDECL (_Mdouble_,function,suffix, args) | |
13015 | ||
13016 | #define __MATHDECL(type,function,suffix,args) __MATHDECL_1(type, function,suffix, args); __MATHDECL_1(type, __CONCAT(__,function),suffix, args) | |
13017 | ||
13018 | ||
13019 | #define __MATHCALLX(function,suffix,args,attrib) __MATHDECLX (_Mdouble_,function,suffix, args, attrib) | |
13020 | ||
13021 | #define __MATHDECLX(type,function,suffix,args,attrib) __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib) | |
13022 | ||
13023 | ||
13024 | #define __MATHDECL_1(type,function,suffix,args) extern type __MATH_PRECNAME(function,suffix) args __THROW | |
13025 | ||
13026 | ||
13027 | #define _Mdouble_ double | |
13028 | #define __MATH_PRECNAME(name,r) __CONCAT(name,r) | |
13029 | #define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_STD | |
13030 | #define _Mdouble_END_NAMESPACE __END_NAMESPACE_STD | |
13031 | # 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
13032 | # 53 "/usr/include/bits/mathcalls.h" 3 4 | |
13033 | ||
13034 | ||
13035 | extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__)); | |
13036 | ||
13037 | extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__)); | |
13038 | ||
13039 | extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__)); | |
13040 | ||
13041 | extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__)); | |
13042 | ||
13043 | ||
13044 | extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__)); | |
13045 | ||
13046 | extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__)); | |
13047 | ||
13048 | extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__)); | |
13049 | ||
13050 | ||
13051 | ||
13052 | ||
13053 | extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__)); | |
13054 | ||
13055 | extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__)); | |
13056 | ||
13057 | extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__)); | |
13058 | ||
13059 | ||
13060 | ||
13061 | ||
13062 | extern void sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__)); extern void __sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__)); | |
13063 | ||
13064 | ||
13065 | ||
13066 | ||
13067 | ||
13068 | ||
13069 | extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__)); | |
13070 | ||
13071 | extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__)); | |
13072 | ||
13073 | extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__)); | |
13074 | ||
13075 | ||
13076 | ||
13077 | ||
13078 | ||
13079 | ||
13080 | ||
13081 | extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__)); | |
13082 | ||
13083 | ||
13084 | extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); | |
13085 | ||
13086 | ||
13087 | extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); | |
13088 | ||
13089 | ||
13090 | extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__)); | |
13091 | ||
13092 | ||
13093 | extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__)); | |
13094 | ||
13095 | ||
13096 | extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); | |
13097 | ||
13098 | ||
13099 | ||
13100 | ||
13101 | extern double exp10 (double __x) __attribute__ ((__nothrow__)); extern double __exp10 (double __x) __attribute__ ((__nothrow__)); | |
13102 | ||
13103 | extern double pow10 (double __x) __attribute__ ((__nothrow__)); extern double __pow10 (double __x) __attribute__ ((__nothrow__)); | |
13104 | ||
13105 | ||
13106 | ||
13107 | ||
13108 | ||
13109 | extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__)); | |
13110 | ||
13111 | ||
13112 | extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__)); | |
13113 | ||
13114 | ||
13115 | extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__)); | |
13116 | ||
13117 | ||
13118 | ||
13119 | ||
13120 | ||
13121 | ||
13122 | extern double exp2 (double __x) __attribute__ ((__nothrow__)); extern double __exp2 (double __x) __attribute__ ((__nothrow__)); | |
13123 | ||
13124 | ||
13125 | extern double log2 (double __x) __attribute__ ((__nothrow__)); extern double __log2 (double __x) __attribute__ ((__nothrow__)); | |
13126 | ||
13127 | ||
13128 | ||
13129 | ||
13130 | ||
13131 | ||
13132 | ||
13133 | ||
13134 | extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__)); | |
13135 | ||
13136 | ||
13137 | extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__)); | |
13138 | ||
13139 | ||
13140 | ||
13141 | ||
13142 | ||
13143 | extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__)); | |
13144 | ||
13145 | ||
13146 | ||
13147 | ||
13148 | ||
13149 | ||
13150 | extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__)); | |
13151 | ||
13152 | ||
13153 | ||
13154 | ||
13155 | ||
13156 | ||
13157 | ||
13158 | ||
13159 | extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13160 | ||
13161 | ||
13162 | extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13163 | ||
13164 | ||
13165 | extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13166 | ||
13167 | ||
13168 | extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__)); | |
13169 | ||
13170 | ||
13171 | ||
13172 | ||
13173 | extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13174 | ||
13175 | ||
13176 | extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13177 | ||
13178 | ||
13179 | ||
13180 | ||
13181 | ||
13182 | extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13183 | ||
13184 | ||
13185 | extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13186 | ||
13187 | ||
13188 | extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__)); | |
13189 | ||
13190 | ||
13191 | ||
13192 | extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__)); | |
13193 | ||
13194 | ||
13195 | ||
13196 | ||
13197 | ||
13198 | extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13199 | ||
13200 | ||
13201 | ||
13202 | ||
13203 | ||
13204 | ||
13205 | extern double nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13206 | ||
13207 | ||
13208 | ||
13209 | ||
13210 | ||
13211 | extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13212 | ||
13213 | ||
13214 | ||
13215 | extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13216 | ||
13217 | ||
13218 | extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__)); | |
13219 | extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__)); | |
13220 | extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__)); | |
13221 | extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__)); | |
13222 | extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__)); | |
13223 | extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__)); | |
13224 | ||
13225 | ||
13226 | ||
13227 | ||
13228 | ||
13229 | ||
13230 | extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__)); | |
13231 | extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__)); | |
13232 | extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__)); | |
13233 | ||
13234 | ||
13235 | ||
13236 | ||
13237 | ||
13238 | ||
13239 | extern double tgamma (double) __attribute__ ((__nothrow__)); extern double __tgamma (double) __attribute__ ((__nothrow__)); | |
13240 | ||
13241 | ||
13242 | ||
13243 | ||
13244 | ||
13245 | extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__)); | |
13246 | ||
13247 | ||
13248 | ||
13249 | ||
13250 | ||
13251 | ||
13252 | extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); | |
13253 | ||
13254 | ||
13255 | ||
13256 | ||
13257 | ||
13258 | ||
13259 | ||
13260 | extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__)); | |
13261 | ||
13262 | ||
13263 | extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13264 | ||
13265 | extern double nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13266 | ||
13267 | ||
13268 | ||
13269 | extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__)); | |
13270 | ||
13271 | ||
13272 | ||
13273 | extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__)); | |
13274 | ||
13275 | ||
13276 | ||
13277 | extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__)); | |
13278 | ||
13279 | ||
13280 | ||
13281 | ||
13282 | extern double scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); extern double __scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); | |
13283 | ||
13284 | ||
13285 | ||
13286 | extern double nearbyint (double __x) __attribute__ ((__nothrow__)); extern double __nearbyint (double __x) __attribute__ ((__nothrow__)); | |
13287 | ||
13288 | ||
13289 | ||
13290 | extern double round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13291 | ||
13292 | ||
13293 | ||
13294 | extern double trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13295 | ||
13296 | ||
13297 | ||
13298 | ||
13299 | extern double remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); extern double __remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); | |
13300 | ||
13301 | ||
13302 | ||
13303 | ||
13304 | ||
13305 | ||
13306 | extern long int lrint (double __x) __attribute__ ((__nothrow__)); extern long int __lrint (double __x) __attribute__ ((__nothrow__)); | |
13307 | extern long long int llrint (double __x) __attribute__ ((__nothrow__)); extern long long int __llrint (double __x) __attribute__ ((__nothrow__)); | |
13308 | ||
13309 | ||
13310 | ||
13311 | extern long int lround (double __x) __attribute__ ((__nothrow__)); extern long int __lround (double __x) __attribute__ ((__nothrow__)); | |
13312 | extern long long int llround (double __x) __attribute__ ((__nothrow__)); extern long long int __llround (double __x) __attribute__ ((__nothrow__)); | |
13313 | ||
13314 | ||
13315 | ||
13316 | extern double fdim (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fdim (double __x, double __y) __attribute__ ((__nothrow__)); | |
13317 | ||
13318 | ||
13319 | extern double fmax (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmax (double __x, double __y) __attribute__ ((__nothrow__)); | |
13320 | ||
13321 | ||
13322 | extern double fmin (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmin (double __x, double __y) __attribute__ ((__nothrow__)); | |
13323 | ||
13324 | ||
13325 | ||
13326 | extern int __fpclassify (double __value) __attribute__ ((__nothrow__)) | |
13327 | __attribute__ ((__const__)); | |
13328 | ||
13329 | ||
13330 | extern int __signbit (double __value) __attribute__ ((__nothrow__)) | |
13331 | __attribute__ ((__const__)); | |
13332 | ||
13333 | ||
13334 | ||
13335 | extern double fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); extern double __fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); | |
13336 | ||
13337 | ||
13338 | ||
13339 | ||
13340 | ||
13341 | ||
13342 | ||
13343 | ||
13344 | extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__)); | |
13345 | # 72 "/usr/include/math.h" 2 3 4 | |
13346 | #undef _Mdouble_ | |
13347 | #undef _Mdouble_BEGIN_NAMESPACE | |
13348 | #undef _Mdouble_END_NAMESPACE | |
13349 | #undef __MATH_PRECNAME | |
13350 | # 84 "/usr/include/math.h" 3 4 | |
13351 | #define _Mfloat_ float | |
13352 | ||
13353 | #define _Mdouble_ _Mfloat_ | |
13354 | ||
13355 | #define __MATH_PRECNAME(name,r) name ##f ##r | |
13356 | ||
13357 | ||
13358 | ||
13359 | #define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_C99 | |
13360 | #define _Mdouble_END_NAMESPACE __END_NAMESPACE_C99 | |
13361 | # 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
13362 | # 53 "/usr/include/bits/mathcalls.h" 3 4 | |
13363 | ||
13364 | ||
13365 | extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__)); | |
13366 | ||
13367 | extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__)); | |
13368 | ||
13369 | extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__)); | |
13370 | ||
13371 | extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__)); | |
13372 | ||
13373 | ||
13374 | extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__)); | |
13375 | ||
13376 | extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__)); | |
13377 | ||
13378 | extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__)); | |
13379 | ||
13380 | ||
13381 | ||
13382 | ||
13383 | extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__)); | |
13384 | ||
13385 | extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__)); | |
13386 | ||
13387 | extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__)); | |
13388 | ||
13389 | ||
13390 | ||
13391 | ||
13392 | extern void sincosf (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__)); extern void __sincosf (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__)); | |
13393 | ||
13394 | ||
13395 | ||
13396 | ||
13397 | ||
13398 | ||
13399 | extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__)); | |
13400 | ||
13401 | extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__)); | |
13402 | ||
13403 | extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__)); | |
13404 | ||
13405 | ||
13406 | ||
13407 | ||
13408 | ||
13409 | ||
13410 | ||
13411 | extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__)); | |
13412 | ||
13413 | ||
13414 | extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); | |
13415 | ||
13416 | ||
13417 | extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); | |
13418 | ||
13419 | ||
13420 | extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__)); | |
13421 | ||
13422 | ||
13423 | extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__)); | |
13424 | ||
13425 | ||
13426 | extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); | |
13427 | ||
13428 | ||
13429 | ||
13430 | ||
13431 | extern float exp10f (float __x) __attribute__ ((__nothrow__)); extern float __exp10f (float __x) __attribute__ ((__nothrow__)); | |
13432 | ||
13433 | extern float pow10f (float __x) __attribute__ ((__nothrow__)); extern float __pow10f (float __x) __attribute__ ((__nothrow__)); | |
13434 | ||
13435 | ||
13436 | ||
13437 | ||
13438 | ||
13439 | extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__)); | |
13440 | ||
13441 | ||
13442 | extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__)); | |
13443 | ||
13444 | ||
13445 | extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__)); | |
13446 | ||
13447 | ||
13448 | ||
13449 | ||
13450 | ||
13451 | ||
13452 | extern float exp2f (float __x) __attribute__ ((__nothrow__)); extern float __exp2f (float __x) __attribute__ ((__nothrow__)); | |
13453 | ||
13454 | ||
13455 | extern float log2f (float __x) __attribute__ ((__nothrow__)); extern float __log2f (float __x) __attribute__ ((__nothrow__)); | |
13456 | ||
13457 | ||
13458 | ||
13459 | ||
13460 | ||
13461 | ||
13462 | ||
13463 | ||
13464 | extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__)); | |
13465 | ||
13466 | ||
13467 | extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__)); | |
13468 | ||
13469 | ||
13470 | ||
13471 | ||
13472 | ||
13473 | extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__)); | |
13474 | ||
13475 | ||
13476 | ||
13477 | ||
13478 | ||
13479 | ||
13480 | extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__)); | |
13481 | ||
13482 | ||
13483 | ||
13484 | ||
13485 | ||
13486 | ||
13487 | ||
13488 | ||
13489 | extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13490 | ||
13491 | ||
13492 | extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13493 | ||
13494 | ||
13495 | extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13496 | ||
13497 | ||
13498 | extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__)); | |
13499 | ||
13500 | ||
13501 | ||
13502 | ||
13503 | extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13504 | ||
13505 | ||
13506 | extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13507 | ||
13508 | ||
13509 | ||
13510 | ||
13511 | ||
13512 | extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13513 | ||
13514 | ||
13515 | extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13516 | ||
13517 | ||
13518 | extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__)); | |
13519 | ||
13520 | ||
13521 | ||
13522 | extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__)); | |
13523 | ||
13524 | ||
13525 | ||
13526 | ||
13527 | ||
13528 | extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13529 | ||
13530 | ||
13531 | ||
13532 | ||
13533 | ||
13534 | ||
13535 | extern float nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13536 | ||
13537 | ||
13538 | ||
13539 | ||
13540 | ||
13541 | extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13542 | ||
13543 | ||
13544 | ||
13545 | extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13546 | ||
13547 | ||
13548 | extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__)); | |
13549 | extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__)); | |
13550 | extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__)); | |
13551 | extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__)); | |
13552 | extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__)); | |
13553 | extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__)); | |
13554 | ||
13555 | ||
13556 | ||
13557 | ||
13558 | ||
13559 | ||
13560 | extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__)); | |
13561 | extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__)); | |
13562 | extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__)); | |
13563 | ||
13564 | ||
13565 | ||
13566 | ||
13567 | ||
13568 | ||
13569 | extern float tgammaf (float) __attribute__ ((__nothrow__)); extern float __tgammaf (float) __attribute__ ((__nothrow__)); | |
13570 | ||
13571 | ||
13572 | ||
13573 | ||
13574 | ||
13575 | extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__)); | |
13576 | ||
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); | |
13583 | ||
13584 | ||
13585 | ||
13586 | ||
13587 | ||
13588 | ||
13589 | ||
13590 | extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__)); | |
13591 | ||
13592 | ||
13593 | extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13594 | ||
13595 | extern float nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13596 | ||
13597 | ||
13598 | ||
13599 | extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__)); | |
13600 | ||
13601 | ||
13602 | ||
13603 | extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); | |
13604 | ||
13605 | ||
13606 | ||
13607 | extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__)); | |
13608 | ||
13609 | ||
13610 | ||
13611 | ||
13612 | extern float scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); extern float __scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); | |
13613 | ||
13614 | ||
13615 | ||
13616 | extern float nearbyintf (float __x) __attribute__ ((__nothrow__)); extern float __nearbyintf (float __x) __attribute__ ((__nothrow__)); | |
13617 | ||
13618 | ||
13619 | ||
13620 | extern float roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13621 | ||
13622 | ||
13623 | ||
13624 | extern float truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13625 | ||
13626 | ||
13627 | ||
13628 | ||
13629 | extern float remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); extern float __remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); | |
13630 | ||
13631 | ||
13632 | ||
13633 | ||
13634 | ||
13635 | ||
13636 | extern long int lrintf (float __x) __attribute__ ((__nothrow__)); extern long int __lrintf (float __x) __attribute__ ((__nothrow__)); | |
13637 | extern long long int llrintf (float __x) __attribute__ ((__nothrow__)); extern long long int __llrintf (float __x) __attribute__ ((__nothrow__)); | |
13638 | ||
13639 | ||
13640 | ||
13641 | extern long int lroundf (float __x) __attribute__ ((__nothrow__)); extern long int __lroundf (float __x) __attribute__ ((__nothrow__)); | |
13642 | extern long long int llroundf (float __x) __attribute__ ((__nothrow__)); extern long long int __llroundf (float __x) __attribute__ ((__nothrow__)); | |
13643 | ||
13644 | ||
13645 | ||
13646 | extern float fdimf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fdimf (float __x, float __y) __attribute__ ((__nothrow__)); | |
13647 | ||
13648 | ||
13649 | extern float fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); | |
13650 | ||
13651 | ||
13652 | extern float fminf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fminf (float __x, float __y) __attribute__ ((__nothrow__)); | |
13653 | ||
13654 | ||
13655 | ||
13656 | extern int __fpclassifyf (float __value) __attribute__ ((__nothrow__)) | |
13657 | __attribute__ ((__const__)); | |
13658 | ||
13659 | ||
13660 | extern int __signbitf (float __value) __attribute__ ((__nothrow__)) | |
13661 | __attribute__ ((__const__)); | |
13662 | ||
13663 | ||
13664 | ||
13665 | extern float fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); extern float __fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); | |
13666 | ||
13667 | ||
13668 | ||
13669 | ||
13670 | ||
13671 | ||
13672 | ||
13673 | ||
13674 | extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__)); | |
13675 | # 95 "/usr/include/math.h" 2 3 4 | |
13676 | #undef _Mdouble_ | |
13677 | #undef _Mdouble_BEGIN_NAMESPACE | |
13678 | #undef _Mdouble_END_NAMESPACE | |
13679 | #undef __MATH_PRECNAME | |
13680 | # 131 "/usr/include/math.h" 3 4 | |
13681 | #define _Mlong_double_ long double | |
13682 | ||
13683 | #define _Mdouble_ _Mlong_double_ | |
13684 | ||
13685 | #define __MATH_PRECNAME(name,r) name ##l ##r | |
13686 | ||
13687 | ||
13688 | ||
13689 | #define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_C99 | |
13690 | #define _Mdouble_END_NAMESPACE __END_NAMESPACE_C99 | |
13691 | # 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
13692 | # 53 "/usr/include/bits/mathcalls.h" 3 4 | |
13693 | ||
13694 | ||
13695 | extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__)); | |
13696 | ||
13697 | extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__)); | |
13698 | ||
13699 | extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__)); | |
13700 | ||
13701 | extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); | |
13702 | ||
13703 | ||
13704 | extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__)); | |
13705 | ||
13706 | extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__)); | |
13707 | ||
13708 | extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__)); | |
13709 | ||
13710 | ||
13711 | ||
13712 | ||
13713 | extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__)); | |
13714 | ||
13715 | extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__)); | |
13716 | ||
13717 | extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__)); | |
13718 | ||
13719 | ||
13720 | ||
13721 | ||
13722 | extern void sincosl (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__)); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__)); | |
13723 | ||
13724 | ||
13725 | ||
13726 | ||
13727 | ||
13728 | ||
13729 | extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__)); | |
13730 | ||
13731 | extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__)); | |
13732 | ||
13733 | extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__)); | |
13734 | ||
13735 | ||
13736 | ||
13737 | ||
13738 | ||
13739 | ||
13740 | ||
13741 | extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__)); | |
13742 | ||
13743 | ||
13744 | extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); | |
13745 | ||
13746 | ||
13747 | extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); | |
13748 | ||
13749 | ||
13750 | extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__)); | |
13751 | ||
13752 | ||
13753 | extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__)); | |
13754 | ||
13755 | ||
13756 | extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); | |
13757 | ||
13758 | ||
13759 | ||
13760 | ||
13761 | extern long double exp10l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp10l (long double __x) __attribute__ ((__nothrow__)); | |
13762 | ||
13763 | extern long double pow10l (long double __x) __attribute__ ((__nothrow__)); extern long double __pow10l (long double __x) __attribute__ ((__nothrow__)); | |
13764 | ||
13765 | ||
13766 | ||
13767 | ||
13768 | ||
13769 | extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__)); | |
13770 | ||
13771 | ||
13772 | extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__)); | |
13773 | ||
13774 | ||
13775 | extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__)); | |
13776 | ||
13777 | ||
13778 | ||
13779 | ||
13780 | ||
13781 | ||
13782 | extern long double exp2l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp2l (long double __x) __attribute__ ((__nothrow__)); | |
13783 | ||
13784 | ||
13785 | extern long double log2l (long double __x) __attribute__ ((__nothrow__)); extern long double __log2l (long double __x) __attribute__ ((__nothrow__)); | |
13786 | ||
13787 | ||
13788 | ||
13789 | ||
13790 | ||
13791 | ||
13792 | ||
13793 | ||
13794 | extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__)); | |
13795 | ||
13796 | ||
13797 | extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__)); | |
13798 | ||
13799 | ||
13800 | ||
13801 | ||
13802 | ||
13803 | extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); | |
13804 | ||
13805 | ||
13806 | ||
13807 | ||
13808 | ||
13809 | ||
13810 | extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__)); | |
13811 | ||
13812 | ||
13813 | ||
13814 | ||
13815 | ||
13816 | ||
13817 | ||
13818 | ||
13819 | extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13820 | ||
13821 | ||
13822 | extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13823 | ||
13824 | ||
13825 | extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13826 | ||
13827 | ||
13828 | extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); | |
13829 | ||
13830 | ||
13831 | ||
13832 | ||
13833 | extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13834 | ||
13835 | ||
13836 | extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13837 | ||
13838 | ||
13839 | ||
13840 | ||
13841 | ||
13842 | extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13843 | ||
13844 | ||
13845 | extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13846 | ||
13847 | ||
13848 | extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); | |
13849 | ||
13850 | ||
13851 | ||
13852 | extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__)); | |
13853 | ||
13854 | ||
13855 | ||
13856 | ||
13857 | ||
13858 | extern long double copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13859 | ||
13860 | ||
13861 | ||
13862 | ||
13863 | ||
13864 | ||
13865 | extern long double nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13866 | ||
13867 | ||
13868 | ||
13869 | ||
13870 | ||
13871 | extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13872 | ||
13873 | ||
13874 | ||
13875 | extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13876 | ||
13877 | ||
13878 | extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__)); | |
13879 | extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__)); | |
13880 | extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__)); | |
13881 | extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__)); | |
13882 | extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__)); | |
13883 | extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__)); | |
13884 | ||
13885 | ||
13886 | ||
13887 | ||
13888 | ||
13889 | ||
13890 | extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__)); | |
13891 | extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__)); | |
13892 | extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__)); | |
13893 | ||
13894 | ||
13895 | ||
13896 | ||
13897 | ||
13898 | ||
13899 | extern long double tgammal (long double) __attribute__ ((__nothrow__)); extern long double __tgammal (long double) __attribute__ ((__nothrow__)); | |
13900 | ||
13901 | ||
13902 | ||
13903 | ||
13904 | ||
13905 | extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__)); | |
13906 | ||
13907 | ||
13908 | ||
13909 | ||
13910 | ||
13911 | ||
13912 | extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); | |
13913 | ||
13914 | ||
13915 | ||
13916 | ||
13917 | ||
13918 | ||
13919 | ||
13920 | extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__)); | |
13921 | ||
13922 | ||
13923 | extern long double nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13924 | ||
13925 | extern long double nexttowardl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13926 | ||
13927 | ||
13928 | ||
13929 | extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); | |
13930 | ||
13931 | ||
13932 | ||
13933 | extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); | |
13934 | ||
13935 | ||
13936 | ||
13937 | extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__)); | |
13938 | ||
13939 | ||
13940 | ||
13941 | ||
13942 | extern long double scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__)); extern long double __scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__)); | |
13943 | ||
13944 | ||
13945 | ||
13946 | extern long double nearbyintl (long double __x) __attribute__ ((__nothrow__)); extern long double __nearbyintl (long double __x) __attribute__ ((__nothrow__)); | |
13947 | ||
13948 | ||
13949 | ||
13950 | extern long double roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13951 | ||
13952 | ||
13953 | ||
13954 | extern long double truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
13955 | ||
13956 | ||
13957 | ||
13958 | ||
13959 | extern long double remquol (long double __x, long double __y, int *__quo) __attribute__ ((__nothrow__)); extern long double __remquol (long double __x, long double __y, int *__quo) __attribute__ ((__nothrow__)); | |
13960 | ||
13961 | ||
13962 | ||
13963 | ||
13964 | ||
13965 | ||
13966 | extern long int lrintl (long double __x) __attribute__ ((__nothrow__)); extern long int __lrintl (long double __x) __attribute__ ((__nothrow__)); | |
13967 | extern long long int llrintl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llrintl (long double __x) __attribute__ ((__nothrow__)); | |
13968 | ||
13969 | ||
13970 | ||
13971 | extern long int lroundl (long double __x) __attribute__ ((__nothrow__)); extern long int __lroundl (long double __x) __attribute__ ((__nothrow__)); | |
13972 | extern long long int llroundl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llroundl (long double __x) __attribute__ ((__nothrow__)); | |
13973 | ||
13974 | ||
13975 | ||
13976 | extern long double fdiml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fdiml (long double __x, long double __y) __attribute__ ((__nothrow__)); | |
13977 | ||
13978 | ||
13979 | extern long double fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__)); | |
13980 | ||
13981 | ||
13982 | extern long double fminl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fminl (long double __x, long double __y) __attribute__ ((__nothrow__)); | |
13983 | ||
13984 | ||
13985 | ||
13986 | extern int __fpclassifyl (long double __value) __attribute__ ((__nothrow__)) | |
13987 | __attribute__ ((__const__)); | |
13988 | ||
13989 | ||
13990 | extern int __signbitl (long double __value) __attribute__ ((__nothrow__)) | |
13991 | __attribute__ ((__const__)); | |
13992 | ||
13993 | ||
13994 | ||
13995 | extern long double fmal (long double __x, long double __y, long double __z) __attribute__ ((__nothrow__)); extern long double __fmal (long double __x, long double __y, long double __z) __attribute__ ((__nothrow__)); | |
13996 | ||
13997 | ||
13998 | ||
13999 | ||
14000 | ||
14001 | ||
14002 | ||
14003 | ||
14004 | extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); | |
14005 | # 142 "/usr/include/math.h" 2 3 4 | |
14006 | #undef _Mdouble_ | |
14007 | #undef _Mdouble_BEGIN_NAMESPACE | |
14008 | #undef _Mdouble_END_NAMESPACE | |
14009 | #undef __MATH_PRECNAME | |
14010 | ||
14011 | ||
14012 | ||
14013 | ||
14014 | #undef __MATHDECL_1 | |
14015 | #undef __MATHDECL | |
14016 | #undef __MATHCALL | |
14017 | ||
14018 | ||
14019 | ||
14020 | ||
14021 | extern int signgam; | |
14022 | # 198 "/usr/include/math.h" 3 4 | |
14023 | enum | |
14024 | { | |
14025 | FP_NAN, | |
14026 | #define FP_NAN FP_NAN | |
14027 | FP_INFINITE, | |
14028 | #define FP_INFINITE FP_INFINITE | |
14029 | FP_ZERO, | |
14030 | #define FP_ZERO FP_ZERO | |
14031 | FP_SUBNORMAL, | |
14032 | #define FP_SUBNORMAL FP_SUBNORMAL | |
14033 | FP_NORMAL | |
14034 | #define FP_NORMAL FP_NORMAL | |
14035 | }; | |
14036 | ||
14037 | ||
14038 | ||
14039 | ||
14040 | ||
14041 | ||
14042 | #define fpclassify(x) (sizeof (x) == sizeof (float) ? __fpclassifyf (x) : sizeof (x) == sizeof (double) ? __fpclassify (x) : __fpclassifyl (x)) | |
14043 | # 229 "/usr/include/math.h" 3 4 | |
14044 | #define signbit(x) (sizeof (x) == sizeof (float) ? __signbitf (x) : sizeof (x) == sizeof (double) ? __signbit (x) : __signbitl (x)) | |
14045 | # 241 "/usr/include/math.h" 3 4 | |
14046 | #define isfinite(x) (sizeof (x) == sizeof (float) ? __finitef (x) : sizeof (x) == sizeof (double) ? __finite (x) : __finitel (x)) | |
14047 | ||
14048 | ||
14049 | ||
14050 | ||
14051 | ||
14052 | ||
14053 | ||
14054 | #define isnormal(x) (fpclassify (x) == FP_NORMAL) | |
14055 | ||
14056 | ||
14057 | ||
14058 | ||
14059 | ||
14060 | ||
14061 | ||
14062 | #define isnan(x) (sizeof (x) == sizeof (float) ? __isnanf (x) : sizeof (x) == sizeof (double) ? __isnan (x) : __isnanl (x)) | |
14063 | # 269 "/usr/include/math.h" 3 4 | |
14064 | #define isinf(x) (sizeof (x) == sizeof (float) ? __isinff (x) : sizeof (x) == sizeof (double) ? __isinf (x) : __isinfl (x)) | |
14065 | ||
14066 | ||
14067 | ||
14068 | ||
14069 | ||
14070 | ||
14071 | ||
14072 | #define MATH_ERRNO 1 | |
14073 | #define MATH_ERREXCEPT 2 | |
14074 | ||
14075 | ||
14076 | ||
14077 | ||
14078 | ||
14079 | typedef enum | |
14080 | { | |
14081 | _IEEE_ = -1, | |
14082 | _SVID_, | |
14083 | _XOPEN_, | |
14084 | _POSIX_, | |
14085 | _ISOC_ | |
14086 | } _LIB_VERSION_TYPE; | |
14087 | ||
14088 | ||
14089 | ||
14090 | ||
14091 | extern _LIB_VERSION_TYPE _LIB_VERSION; | |
14092 | # 309 "/usr/include/math.h" 3 4 | |
14093 | struct exception | |
14094 | ||
14095 | { | |
14096 | int type; | |
14097 | char *name; | |
14098 | double arg1; | |
14099 | double arg2; | |
14100 | double retval; | |
14101 | }; | |
14102 | ||
14103 | ||
14104 | ||
14105 | ||
14106 | extern int matherr (struct exception *__exc); | |
14107 | ||
14108 | ||
14109 | #define X_TLOSS 1.41484755040568800000e+16 | |
14110 | ||
14111 | ||
14112 | #define DOMAIN 1 | |
14113 | #define SING 2 | |
14114 | #define OVERFLOW 3 | |
14115 | #define UNDERFLOW 4 | |
14116 | #define TLOSS 5 | |
14117 | #define PLOSS 6 | |
14118 | ||
14119 | ||
14120 | #define HUGE 3.40282347e+38F | |
14121 | # 350 "/usr/include/math.h" 3 4 | |
14122 | #define M_E 2.7182818284590452354 | |
14123 | #define M_LOG2E 1.4426950408889634074 | |
14124 | #define M_LOG10E 0.43429448190325182765 | |
14125 | #define M_LN2 0.69314718055994530942 | |
14126 | #define M_LN10 2.30258509299404568402 | |
14127 | #define M_PI 3.14159265358979323846 | |
14128 | #define M_PI_2 1.57079632679489661923 | |
14129 | #define M_PI_4 0.78539816339744830962 | |
14130 | #define M_1_PI 0.31830988618379067154 | |
14131 | #define M_2_PI 0.63661977236758134308 | |
14132 | #define M_2_SQRTPI 1.12837916709551257390 | |
14133 | #define M_SQRT2 1.41421356237309504880 | |
14134 | #define M_SQRT1_2 0.70710678118654752440 | |
14135 | ||
14136 | ||
14137 | ||
14138 | ||
14139 | ||
14140 | ||
14141 | #define M_El 2.7182818284590452353602874713526625L | |
14142 | #define M_LOG2El 1.4426950408889634073599246810018921L | |
14143 | #define M_LOG10El 0.4342944819032518276511289189166051L | |
14144 | #define M_LN2l 0.6931471805599453094172321214581766L | |
14145 | #define M_LN10l 2.3025850929940456840179914546843642L | |
14146 | #define M_PIl 3.1415926535897932384626433832795029L | |
14147 | #define M_PI_2l 1.5707963267948966192313216916397514L | |
14148 | #define M_PI_4l 0.7853981633974483096156608458198757L | |
14149 | #define M_1_PIl 0.3183098861837906715377675267450287L | |
14150 | #define M_2_PIl 0.6366197723675813430755350534900574L | |
14151 | #define M_2_SQRTPIl 1.1283791670955125738961589031215452L | |
14152 | #define M_SQRT2l 1.4142135623730950488016887242096981L | |
14153 | #define M_SQRT1_2l 0.7071067811865475244008443621048490L | |
14154 | # 399 "/usr/include/math.h" 3 4 | |
14155 | #define isgreater(x,y) __builtin_isgreater(x, y) | |
14156 | #define isgreaterequal(x,y) __builtin_isgreaterequal(x, y) | |
14157 | #define isless(x,y) __builtin_isless(x, y) | |
14158 | #define islessequal(x,y) __builtin_islessequal(x, y) | |
14159 | #define islessgreater(x,y) __builtin_islessgreater(x, y) | |
14160 | #define isunordered(u,v) __builtin_isunordered(u, v) | |
14161 | # 465 "/usr/include/math.h" 3 4 | |
14162 | ||
14163 | # 97 "../../src/include/platform.h" 2 | |
14164 | ||
14165 | # 1 "/usr/include/sys/param.h" 1 3 4 | |
14166 | # 20 "/usr/include/sys/param.h" 3 4 | |
14167 | #define _SYS_PARAM_H 1 | |
14168 | ||
14169 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 1 3 4 | |
14170 | # 23 "/usr/include/sys/param.h" 2 3 4 | |
14171 | ||
14172 | # 1 "/usr/include/linux/param.h" 1 3 4 | |
14173 | ||
14174 | #define _LINUX_PARAM_H | |
14175 | ||
14176 | # 1 "/usr/include/asm/param.h" 1 3 4 | |
14177 | ||
14178 | #define _ASMi386_PARAM_H | |
14179 | # 11 "/usr/include/asm/param.h" 3 4 | |
14180 | #define HZ 100 | |
14181 | ||
14182 | ||
14183 | ||
14184 | #define USER_HZ 100 | |
14185 | ||
14186 | ||
14187 | #define EXEC_PAGESIZE 4096 | |
14188 | ||
14189 | ||
14190 | #define NOGROUP (-1) | |
14191 | ||
14192 | ||
14193 | #define MAXHOSTNAMELEN 64 | |
14194 | #define COMMAND_LINE_SIZE 256 | |
14195 | # 5 "/usr/include/linux/param.h" 2 3 4 | |
14196 | # 25 "/usr/include/sys/param.h" 2 3 4 | |
14197 | ||
14198 | ||
14199 | ||
14200 | #define NBBY CHAR_BIT | |
14201 | ||
14202 | #define NGROUPS NGROUPS_MAX | |
14203 | ||
14204 | #define MAXSYMLINKS 20 | |
14205 | #define CANBSIZ MAX_CANON | |
14206 | #define NCARGS ARG_MAX | |
14207 | #define MAXPATHLEN PATH_MAX | |
14208 | ||
14209 | ||
14210 | ||
14211 | #define NOFILE 256 | |
14212 | ||
14213 | ||
14214 | ||
14215 | ||
14216 | ||
14217 | #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) | |
14218 | #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) | |
14219 | #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) | |
14220 | #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) | |
14221 | ||
14222 | ||
14223 | ||
14224 | #define howmany(x,y) (((x) + ((y) - 1)) / (y)) | |
14225 | ||
14226 | ||
14227 | #define roundup(x,y) (__builtin_constant_p (y) && powerof2 (y) ? (((x) + (y) - 1) & ~((y) - 1)) : ((((x) + ((y) - 1)) / (y)) * (y))) | |
14228 | ||
14229 | ||
14230 | ||
14231 | ||
14232 | ||
14233 | #define powerof2(x) ((((x) - 1) & (x)) == 0) | |
14234 | ||
14235 | ||
14236 | #define MIN(a,b) (((a)<(b))?(a):(b)) | |
14237 | #define MAX(a,b) (((a)>(b))?(a):(b)) | |
14238 | ||
14239 | ||
14240 | ||
14241 | #define DEV_BSIZE 512 | |
14242 | # 99 "../../src/include/platform.h" 2 | |
14243 | ||
14244 | ||
14245 | # 1 "/usr/include/sys/time.h" 1 3 4 | |
14246 | # 21 "/usr/include/sys/time.h" 3 4 | |
14247 | #define _SYS_TIME_H 1 | |
14248 | ||
14249 | ||
14250 | ||
14251 | ||
14252 | #define __need_time_t | |
14253 | ||
14254 | #define __need_timeval | |
14255 | # 1 "/usr/include/bits/time.h" 1 3 4 | |
14256 | # 62 "/usr/include/bits/time.h" 3 4 | |
14257 | #undef __need_timeval | |
14258 | # 30 "/usr/include/sys/time.h" 2 3 4 | |
14259 | # 39 "/usr/include/sys/time.h" 3 4 | |
14260 | ||
14261 | ||
14262 | ||
14263 | ||
14264 | #define TIMEVAL_TO_TIMESPEC(tv,ts) { (ts)->tv_sec = (tv)->tv_sec; (ts)->tv_nsec = (tv)->tv_usec * 1000; } | |
14265 | ||
14266 | ||
14267 | ||
14268 | #define TIMESPEC_TO_TIMEVAL(tv,ts) { (tv)->tv_sec = (ts)->tv_sec; (tv)->tv_usec = (ts)->tv_nsec / 1000; } | |
14269 | # 57 "/usr/include/sys/time.h" 3 4 | |
14270 | struct timezone | |
14271 | { | |
14272 | int tz_minuteswest; | |
14273 | int tz_dsttime; | |
14274 | }; | |
14275 | ||
14276 | typedef struct timezone *__restrict __timezone_ptr_t; | |
14277 | # 73 "/usr/include/sys/time.h" 3 4 | |
14278 | extern int gettimeofday (struct timeval *__restrict __tv, | |
14279 | __timezone_ptr_t __tz) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
14280 | ||
14281 | ||
14282 | ||
14283 | ||
14284 | extern int settimeofday (__const struct timeval *__tv, | |
14285 | __const struct timezone *__tz) | |
14286 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
14287 | ||
14288 | ||
14289 | ||
14290 | ||
14291 | ||
14292 | extern int adjtime (__const struct timeval *__delta, | |
14293 | struct timeval *__olddelta) __attribute__ ((__nothrow__)); | |
14294 | ||
14295 | ||
14296 | ||
14297 | ||
14298 | enum __itimer_which | |
14299 | { | |
14300 | ||
14301 | ITIMER_REAL = 0, | |
14302 | #define ITIMER_REAL ITIMER_REAL | |
14303 | ||
14304 | ITIMER_VIRTUAL = 1, | |
14305 | #define ITIMER_VIRTUAL ITIMER_VIRTUAL | |
14306 | ||
14307 | ||
14308 | ITIMER_PROF = 2 | |
14309 | #define ITIMER_PROF ITIMER_PROF | |
14310 | }; | |
14311 | ||
14312 | ||
14313 | ||
14314 | struct itimerval | |
14315 | { | |
14316 | ||
14317 | struct timeval it_interval; | |
14318 | ||
14319 | struct timeval it_value; | |
14320 | }; | |
14321 | ||
14322 | ||
14323 | ||
14324 | ||
14325 | typedef enum __itimer_which __itimer_which_t; | |
14326 | ||
14327 | ||
14328 | ||
14329 | ||
14330 | ||
14331 | ||
14332 | extern int getitimer (__itimer_which_t __which, | |
14333 | struct itimerval *__value) __attribute__ ((__nothrow__)); | |
14334 | ||
14335 | ||
14336 | ||
14337 | ||
14338 | extern int setitimer (__itimer_which_t __which, | |
14339 | __const struct itimerval *__restrict __new, | |
14340 | struct itimerval *__restrict __old) __attribute__ ((__nothrow__)); | |
14341 | ||
14342 | ||
14343 | ||
14344 | ||
14345 | extern int utimes (__const char *__file, __const struct timeval __tvp[2]) | |
14346 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
14347 | ||
14348 | ||
14349 | ||
14350 | extern int lutimes (__const char *__file, __const struct timeval __tvp[2]) | |
14351 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
14352 | ||
14353 | ||
14354 | extern int futimes (int __fd, __const struct timeval __tvp[2]) __attribute__ ((__nothrow__)); | |
14355 | ||
14356 | ||
14357 | ||
14358 | ||
14359 | ||
14360 | ||
14361 | extern int futimesat (int __fd, __const char *__file, | |
14362 | __const struct timeval __tvp[2]) __attribute__ ((__nothrow__)); | |
14363 | ||
14364 | ||
14365 | ||
14366 | ||
14367 | ||
14368 | ||
14369 | #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) | |
14370 | #define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) | |
14371 | #define timercmp(a,b,CMP) (((a)->tv_sec == (b)->tv_sec) ? ((a)->tv_usec CMP (b)->tv_usec) : ((a)->tv_sec CMP (b)->tv_sec)) | |
14372 | ||
14373 | ||
14374 | ||
14375 | #define timeradd(a,b,result) do { (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; if ((result)->tv_usec >= 1000000) { ++(result)->tv_sec; (result)->tv_usec -= 1000000; } } while (0) | |
14376 | # 180 "/usr/include/sys/time.h" 3 4 | |
14377 | #define timersub(a,b,result) do { (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; if ((result)->tv_usec < 0) { --(result)->tv_sec; (result)->tv_usec += 1000000; } } while (0) | |
14378 | # 191 "/usr/include/sys/time.h" 3 4 | |
14379 | ||
14380 | # 102 "../../src/include/platform.h" 2 | |
14381 | # 131 "../../src/include/platform.h" | |
14382 | # 1 "/usr/include/net/if.h" 1 3 4 | |
14383 | # 21 "/usr/include/net/if.h" 3 4 | |
14384 | #define _NET_IF_H 1 | |
14385 | # 32 "/usr/include/net/if.h" 3 4 | |
14386 | #define IF_NAMESIZE 16 | |
14387 | ||
14388 | struct if_nameindex | |
14389 | { | |
14390 | unsigned int if_index; | |
14391 | char *if_name; | |
14392 | }; | |
14393 | ||
14394 | ||
14395 | ||
14396 | ||
14397 | enum | |
14398 | { | |
14399 | IFF_UP = 0x1, | |
14400 | #define IFF_UP IFF_UP | |
14401 | IFF_BROADCAST = 0x2, | |
14402 | #define IFF_BROADCAST IFF_BROADCAST | |
14403 | IFF_DEBUG = 0x4, | |
14404 | #define IFF_DEBUG IFF_DEBUG | |
14405 | IFF_LOOPBACK = 0x8, | |
14406 | #define IFF_LOOPBACK IFF_LOOPBACK | |
14407 | IFF_POINTOPOINT = 0x10, | |
14408 | #define IFF_POINTOPOINT IFF_POINTOPOINT | |
14409 | IFF_NOTRAILERS = 0x20, | |
14410 | #define IFF_NOTRAILERS IFF_NOTRAILERS | |
14411 | IFF_RUNNING = 0x40, | |
14412 | #define IFF_RUNNING IFF_RUNNING | |
14413 | IFF_NOARP = 0x80, | |
14414 | #define IFF_NOARP IFF_NOARP | |
14415 | IFF_PROMISC = 0x100, | |
14416 | #define IFF_PROMISC IFF_PROMISC | |
14417 | ||
14418 | ||
14419 | IFF_ALLMULTI = 0x200, | |
14420 | #define IFF_ALLMULTI IFF_ALLMULTI | |
14421 | ||
14422 | IFF_MASTER = 0x400, | |
14423 | #define IFF_MASTER IFF_MASTER | |
14424 | IFF_SLAVE = 0x800, | |
14425 | #define IFF_SLAVE IFF_SLAVE | |
14426 | ||
14427 | IFF_MULTICAST = 0x1000, | |
14428 | #define IFF_MULTICAST IFF_MULTICAST | |
14429 | ||
14430 | IFF_PORTSEL = 0x2000, | |
14431 | #define IFF_PORTSEL IFF_PORTSEL | |
14432 | IFF_AUTOMEDIA = 0x4000, | |
14433 | #define IFF_AUTOMEDIA IFF_AUTOMEDIA | |
14434 | IFF_DYNAMIC = 0x8000 | |
14435 | #define IFF_DYNAMIC IFF_DYNAMIC | |
14436 | }; | |
14437 | ||
14438 | ||
14439 | ||
14440 | ||
14441 | ||
14442 | ||
14443 | struct ifaddr | |
14444 | { | |
14445 | struct sockaddr ifa_addr; | |
14446 | union | |
14447 | { | |
14448 | struct sockaddr ifu_broadaddr; | |
14449 | struct sockaddr ifu_dstaddr; | |
14450 | } ifa_ifu; | |
14451 | struct iface *ifa_ifp; | |
14452 | struct ifaddr *ifa_next; | |
14453 | }; | |
14454 | ||
14455 | #define ifa_broadaddr ifa_ifu.ifu_broadaddr | |
14456 | #define ifa_dstaddr ifa_ifu.ifu_dstaddr | |
14457 | # 112 "/usr/include/net/if.h" 3 4 | |
14458 | struct ifmap | |
14459 | { | |
14460 | unsigned long int mem_start; | |
14461 | unsigned long int mem_end; | |
14462 | unsigned short int base_addr; | |
14463 | unsigned char irq; | |
14464 | unsigned char dma; | |
14465 | unsigned char port; | |
14466 | ||
14467 | }; | |
14468 | ||
14469 | ||
14470 | ||
14471 | ||
14472 | ||
14473 | struct ifreq | |
14474 | { | |
14475 | #define IFHWADDRLEN 6 | |
14476 | #define IFNAMSIZ IF_NAMESIZE | |
14477 | union | |
14478 | { | |
14479 | char ifrn_name[16]; | |
14480 | } ifr_ifrn; | |
14481 | ||
14482 | union | |
14483 | { | |
14484 | struct sockaddr ifru_addr; | |
14485 | struct sockaddr ifru_dstaddr; | |
14486 | struct sockaddr ifru_broadaddr; | |
14487 | struct sockaddr ifru_netmask; | |
14488 | struct sockaddr ifru_hwaddr; | |
14489 | short int ifru_flags; | |
14490 | int ifru_ivalue; | |
14491 | int ifru_mtu; | |
14492 | struct ifmap ifru_map; | |
14493 | char ifru_slave[16]; | |
14494 | char ifru_newname[16]; | |
14495 | __caddr_t ifru_data; | |
14496 | } ifr_ifru; | |
14497 | }; | |
14498 | #define ifr_name ifr_ifrn.ifrn_name | |
14499 | #define ifr_hwaddr ifr_ifru.ifru_hwaddr | |
14500 | #define ifr_addr ifr_ifru.ifru_addr | |
14501 | #define ifr_dstaddr ifr_ifru.ifru_dstaddr | |
14502 | #define ifr_broadaddr ifr_ifru.ifru_broadaddr | |
14503 | #define ifr_netmask ifr_ifru.ifru_netmask | |
14504 | #define ifr_flags ifr_ifru.ifru_flags | |
14505 | #define ifr_metric ifr_ifru.ifru_ivalue | |
14506 | #define ifr_mtu ifr_ifru.ifru_mtu | |
14507 | #define ifr_map ifr_ifru.ifru_map | |
14508 | #define ifr_slave ifr_ifru.ifru_slave | |
14509 | #define ifr_data ifr_ifru.ifru_data | |
14510 | #define ifr_ifindex ifr_ifru.ifru_ivalue | |
14511 | #define ifr_bandwidth ifr_ifru.ifru_ivalue | |
14512 | #define ifr_qlen ifr_ifru.ifru_ivalue | |
14513 | #define ifr_newname ifr_ifru.ifru_newname | |
14514 | #define _IOT_ifreq _IOT(_IOTS(char),IFNAMSIZ,_IOTS(char),16,0,0) | |
14515 | #define _IOT_ifreq_short _IOT(_IOTS(char),IFNAMSIZ,_IOTS(short),1,0,0) | |
14516 | #define _IOT_ifreq_int _IOT(_IOTS(char),IFNAMSIZ,_IOTS(int),1,0,0) | |
14517 | ||
14518 | ||
14519 | ||
14520 | ||
14521 | ||
14522 | ||
14523 | struct ifconf | |
14524 | { | |
14525 | int ifc_len; | |
14526 | union | |
14527 | { | |
14528 | __caddr_t ifcu_buf; | |
14529 | struct ifreq *ifcu_req; | |
14530 | } ifc_ifcu; | |
14531 | }; | |
14532 | #define ifc_buf ifc_ifcu.ifcu_buf | |
14533 | #define ifc_req ifc_ifcu.ifcu_req | |
14534 | #define _IOT_ifconf _IOT(_IOTS(struct ifconf),1,0,0,0,0) | |
14535 | ||
14536 | ||
14537 | ||
14538 | ||
14539 | ||
14540 | extern unsigned int if_nametoindex (__const char *__ifname) __attribute__ ((__nothrow__)); | |
14541 | extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __attribute__ ((__nothrow__)); | |
14542 | ||
14543 | ||
14544 | extern struct if_nameindex *if_nameindex (void) __attribute__ ((__nothrow__)); | |
14545 | ||
14546 | ||
14547 | extern void if_freenameindex (struct if_nameindex *__ptr) __attribute__ ((__nothrow__)); | |
14548 | ||
14549 | ||
14550 | # 132 "../../src/include/platform.h" 2 | |
14551 | # 142 "../../src/include/platform.h" | |
14552 | # 1 "/usr/include/errno.h" 1 3 4 | |
14553 | # 72 "/usr/include/errno.h" 3 4 | |
14554 | #undef __need_error_t | |
14555 | # 143 "../../src/include/platform.h" 2 | |
14556 | ||
14557 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 1 3 4 | |
14558 | # 145 "../../src/include/platform.h" 2 | |
14559 | ||
14560 | ||
14561 | # 1 "/usr/include/ctype.h" 1 3 4 | |
14562 | # 25 "/usr/include/ctype.h" 3 4 | |
14563 | #define _CTYPE_H 1 | |
14564 | ||
14565 | ||
14566 | ||
14567 | ||
14568 | ||
14569 | # 45 "/usr/include/ctype.h" 3 4 | |
14570 | #define _ISbit(bit) ((bit) < 8 ? ((1 << (bit)) << 8) : ((1 << (bit)) >> 8)) | |
14571 | ||
14572 | ||
14573 | enum | |
14574 | { | |
14575 | _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), | |
14576 | _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), | |
14577 | _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), | |
14578 | _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), | |
14579 | _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), | |
14580 | _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), | |
14581 | _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), | |
14582 | _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), | |
14583 | _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), | |
14584 | _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), | |
14585 | _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), | |
14586 | _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) | |
14587 | }; | |
14588 | # 81 "/usr/include/ctype.h" 3 4 | |
14589 | extern __const unsigned short int **__ctype_b_loc (void) | |
14590 | __attribute__ ((__const)); | |
14591 | extern __const __int32_t **__ctype_tolower_loc (void) | |
14592 | __attribute__ ((__const)); | |
14593 | extern __const __int32_t **__ctype_toupper_loc (void) | |
14594 | __attribute__ ((__const)); | |
14595 | ||
14596 | #define __isctype(c,type) ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type) | |
14597 | ||
14598 | ||
14599 | #define __isascii(c) (((c) & ~0x7f) == 0) | |
14600 | #define __toascii(c) ((c) & 0x7f) | |
14601 | ||
14602 | #define __exctype(name) extern int name (int) __THROW | |
14603 | ||
14604 | ||
14605 | ||
14606 | ||
14607 | ||
14608 | ||
14609 | ||
14610 | extern int isalnum (int) __attribute__ ((__nothrow__)); | |
14611 | extern int isalpha (int) __attribute__ ((__nothrow__)); | |
14612 | extern int iscntrl (int) __attribute__ ((__nothrow__)); | |
14613 | extern int isdigit (int) __attribute__ ((__nothrow__)); | |
14614 | extern int islower (int) __attribute__ ((__nothrow__)); | |
14615 | extern int isgraph (int) __attribute__ ((__nothrow__)); | |
14616 | extern int isprint (int) __attribute__ ((__nothrow__)); | |
14617 | extern int ispunct (int) __attribute__ ((__nothrow__)); | |
14618 | extern int isspace (int) __attribute__ ((__nothrow__)); | |
14619 | extern int isupper (int) __attribute__ ((__nothrow__)); | |
14620 | extern int isxdigit (int) __attribute__ ((__nothrow__)); | |
14621 | ||
14622 | ||
14623 | ||
14624 | extern int tolower (int __c) __attribute__ ((__nothrow__)); | |
14625 | ||
14626 | ||
14627 | extern int toupper (int __c) __attribute__ ((__nothrow__)); | |
14628 | ||
14629 | ||
14630 | ||
14631 | ||
14632 | ||
14633 | ||
14634 | ||
14635 | ||
14636 | extern int isblank (int) __attribute__ ((__nothrow__)); | |
14637 | ||
14638 | ||
14639 | ||
14640 | ||
14641 | ||
14642 | ||
14643 | extern int isctype (int __c, int __mask) __attribute__ ((__nothrow__)); | |
14644 | ||
14645 | ||
14646 | ||
14647 | ||
14648 | ||
14649 | ||
14650 | extern int isascii (int __c) __attribute__ ((__nothrow__)); | |
14651 | ||
14652 | ||
14653 | ||
14654 | extern int toascii (int __c) __attribute__ ((__nothrow__)); | |
14655 | ||
14656 | ||
14657 | ||
14658 | extern int _toupper (int) __attribute__ ((__nothrow__)); | |
14659 | extern int _tolower (int) __attribute__ ((__nothrow__)); | |
14660 | ||
14661 | ||
14662 | ||
14663 | #define __tobody(c,f,a,args) (__extension__ ({ int __res; if (sizeof (c) > 1) { if (__builtin_constant_p (c)) { int __c = (c); __res = __c < -128 || __c > 255 ? __c : (a)[__c]; } else __res = f args; } else __res = (a)[(int) (c)]; __res; })) | |
14664 | # 173 "/usr/include/ctype.h" 3 4 | |
14665 | #define isalnum(c) __isctype((c), _ISalnum) | |
14666 | #define isalpha(c) __isctype((c), _ISalpha) | |
14667 | #define iscntrl(c) __isctype((c), _IScntrl) | |
14668 | #define isdigit(c) __isctype((c), _ISdigit) | |
14669 | #define islower(c) __isctype((c), _ISlower) | |
14670 | #define isgraph(c) __isctype((c), _ISgraph) | |
14671 | #define isprint(c) __isctype((c), _ISprint) | |
14672 | #define ispunct(c) __isctype((c), _ISpunct) | |
14673 | #define isspace(c) __isctype((c), _ISspace) | |
14674 | #define isupper(c) __isctype((c), _ISupper) | |
14675 | #define isxdigit(c) __isctype((c), _ISxdigit) | |
14676 | ||
14677 | ||
14678 | #define isblank(c) __isctype((c), _ISblank) | |
14679 | # 204 "/usr/include/ctype.h" 3 4 | |
14680 | #define tolower(c) __tobody (c, tolower, *__ctype_tolower_loc (), (c)) | |
14681 | #define toupper(c) __tobody (c, toupper, *__ctype_toupper_loc (), (c)) | |
14682 | ||
14683 | ||
14684 | ||
14685 | #define isascii(c) __isascii (c) | |
14686 | #define toascii(c) __toascii (c) | |
14687 | ||
14688 | #define _tolower(c) ((int) (*__ctype_tolower_loc ())[(int) (c)]) | |
14689 | #define _toupper(c) ((int) (*__ctype_toupper_loc ())[(int) (c)]) | |
14690 | # 237 "/usr/include/ctype.h" 3 4 | |
14691 | #define __isctype_l(c,type,locale) ((locale)->__ctype_b[(int) (c)] & (unsigned short int) type) | |
14692 | ||
14693 | ||
14694 | #define __exctype_l(name) extern int name (int, __locale_t) __THROW | |
14695 | ||
14696 | ||
14697 | ||
14698 | ||
14699 | ||
14700 | ||
14701 | extern int isalnum_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14702 | extern int isalpha_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14703 | extern int iscntrl_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14704 | extern int isdigit_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14705 | extern int islower_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14706 | extern int isgraph_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14707 | extern int isprint_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14708 | extern int ispunct_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14709 | extern int isspace_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14710 | extern int isupper_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14711 | extern int isxdigit_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14712 | ||
14713 | extern int isblank_l (int, __locale_t) __attribute__ ((__nothrow__)); | |
14714 | ||
14715 | ||
14716 | ||
14717 | extern int __tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); | |
14718 | extern int tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); | |
14719 | ||
14720 | ||
14721 | extern int __toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); | |
14722 | extern int toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); | |
14723 | ||
14724 | ||
14725 | #define __tolower_l(c,locale) __tobody (c, __tolower_l, (locale)->__ctype_tolower, (c, locale)) | |
14726 | ||
14727 | #define __toupper_l(c,locale) __tobody (c, __toupper_l, (locale)->__ctype_toupper, (c, locale)) | |
14728 | ||
14729 | #define tolower_l(c,locale) __tolower_l ((c), (locale)) | |
14730 | #define toupper_l(c,locale) __toupper_l ((c), (locale)) | |
14731 | ||
14732 | ||
14733 | ||
14734 | ||
14735 | #define __isalnum_l(c,l) __isctype_l((c), _ISalnum, (l)) | |
14736 | #define __isalpha_l(c,l) __isctype_l((c), _ISalpha, (l)) | |
14737 | #define __iscntrl_l(c,l) __isctype_l((c), _IScntrl, (l)) | |
14738 | #define __isdigit_l(c,l) __isctype_l((c), _ISdigit, (l)) | |
14739 | #define __islower_l(c,l) __isctype_l((c), _ISlower, (l)) | |
14740 | #define __isgraph_l(c,l) __isctype_l((c), _ISgraph, (l)) | |
14741 | #define __isprint_l(c,l) __isctype_l((c), _ISprint, (l)) | |
14742 | #define __ispunct_l(c,l) __isctype_l((c), _ISpunct, (l)) | |
14743 | #define __isspace_l(c,l) __isctype_l((c), _ISspace, (l)) | |
14744 | #define __isupper_l(c,l) __isctype_l((c), _ISupper, (l)) | |
14745 | #define __isxdigit_l(c,l) __isctype_l((c), _ISxdigit, (l)) | |
14746 | ||
14747 | #define __isblank_l(c,l) __isctype_l((c), _ISblank, (l)) | |
14748 | ||
14749 | ||
14750 | #define __isascii_l(c,l) ((l), __isascii (c)) | |
14751 | #define __toascii_l(c,l) ((l), __toascii (c)) | |
14752 | ||
14753 | ||
14754 | #define isalnum_l(c,l) __isalnum_l ((c), (l)) | |
14755 | #define isalpha_l(c,l) __isalpha_l ((c), (l)) | |
14756 | #define iscntrl_l(c,l) __iscntrl_l ((c), (l)) | |
14757 | #define isdigit_l(c,l) __isdigit_l ((c), (l)) | |
14758 | #define islower_l(c,l) __islower_l ((c), (l)) | |
14759 | #define isgraph_l(c,l) __isgraph_l ((c), (l)) | |
14760 | #define isprint_l(c,l) __isprint_l ((c), (l)) | |
14761 | #define ispunct_l(c,l) __ispunct_l ((c), (l)) | |
14762 | #define isspace_l(c,l) __isspace_l ((c), (l)) | |
14763 | #define isupper_l(c,l) __isupper_l ((c), (l)) | |
14764 | #define isxdigit_l(c,l) __isxdigit_l ((c), (l)) | |
14765 | ||
14766 | #define isblank_l(c,l) __isblank_l ((c), (l)) | |
14767 | ||
14768 | ||
14769 | #define isascii_l(c,l) __isascii_l ((c), (l)) | |
14770 | #define toascii_l(c,l) __toascii_l ((c), (l)) | |
14771 | ||
14772 | ||
14773 | ||
14774 | ||
14775 | ||
14776 | ||
14777 | ||
14778 | # 148 "../../src/include/platform.h" 2 | |
14779 | ||
14780 | ||
14781 | # 1 "/usr/include/locale.h" 1 3 4 | |
14782 | # 24 "/usr/include/locale.h" 3 4 | |
14783 | #define _LOCALE_H 1 | |
14784 | ||
14785 | ||
14786 | ||
14787 | #define __need_NULL | |
14788 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
14789 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
14790 | #undef NULL | |
14791 | ||
14792 | ||
14793 | ||
14794 | ||
14795 | #define NULL ((void *)0) | |
14796 | ||
14797 | ||
14798 | ||
14799 | ||
14800 | ||
14801 | #undef __need_NULL | |
14802 | # 30 "/usr/include/locale.h" 2 3 4 | |
14803 | # 1 "/usr/include/bits/locale.h" 1 3 4 | |
14804 | # 25 "/usr/include/bits/locale.h" 3 4 | |
14805 | #define _BITS_LOCALE_H 1 | |
14806 | ||
14807 | enum | |
14808 | { | |
14809 | __LC_CTYPE = 0, | |
14810 | __LC_NUMERIC = 1, | |
14811 | __LC_TIME = 2, | |
14812 | __LC_COLLATE = 3, | |
14813 | __LC_MONETARY = 4, | |
14814 | __LC_MESSAGES = 5, | |
14815 | __LC_ALL = 6, | |
14816 | __LC_PAPER = 7, | |
14817 | __LC_NAME = 8, | |
14818 | __LC_ADDRESS = 9, | |
14819 | __LC_TELEPHONE = 10, | |
14820 | __LC_MEASUREMENT = 11, | |
14821 | __LC_IDENTIFICATION = 12 | |
14822 | }; | |
14823 | # 31 "/usr/include/locale.h" 2 3 4 | |
14824 | ||
14825 | ||
14826 | ||
14827 | ||
14828 | ||
14829 | #define LC_CTYPE __LC_CTYPE | |
14830 | #define LC_NUMERIC __LC_NUMERIC | |
14831 | #define LC_TIME __LC_TIME | |
14832 | #define LC_COLLATE __LC_COLLATE | |
14833 | #define LC_MONETARY __LC_MONETARY | |
14834 | #define LC_MESSAGES __LC_MESSAGES | |
14835 | #define LC_ALL __LC_ALL | |
14836 | #define LC_PAPER __LC_PAPER | |
14837 | #define LC_NAME __LC_NAME | |
14838 | #define LC_ADDRESS __LC_ADDRESS | |
14839 | #define LC_TELEPHONE __LC_TELEPHONE | |
14840 | #define LC_MEASUREMENT __LC_MEASUREMENT | |
14841 | #define LC_IDENTIFICATION __LC_IDENTIFICATION | |
14842 | ||
14843 | ||
14844 | ||
14845 | struct lconv | |
14846 | { | |
14847 | ||
14848 | ||
14849 | char *decimal_point; | |
14850 | char *thousands_sep; | |
14851 | ||
14852 | ||
14853 | ||
14854 | ||
14855 | ||
14856 | char *grouping; | |
14857 | ||
14858 | ||
14859 | ||
14860 | ||
14861 | ||
14862 | char *int_curr_symbol; | |
14863 | char *currency_symbol; | |
14864 | char *mon_decimal_point; | |
14865 | char *mon_thousands_sep; | |
14866 | char *mon_grouping; | |
14867 | char *positive_sign; | |
14868 | char *negative_sign; | |
14869 | char int_frac_digits; | |
14870 | char frac_digits; | |
14871 | ||
14872 | char p_cs_precedes; | |
14873 | ||
14874 | char p_sep_by_space; | |
14875 | ||
14876 | char n_cs_precedes; | |
14877 | ||
14878 | char n_sep_by_space; | |
14879 | ||
14880 | ||
14881 | ||
14882 | ||
14883 | ||
14884 | ||
14885 | char p_sign_posn; | |
14886 | char n_sign_posn; | |
14887 | ||
14888 | ||
14889 | char int_p_cs_precedes; | |
14890 | ||
14891 | char int_p_sep_by_space; | |
14892 | ||
14893 | char int_n_cs_precedes; | |
14894 | ||
14895 | char int_n_sep_by_space; | |
14896 | ||
14897 | ||
14898 | ||
14899 | ||
14900 | ||
14901 | ||
14902 | char int_p_sign_posn; | |
14903 | char int_n_sign_posn; | |
14904 | # 119 "/usr/include/locale.h" 3 4 | |
14905 | }; | |
14906 | ||
14907 | ||
14908 | ||
14909 | ||
14910 | ||
14911 | extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__)); | |
14912 | ||
14913 | ||
14914 | extern struct lconv *localeconv (void) __attribute__ ((__nothrow__)); | |
14915 | ||
14916 | ||
14917 | # 148 "/usr/include/locale.h" 3 4 | |
14918 | typedef __locale_t locale_t; | |
14919 | ||
14920 | ||
14921 | ||
14922 | ||
14923 | ||
14924 | extern __locale_t newlocale (int __category_mask, __const char *__locale, | |
14925 | __locale_t __base) __attribute__ ((__nothrow__)); | |
14926 | ||
14927 | ||
14928 | ||
14929 | ||
14930 | ||
14931 | #define LC_CTYPE_MASK (1 << __LC_CTYPE) | |
14932 | #define LC_NUMERIC_MASK (1 << __LC_NUMERIC) | |
14933 | #define LC_TIME_MASK (1 << __LC_TIME) | |
14934 | #define LC_COLLATE_MASK (1 << __LC_COLLATE) | |
14935 | #define LC_MONETARY_MASK (1 << __LC_MONETARY) | |
14936 | #define LC_MESSAGES_MASK (1 << __LC_MESSAGES) | |
14937 | #define LC_PAPER_MASK (1 << __LC_PAPER) | |
14938 | #define LC_NAME_MASK (1 << __LC_NAME) | |
14939 | #define LC_ADDRESS_MASK (1 << __LC_ADDRESS) | |
14940 | #define LC_TELEPHONE_MASK (1 << __LC_TELEPHONE) | |
14941 | #define LC_MEASUREMENT_MASK (1 << __LC_MEASUREMENT) | |
14942 | #define LC_IDENTIFICATION_MASK (1 << __LC_IDENTIFICATION) | |
14943 | #define LC_ALL_MASK (LC_CTYPE_MASK | LC_NUMERIC_MASK | LC_TIME_MASK | LC_COLLATE_MASK | LC_MONETARY_MASK | LC_MESSAGES_MASK | LC_PAPER_MASK | LC_NAME_MASK | LC_ADDRESS_MASK | LC_TELEPHONE_MASK | LC_MEASUREMENT_MASK | LC_IDENTIFICATION_MASK ) | |
14944 | # 189 "/usr/include/locale.h" 3 4 | |
14945 | extern __locale_t duplocale (__locale_t __dataset) __attribute__ ((__nothrow__)); | |
14946 | ||
14947 | ||
14948 | ||
14949 | extern void freelocale (__locale_t __dataset) __attribute__ ((__nothrow__)); | |
14950 | ||
14951 | ||
14952 | ||
14953 | ||
14954 | ||
14955 | ||
14956 | extern __locale_t uselocale (__locale_t __dataset) __attribute__ ((__nothrow__)); | |
14957 | ||
14958 | ||
14959 | ||
14960 | #define LC_GLOBAL_LOCALE ((__locale_t) -1L) | |
14961 | ||
14962 | ||
14963 | ||
14964 | ||
14965 | # 151 "../../src/include/platform.h" 2 | |
14966 | # 1 "../../src/include/gettext.h" 1 | |
14967 | # 20 "../../src/include/gettext.h" | |
14968 | #define _LIBGETTEXT_H 1 | |
14969 | # 45 "../../src/include/gettext.h" | |
14970 | #define gettext(Msgid) ((const char *) (Msgid)) | |
14971 | #define dgettext(Domainname,Msgid) ((const char *) (Msgid)) | |
14972 | #define dcgettext(Domainname,Msgid,Category) ((const char *) (Msgid)) | |
14973 | #define ngettext(Msgid1,Msgid2,N) ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) | |
14974 | ||
14975 | #define dngettext(Domainname,Msgid1,Msgid2,N) ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) | |
14976 | ||
14977 | #define dcngettext(Domainname,Msgid1,Msgid2,N,Category) ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) | |
14978 | ||
14979 | ||
14980 | ||
14981 | #define textdomain(Domainname) | |
14982 | #define bindtextdomain(Domainname,Dirname) | |
14983 | #define bind_textdomain_codeset(Domainname,Codeset) ((const char *) (Codeset)) | |
14984 | # 69 "../../src/include/gettext.h" | |
14985 | #define gettext_noop(String) String | |
14986 | # 152 "../../src/include/platform.h" 2 | |
14987 | ||
14988 | ||
14989 | ||
14990 | ||
14991 | #define _(String) dgettext("GNUnet",String) | |
14992 | # 165 "../../src/include/platform.h" | |
14993 | # 1 "/usr/include/sys/mman.h" 1 3 4 | |
14994 | # 21 "/usr/include/sys/mman.h" 3 4 | |
14995 | #define _SYS_MMAN_H 1 | |
14996 | ||
14997 | ||
14998 | ||
14999 | #define __need_size_t | |
15000 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
15001 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
15002 | #undef __need_size_t | |
15003 | # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
15004 | #undef __need_NULL | |
15005 | # 27 "/usr/include/sys/mman.h" 2 3 4 | |
15006 | # 42 "/usr/include/sys/mman.h" 3 4 | |
15007 | # 1 "/usr/include/bits/mman.h" 1 3 4 | |
15008 | # 33 "/usr/include/bits/mman.h" 3 4 | |
15009 | #define PROT_READ 0x1 | |
15010 | #define PROT_WRITE 0x2 | |
15011 | #define PROT_EXEC 0x4 | |
15012 | #define PROT_NONE 0x0 | |
15013 | #define PROT_GROWSDOWN 0x01000000 | |
15014 | ||
15015 | #define PROT_GROWSUP 0x02000000 | |
15016 | ||
15017 | ||
15018 | ||
15019 | #define MAP_SHARED 0x01 | |
15020 | #define MAP_PRIVATE 0x02 | |
15021 | ||
15022 | #define MAP_TYPE 0x0f | |
15023 | ||
15024 | ||
15025 | ||
15026 | #define MAP_FIXED 0x10 | |
15027 | ||
15028 | #define MAP_FILE 0 | |
15029 | #define MAP_ANONYMOUS 0x20 | |
15030 | #define MAP_ANON MAP_ANONYMOUS | |
15031 | ||
15032 | ||
15033 | ||
15034 | ||
15035 | #define MAP_GROWSDOWN 0x00100 | |
15036 | #define MAP_DENYWRITE 0x00800 | |
15037 | #define MAP_EXECUTABLE 0x01000 | |
15038 | #define MAP_LOCKED 0x02000 | |
15039 | #define MAP_NORESERVE 0x04000 | |
15040 | #define MAP_POPULATE 0x08000 | |
15041 | #define MAP_NONBLOCK 0x10000 | |
15042 | ||
15043 | ||
15044 | ||
15045 | #define MS_ASYNC 1 | |
15046 | #define MS_SYNC 4 | |
15047 | #define MS_INVALIDATE 2 | |
15048 | ||
15049 | ||
15050 | #define MCL_CURRENT 1 | |
15051 | #define MCL_FUTURE 2 | |
15052 | ||
15053 | ||
15054 | ||
15055 | ||
15056 | #define MREMAP_MAYMOVE 1 | |
15057 | #define MREMAP_FIXED 2 | |
15058 | ||
15059 | ||
15060 | ||
15061 | ||
15062 | #define MADV_NORMAL 0 | |
15063 | #define MADV_RANDOM 1 | |
15064 | #define MADV_SEQUENTIAL 2 | |
15065 | #define MADV_WILLNEED 3 | |
15066 | #define MADV_DONTNEED 4 | |
15067 | #define MADV_REMOVE 5 | |
15068 | #define MADV_DONTFORK 10 | |
15069 | #define MADV_DOFORK 11 | |
15070 | ||
15071 | ||
15072 | ||
15073 | ||
15074 | #define POSIX_MADV_NORMAL 0 | |
15075 | #define POSIX_MADV_RANDOM 1 | |
15076 | #define POSIX_MADV_SEQUENTIAL 2 | |
15077 | #define POSIX_MADV_WILLNEED 3 | |
15078 | #define POSIX_MADV_DONTNEED 4 | |
15079 | # 43 "/usr/include/sys/mman.h" 2 3 4 | |
15080 | ||
15081 | ||
15082 | #define MAP_FAILED ((void *) -1) | |
15083 | ||
15084 | ||
15085 | # 62 "/usr/include/sys/mman.h" 3 4 | |
15086 | extern void * mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) __asm__ ("" "mmap64") __attribute__ ((__nothrow__)); | |
15087 | # 71 "/usr/include/sys/mman.h" 3 4 | |
15088 | extern void *mmap64 (void *__addr, size_t __len, int __prot, | |
15089 | int __flags, int __fd, __off64_t __offset) __attribute__ ((__nothrow__)); | |
15090 | ||
15091 | ||
15092 | ||
15093 | ||
15094 | extern int munmap (void *__addr, size_t __len) __attribute__ ((__nothrow__)); | |
15095 | ||
15096 | ||
15097 | ||
15098 | ||
15099 | extern int mprotect (void *__addr, size_t __len, int __prot) __attribute__ ((__nothrow__)); | |
15100 | ||
15101 | ||
15102 | ||
15103 | ||
15104 | ||
15105 | ||
15106 | ||
15107 | extern int msync (void *__addr, size_t __len, int __flags); | |
15108 | ||
15109 | ||
15110 | ||
15111 | ||
15112 | extern int madvise (void *__addr, size_t __len, int __advice) __attribute__ ((__nothrow__)); | |
15113 | ||
15114 | ||
15115 | ||
15116 | extern int posix_madvise (void *__addr, size_t __len, int __advice) __attribute__ ((__nothrow__)); | |
15117 | ||
15118 | ||
15119 | ||
15120 | ||
15121 | extern int mlock (__const void *__addr, size_t __len) __attribute__ ((__nothrow__)); | |
15122 | ||
15123 | ||
15124 | extern int munlock (__const void *__addr, size_t __len) __attribute__ ((__nothrow__)); | |
15125 | ||
15126 | ||
15127 | ||
15128 | ||
15129 | extern int mlockall (int __flags) __attribute__ ((__nothrow__)); | |
15130 | ||
15131 | ||
15132 | ||
15133 | extern int munlockall (void) __attribute__ ((__nothrow__)); | |
15134 | ||
15135 | ||
15136 | ||
15137 | ||
15138 | ||
15139 | ||
15140 | ||
15141 | extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, | |
15142 | int __flags, ...) __attribute__ ((__nothrow__)); | |
15143 | ||
15144 | ||
15145 | ||
15146 | ||
15147 | ||
15148 | ||
15149 | extern int mincore (void *__start, size_t __len, unsigned char *__vec) | |
15150 | __attribute__ ((__nothrow__)); | |
15151 | ||
15152 | ||
15153 | ||
15154 | extern int remap_file_pages (void *__start, size_t __size, int __prot, | |
15155 | size_t __pgoff, int __flags) __attribute__ ((__nothrow__)); | |
15156 | ||
15157 | ||
15158 | ||
15159 | ||
15160 | extern int shm_open (__const char *__name, int __oflag, mode_t __mode); | |
15161 | ||
15162 | ||
15163 | extern int shm_unlink (__const char *__name); | |
15164 | ||
15165 | ||
15166 | # 166 "../../src/include/platform.h" 2 | |
15167 | # 34 "gconf.c" 2 | |
15168 | ||
15169 | #define LKC_DIRECT_LINK | |
15170 | #define ENABLE_NLS 1 | |
15171 | ||
15172 | #define BUG916 NO | |
15173 | ||
15174 | # 1 "lkc.h" 1 | |
15175 | # 14 "lkc.h" | |
15176 | #define LKC_H | |
15177 | ||
15178 | # 1 "../../src/include/gnunet_util.h" 1 | |
15179 | # 33 "../../src/include/gnunet_util.h" | |
15180 | #define GNUNET_UTIL_H | |
15181 | # 55 "../../src/include/gnunet_util.h" | |
15182 | #define DEBUG_LOCKING 0 | |
15183 | # 69 "../../src/include/gnunet_util.h" | |
15184 | #define GNUNET_UTIL_VERSION 0x00070004 | |
15185 | ||
15186 | ||
15187 | ||
15188 | ||
15189 | #define MAX_BUFFER_SIZE 65536 | |
15190 | ||
15191 | ||
15192 | ||
15193 | ||
15194 | #define MAX_PRIO 0x7FFFFFFF | |
15195 | ||
15196 | ||
15197 | ||
15198 | ||
15199 | ||
15200 | ||
15201 | ||
15202 | #define OK 1 | |
15203 | #define SYSERR -1 | |
15204 | #define YES 1 | |
15205 | #define NO 0 | |
15206 | ||
15207 | #define STRONG YES | |
15208 | #define WEAK NO | |
15209 | ||
15210 | ||
15211 | ||
15212 | ||
15213 | #define cronMILLIS ((cron_t)1) | |
15214 | #define cronSECONDS ((cron_t)(1000 * cronMILLIS)) | |
15215 | #define cronMINUTES ((cron_t) (60 * cronSECONDS)) | |
15216 | #define cronHOURS ((cron_t)(60 * cronMINUTES)) | |
15217 | #define cronDAYS ((cron_t)(24 * cronHOURS)) | |
15218 | #define cronWEEKS ((cron_t)(7 * cronDAYS)) | |
15219 | #define cronMONTHS ((cron_t)(30 * cronDAYS)) | |
15220 | #define cronYEARS ((cron_t)(365 * cronDAYS)) | |
15221 | ||
15222 | ||
15223 | ||
15224 | ||
15225 | typedef enum LOG_Level { | |
15226 | LOG_NOTHING = 0, | |
15227 | LOG_FATAL, | |
15228 | LOG_ERROR, | |
15229 | LOG_FAILURE, | |
15230 | LOG_WARNING, | |
15231 | LOG_MESSAGE, | |
15232 | LOG_INFO, | |
15233 | LOG_DEBUG, | |
15234 | LOG_CRON, | |
15235 | LOG_EVERYTHING, | |
15236 | } LOG_Level; | |
15237 | ||
15238 | ||
15239 | ||
15240 | ||
15241 | #define SESSIONKEY_LEN (256/8) | |
15242 | ||
15243 | ||
15244 | ||
15245 | ||
15246 | #define DEFAULT_CLIENT_CONFIG_FILE "~/.gnunet/gnunet.conf" | |
15247 | #define DEFAULT_DAEMON_DIR "/etc" | |
15248 | #define DEFAULT_DAEMON_CONFIG_FILE "/etc/gnunetd.conf" | |
15249 | #define VAR_DIRECTORY "/var/lib" | |
15250 | #define VAR_DAEMON_DIRECTORY "/var/lib/GNUnet" | |
15251 | #define VAR_DAEMON_CONFIG_FILE "/var/lib/GNUnet/gnunetd.conf" | |
15252 | #define HOME_DAEMON_CONFIG_FILE "~/.gnunet/gnunetd.conf" | |
15253 | #define GNUNET_HOME_DIRECTORY "~/.gnunet/" | |
15254 | # 150 "../../src/include/gnunet_util.h" | |
15255 | #define RSA_ENC_LEN 256 | |
15256 | ||
15257 | ||
15258 | ||
15259 | ||
15260 | #define RSA_KEY_LEN 258 | |
15261 | ||
15262 | ||
15263 | #define HELP_HELP { 'h', "help", NULL, gettext_noop("print this help") } | |
15264 | ||
15265 | ||
15266 | #define HELP_LOGLEVEL { 'L', "loglevel", "LEVEL", gettext_noop("set verbosity to LEVEL") } | |
15267 | ||
15268 | ||
15269 | #define HELP_CONFIG { 'c', "config", "FILENAME", gettext_noop("use configuration file FILENAME") } | |
15270 | ||
15271 | ||
15272 | #define HELP_HOSTNAME { 'H', "host", "HOSTNAME", gettext_noop("specify host on which gnunetd is running") } | |
15273 | ||
15274 | ||
15275 | #define HELP_VERSION { 'v', "version", NULL, gettext_noop("print the version number") } | |
15276 | ||
15277 | ||
15278 | #define HELP_VERBOSE { 'V', "verbose", NULL, gettext_noop("be verbose") } | |
15279 | ||
15280 | ||
15281 | #define HELP_END { 0, NULL, NULL, NULL, } | |
15282 | ||
15283 | ||
15284 | ||
15285 | ||
15286 | ||
15287 | ||
15288 | ||
15289 | #define LONG_DEFAULT_OPTIONS { "config", 1, 0, 'c' }, { "version", 0, 0, 'v' }, { "help", 0, 0, 'h' }, { "debug", 0, 0, 'd' }, { "loglevel", 1, 0, 'L' }, { "host", 1, 0, 'H' } | |
15290 | # 197 "../../src/include/gnunet_util.h" | |
15291 | struct PrivateKey; | |
15292 | ||
15293 | ||
15294 | ||
15295 | ||
15296 | typedef struct { | |
15297 | ||
15298 | ||
15299 | ||
15300 | unsigned short size; | |
15301 | ||
15302 | ||
15303 | ||
15304 | ||
15305 | unsigned short type; | |
15306 | ||
15307 | } CS_MESSAGE_HEADER; | |
15308 | ||
15309 | ||
15310 | ||
15311 | ||
15312 | typedef struct { | |
15313 | ||
15314 | ||
15315 | ||
15316 | CS_MESSAGE_HEADER header; | |
15317 | ||
15318 | ||
15319 | ||
15320 | ||
15321 | int return_value; | |
15322 | } CS_returnvalue_MESSAGE; | |
15323 | ||
15324 | ||
15325 | ||
15326 | ||
15327 | typedef struct { | |
15328 | ||
15329 | ||
15330 | ||
15331 | unsigned short size; | |
15332 | ||
15333 | ||
15334 | ||
15335 | ||
15336 | unsigned short type; | |
15337 | } P2P_MESSAGE_HEADER; | |
15338 | ||
15339 | typedef void (*NotifyConfigurationUpdateCallback)(void); | |
15340 | ||
15341 | ||
15342 | ||
15343 | ||
15344 | typedef void (*CronJob)(void *); | |
15345 | ||
15346 | ||
15347 | ||
15348 | ||
15349 | typedef unsigned long long cron_t; | |
15350 | ||
15351 | ||
15352 | ||
15353 | ||
15354 | typedef unsigned int TIME_T; | |
15355 | # 283 "../../src/include/gnunet_util.h" | |
15356 | struct GNoption { | |
15357 | const char *name; | |
15358 | ||
15359 | ||
15360 | int has_arg; | |
15361 | int *flag; | |
15362 | int val; | |
15363 | }; | |
15364 | ||
15365 | ||
15366 | ||
15367 | ||
15368 | typedef struct { | |
15369 | unsigned int addr; | |
15370 | } IPaddr; | |
15371 | ||
15372 | ||
15373 | ||
15374 | ||
15375 | struct CIDRNetwork; | |
15376 | ||
15377 | ||
15378 | ||
15379 | ||
15380 | typedef struct { | |
15381 | unsigned int addr[4]; | |
15382 | } IP6addr; | |
15383 | ||
15384 | ||
15385 | ||
15386 | ||
15387 | struct CIDR6Network; | |
15388 | ||
15389 | ||
15390 | ||
15391 | ||
15392 | typedef void (*TLogProc)(const char *txt); | |
15393 | ||
15394 | ||
15395 | ||
15396 | ||
15397 | typedef void * (*PThreadMain)(void*); | |
15398 | ||
15399 | ||
15400 | ||
15401 | ||
15402 | typedef struct PTHREAD_T { | |
15403 | void * internal; | |
15404 | } PTHREAD_T; | |
15405 | ||
15406 | ||
15407 | ||
15408 | ||
15409 | typedef struct { | |
15410 | unsigned int bits[512 / 8 / sizeof(unsigned int)]; | |
15411 | } HashCode512; | |
15412 | ||
15413 | ||
15414 | ||
15415 | ||
15416 | ||
15417 | typedef struct { | |
15418 | HashCode512 hashPubKey; | |
15419 | } PeerIdentity; | |
15420 | ||
15421 | ||
15422 | ||
15423 | ||
15424 | typedef struct { | |
15425 | unsigned char encoding[104]; | |
15426 | } EncName; | |
15427 | # 362 "../../src/include/gnunet_util.h" | |
15428 | typedef struct { | |
15429 | ||
15430 | ||
15431 | ||
15432 | unsigned short len; | |
15433 | unsigned short sizen; | |
15434 | unsigned short sizee; | |
15435 | unsigned short sized; | |
15436 | unsigned short sizep; | |
15437 | unsigned short sizeq; | |
15438 | unsigned short sizedmp1; | |
15439 | unsigned short sizedmq1; | |
15440 | ||
15441 | } PrivateKeyEncoded; | |
15442 | ||
15443 | ||
15444 | ||
15445 | ||
15446 | typedef struct { | |
15447 | unsigned char sig[256]; | |
15448 | } Signature; | |
15449 | ||
15450 | ||
15451 | ||
15452 | ||
15453 | typedef struct { | |
15454 | ||
15455 | ||
15456 | ||
15457 | unsigned short len; | |
15458 | ||
15459 | ||
15460 | ||
15461 | unsigned short sizen; | |
15462 | ||
15463 | ||
15464 | ||
15465 | unsigned char key[258]; | |
15466 | ||
15467 | ||
15468 | ||
15469 | unsigned short padding; | |
15470 | } PublicKey; | |
15471 | ||
15472 | ||
15473 | ||
15474 | ||
15475 | typedef struct { | |
15476 | unsigned char encoding[256]; | |
15477 | } RSAEncryptedData; | |
15478 | ||
15479 | ||
15480 | ||
15481 | ||
15482 | ||
15483 | ||
15484 | ||
15485 | typedef struct Mutex { | |
15486 | void * internal; | |
15487 | } Mutex; | |
15488 | ||
15489 | ||
15490 | ||
15491 | ||
15492 | typedef struct Semaphore { | |
15493 | int v; | |
15494 | Mutex mutex; | |
15495 | ||
15496 | ||
15497 | ||
15498 | void * cond; | |
15499 | } Semaphore; | |
15500 | ||
15501 | ||
15502 | ||
15503 | ||
15504 | typedef struct IPC_Semaphore{ | |
15505 | void * platform; | |
15506 | } IPC_Semaphore; | |
15507 | ||
15508 | ||
15509 | ||
15510 | ||
15511 | ||
15512 | ||
15513 | ||
15514 | typedef struct GNUNET_TCP_SOCKET { | |
15515 | ||
15516 | ||
15517 | ||
15518 | ||
15519 | int socket; | |
15520 | ||
15521 | ||
15522 | ||
15523 | ||
15524 | ||
15525 | ||
15526 | IPaddr ip; | |
15527 | ||
15528 | ||
15529 | ||
15530 | ||
15531 | unsigned short port; | |
15532 | ||
15533 | ||
15534 | ||
15535 | ||
15536 | unsigned int outBufLen; | |
15537 | ||
15538 | ||
15539 | ||
15540 | ||
15541 | void * outBufPending; | |
15542 | ||
15543 | Mutex readlock; | |
15544 | Mutex writelock; | |
15545 | ||
15546 | } GNUNET_TCP_SOCKET; | |
15547 | ||
15548 | ||
15549 | ||
15550 | ||
15551 | typedef struct { | |
15552 | unsigned char key[(256/8)]; | |
15553 | int crc32; | |
15554 | } SESSIONKEY; | |
15555 | ||
15556 | ||
15557 | ||
15558 | ||
15559 | ||
15560 | ||
15561 | ||
15562 | typedef struct { | |
15563 | unsigned char iv[(256/8)/2]; | |
15564 | } INITVECTOR; | |
15565 | # 508 "../../src/include/gnunet_util.h" | |
15566 | typedef int (*CommandLineParser)(int argc, char * argv[]); | |
15567 | ||
15568 | ||
15569 | ||
15570 | ||
15571 | ||
15572 | ||
15573 | typedef int (*DirectoryEntryCallback)(const char * filename, | |
15574 | const char * dirName, | |
15575 | void * data); | |
15576 | ||
15577 | ||
15578 | ||
15579 | ||
15580 | typedef struct { | |
15581 | char shortArg; | |
15582 | char * longArg; | |
15583 | char * mandatoryArg; | |
15584 | char * description; | |
15585 | } Help; | |
15586 | ||
15587 | ||
15588 | ||
15589 | ||
15590 | struct Bloomfilter; | |
15591 | ||
15592 | ||
15593 | ||
15594 | ||
15595 | typedef HashCode512 * (*ElementIterator)(void * arg); | |
15596 | ||
15597 | ||
15598 | ||
15599 | ||
15600 | struct Vector; | |
15601 | ||
15602 | ||
15603 | ||
15604 | ||
15605 | struct HashTable; | |
15606 | # 560 "../../src/include/gnunet_util.h" | |
15607 | int crc32N(const void * buf, int len); | |
15608 | ||
15609 | ||
15610 | ||
15611 | ||
15612 | ||
15613 | ||
15614 | ||
15615 | unsigned int randomi(unsigned int i); | |
15616 | ||
15617 | ||
15618 | ||
15619 | ||
15620 | ||
15621 | unsigned long long randomi64(unsigned long long u); | |
15622 | ||
15623 | unsigned long long weak_randomi64(unsigned long long u); | |
15624 | # 585 "../../src/include/gnunet_util.h" | |
15625 | int * permute(int mode, int n); | |
15626 | ||
15627 | ||
15628 | ||
15629 | ||
15630 | ||
15631 | ||
15632 | ||
15633 | unsigned int weak_randomi(unsigned int i); | |
15634 | ||
15635 | ||
15636 | ||
15637 | ||
15638 | ||
15639 | ||
15640 | unsigned long long ntohll(unsigned long long n); | |
15641 | ||
15642 | ||
15643 | ||
15644 | ||
15645 | ||
15646 | ||
15647 | unsigned long long htonll(unsigned long long n); | |
15648 | ||
15649 | ||
15650 | ||
15651 | ||
15652 | ||
15653 | ||
15654 | ||
15655 | char * convertToUtf8(const char * input, | |
15656 | size_t len, | |
15657 | const char * charset); | |
15658 | # 630 "../../src/include/gnunet_util.h" | |
15659 | #define GNUNET_ASSERT(cond) do { if (! (cond)) errexit(_("Assertion failed at %s:%d.\n"), __FILE__, __LINE__); } while(0); | |
15660 | ||
15661 | #define GNUNET_ASSERT_FL(cond,f,l) do { if (! (cond)) errexit(_("Assertion failed at %s:%d.\n"), f, l); } while(0); | |
15662 | ||
15663 | ||
15664 | void registerConfigurationUpdateCallback | |
15665 | (NotifyConfigurationUpdateCallback cb); | |
15666 | ||
15667 | void unregisterConfigurationUpdateCallback | |
15668 | (NotifyConfigurationUpdateCallback cb); | |
15669 | ||
15670 | ||
15671 | ||
15672 | ||
15673 | ||
15674 | void triggerGlobalConfigurationRefresh(void); | |
15675 | ||
15676 | ||
15677 | ||
15678 | ||
15679 | ||
15680 | ||
15681 | ||
15682 | int readConfigFile(const char *fn); | |
15683 | # 667 "../../src/include/gnunet_util.h" | |
15684 | void readConfiguration(void); | |
15685 | ||
15686 | ||
15687 | ||
15688 | ||
15689 | ||
15690 | ||
15691 | ||
15692 | char * expandDollar(const char * section, | |
15693 | char * orig); | |
15694 | # 692 "../../src/include/gnunet_util.h" | |
15695 | char * getFileName(const char * section, | |
15696 | const char * option, | |
15697 | const char * errMsg); | |
15698 | # 707 "../../src/include/gnunet_util.h" | |
15699 | int testConfigurationString(const char * section, | |
15700 | const char * option, | |
15701 | const char * value); | |
15702 | # 718 "../../src/include/gnunet_util.h" | |
15703 | char * getConfigurationString(const char * section, | |
15704 | const char * option); | |
15705 | ||
15706 | ||
15707 | ||
15708 | ||
15709 | ||
15710 | ||
15711 | ||
15712 | unsigned int getConfigurationInt(const char * section, | |
15713 | const char * option); | |
15714 | # 738 "../../src/include/gnunet_util.h" | |
15715 | char * setConfigurationString(const char * section, | |
15716 | const char * option, | |
15717 | const char * value); | |
15718 | # 749 "../../src/include/gnunet_util.h" | |
15719 | unsigned int setConfigurationInt(const char * section, | |
15720 | const char * option, | |
15721 | const unsigned int value); | |
15722 | ||
15723 | ||
15724 | ||
15725 | ||
15726 | ||
15727 | ||
15728 | ||
15729 | int getConfigurationStringList(char *** value); | |
15730 | # 768 "../../src/include/gnunet_util.h" | |
15731 | void setConfigurationStringList(char ** value, | |
15732 | int count); | |
15733 | ||
15734 | ||
15735 | ||
15736 | ||
15737 | ||
15738 | int isConfigurationItemSet(const char *section, const char *option); | |
15739 | ||
15740 | ||
15741 | ||
15742 | ||
15743 | void startCron(void); | |
15744 | ||
15745 | ||
15746 | ||
15747 | ||
15748 | void stopCron(void); | |
15749 | ||
15750 | ||
15751 | ||
15752 | ||
15753 | ||
15754 | ||
15755 | ||
15756 | void suspendCron(void); | |
15757 | ||
15758 | ||
15759 | ||
15760 | ||
15761 | void resumeCron(void); | |
15762 | ||
15763 | ||
15764 | ||
15765 | ||
15766 | int isCronRunning(void); | |
15767 | ||
15768 | ||
15769 | ||
15770 | ||
15771 | ||
15772 | void suspendIfNotCron(void); | |
15773 | ||
15774 | ||
15775 | ||
15776 | ||
15777 | ||
15778 | void resumeIfNotCron(void); | |
15779 | ||
15780 | ||
15781 | ||
15782 | ||
15783 | ||
15784 | ||
15785 | ||
15786 | cron_t cronTime(cron_t * setme); | |
15787 | # 833 "../../src/include/gnunet_util.h" | |
15788 | void addCronJob(CronJob method, | |
15789 | unsigned int delta, | |
15790 | unsigned int deltaRepeat, | |
15791 | void * data); | |
15792 | # 850 "../../src/include/gnunet_util.h" | |
15793 | void advanceCronJob(CronJob method, | |
15794 | unsigned int deltaRepeat, | |
15795 | void * data); | |
15796 | # 866 "../../src/include/gnunet_util.h" | |
15797 | int delCronJob(CronJob method, | |
15798 | unsigned int repeat, | |
15799 | void * data); | |
15800 | # 878 "../../src/include/gnunet_util.h" | |
15801 | int gnunet_util_sleep(cron_t delay); | |
15802 | ||
15803 | ||
15804 | ||
15805 | ||
15806 | void * loadDynamicLibrary(const char * libprefix, | |
15807 | const char * dsoname); | |
15808 | ||
15809 | void * bindDynamicMethod(void * libhandle, | |
15810 | const char * methodprefix, | |
15811 | const char * dsoname); | |
15812 | ||
15813 | void * trybindDynamicMethod(void * libhandle, | |
15814 | const char * methodprefix, | |
15815 | const char * dsoname); | |
15816 | ||
15817 | void unloadDynamicLibrary(void * libhandle); | |
15818 | ||
15819 | ||
15820 | ||
15821 | ||
15822 | ||
15823 | ||
15824 | ||
15825 | extern char *GNoptarg; | |
15826 | # 916 "../../src/include/gnunet_util.h" | |
15827 | extern int GNoptind; | |
15828 | ||
15829 | ||
15830 | ||
15831 | ||
15832 | extern int GNopterr; | |
15833 | ||
15834 | ||
15835 | ||
15836 | extern int GNoptopt; | |
15837 | ||
15838 | ||
15839 | int GNgetopt_long (int argc, | |
15840 | char *const *argv, | |
15841 | const char *shortopts, | |
15842 | const struct GNoption *longopts, | |
15843 | int *longind); | |
15844 | # 946 "../../src/include/gnunet_util.h" | |
15845 | struct CIDRNetwork * parseRoutes(const char * routeList); | |
15846 | # 956 "../../src/include/gnunet_util.h" | |
15847 | int checkIPListed(const struct CIDRNetwork * list, | |
15848 | IPaddr ip); | |
15849 | # 966 "../../src/include/gnunet_util.h" | |
15850 | int checkIP6Listed(const struct CIDR6Network * list, | |
15851 | const IP6addr * ip); | |
15852 | # 980 "../../src/include/gnunet_util.h" | |
15853 | struct CIDR6Network * parseRoutes6(const char * routeList); | |
15854 | ||
15855 | ||
15856 | ||
15857 | ||
15858 | #define IFLOG(a,b) {if (getLogLevel() >= a) {b;} } | |
15859 | ||
15860 | void LOGHASH(size_t size, | |
15861 | const void * data); | |
15862 | ||
15863 | #define PRIP(ip) (unsigned int)(((unsigned int)(ip))>>24), (unsigned int)((((unsigned)(ip)))>>16 & 255), (unsigned int)((((unsigned int)(ip)))>>8 & 255), (unsigned int)((((unsigned int)(ip))) & 255) | |
15864 | ||
15865 | ||
15866 | ||
15867 | ||
15868 | LOG_Level getLogLevel(void); | |
15869 | ||
15870 | ||
15871 | ||
15872 | ||
15873 | void *getLogfile(void); | |
15874 | ||
15875 | ||
15876 | ||
15877 | ||
15878 | ||
15879 | ||
15880 | void errexit(const char *format, ...); | |
15881 | ||
15882 | ||
15883 | ||
15884 | ||
15885 | ||
15886 | ||
15887 | ||
15888 | void setCustomLogProc(TLogProc proc); | |
15889 | ||
15890 | ||
15891 | ||
15892 | ||
15893 | ||
15894 | ||
15895 | void LOG(LOG_Level minLogLevel, | |
15896 | const char * format, | |
15897 | ...); | |
15898 | ||
15899 | #define BREAK() do { breakpoint_(__FILE__,__LINE__); } while(0); | |
15900 | ||
15901 | #define BREAK_FL(f,n) do { breakpoint_(f,n); } while(0); | |
15902 | ||
15903 | ||
15904 | ||
15905 | ||
15906 | ||
15907 | ||
15908 | #define LOG_STRERROR(level,cmd) do { LOG(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, STRERROR(errno)); } while(0); | |
15909 | ||
15910 | ||
15911 | ||
15912 | ||
15913 | ||
15914 | ||
15915 | #define DIE_STRERROR(cmd) do { errexit(_("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, STRERROR(errno)); } while(0); | |
15916 | ||
15917 | #define DIE_STRERROR_FL(cmd,f,l) do { errexit(_("`%s' failed at %s:%d with error: %s\n"), cmd, f, l, STRERROR(errno)); } while(0); | |
15918 | ||
15919 | ||
15920 | ||
15921 | ||
15922 | ||
15923 | ||
15924 | #define LOG_FILE_STRERROR(level,cmd,filename) do { LOG(level, _("`%s' failed on file `%s' at %s:%d with error: %s\n"), cmd, filename, __FILE__, __LINE__, STRERROR(errno)); } while(0); | |
15925 | ||
15926 | #define LOG_FILE_STRERROR_FL(level,cmd,filename,f,l) do { LOG(level, _("`%s' failed on file `%s' at %s:%d with error: %s\n"), cmd, filename, f, l, STRERROR(errno)); } while(0); | |
15927 | ||
15928 | ||
15929 | ||
15930 | ||
15931 | ||
15932 | ||
15933 | #define DIE_FILE_STRERROR(cmd,filename) do { errexit(_("`%s' failed on file `%s' at %s:%d with error: %s\n"), cmd, filename, __FILE__, __LINE__, STRERROR(errno)); } while(0); | |
15934 | ||
15935 | ||
15936 | ||
15937 | ||
15938 | void breakpoint_(const char * filename, | |
15939 | const int linenumber); | |
15940 | ||
15941 | ||
15942 | ||
15943 | ||
15944 | ||
15945 | ||
15946 | ||
15947 | void * xmalloc_(size_t size, | |
15948 | const char * filename, | |
15949 | const int linenumber); | |
15950 | ||
15951 | ||
15952 | ||
15953 | ||
15954 | ||
15955 | ||
15956 | ||
15957 | void * xmalloc_unchecked_(size_t size, | |
15958 | const char * filename, | |
15959 | const int linenumber); | |
15960 | ||
15961 | ||
15962 | ||
15963 | ||
15964 | ||
15965 | ||
15966 | #define MALLOC(size) xmalloc_(size, __FILE__,__LINE__) | |
15967 | ||
15968 | ||
15969 | ||
15970 | ||
15971 | ||
15972 | void * xrealloc_(void * ptr, | |
15973 | const size_t n, | |
15974 | const char * filename, | |
15975 | const int linenumber); | |
15976 | ||
15977 | ||
15978 | ||
15979 | ||
15980 | ||
15981 | ||
15982 | ||
15983 | #define REALLOC(ptr,size) xrealloc_(ptr, size, __FILE__,__LINE__) | |
15984 | ||
15985 | ||
15986 | ||
15987 | ||
15988 | ||
15989 | ||
15990 | void xfree_(void * ptr, | |
15991 | const char * filename, | |
15992 | const int linenumber); | |
15993 | # 1129 "../../src/include/gnunet_util.h" | |
15994 | #define FREE(ptr) xfree_(ptr, __FILE__, __LINE__) | |
15995 | ||
15996 | ||
15997 | ||
15998 | ||
15999 | ||
16000 | ||
16001 | #define FREENONNULL(ptr) do { void * __x__ = ptr; if (__x__ != NULL) { FREE(__x__); } } while(0) | |
16002 | ||
16003 | ||
16004 | ||
16005 | ||
16006 | char * xstrdup_(const char * str, | |
16007 | const char * filename, | |
16008 | const int linenumber); | |
16009 | ||
16010 | ||
16011 | ||
16012 | ||
16013 | ||
16014 | ||
16015 | ||
16016 | #define STRDUP(a) xstrdup_(a,__FILE__,__LINE__) | |
16017 | # 1162 "../../src/include/gnunet_util.h" | |
16018 | char * xstrndup_(const char * str, | |
16019 | const size_t n, | |
16020 | const char * filename, | |
16021 | const int linenumber); | |
16022 | # 1174 "../../src/include/gnunet_util.h" | |
16023 | #define STRNDUP(a,n) xstrndup_(a,n,__FILE__,__LINE__) | |
16024 | # 1189 "../../src/include/gnunet_util.h" | |
16025 | void xgrow_(void ** old, | |
16026 | size_t elementSize, | |
16027 | unsigned int * oldCount, | |
16028 | unsigned int newCount, | |
16029 | const char * filename, | |
16030 | const int linenumber); | |
16031 | # 1229 "../../src/include/gnunet_util.h" | |
16032 | #define GROW(arr,size,tsize) xgrow_((void**)&arr, sizeof(arr[0]), &size, tsize, __FILE__, __LINE__) | |
16033 | ||
16034 | ||
16035 | ||
16036 | ||
16037 | TIME_T TIME(TIME_T * t); | |
16038 | ||
16039 | ||
16040 | ||
16041 | ||
16042 | ||
16043 | ||
16044 | char * GN_CTIME(const TIME_T * t); | |
16045 | ||
16046 | ||
16047 | ||
16048 | ||
16049 | ||
16050 | int GN_getHostByName(const char * hostname, | |
16051 | IPaddr * ip); | |
16052 | ||
16053 | ||
16054 | ||
16055 | ||
16056 | char * timeIntervalToFancyString(cron_t delta); | |
16057 | ||
16058 | ||
16059 | ||
16060 | ||
16061 | char * fileSizeToFancyString(unsigned long long size); | |
16062 | ||
16063 | ||
16064 | ||
16065 | ||
16066 | void makeSessionkey(SESSIONKEY * key); | |
16067 | # 1275 "../../src/include/gnunet_util.h" | |
16068 | int encryptBlock(const void * block, | |
16069 | unsigned short len, | |
16070 | const SESSIONKEY * sessionkey, | |
16071 | const INITVECTOR * iv, | |
16072 | void * result); | |
16073 | # 1290 "../../src/include/gnunet_util.h" | |
16074 | int decryptBlock(const SESSIONKEY * sessionkey, | |
16075 | const void * block, | |
16076 | unsigned short size, | |
16077 | const INITVECTOR * iv, | |
16078 | void * result); | |
16079 | ||
16080 | #define SEMAPHORE_NEW(value) semaphore_new_(value, __FILE__, __LINE__) | |
16081 | #define SEMAPHORE_FREE(s) semaphore_free_(s, __FILE__, __LINE__) | |
16082 | #define SEMAPHORE_DOWN(s) semaphore_down_(s, __FILE__, __LINE__) | |
16083 | #define SEMAPHORE_DOWN_NONBLOCKING(s) semaphore_down_nonblocking_(s, __FILE__, __LINE__) | |
16084 | #define SEMAPHORE_UP(s) semaphore_up_(s, __FILE__, __LINE__) | |
16085 | # 1339 "../../src/include/gnunet_util.h" | |
16086 | #define MUTEX_LOCK(a) mutex_lock_(a, __FILE__, __LINE__) | |
16087 | #define MUTEX_UNLOCK(a) mutex_unlock_(a, __FILE__, __LINE__) | |
16088 | #define MUTEX_CREATE(a) create_mutex_(a) | |
16089 | #define MUTEX_CREATE_RECURSIVE(a) create_recursive_mutex_(a) | |
16090 | #define MUTEX_DESTROY(a) destroy_mutex_(a) | |
16091 | ||
16092 | ||
16093 | ||
16094 | ||
16095 | ||
16096 | int PTHREAD_SELF_TEST(PTHREAD_T * pt); | |
16097 | ||
16098 | ||
16099 | ||
16100 | ||
16101 | void PTHREAD_GET_SELF(PTHREAD_T * pt); | |
16102 | ||
16103 | ||
16104 | ||
16105 | ||
16106 | ||
16107 | void PTHREAD_REL_SELF(PTHREAD_T * pt); | |
16108 | # 1374 "../../src/include/gnunet_util.h" | |
16109 | int PTHREAD_CREATE(PTHREAD_T * handle, | |
16110 | PThreadMain main, | |
16111 | void * arg, | |
16112 | size_t stackSize); | |
16113 | ||
16114 | void PTHREAD_JOIN(PTHREAD_T * handle, | |
16115 | void ** ret); | |
16116 | ||
16117 | void PTHREAD_KILL(PTHREAD_T * handle, | |
16118 | int signal); | |
16119 | ||
16120 | void PTHREAD_DETACH(PTHREAD_T * handle); | |
16121 | ||
16122 | #define IPC_SEMAPHORE_NEW(name,value) ipc_semaphore_new_(name, value, __FILE__, __LINE__) | |
16123 | #define IPC_SEMAPHORE_FREE(s) ipc_semaphore_free_(s, __FILE__, __LINE__) | |
16124 | #define IPC_SEMAPHORE_DOWN(s) ipc_semaphore_down_(s, __FILE__, __LINE__) | |
16125 | #define IPC_SEMAPHORE_UP(s) ipc_semaphore_up_(s, __FILE__, __LINE__) | |
16126 | ||
16127 | IPC_Semaphore * ipc_semaphore_new_(const char * basename, | |
16128 | const unsigned int initialValue, | |
16129 | const char * filename, | |
16130 | const int linenumber); | |
16131 | ||
16132 | void ipc_semaphore_up_(IPC_Semaphore * sem, | |
16133 | const char * filename, | |
16134 | const int linenumber); | |
16135 | ||
16136 | void ipc_semaphore_down_(IPC_Semaphore * sem, | |
16137 | const char * filename, | |
16138 | const int linenumber); | |
16139 | ||
16140 | ||
16141 | void ipc_semaphore_free_(IPC_Semaphore * sem, | |
16142 | const char * filename, | |
16143 | const int linenumber); | |
16144 | ||
16145 | ||
16146 | ||
16147 | ||
16148 | ||
16149 | ||
16150 | void create_mutex_(Mutex * mutex); | |
16151 | void create_recursive_mutex_(Mutex * mutex); | |
16152 | void create_fast_mutex_(Mutex * mutex); | |
16153 | void destroy_mutex_(Mutex * mutex); | |
16154 | void mutex_lock_(Mutex * mutex, | |
16155 | const char * filename, | |
16156 | const int linenumber); | |
16157 | void mutex_unlock_(Mutex * mutex, | |
16158 | const char * filename, | |
16159 | const int linenumber); | |
16160 | Semaphore * semaphore_new_(int value, | |
16161 | const char * filename, | |
16162 | const int linenumber); | |
16163 | void semaphore_free_(Semaphore * s, | |
16164 | const char * filename, | |
16165 | const int linenumber); | |
16166 | int semaphore_down_(Semaphore * s, | |
16167 | const char * filename, | |
16168 | const int linenumber); | |
16169 | int semaphore_down_nonblocking_(Semaphore * s, | |
16170 | const char * filename, | |
16171 | const int linenumber); | |
16172 | int semaphore_up_(Semaphore * s, | |
16173 | const char * filename, | |
16174 | const int linenumber); | |
16175 | ||
16176 | ||
16177 | ||
16178 | ||
16179 | ||
16180 | ||
16181 | ||
16182 | void hash2enc(const HashCode512 * block, | |
16183 | EncName * result); | |
16184 | ||
16185 | ||
16186 | ||
16187 | ||
16188 | ||
16189 | ||
16190 | ||
16191 | int enc2hash(const char * enc, | |
16192 | HashCode512 * result); | |
16193 | ||
16194 | ||
16195 | ||
16196 | ||
16197 | ||
16198 | ||
16199 | void encWeakHash(unsigned long long h, char e[14]); | |
16200 | # 1473 "../../src/include/gnunet_util.h" | |
16201 | int distanceHashCode512(const HashCode512 * a, | |
16202 | const HashCode512 * b); | |
16203 | ||
16204 | ||
16205 | ||
16206 | ||
16207 | int equalsHashCode512(const HashCode512 * a, | |
16208 | const HashCode512 * b); | |
16209 | ||
16210 | ||
16211 | ||
16212 | ||
16213 | ||
16214 | ||
16215 | void hash(const void * block, | |
16216 | unsigned int size, | |
16217 | HashCode512 * ret); | |
16218 | ||
16219 | ||
16220 | ||
16221 | ||
16222 | ||
16223 | ||
16224 | int getFileHash(const char * filename, | |
16225 | HashCode512 * ret); | |
16226 | ||
16227 | ||
16228 | ||
16229 | ||
16230 | ||
16231 | ||
16232 | ||
16233 | unsigned long long weakHash(const char *z, int n); | |
16234 | ||
16235 | ||
16236 | ||
16237 | ||
16238 | ||
16239 | ||
16240 | ||
16241 | int hostIdentityEquals(const PeerIdentity * first, | |
16242 | const PeerIdentity * second); | |
16243 | ||
16244 | void makeRandomId(HashCode512 * result); | |
16245 | ||
16246 | ||
16247 | void deltaId(const HashCode512 * a, | |
16248 | const HashCode512 * b, | |
16249 | HashCode512 * result); | |
16250 | ||
16251 | ||
16252 | void addHashCodes(const HashCode512 * a, | |
16253 | const HashCode512 * delta, | |
16254 | HashCode512 * result); | |
16255 | ||
16256 | ||
16257 | void xorHashCodes(const HashCode512 * a, | |
16258 | const HashCode512 * b, | |
16259 | HashCode512 * result); | |
16260 | ||
16261 | ||
16262 | ||
16263 | ||
16264 | void hashToKey(const HashCode512 * hc, | |
16265 | SESSIONKEY * skey, | |
16266 | INITVECTOR * iv); | |
16267 | ||
16268 | ||
16269 | ||
16270 | ||
16271 | ||
16272 | ||
16273 | ||
16274 | int getHashCodeBit(const HashCode512 * code, | |
16275 | unsigned int bit); | |
16276 | ||
16277 | ||
16278 | ||
16279 | ||
16280 | ||
16281 | ||
16282 | int hashCodeCompare(const HashCode512 * h1, | |
16283 | const HashCode512 * h2); | |
16284 | ||
16285 | ||
16286 | ||
16287 | ||
16288 | ||
16289 | ||
16290 | int hashCodeCompareDistance(const HashCode512 * h1, | |
16291 | const HashCode512 * h2, | |
16292 | const HashCode512 * target); | |
16293 | ||
16294 | ||
16295 | ||
16296 | ||
16297 | struct PrivateKey * makePrivateKey(void); | |
16298 | ||
16299 | ||
16300 | ||
16301 | ||
16302 | ||
16303 | struct PrivateKey * makeKblockKey(const HashCode512 * input); | |
16304 | ||
16305 | ||
16306 | ||
16307 | ||
16308 | ||
16309 | void freePrivateKey(struct PrivateKey * hostkey); | |
16310 | ||
16311 | ||
16312 | ||
16313 | ||
16314 | ||
16315 | void getPublicKey(const struct PrivateKey * hostkey, | |
16316 | PublicKey * result); | |
16317 | ||
16318 | ||
16319 | ||
16320 | ||
16321 | ||
16322 | ||
16323 | ||
16324 | PrivateKeyEncoded * encodePrivateKey(const struct PrivateKey * hostkey); | |
16325 | ||
16326 | ||
16327 | ||
16328 | ||
16329 | ||
16330 | ||
16331 | ||
16332 | struct PrivateKey * decodePrivateKey(const PrivateKeyEncoded * encoding); | |
16333 | # 1616 "../../src/include/gnunet_util.h" | |
16334 | int encryptPrivateKey(const void * block, | |
16335 | unsigned short size, | |
16336 | const PublicKey * publicKey, | |
16337 | RSAEncryptedData * target); | |
16338 | # 1630 "../../src/include/gnunet_util.h" | |
16339 | int decryptPrivateKey(const struct PrivateKey * key, | |
16340 | const RSAEncryptedData * block, | |
16341 | void * result, | |
16342 | unsigned short size); | |
16343 | # 1643 "../../src/include/gnunet_util.h" | |
16344 | int sign(const struct PrivateKey * key, | |
16345 | unsigned short size, | |
16346 | const void * block, | |
16347 | Signature * result); | |
16348 | # 1656 "../../src/include/gnunet_util.h" | |
16349 | int verifySig(const void * block, | |
16350 | unsigned short len, | |
16351 | const Signature * sig, | |
16352 | const PublicKey * publicKey); | |
16353 | # 1668 "../../src/include/gnunet_util.h" | |
16354 | int initUtil(int argc, | |
16355 | char * argv[], | |
16356 | CommandLineParser parser); | |
16357 | ||
16358 | ||
16359 | ||
16360 | ||
16361 | ||
16362 | ||
16363 | ||
16364 | void resetUtil(void); | |
16365 | ||
16366 | ||
16367 | ||
16368 | ||
16369 | void doneUtil(void); | |
16370 | ||
16371 | ||
16372 | ||
16373 | ||
16374 | ||
16375 | unsigned short getGNUnetPort(void); | |
16376 | ||
16377 | ||
16378 | ||
16379 | ||
16380 | GNUNET_TCP_SOCKET * getClientSocket(void); | |
16381 | ||
16382 | ||
16383 | ||
16384 | ||
16385 | void releaseClientSocket(GNUNET_TCP_SOCKET * sock); | |
16386 | # 1709 "../../src/include/gnunet_util.h" | |
16387 | int stateReadContent(const char * name, | |
16388 | void ** result); | |
16389 | # 1720 "../../src/include/gnunet_util.h" | |
16390 | int stateAppendContent(const char * name, | |
16391 | int len, | |
16392 | const void * block); | |
16393 | # 1732 "../../src/include/gnunet_util.h" | |
16394 | int stateWriteContent(const char * name, | |
16395 | int len, | |
16396 | const void * block); | |
16397 | ||
16398 | ||
16399 | ||
16400 | ||
16401 | ||
16402 | ||
16403 | int stateUnlinkFromDB(const char * name); | |
16404 | # 1751 "../../src/include/gnunet_util.h" | |
16405 | int initGNUnetClientSocket(unsigned short port, | |
16406 | const char * hostname, | |
16407 | GNUNET_TCP_SOCKET * result); | |
16408 | # 1763 "../../src/include/gnunet_util.h" | |
16409 | int initGNUnetClientSocketIP(unsigned short port, | |
16410 | IPaddr ip, | |
16411 | GNUNET_TCP_SOCKET * result); | |
16412 | ||
16413 | ||
16414 | ||
16415 | ||
16416 | ||
16417 | ||
16418 | ||
16419 | int initGNUnetServerSocket(int socket, | |
16420 | GNUNET_TCP_SOCKET * result); | |
16421 | ||
16422 | ||
16423 | ||
16424 | ||
16425 | ||
16426 | ||
16427 | ||
16428 | int isOpenConnection(GNUNET_TCP_SOCKET * sock); | |
16429 | ||
16430 | ||
16431 | ||
16432 | ||
16433 | ||
16434 | int checkSocket(GNUNET_TCP_SOCKET * sock); | |
16435 | # 1800 "../../src/include/gnunet_util.h" | |
16436 | int readFromSocket(GNUNET_TCP_SOCKET * sock, | |
16437 | CS_MESSAGE_HEADER ** buffer); | |
16438 | ||
16439 | ||
16440 | ||
16441 | ||
16442 | ||
16443 | ||
16444 | ||
16445 | int writeToSocket(GNUNET_TCP_SOCKET * sock, | |
16446 | const CS_MESSAGE_HEADER * buffer); | |
16447 | # 1819 "../../src/include/gnunet_util.h" | |
16448 | int writeToSocketNonBlocking(GNUNET_TCP_SOCKET * sock, | |
16449 | const CS_MESSAGE_HEADER * buffer); | |
16450 | ||
16451 | ||
16452 | ||
16453 | ||
16454 | ||
16455 | ||
16456 | ||
16457 | void closeSocketTemporarily(GNUNET_TCP_SOCKET * sock); | |
16458 | ||
16459 | ||
16460 | ||
16461 | ||
16462 | ||
16463 | ||
16464 | void destroySocket(GNUNET_TCP_SOCKET * sock); | |
16465 | # 1846 "../../src/include/gnunet_util.h" | |
16466 | int readTCPResult(GNUNET_TCP_SOCKET * sock, | |
16467 | int * ret); | |
16468 | # 1857 "../../src/include/gnunet_util.h" | |
16469 | int sendTCPResult(GNUNET_TCP_SOCKET * sock, | |
16470 | int ret); | |
16471 | ||
16472 | ||
16473 | ||
16474 | ||
16475 | ||
16476 | ||
16477 | ||
16478 | int getCPULoad(void); | |
16479 | # 1876 "../../src/include/gnunet_util.h" | |
16480 | int getNetworkLoadUp(void); | |
16481 | # 1886 "../../src/include/gnunet_util.h" | |
16482 | int getNetworkLoadDown(void); | |
16483 | ||
16484 | ||
16485 | ||
16486 | ||
16487 | void incrementBytesSent(unsigned long long delta); | |
16488 | ||
16489 | ||
16490 | ||
16491 | ||
16492 | void incrementBytesReceived(unsigned long long delta); | |
16493 | ||
16494 | ||
16495 | ||
16496 | ||
16497 | ||
16498 | ||
16499 | ||
16500 | int getFileSize(const char * filename, | |
16501 | unsigned long long * size); | |
16502 | ||
16503 | ||
16504 | ||
16505 | ||
16506 | ||
16507 | ||
16508 | ||
16509 | int getFileSizeWithoutSymlinks(const char * filename, | |
16510 | unsigned long long * size); | |
16511 | # 1923 "../../src/include/gnunet_util.h" | |
16512 | long getBlocksLeftOnDrive(const char * part); | |
16513 | ||
16514 | ||
16515 | ||
16516 | ||
16517 | ||
16518 | ||
16519 | ||
16520 | int assertIsFile(const char * fil); | |
16521 | # 1940 "../../src/include/gnunet_util.h" | |
16522 | char * expandFileName(const char * fil); | |
16523 | ||
16524 | ||
16525 | ||
16526 | ||
16527 | ||
16528 | ||
16529 | int mkdirp(const char * dir); | |
16530 | # 1957 "../../src/include/gnunet_util.h" | |
16531 | int readFile(const char * fileName, | |
16532 | int len, | |
16533 | void * result); | |
16534 | # 1969 "../../src/include/gnunet_util.h" | |
16535 | int writeFile(const char * fileName, | |
16536 | const void * buffer, | |
16537 | unsigned int n, | |
16538 | const char * mode); | |
16539 | ||
16540 | ||
16541 | ||
16542 | ||
16543 | ||
16544 | int copyFile(const char * src, | |
16545 | const char * dst); | |
16546 | # 1989 "../../src/include/gnunet_util.h" | |
16547 | int scanDirectory(const char * dirName, | |
16548 | DirectoryEntryCallback callback, | |
16549 | void * data); | |
16550 | ||
16551 | ||
16552 | ||
16553 | ||
16554 | ||
16555 | int isDirectory(const char * fil); | |
16556 | # 2007 "../../src/include/gnunet_util.h" | |
16557 | int rm_minus_rf(const char * fileName); | |
16558 | ||
16559 | ||
16560 | void close_(int fd, const char * filename, int linenumber); | |
16561 | ||
16562 | #define closefile(fd) close_(fd, __FILE__, __LINE__) | |
16563 | ||
16564 | ||
16565 | ||
16566 | ||
16567 | ||
16568 | void run_shutdown(int signum); | |
16569 | ||
16570 | ||
16571 | ||
16572 | ||
16573 | ||
16574 | int testShutdown(void); | |
16575 | ||
16576 | ||
16577 | ||
16578 | ||
16579 | void initializeShutdownHandlers(void); | |
16580 | ||
16581 | ||
16582 | ||
16583 | ||
16584 | void wait_for_shutdown(void); | |
16585 | ||
16586 | void doneShutdownHandlers(void); | |
16587 | ||
16588 | ||
16589 | ||
16590 | ||
16591 | void formatHelp(const char * general, | |
16592 | const char * description, | |
16593 | const Help * opt); | |
16594 | # 2052 "../../src/include/gnunet_util.h" | |
16595 | int parseDefaultOptions(char c, | |
16596 | char * optarg); | |
16597 | # 2064 "../../src/include/gnunet_util.h" | |
16598 | struct Bloomfilter * loadBloomfilter(const char * filename, | |
16599 | unsigned int size, | |
16600 | unsigned int k); | |
16601 | ||
16602 | ||
16603 | ||
16604 | ||
16605 | ||
16606 | ||
16607 | ||
16608 | int testBloomfilter(struct Bloomfilter * bf, | |
16609 | const HashCode512 * e); | |
16610 | ||
16611 | ||
16612 | ||
16613 | ||
16614 | ||
16615 | ||
16616 | void addToBloomfilter(struct Bloomfilter * bf, | |
16617 | const HashCode512 * e); | |
16618 | ||
16619 | ||
16620 | ||
16621 | ||
16622 | ||
16623 | ||
16624 | void delFromBloomfilter(struct Bloomfilter * bf, | |
16625 | const HashCode512 * e); | |
16626 | ||
16627 | ||
16628 | ||
16629 | ||
16630 | ||
16631 | ||
16632 | ||
16633 | void freeBloomfilter(struct Bloomfilter * bf); | |
16634 | ||
16635 | ||
16636 | ||
16637 | ||
16638 | ||
16639 | void resetBloomfilter(struct Bloomfilter * bf); | |
16640 | # 2118 "../../src/include/gnunet_util.h" | |
16641 | void resizeBloomfilter(struct Bloomfilter * bf, | |
16642 | ElementIterator iterator, | |
16643 | void * iterator_arg, | |
16644 | unsigned int size, | |
16645 | unsigned int k); | |
16646 | # 2131 "../../src/include/gnunet_util.h" | |
16647 | int setBlocking(int s, int doBlock); | |
16648 | ||
16649 | ||
16650 | ||
16651 | ||
16652 | ||
16653 | ||
16654 | int isSocketBlocking(int s); | |
16655 | # 2155 "../../src/include/gnunet_util.h" | |
16656 | int RECV_NONBLOCKING(int s, | |
16657 | void * buf, | |
16658 | size_t max, | |
16659 | size_t *read); | |
16660 | # 2168 "../../src/include/gnunet_util.h" | |
16661 | int RECV_BLOCKING_ALL(int s, | |
16662 | void * buf, | |
16663 | size_t len); | |
16664 | # 2188 "../../src/include/gnunet_util.h" | |
16665 | int SEND_NONBLOCKING(int s, | |
16666 | const void * buf, | |
16667 | size_t max, | |
16668 | size_t *sent); | |
16669 | # 2202 "../../src/include/gnunet_util.h" | |
16670 | int SEND_BLOCKING_ALL(int s, | |
16671 | const void * buf, | |
16672 | size_t len); | |
16673 | ||
16674 | ||
16675 | ||
16676 | ||
16677 | ||
16678 | int isSocketValid(int s); | |
16679 | ||
16680 | ||
16681 | ||
16682 | ||
16683 | int SNPRINTF(char * buf, | |
16684 | size_t size, | |
16685 | const char * format, | |
16686 | ...); | |
16687 | ||
16688 | ||
16689 | ||
16690 | ||
16691 | void vectorDump(struct Vector *v); | |
16692 | # 2233 "../../src/include/gnunet_util.h" | |
16693 | struct Vector * vectorNew(unsigned int vss); | |
16694 | ||
16695 | ||
16696 | ||
16697 | ||
16698 | ||
16699 | ||
16700 | void vectorFree(struct Vector * v); | |
16701 | ||
16702 | size_t vectorSize(struct Vector * v); | |
16703 | ||
16704 | ||
16705 | ||
16706 | ||
16707 | ||
16708 | int vectorInsertAt(struct Vector * v, | |
16709 | void * object, | |
16710 | unsigned int index); | |
16711 | ||
16712 | ||
16713 | ||
16714 | ||
16715 | void vectorInsertLast(struct Vector * v, void * object); | |
16716 | ||
16717 | ||
16718 | ||
16719 | ||
16720 | ||
16721 | void * vectorGetAt(struct Vector * v, | |
16722 | unsigned int index); | |
16723 | ||
16724 | ||
16725 | ||
16726 | ||
16727 | ||
16728 | ||
16729 | void * vectorGetFirst(struct Vector * v); | |
16730 | ||
16731 | ||
16732 | ||
16733 | ||
16734 | ||
16735 | void * vectorGetLast(struct Vector * v); | |
16736 | ||
16737 | ||
16738 | ||
16739 | ||
16740 | ||
16741 | ||
16742 | void * vectorGetNext(struct Vector * v); | |
16743 | ||
16744 | ||
16745 | ||
16746 | ||
16747 | ||
16748 | ||
16749 | void * vectorGetPrevious(struct Vector * v); | |
16750 | ||
16751 | ||
16752 | ||
16753 | ||
16754 | ||
16755 | void * vectorRemoveAt(struct Vector * v, | |
16756 | unsigned int index); | |
16757 | ||
16758 | ||
16759 | ||
16760 | ||
16761 | ||
16762 | void * vectorRemoveLast(struct Vector * v); | |
16763 | ||
16764 | ||
16765 | ||
16766 | ||
16767 | ||
16768 | void * vectorRemoveObject(struct Vector * v, void * object); | |
16769 | ||
16770 | ||
16771 | ||
16772 | ||
16773 | ||
16774 | void * vectorSetAt(struct Vector * v, | |
16775 | void * object, | |
16776 | unsigned int index); | |
16777 | ||
16778 | ||
16779 | ||
16780 | ||
16781 | ||
16782 | void * vectorSetObject(struct Vector * v, | |
16783 | void * object, | |
16784 | void * old_object); | |
16785 | ||
16786 | ||
16787 | ||
16788 | ||
16789 | ||
16790 | int vectorSwap(struct Vector * v, | |
16791 | unsigned int index1, | |
16792 | unsigned int index2); | |
16793 | ||
16794 | ||
16795 | ||
16796 | ||
16797 | unsigned int vectorIndexOf(struct Vector * v, | |
16798 | void * object); | |
16799 | # 2347 "../../src/include/gnunet_util.h" | |
16800 | void ** vectorElements(struct Vector * v); | |
16801 | # 2366 "../../src/include/gnunet_util.h" | |
16802 | struct HashTable *ht_create(long numOfBuckets); | |
16803 | ||
16804 | ||
16805 | ||
16806 | ||
16807 | ||
16808 | void ht_destroy(struct HashTable *hashTable); | |
16809 | # 2381 "../../src/include/gnunet_util.h" | |
16810 | int ht_containsKey(const struct HashTable *hashTable, const void *key, const unsigned int keylen); | |
16811 | # 2390 "../../src/include/gnunet_util.h" | |
16812 | int ht_containsValue(const struct HashTable *hashTable, const void *value, const unsigned int valuelen); | |
16813 | # 2399 "../../src/include/gnunet_util.h" | |
16814 | int ht_put(struct HashTable *hashTable, const void *key, const unsigned int keylen, | |
16815 | void *value, const unsigned int valuelen); | |
16816 | # 2410 "../../src/include/gnunet_util.h" | |
16817 | int ht_get(const struct HashTable *hashTable, const void *key, const unsigned int | |
16818 | keylen, void **value, unsigned int *valuelen); | |
16819 | ||
16820 | ||
16821 | ||
16822 | ||
16823 | ||
16824 | ||
16825 | void ht_remove(struct HashTable *hashTable, const void *key, const unsigned int keylen); | |
16826 | ||
16827 | ||
16828 | ||
16829 | ||
16830 | ||
16831 | void ht_removeAll(struct HashTable *hashTable); | |
16832 | ||
16833 | ||
16834 | ||
16835 | ||
16836 | ||
16837 | ||
16838 | ||
16839 | long ht_size(const struct HashTable *hashTable); | |
16840 | ||
16841 | ||
16842 | ||
16843 | ||
16844 | ||
16845 | ||
16846 | ||
16847 | long ht_buckets(const struct HashTable *hashTable); | |
16848 | # 2454 "../../src/include/gnunet_util.h" | |
16849 | void ht_rehash(struct HashTable *hashTable, long numOfBuckets); | |
16850 | # 2482 "../../src/include/gnunet_util.h" | |
16851 | void ht_setIdealRatio(struct HashTable *hashTable, float idealRatio, | |
16852 | float lowerRehashThreshold, float upperRehashThreshold); | |
16853 | ||
16854 | #define HT_PUT(ht,key,val) ht_put(ht, key, sizeof(key), val, sizeof(val)) | |
16855 | #define HT_GET(ht,key,val,vallen) ht_get(ht, key, sizeof(key), val, vallen) | |
16856 | #define HT_CONTAINS_KEY(ht,key) ht_containsKey(ht, key, sizeof(key)) | |
16857 | #define HT_CONTAINS_VALUE(ht,value) ht_containsValue(ht, value, sizeof(value)) | |
16858 | #define HT_REMOVE(ht,key) ht_remove(ht, key, sizeof(key)) | |
16859 | ||
16860 | ||
16861 | ||
16862 | ||
16863 | int fileopen(const char *filename, int oflag, ...); | |
16864 | ||
16865 | ||
16866 | ||
16867 | ||
16868 | ||
16869 | size_t strlcpy(char *dest, const char *src, size_t size); | |
16870 | ||
16871 | ||
16872 | size_t strlcat(char *dest, const char *src, size_t count); | |
16873 | ||
16874 | ||
16875 | ||
16876 | ||
16877 | ||
16878 | ||
16879 | char * getHumanSize (unsigned long long int size_n); | |
16880 | ||
16881 | ||
16882 | ||
16883 | ||
16884 | ||
16885 | void enumNetworkIfs(void (*callback) (const char *, int, void *), void * cls); | |
16886 | ||
16887 | ||
16888 | ||
16889 | ||
16890 | ||
16891 | int isOSAutostartCapable(void); | |
16892 | # 2531 "../../src/include/gnunet_util.h" | |
16893 | int autostartService(int doAutoStart, char *username, char *groupname); | |
16894 | ||
16895 | ||
16896 | ||
16897 | ||
16898 | ||
16899 | ||
16900 | int isOSUserAddCapable(void); | |
16901 | ||
16902 | ||
16903 | ||
16904 | ||
16905 | ||
16906 | ||
16907 | int isOSGroupAddCapable(void); | |
16908 | ||
16909 | ||
16910 | ||
16911 | ||
16912 | ||
16913 | ||
16914 | ||
16915 | int createGroupUser(char *group_name, char *user_name); | |
16916 | ||
16917 | ||
16918 | ||
16919 | ||
16920 | char *winErrorStr(char *prefix, int dwErr); | |
16921 | # 2568 "../../src/include/gnunet_util.h" | |
16922 | int checkGNUnetDaemonRunning(void); | |
16923 | # 2577 "../../src/include/gnunet_util.h" | |
16924 | int startGNUnetDaemon(int daemonize); | |
16925 | # 2598 "../../src/include/gnunet_util.h" | |
16926 | int stopGNUnetDaemon(void); | |
16927 | # 2608 "../../src/include/gnunet_util.h" | |
16928 | int waitForGNUnetDaemonRunning(cron_t timeout); | |
16929 | # 2622 "../../src/include/gnunet_util.h" | |
16930 | int waitForGNUnetDaemonTermination(int pid); | |
16931 | ||
16932 | ||
16933 | ||
16934 | ||
16935 | ||
16936 | int termProcess(int pid); | |
16937 | # 17 "lkc.h" 2 | |
16938 | ||
16939 | # 1 "expr.h" 1 | |
16940 | # 14 "expr.h" | |
16941 | #define EXPR_H | |
16942 | ||
16943 | ||
16944 | ||
16945 | ||
16946 | ||
16947 | ||
16948 | # 1 "bool.h" 1 | |
16949 | # 28 "bool.h" | |
16950 | #define CONF_BOOL_H | |
16951 | ||
16952 | ||
16953 | ||
16954 | # 1 "/usr/include/ncurses.h" 1 3 4 | |
16955 | # 38 "/usr/include/ncurses.h" 3 4 | |
16956 | #define __NCURSES_H | |
16957 | ||
16958 | #define CURSES 1 | |
16959 | #define CURSES_H 1 | |
16960 | # 50 "/usr/include/ncurses.h" 3 4 | |
16961 | #define NCURSES_VERSION_MAJOR 5 | |
16962 | #define NCURSES_VERSION_MINOR 5 | |
16963 | #define NCURSES_VERSION_PATCH 20051010 | |
16964 | ||
16965 | ||
16966 | #undef NCURSES_VERSION | |
16967 | #define NCURSES_VERSION "5.5" | |
16968 | ||
16969 | ||
16970 | ||
16971 | ||
16972 | #define NCURSES_MOUSE_VERSION 1 | |
16973 | ||
16974 | ||
16975 | ||
16976 | ||
16977 | # 1 "/usr/include/ncurses_dll.h" 1 3 4 | |
16978 | ||
16979 | ||
16980 | ||
16981 | #define NCURSES_DLL_H_incl 1 | |
16982 | ||
16983 | ||
16984 | ||
16985 | ||
16986 | ||
16987 | #undef NCURSES_DLL | |
16988 | #define NCURSES_STATIC | |
16989 | # 40 "/usr/include/ncurses_dll.h" 3 4 | |
16990 | #define NCURSES_IMPEXP | |
16991 | ||
16992 | ||
16993 | #define NCURSES_API | |
16994 | ||
16995 | ||
16996 | #define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API | |
16997 | ||
16998 | ||
16999 | #define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type | |
17000 | # 67 "/usr/include/ncurses.h" 2 3 4 | |
17001 | ||
17002 | ||
17003 | ||
17004 | ||
17005 | ||
17006 | #define NCURSES_ENABLE_STDBOOL_H 1 | |
17007 | # 84 "/usr/include/ncurses.h" 3 4 | |
17008 | #define NCURSES_ATTR_T int | |
17009 | ||
17010 | ||
17011 | ||
17012 | ||
17013 | ||
17014 | ||
17015 | #undef NCURSES_CONST | |
17016 | #define NCURSES_CONST const | |
17017 | ||
17018 | ||
17019 | ||
17020 | ||
17021 | #undef NCURSES_COLOR_T | |
17022 | #define NCURSES_COLOR_T short | |
17023 | ||
17024 | ||
17025 | ||
17026 | ||
17027 | #undef NCURSES_SIZE_T | |
17028 | #define NCURSES_SIZE_T short | |
17029 | ||
17030 | ||
17031 | ||
17032 | ||
17033 | ||
17034 | ||
17035 | #undef NCURSES_CH_T | |
17036 | #define NCURSES_CH_T chtype | |
17037 | ||
17038 | ||
17039 | ||
17040 | ||
17041 | ||
17042 | typedef unsigned long chtype; | |
17043 | typedef unsigned long mmask_t; | |
17044 | ||
17045 | ||
17046 | ||
17047 | # 1 "/usr/include/unctrl.h" 1 3 4 | |
17048 | # 45 "/usr/include/unctrl.h" 3 4 | |
17049 | #define NCURSES_UNCTRL_H_incl 1 | |
17050 | ||
17051 | #undef NCURSES_VERSION | |
17052 | #define NCURSES_VERSION "5.5" | |
17053 | ||
17054 | ||
17055 | ||
17056 | ||
17057 | ||
17058 | # 1 "/usr/include/curses.h" 1 3 4 | |
17059 | # 55 "/usr/include/unctrl.h" 2 3 4 | |
17060 | ||
17061 | #undef unctrl | |
17062 | const char * unctrl (chtype); | |
17063 | # 124 "/usr/include/ncurses.h" 2 3 4 | |
17064 | ||
17065 | ||
17066 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
17067 | # 42 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
17068 | #define _STDDEF_H | |
17069 | #define _STDDEF_H_ | |
17070 | ||
17071 | #define _ANSI_STDDEF_H | |
17072 | ||
17073 | #define __STDDEF_H__ | |
17074 | # 140 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
17075 | #define _PTRDIFF_T | |
17076 | #define _T_PTRDIFF_ | |
17077 | #define _T_PTRDIFF | |
17078 | #define __PTRDIFF_T | |
17079 | #define _PTRDIFF_T_ | |
17080 | #define _BSD_PTRDIFF_T_ | |
17081 | #define ___int_ptrdiff_t_h | |
17082 | #define _GCC_PTRDIFF_T | |
17083 | ||
17084 | ||
17085 | ||
17086 | typedef int ptrdiff_t; | |
17087 | # 162 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
17088 | #undef __need_ptrdiff_t | |
17089 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
17090 | #undef __need_size_t | |
17091 | # 344 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
17092 | #undef __need_wchar_t | |
17093 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
17094 | #undef NULL | |
17095 | ||
17096 | ||
17097 | ||
17098 | ||
17099 | #define NULL ((void *)0) | |
17100 | ||
17101 | ||
17102 | ||
17103 | ||
17104 | ||
17105 | #undef __need_NULL | |
17106 | ||
17107 | ||
17108 | ||
17109 | ||
17110 | ||
17111 | #define offsetof(TYPE,MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | |
17112 | # 127 "/usr/include/ncurses.h" 2 3 4 | |
17113 | # 141 "/usr/include/ncurses.h" 3 4 | |
17114 | #undef TRUE | |
17115 | #define TRUE 1 | |
17116 | ||
17117 | #undef FALSE | |
17118 | #define FALSE 0 | |
17119 | ||
17120 | typedef unsigned char NCURSES_BOOL; | |
17121 | # 157 "/usr/include/ncurses.h" 3 4 | |
17122 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdbool.h" 1 3 4 | |
17123 | # 32 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdbool.h" 3 4 | |
17124 | #define _STDBOOL_H | |
17125 | ||
17126 | ||
17127 | ||
17128 | #define bool _Bool | |
17129 | #define true 1 | |
17130 | #define false 0 | |
17131 | # 51 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stdbool.h" 3 4 | |
17132 | #define __bool_true_false_are_defined 1 | |
17133 | # 158 "/usr/include/ncurses.h" 2 3 4 | |
17134 | ||
17135 | #define NCURSES_BOOL bool | |
17136 | # 172 "/usr/include/ncurses.h" 3 4 | |
17137 | #define NCURSES_CAST(type,value) (type)(value) | |
17138 | ||
17139 | ||
17140 | ||
17141 | ||
17142 | ||
17143 | ||
17144 | #define WA_ATTRIBUTES A_ATTRIBUTES | |
17145 | #define WA_NORMAL A_NORMAL | |
17146 | #define WA_STANDOUT A_STANDOUT | |
17147 | #define WA_UNDERLINE A_UNDERLINE | |
17148 | #define WA_REVERSE A_REVERSE | |
17149 | #define WA_BLINK A_BLINK | |
17150 | #define WA_DIM A_DIM | |
17151 | #define WA_BOLD A_BOLD | |
17152 | #define WA_ALTCHARSET A_ALTCHARSET | |
17153 | #define WA_INVIS A_INVIS | |
17154 | #define WA_PROTECT A_PROTECT | |
17155 | #define WA_HORIZONTAL A_HORIZONTAL | |
17156 | #define WA_LEFT A_LEFT | |
17157 | #define WA_LOW A_LOW | |
17158 | #define WA_RIGHT A_RIGHT | |
17159 | #define WA_TOP A_TOP | |
17160 | #define WA_VERTICAL A_VERTICAL | |
17161 | ||
17162 | ||
17163 | extern int COLORS; | |
17164 | extern int COLOR_PAIRS; | |
17165 | ||
17166 | #define COLOR_BLACK 0 | |
17167 | #define COLOR_RED 1 | |
17168 | #define COLOR_GREEN 2 | |
17169 | #define COLOR_YELLOW 3 | |
17170 | #define COLOR_BLUE 4 | |
17171 | #define COLOR_MAGENTA 5 | |
17172 | #define COLOR_CYAN 6 | |
17173 | #define COLOR_WHITE 7 | |
17174 | ||
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
17180 | ||
17181 | extern chtype acs_map[]; | |
17182 | ||
17183 | ||
17184 | #define NCURSES_ACS(c) (acs_map[NCURSES_CAST(unsigned char,c)]) | |
17185 | ||
17186 | ||
17187 | #define ACS_ULCORNER NCURSES_ACS('l') | |
17188 | #define ACS_LLCORNER NCURSES_ACS('m') | |
17189 | #define ACS_URCORNER NCURSES_ACS('k') | |
17190 | #define ACS_LRCORNER NCURSES_ACS('j') | |
17191 | #define ACS_LTEE NCURSES_ACS('t') | |
17192 | #define ACS_RTEE NCURSES_ACS('u') | |
17193 | #define ACS_BTEE NCURSES_ACS('v') | |
17194 | #define ACS_TTEE NCURSES_ACS('w') | |
17195 | #define ACS_HLINE NCURSES_ACS('q') | |
17196 | #define ACS_VLINE NCURSES_ACS('x') | |
17197 | #define ACS_PLUS NCURSES_ACS('n') | |
17198 | #define ACS_S1 NCURSES_ACS('o') | |
17199 | #define ACS_S9 NCURSES_ACS('s') | |
17200 | #define ACS_DIAMOND NCURSES_ACS('`') | |
17201 | #define ACS_CKBOARD NCURSES_ACS('a') | |
17202 | #define ACS_DEGREE NCURSES_ACS('f') | |
17203 | #define ACS_PLMINUS NCURSES_ACS('g') | |
17204 | #define ACS_BULLET NCURSES_ACS('~') | |
17205 | ||
17206 | #define ACS_LARROW NCURSES_ACS(',') | |
17207 | #define ACS_RARROW NCURSES_ACS('+') | |
17208 | #define ACS_DARROW NCURSES_ACS('.') | |
17209 | #define ACS_UARROW NCURSES_ACS('-') | |
17210 | #define ACS_BOARD NCURSES_ACS('h') | |
17211 | #define ACS_LANTERN NCURSES_ACS('i') | |
17212 | #define ACS_BLOCK NCURSES_ACS('0') | |
17213 | ||
17214 | ||
17215 | ||
17216 | ||
17217 | ||
17218 | #define ACS_S3 NCURSES_ACS('p') | |
17219 | #define ACS_S7 NCURSES_ACS('r') | |
17220 | #define ACS_LEQUAL NCURSES_ACS('y') | |
17221 | #define ACS_GEQUAL NCURSES_ACS('z') | |
17222 | #define ACS_PI NCURSES_ACS('{') | |
17223 | #define ACS_NEQUAL NCURSES_ACS('|') | |
17224 | #define ACS_STERLING NCURSES_ACS('}') | |
17225 | ||
17226 | ||
17227 | ||
17228 | ||
17229 | ||
17230 | ||
17231 | ||
17232 | #define ACS_BSSB ACS_ULCORNER | |
17233 | #define ACS_SSBB ACS_LLCORNER | |
17234 | #define ACS_BBSS ACS_URCORNER | |
17235 | #define ACS_SBBS ACS_LRCORNER | |
17236 | #define ACS_SBSS ACS_RTEE | |
17237 | #define ACS_SSSB ACS_LTEE | |
17238 | #define ACS_SSBS ACS_BTEE | |
17239 | #define ACS_BSSS ACS_TTEE | |
17240 | #define ACS_BSBS ACS_HLINE | |
17241 | #define ACS_SBSB ACS_VLINE | |
17242 | #define ACS_SSSS ACS_PLUS | |
17243 | ||
17244 | #undef ERR | |
17245 | #define ERR (-1) | |
17246 | ||
17247 | #undef OK | |
17248 | #define OK (0) | |
17249 | ||
17250 | ||
17251 | #define _SUBWIN 0x01 | |
17252 | #define _ENDLINE 0x02 | |
17253 | #define _FULLWIN 0x04 | |
17254 | #define _SCROLLWIN 0x08 | |
17255 | #define _ISPAD 0x10 | |
17256 | #define _HASMOVED 0x20 | |
17257 | #define _WRAPPED 0x40 | |
17258 | ||
17259 | ||
17260 | ||
17261 | ||
17262 | ||
17263 | #define _NOCHANGE -1 | |
17264 | ||
17265 | ||
17266 | ||
17267 | ||
17268 | ||
17269 | #define _NEWINDEX -1 | |
17270 | ||
17271 | typedef struct screen SCREEN; | |
17272 | typedef struct _win_st WINDOW; | |
17273 | ||
17274 | typedef chtype attr_t; | |
17275 | # 332 "/usr/include/ncurses.h" 3 4 | |
17276 | #define CCHARW_MAX 5 | |
17277 | typedef struct | |
17278 | { | |
17279 | attr_t attr; | |
17280 | wchar_t chars[5]; | |
17281 | ||
17282 | ||
17283 | ||
17284 | } | |
17285 | cchar_t; | |
17286 | ||
17287 | ||
17288 | ||
17289 | struct ldat; | |
17290 | ||
17291 | struct _win_st | |
17292 | { | |
17293 | short _cury, _curx; | |
17294 | ||
17295 | ||
17296 | short _maxy, _maxx; | |
17297 | short _begy, _begx; | |
17298 | ||
17299 | short _flags; | |
17300 | ||
17301 | ||
17302 | attr_t _attrs; | |
17303 | chtype _bkgd; | |
17304 | ||
17305 | ||
17306 | _Bool _notimeout; | |
17307 | _Bool _clear; | |
17308 | _Bool _leaveok; | |
17309 | _Bool _scroll; | |
17310 | _Bool _idlok; | |
17311 | _Bool _idcok; | |
17312 | _Bool _immed; | |
17313 | _Bool _sync; | |
17314 | _Bool _use_keypad; | |
17315 | int _delay; | |
17316 | ||
17317 | struct ldat *_line; | |
17318 | ||
17319 | ||
17320 | short _regtop; | |
17321 | short _regbottom; | |
17322 | ||
17323 | ||
17324 | int _parx; | |
17325 | int _pary; | |
17326 | WINDOW *_parent; | |
17327 | ||
17328 | ||
17329 | struct pdat | |
17330 | { | |
17331 | short _pad_y, _pad_x; | |
17332 | short _pad_top, _pad_left; | |
17333 | short _pad_bottom, _pad_right; | |
17334 | } _pad; | |
17335 | ||
17336 | short _yoffset; | |
17337 | ||
17338 | ||
17339 | cchar_t _bkgrnd; | |
17340 | ||
17341 | ||
17342 | ||
17343 | ||
17344 | }; | |
17345 | ||
17346 | extern WINDOW * stdscr; | |
17347 | extern WINDOW * curscr; | |
17348 | extern WINDOW * newscr; | |
17349 | ||
17350 | extern int LINES; | |
17351 | extern int COLS; | |
17352 | extern int TABSIZE; | |
17353 | ||
17354 | ||
17355 | ||
17356 | ||
17357 | extern int ESCDELAY; | |
17358 | ||
17359 | extern char ttytype[]; | |
17360 | ||
17361 | ||
17362 | ||
17363 | ||
17364 | ||
17365 | extern _Bool is_term_resized (int, int); | |
17366 | extern char * keybound (int, int); | |
17367 | extern const char * curses_version (void); | |
17368 | extern int assume_default_colors (int, int); | |
17369 | extern int define_key (const char *, int); | |
17370 | extern int key_defined (const char *); | |
17371 | extern int keyok (int, _Bool); | |
17372 | extern int resize_term (int, int); | |
17373 | extern int resizeterm (int, int); | |
17374 | extern int use_default_colors (void); | |
17375 | extern int use_extended_names (_Bool); | |
17376 | extern int wresize (WINDOW *, int, int); | |
17377 | # 504 "/usr/include/ncurses.h" 3 4 | |
17378 | #define GCC_PRINTFLIKE(fmt,var) | |
17379 | ||
17380 | ||
17381 | ||
17382 | ||
17383 | ||
17384 | ||
17385 | ||
17386 | #define GCC_SCANFLIKE(fmt,var) | |
17387 | ||
17388 | ||
17389 | ||
17390 | ||
17391 | #define GCC_NORETURN | |
17392 | ||
17393 | ||
17394 | ||
17395 | #define GCC_UNUSED | |
17396 | # 531 "/usr/include/ncurses.h" 3 4 | |
17397 | extern int addch (const chtype); | |
17398 | extern int addchnstr (const chtype *, int); | |
17399 | extern int addchstr (const chtype *); | |
17400 | extern int addnstr (const char *, int); | |
17401 | extern int addstr (const char *); | |
17402 | extern int attroff (int); | |
17403 | extern int attron (int); | |
17404 | extern int attrset (int); | |
17405 | extern int attr_get (attr_t *, short *, void *); | |
17406 | extern int attr_off (attr_t, void *); | |
17407 | extern int attr_on (attr_t, void *); | |
17408 | extern int attr_set (attr_t, short, void *); | |
17409 | extern int baudrate (void); | |
17410 | extern int beep (void); | |
17411 | extern int bkgd (chtype); | |
17412 | extern void bkgdset (chtype); | |
17413 | extern int border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); | |
17414 | extern int box (WINDOW *, chtype, chtype); | |
17415 | extern _Bool can_change_color (void); | |
17416 | extern int cbreak (void); | |
17417 | extern int chgat (int, attr_t, short, const void *); | |
17418 | extern int clear (void); | |
17419 | extern int clearok (WINDOW *,_Bool); | |
17420 | extern int clrtobot (void); | |
17421 | extern int clrtoeol (void); | |
17422 | extern int color_content (short,short*,short*,short*); | |
17423 | extern int color_set (short,void*); | |
17424 | extern int COLOR_PAIR (int); | |
17425 | extern int copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int); | |
17426 | extern int curs_set (int); | |
17427 | extern int def_prog_mode (void); | |
17428 | extern int def_shell_mode (void); | |
17429 | extern int delay_output (int); | |
17430 | extern int delch (void); | |
17431 | extern void delscreen (SCREEN *); | |
17432 | extern int delwin (WINDOW *); | |
17433 | extern int deleteln (void); | |
17434 | extern WINDOW * derwin (WINDOW *,int,int,int,int); | |
17435 | extern int doupdate (void); | |
17436 | extern WINDOW * dupwin (WINDOW *); | |
17437 | extern int echo (void); | |
17438 | extern int echochar (const chtype); | |
17439 | extern int erase (void); | |
17440 | extern int endwin (void); | |
17441 | extern char erasechar (void); | |
17442 | extern void filter (void); | |
17443 | extern int flash (void); | |
17444 | extern int flushinp (void); | |
17445 | extern chtype getbkgd (WINDOW *); | |
17446 | extern int getch (void); | |
17447 | extern int getnstr (char *, int); | |
17448 | extern int getstr (char *); | |
17449 | extern WINDOW * getwin (FILE *); | |
17450 | extern int halfdelay (int); | |
17451 | extern _Bool has_colors (void); | |
17452 | extern _Bool has_ic (void); | |
17453 | extern _Bool has_il (void); | |
17454 | extern int hline (chtype, int); | |
17455 | extern void idcok (WINDOW *, _Bool); | |
17456 | extern int idlok (WINDOW *, _Bool); | |
17457 | extern void immedok (WINDOW *, _Bool); | |
17458 | extern chtype inch (void); | |
17459 | extern int inchnstr (chtype *, int); | |
17460 | extern int inchstr (chtype *); | |
17461 | extern WINDOW * initscr (void); | |
17462 | extern int init_color (short,short,short,short); | |
17463 | extern int init_pair (short,short,short); | |
17464 | extern int innstr (char *, int); | |
17465 | extern int insch (chtype); | |
17466 | extern int insdelln (int); | |
17467 | extern int insertln (void); | |
17468 | extern int insnstr (const char *, int); | |
17469 | extern int insstr (const char *); | |
17470 | extern int instr (char *); | |
17471 | extern int intrflush (WINDOW *,_Bool); | |
17472 | extern _Bool isendwin (void); | |
17473 | extern _Bool is_linetouched (WINDOW *,int); | |
17474 | extern _Bool is_wintouched (WINDOW *); | |
17475 | extern const char * keyname (int); | |
17476 | extern int keypad (WINDOW *,_Bool); | |
17477 | extern char killchar (void); | |
17478 | extern int leaveok (WINDOW *,_Bool); | |
17479 | extern char * longname (void); | |
17480 | extern int meta (WINDOW *,_Bool); | |
17481 | extern int move (int, int); | |
17482 | extern int mvaddch (int, int, const chtype); | |
17483 | extern int mvaddchnstr (int, int, const chtype *, int); | |
17484 | extern int mvaddchstr (int, int, const chtype *); | |
17485 | extern int mvaddnstr (int, int, const char *, int); | |
17486 | extern int mvaddstr (int, int, const char *); | |
17487 | extern int mvchgat (int, int, int, attr_t, short, const void *); | |
17488 | extern int mvcur (int,int,int,int); | |
17489 | extern int mvdelch (int, int); | |
17490 | extern int mvderwin (WINDOW *, int, int); | |
17491 | extern int mvgetch (int, int); | |
17492 | extern int mvgetnstr (int, int, char *, int); | |
17493 | extern int mvgetstr (int, int, char *); | |
17494 | extern int mvhline (int, int, chtype, int); | |
17495 | extern chtype mvinch (int, int); | |
17496 | extern int mvinchnstr (int, int, chtype *, int); | |
17497 | extern int mvinchstr (int, int, chtype *); | |
17498 | extern int mvinnstr (int, int, char *, int); | |
17499 | extern int mvinsch (int, int, chtype); | |
17500 | extern int mvinsnstr (int, int, const char *, int); | |
17501 | extern int mvinsstr (int, int, const char *); | |
17502 | extern int mvinstr (int, int, char *); | |
17503 | extern int mvprintw (int,int, const char *,...) | |
17504 | ; | |
17505 | extern int mvscanw (int,int, const char *,...) | |
17506 | ; | |
17507 | extern int mvvline (int, int, chtype, int); | |
17508 | extern int mvwaddch (WINDOW *, int, int, const chtype); | |
17509 | extern int mvwaddchnstr (WINDOW *, int, int, const chtype *, int); | |
17510 | extern int mvwaddchstr (WINDOW *, int, int, const chtype *); | |
17511 | extern int mvwaddnstr (WINDOW *, int, int, const char *, int); | |
17512 | extern int mvwaddstr (WINDOW *, int, int, const char *); | |
17513 | extern int mvwchgat (WINDOW *, int, int, int, attr_t, short, const void *); | |
17514 | extern int mvwdelch (WINDOW *, int, int); | |
17515 | extern int mvwgetch (WINDOW *, int, int); | |
17516 | extern int mvwgetnstr (WINDOW *, int, int, char *, int); | |
17517 | extern int mvwgetstr (WINDOW *, int, int, char *); | |
17518 | extern int mvwhline (WINDOW *, int, int, chtype, int); | |
17519 | extern int mvwin (WINDOW *,int,int); | |
17520 | extern chtype mvwinch (WINDOW *, int, int); | |
17521 | extern int mvwinchnstr (WINDOW *, int, int, chtype *, int); | |
17522 | extern int mvwinchstr (WINDOW *, int, int, chtype *); | |
17523 | extern int mvwinnstr (WINDOW *, int, int, char *, int); | |
17524 | extern int mvwinsch (WINDOW *, int, int, chtype); | |
17525 | extern int mvwinsnstr (WINDOW *, int, int, const char *, int); | |
17526 | extern int mvwinsstr (WINDOW *, int, int, const char *); | |
17527 | extern int mvwinstr (WINDOW *, int, int, char *); | |
17528 | extern int mvwprintw (WINDOW*,int,int, const char *,...) | |
17529 | ; | |
17530 | extern int mvwscanw (WINDOW *,int,int, const char *,...) | |
17531 | ; | |
17532 | extern int mvwvline (WINDOW *,int, int, chtype, int); | |
17533 | extern int napms (int); | |
17534 | extern WINDOW * newpad (int,int); | |
17535 | extern SCREEN * newterm (const char *,FILE *,FILE *); | |
17536 | extern WINDOW * newwin (int,int,int,int); | |
17537 | extern int nl (void); | |
17538 | extern int nocbreak (void); | |
17539 | extern int nodelay (WINDOW *,_Bool); | |
17540 | extern int noecho (void); | |
17541 | extern int nonl (void); | |
17542 | extern void noqiflush (void); | |
17543 | extern int noraw (void); | |
17544 | extern int notimeout (WINDOW *,_Bool); | |
17545 | extern int overlay (const WINDOW*,WINDOW *); | |
17546 | extern int overwrite (const WINDOW*,WINDOW *); | |
17547 | extern int pair_content (short,short*,short*); | |
17548 | extern int PAIR_NUMBER (int); | |
17549 | extern int pechochar (WINDOW *, const chtype); | |
17550 | extern int pnoutrefresh (WINDOW*,int,int,int,int,int,int); | |
17551 | extern int prefresh (WINDOW *,int,int,int,int,int,int); | |
17552 | extern int printw (const char *,...) | |
17553 | ; | |
17554 | extern int putp (const char *); | |
17555 | extern int putwin (WINDOW *, FILE *); | |
17556 | extern void qiflush (void); | |
17557 | extern int raw (void); | |
17558 | extern int redrawwin (WINDOW *); | |
17559 | extern int refresh (void); | |
17560 | extern int resetty (void); | |
17561 | extern int reset_prog_mode (void); | |
17562 | extern int reset_shell_mode (void); | |
17563 | extern int ripoffline (int, int (*)(WINDOW *, int)); | |
17564 | extern int savetty (void); | |
17565 | extern int scanw (const char *,...) | |
17566 | ; | |
17567 | extern int scr_dump (const char *); | |
17568 | extern int scr_init (const char *); | |
17569 | extern int scrl (int); | |
17570 | extern int scroll (WINDOW *); | |
17571 | extern int scrollok (WINDOW *,_Bool); | |
17572 | extern int scr_restore (const char *); | |
17573 | extern int scr_set (const char *); | |
17574 | extern int setscrreg (int,int); | |
17575 | extern SCREEN * set_term (SCREEN *); | |
17576 | extern int slk_attroff (const chtype); | |
17577 | extern int slk_attr_off (const attr_t, void *); | |
17578 | extern int slk_attron (const chtype); | |
17579 | extern int slk_attr_on (attr_t,void*); | |
17580 | extern int slk_attrset (const chtype); | |
17581 | extern attr_t slk_attr (void); | |
17582 | extern int slk_attr_set (const attr_t,short,void*); | |
17583 | extern int slk_clear (void); | |
17584 | extern int slk_color (short); | |
17585 | extern int slk_init (int); | |
17586 | extern char * slk_label (int); | |
17587 | extern int slk_noutrefresh (void); | |
17588 | extern int slk_refresh (void); | |
17589 | extern int slk_restore (void); | |
17590 | extern int slk_set (int,const char *,int); | |
17591 | extern int slk_touch (void); | |
17592 | extern int standout (void); | |
17593 | extern int standend (void); | |
17594 | extern int start_color (void); | |
17595 | extern WINDOW * subpad (WINDOW *, int, int, int, int); | |
17596 | extern WINDOW * subwin (WINDOW *,int,int,int,int); | |
17597 | extern int syncok (WINDOW *, _Bool); | |
17598 | extern chtype termattrs (void); | |
17599 | extern char * termname (void); | |
17600 | extern int tigetflag (const char *); | |
17601 | extern int tigetnum (const char *); | |
17602 | extern char * tigetstr (const char *); | |
17603 | extern void timeout (int); | |
17604 | extern int touchline (WINDOW *, int, int); | |
17605 | extern int touchwin (WINDOW *); | |
17606 | extern char * tparm (const char *, ...); | |
17607 | extern int typeahead (int); | |
17608 | extern int ungetch (int); | |
17609 | extern int untouchwin (WINDOW *); | |
17610 | extern void use_env (_Bool); | |
17611 | extern int vidattr (chtype); | |
17612 | extern int vidputs (chtype, int (*)(int)); | |
17613 | extern int vline (chtype, int); | |
17614 | extern int vwprintw (WINDOW *, const char *,va_list); | |
17615 | extern int vw_printw (WINDOW *, const char *,va_list); | |
17616 | extern int vwscanw (WINDOW *, const char *,va_list); | |
17617 | extern int vw_scanw (WINDOW *, const char *,va_list); | |
17618 | extern int waddch (WINDOW *, const chtype); | |
17619 | extern int waddchnstr (WINDOW *,const chtype *,int); | |
17620 | extern int waddchstr (WINDOW *,const chtype *); | |
17621 | extern int waddnstr (WINDOW *,const char *,int); | |
17622 | extern int waddstr (WINDOW *,const char *); | |
17623 | extern int wattron (WINDOW *, int); | |
17624 | extern int wattroff (WINDOW *, int); | |
17625 | extern int wattrset (WINDOW *, int); | |
17626 | extern int wattr_get (WINDOW *, attr_t *, short *, void *); | |
17627 | extern int wattr_on (WINDOW *, attr_t, void *); | |
17628 | extern int wattr_off (WINDOW *, attr_t, void *); | |
17629 | extern int wattr_set (WINDOW *, attr_t, short, void *); | |
17630 | extern int wbkgd (WINDOW *, chtype); | |
17631 | extern void wbkgdset (WINDOW *,chtype); | |
17632 | extern int wborder (WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); | |
17633 | extern int wchgat (WINDOW *, int, attr_t, short, const void *); | |
17634 | extern int wclear (WINDOW *); | |
17635 | extern int wclrtobot (WINDOW *); | |
17636 | extern int wclrtoeol (WINDOW *); | |
17637 | extern int wcolor_set (WINDOW*,short,void*); | |
17638 | extern void wcursyncup (WINDOW *); | |
17639 | extern int wdelch (WINDOW *); | |
17640 | extern int wdeleteln (WINDOW *); | |
17641 | extern int wechochar (WINDOW *, const chtype); | |
17642 | extern int werase (WINDOW *); | |
17643 | extern int wgetch (WINDOW *); | |
17644 | extern int wgetnstr (WINDOW *,char *,int); | |
17645 | extern int wgetstr (WINDOW *, char *); | |
17646 | extern int whline (WINDOW *, chtype, int); | |
17647 | extern chtype winch (WINDOW *); | |
17648 | extern int winchnstr (WINDOW *, chtype *, int); | |
17649 | extern int winchstr (WINDOW *, chtype *); | |
17650 | extern int winnstr (WINDOW *, char *, int); | |
17651 | extern int winsch (WINDOW *, chtype); | |
17652 | extern int winsdelln (WINDOW *,int); | |
17653 | extern int winsertln (WINDOW *); | |
17654 | extern int winsnstr (WINDOW *, const char *,int); | |
17655 | extern int winsstr (WINDOW *, const char *); | |
17656 | extern int winstr (WINDOW *, char *); | |
17657 | extern int wmove (WINDOW *,int,int); | |
17658 | extern int wnoutrefresh (WINDOW *); | |
17659 | extern int wprintw (WINDOW *, const char *,...) | |
17660 | ; | |
17661 | extern int wredrawln (WINDOW *,int,int); | |
17662 | extern int wrefresh (WINDOW *); | |
17663 | extern int wscanw (WINDOW *, const char *,...) | |
17664 | ; | |
17665 | extern int wscrl (WINDOW *,int); | |
17666 | extern int wsetscrreg (WINDOW *,int,int); | |
17667 | extern int wstandout (WINDOW *); | |
17668 | extern int wstandend (WINDOW *); | |
17669 | extern void wsyncdown (WINDOW *); | |
17670 | extern void wsyncup (WINDOW *); | |
17671 | extern void wtimeout (WINDOW *,int); | |
17672 | extern int wtouchln (WINDOW *,int,int,int); | |
17673 | extern int wvline (WINDOW *,chtype,int); | |
17674 | # 818 "/usr/include/ncurses.h" 3 4 | |
17675 | #define NCURSES_ATTR_SHIFT 8 | |
17676 | #define NCURSES_BITS(mask,shift) ((mask) << ((shift) + NCURSES_ATTR_SHIFT)) | |
17677 | ||
17678 | #define A_NORMAL (1UL - 1UL) | |
17679 | #define A_ATTRIBUTES NCURSES_BITS(~(1UL - 1UL),0) | |
17680 | #define A_CHARTEXT (NCURSES_BITS(1UL,0) - 1UL) | |
17681 | #define A_COLOR NCURSES_BITS(((1UL) << 8) - 1UL,0) | |
17682 | #define A_STANDOUT NCURSES_BITS(1UL,8) | |
17683 | #define A_UNDERLINE NCURSES_BITS(1UL,9) | |
17684 | #define A_REVERSE NCURSES_BITS(1UL,10) | |
17685 | #define A_BLINK NCURSES_BITS(1UL,11) | |
17686 | #define A_DIM NCURSES_BITS(1UL,12) | |
17687 | #define A_BOLD NCURSES_BITS(1UL,13) | |
17688 | #define A_ALTCHARSET NCURSES_BITS(1UL,14) | |
17689 | #define A_INVIS NCURSES_BITS(1UL,15) | |
17690 | #define A_PROTECT NCURSES_BITS(1UL,16) | |
17691 | #define A_HORIZONTAL NCURSES_BITS(1UL,17) | |
17692 | #define A_LEFT NCURSES_BITS(1UL,18) | |
17693 | #define A_LOW NCURSES_BITS(1UL,19) | |
17694 | #define A_RIGHT NCURSES_BITS(1UL,20) | |
17695 | #define A_TOP NCURSES_BITS(1UL,21) | |
17696 | #define A_VERTICAL NCURSES_BITS(1UL,22) | |
17697 | ||
17698 | ||
17699 | ||
17700 | ||
17701 | #define COLOR_PAIR(n) NCURSES_BITS(n, 0) | |
17702 | #define PAIR_NUMBER(a) (NCURSES_CAST(int,(((a) & A_COLOR) >> NCURSES_ATTR_SHIFT))) | |
17703 | ||
17704 | ||
17705 | ||
17706 | ||
17707 | #define wgetstr(w,s) wgetnstr(w, s, -1) | |
17708 | #define getnstr(s,n) wgetnstr(stdscr, s, n) | |
17709 | ||
17710 | #define setterm(term) setupterm(term, 1, (int *)0) | |
17711 | ||
17712 | #define fixterm() reset_prog_mode() | |
17713 | #define resetterm() reset_shell_mode() | |
17714 | #define saveterm() def_prog_mode() | |
17715 | #define crmode() cbreak() | |
17716 | #define nocrmode() nocbreak() | |
17717 | #define gettmode() | |
17718 | ||
17719 | #define getyx(win,y,x) (y = getcury(win), x = getcurx(win)) | |
17720 | #define getbegyx(win,y,x) (y = getbegy(win), x = getbegx(win)) | |
17721 | #define getmaxyx(win,y,x) (y = getmaxy(win), x = getmaxx(win)) | |
17722 | #define getparyx(win,y,x) (y = getpary(win), x = getparx(win)) | |
17723 | ||
17724 | #define getsyx(y,x) do { if(newscr->_leaveok) (y)=(x)=-1; else getyx(newscr,(y),(x)); } while(0) | |
17725 | ||
17726 | ||
17727 | #define setsyx(y,x) do { if((y)==-1 && (x)==-1) newscr->_leaveok=TRUE; else {newscr->_leaveok=FALSE;wmove(newscr,(y),(x));} } while(0) | |
17728 | ||
17729 | ||
17730 | ||
17731 | ||
17732 | #define getattrs(win) ((win)?(win)->_attrs:A_NORMAL) | |
17733 | #define getcurx(win) ((win)?(win)->_curx:ERR) | |
17734 | #define getcury(win) ((win)?(win)->_cury:ERR) | |
17735 | #define getbegx(win) ((win)?(win)->_begx:ERR) | |
17736 | #define getbegy(win) ((win)?(win)->_begy:ERR) | |
17737 | #define getmaxx(win) ((win)?((win)->_maxx + 1):ERR) | |
17738 | #define getmaxy(win) ((win)?((win)->_maxy + 1):ERR) | |
17739 | #define getparx(win) ((win)?(win)->_parx:ERR) | |
17740 | #define getpary(win) ((win)?(win)->_pary:ERR) | |
17741 | ||
17742 | #define wstandout(win) (wattrset(win,A_STANDOUT)) | |
17743 | #define wstandend(win) (wattrset(win,A_NORMAL)) | |
17744 | ||
17745 | #define wattron(win,at) wattr_on(win, NCURSES_CAST(attr_t, at), NULL) | |
17746 | #define wattroff(win,at) wattr_off(win, NCURSES_CAST(attr_t, at), NULL) | |
17747 | ||
17748 | ||
17749 | ||
17750 | ||
17751 | ||
17752 | #define wattrset(win,at) ((win)->_attrs = (at)) | |
17753 | ||
17754 | ||
17755 | #define scroll(win) wscrl(win,1) | |
17756 | ||
17757 | #define touchwin(win) wtouchln((win), 0, getmaxy(win), 1) | |
17758 | #define touchline(win,s,c) wtouchln((win), s, c, 1) | |
17759 | #define untouchwin(win) wtouchln((win), 0, getmaxy(win), 0) | |
17760 | ||
17761 | #define box(win,v,h) wborder(win, v, v, h, h, 0, 0, 0, 0) | |
17762 | #define border(ls,rs,ts,bs,tl,tr,bl,br) wborder(stdscr, ls, rs, ts, bs, tl, tr, bl, br) | |
17763 | #define hline(ch,n) whline(stdscr, ch, n) | |
17764 | #define vline(ch,n) wvline(stdscr, ch, n) | |
17765 | ||
17766 | #define winstr(w,s) winnstr(w, s, -1) | |
17767 | #define winchstr(w,s) winchnstr(w, s, -1) | |
17768 | #define winsstr(w,s) winsnstr(w, s, -1) | |
17769 | ||
17770 | #define redrawwin(win) wredrawln(win, 0, (win)->_maxy+1) | |
17771 | #define waddstr(win,str) waddnstr(win,str,-1) | |
17772 | #define waddchstr(win,str) waddchnstr(win,str,-1) | |
17773 | ||
17774 | ||
17775 | ||
17776 | ||
17777 | ||
17778 | #define addch(ch) waddch(stdscr,ch) | |
17779 | #define addchnstr(str,n) waddchnstr(stdscr,str,n) | |
17780 | #define addchstr(str) waddchstr(stdscr,str) | |
17781 | #define addnstr(str,n) waddnstr(stdscr,str,n) | |
17782 | #define addstr(str) waddnstr(stdscr,str,-1) | |
17783 | #define attroff(at) wattroff(stdscr,at) | |
17784 | #define attron(at) wattron(stdscr,at) | |
17785 | #define attrset(at) wattrset(stdscr,at) | |
17786 | #define attr_get(ap,cp,o) wattr_get(stdscr,ap,cp,o) | |
17787 | #define attr_off(a,o) wattr_off(stdscr,a,o) | |
17788 | #define attr_on(a,o) wattr_on(stdscr,a,o) | |
17789 | #define attr_set(a,c,o) wattr_set(stdscr,a,c,o) | |
17790 | #define bkgd(ch) wbkgd(stdscr,ch) | |
17791 | #define bkgdset(ch) wbkgdset(stdscr,ch) | |
17792 | #define chgat(n,a,c,o) wchgat(stdscr,n,a,c,o) | |
17793 | #define clear() wclear(stdscr) | |
17794 | #define clrtobot() wclrtobot(stdscr) | |
17795 | #define clrtoeol() wclrtoeol(stdscr) | |
17796 | #define color_set(c,o) wcolor_set(stdscr,c,o) | |
17797 | #define delch() wdelch(stdscr) | |
17798 | #define deleteln() winsdelln(stdscr,-1) | |
17799 | #define echochar(c) wechochar(stdscr,c) | |
17800 | #define erase() werase(stdscr) | |
17801 | #define getch() wgetch(stdscr) | |
17802 | #define getstr(str) wgetstr(stdscr,str) | |
17803 | #define inch() winch(stdscr) | |
17804 | #define inchnstr(s,n) winchnstr(stdscr,s,n) | |
17805 | #define inchstr(s) winchstr(stdscr,s) | |
17806 | #define innstr(s,n) winnstr(stdscr,s,n) | |
17807 | #define insch(c) winsch(stdscr,c) | |
17808 | #define insdelln(n) winsdelln(stdscr,n) | |
17809 | #define insertln() winsdelln(stdscr,1) | |
17810 | #define insnstr(s,n) winsnstr(stdscr,s,n) | |
17811 | #define insstr(s) winsstr(stdscr,s) | |
17812 | #define instr(s) winstr(stdscr,s) | |
17813 | #define move(y,x) wmove(stdscr,y,x) | |
17814 | #define refresh() wrefresh(stdscr) | |
17815 | #define scrl(n) wscrl(stdscr,n) | |
17816 | #define setscrreg(t,b) wsetscrreg(stdscr,t,b) | |
17817 | #define standend() wstandend(stdscr) | |
17818 | #define standout() wstandout(stdscr) | |
17819 | #define timeout(delay) wtimeout(stdscr,delay) | |
17820 | #define wdeleteln(win) winsdelln(win,-1) | |
17821 | #define winsertln(win) winsdelln(win,1) | |
17822 | ||
17823 | ||
17824 | ||
17825 | ||
17826 | ||
17827 | #define mvwaddch(win,y,x,ch) (wmove(win,y,x) == ERR ? ERR : waddch(win,ch)) | |
17828 | #define mvwaddchnstr(win,y,x,str,n) (wmove(win,y,x) == ERR ? ERR : waddchnstr(win,str,n)) | |
17829 | #define mvwaddchstr(win,y,x,str) (wmove(win,y,x) == ERR ? ERR : waddchnstr(win,str,-1)) | |
17830 | #define mvwaddnstr(win,y,x,str,n) (wmove(win,y,x) == ERR ? ERR : waddnstr(win,str,n)) | |
17831 | #define mvwaddstr(win,y,x,str) (wmove(win,y,x) == ERR ? ERR : waddnstr(win,str,-1)) | |
17832 | #define mvwdelch(win,y,x) (wmove(win,y,x) == ERR ? ERR : wdelch(win)) | |
17833 | #define mvwchgat(win,y,x,n,a,c,o) (wmove(win,y,x) == ERR ? ERR : wchgat(win,n,a,c,o)) | |
17834 | #define mvwgetch(win,y,x) (wmove(win,y,x) == ERR ? ERR : wgetch(win)) | |
17835 | #define mvwgetnstr(win,y,x,str,n) (wmove(win,y,x) == ERR ? ERR : wgetnstr(win,str,n)) | |
17836 | #define mvwgetstr(win,y,x,str) (wmove(win,y,x) == ERR ? ERR : wgetstr(win,str)) | |
17837 | #define mvwhline(win,y,x,c,n) (wmove(win,y,x) == ERR ? ERR : whline(win,c,n)) | |
17838 | #define mvwinch(win,y,x) (wmove(win,y,x) == ERR ? NCURSES_CAST(chtype, ERR) : winch(win)) | |
17839 | #define mvwinchnstr(win,y,x,s,n) (wmove(win,y,x) == ERR ? ERR : winchnstr(win,s,n)) | |
17840 | #define mvwinchstr(win,y,x,s) (wmove(win,y,x) == ERR ? ERR : winchstr(win,s)) | |
17841 | #define mvwinnstr(win,y,x,s,n) (wmove(win,y,x) == ERR ? ERR : winnstr(win,s,n)) | |
17842 | #define mvwinsch(win,y,x,c) (wmove(win,y,x) == ERR ? ERR : winsch(win,c)) | |
17843 | #define mvwinsnstr(win,y,x,s,n) (wmove(win,y,x) == ERR ? ERR : winsnstr(win,s,n)) | |
17844 | #define mvwinsstr(win,y,x,s) (wmove(win,y,x) == ERR ? ERR : winsstr(win,s)) | |
17845 | #define mvwinstr(win,y,x,s) (wmove(win,y,x) == ERR ? ERR : winstr(win,s)) | |
17846 | #define mvwvline(win,y,x,c,n) (wmove(win,y,x) == ERR ? ERR : wvline(win,c,n)) | |
17847 | ||
17848 | #define mvaddch(y,x,ch) mvwaddch(stdscr,y,x,ch) | |
17849 | #define mvaddchnstr(y,x,str,n) mvwaddchnstr(stdscr,y,x,str,n) | |
17850 | #define mvaddchstr(y,x,str) mvwaddchstr(stdscr,y,x,str) | |
17851 | #define mvaddnstr(y,x,str,n) mvwaddnstr(stdscr,y,x,str,n) | |
17852 | #define mvaddstr(y,x,str) mvwaddstr(stdscr,y,x,str) | |
17853 | #define mvchgat(y,x,n,a,c,o) mvwchgat(stdscr,y,x,n,a,c,o) | |
17854 | #define mvdelch(y,x) mvwdelch(stdscr,y,x) | |
17855 | #define mvgetch(y,x) mvwgetch(stdscr,y,x) | |
17856 | #define mvgetnstr(y,x,str,n) mvwgetnstr(stdscr,y,x,str,n) | |
17857 | #define mvgetstr(y,x,str) mvwgetstr(stdscr,y,x,str) | |
17858 | #define mvhline(y,x,c,n) mvwhline(stdscr,y,x,c,n) | |
17859 | #define mvinch(y,x) mvwinch(stdscr,y,x) | |
17860 | #define mvinchnstr(y,x,s,n) mvwinchnstr(stdscr,y,x,s,n) | |
17861 | #define mvinchstr(y,x,s) mvwinchstr(stdscr,y,x,s) | |
17862 | #define mvinnstr(y,x,s,n) mvwinnstr(stdscr,y,x,s,n) | |
17863 | #define mvinsch(y,x,c) mvwinsch(stdscr,y,x,c) | |
17864 | #define mvinsnstr(y,x,s,n) mvwinsnstr(stdscr,y,x,s,n) | |
17865 | #define mvinsstr(y,x,s) mvwinsstr(stdscr,y,x,s) | |
17866 | #define mvinstr(y,x,s) mvwinstr(stdscr,y,x,s) | |
17867 | #define mvvline(y,x,c,n) mvwvline(stdscr,y,x,c,n) | |
17868 | ||
17869 | ||
17870 | ||
17871 | ||
17872 | #define getbkgd(win) ((win)->_bkgd) | |
17873 | ||
17874 | #define slk_attr_off(a,v) ((v) ? ERR : slk_attroff(a)) | |
17875 | #define slk_attr_on(a,v) ((v) ? ERR : slk_attron(a)) | |
17876 | # 1028 "/usr/include/ncurses.h" 3 4 | |
17877 | #define wattr_set(win,a,p,opts) ((win)->_attrs = (((a) & ~A_COLOR) | COLOR_PAIR(p)), OK) | |
17878 | #define wattr_get(win,a,p,opts) ((void)((a) != 0 && (*(a) = (win)->_attrs)), (void)((p) != 0 && (*(p) = PAIR_NUMBER((win)->_attrs))), OK) | |
17879 | # 1040 "/usr/include/ncurses.h" 3 4 | |
17880 | #define vw_printw vwprintw | |
17881 | #define vw_scanw vwscanw | |
17882 | # 1063 "/usr/include/ncurses.h" 3 4 | |
17883 | #define KEY_CODE_YES 0400 | |
17884 | #define KEY_MIN 0401 | |
17885 | #define KEY_BREAK 0401 | |
17886 | #define KEY_SRESET 0530 | |
17887 | #define KEY_RESET 0531 | |
17888 | ||
17889 | ||
17890 | ||
17891 | #define KEY_DOWN 0402 | |
17892 | #define KEY_UP 0403 | |
17893 | #define KEY_LEFT 0404 | |
17894 | #define KEY_RIGHT 0405 | |
17895 | #define KEY_HOME 0406 | |
17896 | #define KEY_BACKSPACE 0407 | |
17897 | #define KEY_F0 0410 | |
17898 | #define KEY_F(n) (KEY_F0+(n)) | |
17899 | #define KEY_DL 0510 | |
17900 | #define KEY_IL 0511 | |
17901 | #define KEY_DC 0512 | |
17902 | #define KEY_IC 0513 | |
17903 | #define KEY_EIC 0514 | |
17904 | #define KEY_CLEAR 0515 | |
17905 | #define KEY_EOS 0516 | |
17906 | #define KEY_EOL 0517 | |
17907 | #define KEY_SF 0520 | |
17908 | #define KEY_SR 0521 | |
17909 | #define KEY_NPAGE 0522 | |
17910 | #define KEY_PPAGE 0523 | |
17911 | #define KEY_STAB 0524 | |
17912 | #define KEY_CTAB 0525 | |
17913 | #define KEY_CATAB 0526 | |
17914 | #define KEY_ENTER 0527 | |
17915 | #define KEY_PRINT 0532 | |
17916 | #define KEY_LL 0533 | |
17917 | #define KEY_A1 0534 | |
17918 | #define KEY_A3 0535 | |
17919 | #define KEY_B2 0536 | |
17920 | #define KEY_C1 0537 | |
17921 | #define KEY_C3 0540 | |
17922 | #define KEY_BTAB 0541 | |
17923 | #define KEY_BEG 0542 | |
17924 | #define KEY_CANCEL 0543 | |
17925 | #define KEY_CLOSE 0544 | |
17926 | #define KEY_COMMAND 0545 | |
17927 | #define KEY_COPY 0546 | |
17928 | #define KEY_CREATE 0547 | |
17929 | #define KEY_END 0550 | |
17930 | #define KEY_EXIT 0551 | |
17931 | #define KEY_FIND 0552 | |
17932 | #define KEY_HELP 0553 | |
17933 | #define KEY_MARK 0554 | |
17934 | #define KEY_MESSAGE 0555 | |
17935 | #define KEY_MOVE 0556 | |
17936 | #define KEY_NEXT 0557 | |
17937 | #define KEY_OPEN 0560 | |
17938 | #define KEY_OPTIONS 0561 | |
17939 | #define KEY_PREVIOUS 0562 | |
17940 | #define KEY_REDO 0563 | |
17941 | #define KEY_REFERENCE 0564 | |
17942 | #define KEY_REFRESH 0565 | |
17943 | #define KEY_REPLACE 0566 | |
17944 | #define KEY_RESTART 0567 | |
17945 | #define KEY_RESUME 0570 | |
17946 | #define KEY_SAVE 0571 | |
17947 | #define KEY_SBEG 0572 | |
17948 | #define KEY_SCANCEL 0573 | |
17949 | #define KEY_SCOMMAND 0574 | |
17950 | #define KEY_SCOPY 0575 | |
17951 | #define KEY_SCREATE 0576 | |
17952 | #define KEY_SDC 0577 | |
17953 | #define KEY_SDL 0600 | |
17954 | #define KEY_SELECT 0601 | |
17955 | #define KEY_SEND 0602 | |
17956 | #define KEY_SEOL 0603 | |
17957 | #define KEY_SEXIT 0604 | |
17958 | #define KEY_SFIND 0605 | |
17959 | #define KEY_SHELP 0606 | |
17960 | #define KEY_SHOME 0607 | |
17961 | #define KEY_SIC 0610 | |
17962 | #define KEY_SLEFT 0611 | |
17963 | #define KEY_SMESSAGE 0612 | |
17964 | #define KEY_SMOVE 0613 | |
17965 | #define KEY_SNEXT 0614 | |
17966 | #define KEY_SOPTIONS 0615 | |
17967 | #define KEY_SPREVIOUS 0616 | |
17968 | #define KEY_SPRINT 0617 | |
17969 | #define KEY_SREDO 0620 | |
17970 | #define KEY_SREPLACE 0621 | |
17971 | #define KEY_SRIGHT 0622 | |
17972 | #define KEY_SRSUME 0623 | |
17973 | #define KEY_SSAVE 0624 | |
17974 | #define KEY_SSUSPEND 0625 | |
17975 | #define KEY_SUNDO 0626 | |
17976 | #define KEY_SUSPEND 0627 | |
17977 | #define KEY_UNDO 0630 | |
17978 | #define KEY_MOUSE 0631 | |
17979 | #define KEY_RESIZE 0632 | |
17980 | #define KEY_EVENT 0633 | |
17981 | ||
17982 | #define KEY_MAX 0777 | |
17983 | ||
17984 | ||
17985 | ||
17986 | ||
17987 | ||
17988 | ||
17989 | ||
17990 | #define NCURSES_MOUSE_MASK(b,m) ((m) << (((b) - 1) * 6)) | |
17991 | ||
17992 | ||
17993 | #define NCURSES_BUTTON_RELEASED 001L | |
17994 | #define NCURSES_BUTTON_PRESSED 002L | |
17995 | #define NCURSES_BUTTON_CLICKED 004L | |
17996 | #define NCURSES_DOUBLE_CLICKED 010L | |
17997 | #define NCURSES_TRIPLE_CLICKED 020L | |
17998 | #define NCURSES_RESERVED_EVENT 040L | |
17999 | ||
18000 | ||
18001 | #define BUTTON1_RELEASED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_RELEASED) | |
18002 | #define BUTTON1_PRESSED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_PRESSED) | |
18003 | #define BUTTON1_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_BUTTON_CLICKED) | |
18004 | #define BUTTON1_DOUBLE_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_DOUBLE_CLICKED) | |
18005 | #define BUTTON1_TRIPLE_CLICKED NCURSES_MOUSE_MASK(1, NCURSES_TRIPLE_CLICKED) | |
18006 | ||
18007 | #define BUTTON2_RELEASED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_RELEASED) | |
18008 | #define BUTTON2_PRESSED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_PRESSED) | |
18009 | #define BUTTON2_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_BUTTON_CLICKED) | |
18010 | #define BUTTON2_DOUBLE_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_DOUBLE_CLICKED) | |
18011 | #define BUTTON2_TRIPLE_CLICKED NCURSES_MOUSE_MASK(2, NCURSES_TRIPLE_CLICKED) | |
18012 | ||
18013 | #define BUTTON3_RELEASED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_RELEASED) | |
18014 | #define BUTTON3_PRESSED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_PRESSED) | |
18015 | #define BUTTON3_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_BUTTON_CLICKED) | |
18016 | #define BUTTON3_DOUBLE_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_DOUBLE_CLICKED) | |
18017 | #define BUTTON3_TRIPLE_CLICKED NCURSES_MOUSE_MASK(3, NCURSES_TRIPLE_CLICKED) | |
18018 | ||
18019 | #define BUTTON4_RELEASED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_RELEASED) | |
18020 | #define BUTTON4_PRESSED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_PRESSED) | |
18021 | #define BUTTON4_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_BUTTON_CLICKED) | |
18022 | #define BUTTON4_DOUBLE_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_DOUBLE_CLICKED) | |
18023 | #define BUTTON4_TRIPLE_CLICKED NCURSES_MOUSE_MASK(4, NCURSES_TRIPLE_CLICKED) | |
18024 | # 1224 "/usr/include/ncurses.h" 3 4 | |
18025 | #define BUTTON1_RESERVED_EVENT NCURSES_MOUSE_MASK(1, NCURSES_RESERVED_EVENT) | |
18026 | #define BUTTON2_RESERVED_EVENT NCURSES_MOUSE_MASK(2, NCURSES_RESERVED_EVENT) | |
18027 | #define BUTTON3_RESERVED_EVENT NCURSES_MOUSE_MASK(3, NCURSES_RESERVED_EVENT) | |
18028 | #define BUTTON4_RESERVED_EVENT NCURSES_MOUSE_MASK(4, NCURSES_RESERVED_EVENT) | |
18029 | ||
18030 | #define BUTTON_CTRL NCURSES_MOUSE_MASK(5, 0001L) | |
18031 | #define BUTTON_SHIFT NCURSES_MOUSE_MASK(5, 0002L) | |
18032 | #define BUTTON_ALT NCURSES_MOUSE_MASK(5, 0004L) | |
18033 | #define REPORT_MOUSE_POSITION NCURSES_MOUSE_MASK(5, 0010L) | |
18034 | ||
18035 | ||
18036 | ||
18037 | #define ALL_MOUSE_EVENTS (REPORT_MOUSE_POSITION - 1) | |
18038 | ||
18039 | ||
18040 | #define BUTTON_RELEASE(e,x) ((e) & (001 << (6 * ((x) - 1)))) | |
18041 | #define BUTTON_PRESS(e,x) ((e) & (002 << (6 * ((x) - 1)))) | |
18042 | #define BUTTON_CLICK(e,x) ((e) & (004 << (6 * ((x) - 1)))) | |
18043 | #define BUTTON_DOUBLE_CLICK(e,x) ((e) & (010 << (6 * ((x) - 1)))) | |
18044 | #define BUTTON_TRIPLE_CLICK(e,x) ((e) & (020 << (6 * ((x) - 1)))) | |
18045 | #define BUTTON_RESERVED_EVENT(e,x) ((e) & (040 << (6 * ((x) - 1)))) | |
18046 | ||
18047 | typedef struct | |
18048 | { | |
18049 | short id; | |
18050 | int x, y, z; | |
18051 | mmask_t bstate; | |
18052 | } | |
18053 | MEVENT; | |
18054 | ||
18055 | extern int getmouse (MEVENT *); | |
18056 | extern int ungetmouse (MEVENT *); | |
18057 | extern mmask_t mousemask (mmask_t, mmask_t *); | |
18058 | extern _Bool wenclose (const WINDOW *, int, int); | |
18059 | extern int mouseinterval (int); | |
18060 | extern _Bool wmouse_trafo (const WINDOW*, int*, int*, _Bool); | |
18061 | extern _Bool mouse_trafo (int*, int*, _Bool); | |
18062 | ||
18063 | #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen) | |
18064 | ||
18065 | ||
18066 | ||
18067 | extern int mcprint (char *, int); | |
18068 | extern int has_key (int); | |
18069 | ||
18070 | ||
18071 | ||
18072 | extern void _tracef (const char *, ...) ; | |
18073 | extern void _tracedump (const char *, WINDOW *); | |
18074 | extern char * _traceattr (attr_t); | |
18075 | extern char * _traceattr2 (int, chtype); | |
18076 | extern char * _nc_tracebits (void); | |
18077 | extern char * _tracechar (int); | |
18078 | extern char * _tracechtype (chtype); | |
18079 | extern char * _tracechtype2 (int, chtype); | |
18080 | ||
18081 | #define _tracech_t _tracecchar_t | |
18082 | extern char * _tracecchar_t (const cchar_t *); | |
18083 | #define _tracech_t2 _tracecchar_t2 | |
18084 | extern char * _tracecchar_t2 (int, const cchar_t *); | |
18085 | ||
18086 | ||
18087 | ||
18088 | ||
18089 | extern char * _tracemouse (const MEVENT *); | |
18090 | extern void trace (const unsigned int); | |
18091 | ||
18092 | ||
18093 | #define TRACE_DISABLE 0x0000 | |
18094 | #define TRACE_TIMES 0x0001 | |
18095 | #define TRACE_TPUTS 0x0002 | |
18096 | #define TRACE_UPDATE 0x0004 | |
18097 | #define TRACE_MOVE 0x0008 | |
18098 | #define TRACE_CHARPUT 0x0010 | |
18099 | #define TRACE_ORDINARY 0x001F | |
18100 | #define TRACE_CALLS 0x0020 | |
18101 | #define TRACE_VIRTPUT 0x0040 | |
18102 | #define TRACE_IEVENT 0x0080 | |
18103 | #define TRACE_BITS 0x0100 | |
18104 | #define TRACE_ICALLS 0x0200 | |
18105 | #define TRACE_CCALLS 0x0400 | |
18106 | #define TRACE_DATABASE 0x0800 | |
18107 | #define TRACE_ATTRS 0x1000 | |
18108 | ||
18109 | #define TRACE_SHIFT 13 | |
18110 | #define TRACE_MAXIMUM ((1 << TRACE_SHIFT) - 1) | |
18111 | # 33 "bool.h" 2 | |
18112 | # 22 "expr.h" 2 | |
18113 | ||
18114 | struct file { | |
18115 | struct file *next; | |
18116 | struct file *parent; | |
18117 | char *name; | |
18118 | int lineno; | |
18119 | int flags; | |
18120 | }; | |
18121 | ||
18122 | #define FILE_BUSY 0x0001 | |
18123 | #define FILE_SCANNED 0x0002 | |
18124 | #define FILE_PRINTED 0x0004 | |
18125 | ||
18126 | typedef enum tristate { | |
18127 | no, mod, yes | |
18128 | } tristate; | |
18129 | ||
18130 | enum expr_type { | |
18131 | E_NONE, E_OR, E_AND, E_NOT, E_EQUAL, E_UNEQUAL, E_CHOICE, E_SYMBOL, E_RANGE | |
18132 | }; | |
18133 | ||
18134 | union expr_data { | |
18135 | struct expr *expr; | |
18136 | struct symbol *sym; | |
18137 | }; | |
18138 | ||
18139 | struct expr { | |
18140 | enum expr_type type; | |
18141 | union expr_data left, right; | |
18142 | }; | |
18143 | ||
18144 | #define E_OR(dep1,dep2) (((dep1)>(dep2))?(dep1):(dep2)) | |
18145 | #define E_AND(dep1,dep2) (((dep1)<(dep2))?(dep1):(dep2)) | |
18146 | #define E_NOT(dep) (2-(dep)) | |
18147 | ||
18148 | struct expr_value { | |
18149 | struct expr *expr; | |
18150 | tristate tri; | |
18151 | }; | |
18152 | ||
18153 | struct symbol_value { | |
18154 | void *val; | |
18155 | tristate tri; | |
18156 | }; | |
18157 | ||
18158 | enum symbol_type { | |
18159 | S_UNKNOWN, S_BOOLEAN, S_TRISTATE, S_INT, S_HEX, S_STRING, ST_OTHER | |
18160 | ||
18161 | }; | |
18162 | ||
18163 | struct symbol { | |
18164 | struct symbol *next; | |
18165 | char *sect; | |
18166 | char *name; | |
18167 | char *help; | |
18168 | enum symbol_type type; | |
18169 | struct symbol_value curr, user; | |
18170 | tristate visible; | |
18171 | int flags; | |
18172 | struct property *prop; | |
18173 | struct expr *dep, *dep2; | |
18174 | struct expr_value rev_dep; | |
18175 | }; | |
18176 | ||
18177 | #define for_all_symbols(i,sym) for (i = 0; i < 257; i++) for (sym = symbol_hash[i]; sym; sym = sym->next) if (sym->type != ST_OTHER) | |
18178 | ||
18179 | #define SYMBOL_YES 0x0001 | |
18180 | #define SYMBOL_MOD 0x0002 | |
18181 | #define SYMBOL_NO 0x0004 | |
18182 | #define SYMBOL_CONST 0x0007 | |
18183 | #define SYMBOL_CHECK 0x0008 | |
18184 | #define SYMBOL_CHOICE 0x0010 | |
18185 | #define SYMBOL_CHOICEVAL 0x0020 | |
18186 | #define SYMBOL_PRINTED 0x0040 | |
18187 | #define SYMBOL_VALID 0x0080 | |
18188 | #define SYMBOL_OPTIONAL 0x0100 | |
18189 | #define SYMBOL_WRITE 0x0200 | |
18190 | #define SYMBOL_CHANGED 0x0400 | |
18191 | #define SYMBOL_NEW 0x0800 | |
18192 | #define SYMBOL_AUTO 0x1000 | |
18193 | #define SYMBOL_CHECKED 0x2000 | |
18194 | #define SYMBOL_CHECK_DONE 0x4000 | |
18195 | #define SYMBOL_WARNED 0x8000 | |
18196 | ||
18197 | #define SYMBOL_MAXLENGTH 256 | |
18198 | #define SYMBOL_HASHSIZE 257 | |
18199 | #define SYMBOL_HASHMASK 0xff | |
18200 | ||
18201 | enum prop_type { | |
18202 | P_UNKNOWN, P_PROMPT, P_COMMENT, P_MENU, P_DEFAULT, P_CHOICE, P_SELECT, P_RANGE | |
18203 | }; | |
18204 | ||
18205 | struct property { | |
18206 | struct property *next; | |
18207 | struct symbol *sym; | |
18208 | enum prop_type type; | |
18209 | const char *text; | |
18210 | struct expr_value visible; | |
18211 | struct expr *expr; | |
18212 | struct menu *menu; | |
18213 | struct file *file; | |
18214 | int lineno; | |
18215 | }; | |
18216 | ||
18217 | #define for_all_properties(sym,st,tok) for (st = sym->prop; st; st = st->next) if (st->type == (tok)) | |
18218 | ||
18219 | ||
18220 | #define for_all_defaults(sym,st) for_all_properties(sym, st, P_DEFAULT) | |
18221 | #define for_all_choices(sym,st) for_all_properties(sym, st, P_CHOICE) | |
18222 | #define for_all_prompts(sym,st) for (st = sym->prop; st; st = st->next) if (st->text) | |
18223 | ||
18224 | ||
18225 | ||
18226 | struct menu { | |
18227 | struct menu *next; | |
18228 | struct menu *parent; | |
18229 | struct menu *list; | |
18230 | struct symbol *sym; | |
18231 | struct property *prompt; | |
18232 | struct expr *dep; | |
18233 | unsigned int flags; | |
18234 | ||
18235 | struct file *file; | |
18236 | int lineno; | |
18237 | void *data; | |
18238 | char *section; | |
18239 | }; | |
18240 | ||
18241 | #define MENU_CHANGED 0x0001 | |
18242 | #define MENU_ROOT 0x0002 | |
18243 | ||
18244 | ||
18245 | ||
18246 | extern struct file *file_list; | |
18247 | extern struct file *current_file; | |
18248 | struct file *lookup_file(const char *name); | |
18249 | ||
18250 | extern struct symbol symbol_yes, symbol_no, symbol_mod; | |
18251 | extern struct symbol *modules_sym; | |
18252 | extern int cdebug; | |
18253 | struct expr *expr_alloc_symbol(struct symbol *sym); | |
18254 | struct expr *expr_alloc_one(enum expr_type type, struct expr *ce); | |
18255 | struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2); | |
18256 | struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2); | |
18257 | struct expr *expr_alloc_and(struct expr *e1, struct expr *e2); | |
18258 | struct expr *expr_alloc_or(struct expr *e1, struct expr *e2); | |
18259 | struct expr *expr_copy(struct expr *org); | |
18260 | void expr_free(struct expr *e); | |
18261 | int expr_eq(struct expr *e1, struct expr *e2); | |
18262 | void expr_eliminate_eq(struct expr **ep1, struct expr **ep2); | |
18263 | tristate expr_calc_value(struct expr *e); | |
18264 | struct expr *expr_eliminate_yn(struct expr *e); | |
18265 | struct expr *expr_trans_bool(struct expr *e); | |
18266 | struct expr *expr_eliminate_dups(struct expr *e); | |
18267 | struct expr *expr_transform(struct expr *e); | |
18268 | int expr_contains_symbol(struct expr *dep, struct symbol *sym); | |
18269 | _Bool expr_depends_symbol(struct expr *dep, struct symbol *sym); | |
18270 | struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2); | |
18271 | struct expr *expr_extract_eq_or(struct expr **ep1, struct expr **ep2); | |
18272 | void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2); | |
18273 | struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym); | |
18274 | ||
18275 | void expr_fprint(struct expr *e, FILE *out); | |
18276 | void print_expr(int mask, struct expr *e, int prevtoken); | |
18277 | ||
18278 | static __inline__ int expr_is_yes(struct expr *e) | |
18279 | { | |
18280 | return !e || (e->type == E_SYMBOL && e->left.sym == &symbol_yes); | |
18281 | } | |
18282 | ||
18283 | static __inline__ int expr_is_no(struct expr *e) | |
18284 | { | |
18285 | return e && (e->type == E_SYMBOL && e->left.sym == &symbol_no); | |
18286 | } | |
18287 | # 19 "lkc.h" 2 | |
18288 | ||
18289 | ||
18290 | ||
18291 | ||
18292 | ||
18293 | ||
18294 | #define P(name,type,arg) extern type name arg | |
18295 | ||
18296 | ||
18297 | ||
18298 | ||
18299 | # 1 "lkc_proto.h" 1 | |
18300 | # 10 "lkc_proto.h" | |
18301 | extern struct menu rootmenu ; | |
18302 | ||
18303 | extern _Bool menu_is_visible (struct menu *menu); | |
18304 | extern const char * menu_get_prompt (struct menu *menu); | |
18305 | extern struct menu * menu_get_root_menu (struct menu *menu); | |
18306 | extern struct menu * menu_get_parent_menu (struct menu *menu); | |
18307 | ||
18308 | ||
18309 | extern struct symbol * symbol_hash [257]; | |
18310 | extern int sym_change_count ; | |
18311 | ||
18312 | extern struct symbol * sym_lookup (char *name, char *sect, int isconst); | |
18313 | extern struct symbol * sym_find (char *name, char *sect); | |
18314 | extern const char * sym_type_name (enum symbol_type type); | |
18315 | extern void sym_calc_value (struct symbol *sym); | |
18316 | extern void sym_calc_value_ext (struct symbol *sym, int returnInv); | |
18317 | extern enum symbol_type sym_get_type (struct symbol *sym); | |
18318 | extern _Bool sym_tristate_within_range (struct symbol *sym,tristate tri); | |
18319 | extern _Bool sym_set_tristate_value (struct symbol *sym,tristate tri); | |
18320 | extern tristate sym_toggle_tristate_value (struct symbol *sym); | |
18321 | extern _Bool sym_string_valid (struct symbol *sym, const char *newval); | |
18322 | extern _Bool sym_string_within_range (struct symbol *sym, const char *str); | |
18323 | extern _Bool sym_set_string_value (struct symbol *sym, const char *newval); | |
18324 | extern _Bool sym_is_changable (struct symbol *sym); | |
18325 | extern struct property * sym_get_choice_prop (struct symbol *sym); | |
18326 | extern struct property * sym_get_default_prop (struct symbol *sym); | |
18327 | extern struct property * sym_get_default_prop_ext (struct symbol *sym, int returnInv); | |
18328 | extern const char * sym_get_string_value (struct symbol *sym); | |
18329 | ||
18330 | extern const char * prop_get_type_name (enum prop_type type); | |
18331 | ||
18332 | ||
18333 | extern int expr_compare_type (enum expr_type t1, enum expr_type t2); | |
18334 | extern void expr_print (struct expr *e, void (*fn)(void *, const char *), void *data, int prevtoken); | |
18335 | # 31 "lkc.h" 2 | |
18336 | #undef P | |
18337 | ||
18338 | #define SRCTREE "srctree" | |
18339 | ||
18340 | int zconfparse(void); | |
18341 | void zconfdump(FILE *out); | |
18342 | ||
18343 | extern int zconfdebug; | |
18344 | void zconf_starthelp(void); | |
18345 | FILE *zconf_fopen(const char *name); | |
18346 | void zconf_initscan(const char *name); | |
18347 | void zconf_nextfile(const char *name); | |
18348 | int zconf_lineno(void); | |
18349 | char *zconf_curname(void); | |
18350 | ||
18351 | ||
18352 | extern const char conf_def_filename[]; | |
18353 | extern char conf_filename[]; | |
18354 | ||
18355 | char *conf_get_default_confname(void); | |
18356 | ||
18357 | ||
18358 | void menu_init(void); | |
18359 | void menu_add_menu(void); | |
18360 | void menu_end_menu(void); | |
18361 | void menu_add_entry(struct symbol *sym); | |
18362 | void menu_end_entry(void); | |
18363 | void menu_add_dep(struct expr *dep); | |
18364 | struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep); | |
18365 | void menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep); | |
18366 | void menu_add_section(char *section); | |
18367 | void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep); | |
18368 | void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); | |
18369 | void menu_finalize(struct menu *parent); | |
18370 | void menu_set_type(int type); | |
18371 | struct file *file_lookup(const char *name); | |
18372 | int file_write_dep(const char *name); | |
18373 | ||
18374 | extern struct menu *current_entry; | |
18375 | extern struct menu *current_menu; | |
18376 | ||
18377 | ||
18378 | void sym_init(void); | |
18379 | void sym_clear_all_valid(void); | |
18380 | void sym_set_changed(struct symbol *sym); | |
18381 | struct symbol *sym_check_deps(struct symbol *sym); | |
18382 | struct property *prop_alloc(enum prop_type type, struct symbol *sym); | |
18383 | struct symbol *prop_get_symbol(struct property *prop); | |
18384 | ||
18385 | static __inline__ tristate sym_get_tristate_value(struct symbol *sym) | |
18386 | { | |
18387 | return sym->curr.tri; | |
18388 | } | |
18389 | ||
18390 | ||
18391 | static __inline__ struct symbol *sym_get_choice_value(struct symbol *sym) | |
18392 | { | |
18393 | return (struct symbol *)sym->curr.val; | |
18394 | } | |
18395 | ||
18396 | static __inline__ _Bool sym_set_choice_value(struct symbol *ch, struct symbol *chval) | |
18397 | { | |
18398 | return sym_set_tristate_value(chval, yes); | |
18399 | } | |
18400 | ||
18401 | static __inline__ _Bool sym_is_choice(struct symbol *sym) | |
18402 | { | |
18403 | return sym->flags & 0x0010 ? 1 : 0; | |
18404 | } | |
18405 | ||
18406 | static __inline__ _Bool sym_is_choice_value(struct symbol *sym) | |
18407 | { | |
18408 | return sym->flags & 0x0020 ? 1 : 0; | |
18409 | } | |
18410 | ||
18411 | static __inline__ _Bool sym_is_optional(struct symbol *sym) | |
18412 | { | |
18413 | return sym->flags & 0x0100 ? 1 : 0; | |
18414 | } | |
18415 | ||
18416 | static __inline__ _Bool sym_has_value(struct symbol *sym) | |
18417 | { | |
18418 | return sym->flags & 0x0800 ? 0 : 1; | |
18419 | } | |
18420 | # 41 "gconf.c" 2 | |
18421 | # 1 "confdata.h" 1 | |
18422 | # 29 "confdata.h" | |
18423 | #define CONFDATA_H | |
18424 | ||
18425 | int conf_read(const char *name); | |
18426 | ||
18427 | int conf_write(const char * filename); | |
18428 | # 42 "gconf.c" 2 | |
18429 | ||
18430 | #define USE_XPM_SINGLE_VIEW 1 | |
18431 | #define USE_XPM_SPLIT_VIEW 1 | |
18432 | #define USE_XPM_TREE_VIEW 1 | |
18433 | #define USE_PLUS_XPM 1 | |
18434 | #define USE_MINUS_XPM 1 | |
18435 | #define USE_XPM_MENU 1 | |
18436 | #define USE_XPM_VOID 1 | |
18437 | # 1 "images.c" 1 | |
18438 | # 128 "images.c" | |
18439 | static const char *xpm_tree_view[] = { | |
18440 | "22 22 2 1", | |
18441 | ". c None", | |
18442 | "# c #000000", | |
18443 | "......................", | |
18444 | "......................", | |
18445 | "......#...............", | |
18446 | "......#...............", | |
18447 | "......#...............", | |
18448 | "......#...............", | |
18449 | "......#...............", | |
18450 | "......########........", | |
18451 | "......#...............", | |
18452 | "......#...............", | |
18453 | "......#...............", | |
18454 | "......#...............", | |
18455 | "......#...............", | |
18456 | "......########........", | |
18457 | "......#...............", | |
18458 | "......#...............", | |
18459 | "......#...............", | |
18460 | "......#...............", | |
18461 | "......#...............", | |
18462 | "......########........", | |
18463 | "......................", | |
18464 | "......................"}; | |
18465 | ||
18466 | ||
18467 | ||
18468 | static const char *xpm_single_view[] = { | |
18469 | "22 22 2 1", | |
18470 | ". c None", | |
18471 | "# c #000000", | |
18472 | "......................", | |
18473 | "......................", | |
18474 | "..........#...........", | |
18475 | "..........#...........", | |
18476 | "..........#...........", | |
18477 | "..........#...........", | |
18478 | "..........#...........", | |
18479 | "..........#...........", | |
18480 | "..........#...........", | |
18481 | "..........#...........", | |
18482 | "..........#...........", | |
18483 | "..........#...........", | |
18484 | "..........#...........", | |
18485 | "..........#...........", | |
18486 | "..........#...........", | |
18487 | "..........#...........", | |
18488 | "..........#...........", | |
18489 | "..........#...........", | |
18490 | "..........#...........", | |
18491 | "..........#...........", | |
18492 | "......................", | |
18493 | "......................"}; | |
18494 | ||
18495 | ||
18496 | ||
18497 | static const char *xpm_split_view[] = { | |
18498 | "22 22 2 1", | |
18499 | ". c None", | |
18500 | "# c #000000", | |
18501 | "......................", | |
18502 | "......................", | |
18503 | "......#......#........", | |
18504 | "......#......#........", | |
18505 | "......#......#........", | |
18506 | "......#......#........", | |
18507 | "......#......#........", | |
18508 | "......#......#........", | |
18509 | "......#......#........", | |
18510 | "......#......#........", | |
18511 | "......#......#........", | |
18512 | "......#......#........", | |
18513 | "......#......#........", | |
18514 | "......#......#........", | |
18515 | "......#......#........", | |
18516 | "......#......#........", | |
18517 | "......#......#........", | |
18518 | "......#......#........", | |
18519 | "......#......#........", | |
18520 | "......#......#........", | |
18521 | "......................", | |
18522 | "......................"}; | |
18523 | # 310 "images.c" | |
18524 | static const char *xpm_menu[] = { | |
18525 | "12 12 2 1", | |
18526 | " c white", | |
18527 | ". c black", | |
18528 | " ", | |
18529 | " .......... ", | |
18530 | " . . ", | |
18531 | " . .. . ", | |
18532 | " . .... . ", | |
18533 | " . ...... . ", | |
18534 | " . ...... . ", | |
18535 | " . .... . ", | |
18536 | " . .. . ", | |
18537 | " . . ", | |
18538 | " .......... ", | |
18539 | " "}; | |
18540 | # 367 "images.c" | |
18541 | static const char *xpm_void[] = { | |
18542 | "12 12 2 1", | |
18543 | " c white", | |
18544 | ". c black", | |
18545 | " ", | |
18546 | " ", | |
18547 | " ", | |
18548 | " ", | |
18549 | " ", | |
18550 | " ", | |
18551 | " ", | |
18552 | " ", | |
18553 | " ", | |
18554 | " ", | |
18555 | " ", | |
18556 | " "}; | |
18557 | ||
18558 | ||
18559 | ||
18560 | static const char * minus_xpm[] = { | |
18561 | "9 9 36 1", | |
18562 | " c None", | |
18563 | ". c #B0C2D3", | |
18564 | "+ c #7898B5", | |
18565 | "@ c #FFFFFF", | |
18566 | "# c #FCFCFB", | |
18567 | "$ c #FDFDFB", | |
18568 | "% c #FCFCFA", | |
18569 | "& c #F7F6F3", | |
18570 | "* c #F7F7F5", | |
18571 | "= c #F7F7F4", | |
18572 | "- c #F6F6F4", | |
18573 | "; c #F1F0EB", | |
18574 | "> c #E5E1DA", | |
18575 | ", c #F5F5F1", | |
18576 | "' c #000000", | |
18577 | ") c #DFDBD2", | |
18578 | "! c #F2F2EE", | |
18579 | "~ c #F0F0EC", | |
18580 | "{ c #EDEDE7", | |
18581 | "] c #ECEBE6", | |
18582 | "^ c #EAE9E3", | |
18583 | "/ c #E3E0D9", | |
18584 | "( c #DBD6CC", | |
18585 | "_ c #E4E1D9", | |
18586 | ": c #DCD8CF", | |
18587 | "< c #D8D3C9", | |
18588 | "[ c #D7D2C7", | |
18589 | "} c #D6D1C6", | |
18590 | "| c #D2CCC0", | |
18591 | "1 c #CFC8BB", | |
18592 | "2 c #D2CCBF", | |
18593 | "3 c #C6BEAE", | |
18594 | "4 c #C2B8A8", | |
18595 | "5 c #C1B8A7", | |
18596 | "6 c #C0B7A6", | |
18597 | "7 c #C3BAAA", | |
18598 | ".+++++++.", | |
18599 | "+@@@@@@@+", | |
18600 | "+#$$$#%&+", | |
18601 | "+**==-;>+", | |
18602 | "+,''''')+", | |
18603 | "+!~{]^/(+", | |
18604 | "+_:<[}|1+", | |
18605 | "+2345567+", | |
18606 | ".+++++++."}; | |
18607 | ||
18608 | ||
18609 | ||
18610 | static const char * plus_xpm[] = { | |
18611 | "9 9 34 1", | |
18612 | " c None", | |
18613 | ". c #B0C2D3", | |
18614 | "+ c #7898B5", | |
18615 | "@ c #FFFFFF", | |
18616 | "# c #FCFCFB", | |
18617 | "$ c #FDFDFB", | |
18618 | "% c #000000", | |
18619 | "& c #FCFCFA", | |
18620 | "* c #F7F6F3", | |
18621 | "= c #F7F7F5", | |
18622 | "- c #F7F7F4", | |
18623 | "; c #F6F6F4", | |
18624 | "> c #F1F0EB", | |
18625 | ", c #E5E1DA", | |
18626 | "' c #F5F5F1", | |
18627 | ") c #DFDBD2", | |
18628 | "! c #F2F2EE", | |
18629 | "~ c #F0F0EC", | |
18630 | "{ c #EDEDE7", | |
18631 | "] c #EAE9E3", | |
18632 | "^ c #E3E0D9", | |
18633 | "/ c #DBD6CC", | |
18634 | "( c #E4E1D9", | |
18635 | "_ c #DCD8CF", | |
18636 | ": c #D8D3C9", | |
18637 | "< c #D6D1C6", | |
18638 | "[ c #D2CCC0", | |
18639 | "} c #CFC8BB", | |
18640 | "| c #D2CCBF", | |
18641 | "1 c #C6BEAE", | |
18642 | "2 c #C2B8A8", | |
18643 | "3 c #C1B8A7", | |
18644 | "4 c #C0B7A6", | |
18645 | "5 c #C3BAAA", | |
18646 | ".+++++++.", | |
18647 | "+@@@@@@@+", | |
18648 | "+#$$%#&*+", | |
18649 | "+==-%;>,+", | |
18650 | "+'%%%%%)+", | |
18651 | "+!~{%]^/+", | |
18652 | "+(_:%<[}+", | |
18653 | "+|123345+", | |
18654 | ".+++++++."}; | |
18655 | # 51 "gconf.c" 2 | |
18656 | ||
18657 | # 1 "/usr/include/gtk-2.0/gtk/gtk.h" 1 | |
18658 | # 28 "/usr/include/gtk-2.0/gtk/gtk.h" | |
18659 | #define __GTK_H__ | |
18660 | ||
18661 | ||
18662 | # 1 "/usr/include/gtk-2.0/gdk/gdk.h" 1 | |
18663 | # 28 "/usr/include/gtk-2.0/gdk/gdk.h" | |
18664 | #define __GDK_H__ | |
18665 | ||
18666 | # 1 "/usr/include/gtk-2.0/gdk/gdkcairo.h" 1 | |
18667 | # 21 "/usr/include/gtk-2.0/gdk/gdkcairo.h" | |
18668 | #define __GDK_CAIRO_H__ | |
18669 | ||
18670 | # 1 "/usr/include/gtk-2.0/gdk/gdkcolor.h" 1 | |
18671 | # 28 "/usr/include/gtk-2.0/gdk/gdkcolor.h" | |
18672 | #define __GDK_COLOR_H__ | |
18673 | ||
18674 | # 1 "/usr/include/cairo/cairo.h" 1 | |
18675 | # 39 "/usr/include/cairo/cairo.h" | |
18676 | #define CAIRO_H | |
18677 | ||
18678 | # 1 "/usr/include/cairo/cairo-features.h" 1 | |
18679 | # 38 "/usr/include/cairo/cairo-features.h" | |
18680 | #define CAIRO_FEATURES_H | |
18681 | ||
18682 | ||
18683 | ||
18684 | ||
18685 | ||
18686 | #define CAIRO_BEGIN_DECLS | |
18687 | #define CAIRO_END_DECLS | |
18688 | ||
18689 | ||
18690 | #define CAIRO_VERSION_MAJOR 1 | |
18691 | #define CAIRO_VERSION_MINOR 0 | |
18692 | #define CAIRO_VERSION_MICRO 4 | |
18693 | ||
18694 | #define CAIRO_VERSION_STRING "1.0.4" | |
18695 | ||
18696 | ||
18697 | ||
18698 | ||
18699 | ||
18700 | #define CAIRO_HAS_XLIB_SURFACE 1 | |
18701 | # 68 "/usr/include/cairo/cairo-features.h" | |
18702 | #define CAIRO_HAS_FT_FONT 1 | |
18703 | ||
18704 | ||
18705 | ||
18706 | ||
18707 | ||
18708 | #define CAIRO_HAS_PNG_FUNCTIONS 1 | |
18709 | # 42 "/usr/include/cairo/cairo.h" 2 | |
18710 | ||
18711 | ||
18712 | ||
18713 | #define CAIRO_VERSION_ENCODE(major,minor,micro) ( ((major) * 10000) + ((minor) * 100) + ((micro) * 1)) | |
18714 | ||
18715 | ||
18716 | ||
18717 | ||
18718 | #define CAIRO_VERSION CAIRO_VERSION_ENCODE( CAIRO_VERSION_MAJOR, CAIRO_VERSION_MINOR, CAIRO_VERSION_MICRO) | |
18719 | ||
18720 | ||
18721 | ||
18722 | ||
18723 | int | |
18724 | cairo_version (void); | |
18725 | ||
18726 | const char* | |
18727 | cairo_version_string (void); | |
18728 | # 75 "/usr/include/cairo/cairo.h" | |
18729 | typedef int cairo_bool_t; | |
18730 | ||
18731 | ||
18732 | ||
18733 | ||
18734 | ||
18735 | ||
18736 | ||
18737 | typedef struct _cairo cairo_t; | |
18738 | # 97 "/usr/include/cairo/cairo.h" | |
18739 | typedef struct _cairo_surface cairo_surface_t; | |
18740 | # 116 "/usr/include/cairo/cairo.h" | |
18741 | typedef struct _cairo_matrix { | |
18742 | double xx; double yx; | |
18743 | double xy; double yy; | |
18744 | double x0; double y0; | |
18745 | } cairo_matrix_t; | |
18746 | ||
18747 | typedef struct _cairo_pattern cairo_pattern_t; | |
18748 | # 132 "/usr/include/cairo/cairo.h" | |
18749 | typedef void (*cairo_destroy_func_t) (void *data); | |
18750 | # 144 "/usr/include/cairo/cairo.h" | |
18751 | typedef struct _cairo_user_data_key { | |
18752 | int unused; | |
18753 | } cairo_user_data_key_t; | |
18754 | # 176 "/usr/include/cairo/cairo.h" | |
18755 | typedef enum _cairo_status { | |
18756 | CAIRO_STATUS_SUCCESS = 0, | |
18757 | CAIRO_STATUS_NO_MEMORY, | |
18758 | CAIRO_STATUS_INVALID_RESTORE, | |
18759 | CAIRO_STATUS_INVALID_POP_GROUP, | |
18760 | CAIRO_STATUS_NO_CURRENT_POINT, | |
18761 | CAIRO_STATUS_INVALID_MATRIX, | |
18762 | CAIRO_STATUS_INVALID_STATUS, | |
18763 | CAIRO_STATUS_NULL_POINTER, | |
18764 | CAIRO_STATUS_INVALID_STRING, | |
18765 | CAIRO_STATUS_INVALID_PATH_DATA, | |
18766 | CAIRO_STATUS_READ_ERROR, | |
18767 | CAIRO_STATUS_WRITE_ERROR, | |
18768 | CAIRO_STATUS_SURFACE_FINISHED, | |
18769 | CAIRO_STATUS_SURFACE_TYPE_MISMATCH, | |
18770 | CAIRO_STATUS_PATTERN_TYPE_MISMATCH, | |
18771 | CAIRO_STATUS_INVALID_CONTENT, | |
18772 | CAIRO_STATUS_INVALID_FORMAT, | |
18773 | CAIRO_STATUS_INVALID_VISUAL, | |
18774 | CAIRO_STATUS_FILE_NOT_FOUND, | |
18775 | CAIRO_STATUS_INVALID_DASH | |
18776 | } cairo_status_t; | |
18777 | # 215 "/usr/include/cairo/cairo.h" | |
18778 | typedef cairo_status_t (*cairo_write_func_t) (void *closure, | |
18779 | const unsigned char *data, | |
18780 | unsigned int length); | |
18781 | # 235 "/usr/include/cairo/cairo.h" | |
18782 | typedef cairo_status_t (*cairo_read_func_t) (void *closure, | |
18783 | unsigned char *data, | |
18784 | unsigned int length); | |
18785 | ||
18786 | ||
18787 | cairo_t * | |
18788 | cairo_create (cairo_surface_t *target); | |
18789 | ||
18790 | cairo_t * | |
18791 | cairo_reference (cairo_t *cr); | |
18792 | ||
18793 | void | |
18794 | cairo_destroy (cairo_t *cr); | |
18795 | ||
18796 | void | |
18797 | cairo_save (cairo_t *cr); | |
18798 | ||
18799 | void | |
18800 | cairo_restore (cairo_t *cr); | |
18801 | # 265 "/usr/include/cairo/cairo.h" | |
18802 | typedef enum _cairo_operator { | |
18803 | CAIRO_OPERATOR_CLEAR, | |
18804 | ||
18805 | CAIRO_OPERATOR_SOURCE, | |
18806 | CAIRO_OPERATOR_OVER, | |
18807 | CAIRO_OPERATOR_IN, | |
18808 | CAIRO_OPERATOR_OUT, | |
18809 | CAIRO_OPERATOR_ATOP, | |
18810 | ||
18811 | CAIRO_OPERATOR_DEST, | |
18812 | CAIRO_OPERATOR_DEST_OVER, | |
18813 | CAIRO_OPERATOR_DEST_IN, | |
18814 | CAIRO_OPERATOR_DEST_OUT, | |
18815 | CAIRO_OPERATOR_DEST_ATOP, | |
18816 | ||
18817 | CAIRO_OPERATOR_XOR, | |
18818 | CAIRO_OPERATOR_ADD, | |
18819 | CAIRO_OPERATOR_SATURATE | |
18820 | } cairo_operator_t; | |
18821 | ||
18822 | void | |
18823 | cairo_set_operator (cairo_t *cr, cairo_operator_t op); | |
18824 | ||
18825 | void | |
18826 | cairo_set_source (cairo_t *cr, cairo_pattern_t *source); | |
18827 | ||
18828 | void | |
18829 | cairo_set_source_rgb (cairo_t *cr, double red, double green, double blue); | |
18830 | ||
18831 | void | |
18832 | cairo_set_source_rgba (cairo_t *cr, | |
18833 | double red, double green, double blue, | |
18834 | double alpha); | |
18835 | ||
18836 | void | |
18837 | cairo_set_source_surface (cairo_t *cr, | |
18838 | cairo_surface_t *surface, | |
18839 | double x, | |
18840 | double y); | |
18841 | ||
18842 | void | |
18843 | cairo_set_tolerance (cairo_t *cr, double tolerance); | |
18844 | # 321 "/usr/include/cairo/cairo.h" | |
18845 | typedef enum _cairo_antialias { | |
18846 | CAIRO_ANTIALIAS_DEFAULT, | |
18847 | CAIRO_ANTIALIAS_NONE, | |
18848 | CAIRO_ANTIALIAS_GRAY, | |
18849 | CAIRO_ANTIALIAS_SUBPIXEL | |
18850 | } cairo_antialias_t; | |
18851 | ||
18852 | void | |
18853 | cairo_set_antialias (cairo_t *cr, cairo_antialias_t antialias); | |
18854 | # 352 "/usr/include/cairo/cairo.h" | |
18855 | typedef enum _cairo_fill_rule { | |
18856 | CAIRO_FILL_RULE_WINDING, | |
18857 | CAIRO_FILL_RULE_EVEN_ODD | |
18858 | } cairo_fill_rule_t; | |
18859 | ||
18860 | void | |
18861 | cairo_set_fill_rule (cairo_t *cr, cairo_fill_rule_t fill_rule); | |
18862 | ||
18863 | void | |
18864 | cairo_set_line_width (cairo_t *cr, double width); | |
18865 | # 372 "/usr/include/cairo/cairo.h" | |
18866 | typedef enum _cairo_line_cap { | |
18867 | CAIRO_LINE_CAP_BUTT, | |
18868 | CAIRO_LINE_CAP_ROUND, | |
18869 | CAIRO_LINE_CAP_SQUARE | |
18870 | } cairo_line_cap_t; | |
18871 | ||
18872 | void | |
18873 | cairo_set_line_cap (cairo_t *cr, cairo_line_cap_t line_cap); | |
18874 | ||
18875 | typedef enum _cairo_line_join { | |
18876 | CAIRO_LINE_JOIN_MITER, | |
18877 | CAIRO_LINE_JOIN_ROUND, | |
18878 | CAIRO_LINE_JOIN_BEVEL | |
18879 | } cairo_line_join_t; | |
18880 | ||
18881 | void | |
18882 | cairo_set_line_join (cairo_t *cr, cairo_line_join_t line_join); | |
18883 | ||
18884 | void | |
18885 | cairo_set_dash (cairo_t *cr, | |
18886 | double *dashes, | |
18887 | int num_dashes, | |
18888 | double offset); | |
18889 | ||
18890 | void | |
18891 | cairo_set_miter_limit (cairo_t *cr, double limit); | |
18892 | ||
18893 | void | |
18894 | cairo_translate (cairo_t *cr, double tx, double ty); | |
18895 | ||
18896 | void | |
18897 | cairo_scale (cairo_t *cr, double sx, double sy); | |
18898 | ||
18899 | void | |
18900 | cairo_rotate (cairo_t *cr, double angle); | |
18901 | ||
18902 | void | |
18903 | cairo_transform (cairo_t *cr, | |
18904 | const cairo_matrix_t *matrix); | |
18905 | ||
18906 | void | |
18907 | cairo_set_matrix (cairo_t *cr, | |
18908 | const cairo_matrix_t *matrix); | |
18909 | ||
18910 | void | |
18911 | cairo_identity_matrix (cairo_t *cr); | |
18912 | ||
18913 | void | |
18914 | cairo_user_to_device (cairo_t *cr, double *x, double *y); | |
18915 | ||
18916 | void | |
18917 | cairo_user_to_device_distance (cairo_t *cr, double *dx, double *dy); | |
18918 | ||
18919 | void | |
18920 | cairo_device_to_user (cairo_t *cr, double *x, double *y); | |
18921 | ||
18922 | void | |
18923 | cairo_device_to_user_distance (cairo_t *cr, double *dx, double *dy); | |
18924 | ||
18925 | ||
18926 | void | |
18927 | cairo_new_path (cairo_t *cr); | |
18928 | ||
18929 | void | |
18930 | cairo_move_to (cairo_t *cr, double x, double y); | |
18931 | ||
18932 | void | |
18933 | cairo_line_to (cairo_t *cr, double x, double y); | |
18934 | ||
18935 | void | |
18936 | cairo_curve_to (cairo_t *cr, | |
18937 | double x1, double y1, | |
18938 | double x2, double y2, | |
18939 | double x3, double y3); | |
18940 | ||
18941 | void | |
18942 | cairo_arc (cairo_t *cr, | |
18943 | double xc, double yc, | |
18944 | double radius, | |
18945 | double angle1, double angle2); | |
18946 | ||
18947 | void | |
18948 | cairo_arc_negative (cairo_t *cr, | |
18949 | double xc, double yc, | |
18950 | double radius, | |
18951 | double angle1, double angle2); | |
18952 | # 467 "/usr/include/cairo/cairo.h" | |
18953 | void | |
18954 | cairo_rel_move_to (cairo_t *cr, double dx, double dy); | |
18955 | ||
18956 | void | |
18957 | cairo_rel_line_to (cairo_t *cr, double dx, double dy); | |
18958 | ||
18959 | void | |
18960 | cairo_rel_curve_to (cairo_t *cr, | |
18961 | double dx1, double dy1, | |
18962 | double dx2, double dy2, | |
18963 | double dx3, double dy3); | |
18964 | ||
18965 | void | |
18966 | cairo_rectangle (cairo_t *cr, | |
18967 | double x, double y, | |
18968 | double width, double height); | |
18969 | ||
18970 | ||
18971 | ||
18972 | ||
18973 | ||
18974 | ||
18975 | void | |
18976 | cairo_close_path (cairo_t *cr); | |
18977 | ||
18978 | ||
18979 | void | |
18980 | cairo_paint (cairo_t *cr); | |
18981 | ||
18982 | void | |
18983 | cairo_paint_with_alpha (cairo_t *cr, | |
18984 | double alpha); | |
18985 | ||
18986 | void | |
18987 | cairo_mask (cairo_t *cr, | |
18988 | cairo_pattern_t *pattern); | |
18989 | ||
18990 | void | |
18991 | cairo_mask_surface (cairo_t *cr, | |
18992 | cairo_surface_t *surface, | |
18993 | double surface_x, | |
18994 | double surface_y); | |
18995 | ||
18996 | void | |
18997 | cairo_stroke (cairo_t *cr); | |
18998 | ||
18999 | void | |
19000 | cairo_stroke_preserve (cairo_t *cr); | |
19001 | ||
19002 | void | |
19003 | cairo_fill (cairo_t *cr); | |
19004 | ||
19005 | void | |
19006 | cairo_fill_preserve (cairo_t *cr); | |
19007 | ||
19008 | void | |
19009 | cairo_copy_page (cairo_t *cr); | |
19010 | ||
19011 | void | |
19012 | cairo_show_page (cairo_t *cr); | |
19013 | ||
19014 | ||
19015 | cairo_bool_t | |
19016 | cairo_in_stroke (cairo_t *cr, double x, double y); | |
19017 | ||
19018 | cairo_bool_t | |
19019 | cairo_in_fill (cairo_t *cr, double x, double y); | |
19020 | ||
19021 | ||
19022 | void | |
19023 | cairo_stroke_extents (cairo_t *cr, | |
19024 | double *x1, double *y1, | |
19025 | double *x2, double *y2); | |
19026 | ||
19027 | void | |
19028 | cairo_fill_extents (cairo_t *cr, | |
19029 | double *x1, double *y1, | |
19030 | double *x2, double *y2); | |
19031 | ||
19032 | ||
19033 | void | |
19034 | cairo_reset_clip (cairo_t *cr); | |
19035 | ||
19036 | void | |
19037 | cairo_clip (cairo_t *cr); | |
19038 | ||
19039 | void | |
19040 | cairo_clip_preserve (cairo_t *cr); | |
19041 | # 566 "/usr/include/cairo/cairo.h" | |
19042 | typedef struct _cairo_scaled_font cairo_scaled_font_t; | |
19043 | # 578 "/usr/include/cairo/cairo.h" | |
19044 | typedef struct _cairo_font_face cairo_font_face_t; | |
19045 | # 604 "/usr/include/cairo/cairo.h" | |
19046 | typedef struct { | |
19047 | unsigned long index; | |
19048 | double x; | |
19049 | double y; | |
19050 | } cairo_glyph_t; | |
19051 | # 637 "/usr/include/cairo/cairo.h" | |
19052 | typedef struct { | |
19053 | double x_bearing; | |
19054 | double y_bearing; | |
19055 | double width; | |
19056 | double height; | |
19057 | double x_advance; | |
19058 | double y_advance; | |
19059 | } cairo_text_extents_t; | |
19060 | # 687 "/usr/include/cairo/cairo.h" | |
19061 | typedef struct { | |
19062 | double ascent; | |
19063 | double descent; | |
19064 | double height; | |
19065 | double max_x_advance; | |
19066 | double max_y_advance; | |
19067 | } cairo_font_extents_t; | |
19068 | ||
19069 | typedef enum _cairo_font_slant { | |
19070 | CAIRO_FONT_SLANT_NORMAL, | |
19071 | CAIRO_FONT_SLANT_ITALIC, | |
19072 | CAIRO_FONT_SLANT_OBLIQUE | |
19073 | } cairo_font_slant_t; | |
19074 | ||
19075 | typedef enum _cairo_font_weight { | |
19076 | CAIRO_FONT_WEIGHT_NORMAL, | |
19077 | CAIRO_FONT_WEIGHT_BOLD | |
19078 | } cairo_font_weight_t; | |
19079 | # 723 "/usr/include/cairo/cairo.h" | |
19080 | typedef enum _cairo_subpixel_order { | |
19081 | CAIRO_SUBPIXEL_ORDER_DEFAULT, | |
19082 | CAIRO_SUBPIXEL_ORDER_RGB, | |
19083 | CAIRO_SUBPIXEL_ORDER_BGR, | |
19084 | CAIRO_SUBPIXEL_ORDER_VRGB, | |
19085 | CAIRO_SUBPIXEL_ORDER_VBGR | |
19086 | } cairo_subpixel_order_t; | |
19087 | # 751 "/usr/include/cairo/cairo.h" | |
19088 | typedef enum _cairo_hint_style { | |
19089 | CAIRO_HINT_STYLE_DEFAULT, | |
19090 | CAIRO_HINT_STYLE_NONE, | |
19091 | CAIRO_HINT_STYLE_SLIGHT, | |
19092 | CAIRO_HINT_STYLE_MEDIUM, | |
19093 | CAIRO_HINT_STYLE_FULL | |
19094 | } cairo_hint_style_t; | |
19095 | # 772 "/usr/include/cairo/cairo.h" | |
19096 | typedef enum _cairo_hint_metrics { | |
19097 | CAIRO_HINT_METRICS_DEFAULT, | |
19098 | CAIRO_HINT_METRICS_OFF, | |
19099 | CAIRO_HINT_METRICS_ON | |
19100 | } cairo_hint_metrics_t; | |
19101 | ||
19102 | typedef struct _cairo_font_options cairo_font_options_t; | |
19103 | ||
19104 | cairo_font_options_t * | |
19105 | cairo_font_options_create (void); | |
19106 | ||
19107 | cairo_font_options_t * | |
19108 | cairo_font_options_copy (const cairo_font_options_t *original); | |
19109 | ||
19110 | void | |
19111 | cairo_font_options_destroy (cairo_font_options_t *options); | |
19112 | ||
19113 | cairo_status_t | |
19114 | cairo_font_options_status (cairo_font_options_t *options); | |
19115 | ||
19116 | void | |
19117 | cairo_font_options_merge (cairo_font_options_t *options, | |
19118 | const cairo_font_options_t *other); | |
19119 | cairo_bool_t | |
19120 | cairo_font_options_equal (const cairo_font_options_t *options, | |
19121 | const cairo_font_options_t *other); | |
19122 | ||
19123 | unsigned long | |
19124 | cairo_font_options_hash (const cairo_font_options_t *options); | |
19125 | ||
19126 | void | |
19127 | cairo_font_options_set_antialias (cairo_font_options_t *options, | |
19128 | cairo_antialias_t antialias); | |
19129 | cairo_antialias_t | |
19130 | cairo_font_options_get_antialias (const cairo_font_options_t *options); | |
19131 | ||
19132 | void | |
19133 | cairo_font_options_set_subpixel_order (cairo_font_options_t *options, | |
19134 | cairo_subpixel_order_t subpixel_order); | |
19135 | cairo_subpixel_order_t | |
19136 | cairo_font_options_get_subpixel_order (const cairo_font_options_t *options); | |
19137 | ||
19138 | void | |
19139 | cairo_font_options_set_hint_style (cairo_font_options_t *options, | |
19140 | cairo_hint_style_t hint_style); | |
19141 | cairo_hint_style_t | |
19142 | cairo_font_options_get_hint_style (const cairo_font_options_t *options); | |
19143 | ||
19144 | void | |
19145 | cairo_font_options_set_hint_metrics (cairo_font_options_t *options, | |
19146 | cairo_hint_metrics_t hint_metrics); | |
19147 | cairo_hint_metrics_t | |
19148 | cairo_font_options_get_hint_metrics (const cairo_font_options_t *options); | |
19149 | ||
19150 | ||
19151 | ||
19152 | ||
19153 | ||
19154 | void | |
19155 | cairo_select_font_face (cairo_t *cr, | |
19156 | const char *family, | |
19157 | cairo_font_slant_t slant, | |
19158 | cairo_font_weight_t weight); | |
19159 | ||
19160 | void | |
19161 | cairo_set_font_size (cairo_t *cr, double size); | |
19162 | ||
19163 | void | |
19164 | cairo_set_font_matrix (cairo_t *cr, | |
19165 | const cairo_matrix_t *matrix); | |
19166 | ||
19167 | void | |
19168 | cairo_get_font_matrix (cairo_t *cr, | |
19169 | cairo_matrix_t *matrix); | |
19170 | ||
19171 | void | |
19172 | cairo_set_font_options (cairo_t *cr, | |
19173 | const cairo_font_options_t *options); | |
19174 | ||
19175 | void | |
19176 | cairo_get_font_options (cairo_t *cr, | |
19177 | cairo_font_options_t *options); | |
19178 | ||
19179 | void | |
19180 | cairo_show_text (cairo_t *cr, const char *utf8); | |
19181 | ||
19182 | void | |
19183 | cairo_show_glyphs (cairo_t *cr, cairo_glyph_t *glyphs, int num_glyphs); | |
19184 | ||
19185 | cairo_font_face_t * | |
19186 | cairo_get_font_face (cairo_t *cr); | |
19187 | ||
19188 | void | |
19189 | cairo_font_extents (cairo_t *cr, | |
19190 | cairo_font_extents_t *extents); | |
19191 | ||
19192 | void | |
19193 | cairo_set_font_face (cairo_t *cr, cairo_font_face_t *font_face); | |
19194 | ||
19195 | void | |
19196 | cairo_text_extents (cairo_t *cr, | |
19197 | const char *utf8, | |
19198 | cairo_text_extents_t *extents); | |
19199 | ||
19200 | void | |
19201 | cairo_glyph_extents (cairo_t *cr, | |
19202 | cairo_glyph_t *glyphs, | |
19203 | int num_glyphs, | |
19204 | cairo_text_extents_t *extents); | |
19205 | ||
19206 | void | |
19207 | cairo_text_path (cairo_t *cr, const char *utf8); | |
19208 | ||
19209 | void | |
19210 | cairo_glyph_path (cairo_t *cr, cairo_glyph_t *glyphs, int num_glyphs); | |
19211 | ||
19212 | ||
19213 | ||
19214 | cairo_font_face_t * | |
19215 | cairo_font_face_reference (cairo_font_face_t *font_face); | |
19216 | ||
19217 | void | |
19218 | cairo_font_face_destroy (cairo_font_face_t *font_face); | |
19219 | ||
19220 | cairo_status_t | |
19221 | cairo_font_face_status (cairo_font_face_t *font_face); | |
19222 | ||
19223 | void * | |
19224 | cairo_font_face_get_user_data (cairo_font_face_t *font_face, | |
19225 | const cairo_user_data_key_t *key); | |
19226 | ||
19227 | cairo_status_t | |
19228 | cairo_font_face_set_user_data (cairo_font_face_t *font_face, | |
19229 | const cairo_user_data_key_t *key, | |
19230 | void *user_data, | |
19231 | cairo_destroy_func_t destroy); | |
19232 | ||
19233 | ||
19234 | ||
19235 | cairo_scaled_font_t * | |
19236 | cairo_scaled_font_create (cairo_font_face_t *font_face, | |
19237 | const cairo_matrix_t *font_matrix, | |
19238 | const cairo_matrix_t *ctm, | |
19239 | const cairo_font_options_t *options); | |
19240 | ||
19241 | cairo_scaled_font_t * | |
19242 | cairo_scaled_font_reference (cairo_scaled_font_t *scaled_font); | |
19243 | ||
19244 | void | |
19245 | cairo_scaled_font_destroy (cairo_scaled_font_t *scaled_font); | |
19246 | ||
19247 | cairo_status_t | |
19248 | cairo_scaled_font_status (cairo_scaled_font_t *scaled_font); | |
19249 | ||
19250 | void | |
19251 | cairo_scaled_font_extents (cairo_scaled_font_t *scaled_font, | |
19252 | cairo_font_extents_t *extents); | |
19253 | ||
19254 | void | |
19255 | cairo_scaled_font_glyph_extents (cairo_scaled_font_t *scaled_font, | |
19256 | cairo_glyph_t *glyphs, | |
19257 | int num_glyphs, | |
19258 | cairo_text_extents_t *extents); | |
19259 | ||
19260 | ||
19261 | ||
19262 | cairo_operator_t | |
19263 | cairo_get_operator (cairo_t *cr); | |
19264 | ||
19265 | cairo_pattern_t * | |
19266 | cairo_get_source (cairo_t *cr); | |
19267 | ||
19268 | double | |
19269 | cairo_get_tolerance (cairo_t *cr); | |
19270 | ||
19271 | cairo_antialias_t | |
19272 | cairo_get_antialias (cairo_t *cr); | |
19273 | ||
19274 | void | |
19275 | cairo_get_current_point (cairo_t *cr, double *x, double *y); | |
19276 | ||
19277 | cairo_fill_rule_t | |
19278 | cairo_get_fill_rule (cairo_t *cr); | |
19279 | ||
19280 | double | |
19281 | cairo_get_line_width (cairo_t *cr); | |
19282 | ||
19283 | cairo_line_cap_t | |
19284 | cairo_get_line_cap (cairo_t *cr); | |
19285 | ||
19286 | cairo_line_join_t | |
19287 | cairo_get_line_join (cairo_t *cr); | |
19288 | ||
19289 | double | |
19290 | cairo_get_miter_limit (cairo_t *cr); | |
19291 | ||
19292 | ||
19293 | ||
19294 | void | |
19295 | cairo_get_matrix (cairo_t *cr, cairo_matrix_t *matrix); | |
19296 | ||
19297 | cairo_surface_t * | |
19298 | cairo_get_target (cairo_t *cr); | |
19299 | ||
19300 | typedef enum _cairo_path_data_type { | |
19301 | CAIRO_PATH_MOVE_TO, | |
19302 | CAIRO_PATH_LINE_TO, | |
19303 | CAIRO_PATH_CURVE_TO, | |
19304 | CAIRO_PATH_CLOSE_PATH | |
19305 | } cairo_path_data_type_t; | |
19306 | # 1042 "/usr/include/cairo/cairo.h" | |
19307 | typedef union _cairo_path_data_t cairo_path_data_t; | |
19308 | union _cairo_path_data_t { | |
19309 | struct { | |
19310 | cairo_path_data_type_t type; | |
19311 | int length; | |
19312 | } header; | |
19313 | struct { | |
19314 | double x, y; | |
19315 | } point; | |
19316 | }; | |
19317 | # 1072 "/usr/include/cairo/cairo.h" | |
19318 | typedef struct cairo_path { | |
19319 | cairo_status_t status; | |
19320 | cairo_path_data_t *data; | |
19321 | int num_data; | |
19322 | } cairo_path_t; | |
19323 | ||
19324 | cairo_path_t * | |
19325 | cairo_copy_path (cairo_t *cr); | |
19326 | ||
19327 | cairo_path_t * | |
19328 | cairo_copy_path_flat (cairo_t *cr); | |
19329 | ||
19330 | void | |
19331 | cairo_append_path (cairo_t *cr, | |
19332 | cairo_path_t *path); | |
19333 | ||
19334 | void | |
19335 | cairo_path_destroy (cairo_path_t *path); | |
19336 | ||
19337 | ||
19338 | ||
19339 | cairo_status_t | |
19340 | cairo_status (cairo_t *cr); | |
19341 | ||
19342 | const char * | |
19343 | cairo_status_to_string (cairo_status_t status); | |
19344 | # 1115 "/usr/include/cairo/cairo.h" | |
19345 | typedef enum _cairo_content { | |
19346 | CAIRO_CONTENT_COLOR = 0x1000, | |
19347 | CAIRO_CONTENT_ALPHA = 0x2000, | |
19348 | CAIRO_CONTENT_COLOR_ALPHA = 0x3000 | |
19349 | } cairo_content_t; | |
19350 | ||
19351 | cairo_surface_t * | |
19352 | cairo_surface_create_similar (cairo_surface_t *other, | |
19353 | cairo_content_t content, | |
19354 | int width, | |
19355 | int height); | |
19356 | ||
19357 | cairo_surface_t * | |
19358 | cairo_surface_reference (cairo_surface_t *surface); | |
19359 | ||
19360 | void | |
19361 | cairo_surface_destroy (cairo_surface_t *surface); | |
19362 | ||
19363 | cairo_status_t | |
19364 | cairo_surface_status (cairo_surface_t *surface); | |
19365 | ||
19366 | void | |
19367 | cairo_surface_finish (cairo_surface_t *surface); | |
19368 | ||
19369 | ||
19370 | ||
19371 | cairo_status_t | |
19372 | cairo_surface_write_to_png (cairo_surface_t *surface, | |
19373 | const char *filename); | |
19374 | ||
19375 | cairo_status_t | |
19376 | cairo_surface_write_to_png_stream (cairo_surface_t *surface, | |
19377 | cairo_write_func_t write_func, | |
19378 | void *closure); | |
19379 | ||
19380 | ||
19381 | ||
19382 | void * | |
19383 | cairo_surface_get_user_data (cairo_surface_t *surface, | |
19384 | const cairo_user_data_key_t *key); | |
19385 | ||
19386 | cairo_status_t | |
19387 | cairo_surface_set_user_data (cairo_surface_t *surface, | |
19388 | const cairo_user_data_key_t *key, | |
19389 | void *user_data, | |
19390 | cairo_destroy_func_t destroy); | |
19391 | ||
19392 | void | |
19393 | cairo_surface_get_font_options (cairo_surface_t *surface, | |
19394 | cairo_font_options_t *options); | |
19395 | ||
19396 | void | |
19397 | cairo_surface_flush (cairo_surface_t *surface); | |
19398 | ||
19399 | void | |
19400 | cairo_surface_mark_dirty (cairo_surface_t *surface); | |
19401 | ||
19402 | void | |
19403 | cairo_surface_mark_dirty_rectangle (cairo_surface_t *surface, | |
19404 | int x, | |
19405 | int y, | |
19406 | int width, | |
19407 | int height); | |
19408 | ||
19409 | void | |
19410 | cairo_surface_set_device_offset (cairo_surface_t *surface, | |
19411 | double x_offset, | |
19412 | double y_offset); | |
19413 | # 1208 "/usr/include/cairo/cairo.h" | |
19414 | typedef enum _cairo_format { | |
19415 | CAIRO_FORMAT_ARGB32, | |
19416 | CAIRO_FORMAT_RGB24, | |
19417 | CAIRO_FORMAT_A8, | |
19418 | CAIRO_FORMAT_A1 | |
19419 | } cairo_format_t; | |
19420 | ||
19421 | cairo_surface_t * | |
19422 | cairo_image_surface_create (cairo_format_t format, | |
19423 | int width, | |
19424 | int height); | |
19425 | ||
19426 | cairo_surface_t * | |
19427 | cairo_image_surface_create_for_data (unsigned char *data, | |
19428 | cairo_format_t format, | |
19429 | int width, | |
19430 | int height, | |
19431 | int stride); | |
19432 | ||
19433 | int | |
19434 | cairo_image_surface_get_width (cairo_surface_t *surface); | |
19435 | ||
19436 | int | |
19437 | cairo_image_surface_get_height (cairo_surface_t *surface); | |
19438 | ||
19439 | ||
19440 | ||
19441 | cairo_surface_t * | |
19442 | cairo_image_surface_create_from_png (const char *filename); | |
19443 | ||
19444 | cairo_surface_t * | |
19445 | cairo_image_surface_create_from_png_stream (cairo_read_func_t read_func, | |
19446 | void *closure); | |
19447 | ||
19448 | ||
19449 | ||
19450 | ||
19451 | ||
19452 | cairo_pattern_t * | |
19453 | cairo_pattern_create_rgb (double red, double green, double blue); | |
19454 | ||
19455 | cairo_pattern_t * | |
19456 | cairo_pattern_create_rgba (double red, double green, double blue, | |
19457 | double alpha); | |
19458 | ||
19459 | cairo_pattern_t * | |
19460 | cairo_pattern_create_for_surface (cairo_surface_t *surface); | |
19461 | ||
19462 | cairo_pattern_t * | |
19463 | cairo_pattern_create_linear (double x0, double y0, | |
19464 | double x1, double y1); | |
19465 | ||
19466 | cairo_pattern_t * | |
19467 | cairo_pattern_create_radial (double cx0, double cy0, double radius0, | |
19468 | double cx1, double cy1, double radius1); | |
19469 | ||
19470 | cairo_pattern_t * | |
19471 | cairo_pattern_reference (cairo_pattern_t *pattern); | |
19472 | ||
19473 | void | |
19474 | cairo_pattern_destroy (cairo_pattern_t *pattern); | |
19475 | ||
19476 | cairo_status_t | |
19477 | cairo_pattern_status (cairo_pattern_t *pattern); | |
19478 | ||
19479 | void | |
19480 | cairo_pattern_add_color_stop_rgb (cairo_pattern_t *pattern, | |
19481 | double offset, | |
19482 | double red, double green, double blue); | |
19483 | ||
19484 | void | |
19485 | cairo_pattern_add_color_stop_rgba (cairo_pattern_t *pattern, | |
19486 | double offset, | |
19487 | double red, double green, double blue, | |
19488 | double alpha); | |
19489 | ||
19490 | void | |
19491 | cairo_pattern_set_matrix (cairo_pattern_t *pattern, | |
19492 | const cairo_matrix_t *matrix); | |
19493 | ||
19494 | void | |
19495 | cairo_pattern_get_matrix (cairo_pattern_t *pattern, | |
19496 | cairo_matrix_t *matrix); | |
19497 | ||
19498 | typedef enum _cairo_extend { | |
19499 | CAIRO_EXTEND_NONE, | |
19500 | CAIRO_EXTEND_REPEAT, | |
19501 | CAIRO_EXTEND_REFLECT | |
19502 | } cairo_extend_t; | |
19503 | ||
19504 | void | |
19505 | cairo_pattern_set_extend (cairo_pattern_t *pattern, cairo_extend_t extend); | |
19506 | ||
19507 | cairo_extend_t | |
19508 | cairo_pattern_get_extend (cairo_pattern_t *pattern); | |
19509 | ||
19510 | typedef enum _cairo_filter { | |
19511 | CAIRO_FILTER_FAST, | |
19512 | CAIRO_FILTER_GOOD, | |
19513 | CAIRO_FILTER_BEST, | |
19514 | CAIRO_FILTER_NEAREST, | |
19515 | CAIRO_FILTER_BILINEAR, | |
19516 | CAIRO_FILTER_GAUSSIAN | |
19517 | } cairo_filter_t; | |
19518 | ||
19519 | void | |
19520 | cairo_pattern_set_filter (cairo_pattern_t *pattern, cairo_filter_t filter); | |
19521 | ||
19522 | cairo_filter_t | |
19523 | cairo_pattern_get_filter (cairo_pattern_t *pattern); | |
19524 | ||
19525 | ||
19526 | ||
19527 | void | |
19528 | cairo_matrix_init (cairo_matrix_t *matrix, | |
19529 | double xx, double yx, | |
19530 | double xy, double yy, | |
19531 | double x0, double y0); | |
19532 | ||
19533 | void | |
19534 | cairo_matrix_init_identity (cairo_matrix_t *matrix); | |
19535 | ||
19536 | void | |
19537 | cairo_matrix_init_translate (cairo_matrix_t *matrix, | |
19538 | double tx, double ty); | |
19539 | ||
19540 | void | |
19541 | cairo_matrix_init_scale (cairo_matrix_t *matrix, | |
19542 | double sx, double sy); | |
19543 | ||
19544 | void | |
19545 | cairo_matrix_init_rotate (cairo_matrix_t *matrix, | |
19546 | double radians); | |
19547 | ||
19548 | void | |
19549 | cairo_matrix_translate (cairo_matrix_t *matrix, double tx, double ty); | |
19550 | ||
19551 | void | |
19552 | cairo_matrix_scale (cairo_matrix_t *matrix, double sx, double sy); | |
19553 | ||
19554 | void | |
19555 | cairo_matrix_rotate (cairo_matrix_t *matrix, double radians); | |
19556 | ||
19557 | cairo_status_t | |
19558 | cairo_matrix_invert (cairo_matrix_t *matrix); | |
19559 | ||
19560 | void | |
19561 | cairo_matrix_multiply (cairo_matrix_t *result, | |
19562 | const cairo_matrix_t *a, | |
19563 | const cairo_matrix_t *b); | |
19564 | ||
19565 | ||
19566 | void | |
19567 | cairo_matrix_transform_distance (const cairo_matrix_t *matrix, | |
19568 | double *dx, double *dy); | |
19569 | ||
19570 | ||
19571 | void | |
19572 | cairo_matrix_transform_point (const cairo_matrix_t *matrix, | |
19573 | double *x, double *y); | |
19574 | # 1387 "/usr/include/cairo/cairo.h" | |
19575 | #define cairo_current_font_extents cairo_current_font_extents_REPLACED_BY_cairo_font_extents | |
19576 | #define cairo_get_font_extents cairo_get_font_extents_REPLACED_BY_cairo_font_extents | |
19577 | #define cairo_current_operator cairo_current_operator_REPLACED_BY_cairo_get_operator | |
19578 | #define cairo_current_tolerance cairo_current_tolerance_REPLACED_BY_cairo_get_tolerance | |
19579 | #define cairo_current_point cairo_current_point_REPLACED_BY_cairo_get_current_point | |
19580 | #define cairo_current_fill_rule cairo_current_fill_rule_REPLACED_BY_cairo_get_fill_rule | |
19581 | #define cairo_current_line_width cairo_current_line_width_REPLACED_BY_cairo_get_line_width | |
19582 | #define cairo_current_line_cap cairo_current_line_cap_REPLACED_BY_cairo_get_line_cap | |
19583 | #define cairo_current_line_join cairo_current_line_join_REPLACED_BY_cairo_get_line_join | |
19584 | #define cairo_current_miter_limit cairo_current_miter_limit_REPLACED_BY_cairo_get_miter_limit | |
19585 | #define cairo_current_matrix cairo_current_matrix_REPLACED_BY_cairo_get_matrix | |
19586 | #define cairo_current_target_surface cairo_current_target_surface_REPLACED_BY_cairo_get_target | |
19587 | #define cairo_get_status cairo_get_status_REPLACED_BY_cairo_status | |
19588 | #define cairo_concat_matrix cairo_concat_matrix_REPLACED_BY_cairo_transform | |
19589 | #define cairo_scale_font cairo_scale_font_REPLACED_BY_cairo_set_font_size | |
19590 | #define cairo_select_font cairo_select_font_REPLACED_BY_cairo_select_font_face | |
19591 | #define cairo_transform_font cairo_transform_font_REPLACED_BY_cairo_set_font_matrix | |
19592 | #define cairo_transform_point cairo_transform_point_REPLACED_BY_cairo_user_to_device | |
19593 | #define cairo_transform_distance cairo_transform_distance_REPLACED_BY_cairo_user_to_device_distance | |
19594 | #define cairo_inverse_transform_point cairo_inverse_transform_point_REPLACED_BY_cairo_device_to_user | |
19595 | #define cairo_inverse_transform_distance cairo_inverse_transform_distance_REPLACED_BY_cairo_device_to_user_distance | |
19596 | #define cairo_init_clip cairo_init_clip_REPLACED_BY_cairo_reset_clip | |
19597 | #define cairo_surface_create_for_image cairo_surface_create_for_image_REPLACED_BY_cairo_image_surface_create_for_data | |
19598 | #define cairo_default_matrix cairo_default_matrix_REPLACED_BY_cairo_identity_matrix | |
19599 | #define cairo_matrix_set_affine cairo_matrix_set_affine_REPLACED_BY_cairo_matrix_init | |
19600 | #define cairo_matrix_set_identity cairo_matrix_set_identity_REPLACED_BY_cairo_matrix_init_identity | |
19601 | #define cairo_pattern_add_color_stop cairo_pattern_add_color_stop_REPLACED_BY_cairo_pattern_add_color_stop_rgba | |
19602 | #define cairo_set_rgb_color cairo_set_rgb_color_REPLACED_BY_cairo_set_source_rgb | |
19603 | #define cairo_set_pattern cairo_set_pattern_REPLACED_BY_cairo_set_source | |
19604 | #define cairo_xlib_surface_create_for_pixmap_with_visual cairo_xlib_surface_create_for_pixmap_with_visual_REPLACED_BY_cairo_xlib_surface_create | |
19605 | #define cairo_xlib_surface_create_for_window_with_visual cairo_xlib_surface_create_for_window_with_visual_REPLACED_BY_cairo_xlib_surface_create | |
19606 | #define cairo_xcb_surface_create_for_pixmap_with_visual cairo_xcb_surface_create_for_pixmap_with_visual_REPLACED_BY_cairo_xcb_surface_create | |
19607 | #define cairo_xcb_surface_create_for_window_with_visual cairo_xcb_surface_create_for_window_with_visual_REPLACED_BY_cairo_xcb_surface_create | |
19608 | ||
19609 | ||
19610 | #define cairo_current_path cairo_current_path_DEPRECATED_BY_cairo_copy_path | |
19611 | #define cairo_current_path_flat cairo_current_path_flat_DEPRECATED_BY_cairo_copy_path_flat | |
19612 | #define cairo_get_path cairo_get_path_DEPRECATED_BY_cairo_copy_path | |
19613 | #define cairo_get_path_flat cairo_get_path_flat_DEPRECATED_BY_cairo_get_path_flat | |
19614 | #define cairo_set_alpha cairo_set_alpha_DEPRECATED_BY_cairo_set_source_rgba_OR_cairo_paint_with_alpha | |
19615 | #define cairo_show_surface cairo_show_surface_DEPRECATED_BY_cairo_set_source_surface_AND_cairo_paint | |
19616 | #define cairo_copy cairo_copy_DEPRECATED_BY_cairo_create_AND_MANY_INDIVIDUAL_FUNCTIONS | |
19617 | #define cairo_surface_set_repeat cairo_surface_set_repeat_DEPRECATED_BY_cairo_pattern_set_extend | |
19618 | #define cairo_surface_set_matrix cairo_surface_set_matrix_DEPRECATED_BY_cairo_pattern_set_matrix | |
19619 | #define cairo_surface_get_matrix cairo_surface_get_matrix_DEPRECATED_BY_cairo_pattern_get_matrix | |
19620 | #define cairo_surface_set_filter cairo_surface_set_filter_DEPRECATED_BY_cairo_pattern_set_filter | |
19621 | #define cairo_surface_get_filter cairo_surface_get_filter_DEPRECATED_BY_cairo_pattern_get_filter | |
19622 | #define cairo_matrix_create cairo_matrix_create_DEPRECATED_BY_cairo_matrix_t | |
19623 | #define cairo_matrix_destroy cairo_matrix_destroy_DEPRECATED_BY_cairo_matrix_t | |
19624 | #define cairo_matrix_copy cairo_matrix_copy_DEPRECATED_BY_cairo_matrix_t | |
19625 | #define cairo_matrix_get_affine cairo_matrix_get_affine_DEPRECATED_BY_cairo_matrix_t | |
19626 | #define cairo_set_target_surface cairo_set_target_surface_DEPRECATED_BY_cairo_create | |
19627 | #define cairo_set_target_glitz cairo_set_target_glitz_DEPRECATED_BY_cairo_glitz_surface_create | |
19628 | #define cairo_set_target_image cairo_set_target_image_DEPRECATED_BY_cairo_image_surface_create_for_data | |
19629 | #define cairo_set_target_pdf cairo_set_target_pdf_DEPRECATED_BY_cairo_pdf_surface_create | |
19630 | #define cairo_set_target_png cairo_set_target_png_DEPRECATED_BY_cairo_surface_write_to_png | |
19631 | #define cairo_set_target_ps cairo_set_target_ps_DEPRECATED_BY_cairo_ps_surface_create | |
19632 | #define cairo_set_target_quartz cairo_set_target_quartz_DEPRECATED_BY_cairo_quartz_surface_create | |
19633 | #define cairo_set_target_win32 cairo_set_target_win32_DEPRECATED_BY_cairo_win32_surface_create | |
19634 | #define cairo_set_target_xcb cairo_set_target_xcb_DEPRECATED_BY_cairo_xcb_surface_create | |
19635 | #define cairo_set_target_drawable cairo_set_target_drawable_DEPRECATED_BY_cairo_xlib_surface_create | |
19636 | #define cairo_get_status_string cairo_get_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string | |
19637 | #define cairo_status_string cairo_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string | |
19638 | ||
19639 | ||
19640 | ||
19641 | ||
19642 | # 31 "/usr/include/gtk-2.0/gdk/gdkcolor.h" 2 | |
19643 | # 1 "/usr/include/gtk-2.0/gdk/gdktypes.h" 1 | |
19644 | # 28 "/usr/include/gtk-2.0/gdk/gdktypes.h" | |
19645 | #define __GDK_TYPES_H__ | |
19646 | ||
19647 | ||
19648 | ||
19649 | # 1 "/usr/include/glib-2.0/glib.h" 1 | |
19650 | # 28 "/usr/include/glib-2.0/glib.h" | |
19651 | #define __G_LIB_H__ | |
19652 | ||
19653 | # 1 "/usr/include/glib-2.0/glib/galloca.h" 1 | |
19654 | # 28 "/usr/include/glib-2.0/glib/galloca.h" | |
19655 | #define __G_ALLOCA_H__ | |
19656 | ||
19657 | # 1 "/usr/include/glib-2.0/glib/gtypes.h" 1 | |
19658 | # 28 "/usr/include/glib-2.0/glib/gtypes.h" | |
19659 | #define __G_TYPES_H__ | |
19660 | ||
19661 | # 1 "/usr/lib/glib-2.0/include/glibconfig.h" 1 | |
19662 | ||
19663 | ||
19664 | ||
19665 | ||
19666 | ||
19667 | ||
19668 | #define __G_LIBCONFIG_H__ | |
19669 | ||
19670 | # 1 "/usr/include/glib-2.0/glib/gmacros.h" 1 | |
19671 | # 32 "/usr/include/glib-2.0/glib/gmacros.h" | |
19672 | #define __G_MACROS_H__ | |
19673 | ||
19674 | ||
19675 | ||
19676 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
19677 | # 37 "/usr/include/glib-2.0/glib/gmacros.h" 2 | |
19678 | ||
19679 | ||
19680 | ||
19681 | ||
19682 | ||
19683 | ||
19684 | #define G_GNUC_EXTENSION __extension__ | |
19685 | ||
19686 | ||
19687 | ||
19688 | ||
19689 | ||
19690 | ||
19691 | ||
19692 | #define G_GNUC_PURE __attribute__((__pure__)) | |
19693 | ||
19694 | #define G_GNUC_MALLOC __attribute__((__malloc__)) | |
19695 | # 63 "/usr/include/glib-2.0/glib/gmacros.h" | |
19696 | #define G_GNUC_NULL_TERMINATED | |
19697 | ||
19698 | ||
19699 | ||
19700 | #define G_GNUC_PRINTF(format_idx,arg_idx) __attribute__((__format__ (__printf__, format_idx, arg_idx))) | |
19701 | ||
19702 | #define G_GNUC_SCANF(format_idx,arg_idx) __attribute__((__format__ (__scanf__, format_idx, arg_idx))) | |
19703 | ||
19704 | #define G_GNUC_FORMAT(arg_idx) __attribute__((__format_arg__ (arg_idx))) | |
19705 | ||
19706 | #define G_GNUC_NORETURN __attribute__((__noreturn__)) | |
19707 | ||
19708 | #define G_GNUC_CONST __attribute__((__const__)) | |
19709 | ||
19710 | #define G_GNUC_UNUSED __attribute__((__unused__)) | |
19711 | ||
19712 | #define G_GNUC_NO_INSTRUMENT __attribute__((__no_instrument_function__)) | |
19713 | # 92 "/usr/include/glib-2.0/glib/gmacros.h" | |
19714 | #define G_GNUC_DEPRECATED __attribute__((__deprecated__)) | |
19715 | ||
19716 | ||
19717 | ||
19718 | ||
19719 | ||
19720 | ||
19721 | #define G_GNUC_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) | |
19722 | # 113 "/usr/include/glib-2.0/glib/gmacros.h" | |
19723 | #define G_GNUC_FUNCTION "" | |
19724 | #define G_GNUC_PRETTY_FUNCTION "" | |
19725 | ||
19726 | ||
19727 | #define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string) | |
19728 | #define G_STRINGIFY_ARG(contents) #contents | |
19729 | ||
19730 | ||
19731 | ||
19732 | ||
19733 | ||
19734 | #define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__) | |
19735 | ||
19736 | ||
19737 | ||
19738 | ||
19739 | #define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) | |
19740 | # 141 "/usr/include/glib-2.0/glib/gmacros.h" | |
19741 | #define G_BEGIN_DECLS | |
19742 | #define G_END_DECLS | |
19743 | # 166 "/usr/include/glib-2.0/glib/gmacros.h" | |
19744 | #undef MAX | |
19745 | #define MAX(a,b) (((a) > (b)) ? (a) : (b)) | |
19746 | ||
19747 | #undef MIN | |
19748 | #define MIN(a,b) (((a) < (b)) ? (a) : (b)) | |
19749 | ||
19750 | #undef ABS | |
19751 | #define ABS(a) (((a) < 0) ? -(a) : (a)) | |
19752 | ||
19753 | #undef CLAMP | |
19754 | #define CLAMP(x,low,high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) | |
19755 | ||
19756 | ||
19757 | ||
19758 | ||
19759 | ||
19760 | #define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0])) | |
19761 | ||
19762 | ||
19763 | ||
19764 | #define GPOINTER_TO_SIZE(p) ((gsize) (p)) | |
19765 | #define GSIZE_TO_POINTER(s) ((gpointer) (gsize) (s)) | |
19766 | ||
19767 | ||
19768 | ||
19769 | ||
19770 | #define G_STRUCT_OFFSET(struct_type,member) ((glong) ((guint8*) &((struct_type*) 0)->member)) | |
19771 | ||
19772 | #define G_STRUCT_MEMBER_P(struct_p,struct_offset) ((gpointer) ((guint8*) (struct_p) + (glong) (struct_offset))) | |
19773 | ||
19774 | #define G_STRUCT_MEMBER(member_type,struct_p,struct_offset) (*(member_type*) G_STRUCT_MEMBER_P ((struct_p), (struct_offset))) | |
19775 | # 213 "/usr/include/glib-2.0/glib/gmacros.h" | |
19776 | #define G_STMT_START (void) __extension__ ( | |
19777 | #define G_STMT_END ) | |
19778 | # 233 "/usr/include/glib-2.0/glib/gmacros.h" | |
19779 | #define G_CONST_RETURN const | |
19780 | # 245 "/usr/include/glib-2.0/glib/gmacros.h" | |
19781 | #define _G_BOOLEAN_EXPR(expr) __extension__ ({ int _g_boolean_var_; if (expr) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }) | |
19782 | # 254 "/usr/include/glib-2.0/glib/gmacros.h" | |
19783 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1)) | |
19784 | #define G_UNLIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 0)) | |
19785 | # 10 "/usr/lib/glib-2.0/include/glibconfig.h" 2 | |
19786 | ||
19787 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 1 3 4 | |
19788 | # 12 "/usr/lib/glib-2.0/include/glibconfig.h" 2 | |
19789 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/float.h" 1 3 4 | |
19790 | # 32 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/float.h" 3 4 | |
19791 | #define _FLOAT_H___ | |
19792 | ||
19793 | ||
19794 | #undef FLT_RADIX | |
19795 | #define FLT_RADIX __FLT_RADIX__ | |
19796 | ||
19797 | ||
19798 | #undef FLT_MANT_DIG | |
19799 | #undef DBL_MANT_DIG | |
19800 | #undef LDBL_MANT_DIG | |
19801 | #define FLT_MANT_DIG __FLT_MANT_DIG__ | |
19802 | #define DBL_MANT_DIG __DBL_MANT_DIG__ | |
19803 | #define LDBL_MANT_DIG __LDBL_MANT_DIG__ | |
19804 | # 53 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/float.h" 3 4 | |
19805 | #undef FLT_DIG | |
19806 | #undef DBL_DIG | |
19807 | #undef LDBL_DIG | |
19808 | #define FLT_DIG __FLT_DIG__ | |
19809 | #define DBL_DIG __DBL_DIG__ | |
19810 | #define LDBL_DIG __LDBL_DIG__ | |
19811 | ||
19812 | ||
19813 | #undef FLT_MIN_EXP | |
19814 | #undef DBL_MIN_EXP | |
19815 | #undef LDBL_MIN_EXP | |
19816 | #define FLT_MIN_EXP __FLT_MIN_EXP__ | |
19817 | #define DBL_MIN_EXP __DBL_MIN_EXP__ | |
19818 | #define LDBL_MIN_EXP __LDBL_MIN_EXP__ | |
19819 | ||
19820 | ||
19821 | ||
19822 | ||
19823 | ||
19824 | ||
19825 | #undef FLT_MIN_10_EXP | |
19826 | #undef DBL_MIN_10_EXP | |
19827 | #undef LDBL_MIN_10_EXP | |
19828 | #define FLT_MIN_10_EXP __FLT_MIN_10_EXP__ | |
19829 | #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__ | |
19830 | #define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__ | |
19831 | ||
19832 | ||
19833 | #undef FLT_MAX_EXP | |
19834 | #undef DBL_MAX_EXP | |
19835 | #undef LDBL_MAX_EXP | |
19836 | #define FLT_MAX_EXP __FLT_MAX_EXP__ | |
19837 | #define DBL_MAX_EXP __DBL_MAX_EXP__ | |
19838 | #define LDBL_MAX_EXP __LDBL_MAX_EXP__ | |
19839 | ||
19840 | ||
19841 | ||
19842 | ||
19843 | ||
19844 | ||
19845 | #undef FLT_MAX_10_EXP | |
19846 | #undef DBL_MAX_10_EXP | |
19847 | #undef LDBL_MAX_10_EXP | |
19848 | #define FLT_MAX_10_EXP __FLT_MAX_10_EXP__ | |
19849 | #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__ | |
19850 | #define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__ | |
19851 | ||
19852 | ||
19853 | ||
19854 | ||
19855 | ||
19856 | #undef FLT_MAX | |
19857 | #undef DBL_MAX | |
19858 | #undef LDBL_MAX | |
19859 | #define FLT_MAX __FLT_MAX__ | |
19860 | #define DBL_MAX __DBL_MAX__ | |
19861 | #define LDBL_MAX __LDBL_MAX__ | |
19862 | ||
19863 | ||
19864 | ||
19865 | #undef FLT_EPSILON | |
19866 | #undef DBL_EPSILON | |
19867 | #undef LDBL_EPSILON | |
19868 | #define FLT_EPSILON __FLT_EPSILON__ | |
19869 | #define DBL_EPSILON __DBL_EPSILON__ | |
19870 | #define LDBL_EPSILON __LDBL_EPSILON__ | |
19871 | ||
19872 | ||
19873 | #undef FLT_MIN | |
19874 | #undef DBL_MIN | |
19875 | #undef LDBL_MIN | |
19876 | #define FLT_MIN __FLT_MIN__ | |
19877 | #define DBL_MIN __DBL_MIN__ | |
19878 | #define LDBL_MIN __LDBL_MIN__ | |
19879 | ||
19880 | ||
19881 | ||
19882 | #undef FLT_ROUNDS | |
19883 | #define FLT_ROUNDS 1 | |
19884 | # 13 "/usr/lib/glib-2.0/include/glibconfig.h" 2 | |
19885 | #define GLIB_HAVE_ALLOCA_H | |
19886 | #define GLIB_HAVE_SYS_POLL_H | |
19887 | ||
19888 | ||
19889 | ||
19890 | #define G_MINFLOAT FLT_MIN | |
19891 | #define G_MAXFLOAT FLT_MAX | |
19892 | #define G_MINDOUBLE DBL_MIN | |
19893 | #define G_MAXDOUBLE DBL_MAX | |
19894 | #define G_MINSHORT SHRT_MIN | |
19895 | #define G_MAXSHORT SHRT_MAX | |
19896 | #define G_MAXUSHORT USHRT_MAX | |
19897 | #define G_MININT INT_MIN | |
19898 | #define G_MAXINT INT_MAX | |
19899 | #define G_MAXUINT UINT_MAX | |
19900 | #define G_MINLONG LONG_MIN | |
19901 | #define G_MAXLONG LONG_MAX | |
19902 | #define G_MAXULONG ULONG_MAX | |
19903 | ||
19904 | typedef signed char gint8; | |
19905 | typedef unsigned char guint8; | |
19906 | typedef signed short gint16; | |
19907 | typedef unsigned short guint16; | |
19908 | #define G_GINT16_MODIFIER "h" | |
19909 | #define G_GINT16_FORMAT "hi" | |
19910 | #define G_GUINT16_FORMAT "hu" | |
19911 | typedef signed int gint32; | |
19912 | typedef unsigned int guint32; | |
19913 | #define G_GINT32_MODIFIER "" | |
19914 | #define G_GINT32_FORMAT "i" | |
19915 | #define G_GUINT32_FORMAT "u" | |
19916 | #define G_HAVE_GINT64 1 | |
19917 | ||
19918 | __extension__ typedef signed long long gint64; | |
19919 | __extension__ typedef unsigned long long guint64; | |
19920 | ||
19921 | #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val ##LL)) | |
19922 | #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val ##ULL)) | |
19923 | #define G_GINT64_MODIFIER "ll" | |
19924 | #define G_GINT64_FORMAT "lli" | |
19925 | #define G_GUINT64_FORMAT "llu" | |
19926 | ||
19927 | #define GLIB_SIZEOF_VOID_P 4 | |
19928 | #define GLIB_SIZEOF_LONG 4 | |
19929 | #define GLIB_SIZEOF_SIZE_T 4 | |
19930 | ||
19931 | typedef signed int gssize; | |
19932 | typedef unsigned int gsize; | |
19933 | #define G_GSIZE_MODIFIER "" | |
19934 | #define G_GSSIZE_FORMAT "i" | |
19935 | #define G_GSIZE_FORMAT "u" | |
19936 | ||
19937 | #define G_MAXSIZE G_MAXUINT | |
19938 | ||
19939 | #define GPOINTER_TO_INT(p) ((gint) (p)) | |
19940 | #define GPOINTER_TO_UINT(p) ((guint) (p)) | |
19941 | ||
19942 | #define GINT_TO_POINTER(i) ((gpointer) (i)) | |
19943 | #define GUINT_TO_POINTER(u) ((gpointer) (u)) | |
19944 | ||
19945 | ||
19946 | ||
19947 | ||
19948 | #define g_ATEXIT(proc) (atexit (proc)) | |
19949 | ||
19950 | ||
19951 | #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END | |
19952 | ||
19953 | #define GLIB_MAJOR_VERSION 2 | |
19954 | #define GLIB_MINOR_VERSION 10 | |
19955 | #define GLIB_MICRO_VERSION 3 | |
19956 | ||
19957 | #define G_OS_UNIX | |
19958 | ||
19959 | #define G_VA_COPY va_copy | |
19960 | ||
19961 | ||
19962 | ||
19963 | ||
19964 | #define G_HAVE_INLINE 1 | |
19965 | #define G_HAVE___INLINE 1 | |
19966 | #define G_HAVE___INLINE__ 1 | |
19967 | ||
19968 | ||
19969 | ||
19970 | ||
19971 | ||
19972 | #define G_CAN_INLINE 1 | |
19973 | ||
19974 | ||
19975 | ||
19976 | #define G_HAVE_ISO_VARARGS 1 | |
19977 | # 118 "/usr/lib/glib-2.0/include/glibconfig.h" | |
19978 | #define G_HAVE_GNUC_VARARGS 1 | |
19979 | #define G_HAVE_GROWING_STACK 0 | |
19980 | ||
19981 | #define G_HAVE_GNUC_VISIBILITY 1 | |
19982 | #define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) | |
19983 | ||
19984 | #define G_THREADS_ENABLED | |
19985 | #define G_THREADS_IMPL_POSIX | |
19986 | typedef struct _GStaticMutex GStaticMutex; | |
19987 | struct _GStaticMutex | |
19988 | { | |
19989 | struct _GMutex *runtime_mutex; | |
19990 | union { | |
19991 | char pad[24]; | |
19992 | double dummy_double; | |
19993 | void *dummy_pointer; | |
19994 | long dummy_long; | |
19995 | } static_mutex; | |
19996 | }; | |
19997 | #define G_STATIC_MUTEX_INIT { NULL, { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } } | |
19998 | #define g_static_mutex_get_mutex(mutex) (g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex))) | |
19999 | ||
20000 | ||
20001 | ||
20002 | ||
20003 | ||
20004 | ||
20005 | typedef union _GSystemThread GSystemThread; | |
20006 | union _GSystemThread | |
20007 | { | |
20008 | char data[4]; | |
20009 | double dummy_double; | |
20010 | void *dummy_pointer; | |
20011 | long dummy_long; | |
20012 | }; | |
20013 | ||
20014 | #define GINT16_TO_LE(val) ((gint16) (val)) | |
20015 | #define GUINT16_TO_LE(val) ((guint16) (val)) | |
20016 | #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) | |
20017 | #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) | |
20018 | #define GINT32_TO_LE(val) ((gint32) (val)) | |
20019 | #define GUINT32_TO_LE(val) ((guint32) (val)) | |
20020 | #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val)) | |
20021 | #define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val)) | |
20022 | #define GINT64_TO_LE(val) ((gint64) (val)) | |
20023 | #define GUINT64_TO_LE(val) ((guint64) (val)) | |
20024 | #define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val)) | |
20025 | #define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val)) | |
20026 | #define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val)) | |
20027 | #define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val)) | |
20028 | #define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val)) | |
20029 | #define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val)) | |
20030 | #define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val)) | |
20031 | #define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val)) | |
20032 | #define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val)) | |
20033 | #define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val)) | |
20034 | #define G_BYTE_ORDER G_LITTLE_ENDIAN | |
20035 | ||
20036 | #define GLIB_SYSDEF_POLLIN =1 | |
20037 | #define GLIB_SYSDEF_POLLOUT =4 | |
20038 | #define GLIB_SYSDEF_POLLPRI =2 | |
20039 | #define GLIB_SYSDEF_POLLHUP =16 | |
20040 | #define GLIB_SYSDEF_POLLERR =8 | |
20041 | #define GLIB_SYSDEF_POLLNVAL =32 | |
20042 | ||
20043 | #define G_MODULE_SUFFIX "so" | |
20044 | ||
20045 | typedef int GPid; | |
20046 | ||
20047 | ||
20048 | # 31 "/usr/include/glib-2.0/glib/gtypes.h" 2 | |
20049 | ||
20050 | ||
20051 | # 41 "/usr/include/glib-2.0/glib/gtypes.h" | |
20052 | typedef char gchar; | |
20053 | typedef short gshort; | |
20054 | typedef long glong; | |
20055 | typedef int gint; | |
20056 | typedef gint gboolean; | |
20057 | ||
20058 | typedef unsigned char guchar; | |
20059 | typedef unsigned short gushort; | |
20060 | typedef unsigned long gulong; | |
20061 | typedef unsigned int guint; | |
20062 | ||
20063 | typedef float gfloat; | |
20064 | typedef double gdouble; | |
20065 | ||
20066 | ||
20067 | #define G_MININT8 ((gint8) 0x80) | |
20068 | #define G_MAXINT8 ((gint8) 0x7f) | |
20069 | #define G_MAXUINT8 ((guint8) 0xff) | |
20070 | ||
20071 | #define G_MININT16 ((gint16) 0x8000) | |
20072 | #define G_MAXINT16 ((gint16) 0x7fff) | |
20073 | #define G_MAXUINT16 ((guint16) 0xffff) | |
20074 | ||
20075 | #define G_MININT32 ((gint32) 0x80000000) | |
20076 | #define G_MAXINT32 ((gint32) 0x7fffffff) | |
20077 | #define G_MAXUINT32 ((guint32) 0xffffffff) | |
20078 | ||
20079 | #define G_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000)) | |
20080 | #define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff) | |
20081 | #define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU) | |
20082 | ||
20083 | typedef void* gpointer; | |
20084 | typedef const void *gconstpointer; | |
20085 | ||
20086 | typedef gint (*GCompareFunc) (gconstpointer a, | |
20087 | gconstpointer b); | |
20088 | typedef gint (*GCompareDataFunc) (gconstpointer a, | |
20089 | gconstpointer b, | |
20090 | gpointer user_data); | |
20091 | typedef gboolean (*GEqualFunc) (gconstpointer a, | |
20092 | gconstpointer b); | |
20093 | typedef void (*GDestroyNotify) (gpointer data); | |
20094 | typedef void (*GFunc) (gpointer data, | |
20095 | gpointer user_data); | |
20096 | typedef guint (*GHashFunc) (gconstpointer key); | |
20097 | typedef void (*GHFunc) (gpointer key, | |
20098 | gpointer value, | |
20099 | gpointer user_data); | |
20100 | typedef void (*GFreeFunc) (gpointer data); | |
20101 | typedef const gchar * (*GTranslateFunc) (const gchar *str, | |
20102 | gpointer data); | |
20103 | ||
20104 | ||
20105 | ||
20106 | ||
20107 | ||
20108 | #define G_E 2.7182818284590452353602874713526624977572470937000 | |
20109 | #define G_LN2 0.69314718055994530941723212145817656807550013436026 | |
20110 | #define G_LN10 2.3025850929940456840179914546843642076011014886288 | |
20111 | #define G_PI 3.1415926535897932384626433832795028841971693993751 | |
20112 | #define G_PI_2 1.5707963267948966192313216916397514420985846996876 | |
20113 | #define G_PI_4 0.78539816339744830961566084581987572104929234984378 | |
20114 | #define G_SQRT2 1.4142135623730950488016887242096980785696718753769 | |
20115 | ||
20116 | ||
20117 | ||
20118 | ||
20119 | ||
20120 | ||
20121 | #define G_LITTLE_ENDIAN 1234 | |
20122 | #define G_BIG_ENDIAN 4321 | |
20123 | #define G_PDP_ENDIAN 3412 | |
20124 | ||
20125 | ||
20126 | ||
20127 | ||
20128 | #define GUINT16_SWAP_LE_BE_CONSTANT(val) ((guint16) ( (guint16) ((guint16) (val) >> 8) | (guint16) ((guint16) (val) << 8))) | |
20129 | ||
20130 | ||
20131 | ||
20132 | #define GUINT32_SWAP_LE_BE_CONSTANT(val) ((guint32) ( (((guint32) (val) & (guint32) 0x000000ffU) << 24) | (((guint32) (val) & (guint32) 0x0000ff00U) << 8) | (((guint32) (val) & (guint32) 0x00ff0000U) >> 8) | (((guint32) (val) & (guint32) 0xff000000U) >> 24))) | |
20133 | ||
20134 | ||
20135 | ||
20136 | ||
20137 | ||
20138 | #define GUINT64_SWAP_LE_BE_CONSTANT(val) ((guint64) ( (((guint64) (val) & (guint64) G_GINT64_CONSTANT (0x00000000000000ffU)) << 56) | (((guint64) (val) & (guint64) G_GINT64_CONSTANT (0x000000000000ff00U)) << 40) | (((guint64) (val) & (guint64) G_GINT64_CONSTANT (0x0000000000ff0000U)) << 24) | (((guint64) (val) & (guint64) G_GINT64_CONSTANT (0x00000000ff000000U)) << 8) | (((guint64) (val) & (guint64) G_GINT64_CONSTANT (0x000000ff00000000U)) >> 8) | (((guint64) (val) & (guint64) G_GINT64_CONSTANT (0x0000ff0000000000U)) >> 24) | (((guint64) (val) & (guint64) G_GINT64_CONSTANT (0x00ff000000000000U)) >> 40) | (((guint64) (val) & (guint64) G_GINT64_CONSTANT (0xff00000000000000U)) >> 56))) | |
20139 | # 149 "/usr/include/glib-2.0/glib/gtypes.h" | |
20140 | #define GUINT16_SWAP_LE_BE_IA32(val) (__extension__ ({ register guint16 __v, __x = ((guint16) (val)); if (__builtin_constant_p (__x)) __v = GUINT16_SWAP_LE_BE_CONSTANT (__x); else __asm__ ("rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) | |
20141 | # 163 "/usr/include/glib-2.0/glib/gtypes.h" | |
20142 | #define GUINT32_SWAP_LE_BE_IA32(val) (__extension__ ({ register guint32 __v, __x = ((guint32) (val)); if (__builtin_constant_p (__x)) __v = GUINT32_SWAP_LE_BE_CONSTANT (__x); else __asm__ ("rorw $8, %w0\n\t" "rorl $16, %0\n\t" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) | |
20143 | # 188 "/usr/include/glib-2.0/glib/gtypes.h" | |
20144 | #define GUINT64_SWAP_LE_BE_IA32(val) (__extension__ ({ union { guint64 __ll; guint32 __l[2]; } __w, __r; __w.__ll = ((guint64) (val)); if (__builtin_constant_p (__w.__ll)) __r.__ll = GUINT64_SWAP_LE_BE_CONSTANT (__w.__ll); else { __r.__l[0] = GUINT32_SWAP_LE_BE (__w.__l[1]); __r.__l[1] = GUINT32_SWAP_LE_BE (__w.__l[0]); } __r.__ll; })) | |
20145 | # 202 "/usr/include/glib-2.0/glib/gtypes.h" | |
20146 | #define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_IA32 (val)) | |
20147 | #define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_IA32 (val)) | |
20148 | #define GUINT64_SWAP_LE_BE(val) (GUINT64_SWAP_LE_BE_IA32 (val)) | |
20149 | # 277 "/usr/include/glib-2.0/glib/gtypes.h" | |
20150 | #define GUINT16_SWAP_LE_PDP(val) ((guint16) (val)) | |
20151 | #define GUINT16_SWAP_BE_PDP(val) (GUINT16_SWAP_LE_BE (val)) | |
20152 | #define GUINT32_SWAP_LE_PDP(val) ((guint32) ( (((guint32) (val) & (guint32) 0x0000ffffU) << 16) | (((guint32) (val) & (guint32) 0xffff0000U) >> 16))) | |
20153 | ||
20154 | ||
20155 | #define GUINT32_SWAP_BE_PDP(val) ((guint32) ( (((guint32) (val) & (guint32) 0x00ff00ffU) << 8) | (((guint32) (val) & (guint32) 0xff00ff00U) >> 8))) | |
20156 | ||
20157 | ||
20158 | ||
20159 | ||
20160 | ||
20161 | ||
20162 | #define GINT16_FROM_LE(val) (GINT16_TO_LE (val)) | |
20163 | #define GUINT16_FROM_LE(val) (GUINT16_TO_LE (val)) | |
20164 | #define GINT16_FROM_BE(val) (GINT16_TO_BE (val)) | |
20165 | #define GUINT16_FROM_BE(val) (GUINT16_TO_BE (val)) | |
20166 | #define GINT32_FROM_LE(val) (GINT32_TO_LE (val)) | |
20167 | #define GUINT32_FROM_LE(val) (GUINT32_TO_LE (val)) | |
20168 | #define GINT32_FROM_BE(val) (GINT32_TO_BE (val)) | |
20169 | #define GUINT32_FROM_BE(val) (GUINT32_TO_BE (val)) | |
20170 | ||
20171 | #define GINT64_FROM_LE(val) (GINT64_TO_LE (val)) | |
20172 | #define GUINT64_FROM_LE(val) (GUINT64_TO_LE (val)) | |
20173 | #define GINT64_FROM_BE(val) (GINT64_TO_BE (val)) | |
20174 | #define GUINT64_FROM_BE(val) (GUINT64_TO_BE (val)) | |
20175 | ||
20176 | #define GLONG_FROM_LE(val) (GLONG_TO_LE (val)) | |
20177 | #define GULONG_FROM_LE(val) (GULONG_TO_LE (val)) | |
20178 | #define GLONG_FROM_BE(val) (GLONG_TO_BE (val)) | |
20179 | #define GULONG_FROM_BE(val) (GULONG_TO_BE (val)) | |
20180 | ||
20181 | #define GINT_FROM_LE(val) (GINT_TO_LE (val)) | |
20182 | #define GUINT_FROM_LE(val) (GUINT_TO_LE (val)) | |
20183 | #define GINT_FROM_BE(val) (GINT_TO_BE (val)) | |
20184 | #define GUINT_FROM_BE(val) (GUINT_TO_BE (val)) | |
20185 | ||
20186 | ||
20187 | ||
20188 | ||
20189 | #define g_ntohl(val) (GUINT32_FROM_BE (val)) | |
20190 | #define g_ntohs(val) (GUINT16_FROM_BE (val)) | |
20191 | #define g_htonl(val) (GUINT32_TO_BE (val)) | |
20192 | #define g_htons(val) (GUINT16_TO_BE (val)) | |
20193 | # 338 "/usr/include/glib-2.0/glib/gtypes.h" | |
20194 | typedef union _GDoubleIEEE754 GDoubleIEEE754; | |
20195 | typedef union _GFloatIEEE754 GFloatIEEE754; | |
20196 | #define G_IEEE754_FLOAT_BIAS (127) | |
20197 | #define G_IEEE754_DOUBLE_BIAS (1023) | |
20198 | ||
20199 | #define G_LOG_2_BASE_10 (0.30102999566398119521) | |
20200 | ||
20201 | union _GFloatIEEE754 | |
20202 | { | |
20203 | gfloat v_float; | |
20204 | struct { | |
20205 | guint mantissa : 23; | |
20206 | guint biased_exponent : 8; | |
20207 | guint sign : 1; | |
20208 | } mpn; | |
20209 | }; | |
20210 | union _GDoubleIEEE754 | |
20211 | { | |
20212 | gdouble v_double; | |
20213 | struct { | |
20214 | guint mantissa_low : 32; | |
20215 | guint mantissa_high : 20; | |
20216 | guint biased_exponent : 11; | |
20217 | guint sign : 1; | |
20218 | } mpn; | |
20219 | }; | |
20220 | # 388 "/usr/include/glib-2.0/glib/gtypes.h" | |
20221 | typedef struct _GTimeVal GTimeVal; | |
20222 | ||
20223 | struct _GTimeVal | |
20224 | { | |
20225 | glong tv_sec; | |
20226 | glong tv_usec; | |
20227 | }; | |
20228 | ||
20229 | ||
20230 | # 417 "/usr/include/glib-2.0/glib/gtypes.h" | |
20231 | #define GLIB_VAR extern | |
20232 | # 31 "/usr/include/glib-2.0/glib/galloca.h" 2 | |
20233 | ||
20234 | ||
20235 | ||
20236 | #undef alloca | |
20237 | #define alloca(size) __builtin_alloca (size) | |
20238 | # 56 "/usr/include/glib-2.0/glib/galloca.h" | |
20239 | #define g_alloca(size) alloca (size) | |
20240 | #define g_newa(struct_type,n_structs) ((struct_type*) g_alloca (sizeof (struct_type) * (gsize) (n_structs))) | |
20241 | # 31 "/usr/include/glib-2.0/glib.h" 2 | |
20242 | # 1 "/usr/include/glib-2.0/glib/garray.h" 1 | |
20243 | # 28 "/usr/include/glib-2.0/glib/garray.h" | |
20244 | #define __G_ARRAY_H__ | |
20245 | ||
20246 | ||
20247 | ||
20248 | ||
20249 | ||
20250 | typedef struct _GArray GArray; | |
20251 | typedef struct _GByteArray GByteArray; | |
20252 | typedef struct _GPtrArray GPtrArray; | |
20253 | ||
20254 | struct _GArray | |
20255 | { | |
20256 | gchar *data; | |
20257 | guint len; | |
20258 | }; | |
20259 | ||
20260 | struct _GByteArray | |
20261 | { | |
20262 | guint8 *data; | |
20263 | guint len; | |
20264 | }; | |
20265 | ||
20266 | struct _GPtrArray | |
20267 | { | |
20268 | gpointer *pdata; | |
20269 | guint len; | |
20270 | }; | |
20271 | ||
20272 | ||
20273 | ||
20274 | ||
20275 | ||
20276 | ||
20277 | #define g_array_append_val(a,v) g_array_append_vals (a, &(v), 1) | |
20278 | #define g_array_prepend_val(a,v) g_array_prepend_vals (a, &(v), 1) | |
20279 | #define g_array_insert_val(a,i,v) g_array_insert_vals (a, i, &(v), 1) | |
20280 | #define g_array_index(a,t,i) (((t*) (a)->data) [(i)]) | |
20281 | ||
20282 | GArray* g_array_new (gboolean zero_terminated, | |
20283 | gboolean clear_, | |
20284 | guint element_size); | |
20285 | GArray* g_array_sized_new (gboolean zero_terminated, | |
20286 | gboolean clear_, | |
20287 | guint element_size, | |
20288 | guint reserved_size); | |
20289 | gchar* g_array_free (GArray *array, | |
20290 | gboolean free_segment); | |
20291 | GArray* g_array_append_vals (GArray *array, | |
20292 | gconstpointer data, | |
20293 | guint len); | |
20294 | GArray* g_array_prepend_vals (GArray *array, | |
20295 | gconstpointer data, | |
20296 | guint len); | |
20297 | GArray* g_array_insert_vals (GArray *array, | |
20298 | guint index_, | |
20299 | gconstpointer data, | |
20300 | guint len); | |
20301 | GArray* g_array_set_size (GArray *array, | |
20302 | guint length); | |
20303 | GArray* g_array_remove_index (GArray *array, | |
20304 | guint index_); | |
20305 | GArray* g_array_remove_index_fast (GArray *array, | |
20306 | guint index_); | |
20307 | GArray* g_array_remove_range (GArray *array, | |
20308 | guint index_, | |
20309 | guint length); | |
20310 | void g_array_sort (GArray *array, | |
20311 | GCompareFunc compare_func); | |
20312 | void g_array_sort_with_data (GArray *array, | |
20313 | GCompareDataFunc compare_func, | |
20314 | gpointer user_data); | |
20315 | ||
20316 | ||
20317 | ||
20318 | ||
20319 | ||
20320 | #define g_ptr_array_index(array,index_) ((array)->pdata)[index_] | |
20321 | GPtrArray* g_ptr_array_new (void); | |
20322 | GPtrArray* g_ptr_array_sized_new (guint reserved_size); | |
20323 | gpointer* g_ptr_array_free (GPtrArray *array, | |
20324 | gboolean free_seg); | |
20325 | void g_ptr_array_set_size (GPtrArray *array, | |
20326 | gint length); | |
20327 | gpointer g_ptr_array_remove_index (GPtrArray *array, | |
20328 | guint index_); | |
20329 | gpointer g_ptr_array_remove_index_fast (GPtrArray *array, | |
20330 | guint index_); | |
20331 | gboolean g_ptr_array_remove (GPtrArray *array, | |
20332 | gpointer data); | |
20333 | gboolean g_ptr_array_remove_fast (GPtrArray *array, | |
20334 | gpointer data); | |
20335 | void g_ptr_array_remove_range (GPtrArray *array, | |
20336 | guint index_, | |
20337 | guint length); | |
20338 | void g_ptr_array_add (GPtrArray *array, | |
20339 | gpointer data); | |
20340 | void g_ptr_array_sort (GPtrArray *array, | |
20341 | GCompareFunc compare_func); | |
20342 | void g_ptr_array_sort_with_data (GPtrArray *array, | |
20343 | GCompareDataFunc compare_func, | |
20344 | gpointer user_data); | |
20345 | void g_ptr_array_foreach (GPtrArray *array, | |
20346 | GFunc func, | |
20347 | gpointer user_data); | |
20348 | ||
20349 | ||
20350 | ||
20351 | ||
20352 | ||
20353 | ||
20354 | GByteArray* g_byte_array_new (void); | |
20355 | GByteArray* g_byte_array_sized_new (guint reserved_size); | |
20356 | guint8* g_byte_array_free (GByteArray *array, | |
20357 | gboolean free_segment); | |
20358 | GByteArray* g_byte_array_append (GByteArray *array, | |
20359 | const guint8 *data, | |
20360 | guint len); | |
20361 | GByteArray* g_byte_array_prepend (GByteArray *array, | |
20362 | const guint8 *data, | |
20363 | guint len); | |
20364 | GByteArray* g_byte_array_set_size (GByteArray *array, | |
20365 | guint length); | |
20366 | GByteArray* g_byte_array_remove_index (GByteArray *array, | |
20367 | guint index_); | |
20368 | GByteArray* g_byte_array_remove_index_fast (GByteArray *array, | |
20369 | guint index_); | |
20370 | GByteArray* g_byte_array_remove_range (GByteArray *array, | |
20371 | guint index_, | |
20372 | guint length); | |
20373 | void g_byte_array_sort (GByteArray *array, | |
20374 | GCompareFunc compare_func); | |
20375 | void g_byte_array_sort_with_data (GByteArray *array, | |
20376 | GCompareDataFunc compare_func, | |
20377 | gpointer user_data); | |
20378 | ||
20379 | ||
20380 | ||
20381 | # 32 "/usr/include/glib-2.0/glib.h" 2 | |
20382 | # 1 "/usr/include/glib-2.0/glib/gasyncqueue.h" 1 | |
20383 | # 28 "/usr/include/glib-2.0/glib/gasyncqueue.h" | |
20384 | #define __G_ASYNCQUEUE_H__ | |
20385 | ||
20386 | # 1 "/usr/include/glib-2.0/glib/gthread.h" 1 | |
20387 | # 28 "/usr/include/glib-2.0/glib/gthread.h" | |
20388 | #define __G_THREAD_H__ | |
20389 | ||
20390 | # 1 "/usr/include/glib-2.0/glib/gerror.h" 1 | |
20391 | # 22 "/usr/include/glib-2.0/glib/gerror.h" | |
20392 | #define __G_ERROR_H__ | |
20393 | ||
20394 | # 1 "/usr/include/glib-2.0/glib/gquark.h" 1 | |
20395 | # 28 "/usr/include/glib-2.0/glib/gquark.h" | |
20396 | #define __G_QUARK_H__ | |
20397 | ||
20398 | ||
20399 | ||
20400 | ||
20401 | ||
20402 | typedef guint32 GQuark; | |
20403 | ||
20404 | ||
20405 | ||
20406 | GQuark g_quark_try_string (const gchar *string); | |
20407 | GQuark g_quark_from_static_string (const gchar *string); | |
20408 | GQuark g_quark_from_string (const gchar *string); | |
20409 | const gchar* g_quark_to_string (GQuark quark) __attribute__((__const__)); | |
20410 | ||
20411 | const gchar* g_intern_string (const gchar *string); | |
20412 | const gchar* g_intern_static_string (const gchar *string); | |
20413 | ||
20414 | ||
20415 | ||
20416 | # 25 "/usr/include/glib-2.0/glib/gerror.h" 2 | |
20417 | ||
20418 | ||
20419 | ||
20420 | typedef struct _GError GError; | |
20421 | ||
20422 | struct _GError | |
20423 | { | |
20424 | GQuark domain; | |
20425 | gint code; | |
20426 | gchar *message; | |
20427 | }; | |
20428 | ||
20429 | GError* g_error_new (GQuark domain, | |
20430 | gint code, | |
20431 | const gchar *format, | |
20432 | ...) __attribute__((__format__ (__printf__, 3, 4))); | |
20433 | ||
20434 | GError* g_error_new_literal (GQuark domain, | |
20435 | gint code, | |
20436 | const gchar *message); | |
20437 | ||
20438 | void g_error_free (GError *error); | |
20439 | GError* g_error_copy (const GError *error); | |
20440 | ||
20441 | gboolean g_error_matches (const GError *error, | |
20442 | GQuark domain, | |
20443 | gint code); | |
20444 | ||
20445 | ||
20446 | ||
20447 | ||
20448 | void g_set_error (GError **err, | |
20449 | GQuark domain, | |
20450 | gint code, | |
20451 | const gchar *format, | |
20452 | ...) __attribute__((__format__ (__printf__, 4, 5))); | |
20453 | ||
20454 | ||
20455 | ||
20456 | void g_propagate_error (GError **dest, | |
20457 | GError *src); | |
20458 | ||
20459 | ||
20460 | void g_clear_error (GError **err); | |
20461 | ||
20462 | ||
20463 | ||
20464 | # 31 "/usr/include/glib-2.0/glib/gthread.h" 2 | |
20465 | ||
20466 | # 1 "/usr/include/glib-2.0/glib/gatomic.h" 1 | |
20467 | # 31 "/usr/include/glib-2.0/glib/gatomic.h" | |
20468 | #define __G_ATOMIC_H__ | |
20469 | ||
20470 | ||
20471 | ||
20472 | ||
20473 | ||
20474 | gint g_atomic_int_exchange_and_add (__volatile__ gint *atomic, | |
20475 | gint val); | |
20476 | void g_atomic_int_add (__volatile__ gint *atomic, | |
20477 | gint val); | |
20478 | gboolean g_atomic_int_compare_and_exchange (__volatile__ gint *atomic, | |
20479 | gint oldval, | |
20480 | gint newval); | |
20481 | gboolean g_atomic_pointer_compare_and_exchange (__volatile__ gpointer *atomic, | |
20482 | gpointer oldval, | |
20483 | gpointer newval); | |
20484 | ||
20485 | gint g_atomic_int_get (__volatile__ gint *atomic); | |
20486 | void g_atomic_int_set (__volatile__ gint *atomic, | |
20487 | gint newval); | |
20488 | gpointer g_atomic_pointer_get (__volatile__ gpointer *atomic); | |
20489 | void g_atomic_pointer_set (__volatile__ gpointer *atomic, | |
20490 | gpointer newval); | |
20491 | ||
20492 | ||
20493 | #define g_atomic_int_get(atomic) (*(atomic)) | |
20494 | #define g_atomic_int_set(atomic,newval) ((void) (*(atomic) = (newval))) | |
20495 | #define g_atomic_pointer_get(atomic) (*(atomic)) | |
20496 | #define g_atomic_pointer_set(atomic,newval) ((void) (*(atomic) = (newval))) | |
20497 | ||
20498 | ||
20499 | #define g_atomic_int_inc(atomic) (g_atomic_int_add ((atomic), 1)) | |
20500 | #define g_atomic_int_dec_and_test(atomic) (g_atomic_int_exchange_and_add ((atomic), -1) == 1) | |
20501 | ||
20502 | ||
20503 | ||
20504 | # 33 "/usr/include/glib-2.0/glib/gthread.h" 2 | |
20505 | ||
20506 | ||
20507 | ||
20508 | ||
20509 | ||
20510 | ||
20511 | extern GQuark g_thread_error_quark (void); | |
20512 | #define G_THREAD_ERROR g_thread_error_quark () | |
20513 | ||
20514 | typedef enum | |
20515 | { | |
20516 | G_THREAD_ERROR_AGAIN | |
20517 | } GThreadError; | |
20518 | ||
20519 | typedef gpointer (*GThreadFunc) (gpointer data); | |
20520 | ||
20521 | typedef enum | |
20522 | { | |
20523 | G_THREAD_PRIORITY_LOW, | |
20524 | G_THREAD_PRIORITY_NORMAL, | |
20525 | G_THREAD_PRIORITY_HIGH, | |
20526 | G_THREAD_PRIORITY_URGENT | |
20527 | } GThreadPriority; | |
20528 | ||
20529 | typedef struct _GThread GThread; | |
20530 | struct _GThread | |
20531 | { | |
20532 | ||
20533 | GThreadFunc func; | |
20534 | gpointer data; | |
20535 | gboolean joinable; | |
20536 | GThreadPriority priority; | |
20537 | }; | |
20538 | ||
20539 | typedef struct _GMutex GMutex; | |
20540 | typedef struct _GCond GCond; | |
20541 | typedef struct _GPrivate GPrivate; | |
20542 | typedef struct _GStaticPrivate GStaticPrivate; | |
20543 | ||
20544 | typedef struct _GThreadFunctions GThreadFunctions; | |
20545 | struct _GThreadFunctions | |
20546 | { | |
20547 | GMutex* (*mutex_new) (void); | |
20548 | void (*mutex_lock) (GMutex *mutex); | |
20549 | gboolean (*mutex_trylock) (GMutex *mutex); | |
20550 | void (*mutex_unlock) (GMutex *mutex); | |
20551 | void (*mutex_free) (GMutex *mutex); | |
20552 | GCond* (*cond_new) (void); | |
20553 | void (*cond_signal) (GCond *cond); | |
20554 | void (*cond_broadcast) (GCond *cond); | |
20555 | void (*cond_wait) (GCond *cond, | |
20556 | GMutex *mutex); | |
20557 | gboolean (*cond_timed_wait) (GCond *cond, | |
20558 | GMutex *mutex, | |
20559 | GTimeVal *end_time); | |
20560 | void (*cond_free) (GCond *cond); | |
20561 | GPrivate* (*private_new) (GDestroyNotify destructor); | |
20562 | gpointer (*private_get) (GPrivate *private_key); | |
20563 | void (*private_set) (GPrivate *private_key, | |
20564 | gpointer data); | |
20565 | void (*thread_create) (GThreadFunc func, | |
20566 | gpointer data, | |
20567 | gulong stack_size, | |
20568 | gboolean joinable, | |
20569 | gboolean bound, | |
20570 | GThreadPriority priority, | |
20571 | gpointer thread, | |
20572 | GError **error); | |
20573 | void (*thread_yield) (void); | |
20574 | void (*thread_join) (gpointer thread); | |
20575 | void (*thread_exit) (void); | |
20576 | void (*thread_set_priority)(gpointer thread, | |
20577 | GThreadPriority priority); | |
20578 | void (*thread_self) (gpointer thread); | |
20579 | gboolean (*thread_equal) (gpointer thread1, | |
20580 | gpointer thread2); | |
20581 | }; | |
20582 | ||
20583 | extern GThreadFunctions g_thread_functions_for_glib_use; | |
20584 | extern gboolean g_thread_use_default_impl; | |
20585 | extern gboolean g_threads_got_initialized; | |
20586 | ||
20587 | ||
20588 | ||
20589 | ||
20590 | ||
20591 | void g_thread_init (GThreadFunctions *vtable); | |
20592 | # 128 "/usr/include/glib-2.0/glib/gthread.h" | |
20593 | void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable); | |
20594 | ||
20595 | ||
20596 | #define G_MUTEX_DEBUG_MAGIC 0xf8e18ad7 | |
20597 | ||
20598 | ||
20599 | ||
20600 | ||
20601 | ||
20602 | ||
20603 | GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex); | |
20604 | ||
20605 | #define g_static_mutex_get_mutex_impl_shortcut(mutex) (g_atomic_pointer_get ((gpointer*)(void*)mutex) ? *(mutex) : g_static_mutex_get_mutex_impl (mutex)) | |
20606 | ||
20607 | ||
20608 | ||
20609 | ||
20610 | ||
20611 | #define G_THREAD_UF(op,arglist) (*g_thread_functions_for_glib_use . op) arglist | |
20612 | ||
20613 | #define G_THREAD_CF(op,fail,arg) (g_thread_supported () ? G_THREAD_UF (op, arg) : (fail)) | |
20614 | ||
20615 | #define G_THREAD_ECF(op,fail,mutex,type) (g_thread_supported () ? ((type(*)(GMutex*, gulong, gchar*)) (*g_thread_functions_for_glib_use . op)) (mutex, G_MUTEX_DEBUG_MAGIC, G_STRLOC) : (fail)) | |
20616 | ||
20617 | ||
20618 | ||
20619 | ||
20620 | ||
20621 | #define g_mutex_lock(mutex) G_THREAD_CF (mutex_lock, (void)0, (mutex)) | |
20622 | ||
20623 | #define g_mutex_trylock(mutex) G_THREAD_CF (mutex_trylock, TRUE, (mutex)) | |
20624 | ||
20625 | #define g_mutex_unlock(mutex) G_THREAD_CF (mutex_unlock, (void)0, (mutex)) | |
20626 | ||
20627 | #define g_mutex_free(mutex) G_THREAD_CF (mutex_free, (void)0, (mutex)) | |
20628 | ||
20629 | #define g_cond_wait(cond,mutex) G_THREAD_CF (cond_wait, (void)0, (cond, mutex)) | |
20630 | ||
20631 | #define g_cond_timed_wait(cond,mutex,abs_time) G_THREAD_CF (cond_timed_wait, TRUE, (cond, mutex, abs_time)) | |
20632 | # 188 "/usr/include/glib-2.0/glib/gthread.h" | |
20633 | #define g_thread_supported() (g_threads_got_initialized) | |
20634 | #define g_mutex_new() G_THREAD_UF (mutex_new, ()) | |
20635 | #define g_cond_new() G_THREAD_UF (cond_new, ()) | |
20636 | #define g_cond_signal(cond) G_THREAD_CF (cond_signal, (void)0, (cond)) | |
20637 | #define g_cond_broadcast(cond) G_THREAD_CF (cond_broadcast, (void)0, (cond)) | |
20638 | #define g_cond_free(cond) G_THREAD_CF (cond_free, (void)0, (cond)) | |
20639 | #define g_private_new(destructor) G_THREAD_UF (private_new, (destructor)) | |
20640 | #define g_private_get(private_key) G_THREAD_CF (private_get, ((gpointer)private_key), (private_key)) | |
20641 | ||
20642 | ||
20643 | #define g_private_set(private_key,value) G_THREAD_CF (private_set, (void) (private_key = (GPrivate*) (value)), (private_key, value)) | |
20644 | ||
20645 | ||
20646 | ||
20647 | #define g_thread_yield() G_THREAD_CF (thread_yield, (void)0, ()) | |
20648 | ||
20649 | #define g_thread_create(func,data,joinable,error) (g_thread_create_full (func, data, 0, joinable, FALSE, G_THREAD_PRIORITY_NORMAL, error)) | |
20650 | ||
20651 | ||
20652 | ||
20653 | GThread* g_thread_create_full (GThreadFunc func, | |
20654 | gpointer data, | |
20655 | gulong stack_size, | |
20656 | gboolean joinable, | |
20657 | gboolean bound, | |
20658 | GThreadPriority priority, | |
20659 | GError **error); | |
20660 | GThread* g_thread_self (void); | |
20661 | void g_thread_exit (gpointer retval); | |
20662 | gpointer g_thread_join (GThread *thread); | |
20663 | ||
20664 | void g_thread_set_priority (GThread *thread, | |
20665 | GThreadPriority priority); | |
20666 | ||
20667 | ||
20668 | ||
20669 | ||
20670 | ||
20671 | ||
20672 | #define g_static_mutex_lock(mutex) g_mutex_lock (g_static_mutex_get_mutex (mutex)) | |
20673 | ||
20674 | #define g_static_mutex_trylock(mutex) g_mutex_trylock (g_static_mutex_get_mutex (mutex)) | |
20675 | ||
20676 | #define g_static_mutex_unlock(mutex) g_mutex_unlock (g_static_mutex_get_mutex (mutex)) | |
20677 | ||
20678 | void g_static_mutex_init (GStaticMutex *mutex); | |
20679 | void g_static_mutex_free (GStaticMutex *mutex); | |
20680 | ||
20681 | struct _GStaticPrivate | |
20682 | { | |
20683 | ||
20684 | guint index; | |
20685 | }; | |
20686 | #define G_STATIC_PRIVATE_INIT { 0 } | |
20687 | void g_static_private_init (GStaticPrivate *private_key); | |
20688 | gpointer g_static_private_get (GStaticPrivate *private_key); | |
20689 | void g_static_private_set (GStaticPrivate *private_key, | |
20690 | gpointer data, | |
20691 | GDestroyNotify notify); | |
20692 | void g_static_private_free (GStaticPrivate *private_key); | |
20693 | ||
20694 | typedef struct _GStaticRecMutex GStaticRecMutex; | |
20695 | struct _GStaticRecMutex | |
20696 | { | |
20697 | ||
20698 | GStaticMutex mutex; | |
20699 | guint depth; | |
20700 | GSystemThread owner; | |
20701 | }; | |
20702 | ||
20703 | #define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT } | |
20704 | void g_static_rec_mutex_init (GStaticRecMutex *mutex); | |
20705 | void g_static_rec_mutex_lock (GStaticRecMutex *mutex); | |
20706 | gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex); | |
20707 | void g_static_rec_mutex_unlock (GStaticRecMutex *mutex); | |
20708 | void g_static_rec_mutex_lock_full (GStaticRecMutex *mutex, | |
20709 | guint depth); | |
20710 | guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex); | |
20711 | void g_static_rec_mutex_free (GStaticRecMutex *mutex); | |
20712 | ||
20713 | typedef struct _GStaticRWLock GStaticRWLock; | |
20714 | struct _GStaticRWLock | |
20715 | { | |
20716 | ||
20717 | GStaticMutex mutex; | |
20718 | GCond *read_cond; | |
20719 | GCond *write_cond; | |
20720 | guint read_counter; | |
20721 | gboolean have_writer; | |
20722 | guint want_to_read; | |
20723 | guint want_to_write; | |
20724 | }; | |
20725 | ||
20726 | #define G_STATIC_RW_LOCK_INIT { G_STATIC_MUTEX_INIT, NULL, NULL, 0, FALSE, 0, 0 } | |
20727 | ||
20728 | void g_static_rw_lock_init (GStaticRWLock* lock); | |
20729 | void g_static_rw_lock_reader_lock (GStaticRWLock* lock); | |
20730 | gboolean g_static_rw_lock_reader_trylock (GStaticRWLock* lock); | |
20731 | void g_static_rw_lock_reader_unlock (GStaticRWLock* lock); | |
20732 | void g_static_rw_lock_writer_lock (GStaticRWLock* lock); | |
20733 | gboolean g_static_rw_lock_writer_trylock (GStaticRWLock* lock); | |
20734 | void g_static_rw_lock_writer_unlock (GStaticRWLock* lock); | |
20735 | void g_static_rw_lock_free (GStaticRWLock* lock); | |
20736 | ||
20737 | void g_thread_foreach (GFunc thread_func, | |
20738 | gpointer user_data); | |
20739 | ||
20740 | typedef enum | |
20741 | { | |
20742 | G_ONCE_STATUS_NOTCALLED, | |
20743 | G_ONCE_STATUS_PROGRESS, | |
20744 | G_ONCE_STATUS_READY | |
20745 | } GOnceStatus; | |
20746 | ||
20747 | typedef struct _GOnce GOnce; | |
20748 | struct _GOnce | |
20749 | { | |
20750 | __volatile__ GOnceStatus status; | |
20751 | __volatile__ gpointer retval; | |
20752 | }; | |
20753 | ||
20754 | #define G_ONCE_INIT { G_ONCE_STATUS_NOTCALLED, NULL } | |
20755 | ||
20756 | gpointer g_once_impl (GOnce *once, GThreadFunc func, gpointer arg); | |
20757 | ||
20758 | ||
20759 | ||
20760 | ||
20761 | #define g_once(once,func,arg) (((once)->status == G_ONCE_STATUS_READY) ? (once)->retval : g_once_impl ((once), (func), (arg))) | |
20762 | # 331 "/usr/include/glib-2.0/glib/gthread.h" | |
20763 | extern void glib_dummy_decl (void); | |
20764 | #define G_LOCK_NAME(name) g__ ## name ## _lock | |
20765 | ||
20766 | #define G_LOCK_DEFINE_STATIC(name) static G_LOCK_DEFINE (name) | |
20767 | #define G_LOCK_DEFINE(name) GStaticMutex G_LOCK_NAME (name) = G_STATIC_MUTEX_INIT | |
20768 | ||
20769 | #define G_LOCK_EXTERN(name) extern GStaticMutex G_LOCK_NAME (name) | |
20770 | # 360 "/usr/include/glib-2.0/glib/gthread.h" | |
20771 | #define G_LOCK(name) g_static_mutex_lock (&G_LOCK_NAME (name)) | |
20772 | #define G_UNLOCK(name) g_static_mutex_unlock (&G_LOCK_NAME (name)) | |
20773 | #define G_TRYLOCK(name) g_static_mutex_trylock (&G_LOCK_NAME (name)) | |
20774 | # 374 "/usr/include/glib-2.0/glib/gthread.h" | |
20775 | ||
20776 | # 31 "/usr/include/glib-2.0/glib/gasyncqueue.h" 2 | |
20777 | ||
20778 | ||
20779 | ||
20780 | typedef struct _GAsyncQueue GAsyncQueue; | |
20781 | ||
20782 | ||
20783 | ||
20784 | ||
20785 | GAsyncQueue* g_async_queue_new (void); | |
20786 | ||
20787 | ||
20788 | ||
20789 | ||
20790 | ||
20791 | void g_async_queue_lock (GAsyncQueue *queue); | |
20792 | void g_async_queue_unlock (GAsyncQueue *queue); | |
20793 | ||
20794 | ||
20795 | GAsyncQueue* g_async_queue_ref (GAsyncQueue *queue); | |
20796 | void g_async_queue_unref (GAsyncQueue *queue); | |
20797 | ||
20798 | ||
20799 | ||
20800 | void g_async_queue_ref_unlocked (GAsyncQueue *queue); | |
20801 | void g_async_queue_unref_and_unlock (GAsyncQueue *queue); | |
20802 | ||
20803 | ||
20804 | ||
20805 | void g_async_queue_push (GAsyncQueue *queue, | |
20806 | gpointer data); | |
20807 | void g_async_queue_push_unlocked (GAsyncQueue *queue, | |
20808 | gpointer data); | |
20809 | ||
20810 | void g_async_queue_push_sorted (GAsyncQueue *queue, | |
20811 | gpointer data, | |
20812 | GCompareDataFunc func, | |
20813 | gpointer user_data); | |
20814 | void g_async_queue_push_sorted_unlocked (GAsyncQueue *queue, | |
20815 | gpointer data, | |
20816 | GCompareDataFunc func, | |
20817 | gpointer user_data); | |
20818 | ||
20819 | ||
20820 | ||
20821 | ||
20822 | gpointer g_async_queue_pop (GAsyncQueue *queue); | |
20823 | gpointer g_async_queue_pop_unlocked (GAsyncQueue *queue); | |
20824 | ||
20825 | ||
20826 | gpointer g_async_queue_try_pop (GAsyncQueue *queue); | |
20827 | gpointer g_async_queue_try_pop_unlocked (GAsyncQueue *queue); | |
20828 | ||
20829 | ||
20830 | ||
20831 | ||
20832 | ||
20833 | ||
20834 | gpointer g_async_queue_timed_pop (GAsyncQueue *queue, | |
20835 | GTimeVal *end_time); | |
20836 | gpointer g_async_queue_timed_pop_unlocked (GAsyncQueue *queue, | |
20837 | GTimeVal *end_time); | |
20838 | # 100 "/usr/include/glib-2.0/glib/gasyncqueue.h" | |
20839 | gint g_async_queue_length (GAsyncQueue *queue); | |
20840 | gint g_async_queue_length_unlocked (GAsyncQueue *queue); | |
20841 | void g_async_queue_sort (GAsyncQueue *queue, | |
20842 | GCompareDataFunc func, | |
20843 | gpointer user_data); | |
20844 | void g_async_queue_sort_unlocked (GAsyncQueue *queue, | |
20845 | GCompareDataFunc func, | |
20846 | gpointer user_data); | |
20847 | ||
20848 | ||
20849 | GMutex* _g_async_queue_get_mutex (GAsyncQueue *queue); | |
20850 | ||
20851 | ||
20852 | # 33 "/usr/include/glib-2.0/glib.h" 2 | |
20853 | ||
20854 | # 1 "/usr/include/glib-2.0/glib/gbacktrace.h" 1 | |
20855 | # 28 "/usr/include/glib-2.0/glib/gbacktrace.h" | |
20856 | #define __G_BACKTRACE_H__ | |
20857 | ||
20858 | ||
20859 | ||
20860 | ||
20861 | # 43 "/usr/include/glib-2.0/glib/gbacktrace.h" | |
20862 | void g_on_error_query (const gchar *prg_name); | |
20863 | void g_on_error_stack_trace (const gchar *prg_name); | |
20864 | ||
20865 | ||
20866 | ||
20867 | ||
20868 | ||
20869 | #define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("int $03"); }G_STMT_END | |
20870 | # 59 "/usr/include/glib-2.0/glib/gbacktrace.h" | |
20871 | ||
20872 | # 35 "/usr/include/glib-2.0/glib.h" 2 | |
20873 | # 1 "/usr/include/glib-2.0/glib/gcache.h" 1 | |
20874 | # 28 "/usr/include/glib-2.0/glib/gcache.h" | |
20875 | #define __G_CACHE_H__ | |
20876 | ||
20877 | # 1 "/usr/include/glib-2.0/glib/glist.h" 1 | |
20878 | # 28 "/usr/include/glib-2.0/glib/glist.h" | |
20879 | #define __G_LIST_H__ | |
20880 | ||
20881 | # 1 "/usr/include/glib-2.0/glib/gmem.h" 1 | |
20882 | # 28 "/usr/include/glib-2.0/glib/gmem.h" | |
20883 | #define __G_MEM_H__ | |
20884 | ||
20885 | # 1 "/usr/include/glib-2.0/glib/gslice.h" 1 | |
20886 | # 20 "/usr/include/glib-2.0/glib/gslice.h" | |
20887 | #define __G_SLICE_H__ | |
20888 | ||
20889 | ||
20890 | ||
20891 | ||
20892 | ||
20893 | ||
20894 | ||
20895 | ||
20896 | ||
20897 | ||
20898 | ||
20899 | gpointer g_slice_alloc (gsize block_size) __attribute__((__malloc__)); | |
20900 | gpointer g_slice_alloc0 (gsize block_size) __attribute__((__malloc__)); | |
20901 | void g_slice_free1 (gsize block_size, | |
20902 | gpointer mem_block); | |
20903 | void g_slice_free_chain_with_offset (gsize block_size, | |
20904 | gpointer mem_chain, | |
20905 | gsize next_offset); | |
20906 | #define g_slice_new(type) ((type*) g_slice_alloc (sizeof (type))) | |
20907 | #define g_slice_new0(type) ((type*) g_slice_alloc0 (sizeof (type))) | |
20908 | # 51 "/usr/include/glib-2.0/glib/gslice.h" | |
20909 | #define g_slice_free(type,mem) do { if (1) g_slice_free1 (sizeof (type), (mem)); else (void) ((type*) 0 == (mem)); } while (0) | |
20910 | ||
20911 | ||
20912 | ||
20913 | #define g_slice_free_chain(type,mem_chain,next) do { if (1) g_slice_free_chain_with_offset (sizeof (type), (mem_chain), G_STRUCT_OFFSET (type, next)); else (void) ((type*) 0 == (mem_chain)); } while (0) | |
20914 | ||
20915 | ||
20916 | ||
20917 | ||
20918 | ||
20919 | ||
20920 | ||
20921 | typedef enum { | |
20922 | G_SLICE_CONFIG_ALWAYS_MALLOC = 1, | |
20923 | G_SLICE_CONFIG_BYPASS_MAGAZINES, | |
20924 | G_SLICE_CONFIG_WORKING_SET_MSECS, | |
20925 | G_SLICE_CONFIG_COLOR_INCREMENT, | |
20926 | G_SLICE_CONFIG_CHUNK_SIZES, | |
20927 | G_SLICE_CONFIG_CONTENTION_COUNTER | |
20928 | } GSliceConfig; | |
20929 | void g_slice_set_config (GSliceConfig ckey, gint64 value); | |
20930 | gint64 g_slice_get_config (GSliceConfig ckey); | |
20931 | gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values); | |
20932 | ||
20933 | ||
20934 | # 31 "/usr/include/glib-2.0/glib/gmem.h" 2 | |
20935 | ||
20936 | ||
20937 | ||
20938 | ||
20939 | typedef struct _GMemVTable GMemVTable; | |
20940 | ||
20941 | ||
20942 | ||
20943 | ||
20944 | ||
20945 | #define G_MEM_ALIGN GLIB_SIZEOF_LONG | |
20946 | ||
20947 | ||
20948 | ||
20949 | ||
20950 | ||
20951 | gpointer g_malloc (gulong n_bytes) __attribute__((__malloc__)); | |
20952 | gpointer g_malloc0 (gulong n_bytes) __attribute__((__malloc__)); | |
20953 | gpointer g_realloc (gpointer mem, | |
20954 | gulong n_bytes) __attribute__((warn_unused_result)); | |
20955 | void g_free (gpointer mem); | |
20956 | gpointer g_try_malloc (gulong n_bytes) __attribute__((__malloc__)); | |
20957 | gpointer g_try_malloc0 (gulong n_bytes) __attribute__((__malloc__)); | |
20958 | gpointer g_try_realloc (gpointer mem, | |
20959 | gulong n_bytes) __attribute__((warn_unused_result)); | |
20960 | ||
20961 | ||
20962 | ||
20963 | ||
20964 | #define g_new(struct_type,n_structs) ((struct_type *) g_malloc (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) | |
20965 | ||
20966 | #define g_new0(struct_type,n_structs) ((struct_type *) g_malloc0 (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) | |
20967 | ||
20968 | #define g_renew(struct_type,mem,n_structs) ((struct_type *) g_realloc ((mem), ((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) | |
20969 | ||
20970 | ||
20971 | #define g_try_new(struct_type,n_structs) ((struct_type *) g_try_malloc (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) | |
20972 | ||
20973 | #define g_try_new0(struct_type,n_structs) ((struct_type *) g_try_malloc0 (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) | |
20974 | ||
20975 | #define g_try_renew(struct_type,mem,n_structs) ((struct_type *) g_try_realloc ((mem), ((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) | |
20976 | ||
20977 | ||
20978 | ||
20979 | ||
20980 | ||
20981 | ||
20982 | ||
20983 | struct _GMemVTable | |
20984 | { | |
20985 | gpointer (*malloc) (gsize n_bytes); | |
20986 | gpointer (*realloc) (gpointer mem, | |
20987 | gsize n_bytes); | |
20988 | void (*free) (gpointer mem); | |
20989 | ||
20990 | gpointer (*calloc) (gsize n_blocks, | |
20991 | gsize n_block_bytes); | |
20992 | gpointer (*try_malloc) (gsize n_bytes); | |
20993 | gpointer (*try_realloc) (gpointer mem, | |
20994 | gsize n_bytes); | |
20995 | }; | |
20996 | void g_mem_set_vtable (GMemVTable *vtable); | |
20997 | gboolean g_mem_is_system_malloc (void); | |
20998 | ||
20999 | extern gboolean g_mem_gc_friendly; | |
21000 | ||
21001 | ||
21002 | ||
21003 | extern GMemVTable *glib_mem_profiler_table; | |
21004 | void g_mem_profile (void); | |
21005 | ||
21006 | ||
21007 | ||
21008 | ||
21009 | typedef struct _GAllocator GAllocator; | |
21010 | typedef struct _GMemChunk GMemChunk; | |
21011 | #define g_mem_chunk_create(type,pre_alloc,alloc_type) ( g_mem_chunk_new (#type " mem chunks (" #pre_alloc ")", sizeof (type), sizeof (type) * (pre_alloc), (alloc_type)) ) | |
21012 | ||
21013 | ||
21014 | ||
21015 | ||
21016 | ||
21017 | #define g_chunk_new(type,chunk) ( (type *) g_mem_chunk_alloc (chunk) ) | |
21018 | ||
21019 | ||
21020 | #define g_chunk_new0(type,chunk) ( (type *) g_mem_chunk_alloc0 (chunk) ) | |
21021 | ||
21022 | ||
21023 | #define g_chunk_free(mem,mem_chunk) G_STMT_START { g_mem_chunk_free ((mem_chunk), (mem)); } G_STMT_END | |
21024 | ||
21025 | ||
21026 | #define G_ALLOC_ONLY 1 | |
21027 | #define G_ALLOC_AND_FREE 2 | |
21028 | GMemChunk* g_mem_chunk_new (const gchar *name, | |
21029 | gint atom_size, | |
21030 | gulong area_size, | |
21031 | gint type); | |
21032 | void g_mem_chunk_destroy (GMemChunk *mem_chunk); | |
21033 | gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk); | |
21034 | gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk); | |
21035 | void g_mem_chunk_free (GMemChunk *mem_chunk, | |
21036 | gpointer mem); | |
21037 | void g_mem_chunk_clean (GMemChunk *mem_chunk); | |
21038 | void g_mem_chunk_reset (GMemChunk *mem_chunk); | |
21039 | void g_mem_chunk_print (GMemChunk *mem_chunk); | |
21040 | void g_mem_chunk_info (void); | |
21041 | void g_blow_chunks (void); | |
21042 | GAllocator*g_allocator_new (const gchar *name, | |
21043 | guint n_preallocs); | |
21044 | void g_allocator_free (GAllocator *allocator); | |
21045 | #define G_ALLOCATOR_LIST (1) | |
21046 | #define G_ALLOCATOR_SLIST (2) | |
21047 | #define G_ALLOCATOR_NODE (3) | |
21048 | ||
21049 | ||
21050 | ||
21051 | # 31 "/usr/include/glib-2.0/glib/glist.h" 2 | |
21052 | ||
21053 | ||
21054 | ||
21055 | typedef struct _GList GList; | |
21056 | ||
21057 | struct _GList | |
21058 | { | |
21059 | gpointer data; | |
21060 | GList *next; | |
21061 | GList *prev; | |
21062 | }; | |
21063 | ||
21064 | ||
21065 | ||
21066 | GList* g_list_alloc (void) __attribute__((warn_unused_result)); | |
21067 | void g_list_free (GList *list); | |
21068 | void g_list_free_1 (GList *list); | |
21069 | #define g_list_free1 g_list_free_1 | |
21070 | GList* g_list_append (GList *list, | |
21071 | gpointer data) __attribute__((warn_unused_result)); | |
21072 | GList* g_list_prepend (GList *list, | |
21073 | gpointer data) __attribute__((warn_unused_result)); | |
21074 | GList* g_list_insert (GList *list, | |
21075 | gpointer data, | |
21076 | gint position) __attribute__((warn_unused_result)); | |
21077 | GList* g_list_insert_sorted (GList *list, | |
21078 | gpointer data, | |
21079 | GCompareFunc func) __attribute__((warn_unused_result)); | |
21080 | GList* g_list_insert_sorted_with_data (GList *list, | |
21081 | gpointer data, | |
21082 | GCompareDataFunc func, | |
21083 | gpointer user_data) __attribute__((warn_unused_result)); | |
21084 | GList* g_list_insert_before (GList *list, | |
21085 | GList *sibling, | |
21086 | gpointer data) __attribute__((warn_unused_result)); | |
21087 | GList* g_list_concat (GList *list1, | |
21088 | GList *list2) __attribute__((warn_unused_result)); | |
21089 | GList* g_list_remove (GList *list, | |
21090 | gconstpointer data) __attribute__((warn_unused_result)); | |
21091 | GList* g_list_remove_all (GList *list, | |
21092 | gconstpointer data) __attribute__((warn_unused_result)); | |
21093 | GList* g_list_remove_link (GList *list, | |
21094 | GList *llink) __attribute__((warn_unused_result)); | |
21095 | GList* g_list_delete_link (GList *list, | |
21096 | GList *link_) __attribute__((warn_unused_result)); | |
21097 | GList* g_list_reverse (GList *list) __attribute__((warn_unused_result)); | |
21098 | GList* g_list_copy (GList *list) __attribute__((warn_unused_result)); | |
21099 | GList* g_list_nth (GList *list, | |
21100 | guint n); | |
21101 | GList* g_list_nth_prev (GList *list, | |
21102 | guint n); | |
21103 | GList* g_list_find (GList *list, | |
21104 | gconstpointer data); | |
21105 | GList* g_list_find_custom (GList *list, | |
21106 | gconstpointer data, | |
21107 | GCompareFunc func); | |
21108 | gint g_list_position (GList *list, | |
21109 | GList *llink); | |
21110 | gint g_list_index (GList *list, | |
21111 | gconstpointer data); | |
21112 | GList* g_list_last (GList *list); | |
21113 | GList* g_list_first (GList *list); | |
21114 | guint g_list_length (GList *list); | |
21115 | void g_list_foreach (GList *list, | |
21116 | GFunc func, | |
21117 | gpointer user_data); | |
21118 | GList* g_list_sort (GList *list, | |
21119 | GCompareFunc compare_func) __attribute__((warn_unused_result)); | |
21120 | GList* g_list_sort_with_data (GList *list, | |
21121 | GCompareDataFunc compare_func, | |
21122 | gpointer user_data) __attribute__((warn_unused_result)); | |
21123 | gpointer g_list_nth_data (GList *list, | |
21124 | guint n); | |
21125 | ||
21126 | ||
21127 | #define g_list_previous(list) ((list) ? (((GList *)(list))->prev) : NULL) | |
21128 | #define g_list_next(list) ((list) ? (((GList *)(list))->next) : NULL) | |
21129 | ||
21130 | ||
21131 | void g_list_push_allocator (gpointer allocator); | |
21132 | void g_list_pop_allocator (void); | |
21133 | ||
21134 | ||
21135 | # 31 "/usr/include/glib-2.0/glib/gcache.h" 2 | |
21136 | ||
21137 | ||
21138 | ||
21139 | typedef struct _GCache GCache; | |
21140 | ||
21141 | typedef gpointer (*GCacheNewFunc) (gpointer key); | |
21142 | typedef gpointer (*GCacheDupFunc) (gpointer value); | |
21143 | typedef void (*GCacheDestroyFunc) (gpointer value); | |
21144 | ||
21145 | ||
21146 | ||
21147 | GCache* g_cache_new (GCacheNewFunc value_new_func, | |
21148 | GCacheDestroyFunc value_destroy_func, | |
21149 | GCacheDupFunc key_dup_func, | |
21150 | GCacheDestroyFunc key_destroy_func, | |
21151 | GHashFunc hash_key_func, | |
21152 | GHashFunc hash_value_func, | |
21153 | GEqualFunc key_equal_func); | |
21154 | void g_cache_destroy (GCache *cache); | |
21155 | gpointer g_cache_insert (GCache *cache, | |
21156 | gpointer key); | |
21157 | void g_cache_remove (GCache *cache, | |
21158 | gconstpointer value); | |
21159 | void g_cache_key_foreach (GCache *cache, | |
21160 | GHFunc func, | |
21161 | gpointer user_data); | |
21162 | ||
21163 | void g_cache_value_foreach (GCache *cache, | |
21164 | GHFunc func, | |
21165 | gpointer user_data); | |
21166 | ||
21167 | ||
21168 | ||
21169 | # 36 "/usr/include/glib-2.0/glib.h" 2 | |
21170 | # 1 "/usr/include/glib-2.0/glib/gcompletion.h" 1 | |
21171 | # 28 "/usr/include/glib-2.0/glib/gcompletion.h" | |
21172 | #define __G_COMPLETION_H__ | |
21173 | ||
21174 | ||
21175 | ||
21176 | ||
21177 | ||
21178 | typedef struct _GCompletion GCompletion; | |
21179 | ||
21180 | typedef gchar* (*GCompletionFunc) (gpointer); | |
21181 | ||
21182 | ||
21183 | ||
21184 | ||
21185 | typedef gint (*GCompletionStrncmpFunc) (const gchar *s1, | |
21186 | const gchar *s2, | |
21187 | gsize n); | |
21188 | ||
21189 | struct _GCompletion | |
21190 | { | |
21191 | GList* items; | |
21192 | GCompletionFunc func; | |
21193 | ||
21194 | gchar* prefix; | |
21195 | GList* cache; | |
21196 | GCompletionStrncmpFunc strncmp_func; | |
21197 | }; | |
21198 | ||
21199 | GCompletion* g_completion_new (GCompletionFunc func); | |
21200 | void g_completion_add_items (GCompletion* cmp, | |
21201 | GList* items); | |
21202 | void g_completion_remove_items (GCompletion* cmp, | |
21203 | GList* items); | |
21204 | void g_completion_clear_items (GCompletion* cmp); | |
21205 | GList* g_completion_complete (GCompletion* cmp, | |
21206 | const gchar* prefix, | |
21207 | gchar** new_prefix); | |
21208 | GList* g_completion_complete_utf8 (GCompletion *cmp, | |
21209 | const gchar* prefix, | |
21210 | gchar** new_prefix); | |
21211 | void g_completion_set_compare (GCompletion *cmp, | |
21212 | GCompletionStrncmpFunc strncmp_func); | |
21213 | void g_completion_free (GCompletion* cmp); | |
21214 | ||
21215 | ||
21216 | # 37 "/usr/include/glib-2.0/glib.h" 2 | |
21217 | # 1 "/usr/include/glib-2.0/glib/gconvert.h" 1 | |
21218 | # 28 "/usr/include/glib-2.0/glib/gconvert.h" | |
21219 | #define __G_CONVERT_H__ | |
21220 | ||
21221 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
21222 | # 31 "/usr/include/glib-2.0/glib/gconvert.h" 2 | |
21223 | ||
21224 | ||
21225 | ||
21226 | ||
21227 | typedef enum | |
21228 | { | |
21229 | G_CONVERT_ERROR_NO_CONVERSION, | |
21230 | G_CONVERT_ERROR_ILLEGAL_SEQUENCE, | |
21231 | G_CONVERT_ERROR_FAILED, | |
21232 | G_CONVERT_ERROR_PARTIAL_INPUT, | |
21233 | G_CONVERT_ERROR_BAD_URI, | |
21234 | G_CONVERT_ERROR_NOT_ABSOLUTE_PATH | |
21235 | } GConvertError; | |
21236 | ||
21237 | #define G_CONVERT_ERROR g_convert_error_quark() | |
21238 | GQuark g_convert_error_quark (void); | |
21239 | ||
21240 | ||
21241 | ||
21242 | typedef struct _GIConv *GIConv; | |
21243 | ||
21244 | GIConv g_iconv_open (const gchar *to_codeset, | |
21245 | const gchar *from_codeset); | |
21246 | size_t g_iconv (GIConv converter, | |
21247 | gchar **inbuf, | |
21248 | gsize *inbytes_left, | |
21249 | gchar **outbuf, | |
21250 | gsize *outbytes_left); | |
21251 | gint g_iconv_close (GIConv converter); | |
21252 | ||
21253 | ||
21254 | gchar* g_convert (const gchar *str, | |
21255 | gssize len, | |
21256 | const gchar *to_codeset, | |
21257 | const gchar *from_codeset, | |
21258 | gsize *bytes_read, | |
21259 | gsize *bytes_written, | |
21260 | GError **error) __attribute__((__malloc__)); | |
21261 | gchar* g_convert_with_iconv (const gchar *str, | |
21262 | gssize len, | |
21263 | GIConv converter, | |
21264 | gsize *bytes_read, | |
21265 | gsize *bytes_written, | |
21266 | GError **error) __attribute__((__malloc__)); | |
21267 | gchar* g_convert_with_fallback (const gchar *str, | |
21268 | gssize len, | |
21269 | const gchar *to_codeset, | |
21270 | const gchar *from_codeset, | |
21271 | gchar *fallback, | |
21272 | gsize *bytes_read, | |
21273 | gsize *bytes_written, | |
21274 | GError **error) __attribute__((__malloc__)); | |
21275 | ||
21276 | ||
21277 | ||
21278 | ||
21279 | gchar* g_locale_to_utf8 (const gchar *opsysstring, | |
21280 | gssize len, | |
21281 | gsize *bytes_read, | |
21282 | gsize *bytes_written, | |
21283 | GError **error) __attribute__((__malloc__)); | |
21284 | gchar* g_locale_from_utf8 (const gchar *utf8string, | |
21285 | gssize len, | |
21286 | gsize *bytes_read, | |
21287 | gsize *bytes_written, | |
21288 | GError **error) __attribute__((__malloc__)); | |
21289 | # 108 "/usr/include/glib-2.0/glib/gconvert.h" | |
21290 | gchar* g_filename_to_utf8 (const gchar *opsysstring, | |
21291 | gssize len, | |
21292 | gsize *bytes_read, | |
21293 | gsize *bytes_written, | |
21294 | GError **error) __attribute__((__malloc__)); | |
21295 | gchar* g_filename_from_utf8 (const gchar *utf8string, | |
21296 | gssize len, | |
21297 | gsize *bytes_read, | |
21298 | gsize *bytes_written, | |
21299 | GError **error) __attribute__((__malloc__)); | |
21300 | ||
21301 | gchar *g_filename_from_uri (const gchar *uri, | |
21302 | gchar **hostname, | |
21303 | GError **error) __attribute__((__malloc__)); | |
21304 | ||
21305 | gchar *g_filename_to_uri (const gchar *filename, | |
21306 | const gchar *hostname, | |
21307 | GError **error) __attribute__((__malloc__)); | |
21308 | gchar *g_filename_display_name (const gchar *filename) __attribute__((__malloc__)); | |
21309 | gboolean g_get_filename_charsets (const gchar ***charsets); | |
21310 | ||
21311 | gchar *g_filename_display_basename (const gchar *filename) __attribute__((__malloc__)); | |
21312 | ||
21313 | gchar **g_uri_list_extract_uris (const gchar *uri_list) __attribute__((__malloc__)); | |
21314 | ||
21315 | ||
21316 | # 38 "/usr/include/glib-2.0/glib.h" 2 | |
21317 | # 1 "/usr/include/glib-2.0/glib/gdataset.h" 1 | |
21318 | # 28 "/usr/include/glib-2.0/glib/gdataset.h" | |
21319 | #define __G_DATASET_H__ | |
21320 | ||
21321 | ||
21322 | ||
21323 | ||
21324 | ||
21325 | typedef struct _GData GData; | |
21326 | ||
21327 | typedef void (*GDataForeachFunc) (GQuark key_id, | |
21328 | gpointer data, | |
21329 | gpointer user_data); | |
21330 | ||
21331 | ||
21332 | ||
21333 | void g_datalist_init (GData **datalist); | |
21334 | void g_datalist_clear (GData **datalist); | |
21335 | gpointer g_datalist_id_get_data (GData **datalist, | |
21336 | GQuark key_id); | |
21337 | void g_datalist_id_set_data_full (GData **datalist, | |
21338 | GQuark key_id, | |
21339 | gpointer data, | |
21340 | GDestroyNotify destroy_func); | |
21341 | gpointer g_datalist_id_remove_no_notify (GData **datalist, | |
21342 | GQuark key_id); | |
21343 | void g_datalist_foreach (GData **datalist, | |
21344 | GDataForeachFunc func, | |
21345 | gpointer user_data); | |
21346 | # 63 "/usr/include/glib-2.0/glib/gdataset.h" | |
21347 | #define G_DATALIST_FLAGS_MASK 0x3 | |
21348 | ||
21349 | void g_datalist_set_flags (GData **datalist, | |
21350 | guint flags); | |
21351 | void g_datalist_unset_flags (GData **datalist, | |
21352 | guint flags); | |
21353 | guint g_datalist_get_flags (GData **datalist); | |
21354 | ||
21355 | #define g_datalist_id_set_data(dl,q,d) g_datalist_id_set_data_full ((dl), (q), (d), NULL) | |
21356 | ||
21357 | #define g_datalist_id_remove_data(dl,q) g_datalist_id_set_data ((dl), (q), NULL) | |
21358 | ||
21359 | #define g_datalist_get_data(dl,k) (g_datalist_id_get_data ((dl), g_quark_try_string (k))) | |
21360 | ||
21361 | #define g_datalist_set_data_full(dl,k,d,f) g_datalist_id_set_data_full ((dl), g_quark_from_string (k), (d), (f)) | |
21362 | ||
21363 | #define g_datalist_remove_no_notify(dl,k) g_datalist_id_remove_no_notify ((dl), g_quark_try_string (k)) | |
21364 | ||
21365 | #define g_datalist_set_data(dl,k,d) g_datalist_set_data_full ((dl), (k), (d), NULL) | |
21366 | ||
21367 | #define g_datalist_remove_data(dl,k) g_datalist_id_set_data ((dl), g_quark_try_string (k), NULL) | |
21368 | ||
21369 | ||
21370 | ||
21371 | ||
21372 | ||
21373 | void g_dataset_destroy (gconstpointer dataset_location); | |
21374 | gpointer g_dataset_id_get_data (gconstpointer dataset_location, | |
21375 | GQuark key_id); | |
21376 | void g_dataset_id_set_data_full (gconstpointer dataset_location, | |
21377 | GQuark key_id, | |
21378 | gpointer data, | |
21379 | GDestroyNotify destroy_func); | |
21380 | gpointer g_dataset_id_remove_no_notify (gconstpointer dataset_location, | |
21381 | GQuark key_id); | |
21382 | void g_dataset_foreach (gconstpointer dataset_location, | |
21383 | GDataForeachFunc func, | |
21384 | gpointer user_data); | |
21385 | #define g_dataset_id_set_data(l,k,d) g_dataset_id_set_data_full ((l), (k), (d), NULL) | |
21386 | ||
21387 | #define g_dataset_id_remove_data(l,k) g_dataset_id_set_data ((l), (k), NULL) | |
21388 | ||
21389 | #define g_dataset_get_data(l,k) (g_dataset_id_get_data ((l), g_quark_try_string (k))) | |
21390 | ||
21391 | #define g_dataset_set_data_full(l,k,d,f) g_dataset_id_set_data_full ((l), g_quark_from_string (k), (d), (f)) | |
21392 | ||
21393 | #define g_dataset_remove_no_notify(l,k) g_dataset_id_remove_no_notify ((l), g_quark_try_string (k)) | |
21394 | ||
21395 | #define g_dataset_set_data(l,k,d) g_dataset_set_data_full ((l), (k), (d), NULL) | |
21396 | ||
21397 | #define g_dataset_remove_data(l,k) g_dataset_id_set_data ((l), g_quark_try_string (k), NULL) | |
21398 | ||
21399 | ||
21400 | ||
21401 | # 39 "/usr/include/glib-2.0/glib.h" 2 | |
21402 | # 1 "/usr/include/glib-2.0/glib/gdate.h" 1 | |
21403 | # 28 "/usr/include/glib-2.0/glib/gdate.h" | |
21404 | #define __G_DATE_H__ | |
21405 | ||
21406 | ||
21407 | ||
21408 | ||
21409 | ||
21410 | ||
21411 | ||
21412 | # 46 "/usr/include/glib-2.0/glib/gdate.h" | |
21413 | typedef gint32 GTime; | |
21414 | typedef guint16 GDateYear; | |
21415 | typedef guint8 GDateDay; | |
21416 | typedef struct _GDate GDate; | |
21417 | ||
21418 | struct tm; | |
21419 | ||
21420 | ||
21421 | typedef enum | |
21422 | { | |
21423 | G_DATE_DAY = 0, | |
21424 | G_DATE_MONTH = 1, | |
21425 | G_DATE_YEAR = 2 | |
21426 | } GDateDMY; | |
21427 | ||
21428 | ||
21429 | typedef enum | |
21430 | { | |
21431 | G_DATE_BAD_WEEKDAY = 0, | |
21432 | G_DATE_MONDAY = 1, | |
21433 | G_DATE_TUESDAY = 2, | |
21434 | G_DATE_WEDNESDAY = 3, | |
21435 | G_DATE_THURSDAY = 4, | |
21436 | G_DATE_FRIDAY = 5, | |
21437 | G_DATE_SATURDAY = 6, | |
21438 | G_DATE_SUNDAY = 7 | |
21439 | } GDateWeekday; | |
21440 | typedef enum | |
21441 | { | |
21442 | G_DATE_BAD_MONTH = 0, | |
21443 | G_DATE_JANUARY = 1, | |
21444 | G_DATE_FEBRUARY = 2, | |
21445 | G_DATE_MARCH = 3, | |
21446 | G_DATE_APRIL = 4, | |
21447 | G_DATE_MAY = 5, | |
21448 | G_DATE_JUNE = 6, | |
21449 | G_DATE_JULY = 7, | |
21450 | G_DATE_AUGUST = 8, | |
21451 | G_DATE_SEPTEMBER = 9, | |
21452 | G_DATE_OCTOBER = 10, | |
21453 | G_DATE_NOVEMBER = 11, | |
21454 | G_DATE_DECEMBER = 12 | |
21455 | } GDateMonth; | |
21456 | ||
21457 | #define G_DATE_BAD_JULIAN 0U | |
21458 | #define G_DATE_BAD_DAY 0U | |
21459 | #define G_DATE_BAD_YEAR 0U | |
21460 | ||
21461 | ||
21462 | ||
21463 | ||
21464 | ||
21465 | ||
21466 | struct _GDate | |
21467 | { | |
21468 | guint julian_days : 32; | |
21469 | ||
21470 | ||
21471 | ||
21472 | ||
21473 | ||
21474 | guint julian : 1; | |
21475 | guint dmy : 1; | |
21476 | ||
21477 | ||
21478 | guint day : 6; | |
21479 | guint month : 4; | |
21480 | guint year : 16; | |
21481 | }; | |
21482 | ||
21483 | ||
21484 | ||
21485 | ||
21486 | ||
21487 | GDate* g_date_new (void); | |
21488 | GDate* g_date_new_dmy (GDateDay day, | |
21489 | GDateMonth month, | |
21490 | GDateYear year); | |
21491 | GDate* g_date_new_julian (guint32 julian_day); | |
21492 | void g_date_free (GDate *date); | |
21493 | ||
21494 | ||
21495 | ||
21496 | ||
21497 | ||
21498 | ||
21499 | gboolean g_date_valid (const GDate *date); | |
21500 | gboolean g_date_valid_day (GDateDay day) __attribute__((__const__)); | |
21501 | gboolean g_date_valid_month (GDateMonth month) __attribute__((__const__)); | |
21502 | gboolean g_date_valid_year (GDateYear year) __attribute__((__const__)); | |
21503 | gboolean g_date_valid_weekday (GDateWeekday weekday) __attribute__((__const__)); | |
21504 | gboolean g_date_valid_julian (guint32 julian_date) __attribute__((__const__)); | |
21505 | gboolean g_date_valid_dmy (GDateDay day, | |
21506 | GDateMonth month, | |
21507 | GDateYear year) __attribute__((__const__)); | |
21508 | ||
21509 | GDateWeekday g_date_get_weekday (const GDate *date); | |
21510 | GDateMonth g_date_get_month (const GDate *date); | |
21511 | GDateYear g_date_get_year (const GDate *date); | |
21512 | GDateDay g_date_get_day (const GDate *date); | |
21513 | guint32 g_date_get_julian (const GDate *date); | |
21514 | guint g_date_get_day_of_year (const GDate *date); | |
21515 | ||
21516 | ||
21517 | ||
21518 | ||
21519 | ||
21520 | ||
21521 | guint g_date_get_monday_week_of_year (const GDate *date); | |
21522 | guint g_date_get_sunday_week_of_year (const GDate *date); | |
21523 | guint g_date_get_iso8601_week_of_year (const GDate *date); | |
21524 | ||
21525 | ||
21526 | ||
21527 | ||
21528 | ||
21529 | void g_date_clear (GDate *date, | |
21530 | guint n_dates); | |
21531 | ||
21532 | ||
21533 | ||
21534 | ||
21535 | ||
21536 | void g_date_set_parse (GDate *date, | |
21537 | const gchar *str); | |
21538 | void g_date_set_time_t (GDate *date, | |
21539 | time_t timet); | |
21540 | void g_date_set_time_val (GDate *date, | |
21541 | GTimeVal *timeval); | |
21542 | ||
21543 | void g_date_set_time (GDate *date, | |
21544 | GTime time_); | |
21545 | ||
21546 | void g_date_set_month (GDate *date, | |
21547 | GDateMonth month); | |
21548 | void g_date_set_day (GDate *date, | |
21549 | GDateDay day); | |
21550 | void g_date_set_year (GDate *date, | |
21551 | GDateYear year); | |
21552 | void g_date_set_dmy (GDate *date, | |
21553 | GDateDay day, | |
21554 | GDateMonth month, | |
21555 | GDateYear y); | |
21556 | void g_date_set_julian (GDate *date, | |
21557 | guint32 julian_date); | |
21558 | gboolean g_date_is_first_of_month (const GDate *date); | |
21559 | gboolean g_date_is_last_of_month (const GDate *date); | |
21560 | ||
21561 | ||
21562 | void g_date_add_days (GDate *date, | |
21563 | guint n_days); | |
21564 | void g_date_subtract_days (GDate *date, | |
21565 | guint n_days); | |
21566 | ||
21567 | ||
21568 | void g_date_add_months (GDate *date, | |
21569 | guint n_months); | |
21570 | void g_date_subtract_months (GDate *date, | |
21571 | guint n_months); | |
21572 | ||
21573 | ||
21574 | void g_date_add_years (GDate *date, | |
21575 | guint n_years); | |
21576 | void g_date_subtract_years (GDate *date, | |
21577 | guint n_years); | |
21578 | gboolean g_date_is_leap_year (GDateYear year) __attribute__((__const__)); | |
21579 | guint8 g_date_get_days_in_month (GDateMonth month, | |
21580 | GDateYear year) __attribute__((__const__)); | |
21581 | guint8 g_date_get_monday_weeks_in_year (GDateYear year) __attribute__((__const__)); | |
21582 | guint8 g_date_get_sunday_weeks_in_year (GDateYear year) __attribute__((__const__)); | |
21583 | ||
21584 | ||
21585 | ||
21586 | gint g_date_days_between (const GDate *date1, | |
21587 | const GDate *date2); | |
21588 | ||
21589 | ||
21590 | gint g_date_compare (const GDate *lhs, | |
21591 | const GDate *rhs); | |
21592 | void g_date_to_struct_tm (const GDate *date, | |
21593 | struct tm *tm); | |
21594 | ||
21595 | void g_date_clamp (GDate *date, | |
21596 | const GDate *min_date, | |
21597 | const GDate *max_date); | |
21598 | ||
21599 | ||
21600 | void g_date_order (GDate *date1, GDate *date2); | |
21601 | ||
21602 | ||
21603 | ||
21604 | ||
21605 | gsize g_date_strftime (gchar *s, | |
21606 | gsize slen, | |
21607 | const gchar *format, | |
21608 | const GDate *date); | |
21609 | ||
21610 | ||
21611 | ||
21612 | #define g_date_weekday g_date_get_weekday | |
21613 | #define g_date_month g_date_get_month | |
21614 | #define g_date_year g_date_get_year | |
21615 | #define g_date_day g_date_get_day | |
21616 | #define g_date_julian g_date_get_julian | |
21617 | #define g_date_day_of_year g_date_get_day_of_year | |
21618 | #define g_date_monday_week_of_year g_date_get_monday_week_of_year | |
21619 | #define g_date_sunday_week_of_year g_date_get_sunday_week_of_year | |
21620 | #define g_date_days_in_month g_date_get_days_in_month | |
21621 | #define g_date_monday_weeks_in_year g_date_get_monday_weeks_in_year | |
21622 | #define g_date_sunday_weeks_in_year g_date_get_sunday_weeks_in_year | |
21623 | ||
21624 | ||
21625 | ||
21626 | ||
21627 | # 40 "/usr/include/glib-2.0/glib.h" 2 | |
21628 | # 1 "/usr/include/glib-2.0/glib/gdir.h" 1 | |
21629 | # 24 "/usr/include/glib-2.0/glib/gdir.h" | |
21630 | #define __G_DIR_H__ | |
21631 | ||
21632 | ||
21633 | ||
21634 | ||
21635 | ||
21636 | typedef struct _GDir GDir; | |
21637 | ||
21638 | ||
21639 | ||
21640 | ||
21641 | ||
21642 | ||
21643 | ||
21644 | GDir * g_dir_open (const gchar *path, | |
21645 | guint flags, | |
21646 | GError **error); | |
21647 | const gchar *g_dir_read_name (GDir *dir); | |
21648 | void g_dir_rewind (GDir *dir); | |
21649 | void g_dir_close (GDir *dir); | |
21650 | ||
21651 | ||
21652 | # 41 "/usr/include/glib-2.0/glib.h" 2 | |
21653 | ||
21654 | # 1 "/usr/include/glib-2.0/glib/gfileutils.h" 1 | |
21655 | # 22 "/usr/include/glib-2.0/glib/gfileutils.h" | |
21656 | #define __G_FILEUTILS_H__ | |
21657 | ||
21658 | ||
21659 | ||
21660 | ||
21661 | ||
21662 | #define G_FILE_ERROR g_file_error_quark () | |
21663 | ||
21664 | typedef enum | |
21665 | { | |
21666 | G_FILE_ERROR_EXIST, | |
21667 | G_FILE_ERROR_ISDIR, | |
21668 | G_FILE_ERROR_ACCES, | |
21669 | G_FILE_ERROR_NAMETOOLONG, | |
21670 | G_FILE_ERROR_NOENT, | |
21671 | G_FILE_ERROR_NOTDIR, | |
21672 | G_FILE_ERROR_NXIO, | |
21673 | G_FILE_ERROR_NODEV, | |
21674 | G_FILE_ERROR_ROFS, | |
21675 | G_FILE_ERROR_TXTBSY, | |
21676 | G_FILE_ERROR_FAULT, | |
21677 | G_FILE_ERROR_LOOP, | |
21678 | G_FILE_ERROR_NOSPC, | |
21679 | G_FILE_ERROR_NOMEM, | |
21680 | G_FILE_ERROR_MFILE, | |
21681 | G_FILE_ERROR_NFILE, | |
21682 | G_FILE_ERROR_BADF, | |
21683 | G_FILE_ERROR_INVAL, | |
21684 | G_FILE_ERROR_PIPE, | |
21685 | G_FILE_ERROR_AGAIN, | |
21686 | G_FILE_ERROR_INTR, | |
21687 | G_FILE_ERROR_IO, | |
21688 | G_FILE_ERROR_PERM, | |
21689 | G_FILE_ERROR_NOSYS, | |
21690 | G_FILE_ERROR_FAILED | |
21691 | } GFileError; | |
21692 | ||
21693 | ||
21694 | ||
21695 | ||
21696 | ||
21697 | typedef enum | |
21698 | { | |
21699 | G_FILE_TEST_IS_REGULAR = 1 << 0, | |
21700 | G_FILE_TEST_IS_SYMLINK = 1 << 1, | |
21701 | G_FILE_TEST_IS_DIR = 1 << 2, | |
21702 | G_FILE_TEST_IS_EXECUTABLE = 1 << 3, | |
21703 | G_FILE_TEST_EXISTS = 1 << 4 | |
21704 | } GFileTest; | |
21705 | ||
21706 | GQuark g_file_error_quark (void); | |
21707 | ||
21708 | GFileError g_file_error_from_errno (gint err_no); | |
21709 | # 83 "/usr/include/glib-2.0/glib/gfileutils.h" | |
21710 | gboolean g_file_test (const gchar *filename, | |
21711 | GFileTest test); | |
21712 | gboolean g_file_get_contents (const gchar *filename, | |
21713 | gchar **contents, | |
21714 | gsize *length, | |
21715 | GError **error); | |
21716 | gboolean g_file_set_contents (const gchar *filename, | |
21717 | const gchar *contents, | |
21718 | gssize length, | |
21719 | GError **error); | |
21720 | gchar *g_file_read_link (const gchar *filename, | |
21721 | GError **error); | |
21722 | ||
21723 | ||
21724 | gint g_mkstemp (gchar *tmpl); | |
21725 | ||
21726 | ||
21727 | gint g_file_open_tmp (const gchar *tmpl, | |
21728 | gchar **name_used, | |
21729 | GError **error); | |
21730 | ||
21731 | gchar *g_build_path (const gchar *separator, | |
21732 | const gchar *first_element, | |
21733 | ...) __attribute__((__malloc__)) ; | |
21734 | gchar *g_build_pathv (const gchar *separator, | |
21735 | gchar **args) __attribute__((__malloc__)); | |
21736 | ||
21737 | gchar *g_build_filename (const gchar *first_element, | |
21738 | ...) __attribute__((__malloc__)) ; | |
21739 | gchar *g_build_filenamev (gchar **args) __attribute__((__malloc__)); | |
21740 | ||
21741 | int g_mkdir_with_parents (const gchar *pathname, | |
21742 | int mode); | |
21743 | ||
21744 | ||
21745 | # 43 "/usr/include/glib-2.0/glib.h" 2 | |
21746 | # 1 "/usr/include/glib-2.0/glib/ghash.h" 1 | |
21747 | # 28 "/usr/include/glib-2.0/glib/ghash.h" | |
21748 | #define __G_HASH_H__ | |
21749 | ||
21750 | ||
21751 | ||
21752 | ||
21753 | ||
21754 | typedef struct _GHashTable GHashTable; | |
21755 | ||
21756 | typedef gboolean (*GHRFunc) (gpointer key, | |
21757 | gpointer value, | |
21758 | gpointer user_data); | |
21759 | ||
21760 | ||
21761 | ||
21762 | GHashTable* g_hash_table_new (GHashFunc hash_func, | |
21763 | GEqualFunc key_equal_func); | |
21764 | GHashTable* g_hash_table_new_full (GHashFunc hash_func, | |
21765 | GEqualFunc key_equal_func, | |
21766 | GDestroyNotify key_destroy_func, | |
21767 | GDestroyNotify value_destroy_func); | |
21768 | void g_hash_table_destroy (GHashTable *hash_table); | |
21769 | void g_hash_table_insert (GHashTable *hash_table, | |
21770 | gpointer key, | |
21771 | gpointer value); | |
21772 | void g_hash_table_replace (GHashTable *hash_table, | |
21773 | gpointer key, | |
21774 | gpointer value); | |
21775 | gboolean g_hash_table_remove (GHashTable *hash_table, | |
21776 | gconstpointer key); | |
21777 | gboolean g_hash_table_steal (GHashTable *hash_table, | |
21778 | gconstpointer key); | |
21779 | gpointer g_hash_table_lookup (GHashTable *hash_table, | |
21780 | gconstpointer key); | |
21781 | gboolean g_hash_table_lookup_extended (GHashTable *hash_table, | |
21782 | gconstpointer lookup_key, | |
21783 | gpointer *orig_key, | |
21784 | gpointer *value); | |
21785 | void g_hash_table_foreach (GHashTable *hash_table, | |
21786 | GHFunc func, | |
21787 | gpointer user_data); | |
21788 | gpointer g_hash_table_find (GHashTable *hash_table, | |
21789 | GHRFunc predicate, | |
21790 | gpointer user_data); | |
21791 | guint g_hash_table_foreach_remove (GHashTable *hash_table, | |
21792 | GHRFunc func, | |
21793 | gpointer user_data); | |
21794 | guint g_hash_table_foreach_steal (GHashTable *hash_table, | |
21795 | GHRFunc func, | |
21796 | gpointer user_data); | |
21797 | guint g_hash_table_size (GHashTable *hash_table); | |
21798 | ||
21799 | ||
21800 | GHashTable* g_hash_table_ref (GHashTable *hash_table); | |
21801 | void g_hash_table_unref (GHashTable *hash_table); | |
21802 | ||
21803 | ||
21804 | ||
21805 | ||
21806 | ||
21807 | #define g_hash_table_freeze(hash_table) ((void)0) | |
21808 | #define g_hash_table_thaw(hash_table) ((void)0) | |
21809 | ||
21810 | ||
21811 | ||
21812 | ||
21813 | ||
21814 | gboolean g_str_equal (gconstpointer v1, | |
21815 | gconstpointer v2); | |
21816 | guint g_str_hash (gconstpointer v); | |
21817 | ||
21818 | gboolean g_int_equal (gconstpointer v1, | |
21819 | gconstpointer v2); | |
21820 | guint g_int_hash (gconstpointer v); | |
21821 | ||
21822 | ||
21823 | ||
21824 | ||
21825 | ||
21826 | ||
21827 | ||
21828 | guint g_direct_hash (gconstpointer v) __attribute__((__const__)); | |
21829 | gboolean g_direct_equal (gconstpointer v1, | |
21830 | gconstpointer v2) __attribute__((__const__)); | |
21831 | ||
21832 | ||
21833 | # 44 "/usr/include/glib-2.0/glib.h" 2 | |
21834 | # 1 "/usr/include/glib-2.0/glib/ghook.h" 1 | |
21835 | # 28 "/usr/include/glib-2.0/glib/ghook.h" | |
21836 | #define __G_HOOK_H__ | |
21837 | ||
21838 | ||
21839 | ||
21840 | ||
21841 | ||
21842 | ||
21843 | ||
21844 | typedef struct _GHook GHook; | |
21845 | typedef struct _GHookList GHookList; | |
21846 | ||
21847 | typedef gint (*GHookCompareFunc) (GHook *new_hook, | |
21848 | GHook *sibling); | |
21849 | typedef gboolean (*GHookFindFunc) (GHook *hook, | |
21850 | gpointer data); | |
21851 | typedef void (*GHookMarshaller) (GHook *hook, | |
21852 | gpointer marshal_data); | |
21853 | typedef gboolean (*GHookCheckMarshaller) (GHook *hook, | |
21854 | gpointer marshal_data); | |
21855 | typedef void (*GHookFunc) (gpointer data); | |
21856 | typedef gboolean (*GHookCheckFunc) (gpointer data); | |
21857 | typedef void (*GHookFinalizeFunc) (GHookList *hook_list, | |
21858 | GHook *hook); | |
21859 | typedef enum | |
21860 | { | |
21861 | G_HOOK_FLAG_ACTIVE = 1 << 0, | |
21862 | G_HOOK_FLAG_IN_CALL = 1 << 1, | |
21863 | G_HOOK_FLAG_MASK = 0x0f | |
21864 | } GHookFlagMask; | |
21865 | #define G_HOOK_FLAG_USER_SHIFT (4) | |
21866 | ||
21867 | ||
21868 | ||
21869 | struct _GHookList | |
21870 | { | |
21871 | gulong seq_id; | |
21872 | guint hook_size : 16; | |
21873 | guint is_setup : 1; | |
21874 | GHook *hooks; | |
21875 | gpointer dummy3; | |
21876 | GHookFinalizeFunc finalize_hook; | |
21877 | gpointer dummy[2]; | |
21878 | }; | |
21879 | struct _GHook | |
21880 | { | |
21881 | gpointer data; | |
21882 | GHook *next; | |
21883 | GHook *prev; | |
21884 | guint ref_count; | |
21885 | gulong hook_id; | |
21886 | guint flags; | |
21887 | gpointer func; | |
21888 | GDestroyNotify destroy; | |
21889 | }; | |
21890 | ||
21891 | ||
21892 | ||
21893 | #define G_HOOK(hook) ((GHook*) (hook)) | |
21894 | #define G_HOOK_FLAGS(hook) (G_HOOK (hook)->flags) | |
21895 | #define G_HOOK_ACTIVE(hook) ((G_HOOK_FLAGS (hook) & G_HOOK_FLAG_ACTIVE) != 0) | |
21896 | ||
21897 | #define G_HOOK_IN_CALL(hook) ((G_HOOK_FLAGS (hook) & G_HOOK_FLAG_IN_CALL) != 0) | |
21898 | ||
21899 | #define G_HOOK_IS_VALID(hook) (G_HOOK (hook)->hook_id != 0 && (G_HOOK_FLAGS (hook) & G_HOOK_FLAG_ACTIVE)) | |
21900 | ||
21901 | ||
21902 | #define G_HOOK_IS_UNLINKED(hook) (G_HOOK (hook)->next == NULL && G_HOOK (hook)->prev == NULL && G_HOOK (hook)->hook_id == 0 && G_HOOK (hook)->ref_count == 0) | |
21903 | ||
21904 | ||
21905 | ||
21906 | ||
21907 | ||
21908 | ||
21909 | ||
21910 | void g_hook_list_init (GHookList *hook_list, | |
21911 | guint hook_size); | |
21912 | void g_hook_list_clear (GHookList *hook_list); | |
21913 | GHook* g_hook_alloc (GHookList *hook_list); | |
21914 | void g_hook_free (GHookList *hook_list, | |
21915 | GHook *hook); | |
21916 | GHook * g_hook_ref (GHookList *hook_list, | |
21917 | GHook *hook); | |
21918 | void g_hook_unref (GHookList *hook_list, | |
21919 | GHook *hook); | |
21920 | gboolean g_hook_destroy (GHookList *hook_list, | |
21921 | gulong hook_id); | |
21922 | void g_hook_destroy_link (GHookList *hook_list, | |
21923 | GHook *hook); | |
21924 | void g_hook_prepend (GHookList *hook_list, | |
21925 | GHook *hook); | |
21926 | void g_hook_insert_before (GHookList *hook_list, | |
21927 | GHook *sibling, | |
21928 | GHook *hook); | |
21929 | void g_hook_insert_sorted (GHookList *hook_list, | |
21930 | GHook *hook, | |
21931 | GHookCompareFunc func); | |
21932 | GHook* g_hook_get (GHookList *hook_list, | |
21933 | gulong hook_id); | |
21934 | GHook* g_hook_find (GHookList *hook_list, | |
21935 | gboolean need_valids, | |
21936 | GHookFindFunc func, | |
21937 | gpointer data); | |
21938 | GHook* g_hook_find_data (GHookList *hook_list, | |
21939 | gboolean need_valids, | |
21940 | gpointer data); | |
21941 | GHook* g_hook_find_func (GHookList *hook_list, | |
21942 | gboolean need_valids, | |
21943 | gpointer func); | |
21944 | GHook* g_hook_find_func_data (GHookList *hook_list, | |
21945 | gboolean need_valids, | |
21946 | gpointer func, | |
21947 | gpointer data); | |
21948 | ||
21949 | GHook* g_hook_first_valid (GHookList *hook_list, | |
21950 | gboolean may_be_in_call); | |
21951 | ||
21952 | ||
21953 | ||
21954 | GHook* g_hook_next_valid (GHookList *hook_list, | |
21955 | GHook *hook, | |
21956 | gboolean may_be_in_call); | |
21957 | ||
21958 | gint g_hook_compare_ids (GHook *new_hook, | |
21959 | GHook *sibling); | |
21960 | ||
21961 | #define g_hook_append(hook_list,hook) g_hook_insert_before ((hook_list), NULL, (hook)) | |
21962 | ||
21963 | ||
21964 | ||
21965 | void g_hook_list_invoke (GHookList *hook_list, | |
21966 | gboolean may_recurse); | |
21967 | ||
21968 | ||
21969 | ||
21970 | void g_hook_list_invoke_check (GHookList *hook_list, | |
21971 | gboolean may_recurse); | |
21972 | ||
21973 | ||
21974 | void g_hook_list_marshal (GHookList *hook_list, | |
21975 | gboolean may_recurse, | |
21976 | GHookMarshaller marshaller, | |
21977 | gpointer marshal_data); | |
21978 | void g_hook_list_marshal_check (GHookList *hook_list, | |
21979 | gboolean may_recurse, | |
21980 | GHookCheckMarshaller marshaller, | |
21981 | gpointer marshal_data); | |
21982 | ||
21983 | ||
21984 | # 45 "/usr/include/glib-2.0/glib.h" 2 | |
21985 | # 1 "/usr/include/glib-2.0/glib/giochannel.h" 1 | |
21986 | # 28 "/usr/include/glib-2.0/glib/giochannel.h" | |
21987 | #define __G_IOCHANNEL_H__ | |
21988 | ||
21989 | ||
21990 | # 1 "/usr/include/glib-2.0/glib/gmain.h" 1 | |
21991 | # 21 "/usr/include/glib-2.0/glib/gmain.h" | |
21992 | #define __G_MAIN_H__ | |
21993 | ||
21994 | # 1 "/usr/include/glib-2.0/glib/gslist.h" 1 | |
21995 | # 28 "/usr/include/glib-2.0/glib/gslist.h" | |
21996 | #define __G_SLIST_H__ | |
21997 | ||
21998 | ||
21999 | ||
22000 | ||
22001 | ||
22002 | typedef struct _GSList GSList; | |
22003 | ||
22004 | struct _GSList | |
22005 | { | |
22006 | gpointer data; | |
22007 | GSList *next; | |
22008 | }; | |
22009 | ||
22010 | ||
22011 | ||
22012 | GSList* g_slist_alloc (void) __attribute__((warn_unused_result)); | |
22013 | void g_slist_free (GSList *list); | |
22014 | void g_slist_free_1 (GSList *list); | |
22015 | #define g_slist_free1 g_slist_free_1 | |
22016 | GSList* g_slist_append (GSList *list, | |
22017 | gpointer data) __attribute__((warn_unused_result)); | |
22018 | GSList* g_slist_prepend (GSList *list, | |
22019 | gpointer data) __attribute__((warn_unused_result)); | |
22020 | GSList* g_slist_insert (GSList *list, | |
22021 | gpointer data, | |
22022 | gint position) __attribute__((warn_unused_result)); | |
22023 | GSList* g_slist_insert_sorted (GSList *list, | |
22024 | gpointer data, | |
22025 | GCompareFunc func) __attribute__((warn_unused_result)); | |
22026 | GSList* g_slist_insert_sorted_with_data (GSList *list, | |
22027 | gpointer data, | |
22028 | GCompareDataFunc func, | |
22029 | gpointer user_data) __attribute__((warn_unused_result)); | |
22030 | GSList* g_slist_insert_before (GSList *slist, | |
22031 | GSList *sibling, | |
22032 | gpointer data) __attribute__((warn_unused_result)); | |
22033 | GSList* g_slist_concat (GSList *list1, | |
22034 | GSList *list2) __attribute__((warn_unused_result)); | |
22035 | GSList* g_slist_remove (GSList *list, | |
22036 | gconstpointer data) __attribute__((warn_unused_result)); | |
22037 | GSList* g_slist_remove_all (GSList *list, | |
22038 | gconstpointer data) __attribute__((warn_unused_result)); | |
22039 | GSList* g_slist_remove_link (GSList *list, | |
22040 | GSList *link_) __attribute__((warn_unused_result)); | |
22041 | GSList* g_slist_delete_link (GSList *list, | |
22042 | GSList *link_) __attribute__((warn_unused_result)); | |
22043 | GSList* g_slist_reverse (GSList *list) __attribute__((warn_unused_result)); | |
22044 | GSList* g_slist_copy (GSList *list) __attribute__((warn_unused_result)); | |
22045 | GSList* g_slist_nth (GSList *list, | |
22046 | guint n); | |
22047 | GSList* g_slist_find (GSList *list, | |
22048 | gconstpointer data); | |
22049 | GSList* g_slist_find_custom (GSList *list, | |
22050 | gconstpointer data, | |
22051 | GCompareFunc func); | |
22052 | gint g_slist_position (GSList *list, | |
22053 | GSList *llink); | |
22054 | gint g_slist_index (GSList *list, | |
22055 | gconstpointer data); | |
22056 | GSList* g_slist_last (GSList *list); | |
22057 | guint g_slist_length (GSList *list); | |
22058 | void g_slist_foreach (GSList *list, | |
22059 | GFunc func, | |
22060 | gpointer user_data); | |
22061 | GSList* g_slist_sort (GSList *list, | |
22062 | GCompareFunc compare_func) __attribute__((warn_unused_result)); | |
22063 | GSList* g_slist_sort_with_data (GSList *list, | |
22064 | GCompareDataFunc compare_func, | |
22065 | gpointer user_data) __attribute__((warn_unused_result)); | |
22066 | gpointer g_slist_nth_data (GSList *list, | |
22067 | guint n); | |
22068 | ||
22069 | #define g_slist_next(slist) ((slist) ? (((GSList *)(slist))->next) : NULL) | |
22070 | ||
22071 | ||
22072 | void g_slist_push_allocator (gpointer dummy); | |
22073 | void g_slist_pop_allocator (void); | |
22074 | ||
22075 | ||
22076 | # 24 "/usr/include/glib-2.0/glib/gmain.h" 2 | |
22077 | ||
22078 | ||
22079 | ||
22080 | ||
22081 | typedef struct _GMainContext GMainContext; | |
22082 | typedef struct _GMainLoop GMainLoop; | |
22083 | typedef struct _GSource GSource; | |
22084 | typedef struct _GSourceCallbackFuncs GSourceCallbackFuncs; | |
22085 | typedef struct _GSourceFuncs GSourceFuncs; | |
22086 | ||
22087 | typedef gboolean (*GSourceFunc) (gpointer data); | |
22088 | typedef void (*GChildWatchFunc) (GPid pid, | |
22089 | gint status, | |
22090 | gpointer data); | |
22091 | struct _GSource | |
22092 | { | |
22093 | ||
22094 | gpointer callback_data; | |
22095 | GSourceCallbackFuncs *callback_funcs; | |
22096 | ||
22097 | GSourceFuncs *source_funcs; | |
22098 | guint ref_count; | |
22099 | ||
22100 | GMainContext *context; | |
22101 | ||
22102 | gint priority; | |
22103 | guint flags; | |
22104 | guint source_id; | |
22105 | ||
22106 | GSList *poll_fds; | |
22107 | ||
22108 | GSource *prev; | |
22109 | GSource *next; | |
22110 | ||
22111 | gpointer reserved1; | |
22112 | gpointer reserved2; | |
22113 | }; | |
22114 | ||
22115 | struct _GSourceCallbackFuncs | |
22116 | { | |
22117 | void (*ref) (gpointer cb_data); | |
22118 | void (*unref) (gpointer cb_data); | |
22119 | void (*get) (gpointer cb_data, | |
22120 | GSource *source, | |
22121 | GSourceFunc *func, | |
22122 | gpointer *data); | |
22123 | }; | |
22124 | ||
22125 | typedef void (*GSourceDummyMarshal) (void); | |
22126 | ||
22127 | struct _GSourceFuncs | |
22128 | { | |
22129 | gboolean (*prepare) (GSource *source, | |
22130 | gint *timeout_); | |
22131 | gboolean (*check) (GSource *source); | |
22132 | gboolean (*dispatch) (GSource *source, | |
22133 | GSourceFunc callback, | |
22134 | gpointer user_data); | |
22135 | void (*finalize) (GSource *source); | |
22136 | ||
22137 | ||
22138 | GSourceFunc closure_callback; | |
22139 | GSourceDummyMarshal closure_marshal; | |
22140 | }; | |
22141 | # 116 "/usr/include/glib-2.0/glib/gmain.h" | |
22142 | typedef struct _GPollFD GPollFD; | |
22143 | typedef gint (*GPollFunc) (GPollFD *ufds, | |
22144 | guint nfsd, | |
22145 | gint timeout_); | |
22146 | ||
22147 | struct _GPollFD | |
22148 | { | |
22149 | gint fd; | |
22150 | gushort events; | |
22151 | gushort revents; | |
22152 | }; | |
22153 | ||
22154 | ||
22155 | ||
22156 | #define G_PRIORITY_HIGH -100 | |
22157 | #define G_PRIORITY_DEFAULT 0 | |
22158 | #define G_PRIORITY_HIGH_IDLE 100 | |
22159 | #define G_PRIORITY_DEFAULT_IDLE 200 | |
22160 | #define G_PRIORITY_LOW 300 | |
22161 | ||
22162 | ||
22163 | ||
22164 | GMainContext *g_main_context_new (void); | |
22165 | GMainContext *g_main_context_ref (GMainContext *context); | |
22166 | void g_main_context_unref (GMainContext *context); | |
22167 | GMainContext *g_main_context_default (void); | |
22168 | ||
22169 | gboolean g_main_context_iteration (GMainContext *context, | |
22170 | gboolean may_block); | |
22171 | gboolean g_main_context_pending (GMainContext *context); | |
22172 | ||
22173 | ||
22174 | ||
22175 | GSource *g_main_context_find_source_by_id (GMainContext *context, | |
22176 | guint source_id); | |
22177 | GSource *g_main_context_find_source_by_user_data (GMainContext *context, | |
22178 | gpointer user_data); | |
22179 | GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context, | |
22180 | GSourceFuncs *funcs, | |
22181 | gpointer user_data); | |
22182 | ||
22183 | ||
22184 | ||
22185 | void g_main_context_wakeup (GMainContext *context); | |
22186 | gboolean g_main_context_acquire (GMainContext *context); | |
22187 | void g_main_context_release (GMainContext *context); | |
22188 | gboolean g_main_context_is_owner (GMainContext *context); | |
22189 | gboolean g_main_context_wait (GMainContext *context, | |
22190 | GCond *cond, | |
22191 | GMutex *mutex); | |
22192 | ||
22193 | gboolean g_main_context_prepare (GMainContext *context, | |
22194 | gint *priority); | |
22195 | gint g_main_context_query (GMainContext *context, | |
22196 | gint max_priority, | |
22197 | gint *timeout_, | |
22198 | GPollFD *fds, | |
22199 | gint n_fds); | |
22200 | gint g_main_context_check (GMainContext *context, | |
22201 | gint max_priority, | |
22202 | GPollFD *fds, | |
22203 | gint n_fds); | |
22204 | void g_main_context_dispatch (GMainContext *context); | |
22205 | ||
22206 | void g_main_context_set_poll_func (GMainContext *context, | |
22207 | GPollFunc func); | |
22208 | GPollFunc g_main_context_get_poll_func (GMainContext *context); | |
22209 | ||
22210 | ||
22211 | ||
22212 | void g_main_context_add_poll (GMainContext *context, | |
22213 | GPollFD *fd, | |
22214 | gint priority); | |
22215 | void g_main_context_remove_poll (GMainContext *context, | |
22216 | GPollFD *fd); | |
22217 | ||
22218 | int g_main_depth (void); | |
22219 | ||
22220 | ||
22221 | ||
22222 | GMainLoop *g_main_loop_new (GMainContext *context, | |
22223 | gboolean is_running); | |
22224 | void g_main_loop_run (GMainLoop *loop); | |
22225 | void g_main_loop_quit (GMainLoop *loop); | |
22226 | GMainLoop *g_main_loop_ref (GMainLoop *loop); | |
22227 | void g_main_loop_unref (GMainLoop *loop); | |
22228 | gboolean g_main_loop_is_running (GMainLoop *loop); | |
22229 | GMainContext *g_main_loop_get_context (GMainLoop *loop); | |
22230 | ||
22231 | ||
22232 | ||
22233 | GSource *g_source_new (GSourceFuncs *source_funcs, | |
22234 | guint struct_size); | |
22235 | GSource *g_source_ref (GSource *source); | |
22236 | void g_source_unref (GSource *source); | |
22237 | ||
22238 | guint g_source_attach (GSource *source, | |
22239 | GMainContext *context); | |
22240 | void g_source_destroy (GSource *source); | |
22241 | ||
22242 | void g_source_set_priority (GSource *source, | |
22243 | gint priority); | |
22244 | gint g_source_get_priority (GSource *source); | |
22245 | void g_source_set_can_recurse (GSource *source, | |
22246 | gboolean can_recurse); | |
22247 | gboolean g_source_get_can_recurse (GSource *source); | |
22248 | guint g_source_get_id (GSource *source); | |
22249 | ||
22250 | GMainContext *g_source_get_context (GSource *source); | |
22251 | ||
22252 | void g_source_set_callback (GSource *source, | |
22253 | GSourceFunc func, | |
22254 | gpointer data, | |
22255 | GDestroyNotify notify); | |
22256 | ||
22257 | ||
22258 | ||
22259 | void g_source_set_callback_indirect (GSource *source, | |
22260 | gpointer callback_data, | |
22261 | GSourceCallbackFuncs *callback_funcs); | |
22262 | ||
22263 | void g_source_add_poll (GSource *source, | |
22264 | GPollFD *fd); | |
22265 | void g_source_remove_poll (GSource *source, | |
22266 | GPollFD *fd); | |
22267 | ||
22268 | void g_source_get_current_time (GSource *source, | |
22269 | GTimeVal *timeval); | |
22270 | ||
22271 | ||
22272 | ||
22273 | ||
22274 | ||
22275 | ||
22276 | ||
22277 | GSource *g_idle_source_new (void); | |
22278 | GSource *g_child_watch_source_new (GPid pid); | |
22279 | GSource *g_timeout_source_new (guint interval); | |
22280 | ||
22281 | ||
22282 | ||
22283 | void g_get_current_time (GTimeVal *result); | |
22284 | ||
22285 | ||
22286 | ||
22287 | ||
22288 | ||
22289 | ||
22290 | ||
22291 | #define g_main_new(is_running) g_main_loop_new (NULL, is_running); | |
22292 | #define g_main_run(loop) g_main_loop_run(loop) | |
22293 | #define g_main_quit(loop) g_main_loop_quit(loop) | |
22294 | #define g_main_destroy(loop) g_main_loop_unref(loop) | |
22295 | #define g_main_is_running(loop) g_main_loop_is_running(loop) | |
22296 | ||
22297 | ||
22298 | ||
22299 | ||
22300 | #define g_main_iteration(may_block) g_main_context_iteration (NULL, may_block) | |
22301 | #define g_main_pending() g_main_context_pending (NULL) | |
22302 | ||
22303 | #define g_main_set_poll_func(func) g_main_context_set_poll_func (NULL, func) | |
22304 | ||
22305 | ||
22306 | ||
22307 | ||
22308 | gboolean g_source_remove (guint tag); | |
22309 | gboolean g_source_remove_by_user_data (gpointer user_data); | |
22310 | gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs, | |
22311 | gpointer user_data); | |
22312 | ||
22313 | ||
22314 | guint g_timeout_add_full (gint priority, | |
22315 | guint interval, | |
22316 | GSourceFunc function, | |
22317 | gpointer data, | |
22318 | GDestroyNotify notify); | |
22319 | guint g_timeout_add (guint interval, | |
22320 | GSourceFunc function, | |
22321 | gpointer data); | |
22322 | guint g_child_watch_add_full (gint priority, | |
22323 | GPid pid, | |
22324 | GChildWatchFunc function, | |
22325 | gpointer data, | |
22326 | GDestroyNotify notify); | |
22327 | guint g_child_watch_add (GPid pid, | |
22328 | GChildWatchFunc function, | |
22329 | gpointer data); | |
22330 | guint g_idle_add (GSourceFunc function, | |
22331 | gpointer data); | |
22332 | guint g_idle_add_full (gint priority, | |
22333 | GSourceFunc function, | |
22334 | gpointer data, | |
22335 | GDestroyNotify notify); | |
22336 | gboolean g_idle_remove_by_data (gpointer data); | |
22337 | ||
22338 | ||
22339 | extern GSourceFuncs g_timeout_funcs; | |
22340 | extern GSourceFuncs g_child_watch_funcs; | |
22341 | extern GSourceFuncs g_idle_funcs; | |
22342 | ||
22343 | ||
22344 | # 32 "/usr/include/glib-2.0/glib/giochannel.h" 2 | |
22345 | # 1 "/usr/include/glib-2.0/glib/gstring.h" 1 | |
22346 | # 28 "/usr/include/glib-2.0/glib/gstring.h" | |
22347 | #define __G_STRING_H__ | |
22348 | ||
22349 | ||
22350 | # 1 "/usr/include/glib-2.0/glib/gunicode.h" 1 | |
22351 | # 23 "/usr/include/glib-2.0/glib/gunicode.h" | |
22352 | #define __G_UNICODE_H__ | |
22353 | ||
22354 | ||
22355 | ||
22356 | ||
22357 | ||
22358 | ||
22359 | typedef guint32 gunichar; | |
22360 | typedef guint16 gunichar2; | |
22361 | ||
22362 | ||
22363 | ||
22364 | ||
22365 | typedef enum | |
22366 | { | |
22367 | G_UNICODE_CONTROL, | |
22368 | G_UNICODE_FORMAT, | |
22369 | G_UNICODE_UNASSIGNED, | |
22370 | G_UNICODE_PRIVATE_USE, | |
22371 | G_UNICODE_SURROGATE, | |
22372 | G_UNICODE_LOWERCASE_LETTER, | |
22373 | G_UNICODE_MODIFIER_LETTER, | |
22374 | G_UNICODE_OTHER_LETTER, | |
22375 | G_UNICODE_TITLECASE_LETTER, | |
22376 | G_UNICODE_UPPERCASE_LETTER, | |
22377 | G_UNICODE_COMBINING_MARK, | |
22378 | G_UNICODE_ENCLOSING_MARK, | |
22379 | G_UNICODE_NON_SPACING_MARK, | |
22380 | G_UNICODE_DECIMAL_NUMBER, | |
22381 | G_UNICODE_LETTER_NUMBER, | |
22382 | G_UNICODE_OTHER_NUMBER, | |
22383 | G_UNICODE_CONNECT_PUNCTUATION, | |
22384 | G_UNICODE_DASH_PUNCTUATION, | |
22385 | G_UNICODE_CLOSE_PUNCTUATION, | |
22386 | G_UNICODE_FINAL_PUNCTUATION, | |
22387 | G_UNICODE_INITIAL_PUNCTUATION, | |
22388 | G_UNICODE_OTHER_PUNCTUATION, | |
22389 | G_UNICODE_OPEN_PUNCTUATION, | |
22390 | G_UNICODE_CURRENCY_SYMBOL, | |
22391 | G_UNICODE_MODIFIER_SYMBOL, | |
22392 | G_UNICODE_MATH_SYMBOL, | |
22393 | G_UNICODE_OTHER_SYMBOL, | |
22394 | G_UNICODE_LINE_SEPARATOR, | |
22395 | G_UNICODE_PARAGRAPH_SEPARATOR, | |
22396 | G_UNICODE_SPACE_SEPARATOR | |
22397 | } GUnicodeType; | |
22398 | ||
22399 | ||
22400 | ||
22401 | ||
22402 | ||
22403 | ||
22404 | typedef enum | |
22405 | { | |
22406 | G_UNICODE_BREAK_MANDATORY, | |
22407 | G_UNICODE_BREAK_CARRIAGE_RETURN, | |
22408 | G_UNICODE_BREAK_LINE_FEED, | |
22409 | G_UNICODE_BREAK_COMBINING_MARK, | |
22410 | G_UNICODE_BREAK_SURROGATE, | |
22411 | G_UNICODE_BREAK_ZERO_WIDTH_SPACE, | |
22412 | G_UNICODE_BREAK_INSEPARABLE, | |
22413 | G_UNICODE_BREAK_NON_BREAKING_GLUE, | |
22414 | G_UNICODE_BREAK_CONTINGENT, | |
22415 | G_UNICODE_BREAK_SPACE, | |
22416 | G_UNICODE_BREAK_AFTER, | |
22417 | G_UNICODE_BREAK_BEFORE, | |
22418 | G_UNICODE_BREAK_BEFORE_AND_AFTER, | |
22419 | G_UNICODE_BREAK_HYPHEN, | |
22420 | G_UNICODE_BREAK_NON_STARTER, | |
22421 | G_UNICODE_BREAK_OPEN_PUNCTUATION, | |
22422 | G_UNICODE_BREAK_CLOSE_PUNCTUATION, | |
22423 | G_UNICODE_BREAK_QUOTATION, | |
22424 | G_UNICODE_BREAK_EXCLAMATION, | |
22425 | G_UNICODE_BREAK_IDEOGRAPHIC, | |
22426 | G_UNICODE_BREAK_NUMERIC, | |
22427 | G_UNICODE_BREAK_INFIX_SEPARATOR, | |
22428 | G_UNICODE_BREAK_SYMBOL, | |
22429 | G_UNICODE_BREAK_ALPHABETIC, | |
22430 | G_UNICODE_BREAK_PREFIX, | |
22431 | G_UNICODE_BREAK_POSTFIX, | |
22432 | G_UNICODE_BREAK_COMPLEX_CONTEXT, | |
22433 | G_UNICODE_BREAK_AMBIGUOUS, | |
22434 | G_UNICODE_BREAK_UNKNOWN, | |
22435 | G_UNICODE_BREAK_NEXT_LINE, | |
22436 | G_UNICODE_BREAK_WORD_JOINER, | |
22437 | G_UNICODE_BREAK_HANGUL_L_JAMO, | |
22438 | G_UNICODE_BREAK_HANGUL_V_JAMO, | |
22439 | G_UNICODE_BREAK_HANGUL_T_JAMO, | |
22440 | G_UNICODE_BREAK_HANGUL_LV_SYLLABLE, | |
22441 | G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE | |
22442 | } GUnicodeBreakType; | |
22443 | ||
22444 | ||
22445 | ||
22446 | ||
22447 | ||
22448 | ||
22449 | ||
22450 | gboolean g_get_charset (const char **charset); | |
22451 | ||
22452 | ||
22453 | ||
22454 | gboolean g_unichar_isalnum (gunichar c) __attribute__((__const__)); | |
22455 | gboolean g_unichar_isalpha (gunichar c) __attribute__((__const__)); | |
22456 | gboolean g_unichar_iscntrl (gunichar c) __attribute__((__const__)); | |
22457 | gboolean g_unichar_isdigit (gunichar c) __attribute__((__const__)); | |
22458 | gboolean g_unichar_isgraph (gunichar c) __attribute__((__const__)); | |
22459 | gboolean g_unichar_islower (gunichar c) __attribute__((__const__)); | |
22460 | gboolean g_unichar_isprint (gunichar c) __attribute__((__const__)); | |
22461 | gboolean g_unichar_ispunct (gunichar c) __attribute__((__const__)); | |
22462 | gboolean g_unichar_isspace (gunichar c) __attribute__((__const__)); | |
22463 | gboolean g_unichar_isupper (gunichar c) __attribute__((__const__)); | |
22464 | gboolean g_unichar_isxdigit (gunichar c) __attribute__((__const__)); | |
22465 | gboolean g_unichar_istitle (gunichar c) __attribute__((__const__)); | |
22466 | gboolean g_unichar_isdefined (gunichar c) __attribute__((__const__)); | |
22467 | gboolean g_unichar_iswide (gunichar c) __attribute__((__const__)); | |
22468 | ||
22469 | ||
22470 | ||
22471 | gunichar g_unichar_toupper (gunichar c) __attribute__((__const__)); | |
22472 | gunichar g_unichar_tolower (gunichar c) __attribute__((__const__)); | |
22473 | gunichar g_unichar_totitle (gunichar c) __attribute__((__const__)); | |
22474 | ||
22475 | ||
22476 | ||
22477 | gint g_unichar_digit_value (gunichar c) __attribute__((__const__)); | |
22478 | ||
22479 | gint g_unichar_xdigit_value (gunichar c) __attribute__((__const__)); | |
22480 | ||
22481 | ||
22482 | GUnicodeType g_unichar_type (gunichar c) __attribute__((__const__)); | |
22483 | ||
22484 | ||
22485 | GUnicodeBreakType g_unichar_break_type (gunichar c) __attribute__((__const__)); | |
22486 | ||
22487 | ||
22488 | ||
22489 | ||
22490 | ||
22491 | void g_unicode_canonical_ordering (gunichar *string, | |
22492 | gsize len); | |
22493 | ||
22494 | ||
22495 | ||
22496 | ||
22497 | gunichar *g_unicode_canonical_decomposition (gunichar ch, | |
22498 | gsize *result_len) __attribute__((__malloc__)); | |
22499 | ||
22500 | ||
22501 | ||
22502 | extern const gchar * const g_utf8_skip; | |
22503 | ||
22504 | #define g_utf8_next_char(p) (char *)((p) + g_utf8_skip[*(guchar *)(p)]) | |
22505 | ||
22506 | gunichar g_utf8_get_char (const gchar *p); | |
22507 | gunichar g_utf8_get_char_validated (const gchar *p, | |
22508 | gssize max_len); | |
22509 | ||
22510 | gchar* g_utf8_offset_to_pointer (const gchar *str, | |
22511 | glong offset); | |
22512 | glong g_utf8_pointer_to_offset (const gchar *str, | |
22513 | const gchar *pos); | |
22514 | gchar* g_utf8_prev_char (const gchar *p); | |
22515 | gchar* g_utf8_find_next_char (const gchar *p, | |
22516 | const gchar *end); | |
22517 | gchar* g_utf8_find_prev_char (const gchar *str, | |
22518 | const gchar *p); | |
22519 | ||
22520 | glong g_utf8_strlen (const gchar *p, | |
22521 | gssize max); | |
22522 | ||
22523 | ||
22524 | gchar* g_utf8_strncpy (gchar *dest, | |
22525 | const gchar *src, | |
22526 | gsize n); | |
22527 | ||
22528 | ||
22529 | ||
22530 | gchar* g_utf8_strchr (const gchar *p, | |
22531 | gssize len, | |
22532 | gunichar c); | |
22533 | gchar* g_utf8_strrchr (const gchar *p, | |
22534 | gssize len, | |
22535 | gunichar c); | |
22536 | gchar* g_utf8_strreverse (const gchar *str, | |
22537 | gssize len); | |
22538 | ||
22539 | gunichar2 *g_utf8_to_utf16 (const gchar *str, | |
22540 | glong len, | |
22541 | glong *items_read, | |
22542 | glong *items_written, | |
22543 | GError **error) __attribute__((__malloc__)); | |
22544 | gunichar * g_utf8_to_ucs4 (const gchar *str, | |
22545 | glong len, | |
22546 | glong *items_read, | |
22547 | glong *items_written, | |
22548 | GError **error) __attribute__((__malloc__)); | |
22549 | gunichar * g_utf8_to_ucs4_fast (const gchar *str, | |
22550 | glong len, | |
22551 | glong *items_written) __attribute__((__malloc__)); | |
22552 | gunichar * g_utf16_to_ucs4 (const gunichar2 *str, | |
22553 | glong len, | |
22554 | glong *items_read, | |
22555 | glong *items_written, | |
22556 | GError **error) __attribute__((__malloc__)); | |
22557 | gchar* g_utf16_to_utf8 (const gunichar2 *str, | |
22558 | glong len, | |
22559 | glong *items_read, | |
22560 | glong *items_written, | |
22561 | GError **error) __attribute__((__malloc__)); | |
22562 | gunichar2 *g_ucs4_to_utf16 (const gunichar *str, | |
22563 | glong len, | |
22564 | glong *items_read, | |
22565 | glong *items_written, | |
22566 | GError **error) __attribute__((__malloc__)); | |
22567 | gchar* g_ucs4_to_utf8 (const gunichar *str, | |
22568 | glong len, | |
22569 | glong *items_read, | |
22570 | glong *items_written, | |
22571 | GError **error) __attribute__((__malloc__)); | |
22572 | ||
22573 | ||
22574 | ||
22575 | ||
22576 | ||
22577 | gint g_unichar_to_utf8 (gunichar c, | |
22578 | gchar *outbuf); | |
22579 | ||
22580 | ||
22581 | ||
22582 | ||
22583 | ||
22584 | gboolean g_utf8_validate (const gchar *str, | |
22585 | gssize max_len, | |
22586 | const gchar **end); | |
22587 | ||
22588 | ||
22589 | gboolean g_unichar_validate (gunichar ch); | |
22590 | ||
22591 | gchar *g_utf8_strup (const gchar *str, | |
22592 | gssize len) __attribute__((__malloc__)); | |
22593 | gchar *g_utf8_strdown (const gchar *str, | |
22594 | gssize len) __attribute__((__malloc__)); | |
22595 | gchar *g_utf8_casefold (const gchar *str, | |
22596 | gssize len) __attribute__((__malloc__)); | |
22597 | ||
22598 | typedef enum { | |
22599 | G_NORMALIZE_DEFAULT, | |
22600 | G_NORMALIZE_NFD = G_NORMALIZE_DEFAULT, | |
22601 | G_NORMALIZE_DEFAULT_COMPOSE, | |
22602 | G_NORMALIZE_NFC = G_NORMALIZE_DEFAULT_COMPOSE, | |
22603 | G_NORMALIZE_ALL, | |
22604 | G_NORMALIZE_NFKD = G_NORMALIZE_ALL, | |
22605 | G_NORMALIZE_ALL_COMPOSE, | |
22606 | G_NORMALIZE_NFKC = G_NORMALIZE_ALL_COMPOSE | |
22607 | } GNormalizeMode; | |
22608 | ||
22609 | gchar *g_utf8_normalize (const gchar *str, | |
22610 | gssize len, | |
22611 | GNormalizeMode mode) __attribute__((__malloc__)); | |
22612 | ||
22613 | gint g_utf8_collate (const gchar *str1, | |
22614 | const gchar *str2); | |
22615 | gchar *g_utf8_collate_key (const gchar *str, | |
22616 | gssize len) __attribute__((__malloc__)); | |
22617 | gchar *g_utf8_collate_key_for_filename (const gchar *str, | |
22618 | gssize len) __attribute__((__malloc__)); | |
22619 | ||
22620 | gboolean g_unichar_get_mirror_char (gunichar ch, | |
22621 | gunichar *mirrored_ch); | |
22622 | ||
22623 | ||
22624 | # 32 "/usr/include/glib-2.0/glib/gstring.h" 2 | |
22625 | # 1 "/usr/include/glib-2.0/glib/gutils.h" 1 | |
22626 | # 28 "/usr/include/glib-2.0/glib/gutils.h" | |
22627 | #define __G_UTILS_H__ | |
22628 | ||
22629 | ||
22630 | ||
22631 | ||
22632 | ||
22633 | # 51 "/usr/include/glib-2.0/glib/gutils.h" | |
22634 | #define G_DIR_SEPARATOR '/' | |
22635 | #define G_DIR_SEPARATOR_S "/" | |
22636 | #define G_IS_DIR_SEPARATOR(c) ((c) == G_DIR_SEPARATOR) | |
22637 | #define G_SEARCHPATH_SEPARATOR ':' | |
22638 | #define G_SEARCHPATH_SEPARATOR_S ":" | |
22639 | # 100 "/usr/include/glib-2.0/glib/gutils.h" | |
22640 | #define G_INLINE_FUNC extern inline | |
22641 | # 116 "/usr/include/glib-2.0/glib/gutils.h" | |
22642 | const gchar* g_get_user_name (void); | |
22643 | const gchar* g_get_real_name (void); | |
22644 | const gchar* g_get_home_dir (void); | |
22645 | const gchar* g_get_tmp_dir (void); | |
22646 | const gchar* g_get_host_name (void); | |
22647 | gchar* g_get_prgname (void); | |
22648 | void g_set_prgname (const gchar *prgname); | |
22649 | const gchar* g_get_application_name (void); | |
22650 | void g_set_application_name (const gchar *application_name); | |
22651 | ||
22652 | const gchar* g_get_user_data_dir (void); | |
22653 | const gchar* g_get_user_config_dir (void); | |
22654 | const gchar* g_get_user_cache_dir (void); | |
22655 | const gchar* const * g_get_system_data_dirs (void); | |
22656 | # 144 "/usr/include/glib-2.0/glib/gutils.h" | |
22657 | const gchar* const * g_get_system_config_dirs (void); | |
22658 | ||
22659 | const gchar* const * g_get_language_names (void); | |
22660 | ||
22661 | typedef struct _GDebugKey GDebugKey; | |
22662 | struct _GDebugKey | |
22663 | { | |
22664 | gchar *key; | |
22665 | guint value; | |
22666 | }; | |
22667 | ||
22668 | ||
22669 | ||
22670 | guint g_parse_debug_string (const gchar *string, | |
22671 | const GDebugKey *keys, | |
22672 | guint nkeys); | |
22673 | ||
22674 | gint g_snprintf (gchar *string, | |
22675 | gulong n, | |
22676 | gchar const *format, | |
22677 | ...) __attribute__((__format__ (__printf__, 3, 4))); | |
22678 | gint g_vsnprintf (gchar *string, | |
22679 | gulong n, | |
22680 | gchar const *format, | |
22681 | va_list args); | |
22682 | ||
22683 | ||
22684 | gboolean g_path_is_absolute (const gchar *file_name); | |
22685 | ||
22686 | ||
22687 | const gchar* g_path_skip_root (const gchar *file_name); | |
22688 | ||
22689 | ||
22690 | ||
22691 | ||
22692 | ||
22693 | ||
22694 | ||
22695 | const gchar* g_basename (const gchar *file_name); | |
22696 | #define g_dirname g_path_get_dirname | |
22697 | # 192 "/usr/include/glib-2.0/glib/gutils.h" | |
22698 | gchar* g_get_current_dir (void); | |
22699 | gchar* g_path_get_basename (const gchar *file_name) __attribute__((__malloc__)); | |
22700 | gchar* g_path_get_dirname (const gchar *file_name) __attribute__((__malloc__)); | |
22701 | ||
22702 | ||
22703 | void g_nullify_pointer (gpointer *nullify_location); | |
22704 | # 208 "/usr/include/glib-2.0/glib/gutils.h" | |
22705 | const gchar* g_getenv (const gchar *variable); | |
22706 | gboolean g_setenv (const gchar *variable, | |
22707 | const gchar *value, | |
22708 | gboolean overwrite); | |
22709 | void g_unsetenv (const gchar *variable); | |
22710 | gchar** g_listenv (void); | |
22711 | const gchar* _g_getenv_nomalloc (const gchar *variable, | |
22712 | gchar buffer[1024]); | |
22713 | ||
22714 | ||
22715 | ||
22716 | ||
22717 | ||
22718 | typedef void (*GVoidFunc) (void); | |
22719 | ||
22720 | #define ATEXIT(proc) g_ATEXIT(proc) | |
22721 | # 232 "/usr/include/glib-2.0/glib/gutils.h" | |
22722 | void g_atexit (GVoidFunc func); | |
22723 | # 246 "/usr/include/glib-2.0/glib/gutils.h" | |
22724 | gchar* g_find_program_in_path (const gchar *program); | |
22725 | ||
22726 | ||
22727 | ||
22728 | extern __inline__ gint g_bit_nth_lsf (gulong mask, | |
22729 | gint nth_bit); | |
22730 | extern __inline__ gint g_bit_nth_msf (gulong mask, | |
22731 | gint nth_bit); | |
22732 | extern __inline__ guint g_bit_storage (gulong number); | |
22733 | ||
22734 | ||
22735 | ||
22736 | ||
22737 | typedef struct _GTrashStack GTrashStack; | |
22738 | struct _GTrashStack | |
22739 | { | |
22740 | GTrashStack *next; | |
22741 | }; | |
22742 | ||
22743 | extern __inline__ void g_trash_stack_push (GTrashStack **stack_p, | |
22744 | gpointer data_p); | |
22745 | extern __inline__ gpointer g_trash_stack_pop (GTrashStack **stack_p); | |
22746 | extern __inline__ gpointer g_trash_stack_peek (GTrashStack **stack_p); | |
22747 | extern __inline__ guint g_trash_stack_height (GTrashStack **stack_p); | |
22748 | ||
22749 | ||
22750 | ||
22751 | ||
22752 | extern __inline__ gint | |
22753 | g_bit_nth_lsf (gulong mask, | |
22754 | gint nth_bit) | |
22755 | { | |
22756 | do | |
22757 | { | |
22758 | nth_bit++; | |
22759 | if (mask & (1UL << nth_bit)) | |
22760 | return nth_bit; | |
22761 | } | |
22762 | while (nth_bit < ((4 * 8) - 1)); | |
22763 | return -1; | |
22764 | } | |
22765 | extern __inline__ gint | |
22766 | g_bit_nth_msf (gulong mask, | |
22767 | gint nth_bit) | |
22768 | { | |
22769 | if (nth_bit < 0) | |
22770 | nth_bit = 4 * 8; | |
22771 | do | |
22772 | { | |
22773 | nth_bit--; | |
22774 | if (mask & (1UL << nth_bit)) | |
22775 | return nth_bit; | |
22776 | } | |
22777 | while (nth_bit > 0); | |
22778 | return -1; | |
22779 | } | |
22780 | extern __inline__ guint | |
22781 | g_bit_storage (gulong number) | |
22782 | { | |
22783 | register guint n_bits = 0; | |
22784 | ||
22785 | do | |
22786 | { | |
22787 | n_bits++; | |
22788 | number >>= 1; | |
22789 | } | |
22790 | while (number); | |
22791 | return n_bits; | |
22792 | } | |
22793 | extern __inline__ void | |
22794 | g_trash_stack_push (GTrashStack **stack_p, | |
22795 | gpointer data_p) | |
22796 | { | |
22797 | GTrashStack *data = (GTrashStack *) data_p; | |
22798 | ||
22799 | data->next = *stack_p; | |
22800 | *stack_p = data; | |
22801 | } | |
22802 | extern __inline__ gpointer | |
22803 | g_trash_stack_pop (GTrashStack **stack_p) | |
22804 | { | |
22805 | GTrashStack *data; | |
22806 | ||
22807 | data = *stack_p; | |
22808 | if (data) | |
22809 | { | |
22810 | *stack_p = data->next; | |
22811 | ||
22812 | ||
22813 | ||
22814 | data->next = ((void *)0); | |
22815 | } | |
22816 | ||
22817 | return data; | |
22818 | } | |
22819 | extern __inline__ gpointer | |
22820 | g_trash_stack_peek (GTrashStack **stack_p) | |
22821 | { | |
22822 | GTrashStack *data; | |
22823 | ||
22824 | data = *stack_p; | |
22825 | ||
22826 | return data; | |
22827 | } | |
22828 | extern __inline__ guint | |
22829 | g_trash_stack_height (GTrashStack **stack_p) | |
22830 | { | |
22831 | GTrashStack *data; | |
22832 | guint i = 0; | |
22833 | ||
22834 | for (data = *stack_p; data; data = data->next) | |
22835 | i++; | |
22836 | ||
22837 | return i; | |
22838 | } | |
22839 | ||
22840 | ||
22841 | ||
22842 | ||
22843 | ||
22844 | ||
22845 | extern const guint glib_major_version; | |
22846 | extern const guint glib_minor_version; | |
22847 | extern const guint glib_micro_version; | |
22848 | extern const guint glib_interface_age; | |
22849 | extern const guint glib_binary_age; | |
22850 | ||
22851 | const gchar * glib_check_version (guint required_major, | |
22852 | guint required_minor, | |
22853 | guint required_micro); | |
22854 | ||
22855 | #define GLIB_CHECK_VERSION(major,minor,micro) (GLIB_MAJOR_VERSION > (major) || (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION > (minor)) || (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION == (minor) && GLIB_MICRO_VERSION >= (micro))) | |
22856 | ||
22857 | ||
22858 | ||
22859 | ||
22860 | ||
22861 | ||
22862 | # 397 "/usr/include/glib-2.0/glib/gutils.h" | |
22863 | #define G_WIN32_DLLMAIN_FOR_DLL_NAME(static,dll_name) | |
22864 | # 33 "/usr/include/glib-2.0/glib/gstring.h" 2 | |
22865 | ||
22866 | ||
22867 | ||
22868 | typedef struct _GString GString; | |
22869 | typedef struct _GStringChunk GStringChunk; | |
22870 | ||
22871 | struct _GString | |
22872 | { | |
22873 | gchar *str; | |
22874 | gsize len; | |
22875 | gsize allocated_len; | |
22876 | }; | |
22877 | ||
22878 | ||
22879 | ||
22880 | GStringChunk* g_string_chunk_new (gsize size); | |
22881 | void g_string_chunk_free (GStringChunk *chunk); | |
22882 | gchar* g_string_chunk_insert (GStringChunk *chunk, | |
22883 | const gchar *string); | |
22884 | gchar* g_string_chunk_insert_len (GStringChunk *chunk, | |
22885 | const gchar *string, | |
22886 | gssize len); | |
22887 | gchar* g_string_chunk_insert_const (GStringChunk *chunk, | |
22888 | const gchar *string); | |
22889 | ||
22890 | ||
22891 | ||
22892 | ||
22893 | GString* g_string_new (const gchar *init); | |
22894 | GString* g_string_new_len (const gchar *init, | |
22895 | gssize len); | |
22896 | GString* g_string_sized_new (gsize dfl_size); | |
22897 | gchar* g_string_free (GString *string, | |
22898 | gboolean free_segment); | |
22899 | gboolean g_string_equal (const GString *v, | |
22900 | const GString *v2); | |
22901 | guint g_string_hash (const GString *str); | |
22902 | GString* g_string_assign (GString *string, | |
22903 | const gchar *rval); | |
22904 | GString* g_string_truncate (GString *string, | |
22905 | gsize len); | |
22906 | GString* g_string_set_size (GString *string, | |
22907 | gsize len); | |
22908 | GString* g_string_insert_len (GString *string, | |
22909 | gssize pos, | |
22910 | const gchar *val, | |
22911 | gssize len); | |
22912 | GString* g_string_append (GString *string, | |
22913 | const gchar *val); | |
22914 | GString* g_string_append_len (GString *string, | |
22915 | const gchar *val, | |
22916 | gssize len); | |
22917 | GString* g_string_append_c (GString *string, | |
22918 | gchar c); | |
22919 | GString* g_string_append_unichar (GString *string, | |
22920 | gunichar wc); | |
22921 | GString* g_string_prepend (GString *string, | |
22922 | const gchar *val); | |
22923 | GString* g_string_prepend_c (GString *string, | |
22924 | gchar c); | |
22925 | GString* g_string_prepend_unichar (GString *string, | |
22926 | gunichar wc); | |
22927 | GString* g_string_prepend_len (GString *string, | |
22928 | const gchar *val, | |
22929 | gssize len); | |
22930 | GString* g_string_insert (GString *string, | |
22931 | gssize pos, | |
22932 | const gchar *val); | |
22933 | GString* g_string_insert_c (GString *string, | |
22934 | gssize pos, | |
22935 | gchar c); | |
22936 | GString* g_string_insert_unichar (GString *string, | |
22937 | gssize pos, | |
22938 | gunichar wc); | |
22939 | GString* g_string_erase (GString *string, | |
22940 | gssize pos, | |
22941 | gssize len); | |
22942 | GString* g_string_ascii_down (GString *string); | |
22943 | GString* g_string_ascii_up (GString *string); | |
22944 | void g_string_printf (GString *string, | |
22945 | const gchar *format, | |
22946 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
22947 | void g_string_append_printf (GString *string, | |
22948 | const gchar *format, | |
22949 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
22950 | ||
22951 | ||
22952 | ||
22953 | static __inline__ GString* | |
22954 | g_string_append_c_inline (GString *gstring, | |
22955 | gchar c) | |
22956 | { | |
22957 | if (gstring->len + 1 < gstring->allocated_len) | |
22958 | { | |
22959 | gstring->str[gstring->len++] = c; | |
22960 | gstring->str[gstring->len] = 0; | |
22961 | } | |
22962 | else | |
22963 | g_string_insert_c (gstring, -1, c); | |
22964 | return gstring; | |
22965 | } | |
22966 | #define g_string_append_c(gstr,c) g_string_append_c_inline (gstr, c) | |
22967 | # 145 "/usr/include/glib-2.0/glib/gstring.h" | |
22968 | GString* g_string_down (GString *string); | |
22969 | GString* g_string_up (GString *string); | |
22970 | ||
22971 | ||
22972 | #define g_string_sprintf g_string_printf | |
22973 | #define g_string_sprintfa g_string_append_printf | |
22974 | ||
22975 | ||
22976 | ||
22977 | ||
22978 | # 33 "/usr/include/glib-2.0/glib/giochannel.h" 2 | |
22979 | ||
22980 | ||
22981 | ||
22982 | ||
22983 | ||
22984 | ||
22985 | typedef struct _GIOChannel GIOChannel; | |
22986 | typedef struct _GIOFuncs GIOFuncs; | |
22987 | ||
22988 | typedef enum | |
22989 | { | |
22990 | G_IO_ERROR_NONE, | |
22991 | G_IO_ERROR_AGAIN, | |
22992 | G_IO_ERROR_INVAL, | |
22993 | G_IO_ERROR_UNKNOWN | |
22994 | } GIOError; | |
22995 | ||
22996 | #define G_IO_CHANNEL_ERROR g_io_channel_error_quark() | |
22997 | ||
22998 | typedef enum | |
22999 | { | |
23000 | ||
23001 | G_IO_CHANNEL_ERROR_FBIG, | |
23002 | G_IO_CHANNEL_ERROR_INVAL, | |
23003 | G_IO_CHANNEL_ERROR_IO, | |
23004 | G_IO_CHANNEL_ERROR_ISDIR, | |
23005 | G_IO_CHANNEL_ERROR_NOSPC, | |
23006 | G_IO_CHANNEL_ERROR_NXIO, | |
23007 | G_IO_CHANNEL_ERROR_OVERFLOW, | |
23008 | G_IO_CHANNEL_ERROR_PIPE, | |
23009 | ||
23010 | G_IO_CHANNEL_ERROR_FAILED | |
23011 | } GIOChannelError; | |
23012 | ||
23013 | typedef enum | |
23014 | { | |
23015 | G_IO_STATUS_ERROR, | |
23016 | G_IO_STATUS_NORMAL, | |
23017 | G_IO_STATUS_EOF, | |
23018 | G_IO_STATUS_AGAIN | |
23019 | } GIOStatus; | |
23020 | ||
23021 | typedef enum | |
23022 | { | |
23023 | G_SEEK_CUR, | |
23024 | G_SEEK_SET, | |
23025 | G_SEEK_END | |
23026 | } GSeekType; | |
23027 | ||
23028 | typedef enum | |
23029 | { | |
23030 | G_IO_IN =1, | |
23031 | G_IO_OUT =4, | |
23032 | G_IO_PRI =2, | |
23033 | G_IO_ERR =8, | |
23034 | G_IO_HUP =16, | |
23035 | G_IO_NVAL =32 | |
23036 | } GIOCondition; | |
23037 | ||
23038 | typedef enum | |
23039 | { | |
23040 | G_IO_FLAG_APPEND = 1 << 0, | |
23041 | G_IO_FLAG_NONBLOCK = 1 << 1, | |
23042 | G_IO_FLAG_IS_READABLE = 1 << 2, | |
23043 | G_IO_FLAG_IS_WRITEABLE = 1 << 3, | |
23044 | G_IO_FLAG_IS_SEEKABLE = 1 << 4, | |
23045 | G_IO_FLAG_MASK = (1 << 5) - 1, | |
23046 | G_IO_FLAG_GET_MASK = G_IO_FLAG_MASK, | |
23047 | G_IO_FLAG_SET_MASK = G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK | |
23048 | } GIOFlags; | |
23049 | ||
23050 | struct _GIOChannel | |
23051 | { | |
23052 | ||
23053 | guint ref_count; | |
23054 | GIOFuncs *funcs; | |
23055 | ||
23056 | gchar *encoding; | |
23057 | GIConv read_cd; | |
23058 | GIConv write_cd; | |
23059 | gchar *line_term; | |
23060 | guint line_term_len; | |
23061 | ||
23062 | gsize buf_size; | |
23063 | GString *read_buf; | |
23064 | GString *encoded_read_buf; | |
23065 | GString *write_buf; | |
23066 | gchar partial_write_buf[6]; | |
23067 | ||
23068 | ||
23069 | ||
23070 | guint use_buffer : 1; | |
23071 | guint do_encode : 1; | |
23072 | guint close_on_unref : 1; | |
23073 | guint is_readable : 1; | |
23074 | guint is_writeable : 1; | |
23075 | guint is_seekable : 1; | |
23076 | ||
23077 | gpointer reserved1; | |
23078 | gpointer reserved2; | |
23079 | }; | |
23080 | ||
23081 | typedef gboolean (*GIOFunc) (GIOChannel *source, | |
23082 | GIOCondition condition, | |
23083 | gpointer data); | |
23084 | struct _GIOFuncs | |
23085 | { | |
23086 | GIOStatus (*io_read) (GIOChannel *channel, | |
23087 | gchar *buf, | |
23088 | gsize count, | |
23089 | gsize *bytes_read, | |
23090 | GError **err); | |
23091 | GIOStatus (*io_write) (GIOChannel *channel, | |
23092 | const gchar *buf, | |
23093 | gsize count, | |
23094 | gsize *bytes_written, | |
23095 | GError **err); | |
23096 | GIOStatus (*io_seek) (GIOChannel *channel, | |
23097 | gint64 offset, | |
23098 | GSeekType type, | |
23099 | GError **err); | |
23100 | GIOStatus (*io_close) (GIOChannel *channel, | |
23101 | GError **err); | |
23102 | GSource* (*io_create_watch) (GIOChannel *channel, | |
23103 | GIOCondition condition); | |
23104 | void (*io_free) (GIOChannel *channel); | |
23105 | GIOStatus (*io_set_flags) (GIOChannel *channel, | |
23106 | GIOFlags flags, | |
23107 | GError **err); | |
23108 | GIOFlags (*io_get_flags) (GIOChannel *channel); | |
23109 | }; | |
23110 | ||
23111 | void g_io_channel_init (GIOChannel *channel); | |
23112 | GIOChannel *g_io_channel_ref (GIOChannel *channel); | |
23113 | void g_io_channel_unref (GIOChannel *channel); | |
23114 | ||
23115 | ||
23116 | GIOError g_io_channel_read (GIOChannel *channel, | |
23117 | gchar *buf, | |
23118 | gsize count, | |
23119 | gsize *bytes_read); | |
23120 | GIOError g_io_channel_write (GIOChannel *channel, | |
23121 | const gchar *buf, | |
23122 | gsize count, | |
23123 | gsize *bytes_written); | |
23124 | GIOError g_io_channel_seek (GIOChannel *channel, | |
23125 | gint64 offset, | |
23126 | GSeekType type); | |
23127 | void g_io_channel_close (GIOChannel *channel); | |
23128 | ||
23129 | ||
23130 | GIOStatus g_io_channel_shutdown (GIOChannel *channel, | |
23131 | gboolean flush, | |
23132 | GError **err); | |
23133 | guint g_io_add_watch_full (GIOChannel *channel, | |
23134 | gint priority, | |
23135 | GIOCondition condition, | |
23136 | GIOFunc func, | |
23137 | gpointer user_data, | |
23138 | GDestroyNotify notify); | |
23139 | GSource * g_io_create_watch (GIOChannel *channel, | |
23140 | GIOCondition condition); | |
23141 | guint g_io_add_watch (GIOChannel *channel, | |
23142 | GIOCondition condition, | |
23143 | GIOFunc func, | |
23144 | gpointer user_data); | |
23145 | ||
23146 | ||
23147 | ||
23148 | ||
23149 | void g_io_channel_set_buffer_size (GIOChannel *channel, | |
23150 | gsize size); | |
23151 | gsize g_io_channel_get_buffer_size (GIOChannel *channel); | |
23152 | GIOCondition g_io_channel_get_buffer_condition (GIOChannel *channel); | |
23153 | GIOStatus g_io_channel_set_flags (GIOChannel *channel, | |
23154 | GIOFlags flags, | |
23155 | GError **error); | |
23156 | GIOFlags g_io_channel_get_flags (GIOChannel *channel); | |
23157 | void g_io_channel_set_line_term (GIOChannel *channel, | |
23158 | const gchar *line_term, | |
23159 | gint length); | |
23160 | const gchar* g_io_channel_get_line_term (GIOChannel *channel, | |
23161 | gint *length); | |
23162 | void g_io_channel_set_buffered (GIOChannel *channel, | |
23163 | gboolean buffered); | |
23164 | gboolean g_io_channel_get_buffered (GIOChannel *channel); | |
23165 | GIOStatus g_io_channel_set_encoding (GIOChannel *channel, | |
23166 | const gchar *encoding, | |
23167 | GError **error); | |
23168 | const gchar* g_io_channel_get_encoding (GIOChannel *channel); | |
23169 | void g_io_channel_set_close_on_unref (GIOChannel *channel, | |
23170 | gboolean do_close); | |
23171 | gboolean g_io_channel_get_close_on_unref (GIOChannel *channel); | |
23172 | ||
23173 | ||
23174 | GIOStatus g_io_channel_flush (GIOChannel *channel, | |
23175 | GError **error); | |
23176 | GIOStatus g_io_channel_read_line (GIOChannel *channel, | |
23177 | gchar **str_return, | |
23178 | gsize *length, | |
23179 | gsize *terminator_pos, | |
23180 | GError **error); | |
23181 | GIOStatus g_io_channel_read_line_string (GIOChannel *channel, | |
23182 | GString *buffer, | |
23183 | gsize *terminator_pos, | |
23184 | GError **error); | |
23185 | GIOStatus g_io_channel_read_to_end (GIOChannel *channel, | |
23186 | gchar **str_return, | |
23187 | gsize *length, | |
23188 | GError **error); | |
23189 | GIOStatus g_io_channel_read_chars (GIOChannel *channel, | |
23190 | gchar *buf, | |
23191 | gsize count, | |
23192 | gsize *bytes_read, | |
23193 | GError **error); | |
23194 | GIOStatus g_io_channel_read_unichar (GIOChannel *channel, | |
23195 | gunichar *thechar, | |
23196 | GError **error); | |
23197 | GIOStatus g_io_channel_write_chars (GIOChannel *channel, | |
23198 | const gchar *buf, | |
23199 | gssize count, | |
23200 | gsize *bytes_written, | |
23201 | GError **error); | |
23202 | GIOStatus g_io_channel_write_unichar (GIOChannel *channel, | |
23203 | gunichar thechar, | |
23204 | GError **error); | |
23205 | GIOStatus g_io_channel_seek_position (GIOChannel *channel, | |
23206 | gint64 offset, | |
23207 | GSeekType type, | |
23208 | GError **error); | |
23209 | ||
23210 | ||
23211 | ||
23212 | ||
23213 | GIOChannel* g_io_channel_new_file (const gchar *filename, | |
23214 | const gchar *mode, | |
23215 | GError **error); | |
23216 | ||
23217 | ||
23218 | ||
23219 | GQuark g_io_channel_error_quark (void); | |
23220 | GIOChannelError g_io_channel_error_from_errno (gint en); | |
23221 | # 294 "/usr/include/glib-2.0/glib/giochannel.h" | |
23222 | GIOChannel* g_io_channel_unix_new (int fd); | |
23223 | gint g_io_channel_unix_get_fd (GIOChannel *channel); | |
23224 | ||
23225 | ||
23226 | ||
23227 | extern GSourceFuncs g_io_watch_funcs; | |
23228 | # 352 "/usr/include/glib-2.0/glib/giochannel.h" | |
23229 | ||
23230 | # 46 "/usr/include/glib-2.0/glib.h" 2 | |
23231 | # 1 "/usr/include/glib-2.0/glib/gkeyfile.h" 1 | |
23232 | # 24 "/usr/include/glib-2.0/glib/gkeyfile.h" | |
23233 | #define __G_KEY_FILE_H__ | |
23234 | ||
23235 | ||
23236 | ||
23237 | ||
23238 | ||
23239 | typedef enum | |
23240 | { | |
23241 | G_KEY_FILE_ERROR_UNKNOWN_ENCODING, | |
23242 | G_KEY_FILE_ERROR_PARSE, | |
23243 | G_KEY_FILE_ERROR_NOT_FOUND, | |
23244 | G_KEY_FILE_ERROR_KEY_NOT_FOUND, | |
23245 | G_KEY_FILE_ERROR_GROUP_NOT_FOUND, | |
23246 | G_KEY_FILE_ERROR_INVALID_VALUE | |
23247 | } GKeyFileError; | |
23248 | ||
23249 | #define G_KEY_FILE_ERROR g_key_file_error_quark() | |
23250 | ||
23251 | GQuark g_key_file_error_quark (void); | |
23252 | ||
23253 | typedef struct _GKeyFile GKeyFile; | |
23254 | ||
23255 | typedef enum | |
23256 | { | |
23257 | G_KEY_FILE_NONE = 0, | |
23258 | G_KEY_FILE_KEEP_COMMENTS = 1 << 0, | |
23259 | G_KEY_FILE_KEEP_TRANSLATIONS = 1 << 1 | |
23260 | } GKeyFileFlags; | |
23261 | ||
23262 | GKeyFile *g_key_file_new (void); | |
23263 | void g_key_file_free (GKeyFile *key_file); | |
23264 | void g_key_file_set_list_separator (GKeyFile *key_file, | |
23265 | gchar separator); | |
23266 | gboolean g_key_file_load_from_file (GKeyFile *key_file, | |
23267 | const gchar *file, | |
23268 | GKeyFileFlags flags, | |
23269 | GError **error); | |
23270 | gboolean g_key_file_load_from_data (GKeyFile *key_file, | |
23271 | const gchar *data, | |
23272 | gsize length, | |
23273 | GKeyFileFlags flags, | |
23274 | GError **error); | |
23275 | gboolean g_key_file_load_from_data_dirs (GKeyFile *key_file, | |
23276 | const gchar *file, | |
23277 | gchar **full_path, | |
23278 | GKeyFileFlags flags, | |
23279 | GError **error); | |
23280 | gchar *g_key_file_to_data (GKeyFile *key_file, | |
23281 | gsize *length, | |
23282 | GError **error) __attribute__((__malloc__)); | |
23283 | gchar *g_key_file_get_start_group (GKeyFile *key_file) __attribute__((__malloc__)); | |
23284 | gchar **g_key_file_get_groups (GKeyFile *key_file, | |
23285 | gsize *length) __attribute__((__malloc__)); | |
23286 | gchar **g_key_file_get_keys (GKeyFile *key_file, | |
23287 | const gchar *group_name, | |
23288 | gsize *length, | |
23289 | GError **error) __attribute__((__malloc__)); | |
23290 | gboolean g_key_file_has_group (GKeyFile *key_file, | |
23291 | const gchar *group_name); | |
23292 | gboolean g_key_file_has_key (GKeyFile *key_file, | |
23293 | const gchar *group_name, | |
23294 | const gchar *key, | |
23295 | GError **error); | |
23296 | gchar *g_key_file_get_value (GKeyFile *key_file, | |
23297 | const gchar *group_name, | |
23298 | const gchar *key, | |
23299 | GError **error) __attribute__((__malloc__)); | |
23300 | void g_key_file_set_value (GKeyFile *key_file, | |
23301 | const gchar *group_name, | |
23302 | const gchar *key, | |
23303 | const gchar *value); | |
23304 | gchar *g_key_file_get_string (GKeyFile *key_file, | |
23305 | const gchar *group_name, | |
23306 | const gchar *key, | |
23307 | GError **error) __attribute__((__malloc__)); | |
23308 | void g_key_file_set_string (GKeyFile *key_file, | |
23309 | const gchar *group_name, | |
23310 | const gchar *key, | |
23311 | const gchar *string); | |
23312 | gchar *g_key_file_get_locale_string (GKeyFile *key_file, | |
23313 | const gchar *group_name, | |
23314 | const gchar *key, | |
23315 | const gchar *locale, | |
23316 | GError **error) __attribute__((__malloc__)); | |
23317 | void g_key_file_set_locale_string (GKeyFile *key_file, | |
23318 | const gchar *group_name, | |
23319 | const gchar *key, | |
23320 | const gchar *locale, | |
23321 | const gchar *string); | |
23322 | gboolean g_key_file_get_boolean (GKeyFile *key_file, | |
23323 | const gchar *group_name, | |
23324 | const gchar *key, | |
23325 | GError **error); | |
23326 | void g_key_file_set_boolean (GKeyFile *key_file, | |
23327 | const gchar *group_name, | |
23328 | const gchar *key, | |
23329 | gboolean value); | |
23330 | gint g_key_file_get_integer (GKeyFile *key_file, | |
23331 | const gchar *group_name, | |
23332 | const gchar *key, | |
23333 | GError **error); | |
23334 | void g_key_file_set_integer (GKeyFile *key_file, | |
23335 | const gchar *group_name, | |
23336 | const gchar *key, | |
23337 | gint value); | |
23338 | gchar **g_key_file_get_string_list (GKeyFile *key_file, | |
23339 | const gchar *group_name, | |
23340 | const gchar *key, | |
23341 | gsize *length, | |
23342 | GError **error) __attribute__((__malloc__)); | |
23343 | void g_key_file_set_string_list (GKeyFile *key_file, | |
23344 | const gchar *group_name, | |
23345 | const gchar *key, | |
23346 | const gchar * const list[], | |
23347 | gsize length); | |
23348 | gchar **g_key_file_get_locale_string_list (GKeyFile *key_file, | |
23349 | const gchar *group_name, | |
23350 | const gchar *key, | |
23351 | const gchar *locale, | |
23352 | gsize *length, | |
23353 | GError **error) __attribute__((__malloc__)); | |
23354 | void g_key_file_set_locale_string_list (GKeyFile *key_file, | |
23355 | const gchar *group_name, | |
23356 | const gchar *key, | |
23357 | const gchar *locale, | |
23358 | const gchar * const list[], | |
23359 | gsize length); | |
23360 | gboolean *g_key_file_get_boolean_list (GKeyFile *key_file, | |
23361 | const gchar *group_name, | |
23362 | const gchar *key, | |
23363 | gsize *length, | |
23364 | GError **error) __attribute__((__malloc__)); | |
23365 | void g_key_file_set_boolean_list (GKeyFile *key_file, | |
23366 | const gchar *group_name, | |
23367 | const gchar *key, | |
23368 | gboolean list[], | |
23369 | gsize length); | |
23370 | gint *g_key_file_get_integer_list (GKeyFile *key_file, | |
23371 | const gchar *group_name, | |
23372 | const gchar *key, | |
23373 | gsize *length, | |
23374 | GError **error) __attribute__((__malloc__)); | |
23375 | void g_key_file_set_integer_list (GKeyFile *key_file, | |
23376 | const gchar *group_name, | |
23377 | const gchar *key, | |
23378 | gint list[], | |
23379 | gsize length); | |
23380 | void g_key_file_set_comment (GKeyFile *key_file, | |
23381 | const gchar *group_name, | |
23382 | const gchar *key, | |
23383 | const gchar *comment, | |
23384 | GError **error); | |
23385 | gchar *g_key_file_get_comment (GKeyFile *key_file, | |
23386 | const gchar *group_name, | |
23387 | const gchar *key, | |
23388 | GError **error) __attribute__((__malloc__)); | |
23389 | ||
23390 | void g_key_file_remove_comment (GKeyFile *key_file, | |
23391 | const gchar *group_name, | |
23392 | const gchar *key, | |
23393 | GError **error); | |
23394 | void g_key_file_remove_key (GKeyFile *key_file, | |
23395 | const gchar *group_name, | |
23396 | const gchar *key, | |
23397 | GError **error); | |
23398 | void g_key_file_remove_group (GKeyFile *key_file, | |
23399 | const gchar *group_name, | |
23400 | GError **error); | |
23401 | ||
23402 | ||
23403 | # 47 "/usr/include/glib-2.0/glib.h" 2 | |
23404 | ||
23405 | ||
23406 | ||
23407 | # 1 "/usr/include/glib-2.0/glib/gmappedfile.h" 1 | |
23408 | # 22 "/usr/include/glib-2.0/glib/gmappedfile.h" | |
23409 | #define __G_MAPPED_FILE_H__ | |
23410 | ||
23411 | ||
23412 | ||
23413 | ||
23414 | ||
23415 | typedef struct _GMappedFile GMappedFile; | |
23416 | ||
23417 | GMappedFile *g_mapped_file_new (const gchar *filename, | |
23418 | gboolean writable, | |
23419 | GError **error) __attribute__((__malloc__)); | |
23420 | gsize g_mapped_file_get_length (GMappedFile *file); | |
23421 | gchar *g_mapped_file_get_contents (GMappedFile *file); | |
23422 | void g_mapped_file_free (GMappedFile *file); | |
23423 | ||
23424 | ||
23425 | # 51 "/usr/include/glib-2.0/glib.h" 2 | |
23426 | # 1 "/usr/include/glib-2.0/glib/gmarkup.h" 1 | |
23427 | # 22 "/usr/include/glib-2.0/glib/gmarkup.h" | |
23428 | #define __G_MARKUP_H__ | |
23429 | ||
23430 | ||
23431 | ||
23432 | ||
23433 | ||
23434 | ||
23435 | ||
23436 | typedef enum | |
23437 | { | |
23438 | G_MARKUP_ERROR_BAD_UTF8, | |
23439 | G_MARKUP_ERROR_EMPTY, | |
23440 | G_MARKUP_ERROR_PARSE, | |
23441 | ||
23442 | ||
23443 | ||
23444 | G_MARKUP_ERROR_UNKNOWN_ELEMENT, | |
23445 | G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, | |
23446 | G_MARKUP_ERROR_INVALID_CONTENT | |
23447 | } GMarkupError; | |
23448 | ||
23449 | #define G_MARKUP_ERROR g_markup_error_quark () | |
23450 | ||
23451 | GQuark g_markup_error_quark (void); | |
23452 | ||
23453 | typedef enum | |
23454 | { | |
23455 | ||
23456 | G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1 << 0 | |
23457 | ||
23458 | } GMarkupParseFlags; | |
23459 | ||
23460 | typedef struct _GMarkupParseContext GMarkupParseContext; | |
23461 | typedef struct _GMarkupParser GMarkupParser; | |
23462 | ||
23463 | struct _GMarkupParser | |
23464 | { | |
23465 | ||
23466 | void (*start_element) (GMarkupParseContext *context, | |
23467 | const gchar *element_name, | |
23468 | const gchar **attribute_names, | |
23469 | const gchar **attribute_values, | |
23470 | gpointer user_data, | |
23471 | GError **error); | |
23472 | ||
23473 | ||
23474 | void (*end_element) (GMarkupParseContext *context, | |
23475 | const gchar *element_name, | |
23476 | gpointer user_data, | |
23477 | GError **error); | |
23478 | ||
23479 | ||
23480 | ||
23481 | void (*text) (GMarkupParseContext *context, | |
23482 | const gchar *text, | |
23483 | gsize text_len, | |
23484 | gpointer user_data, | |
23485 | GError **error); | |
23486 | ||
23487 | ||
23488 | ||
23489 | ||
23490 | ||
23491 | ||
23492 | void (*passthrough) (GMarkupParseContext *context, | |
23493 | const gchar *passthrough_text, | |
23494 | gsize text_len, | |
23495 | gpointer user_data, | |
23496 | GError **error); | |
23497 | ||
23498 | ||
23499 | ||
23500 | ||
23501 | void (*error) (GMarkupParseContext *context, | |
23502 | GError *error, | |
23503 | gpointer user_data); | |
23504 | }; | |
23505 | ||
23506 | GMarkupParseContext *g_markup_parse_context_new (const GMarkupParser *parser, | |
23507 | GMarkupParseFlags flags, | |
23508 | gpointer user_data, | |
23509 | GDestroyNotify user_data_dnotify); | |
23510 | void g_markup_parse_context_free (GMarkupParseContext *context); | |
23511 | gboolean g_markup_parse_context_parse (GMarkupParseContext *context, | |
23512 | const gchar *text, | |
23513 | gssize text_len, | |
23514 | GError **error); | |
23515 | ||
23516 | gboolean g_markup_parse_context_end_parse (GMarkupParseContext *context, | |
23517 | GError **error); | |
23518 | const gchar *g_markup_parse_context_get_element (GMarkupParseContext *context); | |
23519 | ||
23520 | ||
23521 | void g_markup_parse_context_get_position (GMarkupParseContext *context, | |
23522 | gint *line_number, | |
23523 | gint *char_number); | |
23524 | ||
23525 | ||
23526 | gchar* g_markup_escape_text (const gchar *text, | |
23527 | gssize length); | |
23528 | ||
23529 | gchar *g_markup_printf_escaped (const char *format, | |
23530 | ...) __attribute__((__format__ (__printf__, 1, 2))); | |
23531 | gchar *g_markup_vprintf_escaped (const char *format, | |
23532 | va_list args); | |
23533 | ||
23534 | ||
23535 | # 52 "/usr/include/glib-2.0/glib.h" 2 | |
23536 | ||
23537 | # 1 "/usr/include/glib-2.0/glib/gmessages.h" 1 | |
23538 | # 28 "/usr/include/glib-2.0/glib/gmessages.h" | |
23539 | #define __G_MESSAGES_H__ | |
23540 | # 37 "/usr/include/glib-2.0/glib/gmessages.h" | |
23541 | ||
23542 | # 38 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
23543 | ||
23544 | ||
23545 | ||
23546 | ||
23547 | ||
23548 | ||
23549 | gsize g_printf_string_upper_bound (const gchar* format, | |
23550 | va_list args); | |
23551 | ||
23552 | ||
23553 | ||
23554 | ||
23555 | #define G_LOG_LEVEL_USER_SHIFT (8) | |
23556 | ||
23557 | ||
23558 | ||
23559 | typedef enum | |
23560 | { | |
23561 | ||
23562 | G_LOG_FLAG_RECURSION = 1 << 0, | |
23563 | G_LOG_FLAG_FATAL = 1 << 1, | |
23564 | ||
23565 | ||
23566 | G_LOG_LEVEL_ERROR = 1 << 2, | |
23567 | G_LOG_LEVEL_CRITICAL = 1 << 3, | |
23568 | G_LOG_LEVEL_WARNING = 1 << 4, | |
23569 | G_LOG_LEVEL_MESSAGE = 1 << 5, | |
23570 | G_LOG_LEVEL_INFO = 1 << 6, | |
23571 | G_LOG_LEVEL_DEBUG = 1 << 7, | |
23572 | ||
23573 | G_LOG_LEVEL_MASK = ~(G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL) | |
23574 | } GLogLevelFlags; | |
23575 | ||
23576 | ||
23577 | #define G_LOG_FATAL_MASK (G_LOG_FLAG_RECURSION | G_LOG_LEVEL_ERROR) | |
23578 | ||
23579 | typedef void (*GLogFunc) (const gchar *log_domain, | |
23580 | GLogLevelFlags log_level, | |
23581 | const gchar *message, | |
23582 | gpointer user_data); | |
23583 | ||
23584 | ||
23585 | ||
23586 | guint g_log_set_handler (const gchar *log_domain, | |
23587 | GLogLevelFlags log_levels, | |
23588 | GLogFunc log_func, | |
23589 | gpointer user_data); | |
23590 | void g_log_remove_handler (const gchar *log_domain, | |
23591 | guint handler_id); | |
23592 | void g_log_default_handler (const gchar *log_domain, | |
23593 | GLogLevelFlags log_level, | |
23594 | const gchar *message, | |
23595 | gpointer unused_data); | |
23596 | GLogFunc g_log_set_default_handler (GLogFunc log_func, | |
23597 | gpointer user_data); | |
23598 | void g_log (const gchar *log_domain, | |
23599 | GLogLevelFlags log_level, | |
23600 | const gchar *format, | |
23601 | ...) __attribute__((__format__ (__printf__, 3, 4))); | |
23602 | void g_logv (const gchar *log_domain, | |
23603 | GLogLevelFlags log_level, | |
23604 | const gchar *format, | |
23605 | va_list args); | |
23606 | GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain, | |
23607 | GLogLevelFlags fatal_mask); | |
23608 | GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask); | |
23609 | ||
23610 | ||
23611 | void _g_log_fallback_handler (const gchar *log_domain, | |
23612 | GLogLevelFlags log_level, | |
23613 | const gchar *message, | |
23614 | gpointer unused_data) __attribute__((visibility("hidden"))); | |
23615 | ||
23616 | ||
23617 | void g_return_if_fail_warning (const char *log_domain, | |
23618 | const char *pretty_function, | |
23619 | const char *expression); | |
23620 | void g_assert_warning (const char *log_domain, | |
23621 | const char *file, | |
23622 | const int line, | |
23623 | const char *pretty_function, | |
23624 | const char *expression) __attribute__((__noreturn__)); | |
23625 | ||
23626 | ||
23627 | ||
23628 | #define G_LOG_DOMAIN ((gchar*) 0) | |
23629 | ||
23630 | ||
23631 | #define g_error(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, __VA_ARGS__) | |
23632 | ||
23633 | ||
23634 | #define g_message(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, __VA_ARGS__) | |
23635 | ||
23636 | ||
23637 | #define g_critical(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, __VA_ARGS__) | |
23638 | ||
23639 | ||
23640 | #define g_warning(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, __VA_ARGS__) | |
23641 | ||
23642 | ||
23643 | #define g_debug(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__) | |
23644 | # 205 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
23645 | typedef void (*GPrintFunc) (const gchar *string); | |
23646 | void g_print (const gchar *format, | |
23647 | ...) __attribute__((__format__ (__printf__, 1, 2))); | |
23648 | GPrintFunc g_set_print_handler (GPrintFunc func); | |
23649 | void g_printerr (const gchar *format, | |
23650 | ...) __attribute__((__format__ (__printf__, 1, 2))); | |
23651 | GPrintFunc g_set_printerr_handler (GPrintFunc func); | |
23652 | # 230 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
23653 | #define g_assert(expr) G_STMT_START{ if G_LIKELY(expr) { } else g_assert_warning (G_LOG_DOMAIN, __FILE__, __LINE__, __PRETTY_FUNCTION__, #expr); }G_STMT_END | |
23654 | ||
23655 | ||
23656 | ||
23657 | ||
23658 | ||
23659 | ||
23660 | ||
23661 | #define g_assert_not_reached() G_STMT_START{ g_assert_warning (G_LOG_DOMAIN, __FILE__, __LINE__, __PRETTY_FUNCTION__, NULL); }G_STMT_END | |
23662 | # 279 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
23663 | #define g_return_if_fail(expr) G_STMT_START{ if G_LIKELY(expr) { } else { g_return_if_fail_warning (G_LOG_DOMAIN, __PRETTY_FUNCTION__, #expr); return; }; }G_STMT_END | |
23664 | # 288 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
23665 | #define g_return_val_if_fail(expr,val) G_STMT_START{ if G_LIKELY(expr) { } else { g_return_if_fail_warning (G_LOG_DOMAIN, __PRETTY_FUNCTION__, #expr); return (val); }; }G_STMT_END | |
23666 | # 297 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
23667 | #define g_return_if_reached() G_STMT_START{ g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, "file %s: line %d (%s): should not be reached", __FILE__, __LINE__, __PRETTY_FUNCTION__); return; }G_STMT_END | |
23668 | # 306 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
23669 | #define g_return_val_if_reached(val) G_STMT_START{ g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, "file %s: line %d (%s): should not be reached", __FILE__, __LINE__, __PRETTY_FUNCTION__); return (val); }G_STMT_END | |
23670 | # 361 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
23671 | ||
23672 | # 54 "/usr/include/glib-2.0/glib.h" 2 | |
23673 | # 1 "/usr/include/glib-2.0/glib/gnode.h" 1 | |
23674 | # 28 "/usr/include/glib-2.0/glib/gnode.h" | |
23675 | #define __G_NODE_H__ | |
23676 | ||
23677 | ||
23678 | ||
23679 | ||
23680 | ||
23681 | typedef struct _GNode GNode; | |
23682 | ||
23683 | ||
23684 | typedef enum | |
23685 | { | |
23686 | G_TRAVERSE_LEAVES = 1 << 0, | |
23687 | G_TRAVERSE_NON_LEAVES = 1 << 1, | |
23688 | G_TRAVERSE_ALL = G_TRAVERSE_LEAVES | G_TRAVERSE_NON_LEAVES, | |
23689 | G_TRAVERSE_MASK = 0x03, | |
23690 | G_TRAVERSE_LEAFS = G_TRAVERSE_LEAVES, | |
23691 | G_TRAVERSE_NON_LEAFS = G_TRAVERSE_NON_LEAVES | |
23692 | } GTraverseFlags; | |
23693 | ||
23694 | ||
23695 | typedef enum | |
23696 | { | |
23697 | G_IN_ORDER, | |
23698 | G_PRE_ORDER, | |
23699 | G_POST_ORDER, | |
23700 | G_LEVEL_ORDER | |
23701 | } GTraverseType; | |
23702 | ||
23703 | typedef gboolean (*GNodeTraverseFunc) (GNode *node, | |
23704 | gpointer data); | |
23705 | typedef void (*GNodeForeachFunc) (GNode *node, | |
23706 | gpointer data); | |
23707 | typedef gpointer (*GCopyFunc) (gconstpointer src, | |
23708 | gpointer data); | |
23709 | ||
23710 | ||
23711 | ||
23712 | struct _GNode | |
23713 | { | |
23714 | gpointer data; | |
23715 | GNode *next; | |
23716 | GNode *prev; | |
23717 | GNode *parent; | |
23718 | GNode *children; | |
23719 | }; | |
23720 | ||
23721 | #define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && ((GNode*) (node))->prev == NULL && ((GNode*) (node))->next == NULL) | |
23722 | ||
23723 | ||
23724 | #define G_NODE_IS_LEAF(node) (((GNode*) (node))->children == NULL) | |
23725 | ||
23726 | GNode* g_node_new (gpointer data); | |
23727 | void g_node_destroy (GNode *root); | |
23728 | void g_node_unlink (GNode *node); | |
23729 | GNode* g_node_copy_deep (GNode *node, | |
23730 | GCopyFunc copy_func, | |
23731 | gpointer data); | |
23732 | GNode* g_node_copy (GNode *node); | |
23733 | GNode* g_node_insert (GNode *parent, | |
23734 | gint position, | |
23735 | GNode *node); | |
23736 | GNode* g_node_insert_before (GNode *parent, | |
23737 | GNode *sibling, | |
23738 | GNode *node); | |
23739 | GNode* g_node_insert_after (GNode *parent, | |
23740 | GNode *sibling, | |
23741 | GNode *node); | |
23742 | GNode* g_node_prepend (GNode *parent, | |
23743 | GNode *node); | |
23744 | guint g_node_n_nodes (GNode *root, | |
23745 | GTraverseFlags flags); | |
23746 | GNode* g_node_get_root (GNode *node); | |
23747 | gboolean g_node_is_ancestor (GNode *node, | |
23748 | GNode *descendant); | |
23749 | guint g_node_depth (GNode *node); | |
23750 | GNode* g_node_find (GNode *root, | |
23751 | GTraverseType order, | |
23752 | GTraverseFlags flags, | |
23753 | gpointer data); | |
23754 | ||
23755 | ||
23756 | #define g_node_append(parent,node) g_node_insert_before ((parent), NULL, (node)) | |
23757 | ||
23758 | #define g_node_insert_data(parent,position,data) g_node_insert ((parent), (position), g_node_new (data)) | |
23759 | ||
23760 | #define g_node_insert_data_before(parent,sibling,data) g_node_insert_before ((parent), (sibling), g_node_new (data)) | |
23761 | ||
23762 | #define g_node_prepend_data(parent,data) g_node_prepend ((parent), g_node_new (data)) | |
23763 | ||
23764 | #define g_node_append_data(parent,data) g_node_insert_before ((parent), NULL, g_node_new (data)) | |
23765 | ||
23766 | ||
23767 | ||
23768 | ||
23769 | ||
23770 | ||
23771 | ||
23772 | void g_node_traverse (GNode *root, | |
23773 | GTraverseType order, | |
23774 | GTraverseFlags flags, | |
23775 | gint max_depth, | |
23776 | GNodeTraverseFunc func, | |
23777 | gpointer data); | |
23778 | ||
23779 | ||
23780 | ||
23781 | ||
23782 | ||
23783 | ||
23784 | guint g_node_max_height (GNode *root); | |
23785 | ||
23786 | void g_node_children_foreach (GNode *node, | |
23787 | GTraverseFlags flags, | |
23788 | GNodeForeachFunc func, | |
23789 | gpointer data); | |
23790 | void g_node_reverse_children (GNode *node); | |
23791 | guint g_node_n_children (GNode *node); | |
23792 | GNode* g_node_nth_child (GNode *node, | |
23793 | guint n); | |
23794 | GNode* g_node_last_child (GNode *node); | |
23795 | GNode* g_node_find_child (GNode *node, | |
23796 | GTraverseFlags flags, | |
23797 | gpointer data); | |
23798 | gint g_node_child_position (GNode *node, | |
23799 | GNode *child); | |
23800 | gint g_node_child_index (GNode *node, | |
23801 | gpointer data); | |
23802 | ||
23803 | GNode* g_node_first_sibling (GNode *node); | |
23804 | GNode* g_node_last_sibling (GNode *node); | |
23805 | ||
23806 | #define g_node_prev_sibling(node) ((node) ? ((GNode*) (node))->prev : NULL) | |
23807 | ||
23808 | #define g_node_next_sibling(node) ((node) ? ((GNode*) (node))->next : NULL) | |
23809 | ||
23810 | #define g_node_first_child(node) ((node) ? ((GNode*) (node))->children : NULL) | |
23811 | ||
23812 | ||
23813 | ||
23814 | void g_node_push_allocator (gpointer dummy); | |
23815 | void g_node_pop_allocator (void); | |
23816 | ||
23817 | ||
23818 | # 55 "/usr/include/glib-2.0/glib.h" 2 | |
23819 | # 1 "/usr/include/glib-2.0/glib/goption.h" 1 | |
23820 | # 22 "/usr/include/glib-2.0/glib/goption.h" | |
23821 | #define __G_OPTION_H__ | |
23822 | ||
23823 | ||
23824 | ||
23825 | ||
23826 | ||
23827 | ||
23828 | typedef struct _GOptionContext GOptionContext; | |
23829 | typedef struct _GOptionGroup GOptionGroup; | |
23830 | typedef struct _GOptionEntry GOptionEntry; | |
23831 | ||
23832 | typedef enum | |
23833 | { | |
23834 | G_OPTION_FLAG_HIDDEN = 1 << 0, | |
23835 | G_OPTION_FLAG_IN_MAIN = 1 << 1, | |
23836 | G_OPTION_FLAG_REVERSE = 1 << 2, | |
23837 | G_OPTION_FLAG_NO_ARG = 1 << 3, | |
23838 | G_OPTION_FLAG_FILENAME = 1 << 4, | |
23839 | G_OPTION_FLAG_OPTIONAL_ARG = 1 << 5, | |
23840 | G_OPTION_FLAG_NOALIAS = 1 << 6 | |
23841 | } GOptionFlags; | |
23842 | ||
23843 | typedef enum | |
23844 | { | |
23845 | G_OPTION_ARG_NONE, | |
23846 | G_OPTION_ARG_STRING, | |
23847 | G_OPTION_ARG_INT, | |
23848 | G_OPTION_ARG_CALLBACK, | |
23849 | G_OPTION_ARG_FILENAME, | |
23850 | G_OPTION_ARG_STRING_ARRAY, | |
23851 | G_OPTION_ARG_FILENAME_ARRAY | |
23852 | } GOptionArg; | |
23853 | ||
23854 | typedef gboolean (*GOptionArgFunc) (const gchar *option_name, | |
23855 | const gchar *value, | |
23856 | gpointer data, | |
23857 | GError **error); | |
23858 | ||
23859 | typedef gboolean (*GOptionParseFunc) (GOptionContext *context, | |
23860 | GOptionGroup *group, | |
23861 | gpointer data, | |
23862 | GError **error); | |
23863 | ||
23864 | typedef void (*GOptionErrorFunc) (GOptionContext *context, | |
23865 | GOptionGroup *group, | |
23866 | gpointer data, | |
23867 | GError **error); | |
23868 | ||
23869 | #define G_OPTION_ERROR (g_option_error_quark ()) | |
23870 | ||
23871 | typedef enum | |
23872 | { | |
23873 | G_OPTION_ERROR_UNKNOWN_OPTION, | |
23874 | G_OPTION_ERROR_BAD_VALUE, | |
23875 | G_OPTION_ERROR_FAILED | |
23876 | } GOptionError; | |
23877 | ||
23878 | GQuark g_option_error_quark (void); | |
23879 | ||
23880 | ||
23881 | struct _GOptionEntry | |
23882 | { | |
23883 | const gchar *long_name; | |
23884 | gchar short_name; | |
23885 | gint flags; | |
23886 | ||
23887 | GOptionArg arg; | |
23888 | gpointer arg_data; | |
23889 | ||
23890 | const gchar *description; | |
23891 | const gchar *arg_description; | |
23892 | }; | |
23893 | ||
23894 | #define G_OPTION_REMAINING "" | |
23895 | ||
23896 | GOptionContext *g_option_context_new (const gchar *parameter_string); | |
23897 | void g_option_context_free (GOptionContext *context); | |
23898 | void g_option_context_set_help_enabled (GOptionContext *context, | |
23899 | gboolean help_enabled); | |
23900 | gboolean g_option_context_get_help_enabled (GOptionContext *context); | |
23901 | void g_option_context_set_ignore_unknown_options (GOptionContext *context, | |
23902 | gboolean ignore_unknown); | |
23903 | gboolean g_option_context_get_ignore_unknown_options (GOptionContext *context); | |
23904 | ||
23905 | void g_option_context_add_main_entries (GOptionContext *context, | |
23906 | const GOptionEntry *entries, | |
23907 | const gchar *translation_domain); | |
23908 | gboolean g_option_context_parse (GOptionContext *context, | |
23909 | gint *argc, | |
23910 | gchar ***argv, | |
23911 | GError **error); | |
23912 | ||
23913 | void g_option_context_add_group (GOptionContext *context, | |
23914 | GOptionGroup *group); | |
23915 | void g_option_context_set_main_group (GOptionContext *context, | |
23916 | GOptionGroup *group); | |
23917 | GOptionGroup *g_option_context_get_main_group (GOptionContext *context); | |
23918 | ||
23919 | ||
23920 | GOptionGroup *g_option_group_new (const gchar *name, | |
23921 | const gchar *description, | |
23922 | const gchar *help_description, | |
23923 | gpointer user_data, | |
23924 | GDestroyNotify destroy); | |
23925 | void g_option_group_set_parse_hooks (GOptionGroup *group, | |
23926 | GOptionParseFunc pre_parse_func, | |
23927 | GOptionParseFunc post_parse_func); | |
23928 | void g_option_group_set_error_hook (GOptionGroup *group, | |
23929 | GOptionErrorFunc error_func); | |
23930 | void g_option_group_free (GOptionGroup *group); | |
23931 | void g_option_group_add_entries (GOptionGroup *group, | |
23932 | const GOptionEntry *entries); | |
23933 | void g_option_group_set_translate_func (GOptionGroup *group, | |
23934 | GTranslateFunc func, | |
23935 | gpointer data, | |
23936 | GDestroyNotify destroy_notify); | |
23937 | void g_option_group_set_translation_domain (GOptionGroup *group, | |
23938 | const gchar *domain); | |
23939 | ||
23940 | ||
23941 | ||
23942 | # 56 "/usr/include/glib-2.0/glib.h" 2 | |
23943 | # 1 "/usr/include/glib-2.0/glib/gpattern.h" 1 | |
23944 | # 20 "/usr/include/glib-2.0/glib/gpattern.h" | |
23945 | #define __G_PATTERN_H__ | |
23946 | ||
23947 | ||
23948 | ||
23949 | ||
23950 | ||
23951 | ||
23952 | typedef struct _GPatternSpec GPatternSpec; | |
23953 | ||
23954 | GPatternSpec* g_pattern_spec_new (const gchar *pattern); | |
23955 | void g_pattern_spec_free (GPatternSpec *pspec); | |
23956 | gboolean g_pattern_spec_equal (GPatternSpec *pspec1, | |
23957 | GPatternSpec *pspec2); | |
23958 | gboolean g_pattern_match (GPatternSpec *pspec, | |
23959 | guint string_length, | |
23960 | const gchar *string, | |
23961 | const gchar *string_reversed); | |
23962 | gboolean g_pattern_match_string (GPatternSpec *pspec, | |
23963 | const gchar *string); | |
23964 | gboolean g_pattern_match_simple (const gchar *pattern, | |
23965 | const gchar *string); | |
23966 | ||
23967 | ||
23968 | # 57 "/usr/include/glib-2.0/glib.h" 2 | |
23969 | # 1 "/usr/include/glib-2.0/glib/gprimes.h" 1 | |
23970 | # 28 "/usr/include/glib-2.0/glib/gprimes.h" | |
23971 | #define __G_PRIMES_H__ | |
23972 | ||
23973 | ||
23974 | ||
23975 | ||
23976 | # 43 "/usr/include/glib-2.0/glib/gprimes.h" | |
23977 | guint g_spaced_primes_closest (guint num) __attribute__((__const__)); | |
23978 | ||
23979 | ||
23980 | # 58 "/usr/include/glib-2.0/glib.h" 2 | |
23981 | # 1 "/usr/include/glib-2.0/glib/gqsort.h" 1 | |
23982 | # 29 "/usr/include/glib-2.0/glib/gqsort.h" | |
23983 | #define __G_QSORT_H__ | |
23984 | ||
23985 | ||
23986 | ||
23987 | ||
23988 | ||
23989 | void g_qsort_with_data (gconstpointer pbase, | |
23990 | gint total_elems, | |
23991 | gsize size, | |
23992 | GCompareDataFunc compare_func, | |
23993 | gpointer user_data); | |
23994 | ||
23995 | ||
23996 | # 59 "/usr/include/glib-2.0/glib.h" 2 | |
23997 | ||
23998 | # 1 "/usr/include/glib-2.0/glib/gqueue.h" 1 | |
23999 | # 28 "/usr/include/glib-2.0/glib/gqueue.h" | |
24000 | #define __G_QUEUE_H__ | |
24001 | ||
24002 | ||
24003 | ||
24004 | ||
24005 | ||
24006 | typedef struct _GQueue GQueue; | |
24007 | ||
24008 | struct _GQueue | |
24009 | { | |
24010 | GList *head; | |
24011 | GList *tail; | |
24012 | guint length; | |
24013 | }; | |
24014 | ||
24015 | ||
24016 | ||
24017 | GQueue* g_queue_new (void); | |
24018 | void g_queue_free (GQueue *queue); | |
24019 | gboolean g_queue_is_empty (GQueue *queue); | |
24020 | guint g_queue_get_length (GQueue *queue); | |
24021 | void g_queue_reverse (GQueue *queue); | |
24022 | GQueue * g_queue_copy (GQueue *queue); | |
24023 | void g_queue_foreach (GQueue *queue, | |
24024 | GFunc func, | |
24025 | gpointer user_data); | |
24026 | GList * g_queue_find (GQueue *queue, | |
24027 | gconstpointer data); | |
24028 | GList * g_queue_find_custom (GQueue *queue, | |
24029 | gconstpointer data, | |
24030 | GCompareFunc func); | |
24031 | void g_queue_sort (GQueue *queue, | |
24032 | GCompareDataFunc compare_func, | |
24033 | gpointer user_data); | |
24034 | ||
24035 | void g_queue_push_head (GQueue *queue, | |
24036 | gpointer data); | |
24037 | void g_queue_push_tail (GQueue *queue, | |
24038 | gpointer data); | |
24039 | void g_queue_push_nth (GQueue *queue, | |
24040 | gpointer data, | |
24041 | gint n); | |
24042 | gpointer g_queue_pop_head (GQueue *queue); | |
24043 | gpointer g_queue_pop_tail (GQueue *queue); | |
24044 | gpointer g_queue_pop_nth (GQueue *queue, | |
24045 | guint n); | |
24046 | gpointer g_queue_peek_head (GQueue *queue); | |
24047 | gpointer g_queue_peek_tail (GQueue *queue); | |
24048 | gpointer g_queue_peek_nth (GQueue *queue, | |
24049 | guint n); | |
24050 | gint g_queue_index (GQueue *queue, | |
24051 | gconstpointer data); | |
24052 | void g_queue_remove (GQueue *queue, | |
24053 | gconstpointer data); | |
24054 | void g_queue_remove_all (GQueue *queue, | |
24055 | gconstpointer data); | |
24056 | void g_queue_insert_before (GQueue *queue, | |
24057 | GList *sibling, | |
24058 | gpointer data); | |
24059 | void g_queue_insert_after (GQueue *queue, | |
24060 | GList *sibling, | |
24061 | gpointer data); | |
24062 | void g_queue_insert_sorted (GQueue *queue, | |
24063 | gpointer data, | |
24064 | GCompareDataFunc func, | |
24065 | gpointer user_data); | |
24066 | ||
24067 | void g_queue_push_head_link (GQueue *queue, | |
24068 | GList *link_); | |
24069 | void g_queue_push_tail_link (GQueue *queue, | |
24070 | GList *link_); | |
24071 | void g_queue_push_nth_link (GQueue *queue, | |
24072 | gint n, | |
24073 | GList *link_); | |
24074 | GList* g_queue_pop_head_link (GQueue *queue); | |
24075 | GList* g_queue_pop_tail_link (GQueue *queue); | |
24076 | GList* g_queue_pop_nth_link (GQueue *queue, | |
24077 | guint n); | |
24078 | GList* g_queue_peek_head_link (GQueue *queue); | |
24079 | GList* g_queue_peek_tail_link (GQueue *queue); | |
24080 | GList* g_queue_peek_nth_link (GQueue *queue, | |
24081 | guint n); | |
24082 | gint g_queue_link_index (GQueue *queue, | |
24083 | GList *link_); | |
24084 | void g_queue_unlink (GQueue *queue, | |
24085 | GList *link_); | |
24086 | void g_queue_delete_link (GQueue *queue, | |
24087 | GList *link_); | |
24088 | ||
24089 | ||
24090 | # 61 "/usr/include/glib-2.0/glib.h" 2 | |
24091 | # 1 "/usr/include/glib-2.0/glib/grand.h" 1 | |
24092 | # 28 "/usr/include/glib-2.0/glib/grand.h" | |
24093 | #define __G_RAND_H__ | |
24094 | ||
24095 | ||
24096 | ||
24097 | ||
24098 | ||
24099 | typedef struct _GRand GRand; | |
24100 | # 45 "/usr/include/glib-2.0/glib/grand.h" | |
24101 | GRand* g_rand_new_with_seed (guint32 seed); | |
24102 | GRand* g_rand_new_with_seed_array (const guint32 *seed, | |
24103 | guint seed_length); | |
24104 | GRand* g_rand_new (void); | |
24105 | void g_rand_free (GRand *rand_); | |
24106 | GRand* g_rand_copy (GRand *rand_); | |
24107 | void g_rand_set_seed (GRand *rand_, | |
24108 | guint32 seed); | |
24109 | void g_rand_set_seed_array (GRand *rand_, | |
24110 | const guint32 *seed, | |
24111 | guint seed_length); | |
24112 | ||
24113 | #define g_rand_boolean(rand_) ((g_rand_int (rand_) & (1 << 15)) != 0) | |
24114 | ||
24115 | guint32 g_rand_int (GRand *rand_); | |
24116 | gint32 g_rand_int_range (GRand *rand_, | |
24117 | gint32 begin, | |
24118 | gint32 end); | |
24119 | gdouble g_rand_double (GRand *rand_); | |
24120 | gdouble g_rand_double_range (GRand *rand_, | |
24121 | gdouble begin, | |
24122 | gdouble end); | |
24123 | void g_random_set_seed (guint32 seed); | |
24124 | ||
24125 | #define g_random_boolean() ((g_random_int () & (1 << 15)) != 0) | |
24126 | ||
24127 | guint32 g_random_int (void); | |
24128 | gint32 g_random_int_range (gint32 begin, | |
24129 | gint32 end); | |
24130 | gdouble g_random_double (void); | |
24131 | gdouble g_random_double_range (gdouble begin, | |
24132 | gdouble end); | |
24133 | ||
24134 | ||
24135 | ||
24136 | # 62 "/usr/include/glib-2.0/glib.h" 2 | |
24137 | # 1 "/usr/include/glib-2.0/glib/grel.h" 1 | |
24138 | # 28 "/usr/include/glib-2.0/glib/grel.h" | |
24139 | #define __G_REL_H__ | |
24140 | ||
24141 | ||
24142 | ||
24143 | ||
24144 | ||
24145 | typedef struct _GRelation GRelation; | |
24146 | typedef struct _GTuples GTuples; | |
24147 | ||
24148 | struct _GTuples | |
24149 | { | |
24150 | guint len; | |
24151 | }; | |
24152 | # 65 "/usr/include/glib-2.0/glib/grel.h" | |
24153 | GRelation* g_relation_new (gint fields); | |
24154 | void g_relation_destroy (GRelation *relation); | |
24155 | void g_relation_index (GRelation *relation, | |
24156 | gint field, | |
24157 | GHashFunc hash_func, | |
24158 | GEqualFunc key_equal_func); | |
24159 | void g_relation_insert (GRelation *relation, | |
24160 | ...); | |
24161 | gint g_relation_delete (GRelation *relation, | |
24162 | gconstpointer key, | |
24163 | gint field); | |
24164 | GTuples* g_relation_select (GRelation *relation, | |
24165 | gconstpointer key, | |
24166 | gint field); | |
24167 | gint g_relation_count (GRelation *relation, | |
24168 | gconstpointer key, | |
24169 | gint field); | |
24170 | gboolean g_relation_exists (GRelation *relation, | |
24171 | ...); | |
24172 | void g_relation_print (GRelation *relation); | |
24173 | ||
24174 | void g_tuples_destroy (GTuples *tuples); | |
24175 | gpointer g_tuples_index (GTuples *tuples, | |
24176 | gint index_, | |
24177 | gint field); | |
24178 | ||
24179 | ||
24180 | # 63 "/usr/include/glib-2.0/glib.h" 2 | |
24181 | # 1 "/usr/include/glib-2.0/glib/gscanner.h" 1 | |
24182 | # 28 "/usr/include/glib-2.0/glib/gscanner.h" | |
24183 | #define __G_SCANNER_H__ | |
24184 | ||
24185 | ||
24186 | ||
24187 | ||
24188 | ||
24189 | ||
24190 | typedef struct _GScanner GScanner; | |
24191 | typedef struct _GScannerConfig GScannerConfig; | |
24192 | typedef union _GTokenValue GTokenValue; | |
24193 | ||
24194 | typedef void (*GScannerMsgFunc) (GScanner *scanner, | |
24195 | gchar *message, | |
24196 | gboolean error); | |
24197 | ||
24198 | ||
24199 | ||
24200 | ||
24201 | ||
24202 | #define G_CSET_A_2_Z "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
24203 | #define G_CSET_a_2_z "abcdefghijklmnopqrstuvwxyz" | |
24204 | #define G_CSET_DIGITS "0123456789" | |
24205 | #define G_CSET_LATINC "\300\301\302\303\304\305\306" "\307\310\311\312\313\314\315\316\317\320" "\321\322\323\324\325\326" "\330\331\332\333\334\335\336" | |
24206 | ||
24207 | ||
24208 | ||
24209 | #define G_CSET_LATINS "\337\340\341\342\343\344\345\346" "\347\350\351\352\353\354\355\356\357\360" "\361\362\363\364\365\366" "\370\371\372\373\374\375\376\377" | |
24210 | ||
24211 | ||
24212 | ||
24213 | ||
24214 | ||
24215 | typedef enum | |
24216 | { | |
24217 | G_ERR_UNKNOWN, | |
24218 | G_ERR_UNEXP_EOF, | |
24219 | G_ERR_UNEXP_EOF_IN_STRING, | |
24220 | G_ERR_UNEXP_EOF_IN_COMMENT, | |
24221 | G_ERR_NON_DIGIT_IN_CONST, | |
24222 | G_ERR_DIGIT_RADIX, | |
24223 | G_ERR_FLOAT_RADIX, | |
24224 | G_ERR_FLOAT_MALFORMED | |
24225 | } GErrorType; | |
24226 | ||
24227 | ||
24228 | typedef enum | |
24229 | { | |
24230 | G_TOKEN_EOF = 0, | |
24231 | ||
24232 | G_TOKEN_LEFT_PAREN = '(', | |
24233 | G_TOKEN_RIGHT_PAREN = ')', | |
24234 | G_TOKEN_LEFT_CURLY = '{', | |
24235 | G_TOKEN_RIGHT_CURLY = '}', | |
24236 | G_TOKEN_LEFT_BRACE = '[', | |
24237 | G_TOKEN_RIGHT_BRACE = ']', | |
24238 | G_TOKEN_EQUAL_SIGN = '=', | |
24239 | G_TOKEN_COMMA = ',', | |
24240 | ||
24241 | G_TOKEN_NONE = 256, | |
24242 | ||
24243 | G_TOKEN_ERROR, | |
24244 | ||
24245 | G_TOKEN_CHAR, | |
24246 | G_TOKEN_BINARY, | |
24247 | G_TOKEN_OCTAL, | |
24248 | G_TOKEN_INT, | |
24249 | G_TOKEN_HEX, | |
24250 | G_TOKEN_FLOAT, | |
24251 | G_TOKEN_STRING, | |
24252 | ||
24253 | G_TOKEN_SYMBOL, | |
24254 | G_TOKEN_IDENTIFIER, | |
24255 | G_TOKEN_IDENTIFIER_NULL, | |
24256 | ||
24257 | G_TOKEN_COMMENT_SINGLE, | |
24258 | G_TOKEN_COMMENT_MULTI, | |
24259 | G_TOKEN_LAST | |
24260 | } GTokenType; | |
24261 | ||
24262 | union _GTokenValue | |
24263 | { | |
24264 | gpointer v_symbol; | |
24265 | gchar *v_identifier; | |
24266 | gulong v_binary; | |
24267 | gulong v_octal; | |
24268 | gulong v_int; | |
24269 | guint64 v_int64; | |
24270 | gdouble v_float; | |
24271 | gulong v_hex; | |
24272 | gchar *v_string; | |
24273 | gchar *v_comment; | |
24274 | guchar v_char; | |
24275 | guint v_error; | |
24276 | }; | |
24277 | ||
24278 | struct _GScannerConfig | |
24279 | { | |
24280 | ||
24281 | ||
24282 | gchar *cset_skip_characters; | |
24283 | gchar *cset_identifier_first; | |
24284 | gchar *cset_identifier_nth; | |
24285 | gchar *cpair_comment_single; | |
24286 | ||
24287 | ||
24288 | ||
24289 | guint case_sensitive : 1; | |
24290 | ||
24291 | ||
24292 | ||
24293 | ||
24294 | guint skip_comment_multi : 1; | |
24295 | guint skip_comment_single : 1; | |
24296 | guint scan_comment_multi : 1; | |
24297 | guint scan_identifier : 1; | |
24298 | guint scan_identifier_1char : 1; | |
24299 | guint scan_identifier_NULL : 1; | |
24300 | guint scan_symbols : 1; | |
24301 | guint scan_binary : 1; | |
24302 | guint scan_octal : 1; | |
24303 | guint scan_float : 1; | |
24304 | guint scan_hex : 1; | |
24305 | guint scan_hex_dollar : 1; | |
24306 | guint scan_string_sq : 1; | |
24307 | guint scan_string_dq : 1; | |
24308 | guint numbers_2_int : 1; | |
24309 | guint int_2_float : 1; | |
24310 | guint identifier_2_string : 1; | |
24311 | guint char_2_token : 1; | |
24312 | guint symbol_2_token : 1; | |
24313 | guint scope_0_fallback : 1; | |
24314 | guint store_int64 : 1; | |
24315 | guint padding_dummy; | |
24316 | }; | |
24317 | ||
24318 | struct _GScanner | |
24319 | { | |
24320 | ||
24321 | gpointer user_data; | |
24322 | guint max_parse_errors; | |
24323 | ||
24324 | ||
24325 | guint parse_errors; | |
24326 | ||
24327 | ||
24328 | const gchar *input_name; | |
24329 | ||
24330 | ||
24331 | GData *qdata; | |
24332 | ||
24333 | ||
24334 | GScannerConfig *config; | |
24335 | ||
24336 | ||
24337 | GTokenType token; | |
24338 | GTokenValue value; | |
24339 | guint line; | |
24340 | guint position; | |
24341 | ||
24342 | ||
24343 | GTokenType next_token; | |
24344 | GTokenValue next_value; | |
24345 | guint next_line; | |
24346 | guint next_position; | |
24347 | ||
24348 | ||
24349 | GHashTable *symbol_table; | |
24350 | gint input_fd; | |
24351 | const gchar *text; | |
24352 | const gchar *text_end; | |
24353 | gchar *buffer; | |
24354 | guint scope_id; | |
24355 | ||
24356 | ||
24357 | GScannerMsgFunc msg_handler; | |
24358 | }; | |
24359 | ||
24360 | GScanner* g_scanner_new (const GScannerConfig *config_templ); | |
24361 | void g_scanner_destroy (GScanner *scanner); | |
24362 | void g_scanner_input_file (GScanner *scanner, | |
24363 | gint input_fd); | |
24364 | void g_scanner_sync_file_offset (GScanner *scanner); | |
24365 | void g_scanner_input_text (GScanner *scanner, | |
24366 | const gchar *text, | |
24367 | guint text_len); | |
24368 | GTokenType g_scanner_get_next_token (GScanner *scanner); | |
24369 | GTokenType g_scanner_peek_next_token (GScanner *scanner); | |
24370 | GTokenType g_scanner_cur_token (GScanner *scanner); | |
24371 | GTokenValue g_scanner_cur_value (GScanner *scanner); | |
24372 | guint g_scanner_cur_line (GScanner *scanner); | |
24373 | guint g_scanner_cur_position (GScanner *scanner); | |
24374 | gboolean g_scanner_eof (GScanner *scanner); | |
24375 | guint g_scanner_set_scope (GScanner *scanner, | |
24376 | guint scope_id); | |
24377 | void g_scanner_scope_add_symbol (GScanner *scanner, | |
24378 | guint scope_id, | |
24379 | const gchar *symbol, | |
24380 | gpointer value); | |
24381 | void g_scanner_scope_remove_symbol (GScanner *scanner, | |
24382 | guint scope_id, | |
24383 | const gchar *symbol); | |
24384 | gpointer g_scanner_scope_lookup_symbol (GScanner *scanner, | |
24385 | guint scope_id, | |
24386 | const gchar *symbol); | |
24387 | void g_scanner_scope_foreach_symbol (GScanner *scanner, | |
24388 | guint scope_id, | |
24389 | GHFunc func, | |
24390 | gpointer user_data); | |
24391 | gpointer g_scanner_lookup_symbol (GScanner *scanner, | |
24392 | const gchar *symbol); | |
24393 | void g_scanner_unexp_token (GScanner *scanner, | |
24394 | GTokenType expected_token, | |
24395 | const gchar *identifier_spec, | |
24396 | const gchar *symbol_spec, | |
24397 | const gchar *symbol_name, | |
24398 | const gchar *message, | |
24399 | gint is_error); | |
24400 | void g_scanner_error (GScanner *scanner, | |
24401 | const gchar *format, | |
24402 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
24403 | void g_scanner_warn (GScanner *scanner, | |
24404 | const gchar *format, | |
24405 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
24406 | ||
24407 | ||
24408 | ||
24409 | ||
24410 | #define g_scanner_add_symbol(scanner,symbol,value) G_STMT_START { g_scanner_scope_add_symbol ((scanner), 0, (symbol), (value)); } G_STMT_END | |
24411 | ||
24412 | ||
24413 | #define g_scanner_remove_symbol(scanner,symbol) G_STMT_START { g_scanner_scope_remove_symbol ((scanner), 0, (symbol)); } G_STMT_END | |
24414 | ||
24415 | ||
24416 | #define g_scanner_foreach_symbol(scanner,func,data) G_STMT_START { g_scanner_scope_foreach_symbol ((scanner), 0, (func), (data)); } G_STMT_END | |
24417 | ||
24418 | ||
24419 | ||
24420 | ||
24421 | ||
24422 | #define g_scanner_freeze_symbol_table(scanner) ((void)0) | |
24423 | #define g_scanner_thaw_symbol_table(scanner) ((void)0) | |
24424 | ||
24425 | ||
24426 | ||
24427 | ||
24428 | # 64 "/usr/include/glib-2.0/glib.h" 2 | |
24429 | # 1 "/usr/include/glib-2.0/glib/gshell.h" 1 | |
24430 | # 22 "/usr/include/glib-2.0/glib/gshell.h" | |
24431 | #define __G_SHELL_H__ | |
24432 | ||
24433 | ||
24434 | ||
24435 | ||
24436 | ||
24437 | #define G_SHELL_ERROR g_shell_error_quark () | |
24438 | ||
24439 | typedef enum | |
24440 | { | |
24441 | ||
24442 | G_SHELL_ERROR_BAD_QUOTING, | |
24443 | ||
24444 | G_SHELL_ERROR_EMPTY_STRING, | |
24445 | G_SHELL_ERROR_FAILED | |
24446 | } GShellError; | |
24447 | ||
24448 | GQuark g_shell_error_quark (void); | |
24449 | ||
24450 | gchar* g_shell_quote (const gchar *unquoted_string); | |
24451 | gchar* g_shell_unquote (const gchar *quoted_string, | |
24452 | GError **error); | |
24453 | gboolean g_shell_parse_argv (const gchar *command_line, | |
24454 | gint *argcp, | |
24455 | gchar ***argvp, | |
24456 | GError **error); | |
24457 | ||
24458 | ||
24459 | # 65 "/usr/include/glib-2.0/glib.h" 2 | |
24460 | ||
24461 | # 1 "/usr/include/glib-2.0/glib/gspawn.h" 1 | |
24462 | # 22 "/usr/include/glib-2.0/glib/gspawn.h" | |
24463 | #define __G_SPAWN_H__ | |
24464 | ||
24465 | ||
24466 | ||
24467 | ||
24468 | ||
24469 | ||
24470 | #define G_SPAWN_ERROR g_spawn_error_quark () | |
24471 | ||
24472 | typedef enum | |
24473 | { | |
24474 | G_SPAWN_ERROR_FORK, | |
24475 | G_SPAWN_ERROR_READ, | |
24476 | G_SPAWN_ERROR_CHDIR, | |
24477 | G_SPAWN_ERROR_ACCES, | |
24478 | G_SPAWN_ERROR_PERM, | |
24479 | G_SPAWN_ERROR_2BIG, | |
24480 | G_SPAWN_ERROR_NOEXEC, | |
24481 | G_SPAWN_ERROR_NAMETOOLONG, | |
24482 | G_SPAWN_ERROR_NOENT, | |
24483 | G_SPAWN_ERROR_NOMEM, | |
24484 | G_SPAWN_ERROR_NOTDIR, | |
24485 | G_SPAWN_ERROR_LOOP, | |
24486 | G_SPAWN_ERROR_TXTBUSY, | |
24487 | G_SPAWN_ERROR_IO, | |
24488 | G_SPAWN_ERROR_NFILE, | |
24489 | G_SPAWN_ERROR_MFILE, | |
24490 | G_SPAWN_ERROR_INVAL, | |
24491 | G_SPAWN_ERROR_ISDIR, | |
24492 | G_SPAWN_ERROR_LIBBAD, | |
24493 | G_SPAWN_ERROR_FAILED | |
24494 | ||
24495 | ||
24496 | } GSpawnError; | |
24497 | ||
24498 | typedef void (* GSpawnChildSetupFunc) (gpointer user_data); | |
24499 | ||
24500 | typedef enum | |
24501 | { | |
24502 | G_SPAWN_LEAVE_DESCRIPTORS_OPEN = 1 << 0, | |
24503 | G_SPAWN_DO_NOT_REAP_CHILD = 1 << 1, | |
24504 | ||
24505 | G_SPAWN_SEARCH_PATH = 1 << 2, | |
24506 | ||
24507 | G_SPAWN_STDOUT_TO_DEV_NULL = 1 << 3, | |
24508 | G_SPAWN_STDERR_TO_DEV_NULL = 1 << 4, | |
24509 | G_SPAWN_CHILD_INHERITS_STDIN = 1 << 5, | |
24510 | G_SPAWN_FILE_AND_ARGV_ZERO = 1 << 6 | |
24511 | } GSpawnFlags; | |
24512 | ||
24513 | GQuark g_spawn_error_quark (void); | |
24514 | # 82 "/usr/include/glib-2.0/glib/gspawn.h" | |
24515 | gboolean g_spawn_async (const gchar *working_directory, | |
24516 | gchar **argv, | |
24517 | gchar **envp, | |
24518 | GSpawnFlags flags, | |
24519 | GSpawnChildSetupFunc child_setup, | |
24520 | gpointer user_data, | |
24521 | GPid *child_pid, | |
24522 | GError **error); | |
24523 | ||
24524 | ||
24525 | ||
24526 | ||
24527 | ||
24528 | gboolean g_spawn_async_with_pipes (const gchar *working_directory, | |
24529 | gchar **argv, | |
24530 | gchar **envp, | |
24531 | GSpawnFlags flags, | |
24532 | GSpawnChildSetupFunc child_setup, | |
24533 | gpointer user_data, | |
24534 | GPid *child_pid, | |
24535 | gint *standard_input, | |
24536 | gint *standard_output, | |
24537 | gint *standard_error, | |
24538 | GError **error); | |
24539 | ||
24540 | ||
24541 | ||
24542 | ||
24543 | ||
24544 | ||
24545 | gboolean g_spawn_sync (const gchar *working_directory, | |
24546 | gchar **argv, | |
24547 | gchar **envp, | |
24548 | GSpawnFlags flags, | |
24549 | GSpawnChildSetupFunc child_setup, | |
24550 | gpointer user_data, | |
24551 | gchar **standard_output, | |
24552 | gchar **standard_error, | |
24553 | gint *exit_status, | |
24554 | GError **error); | |
24555 | ||
24556 | gboolean g_spawn_command_line_sync (const gchar *command_line, | |
24557 | gchar **standard_output, | |
24558 | gchar **standard_error, | |
24559 | gint *exit_status, | |
24560 | GError **error); | |
24561 | gboolean g_spawn_command_line_async (const gchar *command_line, | |
24562 | GError **error); | |
24563 | ||
24564 | void g_spawn_close_pid (GPid pid); | |
24565 | ||
24566 | ||
24567 | ||
24568 | # 67 "/usr/include/glib-2.0/glib.h" 2 | |
24569 | # 1 "/usr/include/glib-2.0/glib/gstrfuncs.h" 1 | |
24570 | # 28 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
24571 | #define __G_STRFUNCS_H__ | |
24572 | ||
24573 | ||
24574 | ||
24575 | ||
24576 | ||
24577 | ||
24578 | ||
24579 | typedef enum { | |
24580 | G_ASCII_ALNUM = 1 << 0, | |
24581 | G_ASCII_ALPHA = 1 << 1, | |
24582 | G_ASCII_CNTRL = 1 << 2, | |
24583 | G_ASCII_DIGIT = 1 << 3, | |
24584 | G_ASCII_GRAPH = 1 << 4, | |
24585 | G_ASCII_LOWER = 1 << 5, | |
24586 | G_ASCII_PRINT = 1 << 6, | |
24587 | G_ASCII_PUNCT = 1 << 7, | |
24588 | G_ASCII_SPACE = 1 << 8, | |
24589 | G_ASCII_UPPER = 1 << 9, | |
24590 | G_ASCII_XDIGIT = 1 << 10 | |
24591 | } GAsciiType; | |
24592 | ||
24593 | extern const guint16 * const g_ascii_table; | |
24594 | ||
24595 | #define g_ascii_isalnum(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_ALNUM) != 0) | |
24596 | ||
24597 | ||
24598 | #define g_ascii_isalpha(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_ALPHA) != 0) | |
24599 | ||
24600 | ||
24601 | #define g_ascii_iscntrl(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_CNTRL) != 0) | |
24602 | ||
24603 | ||
24604 | #define g_ascii_isdigit(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_DIGIT) != 0) | |
24605 | ||
24606 | ||
24607 | #define g_ascii_isgraph(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_GRAPH) != 0) | |
24608 | ||
24609 | ||
24610 | #define g_ascii_islower(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_LOWER) != 0) | |
24611 | ||
24612 | ||
24613 | #define g_ascii_isprint(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_PRINT) != 0) | |
24614 | ||
24615 | ||
24616 | #define g_ascii_ispunct(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_PUNCT) != 0) | |
24617 | ||
24618 | ||
24619 | #define g_ascii_isspace(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_SPACE) != 0) | |
24620 | ||
24621 | ||
24622 | #define g_ascii_isupper(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_UPPER) != 0) | |
24623 | ||
24624 | ||
24625 | #define g_ascii_isxdigit(c) ((g_ascii_table[(guchar) (c)] & G_ASCII_XDIGIT) != 0) | |
24626 | ||
24627 | ||
24628 | gchar g_ascii_tolower (gchar c) __attribute__((__const__)); | |
24629 | gchar g_ascii_toupper (gchar c) __attribute__((__const__)); | |
24630 | ||
24631 | gint g_ascii_digit_value (gchar c) __attribute__((__const__)); | |
24632 | gint g_ascii_xdigit_value (gchar c) __attribute__((__const__)); | |
24633 | ||
24634 | ||
24635 | ||
24636 | ||
24637 | #define G_STR_DELIMITERS "_-|> <." | |
24638 | gchar* g_strdelimit (gchar *string, | |
24639 | const gchar *delimiters, | |
24640 | gchar new_delimiter); | |
24641 | gchar* g_strcanon (gchar *string, | |
24642 | const gchar *valid_chars, | |
24643 | gchar substitutor); | |
24644 | const gchar* g_strerror (gint errnum) __attribute__((__const__)); | |
24645 | const gchar* g_strsignal (gint signum) __attribute__((__const__)); | |
24646 | gchar* g_strreverse (gchar *string); | |
24647 | gsize g_strlcpy (gchar *dest, | |
24648 | const gchar *src, | |
24649 | gsize dest_size); | |
24650 | gsize g_strlcat (gchar *dest, | |
24651 | const gchar *src, | |
24652 | gsize dest_size); | |
24653 | gchar * g_strstr_len (const gchar *haystack, | |
24654 | gssize haystack_len, | |
24655 | const gchar *needle); | |
24656 | gchar * g_strrstr (const gchar *haystack, | |
24657 | const gchar *needle); | |
24658 | gchar * g_strrstr_len (const gchar *haystack, | |
24659 | gssize haystack_len, | |
24660 | const gchar *needle); | |
24661 | ||
24662 | gboolean g_str_has_suffix (const gchar *str, | |
24663 | const gchar *suffix); | |
24664 | gboolean g_str_has_prefix (const gchar *str, | |
24665 | const gchar *prefix); | |
24666 | ||
24667 | ||
24668 | ||
24669 | gdouble g_strtod (const gchar *nptr, | |
24670 | gchar **endptr); | |
24671 | gdouble g_ascii_strtod (const gchar *nptr, | |
24672 | gchar **endptr); | |
24673 | guint64 g_ascii_strtoull (const gchar *nptr, | |
24674 | gchar **endptr, | |
24675 | guint base); | |
24676 | ||
24677 | ||
24678 | ||
24679 | #define G_ASCII_DTOSTR_BUF_SIZE (29 + 10) | |
24680 | gchar * g_ascii_dtostr (gchar *buffer, | |
24681 | gint buf_len, | |
24682 | gdouble d); | |
24683 | gchar * g_ascii_formatd (gchar *buffer, | |
24684 | gint buf_len, | |
24685 | const gchar *format, | |
24686 | gdouble d); | |
24687 | ||
24688 | ||
24689 | gchar* g_strchug (gchar *string); | |
24690 | ||
24691 | gchar* g_strchomp (gchar *string); | |
24692 | ||
24693 | #define g_strstrip(string) g_strchomp (g_strchug (string)) | |
24694 | ||
24695 | gint g_ascii_strcasecmp (const gchar *s1, | |
24696 | const gchar *s2); | |
24697 | gint g_ascii_strncasecmp (const gchar *s1, | |
24698 | const gchar *s2, | |
24699 | gsize n); | |
24700 | gchar* g_ascii_strdown (const gchar *str, | |
24701 | gssize len) __attribute__((__malloc__)); | |
24702 | gchar* g_ascii_strup (const gchar *str, | |
24703 | gssize len) __attribute__((__malloc__)); | |
24704 | # 169 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
24705 | gint g_strcasecmp (const gchar *s1, | |
24706 | const gchar *s2); | |
24707 | gint g_strncasecmp (const gchar *s1, | |
24708 | const gchar *s2, | |
24709 | guint n); | |
24710 | gchar* g_strdown (gchar *string); | |
24711 | gchar* g_strup (gchar *string); | |
24712 | ||
24713 | ||
24714 | ||
24715 | ||
24716 | ||
24717 | ||
24718 | gchar* g_strdup (const gchar *str) __attribute__((__malloc__)); | |
24719 | gchar* g_strdup_printf (const gchar *format, | |
24720 | ...) __attribute__((__format__ (__printf__, 1, 2))) __attribute__((__malloc__)); | |
24721 | gchar* g_strdup_vprintf (const gchar *format, | |
24722 | va_list args) __attribute__((__malloc__)); | |
24723 | gchar* g_strndup (const gchar *str, | |
24724 | gsize n) __attribute__((__malloc__)); | |
24725 | gchar* g_strnfill (gsize length, | |
24726 | gchar fill_char) __attribute__((__malloc__)); | |
24727 | gchar* g_strconcat (const gchar *string1, | |
24728 | ...) __attribute__((__malloc__)) ; | |
24729 | gchar* g_strjoin (const gchar *separator, | |
24730 | ...) __attribute__((__malloc__)) ; | |
24731 | ||
24732 | ||
24733 | ||
24734 | ||
24735 | ||
24736 | gchar* g_strcompress (const gchar *source) __attribute__((__malloc__)); | |
24737 | # 210 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
24738 | gchar* g_strescape (const gchar *source, | |
24739 | const gchar *exceptions) __attribute__((__malloc__)); | |
24740 | ||
24741 | gpointer g_memdup (gconstpointer mem, | |
24742 | guint byte_size) __attribute__((__malloc__)); | |
24743 | # 225 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
24744 | gchar** g_strsplit (const gchar *string, | |
24745 | const gchar *delimiter, | |
24746 | gint max_tokens) __attribute__((__malloc__)); | |
24747 | gchar ** g_strsplit_set (const gchar *string, | |
24748 | const gchar *delimiters, | |
24749 | gint max_tokens) __attribute__((__malloc__)); | |
24750 | gchar* g_strjoinv (const gchar *separator, | |
24751 | gchar **str_array) __attribute__((__malloc__)); | |
24752 | void g_strfreev (gchar **str_array); | |
24753 | gchar** g_strdupv (gchar **str_array) __attribute__((__malloc__)); | |
24754 | guint g_strv_length (gchar **str_array); | |
24755 | ||
24756 | gchar* g_stpcpy (gchar *dest, | |
24757 | const char *src); | |
24758 | ||
24759 | const gchar *g_strip_context (const gchar *msgid, | |
24760 | const gchar *msgval); | |
24761 | ||
24762 | ||
24763 | # 68 "/usr/include/glib-2.0/glib.h" 2 | |
24764 | ||
24765 | ||
24766 | # 1 "/usr/include/glib-2.0/glib/gthreadpool.h" 1 | |
24767 | # 28 "/usr/include/glib-2.0/glib/gthreadpool.h" | |
24768 | #define __G_THREADPOOL_H__ | |
24769 | ||
24770 | ||
24771 | ||
24772 | ||
24773 | ||
24774 | typedef struct _GThreadPool GThreadPool; | |
24775 | ||
24776 | ||
24777 | ||
24778 | ||
24779 | ||
24780 | ||
24781 | struct _GThreadPool | |
24782 | { | |
24783 | GFunc func; | |
24784 | gpointer user_data; | |
24785 | gboolean exclusive; | |
24786 | }; | |
24787 | ||
24788 | ||
24789 | ||
24790 | ||
24791 | ||
24792 | ||
24793 | GThreadPool* g_thread_pool_new (GFunc func, | |
24794 | gpointer user_data, | |
24795 | gint max_threads, | |
24796 | gboolean exclusive, | |
24797 | GError **error); | |
24798 | ||
24799 | ||
24800 | ||
24801 | ||
24802 | ||
24803 | void g_thread_pool_push (GThreadPool *pool, | |
24804 | gpointer data, | |
24805 | GError **error); | |
24806 | ||
24807 | ||
24808 | ||
24809 | ||
24810 | void g_thread_pool_set_max_threads (GThreadPool *pool, | |
24811 | gint max_threads, | |
24812 | GError **error); | |
24813 | gint g_thread_pool_get_max_threads (GThreadPool *pool); | |
24814 | ||
24815 | ||
24816 | ||
24817 | guint g_thread_pool_get_num_threads (GThreadPool *pool); | |
24818 | ||
24819 | ||
24820 | guint g_thread_pool_unprocessed (GThreadPool *pool); | |
24821 | ||
24822 | ||
24823 | ||
24824 | ||
24825 | ||
24826 | void g_thread_pool_free (GThreadPool *pool, | |
24827 | gboolean immediate, | |
24828 | gboolean wait); | |
24829 | ||
24830 | ||
24831 | ||
24832 | void g_thread_pool_set_max_unused_threads (gint max_threads); | |
24833 | gint g_thread_pool_get_max_unused_threads (void); | |
24834 | guint g_thread_pool_get_num_unused_threads (void); | |
24835 | ||
24836 | ||
24837 | void g_thread_pool_stop_unused_threads (void); | |
24838 | ||
24839 | ||
24840 | void g_thread_pool_set_sort_function (GThreadPool *pool, | |
24841 | GCompareDataFunc func, | |
24842 | gpointer user_data); | |
24843 | ||
24844 | ||
24845 | void g_thread_pool_set_max_idle_time (guint interval); | |
24846 | guint g_thread_pool_get_max_idle_time (void); | |
24847 | ||
24848 | ||
24849 | # 71 "/usr/include/glib-2.0/glib.h" 2 | |
24850 | # 1 "/usr/include/glib-2.0/glib/gtimer.h" 1 | |
24851 | # 28 "/usr/include/glib-2.0/glib/gtimer.h" | |
24852 | #define __G_TIMER_H__ | |
24853 | ||
24854 | ||
24855 | ||
24856 | ||
24857 | ||
24858 | ||
24859 | ||
24860 | ||
24861 | ||
24862 | typedef struct _GTimer GTimer; | |
24863 | ||
24864 | #define G_USEC_PER_SEC 1000000 | |
24865 | ||
24866 | GTimer* g_timer_new (void); | |
24867 | void g_timer_destroy (GTimer *timer); | |
24868 | void g_timer_start (GTimer *timer); | |
24869 | void g_timer_stop (GTimer *timer); | |
24870 | void g_timer_reset (GTimer *timer); | |
24871 | void g_timer_continue (GTimer *timer); | |
24872 | gdouble g_timer_elapsed (GTimer *timer, | |
24873 | gulong *microseconds); | |
24874 | ||
24875 | void g_usleep (gulong microseconds); | |
24876 | ||
24877 | void g_time_val_add (GTimeVal *time_, | |
24878 | glong microseconds); | |
24879 | ||
24880 | ||
24881 | # 72 "/usr/include/glib-2.0/glib.h" 2 | |
24882 | # 1 "/usr/include/glib-2.0/glib/gtree.h" 1 | |
24883 | # 28 "/usr/include/glib-2.0/glib/gtree.h" | |
24884 | #define __G_TREE_H__ | |
24885 | ||
24886 | ||
24887 | ||
24888 | ||
24889 | ||
24890 | typedef struct _GTree GTree; | |
24891 | ||
24892 | typedef gboolean (*GTraverseFunc) (gpointer key, | |
24893 | gpointer value, | |
24894 | gpointer data); | |
24895 | ||
24896 | ||
24897 | ||
24898 | GTree* g_tree_new (GCompareFunc key_compare_func); | |
24899 | GTree* g_tree_new_with_data (GCompareDataFunc key_compare_func, | |
24900 | gpointer key_compare_data); | |
24901 | GTree* g_tree_new_full (GCompareDataFunc key_compare_func, | |
24902 | gpointer key_compare_data, | |
24903 | GDestroyNotify key_destroy_func, | |
24904 | GDestroyNotify value_destroy_func); | |
24905 | void g_tree_destroy (GTree *tree); | |
24906 | void g_tree_insert (GTree *tree, | |
24907 | gpointer key, | |
24908 | gpointer value); | |
24909 | void g_tree_replace (GTree *tree, | |
24910 | gpointer key, | |
24911 | gpointer value); | |
24912 | gboolean g_tree_remove (GTree *tree, | |
24913 | gconstpointer key); | |
24914 | gboolean g_tree_steal (GTree *tree, | |
24915 | gconstpointer key); | |
24916 | gpointer g_tree_lookup (GTree *tree, | |
24917 | gconstpointer key); | |
24918 | gboolean g_tree_lookup_extended (GTree *tree, | |
24919 | gconstpointer lookup_key, | |
24920 | gpointer *orig_key, | |
24921 | gpointer *value); | |
24922 | void g_tree_foreach (GTree *tree, | |
24923 | GTraverseFunc func, | |
24924 | gpointer user_data); | |
24925 | ||
24926 | ||
24927 | void g_tree_traverse (GTree *tree, | |
24928 | GTraverseFunc traverse_func, | |
24929 | GTraverseType traverse_type, | |
24930 | gpointer user_data); | |
24931 | ||
24932 | ||
24933 | gpointer g_tree_search (GTree *tree, | |
24934 | GCompareFunc search_func, | |
24935 | gconstpointer user_data); | |
24936 | gint g_tree_height (GTree *tree); | |
24937 | gint g_tree_nnodes (GTree *tree); | |
24938 | ||
24939 | ||
24940 | ||
24941 | ||
24942 | # 73 "/usr/include/glib-2.0/glib.h" 2 | |
24943 | # 33 "/usr/include/gtk-2.0/gdk/gdktypes.h" 2 | |
24944 | # 1 "/usr/include/pango-1.0/pango/pango.h" 1 | |
24945 | # 23 "/usr/include/pango-1.0/pango/pango.h" | |
24946 | #define __PANGO_H__ | |
24947 | ||
24948 | # 1 "/usr/include/pango-1.0/pango/pango-attributes.h" 1 | |
24949 | # 23 "/usr/include/pango-1.0/pango/pango-attributes.h" | |
24950 | #define __PANGO_ATTRIBUTES_H__ | |
24951 | ||
24952 | # 1 "/usr/include/pango-1.0/pango/pango-font.h" 1 | |
24953 | # 23 "/usr/include/pango-1.0/pango/pango-font.h" | |
24954 | #define __PANGO_FONT_H__ | |
24955 | ||
24956 | # 1 "/usr/include/pango-1.0/pango/pango-coverage.h" 1 | |
24957 | # 23 "/usr/include/pango-1.0/pango/pango-coverage.h" | |
24958 | #define __PANGO_COVERAGE_H__ | |
24959 | ||
24960 | ||
24961 | ||
24962 | ||
24963 | ||
24964 | typedef struct _PangoCoverage PangoCoverage; | |
24965 | ||
24966 | typedef enum { | |
24967 | PANGO_COVERAGE_NONE, | |
24968 | PANGO_COVERAGE_FALLBACK, | |
24969 | PANGO_COVERAGE_APPROXIMATE, | |
24970 | PANGO_COVERAGE_EXACT | |
24971 | } PangoCoverageLevel; | |
24972 | ||
24973 | PangoCoverage * pango_coverage_new (void); | |
24974 | PangoCoverage * pango_coverage_ref (PangoCoverage *coverage); | |
24975 | void pango_coverage_unref (PangoCoverage *coverage); | |
24976 | PangoCoverage * pango_coverage_copy (PangoCoverage *coverage); | |
24977 | PangoCoverageLevel pango_coverage_get (PangoCoverage *coverage, | |
24978 | int index_); | |
24979 | void pango_coverage_set (PangoCoverage *coverage, | |
24980 | int index_, | |
24981 | PangoCoverageLevel level); | |
24982 | void pango_coverage_max (PangoCoverage *coverage, | |
24983 | PangoCoverage *other); | |
24984 | ||
24985 | void pango_coverage_to_bytes (PangoCoverage *coverage, | |
24986 | guchar **bytes, | |
24987 | int *n_bytes); | |
24988 | PangoCoverage *pango_coverage_from_bytes (guchar *bytes, | |
24989 | int n_bytes); | |
24990 | ||
24991 | ||
24992 | # 26 "/usr/include/pango-1.0/pango/pango-font.h" 2 | |
24993 | # 1 "/usr/include/pango-1.0/pango/pango-types.h" 1 | |
24994 | # 23 "/usr/include/pango-1.0/pango/pango-types.h" | |
24995 | #define __PANGO_TYPES_H__ | |
24996 | ||
24997 | ||
24998 | # 1 "/usr/include/glib-2.0/glib-object.h" 1 | |
24999 | # 20 "/usr/include/glib-2.0/glib-object.h" | |
25000 | #define __GLIB_GOBJECT_H__ | |
25001 | ||
25002 | #define __GLIB_GOBJECT_H_INSIDE__ | |
25003 | ||
25004 | ||
25005 | # 1 "/usr/include/glib-2.0/gobject/gboxed.h" 1 | |
25006 | # 24 "/usr/include/glib-2.0/gobject/gboxed.h" | |
25007 | #define __G_BOXED_H__ | |
25008 | ||
25009 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
25010 | # 24 "/usr/include/glib-2.0/gobject/gtype.h" | |
25011 | #define __G_TYPE_H__ | |
25012 | ||
25013 | ||
25014 | ||
25015 | ||
25016 | ||
25017 | ||
25018 | ||
25019 | #define G_TYPE_FUNDAMENTAL(type) (g_type_fundamental (type)) | |
25020 | #define G_TYPE_FUNDAMENTAL_MAX (255 << G_TYPE_FUNDAMENTAL_SHIFT) | |
25021 | ||
25022 | ||
25023 | ||
25024 | ||
25025 | #define G_TYPE_INVALID G_TYPE_MAKE_FUNDAMENTAL (0) | |
25026 | #define G_TYPE_NONE G_TYPE_MAKE_FUNDAMENTAL (1) | |
25027 | #define G_TYPE_INTERFACE G_TYPE_MAKE_FUNDAMENTAL (2) | |
25028 | #define G_TYPE_CHAR G_TYPE_MAKE_FUNDAMENTAL (3) | |
25029 | #define G_TYPE_UCHAR G_TYPE_MAKE_FUNDAMENTAL (4) | |
25030 | #define G_TYPE_BOOLEAN G_TYPE_MAKE_FUNDAMENTAL (5) | |
25031 | #define G_TYPE_INT G_TYPE_MAKE_FUNDAMENTAL (6) | |
25032 | #define G_TYPE_UINT G_TYPE_MAKE_FUNDAMENTAL (7) | |
25033 | #define G_TYPE_LONG G_TYPE_MAKE_FUNDAMENTAL (8) | |
25034 | #define G_TYPE_ULONG G_TYPE_MAKE_FUNDAMENTAL (9) | |
25035 | #define G_TYPE_INT64 G_TYPE_MAKE_FUNDAMENTAL (10) | |
25036 | #define G_TYPE_UINT64 G_TYPE_MAKE_FUNDAMENTAL (11) | |
25037 | #define G_TYPE_ENUM G_TYPE_MAKE_FUNDAMENTAL (12) | |
25038 | #define G_TYPE_FLAGS G_TYPE_MAKE_FUNDAMENTAL (13) | |
25039 | #define G_TYPE_FLOAT G_TYPE_MAKE_FUNDAMENTAL (14) | |
25040 | #define G_TYPE_DOUBLE G_TYPE_MAKE_FUNDAMENTAL (15) | |
25041 | #define G_TYPE_STRING G_TYPE_MAKE_FUNDAMENTAL (16) | |
25042 | #define G_TYPE_POINTER G_TYPE_MAKE_FUNDAMENTAL (17) | |
25043 | #define G_TYPE_BOXED G_TYPE_MAKE_FUNDAMENTAL (18) | |
25044 | #define G_TYPE_PARAM G_TYPE_MAKE_FUNDAMENTAL (19) | |
25045 | #define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20) | |
25046 | ||
25047 | ||
25048 | ||
25049 | ||
25050 | ||
25051 | ||
25052 | #define G_TYPE_FUNDAMENTAL_SHIFT (2) | |
25053 | #define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) | |
25054 | #define G_TYPE_RESERVED_GLIB_FIRST (21) | |
25055 | #define G_TYPE_RESERVED_GLIB_LAST (31) | |
25056 | #define G_TYPE_RESERVED_BSE_FIRST (32) | |
25057 | #define G_TYPE_RESERVED_BSE_LAST (48) | |
25058 | #define G_TYPE_RESERVED_USER_FIRST (49) | |
25059 | ||
25060 | ||
25061 | ||
25062 | ||
25063 | #define G_TYPE_IS_FUNDAMENTAL(type) ((type) <= G_TYPE_FUNDAMENTAL_MAX) | |
25064 | #define G_TYPE_IS_DERIVED(type) ((type) > G_TYPE_FUNDAMENTAL_MAX) | |
25065 | #define G_TYPE_IS_INTERFACE(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_INTERFACE) | |
25066 | #define G_TYPE_IS_CLASSED(type) (g_type_test_flags ((type), G_TYPE_FLAG_CLASSED)) | |
25067 | #define G_TYPE_IS_INSTANTIATABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_INSTANTIATABLE)) | |
25068 | #define G_TYPE_IS_DERIVABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_DERIVABLE)) | |
25069 | #define G_TYPE_IS_DEEP_DERIVABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_DEEP_DERIVABLE)) | |
25070 | #define G_TYPE_IS_ABSTRACT(type) (g_type_test_flags ((type), G_TYPE_FLAG_ABSTRACT)) | |
25071 | #define G_TYPE_IS_VALUE_ABSTRACT(type) (g_type_test_flags ((type), G_TYPE_FLAG_VALUE_ABSTRACT)) | |
25072 | #define G_TYPE_IS_VALUE_TYPE(type) (g_type_check_is_value_type (type)) | |
25073 | #define G_TYPE_HAS_VALUE_TABLE(type) (g_type_value_table_peek (type) != NULL) | |
25074 | ||
25075 | ||
25076 | ||
25077 | ||
25078 | ||
25079 | typedef gulong GType; | |
25080 | ||
25081 | ||
25082 | ||
25083 | typedef struct _GValue GValue; | |
25084 | typedef union _GTypeCValue GTypeCValue; | |
25085 | typedef struct _GTypePlugin GTypePlugin; | |
25086 | typedef struct _GTypeClass GTypeClass; | |
25087 | typedef struct _GTypeInterface GTypeInterface; | |
25088 | typedef struct _GTypeInstance GTypeInstance; | |
25089 | typedef struct _GTypeInfo GTypeInfo; | |
25090 | typedef struct _GTypeFundamentalInfo GTypeFundamentalInfo; | |
25091 | typedef struct _GInterfaceInfo GInterfaceInfo; | |
25092 | typedef struct _GTypeValueTable GTypeValueTable; | |
25093 | typedef struct _GTypeQuery GTypeQuery; | |
25094 | ||
25095 | ||
25096 | ||
25097 | ||
25098 | struct _GTypeClass | |
25099 | { | |
25100 | ||
25101 | GType g_type; | |
25102 | }; | |
25103 | struct _GTypeInstance | |
25104 | { | |
25105 | ||
25106 | GTypeClass *g_class; | |
25107 | }; | |
25108 | struct _GTypeInterface | |
25109 | { | |
25110 | ||
25111 | GType g_type; | |
25112 | GType g_instance_type; | |
25113 | }; | |
25114 | struct _GTypeQuery | |
25115 | { | |
25116 | GType type; | |
25117 | const gchar *type_name; | |
25118 | guint class_size; | |
25119 | guint instance_size; | |
25120 | }; | |
25121 | ||
25122 | ||
25123 | ||
25124 | ||
25125 | ||
25126 | ||
25127 | #define G_TYPE_CHECK_INSTANCE(instance) (_G_TYPE_CHI ((GTypeInstance*) (instance))) | |
25128 | #define G_TYPE_CHECK_INSTANCE_CAST(instance,g_type,c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) | |
25129 | #define G_TYPE_CHECK_INSTANCE_TYPE(instance,g_type) (_G_TYPE_CIT ((instance), (g_type))) | |
25130 | #define G_TYPE_INSTANCE_GET_CLASS(instance,g_type,c_type) (_G_TYPE_IGC ((instance), (g_type), c_type)) | |
25131 | #define G_TYPE_INSTANCE_GET_INTERFACE(instance,g_type,c_type) (_G_TYPE_IGI ((instance), (g_type), c_type)) | |
25132 | #define G_TYPE_CHECK_CLASS_CAST(g_class,g_type,c_type) (_G_TYPE_CCC ((g_class), (g_type), c_type)) | |
25133 | #define G_TYPE_CHECK_CLASS_TYPE(g_class,g_type) (_G_TYPE_CCT ((g_class), (g_type))) | |
25134 | #define G_TYPE_CHECK_VALUE(value) (_G_TYPE_CHV ((value))) | |
25135 | #define G_TYPE_CHECK_VALUE_TYPE(value,g_type) (_G_TYPE_CVH ((value), (g_type))) | |
25136 | #define G_TYPE_FROM_INSTANCE(instance) (G_TYPE_FROM_CLASS (((GTypeInstance*) (instance))->g_class)) | |
25137 | #define G_TYPE_FROM_CLASS(g_class) (((GTypeClass*) (g_class))->g_type) | |
25138 | #define G_TYPE_FROM_INTERFACE(g_iface) (((GTypeInterface*) (g_iface))->g_type) | |
25139 | ||
25140 | #define G_TYPE_INSTANCE_GET_PRIVATE(instance,g_type,c_type) ((c_type*) g_type_instance_get_private ((GTypeInstance*) (instance), (g_type))) | |
25141 | ||
25142 | ||
25143 | ||
25144 | typedef enum | |
25145 | { | |
25146 | G_TYPE_DEBUG_NONE = 0, | |
25147 | G_TYPE_DEBUG_OBJECTS = 1 << 0, | |
25148 | G_TYPE_DEBUG_SIGNALS = 1 << 1, | |
25149 | G_TYPE_DEBUG_MASK = 0x03 | |
25150 | } GTypeDebugFlags; | |
25151 | ||
25152 | ||
25153 | ||
25154 | void g_type_init (void); | |
25155 | void g_type_init_with_debug_flags (GTypeDebugFlags debug_flags); | |
25156 | const gchar* g_type_name (GType type); | |
25157 | GQuark g_type_qname (GType type); | |
25158 | GType g_type_from_name (const gchar *name); | |
25159 | GType g_type_parent (GType type); | |
25160 | guint g_type_depth (GType type); | |
25161 | GType g_type_next_base (GType leaf_type, | |
25162 | GType root_type); | |
25163 | gboolean g_type_is_a (GType type, | |
25164 | GType is_a_type); | |
25165 | gpointer g_type_class_ref (GType type); | |
25166 | gpointer g_type_class_peek (GType type); | |
25167 | gpointer g_type_class_peek_static (GType type); | |
25168 | void g_type_class_unref (gpointer g_class); | |
25169 | gpointer g_type_class_peek_parent (gpointer g_class); | |
25170 | gpointer g_type_interface_peek (gpointer instance_class, | |
25171 | GType iface_type); | |
25172 | gpointer g_type_interface_peek_parent (gpointer g_iface); | |
25173 | ||
25174 | gpointer g_type_default_interface_ref (GType g_type); | |
25175 | gpointer g_type_default_interface_peek (GType g_type); | |
25176 | void g_type_default_interface_unref (gpointer g_iface); | |
25177 | ||
25178 | ||
25179 | GType* g_type_children (GType type, | |
25180 | guint *n_children); | |
25181 | GType* g_type_interfaces (GType type, | |
25182 | guint *n_interfaces); | |
25183 | ||
25184 | ||
25185 | void g_type_set_qdata (GType type, | |
25186 | GQuark quark, | |
25187 | gpointer data); | |
25188 | gpointer g_type_get_qdata (GType type, | |
25189 | GQuark quark); | |
25190 | void g_type_query (GType type, | |
25191 | GTypeQuery *query); | |
25192 | ||
25193 | ||
25194 | ||
25195 | typedef void (*GBaseInitFunc) (gpointer g_class); | |
25196 | typedef void (*GBaseFinalizeFunc) (gpointer g_class); | |
25197 | typedef void (*GClassInitFunc) (gpointer g_class, | |
25198 | gpointer class_data); | |
25199 | typedef void (*GClassFinalizeFunc) (gpointer g_class, | |
25200 | gpointer class_data); | |
25201 | typedef void (*GInstanceInitFunc) (GTypeInstance *instance, | |
25202 | gpointer g_class); | |
25203 | typedef void (*GInterfaceInitFunc) (gpointer g_iface, | |
25204 | gpointer iface_data); | |
25205 | typedef void (*GInterfaceFinalizeFunc) (gpointer g_iface, | |
25206 | gpointer iface_data); | |
25207 | typedef gboolean (*GTypeClassCacheFunc) (gpointer cache_data, | |
25208 | GTypeClass *g_class); | |
25209 | typedef void (*GTypeInterfaceCheckFunc) (gpointer check_data, | |
25210 | gpointer g_iface); | |
25211 | typedef enum | |
25212 | { | |
25213 | G_TYPE_FLAG_CLASSED = (1 << 0), | |
25214 | G_TYPE_FLAG_INSTANTIATABLE = (1 << 1), | |
25215 | G_TYPE_FLAG_DERIVABLE = (1 << 2), | |
25216 | G_TYPE_FLAG_DEEP_DERIVABLE = (1 << 3) | |
25217 | } GTypeFundamentalFlags; | |
25218 | typedef enum | |
25219 | { | |
25220 | G_TYPE_FLAG_ABSTRACT = (1 << 4), | |
25221 | G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5) | |
25222 | } GTypeFlags; | |
25223 | struct _GTypeInfo | |
25224 | { | |
25225 | ||
25226 | guint16 class_size; | |
25227 | ||
25228 | GBaseInitFunc base_init; | |
25229 | GBaseFinalizeFunc base_finalize; | |
25230 | ||
25231 | ||
25232 | GClassInitFunc class_init; | |
25233 | GClassFinalizeFunc class_finalize; | |
25234 | gconstpointer class_data; | |
25235 | ||
25236 | ||
25237 | guint16 instance_size; | |
25238 | guint16 n_preallocs; | |
25239 | GInstanceInitFunc instance_init; | |
25240 | ||
25241 | ||
25242 | const GTypeValueTable *value_table; | |
25243 | }; | |
25244 | struct _GTypeFundamentalInfo | |
25245 | { | |
25246 | GTypeFundamentalFlags type_flags; | |
25247 | }; | |
25248 | struct _GInterfaceInfo | |
25249 | { | |
25250 | GInterfaceInitFunc interface_init; | |
25251 | GInterfaceFinalizeFunc interface_finalize; | |
25252 | gpointer interface_data; | |
25253 | }; | |
25254 | struct _GTypeValueTable | |
25255 | { | |
25256 | void (*value_init) (GValue *value); | |
25257 | void (*value_free) (GValue *value); | |
25258 | void (*value_copy) (const GValue *src_value, | |
25259 | GValue *dest_value); | |
25260 | ||
25261 | gpointer (*value_peek_pointer) (const GValue *value); | |
25262 | gchar *collect_format; | |
25263 | gchar* (*collect_value) (GValue *value, | |
25264 | guint n_collect_values, | |
25265 | GTypeCValue *collect_values, | |
25266 | guint collect_flags); | |
25267 | gchar *lcopy_format; | |
25268 | gchar* (*lcopy_value) (const GValue *value, | |
25269 | guint n_collect_values, | |
25270 | GTypeCValue *collect_values, | |
25271 | guint collect_flags); | |
25272 | }; | |
25273 | GType g_type_register_static (GType parent_type, | |
25274 | const gchar *type_name, | |
25275 | const GTypeInfo *info, | |
25276 | GTypeFlags flags); | |
25277 | GType g_type_register_dynamic (GType parent_type, | |
25278 | const gchar *type_name, | |
25279 | GTypePlugin *plugin, | |
25280 | GTypeFlags flags); | |
25281 | GType g_type_register_fundamental (GType type_id, | |
25282 | const gchar *type_name, | |
25283 | const GTypeInfo *info, | |
25284 | const GTypeFundamentalInfo *finfo, | |
25285 | GTypeFlags flags); | |
25286 | void g_type_add_interface_static (GType instance_type, | |
25287 | GType interface_type, | |
25288 | const GInterfaceInfo *info); | |
25289 | void g_type_add_interface_dynamic (GType instance_type, | |
25290 | GType interface_type, | |
25291 | GTypePlugin *plugin); | |
25292 | void g_type_interface_add_prerequisite (GType interface_type, | |
25293 | GType prerequisite_type); | |
25294 | GType*g_type_interface_prerequisites (GType interface_type, | |
25295 | guint *n_prerequisites); | |
25296 | void g_type_class_add_private (gpointer g_class, | |
25297 | gsize private_size); | |
25298 | gpointer g_type_instance_get_private (GTypeInstance *instance, | |
25299 | GType private_type); | |
25300 | # 328 "/usr/include/glib-2.0/gobject/gtype.h" | |
25301 | #define G_DEFINE_TYPE(TN,t_n,T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {}) | |
25302 | #define G_DEFINE_TYPE_WITH_CODE(TN,t_n,T_P,_C_) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, _C_) | |
25303 | #define G_DEFINE_ABSTRACT_TYPE(TN,t_n,T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {}) | |
25304 | #define G_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN,t_n,T_P,_C_) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, _C_) | |
25305 | # 341 "/usr/include/glib-2.0/gobject/gtype.h" | |
25306 | #define G_IMPLEMENT_INTERFACE(TYPE_IFACE,iface_init) { static const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc) iface_init }; g_type_add_interface_static (g_define_type_id, TYPE_IFACE, &g_implement_interface_info); } | |
25307 | ||
25308 | ||
25309 | ||
25310 | ||
25311 | ||
25312 | ||
25313 | #define G_DEFINE_TYPE_EXTENDED(TypeName,type_name,TYPE_PARENT,flags,CODE) static void type_name ##_init (TypeName *self); static void type_name ##_class_init (TypeName ##Class *klass); static gpointer type_name ##_parent_class = NULL; static void type_name ##_class_intern_init (gpointer klass) { type_name ##_parent_class = g_type_class_peek_parent (klass); type_name ##_class_init ((TypeName ##Class*) klass); } GType type_name ##_get_type (void) { static GType g_define_type_id = 0; if (G_UNLIKELY (g_define_type_id == 0)) { static const GTypeInfo g_define_type_info = { sizeof (TypeName ##Class), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) type_name ##_class_intern_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TypeName), 0, (GInstanceInitFunc) type_name ##_init, NULL }; g_define_type_id = g_type_register_static (TYPE_PARENT, g_intern_static_string (#TypeName), &g_define_type_info, (GTypeFlags) flags); { CODE ; } } return g_define_type_id; } | |
25314 | # 385 "/usr/include/glib-2.0/gobject/gtype.h" | |
25315 | GTypePlugin* g_type_get_plugin (GType type); | |
25316 | GTypePlugin* g_type_interface_get_plugin (GType instance_type, | |
25317 | GType interface_type); | |
25318 | GType g_type_fundamental_next (void); | |
25319 | GType g_type_fundamental (GType type_id); | |
25320 | GTypeInstance* g_type_create_instance (GType type); | |
25321 | void g_type_free_instance (GTypeInstance *instance); | |
25322 | ||
25323 | void g_type_add_class_cache_func (gpointer cache_data, | |
25324 | GTypeClassCacheFunc cache_func); | |
25325 | void g_type_remove_class_cache_func (gpointer cache_data, | |
25326 | GTypeClassCacheFunc cache_func); | |
25327 | void g_type_class_unref_uncached (gpointer g_class); | |
25328 | ||
25329 | void g_type_add_interface_check (gpointer check_data, | |
25330 | GTypeInterfaceCheckFunc check_func); | |
25331 | void g_type_remove_interface_check (gpointer check_data, | |
25332 | GTypeInterfaceCheckFunc check_func); | |
25333 | ||
25334 | GTypeValueTable* g_type_value_table_peek (GType type); | |
25335 | ||
25336 | ||
25337 | ||
25338 | gboolean g_type_check_instance (GTypeInstance *instance); | |
25339 | GTypeInstance* g_type_check_instance_cast (GTypeInstance *instance, | |
25340 | GType iface_type); | |
25341 | gboolean g_type_check_instance_is_a (GTypeInstance *instance, | |
25342 | GType iface_type); | |
25343 | GTypeClass* g_type_check_class_cast (GTypeClass *g_class, | |
25344 | GType is_a_type); | |
25345 | gboolean g_type_check_class_is_a (GTypeClass *g_class, | |
25346 | GType is_a_type); | |
25347 | gboolean g_type_check_is_value_type (GType type); | |
25348 | gboolean g_type_check_value (GValue *value); | |
25349 | gboolean g_type_check_value_holds (GValue *value, | |
25350 | GType type); | |
25351 | gboolean g_type_test_flags (GType type, | |
25352 | guint flags); | |
25353 | ||
25354 | ||
25355 | ||
25356 | const gchar* g_type_name_from_instance (GTypeInstance *instance); | |
25357 | const gchar* g_type_name_from_class (GTypeClass *g_class); | |
25358 | ||
25359 | ||
25360 | ||
25361 | void g_value_c_init (void) __attribute__((visibility("hidden"))); | |
25362 | void g_value_types_init (void) __attribute__((visibility("hidden"))); | |
25363 | void g_enum_types_init (void) __attribute__((visibility("hidden"))); | |
25364 | void g_param_type_init (void) __attribute__((visibility("hidden"))); | |
25365 | void g_boxed_type_init (void) __attribute__((visibility("hidden"))); | |
25366 | void g_object_type_init (void) __attribute__((visibility("hidden"))); | |
25367 | void g_param_spec_types_init (void) __attribute__((visibility("hidden"))); | |
25368 | void g_value_transforms_init (void) __attribute__((visibility("hidden"))); | |
25369 | void g_signal_init (void) __attribute__((visibility("hidden"))); | |
25370 | ||
25371 | ||
25372 | ||
25373 | ||
25374 | #define _G_TYPE_CIC(ip,gt,ct) ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | |
25375 | ||
25376 | #define _G_TYPE_CCC(cp,gt,ct) ((ct*) g_type_check_class_cast ((GTypeClass*) cp, gt)) | |
25377 | ||
25378 | ||
25379 | ||
25380 | ||
25381 | ||
25382 | #define _G_TYPE_CHI(ip) (g_type_check_instance ((GTypeInstance*) ip)) | |
25383 | #define _G_TYPE_CHV(vl) (g_type_check_value ((GValue*) vl)) | |
25384 | #define _G_TYPE_IGC(ip,gt,ct) ((ct*) (((GTypeInstance*) ip)->g_class)) | |
25385 | #define _G_TYPE_IGI(ip,gt,ct) ((ct*) g_type_interface_peek (((GTypeInstance*) ip)->g_class, gt)) | |
25386 | ||
25387 | #define _G_TYPE_CIT(ip,gt) (G_GNUC_EXTENSION ({ GTypeInstance *__inst = (GTypeInstance*) ip; GType __t = gt; gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = TRUE; else __r = g_type_check_instance_is_a (__inst, __t); __r; })) | |
25388 | ||
25389 | ||
25390 | ||
25391 | ||
25392 | ||
25393 | ||
25394 | ||
25395 | #define _G_TYPE_CCT(cp,gt) (G_GNUC_EXTENSION ({ GTypeClass *__class = (GTypeClass*) cp; GType __t = gt; gboolean __r; if (__class && __class->g_type == __t) __r = TRUE; else __r = g_type_check_class_is_a (__class, __t); __r; })) | |
25396 | ||
25397 | ||
25398 | ||
25399 | ||
25400 | ||
25401 | ||
25402 | ||
25403 | #define _G_TYPE_CVH(vl,gt) (G_GNUC_EXTENSION ({ GValue *__val = (GValue*) vl; GType __t = gt; gboolean __r; if (__val && __val->g_type == __t) __r = TRUE; else __r = g_type_check_value_holds (__val, __t); __r; })) | |
25404 | # 486 "/usr/include/glib-2.0/gobject/gtype.h" | |
25405 | #define G_TYPE_FLAG_RESERVED_ID_BIT ((GType) (1 << 0)) | |
25406 | extern GTypeDebugFlags _g_type_debug_flags; | |
25407 | ||
25408 | ||
25409 | # 27 "/usr/include/glib-2.0/gobject/gboxed.h" 2 | |
25410 | ||
25411 | ||
25412 | ||
25413 | ||
25414 | #define G_TYPE_IS_BOXED(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_BOXED) | |
25415 | #define G_VALUE_HOLDS_BOXED(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOXED)) | |
25416 | ||
25417 | ||
25418 | ||
25419 | typedef gpointer (*GBoxedCopyFunc) (gpointer boxed); | |
25420 | typedef void (*GBoxedFreeFunc) (gpointer boxed); | |
25421 | ||
25422 | ||
25423 | ||
25424 | gpointer g_boxed_copy (GType boxed_type, | |
25425 | gconstpointer src_boxed); | |
25426 | void g_boxed_free (GType boxed_type, | |
25427 | gpointer boxed); | |
25428 | void g_value_set_boxed (GValue *value, | |
25429 | gconstpointer v_boxed); | |
25430 | void g_value_set_static_boxed (GValue *value, | |
25431 | gconstpointer v_boxed); | |
25432 | gpointer g_value_get_boxed (const GValue *value); | |
25433 | gpointer g_value_dup_boxed (const GValue *value); | |
25434 | ||
25435 | ||
25436 | ||
25437 | GType g_boxed_type_register_static (const gchar *name, | |
25438 | GBoxedCopyFunc boxed_copy, | |
25439 | GBoxedFreeFunc boxed_free); | |
25440 | ||
25441 | ||
25442 | ||
25443 | #define G_TYPE_CLOSURE (g_closure_get_type ()) | |
25444 | #define G_TYPE_VALUE (g_value_get_type ()) | |
25445 | #define G_TYPE_VALUE_ARRAY (g_value_array_get_type ()) | |
25446 | #define G_TYPE_DATE (g_date_get_type ()) | |
25447 | #define G_TYPE_STRV (g_strv_get_type ()) | |
25448 | #define G_TYPE_GSTRING (g_gstring_get_type ()) | |
25449 | #define G_TYPE_HASH_TABLE (g_hash_table_get_type ()) | |
25450 | ||
25451 | ||
25452 | void g_value_take_boxed (GValue *value, | |
25453 | gconstpointer v_boxed); | |
25454 | ||
25455 | void g_value_set_boxed_take_ownership (GValue *value, | |
25456 | gconstpointer v_boxed); | |
25457 | ||
25458 | GType g_closure_get_type (void) __attribute__((__const__)); | |
25459 | GType g_value_get_type (void) __attribute__((__const__)); | |
25460 | GType g_value_array_get_type (void) __attribute__((__const__)); | |
25461 | GType g_date_get_type (void) __attribute__((__const__)); | |
25462 | GType g_strv_get_type (void) __attribute__((__const__)); | |
25463 | GType g_gstring_get_type (void) __attribute__((__const__)); | |
25464 | GType g_hash_table_get_type (void) __attribute__((__const__)); | |
25465 | ||
25466 | typedef gchar** GStrv; | |
25467 | ||
25468 | ||
25469 | # 26 "/usr/include/glib-2.0/glib-object.h" 2 | |
25470 | # 1 "/usr/include/glib-2.0/gobject/genums.h" 1 | |
25471 | # 24 "/usr/include/glib-2.0/gobject/genums.h" | |
25472 | #define __G_ENUMS_H__ | |
25473 | ||
25474 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
25475 | # 27 "/usr/include/glib-2.0/gobject/genums.h" 2 | |
25476 | ||
25477 | ||
25478 | ||
25479 | ||
25480 | #define G_TYPE_IS_ENUM(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_ENUM) | |
25481 | #define G_ENUM_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_ENUM, GEnumClass)) | |
25482 | #define G_IS_ENUM_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_ENUM)) | |
25483 | #define G_ENUM_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) | |
25484 | #define G_ENUM_CLASS_TYPE_NAME(class) (g_type_name (G_ENUM_CLASS_TYPE (class))) | |
25485 | #define G_TYPE_IS_FLAGS(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_FLAGS) | |
25486 | #define G_FLAGS_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_FLAGS, GFlagsClass)) | |
25487 | #define G_IS_FLAGS_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_FLAGS)) | |
25488 | #define G_FLAGS_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) | |
25489 | #define G_FLAGS_CLASS_TYPE_NAME(class) (g_type_name (G_FLAGS_CLASS_TYPE (class))) | |
25490 | #define G_VALUE_HOLDS_ENUM(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_ENUM)) | |
25491 | #define G_VALUE_HOLDS_FLAGS(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_FLAGS)) | |
25492 | ||
25493 | ||
25494 | ||
25495 | typedef struct _GEnumClass GEnumClass; | |
25496 | typedef struct _GFlagsClass GFlagsClass; | |
25497 | typedef struct _GEnumValue GEnumValue; | |
25498 | typedef struct _GFlagsValue GFlagsValue; | |
25499 | struct _GEnumClass | |
25500 | { | |
25501 | GTypeClass g_type_class; | |
25502 | ||
25503 | ||
25504 | gint minimum; | |
25505 | gint maximum; | |
25506 | guint n_values; | |
25507 | GEnumValue *values; | |
25508 | }; | |
25509 | struct _GFlagsClass | |
25510 | { | |
25511 | GTypeClass g_type_class; | |
25512 | ||
25513 | ||
25514 | guint mask; | |
25515 | guint n_values; | |
25516 | GFlagsValue *values; | |
25517 | }; | |
25518 | struct _GEnumValue | |
25519 | { | |
25520 | gint value; | |
25521 | gchar *value_name; | |
25522 | gchar *value_nick; | |
25523 | }; | |
25524 | struct _GFlagsValue | |
25525 | { | |
25526 | guint value; | |
25527 | gchar *value_name; | |
25528 | gchar *value_nick; | |
25529 | }; | |
25530 | ||
25531 | ||
25532 | ||
25533 | GEnumValue* g_enum_get_value (GEnumClass *enum_class, | |
25534 | gint value); | |
25535 | GEnumValue* g_enum_get_value_by_name (GEnumClass *enum_class, | |
25536 | const gchar *name); | |
25537 | GEnumValue* g_enum_get_value_by_nick (GEnumClass *enum_class, | |
25538 | const gchar *nick); | |
25539 | GFlagsValue* g_flags_get_first_value (GFlagsClass *flags_class, | |
25540 | guint value); | |
25541 | GFlagsValue* g_flags_get_value_by_name (GFlagsClass *flags_class, | |
25542 | const gchar *name); | |
25543 | GFlagsValue* g_flags_get_value_by_nick (GFlagsClass *flags_class, | |
25544 | const gchar *nick); | |
25545 | void g_value_set_enum (GValue *value, | |
25546 | gint v_enum); | |
25547 | gint g_value_get_enum (const GValue *value); | |
25548 | void g_value_set_flags (GValue *value, | |
25549 | guint v_flags); | |
25550 | guint g_value_get_flags (const GValue *value); | |
25551 | ||
25552 | ||
25553 | ||
25554 | ||
25555 | ||
25556 | ||
25557 | ||
25558 | GType g_enum_register_static (const gchar *name, | |
25559 | const GEnumValue *const_static_values); | |
25560 | GType g_flags_register_static (const gchar *name, | |
25561 | const GFlagsValue *const_static_values); | |
25562 | ||
25563 | ||
25564 | ||
25565 | void g_enum_complete_type_info (GType g_enum_type, | |
25566 | GTypeInfo *info, | |
25567 | const GEnumValue *const_values); | |
25568 | void g_flags_complete_type_info (GType g_flags_type, | |
25569 | GTypeInfo *info, | |
25570 | const GFlagsValue *const_values); | |
25571 | ||
25572 | ||
25573 | # 27 "/usr/include/glib-2.0/glib-object.h" 2 | |
25574 | # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1 | |
25575 | # 24 "/usr/include/glib-2.0/gobject/gobject.h" | |
25576 | #define __G_OBJECT_H__ | |
25577 | ||
25578 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
25579 | # 27 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
25580 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
25581 | # 26 "/usr/include/glib-2.0/gobject/gvalue.h" | |
25582 | #define __G_VALUE_H__ | |
25583 | ||
25584 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
25585 | # 29 "/usr/include/glib-2.0/gobject/gvalue.h" 2 | |
25586 | ||
25587 | ||
25588 | ||
25589 | ||
25590 | #define G_TYPE_IS_VALUE(type) (g_type_check_is_value_type (type)) | |
25591 | #define G_IS_VALUE(value) (G_TYPE_CHECK_VALUE (value)) | |
25592 | #define G_VALUE_TYPE(value) (((GValue*) (value))->g_type) | |
25593 | #define G_VALUE_TYPE_NAME(value) (g_type_name (G_VALUE_TYPE (value))) | |
25594 | #define G_VALUE_HOLDS(value,type) (G_TYPE_CHECK_VALUE_TYPE ((value), (type))) | |
25595 | ||
25596 | ||
25597 | ||
25598 | typedef void (*GValueTransform) (const GValue *src_value, | |
25599 | GValue *dest_value); | |
25600 | struct _GValue | |
25601 | { | |
25602 | ||
25603 | GType g_type; | |
25604 | ||
25605 | ||
25606 | union { | |
25607 | gint v_int; | |
25608 | guint v_uint; | |
25609 | glong v_long; | |
25610 | gulong v_ulong; | |
25611 | gint64 v_int64; | |
25612 | guint64 v_uint64; | |
25613 | gfloat v_float; | |
25614 | gdouble v_double; | |
25615 | gpointer v_pointer; | |
25616 | } data[2]; | |
25617 | }; | |
25618 | ||
25619 | ||
25620 | ||
25621 | GValue* g_value_init (GValue *value, | |
25622 | GType g_type); | |
25623 | void g_value_copy (const GValue *src_value, | |
25624 | GValue *dest_value); | |
25625 | GValue* g_value_reset (GValue *value); | |
25626 | void g_value_unset (GValue *value); | |
25627 | void g_value_set_instance (GValue *value, | |
25628 | gpointer instance); | |
25629 | ||
25630 | ||
25631 | ||
25632 | gboolean g_value_fits_pointer (const GValue *value); | |
25633 | gpointer g_value_peek_pointer (const GValue *value); | |
25634 | ||
25635 | ||
25636 | ||
25637 | gboolean g_value_type_compatible (GType src_type, | |
25638 | GType dest_type); | |
25639 | gboolean g_value_type_transformable (GType src_type, | |
25640 | GType dest_type); | |
25641 | gboolean g_value_transform (const GValue *src_value, | |
25642 | GValue *dest_value); | |
25643 | void g_value_register_transform_func (GType src_type, | |
25644 | GType dest_type, | |
25645 | GValueTransform transform_func); | |
25646 | #define G_VALUE_NOCOPY_CONTENTS (1 << 27) | |
25647 | ||
25648 | ||
25649 | ||
25650 | # 28 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
25651 | # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1 | |
25652 | # 26 "/usr/include/glib-2.0/gobject/gparam.h" | |
25653 | #define __G_PARAM_H__ | |
25654 | ||
25655 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
25656 | # 29 "/usr/include/glib-2.0/gobject/gparam.h" 2 | |
25657 | ||
25658 | ||
25659 | ||
25660 | ||
25661 | #define G_TYPE_IS_PARAM(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_PARAM) | |
25662 | #define G_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM, GParamSpec)) | |
25663 | #define G_IS_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM)) | |
25664 | #define G_PARAM_SPEC_CLASS(pclass) (G_TYPE_CHECK_CLASS_CAST ((pclass), G_TYPE_PARAM, GParamSpecClass)) | |
25665 | #define G_IS_PARAM_SPEC_CLASS(pclass) (G_TYPE_CHECK_CLASS_TYPE ((pclass), G_TYPE_PARAM)) | |
25666 | #define G_PARAM_SPEC_GET_CLASS(pspec) (G_TYPE_INSTANCE_GET_CLASS ((pspec), G_TYPE_PARAM, GParamSpecClass)) | |
25667 | ||
25668 | ||
25669 | ||
25670 | #define G_PARAM_SPEC_TYPE(pspec) (G_TYPE_FROM_INSTANCE (pspec)) | |
25671 | #define G_PARAM_SPEC_TYPE_NAME(pspec) (g_type_name (G_PARAM_SPEC_TYPE (pspec))) | |
25672 | #define G_PARAM_SPEC_VALUE_TYPE(pspec) (G_PARAM_SPEC (pspec)->value_type) | |
25673 | #define G_VALUE_HOLDS_PARAM(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_PARAM)) | |
25674 | ||
25675 | ||
25676 | ||
25677 | typedef enum | |
25678 | { | |
25679 | G_PARAM_READABLE = 1 << 0, | |
25680 | G_PARAM_WRITABLE = 1 << 1, | |
25681 | G_PARAM_CONSTRUCT = 1 << 2, | |
25682 | G_PARAM_CONSTRUCT_ONLY = 1 << 3, | |
25683 | G_PARAM_LAX_VALIDATION = 1 << 4, | |
25684 | G_PARAM_STATIC_NAME = 1 << 5, | |
25685 | ||
25686 | G_PARAM_PRIVATE = G_PARAM_STATIC_NAME, | |
25687 | ||
25688 | G_PARAM_STATIC_NICK = 1 << 6, | |
25689 | G_PARAM_STATIC_BLURB = 1 << 7 | |
25690 | } GParamFlags; | |
25691 | #define G_PARAM_READWRITE (G_PARAM_READABLE | G_PARAM_WRITABLE) | |
25692 | #define G_PARAM_MASK (0x000000ff) | |
25693 | ||
25694 | #define G_PARAM_USER_SHIFT (8) | |
25695 | ||
25696 | ||
25697 | ||
25698 | typedef struct _GParamSpec GParamSpec; | |
25699 | typedef struct _GParamSpecClass GParamSpecClass; | |
25700 | typedef struct _GParameter GParameter; | |
25701 | typedef struct _GParamSpecPool GParamSpecPool; | |
25702 | struct _GParamSpec | |
25703 | { | |
25704 | GTypeInstance g_type_instance; | |
25705 | ||
25706 | gchar *name; | |
25707 | GParamFlags flags; | |
25708 | GType value_type; | |
25709 | GType owner_type; | |
25710 | ||
25711 | ||
25712 | gchar *_nick; | |
25713 | gchar *_blurb; | |
25714 | GData *qdata; | |
25715 | guint ref_count; | |
25716 | guint param_id; | |
25717 | }; | |
25718 | struct _GParamSpecClass | |
25719 | { | |
25720 | GTypeClass g_type_class; | |
25721 | ||
25722 | GType value_type; | |
25723 | ||
25724 | void (*finalize) (GParamSpec *pspec); | |
25725 | ||
25726 | ||
25727 | void (*value_set_default) (GParamSpec *pspec, | |
25728 | GValue *value); | |
25729 | gboolean (*value_validate) (GParamSpec *pspec, | |
25730 | GValue *value); | |
25731 | gint (*values_cmp) (GParamSpec *pspec, | |
25732 | const GValue *value1, | |
25733 | const GValue *value2); | |
25734 | ||
25735 | gpointer dummy[4]; | |
25736 | }; | |
25737 | struct _GParameter | |
25738 | { | |
25739 | const gchar *name; | |
25740 | GValue value; | |
25741 | }; | |
25742 | ||
25743 | ||
25744 | ||
25745 | GParamSpec* g_param_spec_ref (GParamSpec *pspec); | |
25746 | void g_param_spec_unref (GParamSpec *pspec); | |
25747 | void g_param_spec_sink (GParamSpec *pspec); | |
25748 | GParamSpec* g_param_spec_ref_sink (GParamSpec *pspec); | |
25749 | gpointer g_param_spec_get_qdata (GParamSpec *pspec, | |
25750 | GQuark quark); | |
25751 | void g_param_spec_set_qdata (GParamSpec *pspec, | |
25752 | GQuark quark, | |
25753 | gpointer data); | |
25754 | void g_param_spec_set_qdata_full (GParamSpec *pspec, | |
25755 | GQuark quark, | |
25756 | gpointer data, | |
25757 | GDestroyNotify destroy); | |
25758 | gpointer g_param_spec_steal_qdata (GParamSpec *pspec, | |
25759 | GQuark quark); | |
25760 | GParamSpec* g_param_spec_get_redirect_target (GParamSpec *pspec); | |
25761 | ||
25762 | void g_param_value_set_default (GParamSpec *pspec, | |
25763 | GValue *value); | |
25764 | gboolean g_param_value_defaults (GParamSpec *pspec, | |
25765 | GValue *value); | |
25766 | gboolean g_param_value_validate (GParamSpec *pspec, | |
25767 | GValue *value); | |
25768 | gboolean g_param_value_convert (GParamSpec *pspec, | |
25769 | const GValue *src_value, | |
25770 | GValue *dest_value, | |
25771 | gboolean strict_validation); | |
25772 | gint g_param_values_cmp (GParamSpec *pspec, | |
25773 | const GValue *value1, | |
25774 | const GValue *value2); | |
25775 | const gchar* g_param_spec_get_name (GParamSpec *pspec); | |
25776 | const gchar* g_param_spec_get_nick (GParamSpec *pspec); | |
25777 | const gchar* g_param_spec_get_blurb (GParamSpec *pspec); | |
25778 | void g_value_set_param (GValue *value, | |
25779 | GParamSpec *param); | |
25780 | GParamSpec* g_value_get_param (const GValue *value); | |
25781 | GParamSpec* g_value_dup_param (const GValue *value); | |
25782 | ||
25783 | ||
25784 | void g_value_take_param (GValue *value, | |
25785 | GParamSpec *param); | |
25786 | ||
25787 | void g_value_set_param_take_ownership (GValue *value, | |
25788 | GParamSpec *param); | |
25789 | ||
25790 | ||
25791 | ||
25792 | typedef struct _GParamSpecTypeInfo GParamSpecTypeInfo; | |
25793 | struct _GParamSpecTypeInfo | |
25794 | { | |
25795 | ||
25796 | guint16 instance_size; | |
25797 | guint16 n_preallocs; | |
25798 | void (*instance_init) (GParamSpec *pspec); | |
25799 | ||
25800 | ||
25801 | GType value_type; | |
25802 | void (*finalize) (GParamSpec *pspec); | |
25803 | void (*value_set_default) (GParamSpec *pspec, | |
25804 | GValue *value); | |
25805 | gboolean (*value_validate) (GParamSpec *pspec, | |
25806 | GValue *value); | |
25807 | gint (*values_cmp) (GParamSpec *pspec, | |
25808 | const GValue *value1, | |
25809 | const GValue *value2); | |
25810 | }; | |
25811 | GType g_param_type_register_static (const gchar *name, | |
25812 | const GParamSpecTypeInfo *pspec_info); | |
25813 | ||
25814 | ||
25815 | GType _g_param_type_register_static_constant (const gchar *name, | |
25816 | const GParamSpecTypeInfo *pspec_info, | |
25817 | GType opt_type); | |
25818 | ||
25819 | ||
25820 | ||
25821 | gpointer g_param_spec_internal (GType param_type, | |
25822 | const gchar *name, | |
25823 | const gchar *nick, | |
25824 | const gchar *blurb, | |
25825 | GParamFlags flags); | |
25826 | GParamSpecPool* g_param_spec_pool_new (gboolean type_prefixing); | |
25827 | void g_param_spec_pool_insert (GParamSpecPool *pool, | |
25828 | GParamSpec *pspec, | |
25829 | GType owner_type); | |
25830 | void g_param_spec_pool_remove (GParamSpecPool *pool, | |
25831 | GParamSpec *pspec); | |
25832 | GParamSpec* g_param_spec_pool_lookup (GParamSpecPool *pool, | |
25833 | const gchar *param_name, | |
25834 | GType owner_type, | |
25835 | gboolean walk_ancestors); | |
25836 | GList* g_param_spec_pool_list_owned (GParamSpecPool *pool, | |
25837 | GType owner_type); | |
25838 | GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool, | |
25839 | GType owner_type, | |
25840 | guint *n_pspecs_p); | |
25841 | # 232 "/usr/include/glib-2.0/gobject/gparam.h" | |
25842 | ||
25843 | # 29 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
25844 | # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1 | |
25845 | # 25 "/usr/include/glib-2.0/gobject/gclosure.h" | |
25846 | #define __G_CLOSURE_H__ | |
25847 | ||
25848 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
25849 | # 28 "/usr/include/glib-2.0/gobject/gclosure.h" 2 | |
25850 | ||
25851 | ||
25852 | ||
25853 | ||
25854 | #define G_CLOSURE_NEEDS_MARSHAL(closure) (((GClosure*) (closure))->marshal == NULL) | |
25855 | #define G_CLOSURE_N_NOTIFIERS(cl) ((cl)->meta_marshal + ((cl)->n_guards << 1L) + (cl)->n_fnotifiers + (cl)->n_inotifiers) | |
25856 | ||
25857 | #define G_CCLOSURE_SWAP_DATA(cclosure) (((GClosure*) (closure))->derivative_flag) | |
25858 | #define G_CALLBACK(f) ((GCallback) (f)) | |
25859 | ||
25860 | ||
25861 | ||
25862 | typedef struct _GClosure GClosure; | |
25863 | typedef struct _GClosureNotifyData GClosureNotifyData; | |
25864 | typedef void (*GCallback) (void); | |
25865 | typedef void (*GClosureNotify) (gpointer data, | |
25866 | GClosure *closure); | |
25867 | typedef void (*GClosureMarshal) (GClosure *closure, | |
25868 | GValue *return_value, | |
25869 | guint n_param_values, | |
25870 | const GValue *param_values, | |
25871 | gpointer invocation_hint, | |
25872 | gpointer marshal_data); | |
25873 | typedef struct _GCClosure GCClosure; | |
25874 | ||
25875 | ||
25876 | ||
25877 | struct _GClosureNotifyData | |
25878 | { | |
25879 | gpointer data; | |
25880 | GClosureNotify notify; | |
25881 | }; | |
25882 | struct _GClosure | |
25883 | { | |
25884 | ||
25885 | __volatile__ guint ref_count : 15; | |
25886 | __volatile__ guint meta_marshal : 1; | |
25887 | __volatile__ guint n_guards : 1; | |
25888 | __volatile__ guint n_fnotifiers : 2; | |
25889 | __volatile__ guint n_inotifiers : 8; | |
25890 | __volatile__ guint in_inotify : 1; | |
25891 | __volatile__ guint floating : 1; | |
25892 | ||
25893 | __volatile__ guint derivative_flag : 1; | |
25894 | ||
25895 | __volatile__ guint in_marshal : 1; | |
25896 | __volatile__ guint is_invalid : 1; | |
25897 | ||
25898 | void (*marshal) (GClosure *closure, | |
25899 | GValue *return_value, | |
25900 | guint n_param_values, | |
25901 | const GValue *param_values, | |
25902 | gpointer invocation_hint, | |
25903 | gpointer marshal_data); | |
25904 | gpointer data; | |
25905 | ||
25906 | GClosureNotifyData *notifiers; | |
25907 | # 96 "/usr/include/glib-2.0/gobject/gclosure.h" | |
25908 | }; | |
25909 | ||
25910 | ||
25911 | struct _GCClosure | |
25912 | { | |
25913 | GClosure closure; | |
25914 | gpointer callback; | |
25915 | }; | |
25916 | ||
25917 | ||
25918 | ||
25919 | GClosure* g_cclosure_new (GCallback callback_func, | |
25920 | gpointer user_data, | |
25921 | GClosureNotify destroy_data); | |
25922 | GClosure* g_cclosure_new_swap (GCallback callback_func, | |
25923 | gpointer user_data, | |
25924 | GClosureNotify destroy_data); | |
25925 | GClosure* g_signal_type_cclosure_new (GType itype, | |
25926 | guint struct_offset); | |
25927 | ||
25928 | ||
25929 | ||
25930 | GClosure* g_closure_ref (GClosure *closure); | |
25931 | void g_closure_sink (GClosure *closure); | |
25932 | void g_closure_unref (GClosure *closure); | |
25933 | ||
25934 | GClosure* g_closure_new_simple (guint sizeof_closure, | |
25935 | gpointer data); | |
25936 | void g_closure_add_finalize_notifier (GClosure *closure, | |
25937 | gpointer notify_data, | |
25938 | GClosureNotify notify_func); | |
25939 | void g_closure_remove_finalize_notifier (GClosure *closure, | |
25940 | gpointer notify_data, | |
25941 | GClosureNotify notify_func); | |
25942 | void g_closure_add_invalidate_notifier (GClosure *closure, | |
25943 | gpointer notify_data, | |
25944 | GClosureNotify notify_func); | |
25945 | void g_closure_remove_invalidate_notifier (GClosure *closure, | |
25946 | gpointer notify_data, | |
25947 | GClosureNotify notify_func); | |
25948 | void g_closure_add_marshal_guards (GClosure *closure, | |
25949 | gpointer pre_marshal_data, | |
25950 | GClosureNotify pre_marshal_notify, | |
25951 | gpointer post_marshal_data, | |
25952 | GClosureNotify post_marshal_notify); | |
25953 | void g_closure_set_marshal (GClosure *closure, | |
25954 | GClosureMarshal marshal); | |
25955 | void g_closure_set_meta_marshal (GClosure *closure, | |
25956 | gpointer marshal_data, | |
25957 | GClosureMarshal meta_marshal); | |
25958 | void g_closure_invalidate (GClosure *closure); | |
25959 | void g_closure_invoke (GClosure *closure, | |
25960 | GValue *return_value, | |
25961 | guint n_param_values, | |
25962 | const GValue *param_values, | |
25963 | gpointer invocation_hint); | |
25964 | # 164 "/usr/include/glib-2.0/gobject/gclosure.h" | |
25965 | ||
25966 | # 30 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
25967 | # 1 "/usr/include/glib-2.0/gobject/gsignal.h" 1 | |
25968 | # 24 "/usr/include/glib-2.0/gobject/gsignal.h" | |
25969 | #define __G_SIGNAL_H__ | |
25970 | ||
25971 | # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1 | |
25972 | # 27 "/usr/include/glib-2.0/gobject/gsignal.h" 2 | |
25973 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
25974 | # 28 "/usr/include/glib-2.0/gobject/gsignal.h" 2 | |
25975 | # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1 | |
25976 | # 29 "/usr/include/glib-2.0/gobject/gsignal.h" 2 | |
25977 | # 1 "/usr/include/glib-2.0/gobject/gmarshal.h" 1 | |
25978 | ||
25979 | #define __G_MARSHAL_H__ | |
25980 | ||
25981 | ||
25982 | ||
25983 | ||
25984 | extern void g_cclosure_marshal_VOID__VOID (GClosure *closure, | |
25985 | GValue *return_value, | |
25986 | guint n_param_values, | |
25987 | const GValue *param_values, | |
25988 | gpointer invocation_hint, | |
25989 | gpointer marshal_data); | |
25990 | ||
25991 | ||
25992 | extern void g_cclosure_marshal_VOID__BOOLEAN (GClosure *closure, | |
25993 | GValue *return_value, | |
25994 | guint n_param_values, | |
25995 | const GValue *param_values, | |
25996 | gpointer invocation_hint, | |
25997 | gpointer marshal_data); | |
25998 | ||
25999 | ||
26000 | extern void g_cclosure_marshal_VOID__CHAR (GClosure *closure, | |
26001 | GValue *return_value, | |
26002 | guint n_param_values, | |
26003 | const GValue *param_values, | |
26004 | gpointer invocation_hint, | |
26005 | gpointer marshal_data); | |
26006 | ||
26007 | ||
26008 | extern void g_cclosure_marshal_VOID__UCHAR (GClosure *closure, | |
26009 | GValue *return_value, | |
26010 | guint n_param_values, | |
26011 | const GValue *param_values, | |
26012 | gpointer invocation_hint, | |
26013 | gpointer marshal_data); | |
26014 | ||
26015 | ||
26016 | extern void g_cclosure_marshal_VOID__INT (GClosure *closure, | |
26017 | GValue *return_value, | |
26018 | guint n_param_values, | |
26019 | const GValue *param_values, | |
26020 | gpointer invocation_hint, | |
26021 | gpointer marshal_data); | |
26022 | ||
26023 | ||
26024 | extern void g_cclosure_marshal_VOID__UINT (GClosure *closure, | |
26025 | GValue *return_value, | |
26026 | guint n_param_values, | |
26027 | const GValue *param_values, | |
26028 | gpointer invocation_hint, | |
26029 | gpointer marshal_data); | |
26030 | ||
26031 | ||
26032 | extern void g_cclosure_marshal_VOID__LONG (GClosure *closure, | |
26033 | GValue *return_value, | |
26034 | guint n_param_values, | |
26035 | const GValue *param_values, | |
26036 | gpointer invocation_hint, | |
26037 | gpointer marshal_data); | |
26038 | ||
26039 | ||
26040 | extern void g_cclosure_marshal_VOID__ULONG (GClosure *closure, | |
26041 | GValue *return_value, | |
26042 | guint n_param_values, | |
26043 | const GValue *param_values, | |
26044 | gpointer invocation_hint, | |
26045 | gpointer marshal_data); | |
26046 | ||
26047 | ||
26048 | extern void g_cclosure_marshal_VOID__ENUM (GClosure *closure, | |
26049 | GValue *return_value, | |
26050 | guint n_param_values, | |
26051 | const GValue *param_values, | |
26052 | gpointer invocation_hint, | |
26053 | gpointer marshal_data); | |
26054 | ||
26055 | ||
26056 | extern void g_cclosure_marshal_VOID__FLAGS (GClosure *closure, | |
26057 | GValue *return_value, | |
26058 | guint n_param_values, | |
26059 | const GValue *param_values, | |
26060 | gpointer invocation_hint, | |
26061 | gpointer marshal_data); | |
26062 | ||
26063 | ||
26064 | extern void g_cclosure_marshal_VOID__FLOAT (GClosure *closure, | |
26065 | GValue *return_value, | |
26066 | guint n_param_values, | |
26067 | const GValue *param_values, | |
26068 | gpointer invocation_hint, | |
26069 | gpointer marshal_data); | |
26070 | ||
26071 | ||
26072 | extern void g_cclosure_marshal_VOID__DOUBLE (GClosure *closure, | |
26073 | GValue *return_value, | |
26074 | guint n_param_values, | |
26075 | const GValue *param_values, | |
26076 | gpointer invocation_hint, | |
26077 | gpointer marshal_data); | |
26078 | ||
26079 | ||
26080 | extern void g_cclosure_marshal_VOID__STRING (GClosure *closure, | |
26081 | GValue *return_value, | |
26082 | guint n_param_values, | |
26083 | const GValue *param_values, | |
26084 | gpointer invocation_hint, | |
26085 | gpointer marshal_data); | |
26086 | ||
26087 | ||
26088 | extern void g_cclosure_marshal_VOID__PARAM (GClosure *closure, | |
26089 | GValue *return_value, | |
26090 | guint n_param_values, | |
26091 | const GValue *param_values, | |
26092 | gpointer invocation_hint, | |
26093 | gpointer marshal_data); | |
26094 | ||
26095 | ||
26096 | extern void g_cclosure_marshal_VOID__BOXED (GClosure *closure, | |
26097 | GValue *return_value, | |
26098 | guint n_param_values, | |
26099 | const GValue *param_values, | |
26100 | gpointer invocation_hint, | |
26101 | gpointer marshal_data); | |
26102 | ||
26103 | ||
26104 | extern void g_cclosure_marshal_VOID__POINTER (GClosure *closure, | |
26105 | GValue *return_value, | |
26106 | guint n_param_values, | |
26107 | const GValue *param_values, | |
26108 | gpointer invocation_hint, | |
26109 | gpointer marshal_data); | |
26110 | ||
26111 | ||
26112 | extern void g_cclosure_marshal_VOID__OBJECT (GClosure *closure, | |
26113 | GValue *return_value, | |
26114 | guint n_param_values, | |
26115 | const GValue *param_values, | |
26116 | gpointer invocation_hint, | |
26117 | gpointer marshal_data); | |
26118 | ||
26119 | ||
26120 | extern void g_cclosure_marshal_VOID__UINT_POINTER (GClosure *closure, | |
26121 | GValue *return_value, | |
26122 | guint n_param_values, | |
26123 | const GValue *param_values, | |
26124 | gpointer invocation_hint, | |
26125 | gpointer marshal_data); | |
26126 | ||
26127 | ||
26128 | extern void g_cclosure_marshal_BOOLEAN__FLAGS (GClosure *closure, | |
26129 | GValue *return_value, | |
26130 | guint n_param_values, | |
26131 | const GValue *param_values, | |
26132 | gpointer invocation_hint, | |
26133 | gpointer marshal_data); | |
26134 | #define g_cclosure_marshal_BOOL__FLAGS g_cclosure_marshal_BOOLEAN__FLAGS | |
26135 | ||
26136 | ||
26137 | extern void g_cclosure_marshal_STRING__OBJECT_POINTER (GClosure *closure, | |
26138 | GValue *return_value, | |
26139 | guint n_param_values, | |
26140 | const GValue *param_values, | |
26141 | gpointer invocation_hint, | |
26142 | gpointer marshal_data); | |
26143 | ||
26144 | ||
26145 | # 30 "/usr/include/glib-2.0/gobject/gsignal.h" 2 | |
26146 | ||
26147 | ||
26148 | ||
26149 | ||
26150 | typedef struct _GSignalQuery GSignalQuery; | |
26151 | typedef struct _GSignalInvocationHint GSignalInvocationHint; | |
26152 | typedef GClosureMarshal GSignalCMarshaller; | |
26153 | typedef gboolean (*GSignalEmissionHook) (GSignalInvocationHint *ihint, | |
26154 | guint n_param_values, | |
26155 | const GValue *param_values, | |
26156 | gpointer data); | |
26157 | typedef gboolean (*GSignalAccumulator) (GSignalInvocationHint *ihint, | |
26158 | GValue *return_accu, | |
26159 | const GValue *handler_return, | |
26160 | gpointer data); | |
26161 | ||
26162 | ||
26163 | ||
26164 | typedef enum | |
26165 | { | |
26166 | G_SIGNAL_RUN_FIRST = 1 << 0, | |
26167 | G_SIGNAL_RUN_LAST = 1 << 1, | |
26168 | G_SIGNAL_RUN_CLEANUP = 1 << 2, | |
26169 | G_SIGNAL_NO_RECURSE = 1 << 3, | |
26170 | G_SIGNAL_DETAILED = 1 << 4, | |
26171 | G_SIGNAL_ACTION = 1 << 5, | |
26172 | G_SIGNAL_NO_HOOKS = 1 << 6 | |
26173 | } GSignalFlags; | |
26174 | #define G_SIGNAL_FLAGS_MASK 0x7f | |
26175 | typedef enum | |
26176 | { | |
26177 | G_CONNECT_AFTER = 1 << 0, | |
26178 | G_CONNECT_SWAPPED = 1 << 1 | |
26179 | } GConnectFlags; | |
26180 | typedef enum | |
26181 | { | |
26182 | G_SIGNAL_MATCH_ID = 1 << 0, | |
26183 | G_SIGNAL_MATCH_DETAIL = 1 << 1, | |
26184 | G_SIGNAL_MATCH_CLOSURE = 1 << 2, | |
26185 | G_SIGNAL_MATCH_FUNC = 1 << 3, | |
26186 | G_SIGNAL_MATCH_DATA = 1 << 4, | |
26187 | G_SIGNAL_MATCH_UNBLOCKED = 1 << 5 | |
26188 | } GSignalMatchType; | |
26189 | #define G_SIGNAL_MATCH_MASK 0x3f | |
26190 | #define G_SIGNAL_TYPE_STATIC_SCOPE (G_TYPE_FLAG_RESERVED_ID_BIT) | |
26191 | ||
26192 | ||
26193 | ||
26194 | struct _GSignalInvocationHint | |
26195 | { | |
26196 | guint signal_id; | |
26197 | GQuark detail; | |
26198 | GSignalFlags run_type; | |
26199 | }; | |
26200 | struct _GSignalQuery | |
26201 | { | |
26202 | guint signal_id; | |
26203 | const gchar *signal_name; | |
26204 | GType itype; | |
26205 | GSignalFlags signal_flags; | |
26206 | GType return_type; | |
26207 | guint n_params; | |
26208 | const GType *param_types; | |
26209 | }; | |
26210 | ||
26211 | ||
26212 | ||
26213 | guint g_signal_newv (const gchar *signal_name, | |
26214 | GType itype, | |
26215 | GSignalFlags signal_flags, | |
26216 | GClosure *class_closure, | |
26217 | GSignalAccumulator accumulator, | |
26218 | gpointer accu_data, | |
26219 | GSignalCMarshaller c_marshaller, | |
26220 | GType return_type, | |
26221 | guint n_params, | |
26222 | GType *param_types); | |
26223 | guint g_signal_new_valist (const gchar *signal_name, | |
26224 | GType itype, | |
26225 | GSignalFlags signal_flags, | |
26226 | GClosure *class_closure, | |
26227 | GSignalAccumulator accumulator, | |
26228 | gpointer accu_data, | |
26229 | GSignalCMarshaller c_marshaller, | |
26230 | GType return_type, | |
26231 | guint n_params, | |
26232 | va_list args); | |
26233 | guint g_signal_new (const gchar *signal_name, | |
26234 | GType itype, | |
26235 | GSignalFlags signal_flags, | |
26236 | guint class_offset, | |
26237 | GSignalAccumulator accumulator, | |
26238 | gpointer accu_data, | |
26239 | GSignalCMarshaller c_marshaller, | |
26240 | GType return_type, | |
26241 | guint n_params, | |
26242 | ...); | |
26243 | void g_signal_emitv (const GValue *instance_and_params, | |
26244 | guint signal_id, | |
26245 | GQuark detail, | |
26246 | GValue *return_value); | |
26247 | void g_signal_emit_valist (gpointer instance, | |
26248 | guint signal_id, | |
26249 | GQuark detail, | |
26250 | va_list var_args); | |
26251 | void g_signal_emit (gpointer instance, | |
26252 | guint signal_id, | |
26253 | GQuark detail, | |
26254 | ...); | |
26255 | void g_signal_emit_by_name (gpointer instance, | |
26256 | const gchar *detailed_signal, | |
26257 | ...); | |
26258 | guint g_signal_lookup (const gchar *name, | |
26259 | GType itype); | |
26260 | const gchar* g_signal_name (guint signal_id); | |
26261 | void g_signal_query (guint signal_id, | |
26262 | GSignalQuery *query); | |
26263 | guint* g_signal_list_ids (GType itype, | |
26264 | guint *n_ids); | |
26265 | gboolean g_signal_parse_name (const gchar *detailed_signal, | |
26266 | GType itype, | |
26267 | guint *signal_id_p, | |
26268 | GQuark *detail_p, | |
26269 | gboolean force_detail_quark); | |
26270 | GSignalInvocationHint* g_signal_get_invocation_hint (gpointer instance); | |
26271 | ||
26272 | ||
26273 | ||
26274 | void g_signal_stop_emission (gpointer instance, | |
26275 | guint signal_id, | |
26276 | GQuark detail); | |
26277 | void g_signal_stop_emission_by_name (gpointer instance, | |
26278 | const gchar *detailed_signal); | |
26279 | gulong g_signal_add_emission_hook (guint signal_id, | |
26280 | GQuark detail, | |
26281 | GSignalEmissionHook hook_func, | |
26282 | gpointer hook_data, | |
26283 | GDestroyNotify data_destroy); | |
26284 | void g_signal_remove_emission_hook (guint signal_id, | |
26285 | gulong hook_id); | |
26286 | ||
26287 | ||
26288 | ||
26289 | gboolean g_signal_has_handler_pending (gpointer instance, | |
26290 | guint signal_id, | |
26291 | GQuark detail, | |
26292 | gboolean may_be_blocked); | |
26293 | gulong g_signal_connect_closure_by_id (gpointer instance, | |
26294 | guint signal_id, | |
26295 | GQuark detail, | |
26296 | GClosure *closure, | |
26297 | gboolean after); | |
26298 | gulong g_signal_connect_closure (gpointer instance, | |
26299 | const gchar *detailed_signal, | |
26300 | GClosure *closure, | |
26301 | gboolean after); | |
26302 | gulong g_signal_connect_data (gpointer instance, | |
26303 | const gchar *detailed_signal, | |
26304 | GCallback c_handler, | |
26305 | gpointer data, | |
26306 | GClosureNotify destroy_data, | |
26307 | GConnectFlags connect_flags); | |
26308 | void g_signal_handler_block (gpointer instance, | |
26309 | gulong handler_id); | |
26310 | void g_signal_handler_unblock (gpointer instance, | |
26311 | gulong handler_id); | |
26312 | void g_signal_handler_disconnect (gpointer instance, | |
26313 | gulong handler_id); | |
26314 | gboolean g_signal_handler_is_connected (gpointer instance, | |
26315 | gulong handler_id); | |
26316 | gulong g_signal_handler_find (gpointer instance, | |
26317 | GSignalMatchType mask, | |
26318 | guint signal_id, | |
26319 | GQuark detail, | |
26320 | GClosure *closure, | |
26321 | gpointer func, | |
26322 | gpointer data); | |
26323 | guint g_signal_handlers_block_matched (gpointer instance, | |
26324 | GSignalMatchType mask, | |
26325 | guint signal_id, | |
26326 | GQuark detail, | |
26327 | GClosure *closure, | |
26328 | gpointer func, | |
26329 | gpointer data); | |
26330 | guint g_signal_handlers_unblock_matched (gpointer instance, | |
26331 | GSignalMatchType mask, | |
26332 | guint signal_id, | |
26333 | GQuark detail, | |
26334 | GClosure *closure, | |
26335 | gpointer func, | |
26336 | gpointer data); | |
26337 | guint g_signal_handlers_disconnect_matched (gpointer instance, | |
26338 | GSignalMatchType mask, | |
26339 | guint signal_id, | |
26340 | GQuark detail, | |
26341 | GClosure *closure, | |
26342 | gpointer func, | |
26343 | gpointer data); | |
26344 | ||
26345 | ||
26346 | ||
26347 | void g_signal_override_class_closure (guint signal_id, | |
26348 | GType instance_type, | |
26349 | GClosure *class_closure); | |
26350 | void g_signal_chain_from_overridden (const GValue *instance_and_params, | |
26351 | GValue *return_value); | |
26352 | ||
26353 | ||
26354 | ||
26355 | #define g_signal_connect(instance,detailed_signal,c_handler,data) g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | |
26356 | ||
26357 | #define g_signal_connect_after(instance,detailed_signal,c_handler,data) g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_AFTER) | |
26358 | ||
26359 | #define g_signal_connect_swapped(instance,detailed_signal,c_handler,data) g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_SWAPPED) | |
26360 | ||
26361 | #define g_signal_handlers_disconnect_by_func(instance,func,data) g_signal_handlers_disconnect_matched ((instance), (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), 0, 0, NULL, (func), (data)) | |
26362 | ||
26363 | ||
26364 | ||
26365 | #define g_signal_handlers_block_by_func(instance,func,data) g_signal_handlers_block_matched ((instance), (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), 0, 0, NULL, (func), (data)) | |
26366 | ||
26367 | ||
26368 | ||
26369 | #define g_signal_handlers_unblock_by_func(instance,func,data) g_signal_handlers_unblock_matched ((instance), (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), 0, 0, NULL, (func), (data)) | |
26370 | ||
26371 | ||
26372 | ||
26373 | ||
26374 | ||
26375 | gboolean g_signal_accumulator_true_handled (GSignalInvocationHint *ihint, | |
26376 | GValue *return_accu, | |
26377 | const GValue *handler_return, | |
26378 | gpointer dummy); | |
26379 | ||
26380 | ||
26381 | void g_signal_handlers_destroy (gpointer instance); | |
26382 | void _g_signals_destroy (GType itype); | |
26383 | ||
26384 | ||
26385 | # 31 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
26386 | ||
26387 | ||
26388 | ||
26389 | ||
26390 | #define G_TYPE_IS_OBJECT(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_OBJECT) | |
26391 | #define G_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject)) | |
26392 | #define G_OBJECT_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_OBJECT, GObjectClass)) | |
26393 | #define G_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_OBJECT)) | |
26394 | #define G_IS_OBJECT_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_OBJECT)) | |
26395 | #define G_OBJECT_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), G_TYPE_OBJECT, GObjectClass)) | |
26396 | #define G_OBJECT_TYPE(object) (G_TYPE_FROM_INSTANCE (object)) | |
26397 | #define G_OBJECT_TYPE_NAME(object) (g_type_name (G_OBJECT_TYPE (object))) | |
26398 | #define G_OBJECT_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) | |
26399 | #define G_OBJECT_CLASS_NAME(class) (g_type_name (G_OBJECT_CLASS_TYPE (class))) | |
26400 | #define G_VALUE_HOLDS_OBJECT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_OBJECT)) | |
26401 | ||
26402 | ||
26403 | #define G_TYPE_INITIALLY_UNOWNED (g_initially_unowned_get_type()) | |
26404 | #define G_INITIALLY_UNOWNED(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_INITIALLY_UNOWNED, GInitiallyUnowned)) | |
26405 | #define G_INITIALLY_UNOWNED_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_INITIALLY_UNOWNED, GInitiallyUnownedClass)) | |
26406 | #define G_IS_INITIALLY_UNOWNED(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_INITIALLY_UNOWNED)) | |
26407 | #define G_IS_INITIALLY_UNOWNED_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_INITIALLY_UNOWNED)) | |
26408 | #define G_INITIALLY_UNOWNED_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), G_TYPE_INITIALLY_UNOWNED, GInitiallyUnownedClass)) | |
26409 | ||
26410 | ||
26411 | ||
26412 | ||
26413 | typedef struct _GObject GObject; | |
26414 | typedef struct _GObjectClass GObjectClass; | |
26415 | typedef struct _GObject GInitiallyUnowned; | |
26416 | typedef struct _GObjectClass GInitiallyUnownedClass; | |
26417 | typedef struct _GObjectConstructParam GObjectConstructParam; | |
26418 | typedef void (*GObjectGetPropertyFunc) (GObject *object, | |
26419 | guint property_id, | |
26420 | GValue *value, | |
26421 | GParamSpec *pspec); | |
26422 | typedef void (*GObjectSetPropertyFunc) (GObject *object, | |
26423 | guint property_id, | |
26424 | const GValue *value, | |
26425 | GParamSpec *pspec); | |
26426 | typedef void (*GObjectFinalizeFunc) (GObject *object); | |
26427 | typedef void (*GWeakNotify) (gpointer data, | |
26428 | GObject *where_the_object_was); | |
26429 | struct _GObject | |
26430 | { | |
26431 | GTypeInstance g_type_instance; | |
26432 | ||
26433 | ||
26434 | __volatile__ guint ref_count; | |
26435 | GData *qdata; | |
26436 | }; | |
26437 | struct _GObjectClass | |
26438 | { | |
26439 | GTypeClass g_type_class; | |
26440 | ||
26441 | ||
26442 | GSList *construct_properties; | |
26443 | ||
26444 | ||
26445 | ||
26446 | GObject* (*constructor) (GType type, | |
26447 | guint n_construct_properties, | |
26448 | GObjectConstructParam *construct_properties); | |
26449 | void (*set_property) (GObject *object, | |
26450 | guint property_id, | |
26451 | const GValue *value, | |
26452 | GParamSpec *pspec); | |
26453 | void (*get_property) (GObject *object, | |
26454 | guint property_id, | |
26455 | GValue *value, | |
26456 | GParamSpec *pspec); | |
26457 | void (*dispose) (GObject *object); | |
26458 | void (*finalize) (GObject *object); | |
26459 | ||
26460 | ||
26461 | void (*dispatch_properties_changed) (GObject *object, | |
26462 | guint n_pspecs, | |
26463 | GParamSpec **pspecs); | |
26464 | ||
26465 | ||
26466 | void (*notify) (GObject *object, | |
26467 | GParamSpec *pspec); | |
26468 | ||
26469 | ||
26470 | gpointer pdummy[8]; | |
26471 | }; | |
26472 | struct _GObjectConstructParam | |
26473 | { | |
26474 | GParamSpec *pspec; | |
26475 | GValue *value; | |
26476 | }; | |
26477 | ||
26478 | ||
26479 | ||
26480 | GType g_initially_unowned_get_type (void); | |
26481 | void g_object_class_install_property (GObjectClass *oclass, | |
26482 | guint property_id, | |
26483 | GParamSpec *pspec); | |
26484 | GParamSpec* g_object_class_find_property (GObjectClass *oclass, | |
26485 | const gchar *property_name); | |
26486 | GParamSpec**g_object_class_list_properties (GObjectClass *oclass, | |
26487 | guint *n_properties); | |
26488 | void g_object_class_override_property (GObjectClass *oclass, | |
26489 | guint property_id, | |
26490 | const gchar *name); | |
26491 | ||
26492 | void g_object_interface_install_property (gpointer g_iface, | |
26493 | GParamSpec *pspec); | |
26494 | GParamSpec* g_object_interface_find_property (gpointer g_iface, | |
26495 | const gchar *property_name); | |
26496 | GParamSpec**g_object_interface_list_properties (gpointer g_iface, | |
26497 | guint *n_properties_p); | |
26498 | ||
26499 | gpointer g_object_new (GType object_type, | |
26500 | const gchar *first_property_name, | |
26501 | ...); | |
26502 | gpointer g_object_newv (GType object_type, | |
26503 | guint n_parameters, | |
26504 | GParameter *parameters); | |
26505 | GObject* g_object_new_valist (GType object_type, | |
26506 | const gchar *first_property_name, | |
26507 | va_list var_args); | |
26508 | void g_object_set (gpointer object, | |
26509 | const gchar *first_property_name, | |
26510 | ...) ; | |
26511 | void g_object_get (gpointer object, | |
26512 | const gchar *first_property_name, | |
26513 | ...) ; | |
26514 | gpointer g_object_connect (gpointer object, | |
26515 | const gchar *signal_spec, | |
26516 | ...) ; | |
26517 | void g_object_disconnect (gpointer object, | |
26518 | const gchar *signal_spec, | |
26519 | ...) ; | |
26520 | void g_object_set_valist (GObject *object, | |
26521 | const gchar *first_property_name, | |
26522 | va_list var_args); | |
26523 | void g_object_get_valist (GObject *object, | |
26524 | const gchar *first_property_name, | |
26525 | va_list var_args); | |
26526 | void g_object_set_property (GObject *object, | |
26527 | const gchar *property_name, | |
26528 | const GValue *value); | |
26529 | void g_object_get_property (GObject *object, | |
26530 | const gchar *property_name, | |
26531 | GValue *value); | |
26532 | void g_object_freeze_notify (GObject *object); | |
26533 | void g_object_notify (GObject *object, | |
26534 | const gchar *property_name); | |
26535 | void g_object_thaw_notify (GObject *object); | |
26536 | gboolean g_object_is_floating (gpointer object); | |
26537 | gpointer g_object_ref_sink (gpointer object); | |
26538 | gpointer g_object_ref (gpointer object); | |
26539 | void g_object_unref (gpointer object); | |
26540 | void g_object_weak_ref (GObject *object, | |
26541 | GWeakNotify notify, | |
26542 | gpointer data); | |
26543 | void g_object_weak_unref (GObject *object, | |
26544 | GWeakNotify notify, | |
26545 | gpointer data); | |
26546 | void g_object_add_weak_pointer (GObject *object, | |
26547 | gpointer *weak_pointer_location); | |
26548 | void g_object_remove_weak_pointer (GObject *object, | |
26549 | gpointer *weak_pointer_location); | |
26550 | ||
26551 | typedef void (*GToggleNotify) (gpointer data, | |
26552 | GObject *object, | |
26553 | gboolean is_last_ref); | |
26554 | ||
26555 | void g_object_add_toggle_ref (GObject *object, | |
26556 | GToggleNotify notify, | |
26557 | gpointer data); | |
26558 | void g_object_remove_toggle_ref (GObject *object, | |
26559 | GToggleNotify notify, | |
26560 | gpointer data); | |
26561 | ||
26562 | gpointer g_object_get_qdata (GObject *object, | |
26563 | GQuark quark); | |
26564 | void g_object_set_qdata (GObject *object, | |
26565 | GQuark quark, | |
26566 | gpointer data); | |
26567 | void g_object_set_qdata_full (GObject *object, | |
26568 | GQuark quark, | |
26569 | gpointer data, | |
26570 | GDestroyNotify destroy); | |
26571 | gpointer g_object_steal_qdata (GObject *object, | |
26572 | GQuark quark); | |
26573 | gpointer g_object_get_data (GObject *object, | |
26574 | const gchar *key); | |
26575 | void g_object_set_data (GObject *object, | |
26576 | const gchar *key, | |
26577 | gpointer data); | |
26578 | void g_object_set_data_full (GObject *object, | |
26579 | const gchar *key, | |
26580 | gpointer data, | |
26581 | GDestroyNotify destroy); | |
26582 | gpointer g_object_steal_data (GObject *object, | |
26583 | const gchar *key); | |
26584 | void g_object_watch_closure (GObject *object, | |
26585 | GClosure *closure); | |
26586 | GClosure* g_cclosure_new_object (GCallback callback_func, | |
26587 | GObject *object); | |
26588 | GClosure* g_cclosure_new_object_swap (GCallback callback_func, | |
26589 | GObject *object); | |
26590 | GClosure* g_closure_new_object (guint sizeof_closure, | |
26591 | GObject *object); | |
26592 | void g_value_set_object (GValue *value, | |
26593 | gpointer v_object); | |
26594 | gpointer g_value_get_object (const GValue *value); | |
26595 | GObject* g_value_dup_object (const GValue *value); | |
26596 | gulong g_signal_connect_object (gpointer instance, | |
26597 | const gchar *detailed_signal, | |
26598 | GCallback c_handler, | |
26599 | gpointer gobject, | |
26600 | GConnectFlags connect_flags); | |
26601 | ||
26602 | ||
26603 | void g_object_force_floating (GObject *object); | |
26604 | void g_object_run_dispose (GObject *object); | |
26605 | ||
26606 | ||
26607 | void g_value_take_object (GValue *value, | |
26608 | gpointer v_object); | |
26609 | ||
26610 | void g_value_set_object_take_ownership (GValue *value, | |
26611 | gpointer v_object); | |
26612 | ||
26613 | ||
26614 | ||
26615 | gsize g_object_compat_control (gsize what, | |
26616 | gpointer data); | |
26617 | ||
26618 | ||
26619 | ||
26620 | #define G_OBJECT_WARN_INVALID_PSPEC(object,pname,property_id,pspec) G_STMT_START { GObject *_object = (GObject*) (object); GParamSpec *_pspec = (GParamSpec*) (pspec); guint _property_id = (property_id); g_warning ("%s: invalid %s id %u for \"%s\" of type `%s' in `%s'", G_STRLOC, (pname), _property_id, _pspec->name, g_type_name (G_PARAM_SPEC_TYPE (_pspec)), G_OBJECT_TYPE_NAME (_object)); } G_STMT_END | |
26621 | # 278 "/usr/include/glib-2.0/gobject/gobject.h" | |
26622 | #define G_OBJECT_WARN_INVALID_PROPERTY_ID(object,property_id,pspec) G_OBJECT_WARN_INVALID_PSPEC ((object), "property", (property_id), (pspec)) | |
26623 | ||
26624 | ||
26625 | ||
26626 | # 28 "/usr/include/glib-2.0/glib-object.h" 2 | |
26627 | # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1 | |
26628 | # 29 "/usr/include/glib-2.0/glib-object.h" 2 | |
26629 | # 1 "/usr/include/glib-2.0/gobject/gparamspecs.h" 1 | |
26630 | # 26 "/usr/include/glib-2.0/gobject/gparamspecs.h" | |
26631 | #define __G_PARAMSPECS_H__ | |
26632 | ||
26633 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
26634 | # 29 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2 | |
26635 | # 1 "/usr/include/glib-2.0/gobject/genums.h" 1 | |
26636 | # 30 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2 | |
26637 | # 1 "/usr/include/glib-2.0/gobject/gboxed.h" 1 | |
26638 | # 31 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2 | |
26639 | # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1 | |
26640 | # 32 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2 | |
26641 | ||
26642 | ||
26643 | ||
26644 | ||
26645 | #define G_TYPE_PARAM_CHAR (g_param_spec_types[0]) | |
26646 | #define G_IS_PARAM_SPEC_CHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_CHAR)) | |
26647 | #define G_PARAM_SPEC_CHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_CHAR, GParamSpecChar)) | |
26648 | #define G_TYPE_PARAM_UCHAR (g_param_spec_types[1]) | |
26649 | #define G_IS_PARAM_SPEC_UCHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UCHAR)) | |
26650 | #define G_PARAM_SPEC_UCHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UCHAR, GParamSpecUChar)) | |
26651 | #define G_TYPE_PARAM_BOOLEAN (g_param_spec_types[2]) | |
26652 | #define G_IS_PARAM_SPEC_BOOLEAN(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_BOOLEAN)) | |
26653 | #define G_PARAM_SPEC_BOOLEAN(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_BOOLEAN, GParamSpecBoolean)) | |
26654 | #define G_TYPE_PARAM_INT (g_param_spec_types[3]) | |
26655 | #define G_IS_PARAM_SPEC_INT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_INT)) | |
26656 | #define G_PARAM_SPEC_INT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INT, GParamSpecInt)) | |
26657 | #define G_TYPE_PARAM_UINT (g_param_spec_types[4]) | |
26658 | #define G_IS_PARAM_SPEC_UINT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UINT)) | |
26659 | #define G_PARAM_SPEC_UINT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UINT, GParamSpecUInt)) | |
26660 | #define G_TYPE_PARAM_LONG (g_param_spec_types[5]) | |
26661 | #define G_IS_PARAM_SPEC_LONG(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_LONG)) | |
26662 | #define G_PARAM_SPEC_LONG(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_LONG, GParamSpecLong)) | |
26663 | #define G_TYPE_PARAM_ULONG (g_param_spec_types[6]) | |
26664 | #define G_IS_PARAM_SPEC_ULONG(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_ULONG)) | |
26665 | #define G_PARAM_SPEC_ULONG(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_ULONG, GParamSpecULong)) | |
26666 | #define G_TYPE_PARAM_INT64 (g_param_spec_types[7]) | |
26667 | #define G_IS_PARAM_SPEC_INT64(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_INT64)) | |
26668 | #define G_PARAM_SPEC_INT64(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INT64, GParamSpecInt64)) | |
26669 | #define G_TYPE_PARAM_UINT64 (g_param_spec_types[8]) | |
26670 | #define G_IS_PARAM_SPEC_UINT64(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UINT64)) | |
26671 | #define G_PARAM_SPEC_UINT64(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UINT64, GParamSpecUInt64)) | |
26672 | #define G_TYPE_PARAM_UNICHAR (g_param_spec_types[9]) | |
26673 | #define G_PARAM_SPEC_UNICHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UNICHAR, GParamSpecUnichar)) | |
26674 | #define G_IS_PARAM_SPEC_UNICHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UNICHAR)) | |
26675 | #define G_TYPE_PARAM_ENUM (g_param_spec_types[10]) | |
26676 | #define G_IS_PARAM_SPEC_ENUM(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_ENUM)) | |
26677 | #define G_PARAM_SPEC_ENUM(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_ENUM, GParamSpecEnum)) | |
26678 | #define G_TYPE_PARAM_FLAGS (g_param_spec_types[11]) | |
26679 | #define G_IS_PARAM_SPEC_FLAGS(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_FLAGS)) | |
26680 | #define G_PARAM_SPEC_FLAGS(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_FLAGS, GParamSpecFlags)) | |
26681 | #define G_TYPE_PARAM_FLOAT (g_param_spec_types[12]) | |
26682 | #define G_IS_PARAM_SPEC_FLOAT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_FLOAT)) | |
26683 | #define G_PARAM_SPEC_FLOAT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_FLOAT, GParamSpecFloat)) | |
26684 | #define G_TYPE_PARAM_DOUBLE (g_param_spec_types[13]) | |
26685 | #define G_IS_PARAM_SPEC_DOUBLE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_DOUBLE)) | |
26686 | #define G_PARAM_SPEC_DOUBLE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_DOUBLE, GParamSpecDouble)) | |
26687 | #define G_TYPE_PARAM_STRING (g_param_spec_types[14]) | |
26688 | #define G_IS_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_STRING)) | |
26689 | #define G_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_STRING, GParamSpecString)) | |
26690 | #define G_TYPE_PARAM_PARAM (g_param_spec_types[15]) | |
26691 | #define G_IS_PARAM_SPEC_PARAM(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_PARAM)) | |
26692 | #define G_PARAM_SPEC_PARAM(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_PARAM, GParamSpecParam)) | |
26693 | #define G_TYPE_PARAM_BOXED (g_param_spec_types[16]) | |
26694 | #define G_IS_PARAM_SPEC_BOXED(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_BOXED)) | |
26695 | #define G_PARAM_SPEC_BOXED(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_BOXED, GParamSpecBoxed)) | |
26696 | #define G_TYPE_PARAM_POINTER (g_param_spec_types[17]) | |
26697 | #define G_IS_PARAM_SPEC_POINTER(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_POINTER)) | |
26698 | #define G_PARAM_SPEC_POINTER(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_POINTER, GParamSpecPointer)) | |
26699 | #define G_TYPE_PARAM_VALUE_ARRAY (g_param_spec_types[18]) | |
26700 | #define G_IS_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_VALUE_ARRAY)) | |
26701 | #define G_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_VALUE_ARRAY, GParamSpecValueArray)) | |
26702 | #define G_TYPE_PARAM_OBJECT (g_param_spec_types[19]) | |
26703 | #define G_IS_PARAM_SPEC_OBJECT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_OBJECT)) | |
26704 | #define G_PARAM_SPEC_OBJECT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_OBJECT, GParamSpecObject)) | |
26705 | #define G_TYPE_PARAM_OVERRIDE (g_param_spec_types[20]) | |
26706 | #define G_IS_PARAM_SPEC_OVERRIDE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_OVERRIDE)) | |
26707 | #define G_PARAM_SPEC_OVERRIDE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_OVERRIDE, GParamSpecOverride)) | |
26708 | #define G_TYPE_PARAM_GTYPE (g_param_spec_types[21]) | |
26709 | #define G_IS_PARAM_SPEC_GTYPE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_GTYPE)) | |
26710 | #define G_PARAM_SPEC_GTYPE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_GTYPE, GParamSpecGType)) | |
26711 | ||
26712 | ||
26713 | ||
26714 | typedef struct _GParamSpecChar GParamSpecChar; | |
26715 | typedef struct _GParamSpecUChar GParamSpecUChar; | |
26716 | typedef struct _GParamSpecBoolean GParamSpecBoolean; | |
26717 | typedef struct _GParamSpecInt GParamSpecInt; | |
26718 | typedef struct _GParamSpecUInt GParamSpecUInt; | |
26719 | typedef struct _GParamSpecLong GParamSpecLong; | |
26720 | typedef struct _GParamSpecULong GParamSpecULong; | |
26721 | typedef struct _GParamSpecInt64 GParamSpecInt64; | |
26722 | typedef struct _GParamSpecUInt64 GParamSpecUInt64; | |
26723 | typedef struct _GParamSpecUnichar GParamSpecUnichar; | |
26724 | typedef struct _GParamSpecEnum GParamSpecEnum; | |
26725 | typedef struct _GParamSpecFlags GParamSpecFlags; | |
26726 | typedef struct _GParamSpecFloat GParamSpecFloat; | |
26727 | typedef struct _GParamSpecDouble GParamSpecDouble; | |
26728 | typedef struct _GParamSpecString GParamSpecString; | |
26729 | typedef struct _GParamSpecParam GParamSpecParam; | |
26730 | typedef struct _GParamSpecBoxed GParamSpecBoxed; | |
26731 | typedef struct _GParamSpecPointer GParamSpecPointer; | |
26732 | typedef struct _GParamSpecValueArray GParamSpecValueArray; | |
26733 | typedef struct _GParamSpecObject GParamSpecObject; | |
26734 | typedef struct _GParamSpecOverride GParamSpecOverride; | |
26735 | typedef struct _GParamSpecGType GParamSpecGType; | |
26736 | ||
26737 | struct _GParamSpecChar | |
26738 | { | |
26739 | GParamSpec parent_instance; | |
26740 | ||
26741 | gint8 minimum; | |
26742 | gint8 maximum; | |
26743 | gint8 default_value; | |
26744 | }; | |
26745 | struct _GParamSpecUChar | |
26746 | { | |
26747 | GParamSpec parent_instance; | |
26748 | ||
26749 | guint8 minimum; | |
26750 | guint8 maximum; | |
26751 | guint8 default_value; | |
26752 | }; | |
26753 | struct _GParamSpecBoolean | |
26754 | { | |
26755 | GParamSpec parent_instance; | |
26756 | ||
26757 | gboolean default_value; | |
26758 | }; | |
26759 | struct _GParamSpecInt | |
26760 | { | |
26761 | GParamSpec parent_instance; | |
26762 | ||
26763 | gint minimum; | |
26764 | gint maximum; | |
26765 | gint default_value; | |
26766 | }; | |
26767 | struct _GParamSpecUInt | |
26768 | { | |
26769 | GParamSpec parent_instance; | |
26770 | ||
26771 | guint minimum; | |
26772 | guint maximum; | |
26773 | guint default_value; | |
26774 | }; | |
26775 | struct _GParamSpecLong | |
26776 | { | |
26777 | GParamSpec parent_instance; | |
26778 | ||
26779 | glong minimum; | |
26780 | glong maximum; | |
26781 | glong default_value; | |
26782 | }; | |
26783 | struct _GParamSpecULong | |
26784 | { | |
26785 | GParamSpec parent_instance; | |
26786 | ||
26787 | gulong minimum; | |
26788 | gulong maximum; | |
26789 | gulong default_value; | |
26790 | }; | |
26791 | struct _GParamSpecInt64 | |
26792 | { | |
26793 | GParamSpec parent_instance; | |
26794 | ||
26795 | gint64 minimum; | |
26796 | gint64 maximum; | |
26797 | gint64 default_value; | |
26798 | }; | |
26799 | struct _GParamSpecUInt64 | |
26800 | { | |
26801 | GParamSpec parent_instance; | |
26802 | ||
26803 | guint64 minimum; | |
26804 | guint64 maximum; | |
26805 | guint64 default_value; | |
26806 | }; | |
26807 | struct _GParamSpecUnichar | |
26808 | { | |
26809 | GParamSpec parent_instance; | |
26810 | ||
26811 | gunichar default_value; | |
26812 | }; | |
26813 | struct _GParamSpecEnum | |
26814 | { | |
26815 | GParamSpec parent_instance; | |
26816 | ||
26817 | GEnumClass *enum_class; | |
26818 | gint default_value; | |
26819 | }; | |
26820 | struct _GParamSpecFlags | |
26821 | { | |
26822 | GParamSpec parent_instance; | |
26823 | ||
26824 | GFlagsClass *flags_class; | |
26825 | guint default_value; | |
26826 | }; | |
26827 | struct _GParamSpecFloat | |
26828 | { | |
26829 | GParamSpec parent_instance; | |
26830 | ||
26831 | gfloat minimum; | |
26832 | gfloat maximum; | |
26833 | gfloat default_value; | |
26834 | gfloat epsilon; | |
26835 | }; | |
26836 | struct _GParamSpecDouble | |
26837 | { | |
26838 | GParamSpec parent_instance; | |
26839 | ||
26840 | gdouble minimum; | |
26841 | gdouble maximum; | |
26842 | gdouble default_value; | |
26843 | gdouble epsilon; | |
26844 | }; | |
26845 | struct _GParamSpecString | |
26846 | { | |
26847 | GParamSpec parent_instance; | |
26848 | ||
26849 | gchar *default_value; | |
26850 | gchar *cset_first; | |
26851 | gchar *cset_nth; | |
26852 | gchar substitutor; | |
26853 | guint null_fold_if_empty : 1; | |
26854 | guint ensure_non_null : 1; | |
26855 | }; | |
26856 | struct _GParamSpecParam | |
26857 | { | |
26858 | GParamSpec parent_instance; | |
26859 | }; | |
26860 | struct _GParamSpecBoxed | |
26861 | { | |
26862 | GParamSpec parent_instance; | |
26863 | }; | |
26864 | struct _GParamSpecPointer | |
26865 | { | |
26866 | GParamSpec parent_instance; | |
26867 | }; | |
26868 | struct _GParamSpecValueArray | |
26869 | { | |
26870 | GParamSpec parent_instance; | |
26871 | GParamSpec *element_spec; | |
26872 | guint fixed_n_elements; | |
26873 | }; | |
26874 | struct _GParamSpecObject | |
26875 | { | |
26876 | GParamSpec parent_instance; | |
26877 | }; | |
26878 | struct _GParamSpecOverride | |
26879 | { | |
26880 | ||
26881 | GParamSpec parent_instance; | |
26882 | GParamSpec *overridden; | |
26883 | }; | |
26884 | struct _GParamSpecGType | |
26885 | { | |
26886 | GParamSpec parent_instance; | |
26887 | GType is_a_type; | |
26888 | }; | |
26889 | ||
26890 | ||
26891 | GParamSpec* g_param_spec_char (const gchar *name, | |
26892 | const gchar *nick, | |
26893 | const gchar *blurb, | |
26894 | gint8 minimum, | |
26895 | gint8 maximum, | |
26896 | gint8 default_value, | |
26897 | GParamFlags flags); | |
26898 | GParamSpec* g_param_spec_uchar (const gchar *name, | |
26899 | const gchar *nick, | |
26900 | const gchar *blurb, | |
26901 | guint8 minimum, | |
26902 | guint8 maximum, | |
26903 | guint8 default_value, | |
26904 | GParamFlags flags); | |
26905 | GParamSpec* g_param_spec_boolean (const gchar *name, | |
26906 | const gchar *nick, | |
26907 | const gchar *blurb, | |
26908 | gboolean default_value, | |
26909 | GParamFlags flags); | |
26910 | GParamSpec* g_param_spec_int (const gchar *name, | |
26911 | const gchar *nick, | |
26912 | const gchar *blurb, | |
26913 | gint minimum, | |
26914 | gint maximum, | |
26915 | gint default_value, | |
26916 | GParamFlags flags); | |
26917 | GParamSpec* g_param_spec_uint (const gchar *name, | |
26918 | const gchar *nick, | |
26919 | const gchar *blurb, | |
26920 | guint minimum, | |
26921 | guint maximum, | |
26922 | guint default_value, | |
26923 | GParamFlags flags); | |
26924 | GParamSpec* g_param_spec_long (const gchar *name, | |
26925 | const gchar *nick, | |
26926 | const gchar *blurb, | |
26927 | glong minimum, | |
26928 | glong maximum, | |
26929 | glong default_value, | |
26930 | GParamFlags flags); | |
26931 | GParamSpec* g_param_spec_ulong (const gchar *name, | |
26932 | const gchar *nick, | |
26933 | const gchar *blurb, | |
26934 | gulong minimum, | |
26935 | gulong maximum, | |
26936 | gulong default_value, | |
26937 | GParamFlags flags); | |
26938 | GParamSpec* g_param_spec_int64 (const gchar *name, | |
26939 | const gchar *nick, | |
26940 | const gchar *blurb, | |
26941 | gint64 minimum, | |
26942 | gint64 maximum, | |
26943 | gint64 default_value, | |
26944 | GParamFlags flags); | |
26945 | GParamSpec* g_param_spec_uint64 (const gchar *name, | |
26946 | const gchar *nick, | |
26947 | const gchar *blurb, | |
26948 | guint64 minimum, | |
26949 | guint64 maximum, | |
26950 | guint64 default_value, | |
26951 | GParamFlags flags); | |
26952 | GParamSpec* g_param_spec_unichar (const gchar *name, | |
26953 | const gchar *nick, | |
26954 | const gchar *blurb, | |
26955 | gunichar default_value, | |
26956 | GParamFlags flags); | |
26957 | GParamSpec* g_param_spec_enum (const gchar *name, | |
26958 | const gchar *nick, | |
26959 | const gchar *blurb, | |
26960 | GType enum_type, | |
26961 | gint default_value, | |
26962 | GParamFlags flags); | |
26963 | GParamSpec* g_param_spec_flags (const gchar *name, | |
26964 | const gchar *nick, | |
26965 | const gchar *blurb, | |
26966 | GType flags_type, | |
26967 | guint default_value, | |
26968 | GParamFlags flags); | |
26969 | GParamSpec* g_param_spec_float (const gchar *name, | |
26970 | const gchar *nick, | |
26971 | const gchar *blurb, | |
26972 | gfloat minimum, | |
26973 | gfloat maximum, | |
26974 | gfloat default_value, | |
26975 | GParamFlags flags); | |
26976 | GParamSpec* g_param_spec_double (const gchar *name, | |
26977 | const gchar *nick, | |
26978 | const gchar *blurb, | |
26979 | gdouble minimum, | |
26980 | gdouble maximum, | |
26981 | gdouble default_value, | |
26982 | GParamFlags flags); | |
26983 | GParamSpec* g_param_spec_string (const gchar *name, | |
26984 | const gchar *nick, | |
26985 | const gchar *blurb, | |
26986 | const gchar *default_value, | |
26987 | GParamFlags flags); | |
26988 | GParamSpec* g_param_spec_param (const gchar *name, | |
26989 | const gchar *nick, | |
26990 | const gchar *blurb, | |
26991 | GType param_type, | |
26992 | GParamFlags flags); | |
26993 | GParamSpec* g_param_spec_boxed (const gchar *name, | |
26994 | const gchar *nick, | |
26995 | const gchar *blurb, | |
26996 | GType boxed_type, | |
26997 | GParamFlags flags); | |
26998 | GParamSpec* g_param_spec_pointer (const gchar *name, | |
26999 | const gchar *nick, | |
27000 | const gchar *blurb, | |
27001 | GParamFlags flags); | |
27002 | GParamSpec* g_param_spec_value_array (const gchar *name, | |
27003 | const gchar *nick, | |
27004 | const gchar *blurb, | |
27005 | GParamSpec *element_spec, | |
27006 | GParamFlags flags); | |
27007 | GParamSpec* g_param_spec_object (const gchar *name, | |
27008 | const gchar *nick, | |
27009 | const gchar *blurb, | |
27010 | GType object_type, | |
27011 | GParamFlags flags); | |
27012 | GParamSpec* g_param_spec_override (const gchar *name, | |
27013 | GParamSpec *overridden); | |
27014 | GParamSpec* g_param_spec_gtype (const gchar *name, | |
27015 | const gchar *nick, | |
27016 | const gchar *blurb, | |
27017 | GType is_a_type, | |
27018 | GParamFlags flags); | |
27019 | # 431 "/usr/include/glib-2.0/gobject/gparamspecs.h" | |
27020 | #define GOBJECT_VAR extern | |
27021 | ||
27022 | ||
27023 | ||
27024 | extern GType *g_param_spec_types; | |
27025 | ||
27026 | ||
27027 | # 30 "/usr/include/glib-2.0/glib-object.h" 2 | |
27028 | # 1 "/usr/include/glib-2.0/gobject/gsignal.h" 1 | |
27029 | # 31 "/usr/include/glib-2.0/glib-object.h" 2 | |
27030 | # 1 "/usr/include/glib-2.0/gobject/gsourceclosure.h" 1 | |
27031 | # 24 "/usr/include/glib-2.0/gobject/gsourceclosure.h" | |
27032 | #define __G_SOURCECLOSURE_H__ | |
27033 | ||
27034 | # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1 | |
27035 | # 27 "/usr/include/glib-2.0/gobject/gsourceclosure.h" 2 | |
27036 | ||
27037 | ||
27038 | ||
27039 | void g_source_set_closure (GSource *source, | |
27040 | GClosure *closure); | |
27041 | ||
27042 | GType g_io_channel_get_type (void); | |
27043 | GType g_io_condition_get_type (void); | |
27044 | ||
27045 | #define G_TYPE_IO_CHANNEL (g_io_channel_get_type ()) | |
27046 | #define G_TYPE_IO_CONDITION (g_io_condition_get_type ()) | |
27047 | ||
27048 | ||
27049 | # 32 "/usr/include/glib-2.0/glib-object.h" 2 | |
27050 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
27051 | # 33 "/usr/include/glib-2.0/glib-object.h" 2 | |
27052 | # 1 "/usr/include/glib-2.0/gobject/gtypemodule.h" 1 | |
27053 | # 24 "/usr/include/glib-2.0/gobject/gtypemodule.h" | |
27054 | #define __G_TYPE_MODULE_H__ | |
27055 | ||
27056 | # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1 | |
27057 | # 27 "/usr/include/glib-2.0/gobject/gtypemodule.h" 2 | |
27058 | # 1 "/usr/include/glib-2.0/gobject/genums.h" 1 | |
27059 | # 28 "/usr/include/glib-2.0/gobject/gtypemodule.h" 2 | |
27060 | ||
27061 | ||
27062 | ||
27063 | typedef struct _GTypeModule GTypeModule; | |
27064 | typedef struct _GTypeModuleClass GTypeModuleClass; | |
27065 | ||
27066 | #define G_TYPE_TYPE_MODULE (g_type_module_get_type ()) | |
27067 | #define G_TYPE_MODULE(module) (G_TYPE_CHECK_INSTANCE_CAST ((module), G_TYPE_TYPE_MODULE, GTypeModule)) | |
27068 | #define G_TYPE_MODULE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_TYPE_MODULE, GTypeModuleClass)) | |
27069 | #define G_IS_TYPE_MODULE(module) (G_TYPE_CHECK_INSTANCE_TYPE ((module), G_TYPE_TYPE_MODULE)) | |
27070 | #define G_IS_TYPE_MODULE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_TYPE_MODULE)) | |
27071 | #define G_TYPE_MODULE_GET_CLASS(module) (G_TYPE_INSTANCE_GET_CLASS ((module), G_TYPE_TYPE_MODULE, GTypeModuleClass)) | |
27072 | ||
27073 | struct _GTypeModule | |
27074 | { | |
27075 | GObject parent_instance; | |
27076 | ||
27077 | guint use_count; | |
27078 | GSList *type_infos; | |
27079 | GSList *interface_infos; | |
27080 | ||
27081 | ||
27082 | gchar *name; | |
27083 | }; | |
27084 | ||
27085 | struct _GTypeModuleClass | |
27086 | { | |
27087 | GObjectClass parent_class; | |
27088 | ||
27089 | ||
27090 | gboolean (* load) (GTypeModule *module); | |
27091 | void (* unload) (GTypeModule *module); | |
27092 | ||
27093 | ||
27094 | ||
27095 | void (*reserved1) (void); | |
27096 | void (*reserved2) (void); | |
27097 | void (*reserved3) (void); | |
27098 | void (*reserved4) (void); | |
27099 | }; | |
27100 | ||
27101 | GType g_type_module_get_type (void) __attribute__((__const__)); | |
27102 | gboolean g_type_module_use (GTypeModule *module); | |
27103 | void g_type_module_unuse (GTypeModule *module); | |
27104 | void g_type_module_set_name (GTypeModule *module, | |
27105 | const gchar *name); | |
27106 | GType g_type_module_register_type (GTypeModule *module, | |
27107 | GType parent_type, | |
27108 | const gchar *type_name, | |
27109 | const GTypeInfo *type_info, | |
27110 | GTypeFlags flags); | |
27111 | void g_type_module_add_interface (GTypeModule *module, | |
27112 | GType instance_type, | |
27113 | GType interface_type, | |
27114 | const GInterfaceInfo *interface_info); | |
27115 | GType g_type_module_register_enum (GTypeModule *module, | |
27116 | const gchar *name, | |
27117 | const GEnumValue *const_static_values); | |
27118 | GType g_type_module_register_flags (GTypeModule *module, | |
27119 | const gchar *name, | |
27120 | const GFlagsValue *const_static_values); | |
27121 | ||
27122 | ||
27123 | # 34 "/usr/include/glib-2.0/glib-object.h" 2 | |
27124 | # 1 "/usr/include/glib-2.0/gobject/gtypeplugin.h" 1 | |
27125 | # 24 "/usr/include/glib-2.0/gobject/gtypeplugin.h" | |
27126 | #define __G_TYPE_PLUGIN_H__ | |
27127 | ||
27128 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
27129 | # 27 "/usr/include/glib-2.0/gobject/gtypeplugin.h" 2 | |
27130 | ||
27131 | ||
27132 | ||
27133 | ||
27134 | #define G_TYPE_TYPE_PLUGIN (g_type_plugin_get_type ()) | |
27135 | #define G_TYPE_PLUGIN(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TYPE_PLUGIN, GTypePlugin)) | |
27136 | #define G_TYPE_PLUGIN_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), G_TYPE_TYPE_PLUGIN, GTypePluginClass)) | |
27137 | #define G_IS_TYPE_PLUGIN(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TYPE_PLUGIN)) | |
27138 | #define G_IS_TYPE_PLUGIN_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), G_TYPE_TYPE_PLUGIN)) | |
27139 | #define G_TYPE_PLUGIN_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_TYPE_PLUGIN, GTypePluginClass)) | |
27140 | ||
27141 | ||
27142 | ||
27143 | typedef struct _GTypePluginClass GTypePluginClass; | |
27144 | typedef void (*GTypePluginUse) (GTypePlugin *plugin); | |
27145 | typedef void (*GTypePluginUnuse) (GTypePlugin *plugin); | |
27146 | typedef void (*GTypePluginCompleteTypeInfo) (GTypePlugin *plugin, | |
27147 | GType g_type, | |
27148 | GTypeInfo *info, | |
27149 | GTypeValueTable *value_table); | |
27150 | typedef void (*GTypePluginCompleteInterfaceInfo) (GTypePlugin *plugin, | |
27151 | GType instance_type, | |
27152 | GType interface_type, | |
27153 | GInterfaceInfo *info); | |
27154 | struct _GTypePluginClass | |
27155 | { | |
27156 | ||
27157 | GTypeInterface base_iface; | |
27158 | ||
27159 | ||
27160 | GTypePluginUse use_plugin; | |
27161 | GTypePluginUnuse unuse_plugin; | |
27162 | GTypePluginCompleteTypeInfo complete_type_info; | |
27163 | GTypePluginCompleteInterfaceInfo complete_interface_info; | |
27164 | }; | |
27165 | ||
27166 | ||
27167 | ||
27168 | GType g_type_plugin_get_type (void) __attribute__((__const__)); | |
27169 | void g_type_plugin_use (GTypePlugin *plugin); | |
27170 | void g_type_plugin_unuse (GTypePlugin *plugin); | |
27171 | void g_type_plugin_complete_type_info (GTypePlugin *plugin, | |
27172 | GType g_type, | |
27173 | GTypeInfo *info, | |
27174 | GTypeValueTable *value_table); | |
27175 | void g_type_plugin_complete_interface_info (GTypePlugin *plugin, | |
27176 | GType instance_type, | |
27177 | GType interface_type, | |
27178 | GInterfaceInfo *info); | |
27179 | ||
27180 | ||
27181 | # 35 "/usr/include/glib-2.0/glib-object.h" 2 | |
27182 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
27183 | # 36 "/usr/include/glib-2.0/glib-object.h" 2 | |
27184 | # 1 "/usr/include/glib-2.0/gobject/gvaluearray.h" 1 | |
27185 | # 26 "/usr/include/glib-2.0/gobject/gvaluearray.h" | |
27186 | #define __G_VALUE_ARRAY_H__ | |
27187 | ||
27188 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
27189 | # 29 "/usr/include/glib-2.0/gobject/gvaluearray.h" 2 | |
27190 | ||
27191 | ||
27192 | ||
27193 | ||
27194 | ||
27195 | ||
27196 | typedef struct _GValueArray GValueArray; | |
27197 | struct _GValueArray | |
27198 | { | |
27199 | guint n_values; | |
27200 | GValue *values; | |
27201 | ||
27202 | ||
27203 | guint n_prealloced; | |
27204 | }; | |
27205 | ||
27206 | ||
27207 | ||
27208 | GValue* g_value_array_get_nth (GValueArray *value_array, | |
27209 | guint index_); | |
27210 | GValueArray* g_value_array_new (guint n_prealloced); | |
27211 | void g_value_array_free (GValueArray *value_array); | |
27212 | GValueArray* g_value_array_copy (const GValueArray *value_array); | |
27213 | GValueArray* g_value_array_prepend (GValueArray *value_array, | |
27214 | const GValue *value); | |
27215 | GValueArray* g_value_array_append (GValueArray *value_array, | |
27216 | const GValue *value); | |
27217 | GValueArray* g_value_array_insert (GValueArray *value_array, | |
27218 | guint index_, | |
27219 | const GValue *value); | |
27220 | GValueArray* g_value_array_remove (GValueArray *value_array, | |
27221 | guint index_); | |
27222 | GValueArray* g_value_array_sort (GValueArray *value_array, | |
27223 | GCompareFunc compare_func); | |
27224 | GValueArray* g_value_array_sort_with_data (GValueArray *value_array, | |
27225 | GCompareDataFunc compare_func, | |
27226 | gpointer user_data); | |
27227 | ||
27228 | ||
27229 | ||
27230 | # 37 "/usr/include/glib-2.0/glib-object.h" 2 | |
27231 | # 1 "/usr/include/glib-2.0/gobject/gvaluetypes.h" 1 | |
27232 | # 26 "/usr/include/glib-2.0/gobject/gvaluetypes.h" | |
27233 | #define __G_VALUETYPES_H__ | |
27234 | ||
27235 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
27236 | # 29 "/usr/include/glib-2.0/gobject/gvaluetypes.h" 2 | |
27237 | ||
27238 | ||
27239 | ||
27240 | ||
27241 | #define G_VALUE_HOLDS_CHAR(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_CHAR)) | |
27242 | #define G_VALUE_HOLDS_UCHAR(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UCHAR)) | |
27243 | #define G_VALUE_HOLDS_BOOLEAN(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOOLEAN)) | |
27244 | #define G_VALUE_HOLDS_INT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_INT)) | |
27245 | #define G_VALUE_HOLDS_UINT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UINT)) | |
27246 | #define G_VALUE_HOLDS_LONG(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_LONG)) | |
27247 | #define G_VALUE_HOLDS_ULONG(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_ULONG)) | |
27248 | #define G_VALUE_HOLDS_INT64(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_INT64)) | |
27249 | #define G_VALUE_HOLDS_UINT64(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UINT64)) | |
27250 | #define G_VALUE_HOLDS_FLOAT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_FLOAT)) | |
27251 | #define G_VALUE_HOLDS_DOUBLE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_DOUBLE)) | |
27252 | #define G_VALUE_HOLDS_STRING(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_STRING)) | |
27253 | #define G_VALUE_HOLDS_POINTER(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_POINTER)) | |
27254 | #define G_TYPE_GTYPE (g_gtype_get_type()) | |
27255 | #define G_VALUE_HOLDS_GTYPE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_GTYPE)) | |
27256 | ||
27257 | ||
27258 | ||
27259 | void g_value_set_char (GValue *value, | |
27260 | gchar v_char); | |
27261 | gchar g_value_get_char (const GValue *value); | |
27262 | void g_value_set_uchar (GValue *value, | |
27263 | guchar v_uchar); | |
27264 | guchar g_value_get_uchar (const GValue *value); | |
27265 | void g_value_set_boolean (GValue *value, | |
27266 | gboolean v_boolean); | |
27267 | gboolean g_value_get_boolean (const GValue *value); | |
27268 | void g_value_set_int (GValue *value, | |
27269 | gint v_int); | |
27270 | gint g_value_get_int (const GValue *value); | |
27271 | void g_value_set_uint (GValue *value, | |
27272 | guint v_uint); | |
27273 | guint g_value_get_uint (const GValue *value); | |
27274 | void g_value_set_long (GValue *value, | |
27275 | glong v_long); | |
27276 | glong g_value_get_long (const GValue *value); | |
27277 | void g_value_set_ulong (GValue *value, | |
27278 | gulong v_ulong); | |
27279 | gulong g_value_get_ulong (const GValue *value); | |
27280 | void g_value_set_int64 (GValue *value, | |
27281 | gint64 v_int64); | |
27282 | gint64 g_value_get_int64 (const GValue *value); | |
27283 | void g_value_set_uint64 (GValue *value, | |
27284 | guint64 v_uint64); | |
27285 | guint64 g_value_get_uint64 (const GValue *value); | |
27286 | void g_value_set_float (GValue *value, | |
27287 | gfloat v_float); | |
27288 | gfloat g_value_get_float (const GValue *value); | |
27289 | void g_value_set_double (GValue *value, | |
27290 | gdouble v_double); | |
27291 | gdouble g_value_get_double (const GValue *value); | |
27292 | void g_value_set_string (GValue *value, | |
27293 | const gchar *v_string); | |
27294 | void g_value_set_static_string (GValue *value, | |
27295 | const gchar *v_string); | |
27296 | const gchar* g_value_get_string (const GValue *value); | |
27297 | gchar* g_value_dup_string (const GValue *value); | |
27298 | void g_value_set_pointer (GValue *value, | |
27299 | gpointer v_pointer); | |
27300 | gpointer g_value_get_pointer (const GValue *value); | |
27301 | GType g_gtype_get_type (void); | |
27302 | void g_value_set_gtype (GValue *value, | |
27303 | GType v_gtype); | |
27304 | GType g_value_get_gtype (const GValue *value); | |
27305 | ||
27306 | ||
27307 | ||
27308 | GType g_pointer_type_register_static (const gchar *name); | |
27309 | ||
27310 | ||
27311 | gchar* g_strdup_value_contents (const GValue *value); | |
27312 | ||
27313 | ||
27314 | void g_value_take_string (GValue *value, | |
27315 | gchar *v_string); | |
27316 | ||
27317 | void g_value_set_string_take_ownership (GValue *value, | |
27318 | gchar *v_string); | |
27319 | ||
27320 | ||
27321 | ||
27322 | ||
27323 | typedef gchar* gchararray; | |
27324 | ||
27325 | ||
27326 | ||
27327 | # 38 "/usr/include/glib-2.0/glib-object.h" 2 | |
27328 | ||
27329 | #undef __GLIB_GOBJECT_H_INSIDE__ | |
27330 | # 27 "/usr/include/pango-1.0/pango/pango-types.h" 2 | |
27331 | ||
27332 | ||
27333 | ||
27334 | typedef struct _PangoLogAttr PangoLogAttr; | |
27335 | ||
27336 | typedef struct _PangoEngineLang PangoEngineLang; | |
27337 | typedef struct _PangoEngineShape PangoEngineShape; | |
27338 | ||
27339 | typedef struct _PangoFont PangoFont; | |
27340 | typedef struct _PangoFontMap PangoFontMap; | |
27341 | ||
27342 | typedef struct _PangoMatrix PangoMatrix; | |
27343 | typedef struct _PangoRectangle PangoRectangle; | |
27344 | ||
27345 | ||
27346 | typedef struct _PangoLanguage PangoLanguage; | |
27347 | ||
27348 | ||
27349 | ||
27350 | typedef guint32 PangoGlyph; | |
27351 | ||
27352 | ||
27353 | ||
27354 | ||
27355 | struct _PangoRectangle | |
27356 | { | |
27357 | int x; | |
27358 | int y; | |
27359 | int width; | |
27360 | int height; | |
27361 | }; | |
27362 | # 79 "/usr/include/pango-1.0/pango/pango-types.h" | |
27363 | struct _PangoMatrix | |
27364 | { | |
27365 | double xx; | |
27366 | double xy; | |
27367 | double yx; | |
27368 | double yy; | |
27369 | double x0; | |
27370 | double y0; | |
27371 | }; | |
27372 | ||
27373 | ||
27374 | ||
27375 | ||
27376 | ||
27377 | ||
27378 | #define PANGO_TYPE_MATRIX (pango_matrix_get_type ()) | |
27379 | # 109 "/usr/include/pango-1.0/pango/pango-types.h" | |
27380 | #define PANGO_MATRIX_INIT { 1., 0., 0., 1., 0., 0. } | |
27381 | ||
27382 | GType pango_matrix_get_type (void); | |
27383 | ||
27384 | PangoMatrix *pango_matrix_copy (const PangoMatrix *matrix); | |
27385 | void pango_matrix_free (PangoMatrix *matrix); | |
27386 | ||
27387 | void pango_matrix_translate (PangoMatrix *matrix, | |
27388 | double tx, | |
27389 | double ty); | |
27390 | void pango_matrix_scale (PangoMatrix *matrix, | |
27391 | double scale_x, | |
27392 | double scale_y); | |
27393 | void pango_matrix_rotate (PangoMatrix *matrix, | |
27394 | double degrees); | |
27395 | void pango_matrix_concat (PangoMatrix *matrix, | |
27396 | const PangoMatrix *new_matrix); | |
27397 | double pango_matrix_get_font_scale_factor (const PangoMatrix *matrix); | |
27398 | ||
27399 | #define PANGO_SCALE 1024 | |
27400 | #define PANGO_PIXELS(d) (((int)(d) + 512) >> 10) | |
27401 | # 139 "/usr/include/pango-1.0/pango/pango-types.h" | |
27402 | #define PANGO_ASCENT(rect) (-(rect).y) | |
27403 | #define PANGO_DESCENT(rect) ((rect).y + (rect).height) | |
27404 | #define PANGO_LBEARING(rect) ((rect).x) | |
27405 | #define PANGO_RBEARING(rect) ((rect).x + (rect).width) | |
27406 | # 175 "/usr/include/pango-1.0/pango/pango-types.h" | |
27407 | typedef enum { | |
27408 | PANGO_DIRECTION_LTR, | |
27409 | PANGO_DIRECTION_RTL, | |
27410 | PANGO_DIRECTION_TTB_LTR, | |
27411 | PANGO_DIRECTION_TTB_RTL, | |
27412 | PANGO_DIRECTION_WEAK_LTR, | |
27413 | PANGO_DIRECTION_WEAK_RTL, | |
27414 | PANGO_DIRECTION_NEUTRAL | |
27415 | } PangoDirection; | |
27416 | ||
27417 | #define PANGO_TYPE_LANGUAGE (pango_language_get_type ()) | |
27418 | ||
27419 | GType pango_language_get_type (void); | |
27420 | PangoLanguage *pango_language_from_string (const char *language); | |
27421 | #define pango_language_to_string(language) ((const char *)language) | |
27422 | ||
27423 | gboolean pango_language_matches (PangoLanguage *language, | |
27424 | const char *range_list); | |
27425 | ||
27426 | ||
27427 | gboolean pango_get_mirror_char (gunichar ch, | |
27428 | gunichar *mirrored_ch); | |
27429 | ||
27430 | ||
27431 | ||
27432 | PangoDirection pango_unichar_direction (gunichar ch); | |
27433 | PangoDirection pango_find_base_dir (const gchar *text, | |
27434 | gint length); | |
27435 | ||
27436 | ||
27437 | # 27 "/usr/include/pango-1.0/pango/pango-font.h" 2 | |
27438 | ||
27439 | ||
27440 | ||
27441 | ||
27442 | ||
27443 | typedef struct _PangoFontDescription PangoFontDescription; | |
27444 | typedef struct _PangoFontMetrics PangoFontMetrics; | |
27445 | # 43 "/usr/include/pango-1.0/pango/pango-font.h" | |
27446 | typedef enum { | |
27447 | PANGO_STYLE_NORMAL, | |
27448 | PANGO_STYLE_OBLIQUE, | |
27449 | PANGO_STYLE_ITALIC | |
27450 | } PangoStyle; | |
27451 | ||
27452 | typedef enum { | |
27453 | PANGO_VARIANT_NORMAL, | |
27454 | PANGO_VARIANT_SMALL_CAPS | |
27455 | } PangoVariant; | |
27456 | ||
27457 | typedef enum { | |
27458 | PANGO_WEIGHT_ULTRALIGHT = 200, | |
27459 | PANGO_WEIGHT_LIGHT = 300, | |
27460 | PANGO_WEIGHT_NORMAL = 400, | |
27461 | PANGO_WEIGHT_SEMIBOLD = 600, | |
27462 | PANGO_WEIGHT_BOLD = 700, | |
27463 | PANGO_WEIGHT_ULTRABOLD = 800, | |
27464 | PANGO_WEIGHT_HEAVY = 900 | |
27465 | } PangoWeight; | |
27466 | ||
27467 | typedef enum { | |
27468 | PANGO_STRETCH_ULTRA_CONDENSED, | |
27469 | PANGO_STRETCH_EXTRA_CONDENSED, | |
27470 | PANGO_STRETCH_CONDENSED, | |
27471 | PANGO_STRETCH_SEMI_CONDENSED, | |
27472 | PANGO_STRETCH_NORMAL, | |
27473 | PANGO_STRETCH_SEMI_EXPANDED, | |
27474 | PANGO_STRETCH_EXPANDED, | |
27475 | PANGO_STRETCH_EXTRA_EXPANDED, | |
27476 | PANGO_STRETCH_ULTRA_EXPANDED | |
27477 | } PangoStretch; | |
27478 | ||
27479 | typedef enum { | |
27480 | PANGO_FONT_MASK_FAMILY = 1 << 0, | |
27481 | PANGO_FONT_MASK_STYLE = 1 << 1, | |
27482 | PANGO_FONT_MASK_VARIANT = 1 << 2, | |
27483 | PANGO_FONT_MASK_WEIGHT = 1 << 3, | |
27484 | PANGO_FONT_MASK_STRETCH = 1 << 4, | |
27485 | PANGO_FONT_MASK_SIZE = 1 << 5 | |
27486 | } PangoFontMask; | |
27487 | ||
27488 | ||
27489 | #define PANGO_SCALE_XX_SMALL ((double)0.5787037037037) | |
27490 | #define PANGO_SCALE_X_SMALL ((double)0.6444444444444) | |
27491 | #define PANGO_SCALE_SMALL ((double)0.8333333333333) | |
27492 | #define PANGO_SCALE_MEDIUM ((double)1.0) | |
27493 | #define PANGO_SCALE_LARGE ((double)1.2) | |
27494 | #define PANGO_SCALE_X_LARGE ((double)1.4399999999999) | |
27495 | #define PANGO_SCALE_XX_LARGE ((double)1.728) | |
27496 | ||
27497 | ||
27498 | ||
27499 | ||
27500 | ||
27501 | #define PANGO_TYPE_FONT_DESCRIPTION (pango_font_description_get_type ()) | |
27502 | ||
27503 | GType pango_font_description_get_type (void); | |
27504 | PangoFontDescription *pango_font_description_new (void); | |
27505 | PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc); | |
27506 | PangoFontDescription *pango_font_description_copy_static (const PangoFontDescription *desc); | |
27507 | guint pango_font_description_hash (const PangoFontDescription *desc); | |
27508 | gboolean pango_font_description_equal (const PangoFontDescription *desc1, | |
27509 | const PangoFontDescription *desc2); | |
27510 | void pango_font_description_free (PangoFontDescription *desc); | |
27511 | void pango_font_descriptions_free (PangoFontDescription **descs, | |
27512 | int n_descs); | |
27513 | ||
27514 | void pango_font_description_set_family (PangoFontDescription *desc, | |
27515 | const char *family); | |
27516 | void pango_font_description_set_family_static (PangoFontDescription *desc, | |
27517 | const char *family); | |
27518 | const char *pango_font_description_get_family (const PangoFontDescription *desc); | |
27519 | void pango_font_description_set_style (PangoFontDescription *desc, | |
27520 | PangoStyle style); | |
27521 | PangoStyle pango_font_description_get_style (const PangoFontDescription *desc); | |
27522 | void pango_font_description_set_variant (PangoFontDescription *desc, | |
27523 | PangoVariant variant); | |
27524 | PangoVariant pango_font_description_get_variant (const PangoFontDescription *desc); | |
27525 | void pango_font_description_set_weight (PangoFontDescription *desc, | |
27526 | PangoWeight weight); | |
27527 | PangoWeight pango_font_description_get_weight (const PangoFontDescription *desc); | |
27528 | void pango_font_description_set_stretch (PangoFontDescription *desc, | |
27529 | PangoStretch stretch); | |
27530 | PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc); | |
27531 | void pango_font_description_set_size (PangoFontDescription *desc, | |
27532 | gint size); | |
27533 | gint pango_font_description_get_size (const PangoFontDescription *desc); | |
27534 | void pango_font_description_set_absolute_size (PangoFontDescription *desc, | |
27535 | double size); | |
27536 | gboolean pango_font_description_get_size_is_absolute (const PangoFontDescription *desc); | |
27537 | ||
27538 | PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc); | |
27539 | void pango_font_description_unset_fields (PangoFontDescription *desc, | |
27540 | PangoFontMask to_unset); | |
27541 | ||
27542 | void pango_font_description_merge (PangoFontDescription *desc, | |
27543 | const PangoFontDescription *desc_to_merge, | |
27544 | gboolean replace_existing); | |
27545 | void pango_font_description_merge_static (PangoFontDescription *desc, | |
27546 | const PangoFontDescription *desc_to_merge, | |
27547 | gboolean replace_existing); | |
27548 | ||
27549 | gboolean pango_font_description_better_match (const PangoFontDescription *desc, | |
27550 | const PangoFontDescription *old_match, | |
27551 | const PangoFontDescription *new_match); | |
27552 | ||
27553 | PangoFontDescription *pango_font_description_from_string (const char *str); | |
27554 | char * pango_font_description_to_string (const PangoFontDescription *desc); | |
27555 | char * pango_font_description_to_filename (const PangoFontDescription *desc); | |
27556 | ||
27557 | ||
27558 | ||
27559 | ||
27560 | ||
27561 | #define PANGO_TYPE_FONT_METRICS (pango_font_metrics_get_type ()) | |
27562 | GType pango_font_metrics_get_type (void); | |
27563 | PangoFontMetrics *pango_font_metrics_ref (PangoFontMetrics *metrics); | |
27564 | void pango_font_metrics_unref (PangoFontMetrics *metrics); | |
27565 | int pango_font_metrics_get_ascent (PangoFontMetrics *metrics); | |
27566 | int pango_font_metrics_get_descent (PangoFontMetrics *metrics); | |
27567 | int pango_font_metrics_get_approximate_char_width (PangoFontMetrics *metrics); | |
27568 | int pango_font_metrics_get_approximate_digit_width (PangoFontMetrics *metrics); | |
27569 | int pango_font_metrics_get_underline_position (PangoFontMetrics *metrics); | |
27570 | int pango_font_metrics_get_underline_thickness (PangoFontMetrics *metrics); | |
27571 | int pango_font_metrics_get_strikethrough_position (PangoFontMetrics *metrics); | |
27572 | int pango_font_metrics_get_strikethrough_thickness (PangoFontMetrics *metrics); | |
27573 | # 195 "/usr/include/pango-1.0/pango/pango-font.h" | |
27574 | #define PANGO_TYPE_FONT_FAMILY (pango_font_family_get_type ()) | |
27575 | #define PANGO_FONT_FAMILY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FAMILY, PangoFontFamily)) | |
27576 | #define PANGO_IS_FONT_FAMILY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FAMILY)) | |
27577 | ||
27578 | typedef struct _PangoFontFamily PangoFontFamily; | |
27579 | typedef struct _PangoFontFace PangoFontFace; | |
27580 | ||
27581 | GType pango_font_family_get_type (void) __attribute__((__const__)); | |
27582 | ||
27583 | void pango_font_family_list_faces (PangoFontFamily *family, | |
27584 | PangoFontFace ***faces, | |
27585 | int *n_faces); | |
27586 | const char *pango_font_family_get_name (PangoFontFamily *family); | |
27587 | gboolean pango_font_family_is_monospace (PangoFontFamily *family); | |
27588 | # 249 "/usr/include/pango-1.0/pango/pango-font.h" | |
27589 | #define PANGO_TYPE_FONT_FACE (pango_font_face_get_type ()) | |
27590 | #define PANGO_FONT_FACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FACE, PangoFontFace)) | |
27591 | #define PANGO_IS_FONT_FACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FACE)) | |
27592 | ||
27593 | GType pango_font_face_get_type (void) __attribute__((__const__)); | |
27594 | ||
27595 | PangoFontDescription *pango_font_face_describe (PangoFontFace *face); | |
27596 | const char *pango_font_face_get_face_name (PangoFontFace *face); | |
27597 | void pango_font_face_list_sizes (PangoFontFace *face, | |
27598 | int **sizes, | |
27599 | int *n_sizes); | |
27600 | # 300 "/usr/include/pango-1.0/pango/pango-font.h" | |
27601 | #define PANGO_TYPE_FONT (pango_font_get_type ()) | |
27602 | #define PANGO_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT, PangoFont)) | |
27603 | #define PANGO_IS_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT)) | |
27604 | ||
27605 | GType pango_font_get_type (void) __attribute__((__const__)); | |
27606 | ||
27607 | PangoFontDescription *pango_font_describe (PangoFont *font); | |
27608 | PangoCoverage * pango_font_get_coverage (PangoFont *font, | |
27609 | PangoLanguage *language); | |
27610 | PangoEngineShape * pango_font_find_shaper (PangoFont *font, | |
27611 | PangoLanguage *language, | |
27612 | guint32 ch); | |
27613 | PangoFontMetrics * pango_font_get_metrics (PangoFont *font, | |
27614 | PangoLanguage *language); | |
27615 | void pango_font_get_glyph_extents (PangoFont *font, | |
27616 | PangoGlyph glyph, | |
27617 | PangoRectangle *ink_rect, | |
27618 | PangoRectangle *logical_rect); | |
27619 | PangoFontMap *pango_font_get_font_map (PangoFont *font); | |
27620 | # 375 "/usr/include/pango-1.0/pango/pango-font.h" | |
27621 | ||
27622 | # 26 "/usr/include/pango-1.0/pango/pango-attributes.h" 2 | |
27623 | ||
27624 | ||
27625 | ||
27626 | ||
27627 | ||
27628 | ||
27629 | typedef struct _PangoColor PangoColor; | |
27630 | ||
27631 | struct _PangoColor | |
27632 | { | |
27633 | guint16 red; | |
27634 | guint16 green; | |
27635 | guint16 blue; | |
27636 | }; | |
27637 | ||
27638 | #define PANGO_TYPE_COLOR pango_color_get_type () | |
27639 | GType pango_color_get_type (void) __attribute__((__const__)); | |
27640 | ||
27641 | PangoColor *pango_color_copy (const PangoColor *src); | |
27642 | void pango_color_free (PangoColor *color); | |
27643 | gboolean pango_color_parse (PangoColor *color, | |
27644 | const char *spec); | |
27645 | ||
27646 | ||
27647 | ||
27648 | typedef struct _PangoAttribute PangoAttribute; | |
27649 | typedef struct _PangoAttrClass PangoAttrClass; | |
27650 | ||
27651 | typedef struct _PangoAttrString PangoAttrString; | |
27652 | typedef struct _PangoAttrLanguage PangoAttrLanguage; | |
27653 | typedef struct _PangoAttrInt PangoAttrInt; | |
27654 | typedef struct _PangoAttrSize PangoAttrSize; | |
27655 | typedef struct _PangoAttrFloat PangoAttrFloat; | |
27656 | typedef struct _PangoAttrColor PangoAttrColor; | |
27657 | typedef struct _PangoAttrFontDesc PangoAttrFontDesc; | |
27658 | typedef struct _PangoAttrShape PangoAttrShape; | |
27659 | ||
27660 | #define PANGO_TYPE_ATTR_LIST pango_attr_list_get_type () | |
27661 | typedef struct _PangoAttrList PangoAttrList; | |
27662 | typedef struct _PangoAttrIterator PangoAttrIterator; | |
27663 | ||
27664 | typedef enum | |
27665 | { | |
27666 | PANGO_ATTR_INVALID, | |
27667 | PANGO_ATTR_LANGUAGE, | |
27668 | PANGO_ATTR_FAMILY, | |
27669 | PANGO_ATTR_STYLE, | |
27670 | PANGO_ATTR_WEIGHT, | |
27671 | PANGO_ATTR_VARIANT, | |
27672 | PANGO_ATTR_STRETCH, | |
27673 | PANGO_ATTR_SIZE, | |
27674 | PANGO_ATTR_FONT_DESC, | |
27675 | PANGO_ATTR_FOREGROUND, | |
27676 | PANGO_ATTR_BACKGROUND, | |
27677 | PANGO_ATTR_UNDERLINE, | |
27678 | PANGO_ATTR_STRIKETHROUGH, | |
27679 | PANGO_ATTR_RISE, | |
27680 | PANGO_ATTR_SHAPE, | |
27681 | PANGO_ATTR_SCALE, | |
27682 | PANGO_ATTR_FALLBACK, | |
27683 | PANGO_ATTR_LETTER_SPACING, | |
27684 | PANGO_ATTR_UNDERLINE_COLOR, | |
27685 | PANGO_ATTR_STRIKETHROUGH_COLOR, | |
27686 | PANGO_ATTR_ABSOLUTE_SIZE | |
27687 | } PangoAttrType; | |
27688 | ||
27689 | typedef enum { | |
27690 | PANGO_UNDERLINE_NONE, | |
27691 | PANGO_UNDERLINE_SINGLE, | |
27692 | PANGO_UNDERLINE_DOUBLE, | |
27693 | PANGO_UNDERLINE_LOW, | |
27694 | PANGO_UNDERLINE_ERROR | |
27695 | } PangoUnderline; | |
27696 | ||
27697 | struct _PangoAttribute | |
27698 | { | |
27699 | const PangoAttrClass *klass; | |
27700 | guint start_index; | |
27701 | guint end_index; | |
27702 | }; | |
27703 | ||
27704 | typedef gboolean (*PangoAttrFilterFunc) (PangoAttribute *attribute, | |
27705 | gpointer data); | |
27706 | ||
27707 | typedef gpointer (*PangoAttrDataCopyFunc) (gconstpointer data); | |
27708 | ||
27709 | struct _PangoAttrClass | |
27710 | { | |
27711 | ||
27712 | PangoAttrType type; | |
27713 | PangoAttribute * (*copy) (const PangoAttribute *attr); | |
27714 | void (*destroy) (PangoAttribute *attr); | |
27715 | gboolean (*equal) (const PangoAttribute *attr1, const PangoAttribute *attr2); | |
27716 | }; | |
27717 | ||
27718 | struct _PangoAttrString | |
27719 | { | |
27720 | PangoAttribute attr; | |
27721 | char *value; | |
27722 | }; | |
27723 | ||
27724 | struct _PangoAttrLanguage | |
27725 | { | |
27726 | PangoAttribute attr; | |
27727 | PangoLanguage *value; | |
27728 | }; | |
27729 | ||
27730 | struct _PangoAttrInt | |
27731 | { | |
27732 | PangoAttribute attr; | |
27733 | int value; | |
27734 | }; | |
27735 | ||
27736 | struct _PangoAttrFloat | |
27737 | { | |
27738 | PangoAttribute attr; | |
27739 | double value; | |
27740 | }; | |
27741 | ||
27742 | struct _PangoAttrColor | |
27743 | { | |
27744 | PangoAttribute attr; | |
27745 | PangoColor color; | |
27746 | }; | |
27747 | ||
27748 | struct _PangoAttrSize | |
27749 | { | |
27750 | PangoAttribute attr; | |
27751 | int size; | |
27752 | guint absolute : 1; | |
27753 | }; | |
27754 | ||
27755 | struct _PangoAttrShape | |
27756 | { | |
27757 | PangoAttribute attr; | |
27758 | PangoRectangle ink_rect; | |
27759 | PangoRectangle logical_rect; | |
27760 | ||
27761 | gpointer data; | |
27762 | PangoAttrDataCopyFunc copy_func; | |
27763 | GDestroyNotify destroy_func; | |
27764 | }; | |
27765 | ||
27766 | struct _PangoAttrFontDesc | |
27767 | { | |
27768 | PangoAttribute attr; | |
27769 | PangoFontDescription *desc; | |
27770 | }; | |
27771 | ||
27772 | PangoAttrType pango_attr_type_register (const gchar *name); | |
27773 | ||
27774 | PangoAttribute * pango_attribute_copy (const PangoAttribute *attr); | |
27775 | void pango_attribute_destroy (PangoAttribute *attr); | |
27776 | gboolean pango_attribute_equal (const PangoAttribute *attr1, | |
27777 | const PangoAttribute *attr2); | |
27778 | ||
27779 | PangoAttribute *pango_attr_language_new (PangoLanguage *language); | |
27780 | PangoAttribute *pango_attr_family_new (const char *family); | |
27781 | PangoAttribute *pango_attr_foreground_new (guint16 red, | |
27782 | guint16 green, | |
27783 | guint16 blue); | |
27784 | PangoAttribute *pango_attr_background_new (guint16 red, | |
27785 | guint16 green, | |
27786 | guint16 blue); | |
27787 | PangoAttribute *pango_attr_size_new (int size); | |
27788 | PangoAttribute *pango_attr_size_new_absolute (int size); | |
27789 | PangoAttribute *pango_attr_style_new (PangoStyle style); | |
27790 | PangoAttribute *pango_attr_weight_new (PangoWeight weight); | |
27791 | PangoAttribute *pango_attr_variant_new (PangoVariant variant); | |
27792 | PangoAttribute *pango_attr_stretch_new (PangoStretch stretch); | |
27793 | PangoAttribute *pango_attr_font_desc_new (const PangoFontDescription *desc); | |
27794 | ||
27795 | PangoAttribute *pango_attr_underline_new (PangoUnderline underline); | |
27796 | PangoAttribute *pango_attr_underline_color_new (guint16 red, | |
27797 | guint16 green, | |
27798 | guint16 blue); | |
27799 | PangoAttribute *pango_attr_strikethrough_new (gboolean strikethrough); | |
27800 | PangoAttribute *pango_attr_strikethrough_color_new (guint16 red, | |
27801 | guint16 green, | |
27802 | guint16 blue); | |
27803 | ||
27804 | PangoAttribute *pango_attr_rise_new (int rise); | |
27805 | PangoAttribute *pango_attr_scale_new (double scale_factor); | |
27806 | PangoAttribute *pango_attr_fallback_new (gboolean enable_fallback); | |
27807 | PangoAttribute *pango_attr_letter_spacing_new (int letter_spacing); | |
27808 | ||
27809 | PangoAttribute *pango_attr_shape_new (const PangoRectangle *ink_rect, | |
27810 | const PangoRectangle *logical_rect); | |
27811 | PangoAttribute *pango_attr_shape_new_with_data (const PangoRectangle *ink_rect, | |
27812 | const PangoRectangle *logical_rect, | |
27813 | gpointer data, | |
27814 | PangoAttrDataCopyFunc copy_func, | |
27815 | GDestroyNotify destroy_func); | |
27816 | ||
27817 | GType pango_attr_list_get_type (void) __attribute__((__const__)); | |
27818 | PangoAttrList * pango_attr_list_new (void); | |
27819 | PangoAttrList * pango_attr_list_ref (PangoAttrList *list); | |
27820 | void pango_attr_list_unref (PangoAttrList *list); | |
27821 | PangoAttrList * pango_attr_list_copy (PangoAttrList *list); | |
27822 | void pango_attr_list_insert (PangoAttrList *list, | |
27823 | PangoAttribute *attr); | |
27824 | void pango_attr_list_insert_before (PangoAttrList *list, | |
27825 | PangoAttribute *attr); | |
27826 | void pango_attr_list_change (PangoAttrList *list, | |
27827 | PangoAttribute *attr); | |
27828 | void pango_attr_list_splice (PangoAttrList *list, | |
27829 | PangoAttrList *other, | |
27830 | gint pos, | |
27831 | gint len); | |
27832 | ||
27833 | PangoAttrList *pango_attr_list_filter (PangoAttrList *list, | |
27834 | PangoAttrFilterFunc func, | |
27835 | gpointer data); | |
27836 | ||
27837 | PangoAttrIterator *pango_attr_list_get_iterator (PangoAttrList *list); | |
27838 | ||
27839 | void pango_attr_iterator_range (PangoAttrIterator *iterator, | |
27840 | gint *start, | |
27841 | gint *end); | |
27842 | gboolean pango_attr_iterator_next (PangoAttrIterator *iterator); | |
27843 | PangoAttrIterator *pango_attr_iterator_copy (PangoAttrIterator *iterator); | |
27844 | void pango_attr_iterator_destroy (PangoAttrIterator *iterator); | |
27845 | PangoAttribute * pango_attr_iterator_get (PangoAttrIterator *iterator, | |
27846 | PangoAttrType type); | |
27847 | void pango_attr_iterator_get_font (PangoAttrIterator *iterator, | |
27848 | PangoFontDescription *desc, | |
27849 | PangoLanguage **language, | |
27850 | GSList **extra_attrs); | |
27851 | GSList * pango_attr_iterator_get_attrs (PangoAttrIterator *iterator); | |
27852 | ||
27853 | ||
27854 | gboolean pango_parse_markup (const char *markup_text, | |
27855 | int length, | |
27856 | gunichar accel_marker, | |
27857 | PangoAttrList **attr_list, | |
27858 | char **text, | |
27859 | gunichar *accel_char, | |
27860 | GError **error); | |
27861 | ||
27862 | ||
27863 | # 26 "/usr/include/pango-1.0/pango/pango.h" 2 | |
27864 | # 1 "/usr/include/pango-1.0/pango/pango-break.h" 1 | |
27865 | # 23 "/usr/include/pango-1.0/pango/pango-break.h" | |
27866 | #define __PANGO_BREAK_H__ | |
27867 | ||
27868 | ||
27869 | ||
27870 | ||
27871 | ||
27872 | # 1 "/usr/include/pango-1.0/pango/pango-item.h" 1 | |
27873 | # 23 "/usr/include/pango-1.0/pango/pango-item.h" | |
27874 | #define __PANGO_ITEM_H__ | |
27875 | ||
27876 | ||
27877 | ||
27878 | ||
27879 | ||
27880 | typedef struct _PangoAnalysis PangoAnalysis; | |
27881 | typedef struct _PangoItem PangoItem; | |
27882 | ||
27883 | struct _PangoAnalysis | |
27884 | { | |
27885 | PangoEngineShape *shape_engine; | |
27886 | PangoEngineLang *lang_engine; | |
27887 | PangoFont *font; | |
27888 | guint8 level; | |
27889 | PangoLanguage *language; | |
27890 | GSList *extra_attrs; | |
27891 | }; | |
27892 | ||
27893 | struct _PangoItem | |
27894 | { | |
27895 | gint offset; | |
27896 | gint length; | |
27897 | gint num_chars; | |
27898 | PangoAnalysis analysis; | |
27899 | }; | |
27900 | ||
27901 | #define PANGO_TYPE_ITEM (pango_item_get_type ()) | |
27902 | ||
27903 | GType pango_item_get_type (void) __attribute__((__const__)); | |
27904 | ||
27905 | PangoItem *pango_item_new (void); | |
27906 | PangoItem *pango_item_copy (PangoItem *item); | |
27907 | void pango_item_free (PangoItem *item); | |
27908 | PangoItem *pango_item_split (PangoItem *orig, | |
27909 | int split_index, | |
27910 | int split_offset); | |
27911 | ||
27912 | ||
27913 | # 30 "/usr/include/pango-1.0/pango/pango-break.h" 2 | |
27914 | ||
27915 | ||
27916 | ||
27917 | struct _PangoLogAttr | |
27918 | { | |
27919 | guint is_line_break : 1; | |
27920 | ||
27921 | guint is_mandatory_break : 1; | |
27922 | ||
27923 | guint is_char_break : 1; | |
27924 | ||
27925 | guint is_white : 1; | |
27926 | ||
27927 | ||
27928 | ||
27929 | ||
27930 | guint is_cursor_position : 1; | |
27931 | ||
27932 | ||
27933 | ||
27934 | ||
27935 | ||
27936 | ||
27937 | guint is_word_start : 1; | |
27938 | guint is_word_end : 1; | |
27939 | # 64 "/usr/include/pango-1.0/pango/pango-break.h" | |
27940 | guint is_sentence_boundary : 1; | |
27941 | guint is_sentence_start : 1; | |
27942 | guint is_sentence_end : 1; | |
27943 | ||
27944 | ||
27945 | ||
27946 | ||
27947 | guint backspace_deletes_character : 1; | |
27948 | }; | |
27949 | ||
27950 | ||
27951 | ||
27952 | ||
27953 | void pango_break (const gchar *text, | |
27954 | int length, | |
27955 | PangoAnalysis *analysis, | |
27956 | PangoLogAttr *attrs, | |
27957 | int attrs_len); | |
27958 | ||
27959 | void pango_find_paragraph_boundary (const gchar *text, | |
27960 | gint length, | |
27961 | gint *paragraph_delimiter_index, | |
27962 | gint *next_paragraph_start); | |
27963 | ||
27964 | void pango_get_log_attrs (const char *text, | |
27965 | int length, | |
27966 | int level, | |
27967 | PangoLanguage *language, | |
27968 | PangoLogAttr *log_attrs, | |
27969 | int attrs_len); | |
27970 | # 110 "/usr/include/pango-1.0/pango/pango-break.h" | |
27971 | ||
27972 | # 27 "/usr/include/pango-1.0/pango/pango.h" 2 | |
27973 | # 1 "/usr/include/pango-1.0/pango/pango-context.h" 1 | |
27974 | # 23 "/usr/include/pango-1.0/pango/pango-context.h" | |
27975 | #define __PANGO_CONTEXT_H__ | |
27976 | ||
27977 | ||
27978 | # 1 "/usr/include/pango-1.0/pango/pango-fontmap.h" 1 | |
27979 | # 23 "/usr/include/pango-1.0/pango/pango-fontmap.h" | |
27980 | #define __PANGO_FONTMAP_H__ | |
27981 | ||
27982 | ||
27983 | # 1 "/usr/include/pango-1.0/pango/pango-fontset.h" 1 | |
27984 | # 23 "/usr/include/pango-1.0/pango/pango-fontset.h" | |
27985 | #define __PANGO_FONTSET_H__ | |
27986 | ||
27987 | ||
27988 | ||
27989 | ||
27990 | ||
27991 | ||
27992 | ||
27993 | ||
27994 | ||
27995 | ||
27996 | ||
27997 | ||
27998 | #define PANGO_TYPE_FONTSET (pango_fontset_get_type ()) | |
27999 | #define PANGO_FONTSET(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONTSET, PangoFontset)) | |
28000 | #define PANGO_IS_FONTSET(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONTSET)) | |
28001 | ||
28002 | GType pango_fontset_get_type (void) __attribute__((__const__)); | |
28003 | ||
28004 | typedef struct _PangoFontset PangoFontset; | |
28005 | # 57 "/usr/include/pango-1.0/pango/pango-fontset.h" | |
28006 | typedef gboolean (*PangoFontsetForeachFunc) (PangoFontset *fontset, | |
28007 | PangoFont *font, | |
28008 | gpointer data); | |
28009 | ||
28010 | PangoFont * pango_fontset_get_font (PangoFontset *fontset, | |
28011 | guint wc); | |
28012 | PangoFontMetrics *pango_fontset_get_metrics (PangoFontset *fontset); | |
28013 | void pango_fontset_foreach (PangoFontset *fontset, | |
28014 | PangoFontsetForeachFunc func, | |
28015 | gpointer data); | |
28016 | # 125 "/usr/include/pango-1.0/pango/pango-fontset.h" | |
28017 | ||
28018 | # 27 "/usr/include/pango-1.0/pango/pango-fontmap.h" 2 | |
28019 | ||
28020 | ||
28021 | ||
28022 | #define PANGO_TYPE_FONT_MAP (pango_font_map_get_type ()) | |
28023 | #define PANGO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_MAP, PangoFontMap)) | |
28024 | #define PANGO_IS_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_MAP)) | |
28025 | ||
28026 | typedef struct _PangoContext PangoContext; | |
28027 | ||
28028 | GType pango_font_map_get_type (void) __attribute__((__const__)); | |
28029 | PangoFont * pango_font_map_load_font (PangoFontMap *fontmap, | |
28030 | PangoContext *context, | |
28031 | const PangoFontDescription *desc); | |
28032 | PangoFontset *pango_font_map_load_fontset (PangoFontMap *fontmap, | |
28033 | PangoContext *context, | |
28034 | const PangoFontDescription *desc, | |
28035 | PangoLanguage *language); | |
28036 | void pango_font_map_list_families (PangoFontMap *fontmap, | |
28037 | PangoFontFamily ***families, | |
28038 | int *n_families); | |
28039 | # 93 "/usr/include/pango-1.0/pango/pango-fontmap.h" | |
28040 | ||
28041 | # 27 "/usr/include/pango-1.0/pango/pango-context.h" 2 | |
28042 | ||
28043 | ||
28044 | ||
28045 | ||
28046 | ||
28047 | ||
28048 | ||
28049 | ||
28050 | ||
28051 | typedef struct _PangoContextClass PangoContextClass; | |
28052 | ||
28053 | #define PANGO_TYPE_CONTEXT (pango_context_get_type ()) | |
28054 | #define PANGO_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CONTEXT, PangoContext)) | |
28055 | #define PANGO_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_CONTEXT, PangoContextClass)) | |
28056 | #define PANGO_IS_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CONTEXT)) | |
28057 | #define PANGO_IS_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_CONTEXT)) | |
28058 | #define PANGO_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_CONTEXT, PangoContextClass)) | |
28059 | ||
28060 | ||
28061 | ||
28062 | ||
28063 | ||
28064 | ||
28065 | GType pango_context_get_type (void) __attribute__((__const__)); | |
28066 | ||
28067 | ||
28068 | ||
28069 | ||
28070 | ||
28071 | ||
28072 | PangoFontMap *pango_context_get_font_map (PangoContext *context); | |
28073 | ||
28074 | void pango_context_list_families (PangoContext *context, | |
28075 | PangoFontFamily ***families, | |
28076 | int *n_families); | |
28077 | PangoFont * pango_context_load_font (PangoContext *context, | |
28078 | const PangoFontDescription *desc); | |
28079 | PangoFontset *pango_context_load_fontset (PangoContext *context, | |
28080 | const PangoFontDescription *desc, | |
28081 | PangoLanguage *language); | |
28082 | ||
28083 | PangoFontMetrics *pango_context_get_metrics (PangoContext *context, | |
28084 | const PangoFontDescription *desc, | |
28085 | PangoLanguage *language); | |
28086 | ||
28087 | void pango_context_set_font_description (PangoContext *context, | |
28088 | const PangoFontDescription *desc); | |
28089 | PangoFontDescription * pango_context_get_font_description (PangoContext *context); | |
28090 | PangoLanguage *pango_context_get_language (PangoContext *context); | |
28091 | void pango_context_set_language (PangoContext *context, | |
28092 | PangoLanguage *language); | |
28093 | void pango_context_set_base_dir (PangoContext *context, | |
28094 | PangoDirection direction); | |
28095 | PangoDirection pango_context_get_base_dir (PangoContext *context); | |
28096 | ||
28097 | void pango_context_set_matrix (PangoContext *context, | |
28098 | const PangoMatrix *matrix); | |
28099 | const PangoMatrix *pango_context_get_matrix (PangoContext *context); | |
28100 | ||
28101 | ||
28102 | ||
28103 | ||
28104 | ||
28105 | GList *pango_itemize (PangoContext *context, | |
28106 | const char *text, | |
28107 | int start_index, | |
28108 | int length, | |
28109 | PangoAttrList *attrs, | |
28110 | PangoAttrIterator *cached_iter); | |
28111 | GList *pango_itemize_with_base_dir (PangoContext *context, | |
28112 | PangoDirection base_dir, | |
28113 | const char *text, | |
28114 | int start_index, | |
28115 | int length, | |
28116 | PangoAttrList *attrs, | |
28117 | PangoAttrIterator *cached_iter); | |
28118 | ||
28119 | ||
28120 | # 28 "/usr/include/pango-1.0/pango/pango.h" 2 | |
28121 | ||
28122 | # 1 "/usr/include/pango-1.0/pango/pango-engine.h" 1 | |
28123 | # 23 "/usr/include/pango-1.0/pango/pango-engine.h" | |
28124 | #define __PANGO_ENGINE_H__ | |
28125 | ||
28126 | ||
28127 | ||
28128 | ||
28129 | # 1 "/usr/include/pango-1.0/pango/pango-glyph.h" 1 | |
28130 | # 23 "/usr/include/pango-1.0/pango/pango-glyph.h" | |
28131 | #define __PANGO_GLYPH_H__ | |
28132 | ||
28133 | ||
28134 | ||
28135 | ||
28136 | ||
28137 | ||
28138 | typedef struct _PangoGlyphGeometry PangoGlyphGeometry; | |
28139 | typedef struct _PangoGlyphVisAttr PangoGlyphVisAttr; | |
28140 | typedef struct _PangoGlyphInfo PangoGlyphInfo; | |
28141 | typedef struct _PangoGlyphString PangoGlyphString; | |
28142 | ||
28143 | ||
28144 | typedef gint32 PangoGlyphUnit; | |
28145 | ||
28146 | ||
28147 | ||
28148 | struct _PangoGlyphGeometry | |
28149 | { | |
28150 | PangoGlyphUnit width; | |
28151 | PangoGlyphUnit x_offset; | |
28152 | PangoGlyphUnit y_offset; | |
28153 | }; | |
28154 | ||
28155 | ||
28156 | ||
28157 | struct _PangoGlyphVisAttr | |
28158 | { | |
28159 | guint is_cluster_start : 1; | |
28160 | }; | |
28161 | ||
28162 | ||
28163 | ||
28164 | struct _PangoGlyphInfo | |
28165 | { | |
28166 | PangoGlyph glyph; | |
28167 | PangoGlyphGeometry geometry; | |
28168 | PangoGlyphVisAttr attr; | |
28169 | }; | |
28170 | ||
28171 | ||
28172 | ||
28173 | ||
28174 | struct _PangoGlyphString { | |
28175 | gint num_glyphs; | |
28176 | ||
28177 | PangoGlyphInfo *glyphs; | |
28178 | ||
28179 | ||
28180 | ||
28181 | ||
28182 | ||
28183 | ||
28184 | gint *log_clusters; | |
28185 | ||
28186 | ||
28187 | gint space; | |
28188 | }; | |
28189 | ||
28190 | #define PANGO_TYPE_GLYPH_STRING (pango_glyph_string_get_type ()) | |
28191 | ||
28192 | PangoGlyphString *pango_glyph_string_new (void); | |
28193 | void pango_glyph_string_set_size (PangoGlyphString *string, | |
28194 | gint new_len); | |
28195 | GType pango_glyph_string_get_type (void); | |
28196 | PangoGlyphString *pango_glyph_string_copy (PangoGlyphString *string); | |
28197 | void pango_glyph_string_free (PangoGlyphString *string); | |
28198 | void pango_glyph_string_extents (PangoGlyphString *glyphs, | |
28199 | PangoFont *font, | |
28200 | PangoRectangle *ink_rect, | |
28201 | PangoRectangle *logical_rect); | |
28202 | ||
28203 | void pango_glyph_string_extents_range (PangoGlyphString *glyphs, | |
28204 | int start, | |
28205 | int end, | |
28206 | PangoFont *font, | |
28207 | PangoRectangle *ink_rect, | |
28208 | PangoRectangle *logical_rect); | |
28209 | ||
28210 | void pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs, | |
28211 | const char *text, | |
28212 | int length, | |
28213 | int embedding_level, | |
28214 | int *logical_widths); | |
28215 | ||
28216 | void pango_glyph_string_index_to_x (PangoGlyphString *glyphs, | |
28217 | char *text, | |
28218 | int length, | |
28219 | PangoAnalysis *analysis, | |
28220 | int index_, | |
28221 | gboolean trailing, | |
28222 | int *x_pos); | |
28223 | void pango_glyph_string_x_to_index (PangoGlyphString *glyphs, | |
28224 | char *text, | |
28225 | int length, | |
28226 | PangoAnalysis *analysis, | |
28227 | int x_pos, | |
28228 | int *index_, | |
28229 | int *trailing); | |
28230 | ||
28231 | ||
28232 | ||
28233 | void pango_shape (const gchar *text, | |
28234 | gint length, | |
28235 | const PangoAnalysis *analysis, | |
28236 | PangoGlyphString *glyphs); | |
28237 | ||
28238 | GList *pango_reorder_items (GList *logical_items); | |
28239 | ||
28240 | ||
28241 | # 29 "/usr/include/pango-1.0/pango/pango-engine.h" 2 | |
28242 | # 1 "/usr/include/pango-1.0/pango/pango-script.h" 1 | |
28243 | # 24 "/usr/include/pango-1.0/pango/pango-script.h" | |
28244 | #define __PANGO_SCRIPT_H__ | |
28245 | ||
28246 | ||
28247 | ||
28248 | ||
28249 | ||
28250 | ||
28251 | ||
28252 | ||
28253 | ||
28254 | ||
28255 | ||
28256 | ||
28257 | ||
28258 | typedef struct _PangoScriptIter PangoScriptIter; | |
28259 | ||
28260 | typedef enum { | |
28261 | PANGO_SCRIPT_INVALID_CODE = -1, | |
28262 | PANGO_SCRIPT_COMMON = 0, | |
28263 | PANGO_SCRIPT_INHERITED, | |
28264 | PANGO_SCRIPT_ARABIC, | |
28265 | PANGO_SCRIPT_ARMENIAN, | |
28266 | PANGO_SCRIPT_BENGALI, | |
28267 | PANGO_SCRIPT_BOPOMOFO, | |
28268 | PANGO_SCRIPT_CHEROKEE, | |
28269 | PANGO_SCRIPT_COPTIC, | |
28270 | PANGO_SCRIPT_CYRILLIC, | |
28271 | PANGO_SCRIPT_DESERET, | |
28272 | PANGO_SCRIPT_DEVANAGARI, | |
28273 | PANGO_SCRIPT_ETHIOPIC, | |
28274 | PANGO_SCRIPT_GEORGIAN, | |
28275 | PANGO_SCRIPT_GOTHIC, | |
28276 | PANGO_SCRIPT_GREEK, | |
28277 | PANGO_SCRIPT_GUJARATI, | |
28278 | PANGO_SCRIPT_GURMUKHI, | |
28279 | PANGO_SCRIPT_HAN, | |
28280 | PANGO_SCRIPT_HANGUL, | |
28281 | PANGO_SCRIPT_HEBREW, | |
28282 | PANGO_SCRIPT_HIRAGANA, | |
28283 | PANGO_SCRIPT_KANNADA, | |
28284 | PANGO_SCRIPT_KATAKANA, | |
28285 | PANGO_SCRIPT_KHMER, | |
28286 | PANGO_SCRIPT_LAO, | |
28287 | PANGO_SCRIPT_LATIN, | |
28288 | PANGO_SCRIPT_MALAYALAM, | |
28289 | PANGO_SCRIPT_MONGOLIAN, | |
28290 | PANGO_SCRIPT_MYANMAR, | |
28291 | PANGO_SCRIPT_OGHAM, | |
28292 | PANGO_SCRIPT_OLD_ITALIC, | |
28293 | PANGO_SCRIPT_ORIYA, | |
28294 | PANGO_SCRIPT_RUNIC, | |
28295 | PANGO_SCRIPT_SINHALA, | |
28296 | PANGO_SCRIPT_SYRIAC, | |
28297 | PANGO_SCRIPT_TAMIL, | |
28298 | PANGO_SCRIPT_TELUGU, | |
28299 | PANGO_SCRIPT_THAANA, | |
28300 | PANGO_SCRIPT_THAI, | |
28301 | PANGO_SCRIPT_TIBETAN, | |
28302 | PANGO_SCRIPT_CANADIAN_ABORIGINAL, | |
28303 | PANGO_SCRIPT_YI, | |
28304 | PANGO_SCRIPT_TAGALOG, | |
28305 | PANGO_SCRIPT_HANUNOO, | |
28306 | PANGO_SCRIPT_BUHID, | |
28307 | PANGO_SCRIPT_TAGBANWA, | |
28308 | ||
28309 | ||
28310 | PANGO_SCRIPT_BRAILLE, | |
28311 | PANGO_SCRIPT_CYPRIOT, | |
28312 | PANGO_SCRIPT_LIMBU, | |
28313 | PANGO_SCRIPT_OSMANYA, | |
28314 | PANGO_SCRIPT_SHAVIAN, | |
28315 | PANGO_SCRIPT_LINEAR_B, | |
28316 | PANGO_SCRIPT_TAI_LE, | |
28317 | PANGO_SCRIPT_UGARITIC, | |
28318 | ||
28319 | ||
28320 | PANGO_SCRIPT_NEW_TAI_LUE, | |
28321 | PANGO_SCRIPT_BUGINESE, | |
28322 | PANGO_SCRIPT_GLAGOLITIC, | |
28323 | PANGO_SCRIPT_TIFINAGH, | |
28324 | PANGO_SCRIPT_SYLOTI_NAGRI, | |
28325 | PANGO_SCRIPT_OLD_PERSIAN, | |
28326 | PANGO_SCRIPT_KHAROSHTHI | |
28327 | } PangoScript; | |
28328 | ||
28329 | PangoScript pango_script_for_unichar (gunichar ch); | |
28330 | ||
28331 | PangoScriptIter *pango_script_iter_new (const char *text, | |
28332 | int length); | |
28333 | void pango_script_iter_get_range (PangoScriptIter *iter, | |
28334 | const char **start, | |
28335 | const char **end, | |
28336 | PangoScript *script); | |
28337 | gboolean pango_script_iter_next (PangoScriptIter *iter); | |
28338 | void pango_script_iter_free (PangoScriptIter *iter); | |
28339 | ||
28340 | PangoLanguage *pango_script_get_sample_language (PangoScript script); | |
28341 | gboolean pango_language_includes_script (PangoLanguage *language, | |
28342 | PangoScript script); | |
28343 | ||
28344 | ||
28345 | # 30 "/usr/include/pango-1.0/pango/pango-engine.h" 2 | |
28346 | ||
28347 | ||
28348 | # 373 "/usr/include/pango-1.0/pango/pango-engine.h" | |
28349 | ||
28350 | # 30 "/usr/include/pango-1.0/pango/pango.h" 2 | |
28351 | # 1 "/usr/include/pango-1.0/pango/pango-enum-types.h" 1 | |
28352 | ||
28353 | ||
28354 | ||
28355 | ||
28356 | #define __PANGO_ENUM_TYPES_H__ | |
28357 | ||
28358 | ||
28359 | ||
28360 | ||
28361 | ||
28362 | GType pango_attr_type_get_type (void); | |
28363 | #define PANGO_TYPE_ATTR_TYPE (pango_attr_type_get_type()) | |
28364 | GType pango_underline_get_type (void); | |
28365 | #define PANGO_TYPE_UNDERLINE (pango_underline_get_type()) | |
28366 | ||
28367 | GType pango_coverage_level_get_type (void); | |
28368 | #define PANGO_TYPE_COVERAGE_LEVEL (pango_coverage_level_get_type()) | |
28369 | ||
28370 | GType pango_style_get_type (void); | |
28371 | #define PANGO_TYPE_STYLE (pango_style_get_type()) | |
28372 | GType pango_variant_get_type (void); | |
28373 | #define PANGO_TYPE_VARIANT (pango_variant_get_type()) | |
28374 | GType pango_weight_get_type (void); | |
28375 | #define PANGO_TYPE_WEIGHT (pango_weight_get_type()) | |
28376 | GType pango_stretch_get_type (void); | |
28377 | #define PANGO_TYPE_STRETCH (pango_stretch_get_type()) | |
28378 | GType pango_font_mask_get_type (void); | |
28379 | #define PANGO_TYPE_FONT_MASK (pango_font_mask_get_type()) | |
28380 | ||
28381 | GType pango_alignment_get_type (void); | |
28382 | #define PANGO_TYPE_ALIGNMENT (pango_alignment_get_type()) | |
28383 | GType pango_wrap_mode_get_type (void); | |
28384 | #define PANGO_TYPE_WRAP_MODE (pango_wrap_mode_get_type()) | |
28385 | GType pango_ellipsize_mode_get_type (void); | |
28386 | #define PANGO_TYPE_ELLIPSIZE_MODE (pango_ellipsize_mode_get_type()) | |
28387 | ||
28388 | GType pango_render_part_get_type (void); | |
28389 | #define PANGO_TYPE_RENDER_PART (pango_render_part_get_type()) | |
28390 | ||
28391 | GType pango_script_get_type (void); | |
28392 | #define PANGO_TYPE_SCRIPT (pango_script_get_type()) | |
28393 | ||
28394 | GType pango_tab_align_get_type (void); | |
28395 | #define PANGO_TYPE_TAB_ALIGN (pango_tab_align_get_type()) | |
28396 | ||
28397 | GType pango_direction_get_type (void); | |
28398 | #define PANGO_TYPE_DIRECTION (pango_direction_get_type()) | |
28399 | ||
28400 | # 31 "/usr/include/pango-1.0/pango/pango.h" 2 | |
28401 | ||
28402 | ||
28403 | ||
28404 | ||
28405 | # 1 "/usr/include/pango-1.0/pango/pango-layout.h" 1 | |
28406 | # 23 "/usr/include/pango-1.0/pango/pango-layout.h" | |
28407 | #define __PANGO_LAYOUT_H__ | |
28408 | ||
28409 | ||
28410 | ||
28411 | # 1 "/usr/include/pango-1.0/pango/pango-glyph-item.h" 1 | |
28412 | # 24 "/usr/include/pango-1.0/pango/pango-glyph-item.h" | |
28413 | #define __PANGO_GLYPH_ITEM_H__ | |
28414 | ||
28415 | ||
28416 | ||
28417 | ||
28418 | ||
28419 | ||
28420 | ||
28421 | ||
28422 | typedef struct _PangoGlyphItem PangoGlyphItem; | |
28423 | ||
28424 | struct _PangoGlyphItem | |
28425 | { | |
28426 | PangoItem *item; | |
28427 | PangoGlyphString *glyphs; | |
28428 | }; | |
28429 | ||
28430 | PangoGlyphItem *pango_glyph_item_split (PangoGlyphItem *orig, | |
28431 | const char *text, | |
28432 | int split_index); | |
28433 | void pango_glyph_item_free (PangoGlyphItem *glyph_item); | |
28434 | GSList * pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item, | |
28435 | const char *text, | |
28436 | PangoAttrList *list); | |
28437 | void pango_glyph_item_letter_space (PangoGlyphItem *glyph_item, | |
28438 | const char *text, | |
28439 | PangoLogAttr *log_attrs, | |
28440 | int letter_spacing); | |
28441 | ||
28442 | ||
28443 | # 28 "/usr/include/pango-1.0/pango/pango-layout.h" 2 | |
28444 | # 1 "/usr/include/pango-1.0/pango/pango-tabs.h" 1 | |
28445 | # 23 "/usr/include/pango-1.0/pango/pango-tabs.h" | |
28446 | #define __PANGO_TABS_H__ | |
28447 | ||
28448 | ||
28449 | ||
28450 | ||
28451 | ||
28452 | typedef struct _PangoTabArray PangoTabArray; | |
28453 | ||
28454 | typedef enum | |
28455 | { | |
28456 | PANGO_TAB_LEFT | |
28457 | # 42 "/usr/include/pango-1.0/pango/pango-tabs.h" | |
28458 | } PangoTabAlign; | |
28459 | ||
28460 | #define PANGO_TYPE_TAB_ARRAY (pango_tab_array_get_type ()) | |
28461 | ||
28462 | PangoTabArray *pango_tab_array_new (gint initial_size, | |
28463 | gboolean positions_in_pixels); | |
28464 | PangoTabArray *pango_tab_array_new_with_positions (gint size, | |
28465 | gboolean positions_in_pixels, | |
28466 | PangoTabAlign first_alignment, | |
28467 | gint first_position, | |
28468 | ...); | |
28469 | GType pango_tab_array_get_type (void); | |
28470 | PangoTabArray *pango_tab_array_copy (PangoTabArray *src); | |
28471 | void pango_tab_array_free (PangoTabArray *tab_array); | |
28472 | gint pango_tab_array_get_size (PangoTabArray *tab_array); | |
28473 | void pango_tab_array_resize (PangoTabArray *tab_array, | |
28474 | gint new_size); | |
28475 | void pango_tab_array_set_tab (PangoTabArray *tab_array, | |
28476 | gint tab_index, | |
28477 | PangoTabAlign alignment, | |
28478 | gint location); | |
28479 | void pango_tab_array_get_tab (PangoTabArray *tab_array, | |
28480 | gint tab_index, | |
28481 | PangoTabAlign *alignment, | |
28482 | gint *location); | |
28483 | void pango_tab_array_get_tabs (PangoTabArray *tab_array, | |
28484 | PangoTabAlign **alignments, | |
28485 | gint **locations); | |
28486 | ||
28487 | gboolean pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array); | |
28488 | ||
28489 | ||
28490 | ||
28491 | # 29 "/usr/include/pango-1.0/pango/pango-layout.h" 2 | |
28492 | ||
28493 | ||
28494 | ||
28495 | typedef struct _PangoLayout PangoLayout; | |
28496 | typedef struct _PangoLayoutClass PangoLayoutClass; | |
28497 | typedef struct _PangoLayoutLine PangoLayoutLine; | |
28498 | ||
28499 | ||
28500 | typedef PangoGlyphItem PangoLayoutRun; | |
28501 | ||
28502 | typedef enum { | |
28503 | PANGO_ALIGN_LEFT, | |
28504 | PANGO_ALIGN_CENTER, | |
28505 | PANGO_ALIGN_RIGHT | |
28506 | } PangoAlignment; | |
28507 | ||
28508 | typedef enum { | |
28509 | PANGO_WRAP_WORD, | |
28510 | PANGO_WRAP_CHAR, | |
28511 | PANGO_WRAP_WORD_CHAR | |
28512 | } PangoWrapMode; | |
28513 | # 64 "/usr/include/pango-1.0/pango/pango-layout.h" | |
28514 | typedef enum { | |
28515 | PANGO_ELLIPSIZE_NONE, | |
28516 | PANGO_ELLIPSIZE_START, | |
28517 | PANGO_ELLIPSIZE_MIDDLE, | |
28518 | PANGO_ELLIPSIZE_END | |
28519 | } PangoEllipsizeMode; | |
28520 | ||
28521 | struct _PangoLayoutLine | |
28522 | { | |
28523 | PangoLayout *layout; | |
28524 | gint start_index; | |
28525 | gint length; | |
28526 | GSList *runs; | |
28527 | guint is_paragraph_start : 1; | |
28528 | guint resolved_dir : 3; | |
28529 | }; | |
28530 | ||
28531 | #define PANGO_TYPE_LAYOUT (pango_layout_get_type ()) | |
28532 | #define PANGO_LAYOUT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_LAYOUT, PangoLayout)) | |
28533 | #define PANGO_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_LAYOUT, PangoLayoutClass)) | |
28534 | #define PANGO_IS_LAYOUT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_LAYOUT)) | |
28535 | #define PANGO_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_LAYOUT)) | |
28536 | #define PANGO_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_LAYOUT, PangoLayoutClass)) | |
28537 | ||
28538 | ||
28539 | ||
28540 | ||
28541 | ||
28542 | GType pango_layout_get_type (void) __attribute__((__const__)); | |
28543 | PangoLayout *pango_layout_new (PangoContext *context); | |
28544 | PangoLayout *pango_layout_copy (PangoLayout *src); | |
28545 | ||
28546 | PangoContext *pango_layout_get_context (PangoLayout *layout); | |
28547 | ||
28548 | void pango_layout_set_attributes (PangoLayout *layout, | |
28549 | PangoAttrList *attrs); | |
28550 | PangoAttrList *pango_layout_get_attributes (PangoLayout *layout); | |
28551 | ||
28552 | void pango_layout_set_text (PangoLayout *layout, | |
28553 | const char *text, | |
28554 | int length); | |
28555 | const char *pango_layout_get_text (PangoLayout *layout); | |
28556 | ||
28557 | void pango_layout_set_markup (PangoLayout *layout, | |
28558 | const char *markup, | |
28559 | int length); | |
28560 | ||
28561 | void pango_layout_set_markup_with_accel (PangoLayout *layout, | |
28562 | const char *markup, | |
28563 | int length, | |
28564 | gunichar accel_marker, | |
28565 | gunichar *accel_char); | |
28566 | ||
28567 | void pango_layout_set_font_description (PangoLayout *layout, | |
28568 | const PangoFontDescription *desc); | |
28569 | ||
28570 | const PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout); | |
28571 | ||
28572 | void pango_layout_set_width (PangoLayout *layout, | |
28573 | int width); | |
28574 | int pango_layout_get_width (PangoLayout *layout); | |
28575 | void pango_layout_set_wrap (PangoLayout *layout, | |
28576 | PangoWrapMode wrap); | |
28577 | PangoWrapMode pango_layout_get_wrap (PangoLayout *layout); | |
28578 | void pango_layout_set_indent (PangoLayout *layout, | |
28579 | int indent); | |
28580 | int pango_layout_get_indent (PangoLayout *layout); | |
28581 | void pango_layout_set_spacing (PangoLayout *layout, | |
28582 | int spacing); | |
28583 | int pango_layout_get_spacing (PangoLayout *layout); | |
28584 | void pango_layout_set_justify (PangoLayout *layout, | |
28585 | gboolean justify); | |
28586 | gboolean pango_layout_get_justify (PangoLayout *layout); | |
28587 | void pango_layout_set_auto_dir (PangoLayout *layout, | |
28588 | gboolean auto_dir); | |
28589 | gboolean pango_layout_get_auto_dir (PangoLayout *layout); | |
28590 | void pango_layout_set_alignment (PangoLayout *layout, | |
28591 | PangoAlignment alignment); | |
28592 | PangoAlignment pango_layout_get_alignment (PangoLayout *layout); | |
28593 | ||
28594 | void pango_layout_set_tabs (PangoLayout *layout, | |
28595 | PangoTabArray *tabs); | |
28596 | ||
28597 | PangoTabArray* pango_layout_get_tabs (PangoLayout *layout); | |
28598 | ||
28599 | void pango_layout_set_single_paragraph_mode (PangoLayout *layout, | |
28600 | gboolean setting); | |
28601 | gboolean pango_layout_get_single_paragraph_mode (PangoLayout *layout); | |
28602 | ||
28603 | void pango_layout_set_ellipsize (PangoLayout *layout, | |
28604 | PangoEllipsizeMode ellipsize); | |
28605 | PangoEllipsizeMode pango_layout_get_ellipsize (PangoLayout *layout); | |
28606 | ||
28607 | void pango_layout_context_changed (PangoLayout *layout); | |
28608 | ||
28609 | void pango_layout_get_log_attrs (PangoLayout *layout, | |
28610 | PangoLogAttr **attrs, | |
28611 | gint *n_attrs); | |
28612 | ||
28613 | void pango_layout_index_to_pos (PangoLayout *layout, | |
28614 | int index_, | |
28615 | PangoRectangle *pos); | |
28616 | void pango_layout_index_to_line_x (PangoLayout *layout, | |
28617 | int index_, | |
28618 | gboolean trailing, | |
28619 | int *line, | |
28620 | int *x_pos); | |
28621 | void pango_layout_get_cursor_pos (PangoLayout *layout, | |
28622 | int index_, | |
28623 | PangoRectangle *strong_pos, | |
28624 | PangoRectangle *weak_pos); | |
28625 | void pango_layout_move_cursor_visually (PangoLayout *layout, | |
28626 | gboolean strong, | |
28627 | int old_index, | |
28628 | int old_trailing, | |
28629 | int direction, | |
28630 | int *new_index, | |
28631 | int *new_trailing); | |
28632 | gboolean pango_layout_xy_to_index (PangoLayout *layout, | |
28633 | int x, | |
28634 | int y, | |
28635 | int *index_, | |
28636 | int *trailing); | |
28637 | void pango_layout_get_extents (PangoLayout *layout, | |
28638 | PangoRectangle *ink_rect, | |
28639 | PangoRectangle *logical_rect); | |
28640 | void pango_layout_get_pixel_extents (PangoLayout *layout, | |
28641 | PangoRectangle *ink_rect, | |
28642 | PangoRectangle *logical_rect); | |
28643 | void pango_layout_get_size (PangoLayout *layout, | |
28644 | int *width, | |
28645 | int *height); | |
28646 | void pango_layout_get_pixel_size (PangoLayout *layout, | |
28647 | int *width, | |
28648 | int *height); | |
28649 | ||
28650 | int pango_layout_get_line_count (PangoLayout *layout); | |
28651 | PangoLayoutLine *pango_layout_get_line (PangoLayout *layout, | |
28652 | int line); | |
28653 | GSList * pango_layout_get_lines (PangoLayout *layout); | |
28654 | ||
28655 | #define PANGO_TYPE_LAYOUT_LINE (pango_layout_line_get_type ()) | |
28656 | ||
28657 | GType pango_layout_line_get_type (void) __attribute__((__const__)); | |
28658 | ||
28659 | PangoLayoutLine *pango_layout_line_ref (PangoLayoutLine *line); | |
28660 | void pango_layout_line_unref (PangoLayoutLine *line); | |
28661 | ||
28662 | gboolean pango_layout_line_x_to_index (PangoLayoutLine *line, | |
28663 | int x_pos, | |
28664 | int *index_, | |
28665 | int *trailing); | |
28666 | void pango_layout_line_index_to_x (PangoLayoutLine *line, | |
28667 | int index_, | |
28668 | gboolean trailing, | |
28669 | int *x_pos); | |
28670 | void pango_layout_line_get_x_ranges (PangoLayoutLine *line, | |
28671 | int start_index, | |
28672 | int end_index, | |
28673 | int **ranges, | |
28674 | int *n_ranges); | |
28675 | void pango_layout_line_get_extents (PangoLayoutLine *line, | |
28676 | PangoRectangle *ink_rect, | |
28677 | PangoRectangle *logical_rect); | |
28678 | void pango_layout_line_get_pixel_extents (PangoLayoutLine *layout_line, | |
28679 | PangoRectangle *ink_rect, | |
28680 | PangoRectangle *logical_rect); | |
28681 | ||
28682 | typedef struct _PangoLayoutIter PangoLayoutIter; | |
28683 | ||
28684 | #define PANGO_TYPE_LAYOUT_ITER (pango_layout_iter_get_type ()) | |
28685 | ||
28686 | GType pango_layout_iter_get_type (void); | |
28687 | ||
28688 | PangoLayoutIter *pango_layout_get_iter (PangoLayout *layout); | |
28689 | void pango_layout_iter_free (PangoLayoutIter *iter); | |
28690 | ||
28691 | int pango_layout_iter_get_index (PangoLayoutIter *iter); | |
28692 | PangoLayoutRun *pango_layout_iter_get_run (PangoLayoutIter *iter); | |
28693 | PangoLayoutLine *pango_layout_iter_get_line (PangoLayoutIter *iter); | |
28694 | gboolean pango_layout_iter_at_last_line (PangoLayoutIter *iter); | |
28695 | ||
28696 | gboolean pango_layout_iter_next_char (PangoLayoutIter *iter); | |
28697 | gboolean pango_layout_iter_next_cluster (PangoLayoutIter *iter); | |
28698 | gboolean pango_layout_iter_next_run (PangoLayoutIter *iter); | |
28699 | gboolean pango_layout_iter_next_line (PangoLayoutIter *iter); | |
28700 | ||
28701 | void pango_layout_iter_get_char_extents (PangoLayoutIter *iter, | |
28702 | PangoRectangle *logical_rect); | |
28703 | void pango_layout_iter_get_cluster_extents (PangoLayoutIter *iter, | |
28704 | PangoRectangle *ink_rect, | |
28705 | PangoRectangle *logical_rect); | |
28706 | void pango_layout_iter_get_run_extents (PangoLayoutIter *iter, | |
28707 | PangoRectangle *ink_rect, | |
28708 | PangoRectangle *logical_rect); | |
28709 | void pango_layout_iter_get_line_extents (PangoLayoutIter *iter, | |
28710 | PangoRectangle *ink_rect, | |
28711 | PangoRectangle *logical_rect); | |
28712 | ||
28713 | ||
28714 | ||
28715 | void pango_layout_iter_get_line_yrange (PangoLayoutIter *iter, | |
28716 | int *y0_, | |
28717 | int *y1_); | |
28718 | void pango_layout_iter_get_layout_extents (PangoLayoutIter *iter, | |
28719 | PangoRectangle *ink_rect, | |
28720 | PangoRectangle *logical_rect); | |
28721 | int pango_layout_iter_get_baseline (PangoLayoutIter *iter); | |
28722 | ||
28723 | ||
28724 | # 36 "/usr/include/pango-1.0/pango/pango.h" 2 | |
28725 | # 1 "/usr/include/pango-1.0/pango/pango-renderer.h" 1 | |
28726 | # 22 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
28727 | #define __PANGO_RENDERER_H_ | |
28728 | ||
28729 | ||
28730 | ||
28731 | ||
28732 | ||
28733 | #define PANGO_TYPE_RENDERER (pango_renderer_get_type()) | |
28734 | #define PANGO_RENDERER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_RENDERER, PangoRenderer)) | |
28735 | #define PANGO_IS_RENDERER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_RENDERER)) | |
28736 | #define PANGO_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_RENDERER, PangoRendererClass)) | |
28737 | #define PANGO_IS_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_RENDERER)) | |
28738 | #define PANGO_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_RENDERER, PangoRendererClass)) | |
28739 | ||
28740 | typedef struct _PangoRenderer PangoRenderer; | |
28741 | typedef struct _PangoRendererClass PangoRendererClass; | |
28742 | typedef struct _PangoRendererPrivate PangoRendererPrivate; | |
28743 | # 52 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
28744 | typedef enum | |
28745 | { | |
28746 | PANGO_RENDER_PART_FOREGROUND, | |
28747 | PANGO_RENDER_PART_BACKGROUND, | |
28748 | PANGO_RENDER_PART_UNDERLINE, | |
28749 | PANGO_RENDER_PART_STRIKETHROUGH | |
28750 | } PangoRenderPart; | |
28751 | # 71 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
28752 | struct _PangoRenderer | |
28753 | { | |
28754 | ||
28755 | GObject parent_instance; | |
28756 | ||
28757 | PangoUnderline underline; | |
28758 | gboolean strikethrough; | |
28759 | int active_count; | |
28760 | ||
28761 | ||
28762 | PangoMatrix *matrix; | |
28763 | ||
28764 | ||
28765 | PangoRendererPrivate *priv; | |
28766 | }; | |
28767 | # 109 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
28768 | struct _PangoRendererClass | |
28769 | { | |
28770 | ||
28771 | GObjectClass parent_class; | |
28772 | ||
28773 | ||
28774 | ||
28775 | ||
28776 | ||
28777 | ||
28778 | ||
28779 | void (*draw_glyphs) (PangoRenderer *renderer, | |
28780 | PangoFont *font, | |
28781 | PangoGlyphString *glyphs, | |
28782 | int x, | |
28783 | int y); | |
28784 | void (*draw_rectangle) (PangoRenderer *renderer, | |
28785 | PangoRenderPart part, | |
28786 | int x, | |
28787 | int y, | |
28788 | int width, | |
28789 | int height); | |
28790 | void (*draw_error_underline) (PangoRenderer *renderer, | |
28791 | int x, | |
28792 | int y, | |
28793 | int width, | |
28794 | int height); | |
28795 | ||
28796 | ||
28797 | void (*draw_shape) (PangoRenderer *renderer, | |
28798 | PangoAttrShape *attr, | |
28799 | int x, | |
28800 | int y); | |
28801 | ||
28802 | ||
28803 | ||
28804 | ||
28805 | void (*draw_trapezoid) (PangoRenderer *renderer, | |
28806 | PangoRenderPart part, | |
28807 | double y1_, | |
28808 | double x11, | |
28809 | double x21, | |
28810 | double y2, | |
28811 | double x12, | |
28812 | double x22); | |
28813 | void (*draw_glyph) (PangoRenderer *renderer, | |
28814 | PangoFont *font, | |
28815 | PangoGlyph glyph, | |
28816 | double x, | |
28817 | double y); | |
28818 | ||
28819 | ||
28820 | ||
28821 | void (*part_changed) (PangoRenderer *renderer, | |
28822 | PangoRenderPart part); | |
28823 | ||
28824 | ||
28825 | ||
28826 | void (*begin) (PangoRenderer *renderer); | |
28827 | void (*end) (PangoRenderer *renderer); | |
28828 | ||
28829 | ||
28830 | ||
28831 | void (*prepare_run) (PangoRenderer *renderer, | |
28832 | PangoLayoutRun *run); | |
28833 | ||
28834 | ||
28835 | ||
28836 | ||
28837 | void (*_pango_reserved1) (void); | |
28838 | void (*_pango_reserved2) (void); | |
28839 | void (*_pango_reserved3) (void); | |
28840 | void (*_pango_reserved4) (void); | |
28841 | }; | |
28842 | ||
28843 | GType pango_renderer_get_type (void); | |
28844 | ||
28845 | void pango_renderer_draw_layout (PangoRenderer *renderer, | |
28846 | PangoLayout *layout, | |
28847 | int x, | |
28848 | int y); | |
28849 | void pango_renderer_draw_layout_line (PangoRenderer *renderer, | |
28850 | PangoLayoutLine *line, | |
28851 | int x, | |
28852 | int y); | |
28853 | void pango_renderer_draw_glyphs (PangoRenderer *renderer, | |
28854 | PangoFont *font, | |
28855 | PangoGlyphString *glyphs, | |
28856 | int x, | |
28857 | int y); | |
28858 | void pango_renderer_draw_rectangle (PangoRenderer *renderer, | |
28859 | PangoRenderPart part, | |
28860 | int x, | |
28861 | int y, | |
28862 | int width, | |
28863 | int height); | |
28864 | void pango_renderer_draw_error_underline (PangoRenderer *renderer, | |
28865 | int x, | |
28866 | int y, | |
28867 | int width, | |
28868 | int height); | |
28869 | void pango_renderer_draw_trapezoid (PangoRenderer *renderer, | |
28870 | PangoRenderPart part, | |
28871 | double y1_, | |
28872 | double x11, | |
28873 | double x21, | |
28874 | double y2, | |
28875 | double x12, | |
28876 | double x22); | |
28877 | void pango_renderer_draw_glyph (PangoRenderer *renderer, | |
28878 | PangoFont *font, | |
28879 | PangoGlyph glyph, | |
28880 | double x, | |
28881 | double y); | |
28882 | ||
28883 | void pango_renderer_activate (PangoRenderer *renderer); | |
28884 | void pango_renderer_deactivate (PangoRenderer *renderer); | |
28885 | ||
28886 | void pango_renderer_part_changed (PangoRenderer *renderer, | |
28887 | PangoRenderPart part); | |
28888 | ||
28889 | void pango_renderer_set_color (PangoRenderer *renderer, | |
28890 | PangoRenderPart part, | |
28891 | const PangoColor *color); | |
28892 | PangoColor *pango_renderer_get_color (PangoRenderer *renderer, | |
28893 | PangoRenderPart part); | |
28894 | ||
28895 | void pango_renderer_set_matrix (PangoRenderer *renderer, | |
28896 | const PangoMatrix *matrix); | |
28897 | const PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer); | |
28898 | ||
28899 | ||
28900 | # 37 "/usr/include/pango-1.0/pango/pango.h" 2 | |
28901 | # 34 "/usr/include/gtk-2.0/gdk/gdktypes.h" 2 | |
28902 | # 43 "/usr/include/gtk-2.0/gdk/gdktypes.h" | |
28903 | #define GDKVAR extern | |
28904 | ||
28905 | ||
28906 | ||
28907 | ||
28908 | ||
28909 | ||
28910 | ||
28911 | # 1 "/usr/lib/gtk-2.0/include/gdkconfig.h" 1 | |
28912 | ||
28913 | ||
28914 | ||
28915 | ||
28916 | ||
28917 | ||
28918 | #define GDKCONFIG_H | |
28919 | ||
28920 | ||
28921 | ||
28922 | ||
28923 | ||
28924 | ||
28925 | #define GDK_WINDOWING_X11 | |
28926 | ||
28927 | #define GDK_HAVE_WCHAR_H 1 | |
28928 | #define GDK_HAVE_WCTYPE_H 1 | |
28929 | # 52 "/usr/include/gtk-2.0/gdk/gdktypes.h" 2 | |
28930 | ||
28931 | ||
28932 | #define GDK_CURRENT_TIME 0L | |
28933 | #define GDK_PARENT_RELATIVE 1L | |
28934 | ||
28935 | ||
28936 | ||
28937 | ||
28938 | ||
28939 | ||
28940 | ||
28941 | ||
28942 | typedef struct _GdkPoint GdkPoint; | |
28943 | typedef struct _GdkRectangle GdkRectangle; | |
28944 | typedef struct _GdkSegment GdkSegment; | |
28945 | typedef struct _GdkSpan GdkSpan; | |
28946 | ||
28947 | ||
28948 | ||
28949 | ||
28950 | ||
28951 | ||
28952 | typedef guint32 GdkWChar; | |
28953 | ||
28954 | typedef struct _GdkAtom *GdkAtom; | |
28955 | ||
28956 | #define GDK_ATOM_TO_POINTER(atom) (atom) | |
28957 | #define GDK_POINTER_TO_ATOM(ptr) ((GdkAtom)(ptr)) | |
28958 | ||
28959 | #define _GDK_MAKE_ATOM(val) ((GdkAtom)GUINT_TO_POINTER(val)) | |
28960 | #define GDK_NONE _GDK_MAKE_ATOM (0) | |
28961 | ||
28962 | ||
28963 | ||
28964 | ||
28965 | typedef guint32 GdkNativeWindow; | |
28966 | ||
28967 | ||
28968 | ||
28969 | ||
28970 | typedef struct _GdkColor GdkColor; | |
28971 | typedef struct _GdkColormap GdkColormap; | |
28972 | typedef struct _GdkCursor GdkCursor; | |
28973 | typedef struct _GdkFont GdkFont; | |
28974 | typedef struct _GdkGC GdkGC; | |
28975 | typedef struct _GdkImage GdkImage; | |
28976 | typedef struct _GdkRegion GdkRegion; | |
28977 | typedef struct _GdkVisual GdkVisual; | |
28978 | ||
28979 | typedef struct _GdkDrawable GdkDrawable; | |
28980 | typedef struct _GdkDrawable GdkBitmap; | |
28981 | typedef struct _GdkDrawable GdkPixmap; | |
28982 | typedef struct _GdkDrawable GdkWindow; | |
28983 | typedef struct _GdkDisplay GdkDisplay; | |
28984 | typedef struct _GdkScreen GdkScreen; | |
28985 | ||
28986 | typedef enum | |
28987 | { | |
28988 | GDK_LSB_FIRST, | |
28989 | GDK_MSB_FIRST | |
28990 | } GdkByteOrder; | |
28991 | ||
28992 | ||
28993 | ||
28994 | typedef enum | |
28995 | { | |
28996 | GDK_SHIFT_MASK = 1 << 0, | |
28997 | GDK_LOCK_MASK = 1 << 1, | |
28998 | GDK_CONTROL_MASK = 1 << 2, | |
28999 | GDK_MOD1_MASK = 1 << 3, | |
29000 | GDK_MOD2_MASK = 1 << 4, | |
29001 | GDK_MOD3_MASK = 1 << 5, | |
29002 | GDK_MOD4_MASK = 1 << 6, | |
29003 | GDK_MOD5_MASK = 1 << 7, | |
29004 | GDK_BUTTON1_MASK = 1 << 8, | |
29005 | GDK_BUTTON2_MASK = 1 << 9, | |
29006 | GDK_BUTTON3_MASK = 1 << 10, | |
29007 | GDK_BUTTON4_MASK = 1 << 11, | |
29008 | GDK_BUTTON5_MASK = 1 << 12, | |
29009 | ||
29010 | ||
29011 | ||
29012 | ||
29013 | GDK_RELEASE_MASK = 1 << 30, | |
29014 | GDK_MODIFIER_MASK = GDK_RELEASE_MASK | 0x1fff | |
29015 | } GdkModifierType; | |
29016 | ||
29017 | typedef enum | |
29018 | { | |
29019 | GDK_INPUT_READ = 1 << 0, | |
29020 | GDK_INPUT_WRITE = 1 << 1, | |
29021 | GDK_INPUT_EXCEPTION = 1 << 2 | |
29022 | } GdkInputCondition; | |
29023 | ||
29024 | typedef enum | |
29025 | { | |
29026 | GDK_OK = 0, | |
29027 | GDK_ERROR = -1, | |
29028 | GDK_ERROR_PARAM = -2, | |
29029 | GDK_ERROR_FILE = -3, | |
29030 | GDK_ERROR_MEM = -4 | |
29031 | } GdkStatus; | |
29032 | ||
29033 | ||
29034 | ||
29035 | ||
29036 | ||
29037 | typedef enum | |
29038 | { | |
29039 | GDK_GRAB_SUCCESS = 0, | |
29040 | GDK_GRAB_ALREADY_GRABBED = 1, | |
29041 | GDK_GRAB_INVALID_TIME = 2, | |
29042 | GDK_GRAB_NOT_VIEWABLE = 3, | |
29043 | GDK_GRAB_FROZEN = 4 | |
29044 | } GdkGrabStatus; | |
29045 | ||
29046 | typedef void (*GdkInputFunction) (gpointer data, | |
29047 | gint source, | |
29048 | GdkInputCondition condition); | |
29049 | ||
29050 | typedef void (*GdkDestroyNotify) (gpointer data); | |
29051 | ||
29052 | struct _GdkPoint | |
29053 | { | |
29054 | gint x; | |
29055 | gint y; | |
29056 | }; | |
29057 | ||
29058 | struct _GdkRectangle | |
29059 | { | |
29060 | gint x; | |
29061 | gint y; | |
29062 | gint width; | |
29063 | gint height; | |
29064 | }; | |
29065 | ||
29066 | struct _GdkSegment | |
29067 | { | |
29068 | gint x1; | |
29069 | gint y1; | |
29070 | gint x2; | |
29071 | gint y2; | |
29072 | }; | |
29073 | ||
29074 | struct _GdkSpan | |
29075 | { | |
29076 | gint x; | |
29077 | gint y; | |
29078 | gint width; | |
29079 | }; | |
29080 | ||
29081 | ||
29082 | # 32 "/usr/include/gtk-2.0/gdk/gdkcolor.h" 2 | |
29083 | ||
29084 | ||
29085 | # 42 "/usr/include/gtk-2.0/gdk/gdkcolor.h" | |
29086 | struct _GdkColor | |
29087 | { | |
29088 | guint32 pixel; | |
29089 | guint16 red; | |
29090 | guint16 green; | |
29091 | guint16 blue; | |
29092 | }; | |
29093 | ||
29094 | ||
29095 | ||
29096 | ||
29097 | typedef struct _GdkColormapClass GdkColormapClass; | |
29098 | ||
29099 | #define GDK_TYPE_COLORMAP (gdk_colormap_get_type ()) | |
29100 | #define GDK_COLORMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_COLORMAP, GdkColormap)) | |
29101 | #define GDK_COLORMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_COLORMAP, GdkColormapClass)) | |
29102 | #define GDK_IS_COLORMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_COLORMAP)) | |
29103 | #define GDK_IS_COLORMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_COLORMAP)) | |
29104 | #define GDK_COLORMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_COLORMAP, GdkColormapClass)) | |
29105 | ||
29106 | #define GDK_TYPE_COLOR (gdk_color_get_type ()) | |
29107 | ||
29108 | struct _GdkColormap | |
29109 | { | |
29110 | ||
29111 | GObject parent_instance; | |
29112 | ||
29113 | ||
29114 | gint size; | |
29115 | GdkColor *colors; | |
29116 | ||
29117 | ||
29118 | GdkVisual *visual; | |
29119 | ||
29120 | gpointer windowing_data; | |
29121 | }; | |
29122 | ||
29123 | struct _GdkColormapClass | |
29124 | { | |
29125 | GObjectClass parent_class; | |
29126 | ||
29127 | }; | |
29128 | ||
29129 | GType gdk_colormap_get_type (void) __attribute__((__const__)); | |
29130 | ||
29131 | GdkColormap* gdk_colormap_new (GdkVisual *visual, | |
29132 | gboolean allocate); | |
29133 | ||
29134 | ||
29135 | GdkColormap* gdk_colormap_ref (GdkColormap *cmap); | |
29136 | void gdk_colormap_unref (GdkColormap *cmap); | |
29137 | ||
29138 | ||
29139 | ||
29140 | GdkColormap* gdk_colormap_get_system (void); | |
29141 | ||
29142 | ||
29143 | GdkScreen *gdk_colormap_get_screen (GdkColormap *cmap); | |
29144 | ||
29145 | ||
29146 | gint gdk_colormap_get_system_size (void); | |
29147 | ||
29148 | ||
29149 | ||
29150 | ||
29151 | void gdk_colormap_change (GdkColormap *colormap, | |
29152 | gint ncolors); | |
29153 | ||
29154 | ||
29155 | gint gdk_colormap_alloc_colors (GdkColormap *colormap, | |
29156 | GdkColor *colors, | |
29157 | gint ncolors, | |
29158 | gboolean writeable, | |
29159 | gboolean best_match, | |
29160 | gboolean *success); | |
29161 | gboolean gdk_colormap_alloc_color (GdkColormap *colormap, | |
29162 | GdkColor *color, | |
29163 | gboolean writeable, | |
29164 | gboolean best_match); | |
29165 | void gdk_colormap_free_colors (GdkColormap *colormap, | |
29166 | GdkColor *colors, | |
29167 | gint ncolors); | |
29168 | void gdk_colormap_query_color (GdkColormap *colormap, | |
29169 | gulong pixel, | |
29170 | GdkColor *result); | |
29171 | ||
29172 | GdkVisual *gdk_colormap_get_visual (GdkColormap *colormap); | |
29173 | ||
29174 | GdkColor *gdk_color_copy (const GdkColor *color); | |
29175 | void gdk_color_free (GdkColor *color); | |
29176 | gint gdk_color_parse (const gchar *spec, | |
29177 | GdkColor *color); | |
29178 | guint gdk_color_hash (const GdkColor *colora); | |
29179 | gboolean gdk_color_equal (const GdkColor *colora, | |
29180 | const GdkColor *colorb); | |
29181 | ||
29182 | GType gdk_color_get_type (void) __attribute__((__const__)); | |
29183 | ||
29184 | ||
29185 | ||
29186 | void gdk_colors_store (GdkColormap *colormap, | |
29187 | GdkColor *colors, | |
29188 | gint ncolors); | |
29189 | gint gdk_color_white (GdkColormap *colormap, | |
29190 | GdkColor *color); | |
29191 | gint gdk_color_black (GdkColormap *colormap, | |
29192 | GdkColor *color); | |
29193 | gint gdk_color_alloc (GdkColormap *colormap, | |
29194 | GdkColor *color); | |
29195 | gint gdk_color_change (GdkColormap *colormap, | |
29196 | GdkColor *color); | |
29197 | ||
29198 | ||
29199 | ||
29200 | ||
29201 | gint gdk_colors_alloc (GdkColormap *colormap, | |
29202 | gboolean contiguous, | |
29203 | gulong *planes, | |
29204 | gint nplanes, | |
29205 | gulong *pixels, | |
29206 | gint npixels); | |
29207 | void gdk_colors_free (GdkColormap *colormap, | |
29208 | gulong *pixels, | |
29209 | gint npixels, | |
29210 | gulong planes); | |
29211 | ||
29212 | ||
29213 | ||
29214 | # 24 "/usr/include/gtk-2.0/gdk/gdkcairo.h" 2 | |
29215 | # 1 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h" 1 | |
29216 | # 28 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h" | |
29217 | #define __GDK_PIXBUF_H__ | |
29218 | ||
29219 | ||
29220 | ||
29221 | # 1 "/usr/include/gtk-2.0/gdk/gdkrgb.h" 1 | |
29222 | # 28 "/usr/include/gtk-2.0/gdk/gdkrgb.h" | |
29223 | #define __GDK_RGB_H__ | |
29224 | ||
29225 | ||
29226 | ||
29227 | ||
29228 | ||
29229 | typedef struct _GdkRgbCmap GdkRgbCmap; | |
29230 | ||
29231 | struct _GdkRgbCmap { | |
29232 | guint32 colors[256]; | |
29233 | gint n_colors; | |
29234 | ||
29235 | ||
29236 | GSList *info_list; | |
29237 | }; | |
29238 | ||
29239 | ||
29240 | void gdk_rgb_init (void); | |
29241 | ||
29242 | gulong gdk_rgb_xpixel_from_rgb (guint32 rgb) __attribute__((__const__)); | |
29243 | void gdk_rgb_gc_set_foreground (GdkGC *gc, | |
29244 | guint32 rgb); | |
29245 | void gdk_rgb_gc_set_background (GdkGC *gc, | |
29246 | guint32 rgb); | |
29247 | #define gdk_rgb_get_cmap gdk_rgb_get_colormap | |
29248 | ||
29249 | ||
29250 | void gdk_rgb_find_color (GdkColormap *colormap, | |
29251 | GdkColor *color); | |
29252 | ||
29253 | typedef enum | |
29254 | { | |
29255 | GDK_RGB_DITHER_NONE, | |
29256 | GDK_RGB_DITHER_NORMAL, | |
29257 | GDK_RGB_DITHER_MAX | |
29258 | } GdkRgbDither; | |
29259 | ||
29260 | void gdk_draw_rgb_image (GdkDrawable *drawable, | |
29261 | GdkGC *gc, | |
29262 | gint x, | |
29263 | gint y, | |
29264 | gint width, | |
29265 | gint height, | |
29266 | GdkRgbDither dith, | |
29267 | guchar *rgb_buf, | |
29268 | gint rowstride); | |
29269 | void gdk_draw_rgb_image_dithalign (GdkDrawable *drawable, | |
29270 | GdkGC *gc, | |
29271 | gint x, | |
29272 | gint y, | |
29273 | gint width, | |
29274 | gint height, | |
29275 | GdkRgbDither dith, | |
29276 | guchar *rgb_buf, | |
29277 | gint rowstride, | |
29278 | gint xdith, | |
29279 | gint ydith); | |
29280 | void gdk_draw_rgb_32_image (GdkDrawable *drawable, | |
29281 | GdkGC *gc, | |
29282 | gint x, | |
29283 | gint y, | |
29284 | gint width, | |
29285 | gint height, | |
29286 | GdkRgbDither dith, | |
29287 | guchar *buf, | |
29288 | gint rowstride); | |
29289 | void gdk_draw_rgb_32_image_dithalign (GdkDrawable *drawable, | |
29290 | GdkGC *gc, | |
29291 | gint x, | |
29292 | gint y, | |
29293 | gint width, | |
29294 | gint height, | |
29295 | GdkRgbDither dith, | |
29296 | guchar *buf, | |
29297 | gint rowstride, | |
29298 | gint xdith, | |
29299 | gint ydith); | |
29300 | void gdk_draw_gray_image (GdkDrawable *drawable, | |
29301 | GdkGC *gc, | |
29302 | gint x, | |
29303 | gint y, | |
29304 | gint width, | |
29305 | gint height, | |
29306 | GdkRgbDither dith, | |
29307 | guchar *buf, | |
29308 | gint rowstride); | |
29309 | void gdk_draw_indexed_image (GdkDrawable *drawable, | |
29310 | GdkGC *gc, | |
29311 | gint x, | |
29312 | gint y, | |
29313 | gint width, | |
29314 | gint height, | |
29315 | GdkRgbDither dith, | |
29316 | guchar *buf, | |
29317 | gint rowstride, | |
29318 | GdkRgbCmap *cmap); | |
29319 | GdkRgbCmap *gdk_rgb_cmap_new (guint32 *colors, | |
29320 | gint n_colors); | |
29321 | void gdk_rgb_cmap_free (GdkRgbCmap *cmap); | |
29322 | ||
29323 | void gdk_rgb_set_verbose (gboolean verbose); | |
29324 | ||
29325 | ||
29326 | void gdk_rgb_set_install (gboolean install); | |
29327 | void gdk_rgb_set_min_colors (gint min_colors); | |
29328 | ||
29329 | ||
29330 | GdkColormap *gdk_rgb_get_colormap (void); | |
29331 | GdkVisual * gdk_rgb_get_visual (void); | |
29332 | gboolean gdk_rgb_ditherable (void); | |
29333 | gboolean gdk_rgb_colormap_ditherable (GdkColormap *cmap); | |
29334 | ||
29335 | ||
29336 | ||
29337 | # 33 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h" 2 | |
29338 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 1 | |
29339 | # 27 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" | |
29340 | #define GDK_PIXBUF_H | |
29341 | ||
29342 | ||
29343 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h" 1 | |
29344 | ||
29345 | #define GDK_PIXBUF_FEATURES_H 1 | |
29346 | ||
29347 | #define GDK_PIXBUF_MAJOR (2) | |
29348 | #define GDK_PIXBUF_MINOR (8) | |
29349 | #define GDK_PIXBUF_MICRO (19) | |
29350 | #define GDK_PIXBUF_VERSION "2.8.19" | |
29351 | # 29 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h" | |
29352 | #define GDK_PIXBUF_VAR extern | |
29353 | ||
29354 | ||
29355 | ||
29356 | ||
29357 | ||
29358 | ||
29359 | extern const guint gdk_pixbuf_major_version; | |
29360 | extern const guint gdk_pixbuf_minor_version; | |
29361 | extern const guint gdk_pixbuf_micro_version; | |
29362 | extern const char *gdk_pixbuf_version; | |
29363 | # 31 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2 | |
29364 | ||
29365 | ||
29366 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h" 1 | |
29367 | # 27 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h" | |
29368 | #define GDK_PIXBUF_CORE_H | |
29369 | ||
29370 | ||
29371 | ||
29372 | ||
29373 | ||
29374 | ||
29375 | ||
29376 | typedef enum | |
29377 | { | |
29378 | GDK_PIXBUF_ALPHA_BILEVEL, | |
29379 | GDK_PIXBUF_ALPHA_FULL | |
29380 | } GdkPixbufAlphaMode; | |
29381 | ||
29382 | ||
29383 | ||
29384 | ||
29385 | ||
29386 | typedef enum { | |
29387 | GDK_COLORSPACE_RGB | |
29388 | } GdkColorspace; | |
29389 | ||
29390 | ||
29391 | typedef struct _GdkPixbuf GdkPixbuf; | |
29392 | ||
29393 | #define GDK_TYPE_PIXBUF (gdk_pixbuf_get_type ()) | |
29394 | #define GDK_PIXBUF(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF, GdkPixbuf)) | |
29395 | #define GDK_IS_PIXBUF(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF)) | |
29396 | ||
29397 | ||
29398 | ||
29399 | typedef void (* GdkPixbufDestroyNotify) (guchar *pixels, gpointer data); | |
29400 | ||
29401 | #define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark () | |
29402 | ||
29403 | typedef enum { | |
29404 | ||
29405 | GDK_PIXBUF_ERROR_CORRUPT_IMAGE, | |
29406 | ||
29407 | GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, | |
29408 | ||
29409 | GDK_PIXBUF_ERROR_BAD_OPTION, | |
29410 | ||
29411 | GDK_PIXBUF_ERROR_UNKNOWN_TYPE, | |
29412 | ||
29413 | GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION, | |
29414 | GDK_PIXBUF_ERROR_FAILED | |
29415 | } GdkPixbufError; | |
29416 | ||
29417 | GQuark gdk_pixbuf_error_quark (void); | |
29418 | ||
29419 | ||
29420 | ||
29421 | GType gdk_pixbuf_get_type (void) __attribute__((__const__)); | |
29422 | ||
29423 | ||
29424 | ||
29425 | ||
29426 | GdkPixbuf *gdk_pixbuf_ref (GdkPixbuf *pixbuf); | |
29427 | void gdk_pixbuf_unref (GdkPixbuf *pixbuf); | |
29428 | ||
29429 | ||
29430 | ||
29431 | ||
29432 | GdkColorspace gdk_pixbuf_get_colorspace (const GdkPixbuf *pixbuf); | |
29433 | int gdk_pixbuf_get_n_channels (const GdkPixbuf *pixbuf); | |
29434 | gboolean gdk_pixbuf_get_has_alpha (const GdkPixbuf *pixbuf); | |
29435 | int gdk_pixbuf_get_bits_per_sample (const GdkPixbuf *pixbuf); | |
29436 | guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf); | |
29437 | int gdk_pixbuf_get_width (const GdkPixbuf *pixbuf); | |
29438 | int gdk_pixbuf_get_height (const GdkPixbuf *pixbuf); | |
29439 | int gdk_pixbuf_get_rowstride (const GdkPixbuf *pixbuf); | |
29440 | ||
29441 | ||
29442 | ||
29443 | ||
29444 | GdkPixbuf *gdk_pixbuf_new (GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, | |
29445 | int width, int height); | |
29446 | ||
29447 | ||
29448 | ||
29449 | GdkPixbuf *gdk_pixbuf_copy (const GdkPixbuf *pixbuf); | |
29450 | ||
29451 | ||
29452 | GdkPixbuf *gdk_pixbuf_new_subpixbuf (GdkPixbuf *src_pixbuf, | |
29453 | int src_x, | |
29454 | int src_y, | |
29455 | int width, | |
29456 | int height); | |
29457 | # 126 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h" | |
29458 | GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename, | |
29459 | GError **error); | |
29460 | GdkPixbuf *gdk_pixbuf_new_from_file_at_size (const char *filename, | |
29461 | int width, | |
29462 | int height, | |
29463 | GError **error); | |
29464 | GdkPixbuf *gdk_pixbuf_new_from_file_at_scale (const char *filename, | |
29465 | int width, | |
29466 | int height, | |
29467 | gboolean preserve_aspect_ratio, | |
29468 | GError **error); | |
29469 | ||
29470 | GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data, | |
29471 | GdkColorspace colorspace, | |
29472 | gboolean has_alpha, | |
29473 | int bits_per_sample, | |
29474 | int width, int height, | |
29475 | int rowstride, | |
29476 | GdkPixbufDestroyNotify destroy_fn, | |
29477 | gpointer destroy_fn_data); | |
29478 | ||
29479 | GdkPixbuf *gdk_pixbuf_new_from_xpm_data (const char **data); | |
29480 | GdkPixbuf* gdk_pixbuf_new_from_inline (gint data_length, | |
29481 | const guint8 *data, | |
29482 | gboolean copy_pixels, | |
29483 | GError **error); | |
29484 | ||
29485 | ||
29486 | void gdk_pixbuf_fill (GdkPixbuf *pixbuf, | |
29487 | guint32 pixel); | |
29488 | # 165 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h" | |
29489 | gboolean gdk_pixbuf_save (GdkPixbuf *pixbuf, | |
29490 | const char *filename, | |
29491 | const char *type, | |
29492 | GError **error, | |
29493 | ...) ; | |
29494 | ||
29495 | gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf, | |
29496 | const char *filename, | |
29497 | const char *type, | |
29498 | char **option_keys, | |
29499 | char **option_values, | |
29500 | GError **error); | |
29501 | ||
29502 | ||
29503 | ||
29504 | typedef gboolean (*GdkPixbufSaveFunc) (const gchar *buf, | |
29505 | gsize count, | |
29506 | GError **error, | |
29507 | gpointer data); | |
29508 | ||
29509 | gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf, | |
29510 | GdkPixbufSaveFunc save_func, | |
29511 | gpointer user_data, | |
29512 | const char *type, | |
29513 | GError **error, | |
29514 | ...) ; | |
29515 | ||
29516 | gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf, | |
29517 | GdkPixbufSaveFunc save_func, | |
29518 | gpointer user_data, | |
29519 | const char *type, | |
29520 | char **option_keys, | |
29521 | char **option_values, | |
29522 | GError **error); | |
29523 | ||
29524 | ||
29525 | ||
29526 | gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf, | |
29527 | gchar **buffer, | |
29528 | gsize *buffer_size, | |
29529 | const char *type, | |
29530 | GError **error, | |
29531 | ...) ; | |
29532 | ||
29533 | gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf, | |
29534 | gchar **buffer, | |
29535 | gsize *buffer_size, | |
29536 | const char *type, | |
29537 | char **option_keys, | |
29538 | char **option_values, | |
29539 | GError **error); | |
29540 | ||
29541 | ||
29542 | GdkPixbuf *gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf, gboolean substitute_color, | |
29543 | guchar r, guchar g, guchar b); | |
29544 | ||
29545 | ||
29546 | void gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf, | |
29547 | int src_x, int src_y, | |
29548 | int width, int height, | |
29549 | GdkPixbuf *dest_pixbuf, | |
29550 | int dest_x, int dest_y); | |
29551 | ||
29552 | ||
29553 | void gdk_pixbuf_saturate_and_pixelate (const GdkPixbuf *src, | |
29554 | GdkPixbuf *dest, | |
29555 | gfloat saturation, | |
29556 | gboolean pixelate); | |
29557 | ||
29558 | ||
29559 | const gchar * gdk_pixbuf_get_option (GdkPixbuf *pixbuf, | |
29560 | const gchar *key); | |
29561 | ||
29562 | ||
29563 | ||
29564 | # 34 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2 | |
29565 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h" 1 | |
29566 | # 27 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h" | |
29567 | #define GDK_PIXBUF_TRANSFORM_H | |
29568 | ||
29569 | ||
29570 | ||
29571 | ||
29572 | ||
29573 | ||
29574 | ||
29575 | ||
29576 | ||
29577 | ||
29578 | typedef enum { | |
29579 | GDK_INTERP_NEAREST, | |
29580 | GDK_INTERP_TILES, | |
29581 | GDK_INTERP_BILINEAR, | |
29582 | GDK_INTERP_HYPER | |
29583 | } GdkInterpType; | |
29584 | ||
29585 | typedef enum { | |
29586 | GDK_PIXBUF_ROTATE_NONE = 0, | |
29587 | GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90, | |
29588 | GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180, | |
29589 | GDK_PIXBUF_ROTATE_CLOCKWISE = 270 | |
29590 | } GdkPixbufRotation; | |
29591 | ||
29592 | void gdk_pixbuf_scale (const GdkPixbuf *src, | |
29593 | GdkPixbuf *dest, | |
29594 | int dest_x, | |
29595 | int dest_y, | |
29596 | int dest_width, | |
29597 | int dest_height, | |
29598 | double offset_x, | |
29599 | double offset_y, | |
29600 | double scale_x, | |
29601 | double scale_y, | |
29602 | GdkInterpType interp_type); | |
29603 | void gdk_pixbuf_composite (const GdkPixbuf *src, | |
29604 | GdkPixbuf *dest, | |
29605 | int dest_x, | |
29606 | int dest_y, | |
29607 | int dest_width, | |
29608 | int dest_height, | |
29609 | double offset_x, | |
29610 | double offset_y, | |
29611 | double scale_x, | |
29612 | double scale_y, | |
29613 | GdkInterpType interp_type, | |
29614 | int overall_alpha); | |
29615 | void gdk_pixbuf_composite_color (const GdkPixbuf *src, | |
29616 | GdkPixbuf *dest, | |
29617 | int dest_x, | |
29618 | int dest_y, | |
29619 | int dest_width, | |
29620 | int dest_height, | |
29621 | double offset_x, | |
29622 | double offset_y, | |
29623 | double scale_x, | |
29624 | double scale_y, | |
29625 | GdkInterpType interp_type, | |
29626 | int overall_alpha, | |
29627 | int check_x, | |
29628 | int check_y, | |
29629 | int check_size, | |
29630 | guint32 color1, | |
29631 | guint32 color2); | |
29632 | ||
29633 | GdkPixbuf *gdk_pixbuf_scale_simple (const GdkPixbuf *src, | |
29634 | int dest_width, | |
29635 | int dest_height, | |
29636 | GdkInterpType interp_type); | |
29637 | ||
29638 | GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src, | |
29639 | int dest_width, | |
29640 | int dest_height, | |
29641 | GdkInterpType interp_type, | |
29642 | int overall_alpha, | |
29643 | int check_size, | |
29644 | guint32 color1, | |
29645 | guint32 color2); | |
29646 | ||
29647 | GdkPixbuf *gdk_pixbuf_rotate_simple (const GdkPixbuf *src, | |
29648 | GdkPixbufRotation angle); | |
29649 | GdkPixbuf *gdk_pixbuf_flip (const GdkPixbuf *src, | |
29650 | gboolean horizontal); | |
29651 | ||
29652 | ||
29653 | # 35 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2 | |
29654 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h" 1 | |
29655 | # 28 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h" | |
29656 | #define GDK_PIXBUF_ANIMATION_H | |
29657 | ||
29658 | ||
29659 | ||
29660 | ||
29661 | ||
29662 | ||
29663 | ||
29664 | ||
29665 | ||
29666 | typedef struct _GdkPixbufAnimation GdkPixbufAnimation; | |
29667 | typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter; | |
29668 | ||
29669 | #define GDK_TYPE_PIXBUF_ANIMATION (gdk_pixbuf_animation_get_type ()) | |
29670 | #define GDK_PIXBUF_ANIMATION(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_ANIMATION, GdkPixbufAnimation)) | |
29671 | #define GDK_IS_PIXBUF_ANIMATION(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_ANIMATION)) | |
29672 | ||
29673 | #define GDK_TYPE_PIXBUF_ANIMATION_ITER (gdk_pixbuf_animation_iter_get_type ()) | |
29674 | #define GDK_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIter)) | |
29675 | #define GDK_IS_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER)) | |
29676 | ||
29677 | GType gdk_pixbuf_animation_get_type (void) __attribute__((__const__)); | |
29678 | ||
29679 | ||
29680 | ||
29681 | ||
29682 | ||
29683 | GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename, | |
29684 | GError **error); | |
29685 | ||
29686 | ||
29687 | GdkPixbufAnimation *gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation); | |
29688 | void gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation); | |
29689 | ||
29690 | ||
29691 | int gdk_pixbuf_animation_get_width (GdkPixbufAnimation *animation); | |
29692 | int gdk_pixbuf_animation_get_height (GdkPixbufAnimation *animation); | |
29693 | gboolean gdk_pixbuf_animation_is_static_image (GdkPixbufAnimation *animation); | |
29694 | GdkPixbuf *gdk_pixbuf_animation_get_static_image (GdkPixbufAnimation *animation); | |
29695 | ||
29696 | GdkPixbufAnimationIter *gdk_pixbuf_animation_get_iter (GdkPixbufAnimation *animation, | |
29697 | const GTimeVal *start_time); | |
29698 | GType gdk_pixbuf_animation_iter_get_type (void) __attribute__((__const__)); | |
29699 | int gdk_pixbuf_animation_iter_get_delay_time (GdkPixbufAnimationIter *iter); | |
29700 | GdkPixbuf *gdk_pixbuf_animation_iter_get_pixbuf (GdkPixbufAnimationIter *iter); | |
29701 | gboolean gdk_pixbuf_animation_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter); | |
29702 | gboolean gdk_pixbuf_animation_iter_advance (GdkPixbufAnimationIter *iter, | |
29703 | const GTimeVal *current_time); | |
29704 | # 145 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h" | |
29705 | ||
29706 | # 36 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2 | |
29707 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h" 1 | |
29708 | # 25 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h" | |
29709 | #define GDK_PIXBUF_SIMPLE_ANIM_H | |
29710 | ||
29711 | ||
29712 | ||
29713 | ||
29714 | ||
29715 | typedef struct _GdkPixbufSimpleAnim GdkPixbufSimpleAnim; | |
29716 | typedef struct _GdkPixbufSimpleAnimClass GdkPixbufSimpleAnimClass; | |
29717 | ||
29718 | #define GDK_TYPE_PIXBUF_SIMPLE_ANIM (gdk_pixbuf_simple_anim_get_type ()) | |
29719 | #define GDK_PIXBUF_SIMPLE_ANIM(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnim)) | |
29720 | #define GDK_IS_PIXBUF_SIMPLE_ANIM(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM)) | |
29721 | ||
29722 | #define GDK_PIXBUF_SIMPLE_ANIM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnimClass)) | |
29723 | #define GDK_IS_PIXBUF_SIMPLE_ANIM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_SIMPLE_ANIM)) | |
29724 | #define GDK_PIXBUF_SIMPLE_ANIM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnimClass)) | |
29725 | ||
29726 | GType gdk_pixbuf_simple_anim_get_type (void) __attribute__((__const__)); | |
29727 | GType gdk_pixbuf_simple_anim_iter_get_type (void) __attribute__((__const__)); | |
29728 | ||
29729 | GdkPixbufSimpleAnim *gdk_pixbuf_simple_anim_new (gint width, | |
29730 | gint height, | |
29731 | gfloat rate); | |
29732 | void gdk_pixbuf_simple_anim_add_frame (GdkPixbufSimpleAnim *animation, | |
29733 | GdkPixbuf *pixbuf); | |
29734 | ||
29735 | ||
29736 | # 37 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2 | |
29737 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h" 1 | |
29738 | # 30 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h" | |
29739 | #define GDK_PIXBUF_IO_H | |
29740 | ||
29741 | ||
29742 | ||
29743 | # 1 "/usr/include/glib-2.0/gmodule.h" 1 | |
29744 | # 28 "/usr/include/glib-2.0/gmodule.h" | |
29745 | #define __GMODULE_H__ | |
29746 | ||
29747 | ||
29748 | ||
29749 | ||
29750 | ||
29751 | ||
29752 | ||
29753 | ||
29754 | #define G_MODULE_IMPORT extern | |
29755 | ||
29756 | ||
29757 | ||
29758 | #define G_MODULE_EXPORT | |
29759 | ||
29760 | ||
29761 | typedef enum | |
29762 | { | |
29763 | G_MODULE_BIND_LAZY = 1 << 0, | |
29764 | G_MODULE_BIND_LOCAL = 1 << 1, | |
29765 | G_MODULE_BIND_MASK = 0x03 | |
29766 | } GModuleFlags; | |
29767 | ||
29768 | typedef struct _GModule GModule; | |
29769 | typedef const gchar* (*GModuleCheckInit) (GModule *module); | |
29770 | typedef void (*GModuleUnload) (GModule *module); | |
29771 | ||
29772 | ||
29773 | ||
29774 | ||
29775 | ||
29776 | ||
29777 | ||
29778 | gboolean g_module_supported (void) __attribute__((__const__)); | |
29779 | ||
29780 | ||
29781 | GModule* g_module_open (const gchar *file_name, | |
29782 | GModuleFlags flags); | |
29783 | ||
29784 | ||
29785 | gboolean g_module_close (GModule *module); | |
29786 | ||
29787 | ||
29788 | void g_module_make_resident (GModule *module); | |
29789 | ||
29790 | ||
29791 | const gchar* g_module_error (void); | |
29792 | ||
29793 | ||
29794 | gboolean g_module_symbol (GModule *module, | |
29795 | const gchar *symbol_name, | |
29796 | gpointer *symbol); | |
29797 | ||
29798 | ||
29799 | const gchar* g_module_name (GModule *module); | |
29800 | # 95 "/usr/include/glib-2.0/gmodule.h" | |
29801 | gchar* g_module_build_path (const gchar *directory, | |
29802 | const gchar *module_name); | |
29803 | ||
29804 | ||
29805 | ||
29806 | # 35 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h" 2 | |
29807 | ||
29808 | ||
29809 | ||
29810 | ||
29811 | ||
29812 | typedef struct _GdkPixbufFormat GdkPixbufFormat; | |
29813 | ||
29814 | GSList *gdk_pixbuf_get_formats (void); | |
29815 | gchar *gdk_pixbuf_format_get_name (GdkPixbufFormat *format); | |
29816 | gchar *gdk_pixbuf_format_get_description (GdkPixbufFormat *format); | |
29817 | gchar **gdk_pixbuf_format_get_mime_types (GdkPixbufFormat *format); | |
29818 | gchar **gdk_pixbuf_format_get_extensions (GdkPixbufFormat *format); | |
29819 | gboolean gdk_pixbuf_format_is_writable (GdkPixbufFormat *format); | |
29820 | gboolean gdk_pixbuf_format_is_scalable (GdkPixbufFormat *format); | |
29821 | gboolean gdk_pixbuf_format_is_disabled (GdkPixbufFormat *format); | |
29822 | void gdk_pixbuf_format_set_disabled (GdkPixbufFormat *format, | |
29823 | gboolean disabled); | |
29824 | gchar *gdk_pixbuf_format_get_license (GdkPixbufFormat *format); | |
29825 | ||
29826 | GdkPixbufFormat *gdk_pixbuf_get_file_info (const gchar *filename, | |
29827 | gint *width, | |
29828 | gint *height); | |
29829 | # 166 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h" | |
29830 | ||
29831 | # 38 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2 | |
29832 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h" 1 | |
29833 | # 27 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h" | |
29834 | #define GDK_PIXBUF_LOADER_H | |
29835 | ||
29836 | ||
29837 | ||
29838 | ||
29839 | ||
29840 | ||
29841 | ||
29842 | ||
29843 | ||
29844 | #define GDK_TYPE_PIXBUF_LOADER (gdk_pixbuf_loader_get_type ()) | |
29845 | #define GDK_PIXBUF_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoader)) | |
29846 | #define GDK_PIXBUF_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass)) | |
29847 | #define GDK_IS_PIXBUF_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_PIXBUF_LOADER)) | |
29848 | #define GDK_IS_PIXBUF_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_LOADER)) | |
29849 | #define GDK_PIXBUF_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass)) | |
29850 | ||
29851 | ||
29852 | typedef struct _GdkPixbufLoader GdkPixbufLoader; | |
29853 | struct _GdkPixbufLoader | |
29854 | { | |
29855 | GObject parent_instance; | |
29856 | ||
29857 | ||
29858 | gpointer priv; | |
29859 | }; | |
29860 | ||
29861 | typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass; | |
29862 | struct _GdkPixbufLoaderClass | |
29863 | { | |
29864 | GObjectClass parent_class; | |
29865 | ||
29866 | void (*size_prepared) (GdkPixbufLoader *loader, | |
29867 | int width, | |
29868 | int height); | |
29869 | ||
29870 | void (*area_prepared) (GdkPixbufLoader *loader); | |
29871 | ||
29872 | ||
29873 | void (*area_updated) (GdkPixbufLoader *loader, | |
29874 | int x, | |
29875 | int y, | |
29876 | int width, | |
29877 | int height); | |
29878 | ||
29879 | void (*closed) (GdkPixbufLoader *loader); | |
29880 | }; | |
29881 | ||
29882 | GType gdk_pixbuf_loader_get_type (void) __attribute__((__const__)); | |
29883 | GdkPixbufLoader * gdk_pixbuf_loader_new (void); | |
29884 | GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type, | |
29885 | GError **error); | |
29886 | GdkPixbufLoader * gdk_pixbuf_loader_new_with_mime_type (const char *mime_type, | |
29887 | GError **error); | |
29888 | void gdk_pixbuf_loader_set_size (GdkPixbufLoader *loader, | |
29889 | int width, | |
29890 | int height); | |
29891 | gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, | |
29892 | const guchar *buf, | |
29893 | gsize count, | |
29894 | GError **error); | |
29895 | GdkPixbuf * gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader); | |
29896 | GdkPixbufAnimation * gdk_pixbuf_loader_get_animation (GdkPixbufLoader *loader); | |
29897 | gboolean gdk_pixbuf_loader_close (GdkPixbufLoader *loader, | |
29898 | GError **error); | |
29899 | GdkPixbufFormat *gdk_pixbuf_loader_get_format (GdkPixbufLoader *loader); | |
29900 | ||
29901 | ||
29902 | # 39 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2 | |
29903 | # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h" 1 | |
29904 | ||
29905 | ||
29906 | ||
29907 | ||
29908 | #define __GDK_PIXBUF_ENUM_TYPES_H__ | |
29909 | ||
29910 | ||
29911 | ||
29912 | ||
29913 | ||
29914 | GType gdk_pixbuf_alpha_mode_get_type (void) __attribute__((__const__)); | |
29915 | #define GDK_TYPE_PIXBUF_ALPHA_MODE (gdk_pixbuf_alpha_mode_get_type()) | |
29916 | GType gdk_colorspace_get_type (void) __attribute__((__const__)); | |
29917 | #define GDK_TYPE_COLORSPACE (gdk_colorspace_get_type()) | |
29918 | GType gdk_pixbuf_error_get_type (void) __attribute__((__const__)); | |
29919 | #define GDK_TYPE_PIXBUF_ERROR (gdk_pixbuf_error_get_type()) | |
29920 | ||
29921 | GType gdk_interp_type_get_type (void) __attribute__((__const__)); | |
29922 | #define GDK_TYPE_INTERP_TYPE (gdk_interp_type_get_type()) | |
29923 | GType gdk_pixbuf_rotation_get_type (void) __attribute__((__const__)); | |
29924 | #define GDK_TYPE_PIXBUF_ROTATION (gdk_pixbuf_rotation_get_type()) | |
29925 | ||
29926 | # 40 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2 | |
29927 | # 34 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h" 2 | |
29928 | ||
29929 | ||
29930 | ||
29931 | ||
29932 | ||
29933 | void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf, | |
29934 | GdkBitmap *bitmap, | |
29935 | int src_x, | |
29936 | int src_y, | |
29937 | int dest_x, | |
29938 | int dest_y, | |
29939 | int width, | |
29940 | int height, | |
29941 | int alpha_threshold); | |
29942 | ||
29943 | void gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf, | |
29944 | GdkDrawable *drawable, | |
29945 | GdkGC *gc, | |
29946 | int src_x, | |
29947 | int src_y, | |
29948 | int dest_x, | |
29949 | int dest_y, | |
29950 | int width, | |
29951 | int height, | |
29952 | GdkRgbDither dither, | |
29953 | int x_dither, | |
29954 | int y_dither); | |
29955 | void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf, | |
29956 | GdkDrawable *drawable, | |
29957 | int src_x, | |
29958 | int src_y, | |
29959 | int dest_x, | |
29960 | int dest_y, | |
29961 | int width, | |
29962 | int height, | |
29963 | GdkPixbufAlphaMode alpha_mode, | |
29964 | int alpha_threshold, | |
29965 | GdkRgbDither dither, | |
29966 | int x_dither, | |
29967 | int y_dither); | |
29968 | ||
29969 | void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf, | |
29970 | GdkColormap *colormap, | |
29971 | GdkPixmap **pixmap_return, | |
29972 | GdkBitmap **mask_return, | |
29973 | int alpha_threshold); | |
29974 | ||
29975 | void gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf *pixbuf, | |
29976 | GdkPixmap **pixmap_return, | |
29977 | GdkBitmap **mask_return, | |
29978 | int alpha_threshold); | |
29979 | ||
29980 | ||
29981 | ||
29982 | ||
29983 | GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest, | |
29984 | GdkDrawable *src, | |
29985 | GdkColormap *cmap, | |
29986 | int src_x, | |
29987 | int src_y, | |
29988 | int dest_x, | |
29989 | int dest_y, | |
29990 | int width, | |
29991 | int height); | |
29992 | ||
29993 | GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest, | |
29994 | GdkImage *src, | |
29995 | GdkColormap *cmap, | |
29996 | int src_x, | |
29997 | int src_y, | |
29998 | int dest_x, | |
29999 | int dest_y, | |
30000 | int width, | |
30001 | int height); | |
30002 | ||
30003 | ||
30004 | # 25 "/usr/include/gtk-2.0/gdk/gdkcairo.h" 2 | |
30005 | # 1 "/usr/include/pango-1.0/pango/pangocairo.h" 1 | |
30006 | # 23 "/usr/include/pango-1.0/pango/pangocairo.h" | |
30007 | #define __PANGOCAIRO_H__ | |
30008 | ||
30009 | ||
30010 | ||
30011 | ||
30012 | ||
30013 | ||
30014 | ||
30015 | # 41 "/usr/include/pango-1.0/pango/pangocairo.h" | |
30016 | #define PANGO_TYPE_CAIRO_FONT_MAP (pango_cairo_font_map_get_type ()) | |
30017 | #define PANGO_CAIRO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT_MAP, PangoCairoFontMap)) | |
30018 | #define PANGO_IS_CAIRO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT_MAP)) | |
30019 | ||
30020 | typedef struct _PangoCairoFontMap PangoCairoFontMap; | |
30021 | ||
30022 | ||
30023 | ||
30024 | ||
30025 | GType pango_cairo_font_map_get_type (void); | |
30026 | ||
30027 | PangoFontMap *pango_cairo_font_map_new (void); | |
30028 | PangoFontMap *pango_cairo_font_map_get_default (void); | |
30029 | ||
30030 | void pango_cairo_font_map_set_resolution (PangoCairoFontMap *fontmap, | |
30031 | double dpi); | |
30032 | double pango_cairo_font_map_get_resolution (PangoCairoFontMap *fontmap); | |
30033 | PangoContext *pango_cairo_font_map_create_context (PangoCairoFontMap *fontmap); | |
30034 | ||
30035 | ||
30036 | ||
30037 | void pango_cairo_update_context (cairo_t *cr, | |
30038 | PangoContext *context); | |
30039 | ||
30040 | void pango_cairo_context_set_font_options (PangoContext *context, | |
30041 | const cairo_font_options_t *options); | |
30042 | const cairo_font_options_t *pango_cairo_context_get_font_options (PangoContext *context); | |
30043 | ||
30044 | void pango_cairo_context_set_resolution (PangoContext *context, | |
30045 | double dpi); | |
30046 | double pango_cairo_context_get_resolution (PangoContext *context); | |
30047 | ||
30048 | ||
30049 | ||
30050 | PangoLayout *pango_cairo_create_layout (cairo_t *cr); | |
30051 | void pango_cairo_update_layout (cairo_t *cr, | |
30052 | PangoLayout *layout); | |
30053 | ||
30054 | ||
30055 | ||
30056 | ||
30057 | void pango_cairo_show_glyph_string (cairo_t *cr, | |
30058 | PangoFont *font, | |
30059 | PangoGlyphString *glyphs); | |
30060 | void pango_cairo_show_layout_line (cairo_t *cr, | |
30061 | PangoLayoutLine *line); | |
30062 | void pango_cairo_show_layout (cairo_t *cr, | |
30063 | PangoLayout *layout); | |
30064 | ||
30065 | ||
30066 | ||
30067 | ||
30068 | void pango_cairo_glyph_string_path (cairo_t *cr, | |
30069 | PangoFont *font, | |
30070 | PangoGlyphString *glyphs); | |
30071 | void pango_cairo_layout_line_path (cairo_t *cr, | |
30072 | PangoLayoutLine *line); | |
30073 | void pango_cairo_layout_path (cairo_t *cr, | |
30074 | PangoLayout *layout); | |
30075 | ||
30076 | ||
30077 | # 26 "/usr/include/gtk-2.0/gdk/gdkcairo.h" 2 | |
30078 | ||
30079 | ||
30080 | ||
30081 | cairo_t *gdk_cairo_create (GdkDrawable *drawable); | |
30082 | ||
30083 | void gdk_cairo_set_source_color (cairo_t *cr, | |
30084 | GdkColor *color); | |
30085 | void gdk_cairo_set_source_pixbuf (cairo_t *cr, | |
30086 | GdkPixbuf *pixbuf, | |
30087 | double pixbuf_x, | |
30088 | double pixbuf_y); | |
30089 | ||
30090 | void gdk_cairo_rectangle (cairo_t *cr, | |
30091 | GdkRectangle *rectangle); | |
30092 | void gdk_cairo_region (cairo_t *cr, | |
30093 | GdkRegion *region); | |
30094 | ||
30095 | ||
30096 | # 31 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
30097 | ||
30098 | # 1 "/usr/include/gtk-2.0/gdk/gdkcursor.h" 1 | |
30099 | # 28 "/usr/include/gtk-2.0/gdk/gdkcursor.h" | |
30100 | #define __GDK_CURSOR_H__ | |
30101 | ||
30102 | ||
30103 | ||
30104 | ||
30105 | ||
30106 | ||
30107 | #define GDK_TYPE_CURSOR (gdk_cursor_get_type ()) | |
30108 | ||
30109 | ||
30110 | ||
30111 | typedef enum | |
30112 | { | |
30113 | GDK_X_CURSOR = 0, | |
30114 | GDK_ARROW = 2, | |
30115 | GDK_BASED_ARROW_DOWN = 4, | |
30116 | GDK_BASED_ARROW_UP = 6, | |
30117 | GDK_BOAT = 8, | |
30118 | GDK_BOGOSITY = 10, | |
30119 | GDK_BOTTOM_LEFT_CORNER = 12, | |
30120 | GDK_BOTTOM_RIGHT_CORNER = 14, | |
30121 | GDK_BOTTOM_SIDE = 16, | |
30122 | GDK_BOTTOM_TEE = 18, | |
30123 | GDK_BOX_SPIRAL = 20, | |
30124 | GDK_CENTER_PTR = 22, | |
30125 | GDK_CIRCLE = 24, | |
30126 | GDK_CLOCK = 26, | |
30127 | GDK_COFFEE_MUG = 28, | |
30128 | GDK_CROSS = 30, | |
30129 | GDK_CROSS_REVERSE = 32, | |
30130 | GDK_CROSSHAIR = 34, | |
30131 | GDK_DIAMOND_CROSS = 36, | |
30132 | GDK_DOT = 38, | |
30133 | GDK_DOTBOX = 40, | |
30134 | GDK_DOUBLE_ARROW = 42, | |
30135 | GDK_DRAFT_LARGE = 44, | |
30136 | GDK_DRAFT_SMALL = 46, | |
30137 | GDK_DRAPED_BOX = 48, | |
30138 | GDK_EXCHANGE = 50, | |
30139 | GDK_FLEUR = 52, | |
30140 | GDK_GOBBLER = 54, | |
30141 | GDK_GUMBY = 56, | |
30142 | GDK_HAND1 = 58, | |
30143 | GDK_HAND2 = 60, | |
30144 | GDK_HEART = 62, | |
30145 | GDK_ICON = 64, | |
30146 | GDK_IRON_CROSS = 66, | |
30147 | GDK_LEFT_PTR = 68, | |
30148 | GDK_LEFT_SIDE = 70, | |
30149 | GDK_LEFT_TEE = 72, | |
30150 | GDK_LEFTBUTTON = 74, | |
30151 | GDK_LL_ANGLE = 76, | |
30152 | GDK_LR_ANGLE = 78, | |
30153 | GDK_MAN = 80, | |
30154 | GDK_MIDDLEBUTTON = 82, | |
30155 | GDK_MOUSE = 84, | |
30156 | GDK_PENCIL = 86, | |
30157 | GDK_PIRATE = 88, | |
30158 | GDK_PLUS = 90, | |
30159 | GDK_QUESTION_ARROW = 92, | |
30160 | GDK_RIGHT_PTR = 94, | |
30161 | GDK_RIGHT_SIDE = 96, | |
30162 | GDK_RIGHT_TEE = 98, | |
30163 | GDK_RIGHTBUTTON = 100, | |
30164 | GDK_RTL_LOGO = 102, | |
30165 | GDK_SAILBOAT = 104, | |
30166 | GDK_SB_DOWN_ARROW = 106, | |
30167 | GDK_SB_H_DOUBLE_ARROW = 108, | |
30168 | GDK_SB_LEFT_ARROW = 110, | |
30169 | GDK_SB_RIGHT_ARROW = 112, | |
30170 | GDK_SB_UP_ARROW = 114, | |
30171 | GDK_SB_V_DOUBLE_ARROW = 116, | |
30172 | GDK_SHUTTLE = 118, | |
30173 | GDK_SIZING = 120, | |
30174 | GDK_SPIDER = 122, | |
30175 | GDK_SPRAYCAN = 124, | |
30176 | GDK_STAR = 126, | |
30177 | GDK_TARGET = 128, | |
30178 | GDK_TCROSS = 130, | |
30179 | GDK_TOP_LEFT_ARROW = 132, | |
30180 | GDK_TOP_LEFT_CORNER = 134, | |
30181 | GDK_TOP_RIGHT_CORNER = 136, | |
30182 | GDK_TOP_SIDE = 138, | |
30183 | GDK_TOP_TEE = 140, | |
30184 | GDK_TREK = 142, | |
30185 | GDK_UL_ANGLE = 144, | |
30186 | GDK_UMBRELLA = 146, | |
30187 | GDK_UR_ANGLE = 148, | |
30188 | GDK_WATCH = 150, | |
30189 | GDK_XTERM = 152, | |
30190 | GDK_LAST_CURSOR, | |
30191 | GDK_CURSOR_IS_PIXMAP = -1 | |
30192 | } GdkCursorType; | |
30193 | ||
30194 | struct _GdkCursor | |
30195 | { | |
30196 | GdkCursorType type; | |
30197 | ||
30198 | guint ref_count; | |
30199 | }; | |
30200 | ||
30201 | ||
30202 | ||
30203 | ||
30204 | GType gdk_cursor_get_type (void) __attribute__((__const__)); | |
30205 | ||
30206 | GdkCursor* gdk_cursor_new_for_display (GdkDisplay *display, | |
30207 | GdkCursorType cursor_type); | |
30208 | ||
30209 | GdkCursor* gdk_cursor_new (GdkCursorType cursor_type); | |
30210 | ||
30211 | GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source, | |
30212 | GdkPixmap *mask, | |
30213 | const GdkColor *fg, | |
30214 | const GdkColor *bg, | |
30215 | gint x, | |
30216 | gint y); | |
30217 | GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display, | |
30218 | GdkPixbuf *pixbuf, | |
30219 | gint x, | |
30220 | gint y); | |
30221 | GdkDisplay* gdk_cursor_get_display (GdkCursor *cursor); | |
30222 | GdkCursor* gdk_cursor_ref (GdkCursor *cursor); | |
30223 | void gdk_cursor_unref (GdkCursor *cursor); | |
30224 | GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display, | |
30225 | const gchar *name); | |
30226 | GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor); | |
30227 | ||
30228 | ||
30229 | #define gdk_cursor_destroy gdk_cursor_unref | |
30230 | ||
30231 | ||
30232 | ||
30233 | # 33 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
30234 | # 1 "/usr/include/gtk-2.0/gdk/gdkdisplay.h" 1 | |
30235 | # 25 "/usr/include/gtk-2.0/gdk/gdkdisplay.h" | |
30236 | #define __GDK_DISPLAY_H__ | |
30237 | ||
30238 | ||
30239 | # 1 "/usr/include/gtk-2.0/gdk/gdkevents.h" 1 | |
30240 | # 28 "/usr/include/gtk-2.0/gdk/gdkevents.h" | |
30241 | #define __GDK_EVENTS_H__ | |
30242 | ||
30243 | ||
30244 | ||
30245 | # 1 "/usr/include/gtk-2.0/gdk/gdkdnd.h" 1 | |
30246 | # 27 "/usr/include/gtk-2.0/gdk/gdkdnd.h" | |
30247 | #define __GDK_DND_H__ | |
30248 | ||
30249 | ||
30250 | ||
30251 | ||
30252 | ||
30253 | typedef struct _GdkDragContext GdkDragContext; | |
30254 | ||
30255 | typedef enum | |
30256 | { | |
30257 | GDK_ACTION_DEFAULT = 1 << 0, | |
30258 | GDK_ACTION_COPY = 1 << 1, | |
30259 | GDK_ACTION_MOVE = 1 << 2, | |
30260 | GDK_ACTION_LINK = 1 << 3, | |
30261 | GDK_ACTION_PRIVATE = 1 << 4, | |
30262 | GDK_ACTION_ASK = 1 << 5 | |
30263 | } GdkDragAction; | |
30264 | ||
30265 | typedef enum | |
30266 | { | |
30267 | GDK_DRAG_PROTO_MOTIF, | |
30268 | GDK_DRAG_PROTO_XDND, | |
30269 | GDK_DRAG_PROTO_ROOTWIN, | |
30270 | ||
30271 | GDK_DRAG_PROTO_NONE, | |
30272 | GDK_DRAG_PROTO_WIN32_DROPFILES, | |
30273 | GDK_DRAG_PROTO_OLE2, | |
30274 | GDK_DRAG_PROTO_LOCAL | |
30275 | } GdkDragProtocol; | |
30276 | ||
30277 | ||
30278 | ||
30279 | ||
30280 | ||
30281 | typedef struct _GdkDragContextClass GdkDragContextClass; | |
30282 | ||
30283 | #define GDK_TYPE_DRAG_CONTEXT (gdk_drag_context_get_type ()) | |
30284 | #define GDK_DRAG_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DRAG_CONTEXT, GdkDragContext)) | |
30285 | #define GDK_DRAG_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DRAG_CONTEXT, GdkDragContextClass)) | |
30286 | #define GDK_IS_DRAG_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DRAG_CONTEXT)) | |
30287 | #define GDK_IS_DRAG_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DRAG_CONTEXT)) | |
30288 | #define GDK_DRAG_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DRAG_CONTEXT, GdkDragContextClass)) | |
30289 | ||
30290 | struct _GdkDragContext { | |
30291 | GObject parent_instance; | |
30292 | ||
30293 | ||
30294 | ||
30295 | GdkDragProtocol protocol; | |
30296 | ||
30297 | gboolean is_source; | |
30298 | ||
30299 | GdkWindow *source_window; | |
30300 | GdkWindow *dest_window; | |
30301 | ||
30302 | GList *targets; | |
30303 | GdkDragAction actions; | |
30304 | GdkDragAction suggested_action; | |
30305 | GdkDragAction action; | |
30306 | ||
30307 | guint32 start_time; | |
30308 | ||
30309 | ||
30310 | ||
30311 | gpointer windowing_data; | |
30312 | }; | |
30313 | ||
30314 | struct _GdkDragContextClass { | |
30315 | GObjectClass parent_class; | |
30316 | ||
30317 | ||
30318 | }; | |
30319 | ||
30320 | ||
30321 | ||
30322 | GType gdk_drag_context_get_type (void) __attribute__((__const__)); | |
30323 | GdkDragContext * gdk_drag_context_new (void); | |
30324 | ||
30325 | ||
30326 | void gdk_drag_context_ref (GdkDragContext *context); | |
30327 | void gdk_drag_context_unref (GdkDragContext *context); | |
30328 | ||
30329 | ||
30330 | ||
30331 | ||
30332 | void gdk_drag_status (GdkDragContext *context, | |
30333 | GdkDragAction action, | |
30334 | guint32 time_); | |
30335 | void gdk_drop_reply (GdkDragContext *context, | |
30336 | gboolean ok, | |
30337 | guint32 time_); | |
30338 | void gdk_drop_finish (GdkDragContext *context, | |
30339 | gboolean success, | |
30340 | guint32 time_); | |
30341 | GdkAtom gdk_drag_get_selection (GdkDragContext *context); | |
30342 | ||
30343 | ||
30344 | ||
30345 | GdkDragContext * gdk_drag_begin (GdkWindow *window, | |
30346 | GList *targets); | |
30347 | ||
30348 | guint32 gdk_drag_get_protocol_for_display (GdkDisplay *display, | |
30349 | guint32 xid, | |
30350 | GdkDragProtocol *protocol); | |
30351 | void gdk_drag_find_window_for_screen (GdkDragContext *context, | |
30352 | GdkWindow *drag_window, | |
30353 | GdkScreen *screen, | |
30354 | gint x_root, | |
30355 | gint y_root, | |
30356 | GdkWindow **dest_window, | |
30357 | GdkDragProtocol *protocol); | |
30358 | ||
30359 | ||
30360 | guint32 gdk_drag_get_protocol (guint32 xid, | |
30361 | GdkDragProtocol *protocol); | |
30362 | void gdk_drag_find_window (GdkDragContext *context, | |
30363 | GdkWindow *drag_window, | |
30364 | gint x_root, | |
30365 | gint y_root, | |
30366 | GdkWindow **dest_window, | |
30367 | GdkDragProtocol *protocol); | |
30368 | ||
30369 | ||
30370 | gboolean gdk_drag_motion (GdkDragContext *context, | |
30371 | GdkWindow *dest_window, | |
30372 | GdkDragProtocol protocol, | |
30373 | gint x_root, | |
30374 | gint y_root, | |
30375 | GdkDragAction suggested_action, | |
30376 | GdkDragAction possible_actions, | |
30377 | guint32 time_); | |
30378 | void gdk_drag_drop (GdkDragContext *context, | |
30379 | guint32 time_); | |
30380 | void gdk_drag_abort (GdkDragContext *context, | |
30381 | guint32 time_); | |
30382 | gboolean gdk_drag_drop_succeeded (GdkDragContext *context); | |
30383 | ||
30384 | ||
30385 | # 33 "/usr/include/gtk-2.0/gdk/gdkevents.h" 2 | |
30386 | # 1 "/usr/include/gtk-2.0/gdk/gdkinput.h" 1 | |
30387 | # 28 "/usr/include/gtk-2.0/gdk/gdkinput.h" | |
30388 | #define __GDK_INPUT_H__ | |
30389 | ||
30390 | ||
30391 | ||
30392 | ||
30393 | ||
30394 | #define GDK_TYPE_DEVICE (gdk_device_get_type ()) | |
30395 | #define GDK_DEVICE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DEVICE, GdkDevice)) | |
30396 | #define GDK_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DEVICE, GdkDeviceClass)) | |
30397 | #define GDK_IS_DEVICE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DEVICE)) | |
30398 | #define GDK_IS_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DEVICE)) | |
30399 | #define GDK_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DEVICE, GdkDeviceClass)) | |
30400 | ||
30401 | typedef struct _GdkDeviceKey GdkDeviceKey; | |
30402 | typedef struct _GdkDeviceAxis GdkDeviceAxis; | |
30403 | typedef struct _GdkDevice GdkDevice; | |
30404 | typedef struct _GdkDeviceClass GdkDeviceClass; | |
30405 | typedef struct _GdkTimeCoord GdkTimeCoord; | |
30406 | ||
30407 | typedef enum | |
30408 | { | |
30409 | GDK_EXTENSION_EVENTS_NONE, | |
30410 | GDK_EXTENSION_EVENTS_ALL, | |
30411 | GDK_EXTENSION_EVENTS_CURSOR | |
30412 | } GdkExtensionMode; | |
30413 | ||
30414 | typedef enum | |
30415 | { | |
30416 | GDK_SOURCE_MOUSE, | |
30417 | GDK_SOURCE_PEN, | |
30418 | GDK_SOURCE_ERASER, | |
30419 | GDK_SOURCE_CURSOR | |
30420 | } GdkInputSource; | |
30421 | ||
30422 | typedef enum | |
30423 | { | |
30424 | GDK_MODE_DISABLED, | |
30425 | GDK_MODE_SCREEN, | |
30426 | GDK_MODE_WINDOW | |
30427 | } GdkInputMode; | |
30428 | ||
30429 | typedef enum | |
30430 | { | |
30431 | GDK_AXIS_IGNORE, | |
30432 | GDK_AXIS_X, | |
30433 | GDK_AXIS_Y, | |
30434 | GDK_AXIS_PRESSURE, | |
30435 | GDK_AXIS_XTILT, | |
30436 | GDK_AXIS_YTILT, | |
30437 | GDK_AXIS_WHEEL, | |
30438 | GDK_AXIS_LAST | |
30439 | } GdkAxisUse; | |
30440 | ||
30441 | struct _GdkDeviceKey | |
30442 | { | |
30443 | guint keyval; | |
30444 | GdkModifierType modifiers; | |
30445 | }; | |
30446 | ||
30447 | struct _GdkDeviceAxis | |
30448 | { | |
30449 | GdkAxisUse use; | |
30450 | gdouble min; | |
30451 | gdouble max; | |
30452 | }; | |
30453 | ||
30454 | struct _GdkDevice | |
30455 | { | |
30456 | GObject parent_instance; | |
30457 | ||
30458 | ||
30459 | gchar *name; | |
30460 | GdkInputSource source; | |
30461 | GdkInputMode mode; | |
30462 | gboolean has_cursor; | |
30463 | ||
30464 | gint num_axes; | |
30465 | GdkDeviceAxis *axes; | |
30466 | ||
30467 | gint num_keys; | |
30468 | GdkDeviceKey *keys; | |
30469 | }; | |
30470 | ||
30471 | ||
30472 | ||
30473 | ||
30474 | #define GDK_MAX_TIMECOORD_AXES 128 | |
30475 | ||
30476 | struct _GdkTimeCoord | |
30477 | { | |
30478 | guint32 time; | |
30479 | gdouble axes[128]; | |
30480 | }; | |
30481 | ||
30482 | GType gdk_device_get_type (void) __attribute__((__const__)); | |
30483 | ||
30484 | ||
30485 | ||
30486 | GList * gdk_devices_list (void); | |
30487 | ||
30488 | ||
30489 | ||
30490 | void gdk_device_set_source (GdkDevice *device, | |
30491 | GdkInputSource source); | |
30492 | ||
30493 | gboolean gdk_device_set_mode (GdkDevice *device, | |
30494 | GdkInputMode mode); | |
30495 | ||
30496 | void gdk_device_set_key (GdkDevice *device, | |
30497 | guint index_, | |
30498 | guint keyval, | |
30499 | GdkModifierType modifiers); | |
30500 | ||
30501 | void gdk_device_set_axis_use (GdkDevice *device, | |
30502 | guint index_, | |
30503 | GdkAxisUse use); | |
30504 | void gdk_device_get_state (GdkDevice *device, | |
30505 | GdkWindow *window, | |
30506 | gdouble *axes, | |
30507 | GdkModifierType *mask); | |
30508 | gboolean gdk_device_get_history (GdkDevice *device, | |
30509 | GdkWindow *window, | |
30510 | guint32 start, | |
30511 | guint32 stop, | |
30512 | GdkTimeCoord ***events, | |
30513 | gint *n_events); | |
30514 | void gdk_device_free_history (GdkTimeCoord **events, | |
30515 | gint n_events); | |
30516 | gboolean gdk_device_get_axis (GdkDevice *device, | |
30517 | gdouble *axes, | |
30518 | GdkAxisUse use, | |
30519 | gdouble *value); | |
30520 | ||
30521 | void gdk_input_set_extension_events (GdkWindow *window, | |
30522 | gint mask, | |
30523 | GdkExtensionMode mode); | |
30524 | ||
30525 | ||
30526 | GdkDevice *gdk_device_get_core_pointer (void); | |
30527 | ||
30528 | ||
30529 | ||
30530 | # 34 "/usr/include/gtk-2.0/gdk/gdkevents.h" 2 | |
30531 | ||
30532 | ||
30533 | ||
30534 | #define GDK_TYPE_EVENT (gdk_event_get_type ()) | |
30535 | ||
30536 | #define GDK_PRIORITY_EVENTS (G_PRIORITY_DEFAULT) | |
30537 | #define GDK_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20) | |
30538 | ||
30539 | ||
30540 | typedef struct _GdkEventAny GdkEventAny; | |
30541 | typedef struct _GdkEventExpose GdkEventExpose; | |
30542 | typedef struct _GdkEventNoExpose GdkEventNoExpose; | |
30543 | typedef struct _GdkEventVisibility GdkEventVisibility; | |
30544 | typedef struct _GdkEventMotion GdkEventMotion; | |
30545 | typedef struct _GdkEventButton GdkEventButton; | |
30546 | typedef struct _GdkEventScroll GdkEventScroll; | |
30547 | typedef struct _GdkEventKey GdkEventKey; | |
30548 | typedef struct _GdkEventFocus GdkEventFocus; | |
30549 | typedef struct _GdkEventCrossing GdkEventCrossing; | |
30550 | typedef struct _GdkEventConfigure GdkEventConfigure; | |
30551 | typedef struct _GdkEventProperty GdkEventProperty; | |
30552 | typedef struct _GdkEventSelection GdkEventSelection; | |
30553 | typedef struct _GdkEventOwnerChange GdkEventOwnerChange; | |
30554 | typedef struct _GdkEventProximity GdkEventProximity; | |
30555 | typedef struct _GdkEventClient GdkEventClient; | |
30556 | typedef struct _GdkEventDND GdkEventDND; | |
30557 | typedef struct _GdkEventWindowState GdkEventWindowState; | |
30558 | typedef struct _GdkEventSetting GdkEventSetting; | |
30559 | typedef struct _GdkEventGrabBroken GdkEventGrabBroken; | |
30560 | ||
30561 | typedef union _GdkEvent GdkEvent; | |
30562 | ||
30563 | typedef void (*GdkEventFunc) (GdkEvent *event, | |
30564 | gpointer data); | |
30565 | ||
30566 | ||
30567 | ||
30568 | typedef void GdkXEvent; | |
30569 | ||
30570 | ||
30571 | ||
30572 | typedef enum { | |
30573 | GDK_FILTER_CONTINUE, | |
30574 | GDK_FILTER_TRANSLATE, | |
30575 | ||
30576 | ||
30577 | GDK_FILTER_REMOVE | |
30578 | } GdkFilterReturn; | |
30579 | ||
30580 | typedef GdkFilterReturn (*GdkFilterFunc) (GdkXEvent *xevent, | |
30581 | GdkEvent *event, | |
30582 | gpointer data); | |
30583 | # 111 "/usr/include/gtk-2.0/gdk/gdkevents.h" | |
30584 | typedef enum | |
30585 | { | |
30586 | GDK_NOTHING = -1, | |
30587 | GDK_DELETE = 0, | |
30588 | GDK_DESTROY = 1, | |
30589 | GDK_EXPOSE = 2, | |
30590 | GDK_MOTION_NOTIFY = 3, | |
30591 | GDK_BUTTON_PRESS = 4, | |
30592 | GDK_2BUTTON_PRESS = 5, | |
30593 | GDK_3BUTTON_PRESS = 6, | |
30594 | GDK_BUTTON_RELEASE = 7, | |
30595 | GDK_KEY_PRESS = 8, | |
30596 | GDK_KEY_RELEASE = 9, | |
30597 | GDK_ENTER_NOTIFY = 10, | |
30598 | GDK_LEAVE_NOTIFY = 11, | |
30599 | GDK_FOCUS_CHANGE = 12, | |
30600 | GDK_CONFIGURE = 13, | |
30601 | GDK_MAP = 14, | |
30602 | GDK_UNMAP = 15, | |
30603 | GDK_PROPERTY_NOTIFY = 16, | |
30604 | GDK_SELECTION_CLEAR = 17, | |
30605 | GDK_SELECTION_REQUEST = 18, | |
30606 | GDK_SELECTION_NOTIFY = 19, | |
30607 | GDK_PROXIMITY_IN = 20, | |
30608 | GDK_PROXIMITY_OUT = 21, | |
30609 | GDK_DRAG_ENTER = 22, | |
30610 | GDK_DRAG_LEAVE = 23, | |
30611 | GDK_DRAG_MOTION = 24, | |
30612 | GDK_DRAG_STATUS = 25, | |
30613 | GDK_DROP_START = 26, | |
30614 | GDK_DROP_FINISHED = 27, | |
30615 | GDK_CLIENT_EVENT = 28, | |
30616 | GDK_VISIBILITY_NOTIFY = 29, | |
30617 | GDK_NO_EXPOSE = 30, | |
30618 | GDK_SCROLL = 31, | |
30619 | GDK_WINDOW_STATE = 32, | |
30620 | GDK_SETTING = 33, | |
30621 | GDK_OWNER_CHANGE = 34, | |
30622 | GDK_GRAB_BROKEN = 35 | |
30623 | } GdkEventType; | |
30624 | ||
30625 | ||
30626 | ||
30627 | ||
30628 | typedef enum | |
30629 | { | |
30630 | GDK_EXPOSURE_MASK = 1 << 1, | |
30631 | GDK_POINTER_MOTION_MASK = 1 << 2, | |
30632 | GDK_POINTER_MOTION_HINT_MASK = 1 << 3, | |
30633 | GDK_BUTTON_MOTION_MASK = 1 << 4, | |
30634 | GDK_BUTTON1_MOTION_MASK = 1 << 5, | |
30635 | GDK_BUTTON2_MOTION_MASK = 1 << 6, | |
30636 | GDK_BUTTON3_MOTION_MASK = 1 << 7, | |
30637 | GDK_BUTTON_PRESS_MASK = 1 << 8, | |
30638 | GDK_BUTTON_RELEASE_MASK = 1 << 9, | |
30639 | GDK_KEY_PRESS_MASK = 1 << 10, | |
30640 | GDK_KEY_RELEASE_MASK = 1 << 11, | |
30641 | GDK_ENTER_NOTIFY_MASK = 1 << 12, | |
30642 | GDK_LEAVE_NOTIFY_MASK = 1 << 13, | |
30643 | GDK_FOCUS_CHANGE_MASK = 1 << 14, | |
30644 | GDK_STRUCTURE_MASK = 1 << 15, | |
30645 | GDK_PROPERTY_CHANGE_MASK = 1 << 16, | |
30646 | GDK_VISIBILITY_NOTIFY_MASK = 1 << 17, | |
30647 | GDK_PROXIMITY_IN_MASK = 1 << 18, | |
30648 | GDK_PROXIMITY_OUT_MASK = 1 << 19, | |
30649 | GDK_SUBSTRUCTURE_MASK = 1 << 20, | |
30650 | GDK_SCROLL_MASK = 1 << 21, | |
30651 | GDK_ALL_EVENTS_MASK = 0x3FFFFE | |
30652 | } GdkEventMask; | |
30653 | ||
30654 | typedef enum | |
30655 | { | |
30656 | GDK_VISIBILITY_UNOBSCURED, | |
30657 | GDK_VISIBILITY_PARTIAL, | |
30658 | GDK_VISIBILITY_FULLY_OBSCURED | |
30659 | } GdkVisibilityState; | |
30660 | ||
30661 | typedef enum | |
30662 | { | |
30663 | GDK_SCROLL_UP, | |
30664 | GDK_SCROLL_DOWN, | |
30665 | GDK_SCROLL_LEFT, | |
30666 | GDK_SCROLL_RIGHT | |
30667 | } GdkScrollDirection; | |
30668 | # 204 "/usr/include/gtk-2.0/gdk/gdkevents.h" | |
30669 | typedef enum | |
30670 | { | |
30671 | GDK_NOTIFY_ANCESTOR = 0, | |
30672 | GDK_NOTIFY_VIRTUAL = 1, | |
30673 | GDK_NOTIFY_INFERIOR = 2, | |
30674 | GDK_NOTIFY_NONLINEAR = 3, | |
30675 | GDK_NOTIFY_NONLINEAR_VIRTUAL = 4, | |
30676 | GDK_NOTIFY_UNKNOWN = 5 | |
30677 | } GdkNotifyType; | |
30678 | ||
30679 | ||
30680 | ||
30681 | ||
30682 | ||
30683 | ||
30684 | typedef enum | |
30685 | { | |
30686 | GDK_CROSSING_NORMAL, | |
30687 | GDK_CROSSING_GRAB, | |
30688 | GDK_CROSSING_UNGRAB | |
30689 | } GdkCrossingMode; | |
30690 | ||
30691 | typedef enum | |
30692 | { | |
30693 | GDK_PROPERTY_NEW_VALUE, | |
30694 | GDK_PROPERTY_DELETE | |
30695 | } GdkPropertyState; | |
30696 | ||
30697 | typedef enum | |
30698 | { | |
30699 | GDK_WINDOW_STATE_WITHDRAWN = 1 << 0, | |
30700 | GDK_WINDOW_STATE_ICONIFIED = 1 << 1, | |
30701 | GDK_WINDOW_STATE_MAXIMIZED = 1 << 2, | |
30702 | GDK_WINDOW_STATE_STICKY = 1 << 3, | |
30703 | GDK_WINDOW_STATE_FULLSCREEN = 1 << 4, | |
30704 | GDK_WINDOW_STATE_ABOVE = 1 << 5, | |
30705 | GDK_WINDOW_STATE_BELOW = 1 << 6 | |
30706 | } GdkWindowState; | |
30707 | ||
30708 | typedef enum | |
30709 | { | |
30710 | GDK_SETTING_ACTION_NEW, | |
30711 | GDK_SETTING_ACTION_CHANGED, | |
30712 | GDK_SETTING_ACTION_DELETED | |
30713 | } GdkSettingAction; | |
30714 | ||
30715 | typedef enum | |
30716 | { | |
30717 | GDK_OWNER_CHANGE_NEW_OWNER, | |
30718 | GDK_OWNER_CHANGE_DESTROY, | |
30719 | GDK_OWNER_CHANGE_CLOSE | |
30720 | } GdkOwnerChange; | |
30721 | ||
30722 | struct _GdkEventAny | |
30723 | { | |
30724 | GdkEventType type; | |
30725 | GdkWindow *window; | |
30726 | gint8 send_event; | |
30727 | }; | |
30728 | ||
30729 | struct _GdkEventExpose | |
30730 | { | |
30731 | GdkEventType type; | |
30732 | GdkWindow *window; | |
30733 | gint8 send_event; | |
30734 | GdkRectangle area; | |
30735 | GdkRegion *region; | |
30736 | gint count; | |
30737 | }; | |
30738 | ||
30739 | struct _GdkEventNoExpose | |
30740 | { | |
30741 | GdkEventType type; | |
30742 | GdkWindow *window; | |
30743 | gint8 send_event; | |
30744 | }; | |
30745 | ||
30746 | struct _GdkEventVisibility | |
30747 | { | |
30748 | GdkEventType type; | |
30749 | GdkWindow *window; | |
30750 | gint8 send_event; | |
30751 | GdkVisibilityState state; | |
30752 | }; | |
30753 | ||
30754 | struct _GdkEventMotion | |
30755 | { | |
30756 | GdkEventType type; | |
30757 | GdkWindow *window; | |
30758 | gint8 send_event; | |
30759 | guint32 time; | |
30760 | gdouble x; | |
30761 | gdouble y; | |
30762 | gdouble *axes; | |
30763 | guint state; | |
30764 | gint16 is_hint; | |
30765 | GdkDevice *device; | |
30766 | gdouble x_root, y_root; | |
30767 | }; | |
30768 | ||
30769 | struct _GdkEventButton | |
30770 | { | |
30771 | GdkEventType type; | |
30772 | GdkWindow *window; | |
30773 | gint8 send_event; | |
30774 | guint32 time; | |
30775 | gdouble x; | |
30776 | gdouble y; | |
30777 | gdouble *axes; | |
30778 | guint state; | |
30779 | guint button; | |
30780 | GdkDevice *device; | |
30781 | gdouble x_root, y_root; | |
30782 | }; | |
30783 | ||
30784 | struct _GdkEventScroll | |
30785 | { | |
30786 | GdkEventType type; | |
30787 | GdkWindow *window; | |
30788 | gint8 send_event; | |
30789 | guint32 time; | |
30790 | gdouble x; | |
30791 | gdouble y; | |
30792 | guint state; | |
30793 | GdkScrollDirection direction; | |
30794 | GdkDevice *device; | |
30795 | gdouble x_root, y_root; | |
30796 | }; | |
30797 | ||
30798 | struct _GdkEventKey | |
30799 | { | |
30800 | GdkEventType type; | |
30801 | GdkWindow *window; | |
30802 | gint8 send_event; | |
30803 | guint32 time; | |
30804 | guint state; | |
30805 | guint keyval; | |
30806 | gint length; | |
30807 | gchar *string; | |
30808 | guint16 hardware_keycode; | |
30809 | guint8 group; | |
30810 | }; | |
30811 | ||
30812 | struct _GdkEventCrossing | |
30813 | { | |
30814 | GdkEventType type; | |
30815 | GdkWindow *window; | |
30816 | gint8 send_event; | |
30817 | GdkWindow *subwindow; | |
30818 | guint32 time; | |
30819 | gdouble x; | |
30820 | gdouble y; | |
30821 | gdouble x_root; | |
30822 | gdouble y_root; | |
30823 | GdkCrossingMode mode; | |
30824 | GdkNotifyType detail; | |
30825 | gboolean focus; | |
30826 | guint state; | |
30827 | }; | |
30828 | ||
30829 | struct _GdkEventFocus | |
30830 | { | |
30831 | GdkEventType type; | |
30832 | GdkWindow *window; | |
30833 | gint8 send_event; | |
30834 | gint16 in; | |
30835 | }; | |
30836 | ||
30837 | struct _GdkEventConfigure | |
30838 | { | |
30839 | GdkEventType type; | |
30840 | GdkWindow *window; | |
30841 | gint8 send_event; | |
30842 | gint x, y; | |
30843 | gint width; | |
30844 | gint height; | |
30845 | }; | |
30846 | ||
30847 | struct _GdkEventProperty | |
30848 | { | |
30849 | GdkEventType type; | |
30850 | GdkWindow *window; | |
30851 | gint8 send_event; | |
30852 | GdkAtom atom; | |
30853 | guint32 time; | |
30854 | guint state; | |
30855 | }; | |
30856 | ||
30857 | struct _GdkEventSelection | |
30858 | { | |
30859 | GdkEventType type; | |
30860 | GdkWindow *window; | |
30861 | gint8 send_event; | |
30862 | GdkAtom selection; | |
30863 | GdkAtom target; | |
30864 | GdkAtom property; | |
30865 | guint32 time; | |
30866 | GdkNativeWindow requestor; | |
30867 | }; | |
30868 | ||
30869 | struct _GdkEventOwnerChange | |
30870 | { | |
30871 | GdkEventType type; | |
30872 | GdkWindow *window; | |
30873 | gint8 send_event; | |
30874 | GdkNativeWindow owner; | |
30875 | GdkOwnerChange reason; | |
30876 | GdkAtom selection; | |
30877 | guint32 time; | |
30878 | guint32 selection_time; | |
30879 | }; | |
30880 | ||
30881 | ||
30882 | ||
30883 | ||
30884 | struct _GdkEventProximity | |
30885 | { | |
30886 | GdkEventType type; | |
30887 | GdkWindow *window; | |
30888 | gint8 send_event; | |
30889 | guint32 time; | |
30890 | GdkDevice *device; | |
30891 | }; | |
30892 | ||
30893 | struct _GdkEventClient | |
30894 | { | |
30895 | GdkEventType type; | |
30896 | GdkWindow *window; | |
30897 | gint8 send_event; | |
30898 | GdkAtom message_type; | |
30899 | gushort data_format; | |
30900 | union { | |
30901 | char b[20]; | |
30902 | short s[10]; | |
30903 | long l[5]; | |
30904 | } data; | |
30905 | }; | |
30906 | ||
30907 | struct _GdkEventSetting | |
30908 | { | |
30909 | GdkEventType type; | |
30910 | GdkWindow *window; | |
30911 | gint8 send_event; | |
30912 | GdkSettingAction action; | |
30913 | char *name; | |
30914 | }; | |
30915 | ||
30916 | struct _GdkEventWindowState | |
30917 | { | |
30918 | GdkEventType type; | |
30919 | GdkWindow *window; | |
30920 | gint8 send_event; | |
30921 | GdkWindowState changed_mask; | |
30922 | GdkWindowState new_window_state; | |
30923 | }; | |
30924 | ||
30925 | struct _GdkEventGrabBroken { | |
30926 | GdkEventType type; | |
30927 | GdkWindow *window; | |
30928 | gint8 send_event; | |
30929 | gboolean keyboard; | |
30930 | gboolean implicit; | |
30931 | GdkWindow *grab_window; | |
30932 | }; | |
30933 | ||
30934 | ||
30935 | ||
30936 | struct _GdkEventDND { | |
30937 | GdkEventType type; | |
30938 | GdkWindow *window; | |
30939 | gint8 send_event; | |
30940 | GdkDragContext *context; | |
30941 | ||
30942 | guint32 time; | |
30943 | gshort x_root, y_root; | |
30944 | }; | |
30945 | ||
30946 | union _GdkEvent | |
30947 | { | |
30948 | GdkEventType type; | |
30949 | GdkEventAny any; | |
30950 | GdkEventExpose expose; | |
30951 | GdkEventNoExpose no_expose; | |
30952 | GdkEventVisibility visibility; | |
30953 | GdkEventMotion motion; | |
30954 | GdkEventButton button; | |
30955 | GdkEventScroll scroll; | |
30956 | GdkEventKey key; | |
30957 | GdkEventCrossing crossing; | |
30958 | GdkEventFocus focus_change; | |
30959 | GdkEventConfigure configure; | |
30960 | GdkEventProperty property; | |
30961 | GdkEventSelection selection; | |
30962 | GdkEventOwnerChange owner_change; | |
30963 | GdkEventProximity proximity; | |
30964 | GdkEventClient client; | |
30965 | GdkEventDND dnd; | |
30966 | GdkEventWindowState window_state; | |
30967 | GdkEventSetting setting; | |
30968 | GdkEventGrabBroken grab_broken; | |
30969 | }; | |
30970 | ||
30971 | GType gdk_event_get_type (void) __attribute__((__const__)); | |
30972 | ||
30973 | gboolean gdk_events_pending (void); | |
30974 | GdkEvent* gdk_event_get (void); | |
30975 | ||
30976 | GdkEvent* gdk_event_peek (void); | |
30977 | GdkEvent* gdk_event_get_graphics_expose (GdkWindow *window); | |
30978 | void gdk_event_put (GdkEvent *event); | |
30979 | ||
30980 | GdkEvent* gdk_event_new (GdkEventType type); | |
30981 | GdkEvent* gdk_event_copy (GdkEvent *event); | |
30982 | void gdk_event_free (GdkEvent *event); | |
30983 | ||
30984 | guint32 gdk_event_get_time (GdkEvent *event); | |
30985 | gboolean gdk_event_get_state (GdkEvent *event, | |
30986 | GdkModifierType *state); | |
30987 | gboolean gdk_event_get_coords (GdkEvent *event, | |
30988 | gdouble *x_win, | |
30989 | gdouble *y_win); | |
30990 | gboolean gdk_event_get_root_coords (GdkEvent *event, | |
30991 | gdouble *x_root, | |
30992 | gdouble *y_root); | |
30993 | gboolean gdk_event_get_axis (GdkEvent *event, | |
30994 | GdkAxisUse axis_use, | |
30995 | gdouble *value); | |
30996 | void gdk_event_handler_set (GdkEventFunc func, | |
30997 | gpointer data, | |
30998 | GDestroyNotify notify); | |
30999 | ||
31000 | void gdk_event_set_screen (GdkEvent *event, | |
31001 | GdkScreen *screen); | |
31002 | GdkScreen *gdk_event_get_screen (GdkEvent *event); | |
31003 | ||
31004 | void gdk_set_show_events (gboolean show_events); | |
31005 | gboolean gdk_get_show_events (void); | |
31006 | ||
31007 | ||
31008 | void gdk_add_client_message_filter (GdkAtom message_type, | |
31009 | GdkFilterFunc func, | |
31010 | gpointer data); | |
31011 | ||
31012 | gboolean gdk_setting_get (const gchar *name, | |
31013 | GValue *value); | |
31014 | ||
31015 | ||
31016 | ||
31017 | # 29 "/usr/include/gtk-2.0/gdk/gdkdisplay.h" 2 | |
31018 | ||
31019 | ||
31020 | ||
31021 | ||
31022 | typedef struct _GdkDisplayClass GdkDisplayClass; | |
31023 | typedef struct _GdkDisplayPointerHooks GdkDisplayPointerHooks; | |
31024 | ||
31025 | #define GDK_TYPE_DISPLAY (gdk_display_get_type ()) | |
31026 | #define GDK_DISPLAY_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DISPLAY, GdkDisplay)) | |
31027 | #define GDK_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DISPLAY, GdkDisplayClass)) | |
31028 | #define GDK_IS_DISPLAY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DISPLAY)) | |
31029 | #define GDK_IS_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DISPLAY)) | |
31030 | #define GDK_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DISPLAY, GdkDisplayClass)) | |
31031 | ||
31032 | struct _GdkDisplay | |
31033 | { | |
31034 | GObject parent_instance; | |
31035 | ||
31036 | ||
31037 | GList *queued_events; | |
31038 | GList *queued_tail; | |
31039 | ||
31040 | ||
31041 | ||
31042 | ||
31043 | guint32 button_click_time[2]; | |
31044 | GdkWindow *button_window[2]; | |
31045 | gint button_number[2]; | |
31046 | ||
31047 | guint double_click_time; | |
31048 | GdkDevice *core_pointer; | |
31049 | ||
31050 | const GdkDisplayPointerHooks *pointer_hooks; | |
31051 | ||
31052 | guint closed : 1; | |
31053 | ||
31054 | guint double_click_distance; | |
31055 | gint button_x[2]; | |
31056 | gint button_y[2]; | |
31057 | }; | |
31058 | ||
31059 | struct _GdkDisplayClass | |
31060 | { | |
31061 | GObjectClass parent_class; | |
31062 | ||
31063 | const gchar * (*get_display_name) (GdkDisplay *display); | |
31064 | gint (*get_n_screens) (GdkDisplay *display); | |
31065 | GdkScreen * (*get_screen) (GdkDisplay *display, | |
31066 | gint screen_num); | |
31067 | GdkScreen * (*get_default_screen) (GdkDisplay *display); | |
31068 | ||
31069 | ||
31070 | ||
31071 | void (*closed) (GdkDisplay *display, | |
31072 | gboolean is_error); | |
31073 | }; | |
31074 | ||
31075 | struct _GdkDisplayPointerHooks | |
31076 | { | |
31077 | void (*get_pointer) (GdkDisplay *display, | |
31078 | GdkScreen **screen, | |
31079 | gint *x, | |
31080 | gint *y, | |
31081 | GdkModifierType *mask); | |
31082 | GdkWindow* (*window_get_pointer) (GdkDisplay *display, | |
31083 | GdkWindow *window, | |
31084 | gint *x, | |
31085 | gint *y, | |
31086 | GdkModifierType *mask); | |
31087 | GdkWindow* (*window_at_pointer) (GdkDisplay *display, | |
31088 | gint *win_x, | |
31089 | gint *win_y); | |
31090 | }; | |
31091 | ||
31092 | GType gdk_display_get_type (void) __attribute__((__const__)); | |
31093 | GdkDisplay *gdk_display_open (const gchar *display_name); | |
31094 | ||
31095 | const gchar * gdk_display_get_name (GdkDisplay *display); | |
31096 | ||
31097 | gint gdk_display_get_n_screens (GdkDisplay *display); | |
31098 | GdkScreen * gdk_display_get_screen (GdkDisplay *display, | |
31099 | gint screen_num); | |
31100 | GdkScreen * gdk_display_get_default_screen (GdkDisplay *display); | |
31101 | void gdk_display_pointer_ungrab (GdkDisplay *display, | |
31102 | guint32 time_); | |
31103 | void gdk_display_keyboard_ungrab (GdkDisplay *display, | |
31104 | guint32 time_); | |
31105 | gboolean gdk_display_pointer_is_grabbed (GdkDisplay *display); | |
31106 | void gdk_display_beep (GdkDisplay *display); | |
31107 | void gdk_display_sync (GdkDisplay *display); | |
31108 | void gdk_display_flush (GdkDisplay *display); | |
31109 | ||
31110 | void gdk_display_close (GdkDisplay *display); | |
31111 | ||
31112 | GList * gdk_display_list_devices (GdkDisplay *display); | |
31113 | ||
31114 | GdkEvent* gdk_display_get_event (GdkDisplay *display); | |
31115 | GdkEvent* gdk_display_peek_event (GdkDisplay *display); | |
31116 | void gdk_display_put_event (GdkDisplay *display, | |
31117 | GdkEvent *event); | |
31118 | ||
31119 | void gdk_display_add_client_message_filter (GdkDisplay *display, | |
31120 | GdkAtom message_type, | |
31121 | GdkFilterFunc func, | |
31122 | gpointer data); | |
31123 | ||
31124 | void gdk_display_set_double_click_time (GdkDisplay *display, | |
31125 | guint msec); | |
31126 | void gdk_display_set_double_click_distance (GdkDisplay *display, | |
31127 | guint distance); | |
31128 | ||
31129 | GdkDisplay *gdk_display_get_default (void); | |
31130 | ||
31131 | GdkDevice *gdk_display_get_core_pointer (GdkDisplay *display); | |
31132 | ||
31133 | void gdk_display_get_pointer (GdkDisplay *display, | |
31134 | GdkScreen **screen, | |
31135 | gint *x, | |
31136 | gint *y, | |
31137 | GdkModifierType *mask); | |
31138 | GdkWindow * gdk_display_get_window_at_pointer (GdkDisplay *display, | |
31139 | gint *win_x, | |
31140 | gint *win_y); | |
31141 | void gdk_display_warp_pointer (GdkDisplay *display, | |
31142 | GdkScreen *screen, | |
31143 | gint x, | |
31144 | gint y); | |
31145 | ||
31146 | GdkDisplayPointerHooks *gdk_display_set_pointer_hooks (GdkDisplay *display, | |
31147 | const GdkDisplayPointerHooks *new_hooks); | |
31148 | ||
31149 | GdkDisplay *gdk_display_open_default_libgtk_only (void); | |
31150 | ||
31151 | gboolean gdk_display_supports_cursor_alpha (GdkDisplay *display); | |
31152 | gboolean gdk_display_supports_cursor_color (GdkDisplay *display); | |
31153 | guint gdk_display_get_default_cursor_size (GdkDisplay *display); | |
31154 | void gdk_display_get_maximal_cursor_size (GdkDisplay *display, | |
31155 | guint *width, | |
31156 | guint *height); | |
31157 | ||
31158 | GdkWindow *gdk_display_get_default_group (GdkDisplay *display); | |
31159 | ||
31160 | gboolean gdk_display_supports_selection_notification (GdkDisplay *display); | |
31161 | gboolean gdk_display_request_selection_notification (GdkDisplay *display, | |
31162 | GdkAtom selection); | |
31163 | ||
31164 | gboolean gdk_display_supports_clipboard_persistence (GdkDisplay *display); | |
31165 | void gdk_display_store_clipboard (GdkDisplay *display, | |
31166 | GdkWindow *clipboard_window, | |
31167 | guint32 time_, | |
31168 | GdkAtom *targets, | |
31169 | gint n_targets); | |
31170 | ||
31171 | ||
31172 | # 34 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
31173 | ||
31174 | # 1 "/usr/include/gtk-2.0/gdk/gdkdrawable.h" 1 | |
31175 | # 27 "/usr/include/gtk-2.0/gdk/gdkdrawable.h" | |
31176 | #define __GDK_DRAWABLE_H__ | |
31177 | ||
31178 | ||
31179 | # 1 "/usr/include/gtk-2.0/gdk/gdkgc.h" 1 | |
31180 | # 28 "/usr/include/gtk-2.0/gdk/gdkgc.h" | |
31181 | #define __GDK_GC_H__ | |
31182 | ||
31183 | ||
31184 | ||
31185 | ||
31186 | ||
31187 | ||
31188 | typedef struct _GdkGCValues GdkGCValues; | |
31189 | typedef struct _GdkGCClass GdkGCClass; | |
31190 | ||
31191 | ||
31192 | ||
31193 | ||
31194 | ||
31195 | ||
31196 | ||
31197 | typedef enum | |
31198 | { | |
31199 | GDK_CAP_NOT_LAST, | |
31200 | GDK_CAP_BUTT, | |
31201 | GDK_CAP_ROUND, | |
31202 | GDK_CAP_PROJECTING | |
31203 | } GdkCapStyle; | |
31204 | ||
31205 | ||
31206 | ||
31207 | ||
31208 | ||
31209 | ||
31210 | ||
31211 | typedef enum | |
31212 | { | |
31213 | GDK_SOLID, | |
31214 | GDK_TILED, | |
31215 | GDK_STIPPLED, | |
31216 | GDK_OPAQUE_STIPPLED | |
31217 | } GdkFill; | |
31218 | # 84 "/usr/include/gtk-2.0/gdk/gdkgc.h" | |
31219 | typedef enum | |
31220 | { | |
31221 | GDK_COPY, | |
31222 | GDK_INVERT, | |
31223 | GDK_XOR, | |
31224 | GDK_CLEAR, | |
31225 | GDK_AND, | |
31226 | GDK_AND_REVERSE, | |
31227 | GDK_AND_INVERT, | |
31228 | GDK_NOOP, | |
31229 | GDK_OR, | |
31230 | GDK_EQUIV, | |
31231 | GDK_OR_REVERSE, | |
31232 | GDK_COPY_INVERT, | |
31233 | GDK_OR_INVERT, | |
31234 | GDK_NAND, | |
31235 | GDK_NOR, | |
31236 | GDK_SET | |
31237 | } GdkFunction; | |
31238 | ||
31239 | ||
31240 | ||
31241 | ||
31242 | ||
31243 | ||
31244 | typedef enum | |
31245 | { | |
31246 | GDK_JOIN_MITER, | |
31247 | GDK_JOIN_ROUND, | |
31248 | GDK_JOIN_BEVEL | |
31249 | } GdkJoinStyle; | |
31250 | ||
31251 | ||
31252 | ||
31253 | ||
31254 | ||
31255 | ||
31256 | typedef enum | |
31257 | { | |
31258 | GDK_LINE_SOLID, | |
31259 | GDK_LINE_ON_OFF_DASH, | |
31260 | GDK_LINE_DOUBLE_DASH | |
31261 | } GdkLineStyle; | |
31262 | ||
31263 | typedef enum | |
31264 | { | |
31265 | GDK_CLIP_BY_CHILDREN = 0, | |
31266 | GDK_INCLUDE_INFERIORS = 1 | |
31267 | } GdkSubwindowMode; | |
31268 | ||
31269 | typedef enum | |
31270 | { | |
31271 | GDK_GC_FOREGROUND = 1 << 0, | |
31272 | GDK_GC_BACKGROUND = 1 << 1, | |
31273 | GDK_GC_FONT = 1 << 2, | |
31274 | GDK_GC_FUNCTION = 1 << 3, | |
31275 | GDK_GC_FILL = 1 << 4, | |
31276 | GDK_GC_TILE = 1 << 5, | |
31277 | GDK_GC_STIPPLE = 1 << 6, | |
31278 | GDK_GC_CLIP_MASK = 1 << 7, | |
31279 | GDK_GC_SUBWINDOW = 1 << 8, | |
31280 | GDK_GC_TS_X_ORIGIN = 1 << 9, | |
31281 | GDK_GC_TS_Y_ORIGIN = 1 << 10, | |
31282 | GDK_GC_CLIP_X_ORIGIN = 1 << 11, | |
31283 | GDK_GC_CLIP_Y_ORIGIN = 1 << 12, | |
31284 | GDK_GC_EXPOSURES = 1 << 13, | |
31285 | GDK_GC_LINE_WIDTH = 1 << 14, | |
31286 | GDK_GC_LINE_STYLE = 1 << 15, | |
31287 | GDK_GC_CAP_STYLE = 1 << 16, | |
31288 | GDK_GC_JOIN_STYLE = 1 << 17 | |
31289 | } GdkGCValuesMask; | |
31290 | ||
31291 | struct _GdkGCValues | |
31292 | { | |
31293 | GdkColor foreground; | |
31294 | GdkColor background; | |
31295 | GdkFont *font; | |
31296 | GdkFunction function; | |
31297 | GdkFill fill; | |
31298 | GdkPixmap *tile; | |
31299 | GdkPixmap *stipple; | |
31300 | GdkPixmap *clip_mask; | |
31301 | GdkSubwindowMode subwindow_mode; | |
31302 | gint ts_x_origin; | |
31303 | gint ts_y_origin; | |
31304 | gint clip_x_origin; | |
31305 | gint clip_y_origin; | |
31306 | gint graphics_exposures; | |
31307 | gint line_width; | |
31308 | GdkLineStyle line_style; | |
31309 | GdkCapStyle cap_style; | |
31310 | GdkJoinStyle join_style; | |
31311 | }; | |
31312 | ||
31313 | #define GDK_TYPE_GC (gdk_gc_get_type ()) | |
31314 | #define GDK_GC(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_GC, GdkGC)) | |
31315 | #define GDK_GC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_GC, GdkGCClass)) | |
31316 | #define GDK_IS_GC(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_GC)) | |
31317 | #define GDK_IS_GC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_GC)) | |
31318 | #define GDK_GC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_GC, GdkGCClass)) | |
31319 | ||
31320 | struct _GdkGC | |
31321 | { | |
31322 | GObject parent_instance; | |
31323 | ||
31324 | gint clip_x_origin; | |
31325 | gint clip_y_origin; | |
31326 | gint ts_x_origin; | |
31327 | gint ts_y_origin; | |
31328 | ||
31329 | GdkColormap *colormap; | |
31330 | }; | |
31331 | ||
31332 | struct _GdkGCClass | |
31333 | { | |
31334 | GObjectClass parent_class; | |
31335 | ||
31336 | void (*get_values) (GdkGC *gc, | |
31337 | GdkGCValues *values); | |
31338 | void (*set_values) (GdkGC *gc, | |
31339 | GdkGCValues *values, | |
31340 | GdkGCValuesMask mask); | |
31341 | void (*set_dashes) (GdkGC *gc, | |
31342 | gint dash_offset, | |
31343 | gint8 dash_list[], | |
31344 | gint n); | |
31345 | ||
31346 | ||
31347 | void (*_gdk_reserved1) (void); | |
31348 | void (*_gdk_reserved2) (void); | |
31349 | void (*_gdk_reserved3) (void); | |
31350 | void (*_gdk_reserved4) (void); | |
31351 | }; | |
31352 | ||
31353 | ||
31354 | GType gdk_gc_get_type (void) __attribute__((__const__)); | |
31355 | GdkGC *gdk_gc_new (GdkDrawable *drawable); | |
31356 | GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable, | |
31357 | GdkGCValues *values, | |
31358 | GdkGCValuesMask values_mask); | |
31359 | ||
31360 | ||
31361 | GdkGC *gdk_gc_ref (GdkGC *gc); | |
31362 | void gdk_gc_unref (GdkGC *gc); | |
31363 | ||
31364 | ||
31365 | void gdk_gc_get_values (GdkGC *gc, | |
31366 | GdkGCValues *values); | |
31367 | void gdk_gc_set_values (GdkGC *gc, | |
31368 | GdkGCValues *values, | |
31369 | GdkGCValuesMask values_mask); | |
31370 | void gdk_gc_set_foreground (GdkGC *gc, | |
31371 | const GdkColor *color); | |
31372 | void gdk_gc_set_background (GdkGC *gc, | |
31373 | const GdkColor *color); | |
31374 | ||
31375 | void gdk_gc_set_font (GdkGC *gc, | |
31376 | GdkFont *font); | |
31377 | ||
31378 | void gdk_gc_set_function (GdkGC *gc, | |
31379 | GdkFunction function); | |
31380 | void gdk_gc_set_fill (GdkGC *gc, | |
31381 | GdkFill fill); | |
31382 | void gdk_gc_set_tile (GdkGC *gc, | |
31383 | GdkPixmap *tile); | |
31384 | void gdk_gc_set_stipple (GdkGC *gc, | |
31385 | GdkPixmap *stipple); | |
31386 | void gdk_gc_set_ts_origin (GdkGC *gc, | |
31387 | gint x, | |
31388 | gint y); | |
31389 | void gdk_gc_set_clip_origin (GdkGC *gc, | |
31390 | gint x, | |
31391 | gint y); | |
31392 | void gdk_gc_set_clip_mask (GdkGC *gc, | |
31393 | GdkBitmap *mask); | |
31394 | void gdk_gc_set_clip_rectangle (GdkGC *gc, | |
31395 | GdkRectangle *rectangle); | |
31396 | void gdk_gc_set_clip_region (GdkGC *gc, | |
31397 | GdkRegion *region); | |
31398 | void gdk_gc_set_subwindow (GdkGC *gc, | |
31399 | GdkSubwindowMode mode); | |
31400 | void gdk_gc_set_exposures (GdkGC *gc, | |
31401 | gboolean exposures); | |
31402 | void gdk_gc_set_line_attributes (GdkGC *gc, | |
31403 | gint line_width, | |
31404 | GdkLineStyle line_style, | |
31405 | GdkCapStyle cap_style, | |
31406 | GdkJoinStyle join_style); | |
31407 | void gdk_gc_set_dashes (GdkGC *gc, | |
31408 | gint dash_offset, | |
31409 | gint8 dash_list[], | |
31410 | gint n); | |
31411 | void gdk_gc_offset (GdkGC *gc, | |
31412 | gint x_offset, | |
31413 | gint y_offset); | |
31414 | void gdk_gc_copy (GdkGC *dst_gc, | |
31415 | GdkGC *src_gc); | |
31416 | ||
31417 | ||
31418 | void gdk_gc_set_colormap (GdkGC *gc, | |
31419 | GdkColormap *colormap); | |
31420 | GdkColormap *gdk_gc_get_colormap (GdkGC *gc); | |
31421 | void gdk_gc_set_rgb_fg_color (GdkGC *gc, | |
31422 | const GdkColor *color); | |
31423 | void gdk_gc_set_rgb_bg_color (GdkGC *gc, | |
31424 | const GdkColor *color); | |
31425 | GdkScreen * gdk_gc_get_screen (GdkGC *gc); | |
31426 | ||
31427 | ||
31428 | #define gdk_gc_destroy gdk_gc_unref | |
31429 | ||
31430 | ||
31431 | ||
31432 | # 31 "/usr/include/gtk-2.0/gdk/gdkdrawable.h" 2 | |
31433 | ||
31434 | ||
31435 | ||
31436 | ||
31437 | ||
31438 | ||
31439 | ||
31440 | typedef struct _GdkDrawableClass GdkDrawableClass; | |
31441 | typedef struct _GdkTrapezoid GdkTrapezoid; | |
31442 | ||
31443 | #define GDK_TYPE_DRAWABLE (gdk_drawable_get_type ()) | |
31444 | #define GDK_DRAWABLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DRAWABLE, GdkDrawable)) | |
31445 | #define GDK_DRAWABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DRAWABLE, GdkDrawableClass)) | |
31446 | #define GDK_IS_DRAWABLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DRAWABLE)) | |
31447 | #define GDK_IS_DRAWABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DRAWABLE)) | |
31448 | #define GDK_DRAWABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DRAWABLE, GdkDrawableClass)) | |
31449 | ||
31450 | struct _GdkDrawable | |
31451 | { | |
31452 | GObject parent_instance; | |
31453 | }; | |
31454 | ||
31455 | struct _GdkDrawableClass | |
31456 | { | |
31457 | GObjectClass parent_class; | |
31458 | ||
31459 | GdkGC *(*create_gc) (GdkDrawable *drawable, | |
31460 | GdkGCValues *values, | |
31461 | GdkGCValuesMask mask); | |
31462 | void (*draw_rectangle) (GdkDrawable *drawable, | |
31463 | GdkGC *gc, | |
31464 | gboolean filled, | |
31465 | gint x, | |
31466 | gint y, | |
31467 | gint width, | |
31468 | gint height); | |
31469 | void (*draw_arc) (GdkDrawable *drawable, | |
31470 | GdkGC *gc, | |
31471 | gboolean filled, | |
31472 | gint x, | |
31473 | gint y, | |
31474 | gint width, | |
31475 | gint height, | |
31476 | gint angle1, | |
31477 | gint angle2); | |
31478 | void (*draw_polygon) (GdkDrawable *drawable, | |
31479 | GdkGC *gc, | |
31480 | gboolean filled, | |
31481 | GdkPoint *points, | |
31482 | gint npoints); | |
31483 | void (*draw_text) (GdkDrawable *drawable, | |
31484 | GdkFont *font, | |
31485 | GdkGC *gc, | |
31486 | gint x, | |
31487 | gint y, | |
31488 | const gchar *text, | |
31489 | gint text_length); | |
31490 | void (*draw_text_wc) (GdkDrawable *drawable, | |
31491 | GdkFont *font, | |
31492 | GdkGC *gc, | |
31493 | gint x, | |
31494 | gint y, | |
31495 | const GdkWChar *text, | |
31496 | gint text_length); | |
31497 | void (*draw_drawable) (GdkDrawable *drawable, | |
31498 | GdkGC *gc, | |
31499 | GdkDrawable *src, | |
31500 | gint xsrc, | |
31501 | gint ysrc, | |
31502 | gint xdest, | |
31503 | gint ydest, | |
31504 | gint width, | |
31505 | gint height); | |
31506 | void (*draw_points) (GdkDrawable *drawable, | |
31507 | GdkGC *gc, | |
31508 | GdkPoint *points, | |
31509 | gint npoints); | |
31510 | void (*draw_segments) (GdkDrawable *drawable, | |
31511 | GdkGC *gc, | |
31512 | GdkSegment *segs, | |
31513 | gint nsegs); | |
31514 | void (*draw_lines) (GdkDrawable *drawable, | |
31515 | GdkGC *gc, | |
31516 | GdkPoint *points, | |
31517 | gint npoints); | |
31518 | ||
31519 | void (*draw_glyphs) (GdkDrawable *drawable, | |
31520 | GdkGC *gc, | |
31521 | PangoFont *font, | |
31522 | gint x, | |
31523 | gint y, | |
31524 | PangoGlyphString *glyphs); | |
31525 | ||
31526 | void (*draw_image) (GdkDrawable *drawable, | |
31527 | GdkGC *gc, | |
31528 | GdkImage *image, | |
31529 | gint xsrc, | |
31530 | gint ysrc, | |
31531 | gint xdest, | |
31532 | gint ydest, | |
31533 | gint width, | |
31534 | gint height); | |
31535 | ||
31536 | gint (*get_depth) (GdkDrawable *drawable); | |
31537 | void (*get_size) (GdkDrawable *drawable, | |
31538 | gint *width, | |
31539 | gint *height); | |
31540 | ||
31541 | void (*set_colormap) (GdkDrawable *drawable, | |
31542 | GdkColormap *cmap); | |
31543 | ||
31544 | GdkColormap* (*get_colormap) (GdkDrawable *drawable); | |
31545 | GdkVisual* (*get_visual) (GdkDrawable *drawable); | |
31546 | GdkScreen* (*get_screen) (GdkDrawable *drawable); | |
31547 | ||
31548 | GdkImage* (*get_image) (GdkDrawable *drawable, | |
31549 | gint x, | |
31550 | gint y, | |
31551 | gint width, | |
31552 | gint height); | |
31553 | ||
31554 | GdkRegion* (*get_clip_region) (GdkDrawable *drawable); | |
31555 | GdkRegion* (*get_visible_region) (GdkDrawable *drawable); | |
31556 | ||
31557 | GdkDrawable* (*get_composite_drawable) (GdkDrawable *drawable, | |
31558 | gint x, | |
31559 | gint y, | |
31560 | gint width, | |
31561 | gint height, | |
31562 | gint *composite_x_offset, | |
31563 | gint *composite_y_offset); | |
31564 | ||
31565 | void (*draw_pixbuf) (GdkDrawable *drawable, | |
31566 | GdkGC *gc, | |
31567 | GdkPixbuf *pixbuf, | |
31568 | gint src_x, | |
31569 | gint src_y, | |
31570 | gint dest_x, | |
31571 | gint dest_y, | |
31572 | gint width, | |
31573 | gint height, | |
31574 | GdkRgbDither dither, | |
31575 | gint x_dither, | |
31576 | gint y_dither); | |
31577 | GdkImage* (*_copy_to_image) (GdkDrawable *drawable, | |
31578 | GdkImage *image, | |
31579 | gint src_x, | |
31580 | gint src_y, | |
31581 | gint dest_x, | |
31582 | gint dest_y, | |
31583 | gint width, | |
31584 | gint height); | |
31585 | ||
31586 | void (*draw_glyphs_transformed) (GdkDrawable *drawable, | |
31587 | GdkGC *gc, | |
31588 | PangoMatrix *matrix, | |
31589 | PangoFont *font, | |
31590 | gint x, | |
31591 | gint y, | |
31592 | PangoGlyphString *glyphs); | |
31593 | void (*draw_trapezoids) (GdkDrawable *drawable, | |
31594 | GdkGC *gc, | |
31595 | GdkTrapezoid *trapezoids, | |
31596 | gint n_trapezoids); | |
31597 | ||
31598 | cairo_surface_t *(*ref_cairo_surface) (GdkDrawable *drawable); | |
31599 | ||
31600 | ||
31601 | void (*_gdk_reserved4) (void); | |
31602 | void (*_gdk_reserved5) (void); | |
31603 | void (*_gdk_reserved6) (void); | |
31604 | void (*_gdk_reserved7) (void); | |
31605 | void (*_gdk_reserved9) (void); | |
31606 | void (*_gdk_reserved10) (void); | |
31607 | void (*_gdk_reserved11) (void); | |
31608 | void (*_gdk_reserved12) (void); | |
31609 | void (*_gdk_reserved13) (void); | |
31610 | void (*_gdk_reserved14) (void); | |
31611 | void (*_gdk_reserved15) (void); | |
31612 | void (*_gdk_reserved16) (void); | |
31613 | }; | |
31614 | ||
31615 | struct _GdkTrapezoid | |
31616 | { | |
31617 | double y1, x11, x21, y2, x12, x22; | |
31618 | }; | |
31619 | ||
31620 | GType gdk_drawable_get_type (void) __attribute__((__const__)); | |
31621 | ||
31622 | ||
31623 | ||
31624 | ||
31625 | ||
31626 | void gdk_drawable_set_data (GdkDrawable *drawable, | |
31627 | const gchar *key, | |
31628 | gpointer data, | |
31629 | GDestroyNotify destroy_func); | |
31630 | gpointer gdk_drawable_get_data (GdkDrawable *drawable, | |
31631 | const gchar *key); | |
31632 | ||
31633 | ||
31634 | void gdk_drawable_get_size (GdkDrawable *drawable, | |
31635 | gint *width, | |
31636 | gint *height); | |
31637 | void gdk_drawable_set_colormap (GdkDrawable *drawable, | |
31638 | GdkColormap *colormap); | |
31639 | GdkColormap* gdk_drawable_get_colormap (GdkDrawable *drawable); | |
31640 | GdkVisual* gdk_drawable_get_visual (GdkDrawable *drawable); | |
31641 | gint gdk_drawable_get_depth (GdkDrawable *drawable); | |
31642 | GdkScreen* gdk_drawable_get_screen (GdkDrawable *drawable); | |
31643 | GdkDisplay* gdk_drawable_get_display (GdkDrawable *drawable); | |
31644 | ||
31645 | ||
31646 | GdkDrawable* gdk_drawable_ref (GdkDrawable *drawable); | |
31647 | void gdk_drawable_unref (GdkDrawable *drawable); | |
31648 | ||
31649 | ||
31650 | ||
31651 | ||
31652 | void gdk_draw_point (GdkDrawable *drawable, | |
31653 | GdkGC *gc, | |
31654 | gint x, | |
31655 | gint y); | |
31656 | void gdk_draw_line (GdkDrawable *drawable, | |
31657 | GdkGC *gc, | |
31658 | gint x1_, | |
31659 | gint y1_, | |
31660 | gint x2_, | |
31661 | gint y2_); | |
31662 | void gdk_draw_rectangle (GdkDrawable *drawable, | |
31663 | GdkGC *gc, | |
31664 | gboolean filled, | |
31665 | gint x, | |
31666 | gint y, | |
31667 | gint width, | |
31668 | gint height); | |
31669 | void gdk_draw_arc (GdkDrawable *drawable, | |
31670 | GdkGC *gc, | |
31671 | gboolean filled, | |
31672 | gint x, | |
31673 | gint y, | |
31674 | gint width, | |
31675 | gint height, | |
31676 | gint angle1, | |
31677 | gint angle2); | |
31678 | void gdk_draw_polygon (GdkDrawable *drawable, | |
31679 | GdkGC *gc, | |
31680 | gboolean filled, | |
31681 | GdkPoint *points, | |
31682 | gint npoints); | |
31683 | ||
31684 | ||
31685 | void gdk_draw_string (GdkDrawable *drawable, | |
31686 | GdkFont *font, | |
31687 | GdkGC *gc, | |
31688 | gint x, | |
31689 | gint y, | |
31690 | const gchar *string); | |
31691 | ||
31692 | ||
31693 | ||
31694 | void gdk_draw_text (GdkDrawable *drawable, | |
31695 | GdkFont *font, | |
31696 | GdkGC *gc, | |
31697 | gint x, | |
31698 | gint y, | |
31699 | const gchar *text, | |
31700 | gint text_length); | |
31701 | ||
31702 | void gdk_draw_text_wc (GdkDrawable *drawable, | |
31703 | GdkFont *font, | |
31704 | GdkGC *gc, | |
31705 | gint x, | |
31706 | gint y, | |
31707 | const GdkWChar *text, | |
31708 | gint text_length); | |
31709 | ||
31710 | void gdk_draw_drawable (GdkDrawable *drawable, | |
31711 | GdkGC *gc, | |
31712 | GdkDrawable *src, | |
31713 | gint xsrc, | |
31714 | gint ysrc, | |
31715 | gint xdest, | |
31716 | gint ydest, | |
31717 | gint width, | |
31718 | gint height); | |
31719 | void gdk_draw_image (GdkDrawable *drawable, | |
31720 | GdkGC *gc, | |
31721 | GdkImage *image, | |
31722 | gint xsrc, | |
31723 | gint ysrc, | |
31724 | gint xdest, | |
31725 | gint ydest, | |
31726 | gint width, | |
31727 | gint height); | |
31728 | void gdk_draw_points (GdkDrawable *drawable, | |
31729 | GdkGC *gc, | |
31730 | GdkPoint *points, | |
31731 | gint npoints); | |
31732 | void gdk_draw_segments (GdkDrawable *drawable, | |
31733 | GdkGC *gc, | |
31734 | GdkSegment *segs, | |
31735 | gint nsegs); | |
31736 | void gdk_draw_lines (GdkDrawable *drawable, | |
31737 | GdkGC *gc, | |
31738 | GdkPoint *points, | |
31739 | gint npoints); | |
31740 | void gdk_draw_pixbuf (GdkDrawable *drawable, | |
31741 | GdkGC *gc, | |
31742 | GdkPixbuf *pixbuf, | |
31743 | gint src_x, | |
31744 | gint src_y, | |
31745 | gint dest_x, | |
31746 | gint dest_y, | |
31747 | gint width, | |
31748 | gint height, | |
31749 | GdkRgbDither dither, | |
31750 | gint x_dither, | |
31751 | gint y_dither); | |
31752 | ||
31753 | void gdk_draw_glyphs (GdkDrawable *drawable, | |
31754 | GdkGC *gc, | |
31755 | PangoFont *font, | |
31756 | gint x, | |
31757 | gint y, | |
31758 | PangoGlyphString *glyphs); | |
31759 | void gdk_draw_layout_line (GdkDrawable *drawable, | |
31760 | GdkGC *gc, | |
31761 | gint x, | |
31762 | gint y, | |
31763 | PangoLayoutLine *line); | |
31764 | void gdk_draw_layout (GdkDrawable *drawable, | |
31765 | GdkGC *gc, | |
31766 | gint x, | |
31767 | gint y, | |
31768 | PangoLayout *layout); | |
31769 | ||
31770 | void gdk_draw_layout_line_with_colors (GdkDrawable *drawable, | |
31771 | GdkGC *gc, | |
31772 | gint x, | |
31773 | gint y, | |
31774 | PangoLayoutLine *line, | |
31775 | const GdkColor *foreground, | |
31776 | const GdkColor *background); | |
31777 | void gdk_draw_layout_with_colors (GdkDrawable *drawable, | |
31778 | GdkGC *gc, | |
31779 | gint x, | |
31780 | gint y, | |
31781 | PangoLayout *layout, | |
31782 | const GdkColor *foreground, | |
31783 | const GdkColor *background); | |
31784 | ||
31785 | void gdk_draw_glyphs_transformed (GdkDrawable *drawable, | |
31786 | GdkGC *gc, | |
31787 | PangoMatrix *matrix, | |
31788 | PangoFont *font, | |
31789 | gint x, | |
31790 | gint y, | |
31791 | PangoGlyphString *glyphs); | |
31792 | void gdk_draw_trapezoids (GdkDrawable *drawable, | |
31793 | GdkGC *gc, | |
31794 | GdkTrapezoid *trapezoids, | |
31795 | gint n_trapezoids); | |
31796 | ||
31797 | ||
31798 | #define gdk_draw_pixmap gdk_draw_drawable | |
31799 | #define gdk_draw_bitmap gdk_draw_drawable | |
31800 | ||
31801 | ||
31802 | GdkImage* gdk_drawable_get_image (GdkDrawable *drawable, | |
31803 | gint x, | |
31804 | gint y, | |
31805 | gint width, | |
31806 | gint height); | |
31807 | GdkImage *gdk_drawable_copy_to_image (GdkDrawable *drawable, | |
31808 | GdkImage *image, | |
31809 | gint src_x, | |
31810 | gint src_y, | |
31811 | gint dest_x, | |
31812 | gint dest_y, | |
31813 | gint width, | |
31814 | gint height); | |
31815 | ||
31816 | GdkRegion *gdk_drawable_get_clip_region (GdkDrawable *drawable); | |
31817 | GdkRegion *gdk_drawable_get_visible_region (GdkDrawable *drawable); | |
31818 | ||
31819 | ||
31820 | # 36 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
31821 | # 1 "/usr/include/gtk-2.0/gdk/gdkenumtypes.h" 1 | |
31822 | ||
31823 | ||
31824 | ||
31825 | ||
31826 | #define __GDK_ENUM_TYPES_H__ | |
31827 | ||
31828 | ||
31829 | ||
31830 | ||
31831 | ||
31832 | GType gdk_cursor_type_get_type (void) __attribute__((__const__)); | |
31833 | #define GDK_TYPE_CURSOR_TYPE (gdk_cursor_type_get_type()) | |
31834 | ||
31835 | GType gdk_drag_action_get_type (void) __attribute__((__const__)); | |
31836 | #define GDK_TYPE_DRAG_ACTION (gdk_drag_action_get_type()) | |
31837 | GType gdk_drag_protocol_get_type (void) __attribute__((__const__)); | |
31838 | #define GDK_TYPE_DRAG_PROTOCOL (gdk_drag_protocol_get_type()) | |
31839 | ||
31840 | GType gdk_filter_return_get_type (void) __attribute__((__const__)); | |
31841 | #define GDK_TYPE_FILTER_RETURN (gdk_filter_return_get_type()) | |
31842 | GType gdk_event_type_get_type (void) __attribute__((__const__)); | |
31843 | #define GDK_TYPE_EVENT_TYPE (gdk_event_type_get_type()) | |
31844 | GType gdk_event_mask_get_type (void) __attribute__((__const__)); | |
31845 | #define GDK_TYPE_EVENT_MASK (gdk_event_mask_get_type()) | |
31846 | GType gdk_visibility_state_get_type (void) __attribute__((__const__)); | |
31847 | #define GDK_TYPE_VISIBILITY_STATE (gdk_visibility_state_get_type()) | |
31848 | GType gdk_scroll_direction_get_type (void) __attribute__((__const__)); | |
31849 | #define GDK_TYPE_SCROLL_DIRECTION (gdk_scroll_direction_get_type()) | |
31850 | GType gdk_notify_type_get_type (void) __attribute__((__const__)); | |
31851 | #define GDK_TYPE_NOTIFY_TYPE (gdk_notify_type_get_type()) | |
31852 | GType gdk_crossing_mode_get_type (void) __attribute__((__const__)); | |
31853 | #define GDK_TYPE_CROSSING_MODE (gdk_crossing_mode_get_type()) | |
31854 | GType gdk_property_state_get_type (void) __attribute__((__const__)); | |
31855 | #define GDK_TYPE_PROPERTY_STATE (gdk_property_state_get_type()) | |
31856 | GType gdk_window_state_get_type (void) __attribute__((__const__)); | |
31857 | #define GDK_TYPE_WINDOW_STATE (gdk_window_state_get_type()) | |
31858 | GType gdk_setting_action_get_type (void) __attribute__((__const__)); | |
31859 | #define GDK_TYPE_SETTING_ACTION (gdk_setting_action_get_type()) | |
31860 | GType gdk_owner_change_get_type (void) __attribute__((__const__)); | |
31861 | #define GDK_TYPE_OWNER_CHANGE (gdk_owner_change_get_type()) | |
31862 | ||
31863 | GType gdk_font_type_get_type (void) __attribute__((__const__)); | |
31864 | #define GDK_TYPE_FONT_TYPE (gdk_font_type_get_type()) | |
31865 | ||
31866 | GType gdk_cap_style_get_type (void) __attribute__((__const__)); | |
31867 | #define GDK_TYPE_CAP_STYLE (gdk_cap_style_get_type()) | |
31868 | GType gdk_fill_get_type (void) __attribute__((__const__)); | |
31869 | #define GDK_TYPE_FILL (gdk_fill_get_type()) | |
31870 | GType gdk_function_get_type (void) __attribute__((__const__)); | |
31871 | #define GDK_TYPE_FUNCTION (gdk_function_get_type()) | |
31872 | GType gdk_join_style_get_type (void) __attribute__((__const__)); | |
31873 | #define GDK_TYPE_JOIN_STYLE (gdk_join_style_get_type()) | |
31874 | GType gdk_line_style_get_type (void) __attribute__((__const__)); | |
31875 | #define GDK_TYPE_LINE_STYLE (gdk_line_style_get_type()) | |
31876 | GType gdk_subwindow_mode_get_type (void) __attribute__((__const__)); | |
31877 | #define GDK_TYPE_SUBWINDOW_MODE (gdk_subwindow_mode_get_type()) | |
31878 | GType gdk_gc_values_mask_get_type (void) __attribute__((__const__)); | |
31879 | #define GDK_TYPE_GC_VALUES_MASK (gdk_gc_values_mask_get_type()) | |
31880 | ||
31881 | GType gdk_image_type_get_type (void) __attribute__((__const__)); | |
31882 | #define GDK_TYPE_IMAGE_TYPE (gdk_image_type_get_type()) | |
31883 | ||
31884 | GType gdk_extension_mode_get_type (void) __attribute__((__const__)); | |
31885 | #define GDK_TYPE_EXTENSION_MODE (gdk_extension_mode_get_type()) | |
31886 | GType gdk_input_source_get_type (void) __attribute__((__const__)); | |
31887 | #define GDK_TYPE_INPUT_SOURCE (gdk_input_source_get_type()) | |
31888 | GType gdk_input_mode_get_type (void) __attribute__((__const__)); | |
31889 | #define GDK_TYPE_INPUT_MODE (gdk_input_mode_get_type()) | |
31890 | GType gdk_axis_use_get_type (void) __attribute__((__const__)); | |
31891 | #define GDK_TYPE_AXIS_USE (gdk_axis_use_get_type()) | |
31892 | ||
31893 | GType gdk_prop_mode_get_type (void) __attribute__((__const__)); | |
31894 | #define GDK_TYPE_PROP_MODE (gdk_prop_mode_get_type()) | |
31895 | ||
31896 | GType gdk_fill_rule_get_type (void) __attribute__((__const__)); | |
31897 | #define GDK_TYPE_FILL_RULE (gdk_fill_rule_get_type()) | |
31898 | GType gdk_overlap_type_get_type (void) __attribute__((__const__)); | |
31899 | #define GDK_TYPE_OVERLAP_TYPE (gdk_overlap_type_get_type()) | |
31900 | ||
31901 | GType gdk_rgb_dither_get_type (void) __attribute__((__const__)); | |
31902 | #define GDK_TYPE_RGB_DITHER (gdk_rgb_dither_get_type()) | |
31903 | ||
31904 | GType gdk_byte_order_get_type (void) __attribute__((__const__)); | |
31905 | #define GDK_TYPE_BYTE_ORDER (gdk_byte_order_get_type()) | |
31906 | GType gdk_modifier_type_get_type (void) __attribute__((__const__)); | |
31907 | #define GDK_TYPE_MODIFIER_TYPE (gdk_modifier_type_get_type()) | |
31908 | GType gdk_input_condition_get_type (void) __attribute__((__const__)); | |
31909 | #define GDK_TYPE_INPUT_CONDITION (gdk_input_condition_get_type()) | |
31910 | GType gdk_status_get_type (void) __attribute__((__const__)); | |
31911 | #define GDK_TYPE_STATUS (gdk_status_get_type()) | |
31912 | GType gdk_grab_status_get_type (void) __attribute__((__const__)); | |
31913 | #define GDK_TYPE_GRAB_STATUS (gdk_grab_status_get_type()) | |
31914 | ||
31915 | GType gdk_visual_type_get_type (void) __attribute__((__const__)); | |
31916 | #define GDK_TYPE_VISUAL_TYPE (gdk_visual_type_get_type()) | |
31917 | ||
31918 | GType gdk_window_class_get_type (void) __attribute__((__const__)); | |
31919 | #define GDK_TYPE_WINDOW_CLASS (gdk_window_class_get_type()) | |
31920 | GType gdk_window_type_get_type (void) __attribute__((__const__)); | |
31921 | #define GDK_TYPE_WINDOW_TYPE (gdk_window_type_get_type()) | |
31922 | GType gdk_window_attributes_type_get_type (void) __attribute__((__const__)); | |
31923 | #define GDK_TYPE_WINDOW_ATTRIBUTES_TYPE (gdk_window_attributes_type_get_type()) | |
31924 | GType gdk_window_hints_get_type (void) __attribute__((__const__)); | |
31925 | #define GDK_TYPE_WINDOW_HINTS (gdk_window_hints_get_type()) | |
31926 | GType gdk_window_type_hint_get_type (void) __attribute__((__const__)); | |
31927 | #define GDK_TYPE_WINDOW_TYPE_HINT (gdk_window_type_hint_get_type()) | |
31928 | GType gdk_wm_decoration_get_type (void) __attribute__((__const__)); | |
31929 | #define GDK_TYPE_WM_DECORATION (gdk_wm_decoration_get_type()) | |
31930 | GType gdk_wm_function_get_type (void) __attribute__((__const__)); | |
31931 | #define GDK_TYPE_WM_FUNCTION (gdk_wm_function_get_type()) | |
31932 | GType gdk_gravity_get_type (void) __attribute__((__const__)); | |
31933 | #define GDK_TYPE_GRAVITY (gdk_gravity_get_type()) | |
31934 | GType gdk_window_edge_get_type (void) __attribute__((__const__)); | |
31935 | #define GDK_TYPE_WINDOW_EDGE (gdk_window_edge_get_type()) | |
31936 | ||
31937 | # 37 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
31938 | ||
31939 | # 1 "/usr/include/gtk-2.0/gdk/gdkfont.h" 1 | |
31940 | # 30 "/usr/include/gtk-2.0/gdk/gdkfont.h" | |
31941 | #define __GDK_FONT_H__ | |
31942 | ||
31943 | ||
31944 | ||
31945 | ||
31946 | ||
31947 | ||
31948 | #define GDK_TYPE_FONT gdk_font_get_type () | |
31949 | ||
31950 | ||
31951 | ||
31952 | ||
31953 | ||
31954 | typedef enum | |
31955 | { | |
31956 | GDK_FONT_FONT, | |
31957 | GDK_FONT_FONTSET | |
31958 | } GdkFontType; | |
31959 | ||
31960 | struct _GdkFont | |
31961 | { | |
31962 | GdkFontType type; | |
31963 | gint ascent; | |
31964 | gint descent; | |
31965 | }; | |
31966 | ||
31967 | GType gdk_font_get_type (void) __attribute__((__const__)); | |
31968 | ||
31969 | GdkFont* gdk_font_ref (GdkFont *font); | |
31970 | void gdk_font_unref (GdkFont *font); | |
31971 | gint gdk_font_id (const GdkFont *font); | |
31972 | gboolean gdk_font_equal (const GdkFont *fonta, | |
31973 | const GdkFont *fontb); | |
31974 | ||
31975 | GdkFont *gdk_font_load_for_display (GdkDisplay *display, | |
31976 | const gchar *font_name); | |
31977 | GdkFont *gdk_fontset_load_for_display (GdkDisplay *display, | |
31978 | const gchar *fontset_name); | |
31979 | GdkFont *gdk_font_from_description_for_display (GdkDisplay *display, | |
31980 | PangoFontDescription *font_desc); | |
31981 | ||
31982 | ||
31983 | ||
31984 | ||
31985 | GdkFont* gdk_font_load (const gchar *font_name); | |
31986 | GdkFont* gdk_fontset_load (const gchar *fontset_name); | |
31987 | GdkFont* gdk_font_from_description (PangoFontDescription *font_desc); | |
31988 | ||
31989 | ||
31990 | gint gdk_string_width (GdkFont *font, | |
31991 | const gchar *string); | |
31992 | gint gdk_text_width (GdkFont *font, | |
31993 | const gchar *text, | |
31994 | gint text_length); | |
31995 | gint gdk_text_width_wc (GdkFont *font, | |
31996 | const GdkWChar *text, | |
31997 | gint text_length); | |
31998 | gint gdk_char_width (GdkFont *font, | |
31999 | gchar character); | |
32000 | gint gdk_char_width_wc (GdkFont *font, | |
32001 | GdkWChar character); | |
32002 | gint gdk_string_measure (GdkFont *font, | |
32003 | const gchar *string); | |
32004 | gint gdk_text_measure (GdkFont *font, | |
32005 | const gchar *text, | |
32006 | gint text_length); | |
32007 | gint gdk_char_measure (GdkFont *font, | |
32008 | gchar character); | |
32009 | gint gdk_string_height (GdkFont *font, | |
32010 | const gchar *string); | |
32011 | gint gdk_text_height (GdkFont *font, | |
32012 | const gchar *text, | |
32013 | gint text_length); | |
32014 | gint gdk_char_height (GdkFont *font, | |
32015 | gchar character); | |
32016 | ||
32017 | void gdk_text_extents (GdkFont *font, | |
32018 | const gchar *text, | |
32019 | gint text_length, | |
32020 | gint *lbearing, | |
32021 | gint *rbearing, | |
32022 | gint *width, | |
32023 | gint *ascent, | |
32024 | gint *descent); | |
32025 | void gdk_text_extents_wc (GdkFont *font, | |
32026 | const GdkWChar *text, | |
32027 | gint text_length, | |
32028 | gint *lbearing, | |
32029 | gint *rbearing, | |
32030 | gint *width, | |
32031 | gint *ascent, | |
32032 | gint *descent); | |
32033 | void gdk_string_extents (GdkFont *font, | |
32034 | const gchar *string, | |
32035 | gint *lbearing, | |
32036 | gint *rbearing, | |
32037 | gint *width, | |
32038 | gint *ascent, | |
32039 | gint *descent); | |
32040 | ||
32041 | GdkDisplay * gdk_font_get_display (GdkFont *font); | |
32042 | ||
32043 | ||
32044 | ||
32045 | ||
32046 | # 39 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32047 | ||
32048 | # 1 "/usr/include/gtk-2.0/gdk/gdkimage.h" 1 | |
32049 | # 28 "/usr/include/gtk-2.0/gdk/gdkimage.h" | |
32050 | #define __GDK_IMAGE_H__ | |
32051 | ||
32052 | ||
32053 | ||
32054 | ||
32055 | # 45 "/usr/include/gtk-2.0/gdk/gdkimage.h" | |
32056 | typedef enum | |
32057 | { | |
32058 | GDK_IMAGE_NORMAL, | |
32059 | GDK_IMAGE_SHARED, | |
32060 | GDK_IMAGE_FASTEST | |
32061 | } GdkImageType; | |
32062 | ||
32063 | typedef struct _GdkImageClass GdkImageClass; | |
32064 | ||
32065 | #define GDK_TYPE_IMAGE (gdk_image_get_type ()) | |
32066 | #define GDK_IMAGE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_IMAGE, GdkImage)) | |
32067 | #define GDK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_IMAGE, GdkImageClass)) | |
32068 | #define GDK_IS_IMAGE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_IMAGE)) | |
32069 | #define GDK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_IMAGE)) | |
32070 | #define GDK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_IMAGE, GdkImageClass)) | |
32071 | ||
32072 | struct _GdkImage | |
32073 | { | |
32074 | GObject parent_instance; | |
32075 | ||
32076 | ||
32077 | ||
32078 | GdkImageType type; | |
32079 | GdkVisual *visual; | |
32080 | GdkByteOrder byte_order; | |
32081 | gint width; | |
32082 | gint height; | |
32083 | guint16 depth; | |
32084 | guint16 bpp; | |
32085 | guint16 bpl; | |
32086 | guint16 bits_per_pixel; | |
32087 | gpointer mem; | |
32088 | ||
32089 | GdkColormap *colormap; | |
32090 | ||
32091 | ||
32092 | gpointer windowing_data; | |
32093 | }; | |
32094 | ||
32095 | struct _GdkImageClass | |
32096 | { | |
32097 | GObjectClass parent_class; | |
32098 | }; | |
32099 | ||
32100 | GType gdk_image_get_type (void) __attribute__((__const__)); | |
32101 | ||
32102 | GdkImage* gdk_image_new (GdkImageType type, | |
32103 | GdkVisual *visual, | |
32104 | gint width, | |
32105 | gint height); | |
32106 | ||
32107 | ||
32108 | GdkImage* gdk_image_get (GdkDrawable *drawable, | |
32109 | gint x, | |
32110 | gint y, | |
32111 | gint width, | |
32112 | gint height); | |
32113 | ||
32114 | GdkImage * gdk_image_ref (GdkImage *image); | |
32115 | void gdk_image_unref (GdkImage *image); | |
32116 | ||
32117 | ||
32118 | void gdk_image_put_pixel (GdkImage *image, | |
32119 | gint x, | |
32120 | gint y, | |
32121 | guint32 pixel); | |
32122 | guint32 gdk_image_get_pixel (GdkImage *image, | |
32123 | gint x, | |
32124 | gint y); | |
32125 | ||
32126 | void gdk_image_set_colormap (GdkImage *image, | |
32127 | GdkColormap *colormap); | |
32128 | GdkColormap* gdk_image_get_colormap (GdkImage *image); | |
32129 | # 128 "/usr/include/gtk-2.0/gdk/gdkimage.h" | |
32130 | #define gdk_image_destroy gdk_image_unref | |
32131 | ||
32132 | ||
32133 | ||
32134 | # 41 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32135 | ||
32136 | # 1 "/usr/include/gtk-2.0/gdk/gdkkeys.h" 1 | |
32137 | # 28 "/usr/include/gtk-2.0/gdk/gdkkeys.h" | |
32138 | #define __GDK_KEYS_H__ | |
32139 | ||
32140 | ||
32141 | ||
32142 | ||
32143 | ||
32144 | typedef struct _GdkKeymapKey GdkKeymapKey; | |
32145 | ||
32146 | ||
32147 | struct _GdkKeymapKey | |
32148 | { | |
32149 | guint keycode; | |
32150 | gint group; | |
32151 | gint level; | |
32152 | }; | |
32153 | # 52 "/usr/include/gtk-2.0/gdk/gdkkeys.h" | |
32154 | typedef struct _GdkKeymap GdkKeymap; | |
32155 | typedef struct _GdkKeymapClass GdkKeymapClass; | |
32156 | ||
32157 | #define GDK_TYPE_KEYMAP (gdk_keymap_get_type ()) | |
32158 | #define GDK_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_KEYMAP, GdkKeymap)) | |
32159 | #define GDK_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_KEYMAP, GdkKeymapClass)) | |
32160 | #define GDK_IS_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_KEYMAP)) | |
32161 | #define GDK_IS_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_KEYMAP)) | |
32162 | #define GDK_KEYMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_KEYMAP, GdkKeymapClass)) | |
32163 | ||
32164 | struct _GdkKeymap | |
32165 | { | |
32166 | GObject parent_instance; | |
32167 | GdkDisplay *display; | |
32168 | }; | |
32169 | ||
32170 | struct _GdkKeymapClass | |
32171 | { | |
32172 | GObjectClass parent_class; | |
32173 | ||
32174 | void (*direction_changed) (GdkKeymap *keymap); | |
32175 | void (*keys_changed) (GdkKeymap *keymap); | |
32176 | }; | |
32177 | ||
32178 | GType gdk_keymap_get_type (void) __attribute__((__const__)); | |
32179 | ||
32180 | ||
32181 | GdkKeymap* gdk_keymap_get_default (void); | |
32182 | ||
32183 | GdkKeymap* gdk_keymap_get_for_display (GdkDisplay *display); | |
32184 | ||
32185 | ||
32186 | guint gdk_keymap_lookup_key (GdkKeymap *keymap, | |
32187 | const GdkKeymapKey *key); | |
32188 | gboolean gdk_keymap_translate_keyboard_state (GdkKeymap *keymap, | |
32189 | guint hardware_keycode, | |
32190 | GdkModifierType state, | |
32191 | gint group, | |
32192 | guint *keyval, | |
32193 | gint *effective_group, | |
32194 | gint *level, | |
32195 | GdkModifierType *consumed_modifiers); | |
32196 | gboolean gdk_keymap_get_entries_for_keyval (GdkKeymap *keymap, | |
32197 | guint keyval, | |
32198 | GdkKeymapKey **keys, | |
32199 | gint *n_keys); | |
32200 | gboolean gdk_keymap_get_entries_for_keycode (GdkKeymap *keymap, | |
32201 | guint hardware_keycode, | |
32202 | GdkKeymapKey **keys, | |
32203 | guint **keyvals, | |
32204 | gint *n_entries); | |
32205 | PangoDirection gdk_keymap_get_direction (GdkKeymap *keymap); | |
32206 | ||
32207 | ||
32208 | ||
32209 | gchar* gdk_keyval_name (guint keyval) __attribute__((__const__)); | |
32210 | guint gdk_keyval_from_name (const gchar *keyval_name); | |
32211 | void gdk_keyval_convert_case (guint symbol, | |
32212 | guint *lower, | |
32213 | guint *upper); | |
32214 | guint gdk_keyval_to_upper (guint keyval) __attribute__((__const__)); | |
32215 | guint gdk_keyval_to_lower (guint keyval) __attribute__((__const__)); | |
32216 | gboolean gdk_keyval_is_upper (guint keyval) __attribute__((__const__)); | |
32217 | gboolean gdk_keyval_is_lower (guint keyval) __attribute__((__const__)); | |
32218 | ||
32219 | guint32 gdk_keyval_to_unicode (guint keyval) __attribute__((__const__)); | |
32220 | guint gdk_unicode_to_keyval (guint32 wc) __attribute__((__const__)); | |
32221 | ||
32222 | ||
32223 | ||
32224 | # 43 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32225 | # 1 "/usr/include/gtk-2.0/gdk/gdkdisplaymanager.h" 1 | |
32226 | # 28 "/usr/include/gtk-2.0/gdk/gdkdisplaymanager.h" | |
32227 | #define __GDK_DISPLAY_MANAGER_H__ | |
32228 | ||
32229 | ||
32230 | ||
32231 | ||
32232 | ||
32233 | ||
32234 | typedef struct _GdkDisplayManager GdkDisplayManager; | |
32235 | typedef struct _GdkDisplayManagerClass GdkDisplayManagerClass; | |
32236 | ||
32237 | #define GDK_TYPE_DISPLAY_MANAGER (gdk_display_manager_get_type ()) | |
32238 | #define GDK_DISPLAY_MANAGER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManager)) | |
32239 | #define GDK_DISPLAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManagerClass)) | |
32240 | #define GDK_IS_DISPLAY_MANAGER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DISPLAY_MANAGER)) | |
32241 | #define GDK_IS_DISPLAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DISPLAY_MANAGER)) | |
32242 | #define GDK_DISPLAY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManagerClass)) | |
32243 | ||
32244 | struct _GdkDisplayManagerClass | |
32245 | { | |
32246 | GObjectClass parent_class; | |
32247 | ||
32248 | void (*display_opened) (GdkDisplayManager *display_manager, | |
32249 | GdkDisplay *display); | |
32250 | }; | |
32251 | ||
32252 | GType gdk_display_manager_get_type (void) __attribute__((__const__)); | |
32253 | ||
32254 | GdkDisplayManager *gdk_display_manager_get (void); | |
32255 | GdkDisplay * gdk_display_manager_get_default_display (GdkDisplayManager *display_manager); | |
32256 | void gdk_display_manager_set_default_display (GdkDisplayManager *display_manager, | |
32257 | GdkDisplay *display); | |
32258 | GSList * gdk_display_manager_list_displays (GdkDisplayManager *display_manager); | |
32259 | ||
32260 | ||
32261 | # 44 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32262 | # 1 "/usr/include/gtk-2.0/gdk/gdkpango.h" 1 | |
32263 | # 21 "/usr/include/gtk-2.0/gdk/gdkpango.h" | |
32264 | #define __GDK_PANGO_H__ | |
32265 | ||
32266 | ||
32267 | ||
32268 | ||
32269 | ||
32270 | ||
32271 | ||
32272 | typedef struct _GdkPangoRenderer GdkPangoRenderer; | |
32273 | typedef struct _GdkPangoRendererClass GdkPangoRendererClass; | |
32274 | typedef struct _GdkPangoRendererPrivate GdkPangoRendererPrivate; | |
32275 | ||
32276 | #define GDK_TYPE_PANGO_RENDERER (gdk_pango_renderer_get_type()) | |
32277 | #define GDK_PANGO_RENDERER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PANGO_RENDERER, GdkPangoRenderer)) | |
32278 | #define GDK_IS_PANGO_RENDERER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PANGO_RENDERER)) | |
32279 | #define GDK_PANGO_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PANGO_RENDERER, GdkPangoRendererClass)) | |
32280 | #define GDK_IS_PANGO_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PANGO_RENDERER)) | |
32281 | #define GDK_PANGO_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PANGO_RENDERER, GdkPangoRendererClass)) | |
32282 | # 64 "/usr/include/gtk-2.0/gdk/gdkpango.h" | |
32283 | struct _GdkPangoRenderer | |
32284 | { | |
32285 | ||
32286 | PangoRenderer parent_instance; | |
32287 | ||
32288 | GdkPangoRendererPrivate *priv; | |
32289 | }; | |
32290 | # 79 "/usr/include/gtk-2.0/gdk/gdkpango.h" | |
32291 | struct _GdkPangoRendererClass | |
32292 | { | |
32293 | ||
32294 | PangoRendererClass parent_class; | |
32295 | }; | |
32296 | ||
32297 | GType gdk_pango_renderer_get_type (void) __attribute__((__const__)); | |
32298 | ||
32299 | PangoRenderer *gdk_pango_renderer_new (GdkScreen *screen); | |
32300 | PangoRenderer *gdk_pango_renderer_get_default (GdkScreen *screen); | |
32301 | ||
32302 | void gdk_pango_renderer_set_drawable (GdkPangoRenderer *gdk_renderer, | |
32303 | GdkDrawable *drawable); | |
32304 | void gdk_pango_renderer_set_gc (GdkPangoRenderer *gdk_renderer, | |
32305 | GdkGC *gc); | |
32306 | void gdk_pango_renderer_set_stipple (GdkPangoRenderer *gdk_renderer, | |
32307 | PangoRenderPart part, | |
32308 | GdkBitmap *stipple); | |
32309 | void gdk_pango_renderer_set_override_color (GdkPangoRenderer *gdk_renderer, | |
32310 | PangoRenderPart part, | |
32311 | const GdkColor *color); | |
32312 | ||
32313 | ||
32314 | ||
32315 | PangoContext *gdk_pango_context_get_for_screen (GdkScreen *screen); | |
32316 | ||
32317 | PangoContext *gdk_pango_context_get (void); | |
32318 | ||
32319 | ||
32320 | void gdk_pango_context_set_colormap (PangoContext *context, | |
32321 | GdkColormap *colormap); | |
32322 | # 119 "/usr/include/gtk-2.0/gdk/gdkpango.h" | |
32323 | GdkRegion *gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line, | |
32324 | gint x_origin, | |
32325 | gint y_origin, | |
32326 | gint *index_ranges, | |
32327 | gint n_ranges); | |
32328 | GdkRegion *gdk_pango_layout_get_clip_region (PangoLayout *layout, | |
32329 | gint x_origin, | |
32330 | gint y_origin, | |
32331 | gint *index_ranges, | |
32332 | gint n_ranges); | |
32333 | ||
32334 | ||
32335 | ||
32336 | ||
32337 | ||
32338 | typedef struct _GdkPangoAttrStipple GdkPangoAttrStipple; | |
32339 | typedef struct _GdkPangoAttrEmbossed GdkPangoAttrEmbossed; | |
32340 | ||
32341 | struct _GdkPangoAttrStipple | |
32342 | { | |
32343 | PangoAttribute attr; | |
32344 | GdkBitmap *stipple; | |
32345 | }; | |
32346 | ||
32347 | struct _GdkPangoAttrEmbossed | |
32348 | { | |
32349 | PangoAttribute attr; | |
32350 | gboolean embossed; | |
32351 | }; | |
32352 | ||
32353 | PangoAttribute *gdk_pango_attr_stipple_new (GdkBitmap *stipple); | |
32354 | PangoAttribute *gdk_pango_attr_embossed_new (gboolean embossed); | |
32355 | ||
32356 | ||
32357 | # 45 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32358 | ||
32359 | # 1 "/usr/include/gtk-2.0/gdk/gdkpixmap.h" 1 | |
32360 | # 28 "/usr/include/gtk-2.0/gdk/gdkpixmap.h" | |
32361 | #define __GDK_PIXMAP_H__ | |
32362 | ||
32363 | ||
32364 | ||
32365 | ||
32366 | ||
32367 | ||
32368 | typedef struct _GdkPixmapObject GdkPixmapObject; | |
32369 | typedef struct _GdkPixmapObjectClass GdkPixmapObjectClass; | |
32370 | ||
32371 | #define GDK_TYPE_PIXMAP (gdk_pixmap_get_type ()) | |
32372 | #define GDK_PIXMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXMAP, GdkPixmap)) | |
32373 | #define GDK_PIXMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXMAP, GdkPixmapObjectClass)) | |
32374 | #define GDK_IS_PIXMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXMAP)) | |
32375 | #define GDK_IS_PIXMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXMAP)) | |
32376 | #define GDK_PIXMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXMAP, GdkPixmapObjectClass)) | |
32377 | #define GDK_PIXMAP_OBJECT(object) ((GdkPixmapObject *) GDK_PIXMAP (object)) | |
32378 | ||
32379 | struct _GdkPixmapObject | |
32380 | { | |
32381 | GdkDrawable parent_instance; | |
32382 | ||
32383 | GdkDrawable *impl; | |
32384 | ||
32385 | gint depth; | |
32386 | }; | |
32387 | ||
32388 | struct _GdkPixmapObjectClass | |
32389 | { | |
32390 | GdkDrawableClass parent_class; | |
32391 | ||
32392 | }; | |
32393 | ||
32394 | GType gdk_pixmap_get_type (void) __attribute__((__const__)); | |
32395 | ||
32396 | ||
32397 | ||
32398 | GdkPixmap* gdk_pixmap_new (GdkDrawable *drawable, | |
32399 | gint width, | |
32400 | gint height, | |
32401 | gint depth); | |
32402 | GdkBitmap* gdk_bitmap_create_from_data (GdkDrawable *drawable, | |
32403 | const gchar *data, | |
32404 | gint width, | |
32405 | gint height); | |
32406 | GdkPixmap* gdk_pixmap_create_from_data (GdkDrawable *drawable, | |
32407 | const gchar *data, | |
32408 | gint width, | |
32409 | gint height, | |
32410 | gint depth, | |
32411 | const GdkColor *fg, | |
32412 | const GdkColor *bg); | |
32413 | ||
32414 | GdkPixmap* gdk_pixmap_create_from_xpm (GdkDrawable *drawable, | |
32415 | GdkBitmap **mask, | |
32416 | const GdkColor *transparent_color, | |
32417 | const gchar *filename); | |
32418 | GdkPixmap* gdk_pixmap_colormap_create_from_xpm (GdkDrawable *drawable, | |
32419 | GdkColormap *colormap, | |
32420 | GdkBitmap **mask, | |
32421 | const GdkColor *transparent_color, | |
32422 | const gchar *filename); | |
32423 | GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkDrawable *drawable, | |
32424 | GdkBitmap **mask, | |
32425 | const GdkColor *transparent_color, | |
32426 | gchar **data); | |
32427 | GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d (GdkDrawable *drawable, | |
32428 | GdkColormap *colormap, | |
32429 | GdkBitmap **mask, | |
32430 | const GdkColor *transparent_color, | |
32431 | gchar **data); | |
32432 | ||
32433 | ||
32434 | ||
32435 | ||
32436 | GdkPixmap* gdk_pixmap_foreign_new (GdkNativeWindow anid); | |
32437 | GdkPixmap* gdk_pixmap_lookup (GdkNativeWindow anid); | |
32438 | ||
32439 | ||
32440 | GdkPixmap* gdk_pixmap_foreign_new_for_display (GdkDisplay *display, | |
32441 | GdkNativeWindow anid); | |
32442 | GdkPixmap* gdk_pixmap_lookup_for_display (GdkDisplay *display, | |
32443 | GdkNativeWindow anid); | |
32444 | ||
32445 | ||
32446 | #define gdk_bitmap_ref gdk_drawable_ref | |
32447 | #define gdk_bitmap_unref gdk_drawable_unref | |
32448 | #define gdk_pixmap_ref gdk_drawable_ref | |
32449 | #define gdk_pixmap_unref gdk_drawable_unref | |
32450 | ||
32451 | ||
32452 | ||
32453 | # 47 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32454 | # 1 "/usr/include/gtk-2.0/gdk/gdkproperty.h" 1 | |
32455 | # 28 "/usr/include/gtk-2.0/gdk/gdkproperty.h" | |
32456 | #define __GDK_PROPERTY_H__ | |
32457 | ||
32458 | ||
32459 | ||
32460 | ||
32461 | ||
32462 | typedef enum | |
32463 | { | |
32464 | GDK_PROP_MODE_REPLACE, | |
32465 | GDK_PROP_MODE_PREPEND, | |
32466 | GDK_PROP_MODE_APPEND | |
32467 | } GdkPropMode; | |
32468 | ||
32469 | GdkAtom gdk_atom_intern (const gchar *atom_name, | |
32470 | gboolean only_if_exists); | |
32471 | gchar* gdk_atom_name (GdkAtom atom); | |
32472 | ||
32473 | gboolean gdk_property_get (GdkWindow *window, | |
32474 | GdkAtom property, | |
32475 | GdkAtom type, | |
32476 | gulong offset, | |
32477 | gulong length, | |
32478 | gint pdelete, | |
32479 | GdkAtom *actual_property_type, | |
32480 | gint *actual_format, | |
32481 | gint *actual_length, | |
32482 | guchar **data); | |
32483 | void gdk_property_change (GdkWindow *window, | |
32484 | GdkAtom property, | |
32485 | GdkAtom type, | |
32486 | gint format, | |
32487 | GdkPropMode mode, | |
32488 | const guchar *data, | |
32489 | gint nelements); | |
32490 | void gdk_property_delete (GdkWindow *window, | |
32491 | GdkAtom property); | |
32492 | ||
32493 | gint gdk_text_property_to_text_list (GdkAtom encoding, | |
32494 | gint format, | |
32495 | const guchar *text, | |
32496 | gint length, | |
32497 | gchar ***list); | |
32498 | gint gdk_text_property_to_utf8_list (GdkAtom encoding, | |
32499 | gint format, | |
32500 | const guchar *text, | |
32501 | gint length, | |
32502 | gchar ***list); | |
32503 | gboolean gdk_utf8_to_compound_text (const gchar *str, | |
32504 | GdkAtom *encoding, | |
32505 | gint *format, | |
32506 | guchar **ctext, | |
32507 | gint *length); | |
32508 | gint gdk_string_to_compound_text (const gchar *str, | |
32509 | GdkAtom *encoding, | |
32510 | gint *format, | |
32511 | guchar **ctext, | |
32512 | gint *length); | |
32513 | ||
32514 | ||
32515 | gint gdk_text_property_to_text_list_for_display (GdkDisplay *display, | |
32516 | GdkAtom encoding, | |
32517 | gint format, | |
32518 | const guchar *text, | |
32519 | gint length, | |
32520 | gchar ***list); | |
32521 | gint gdk_text_property_to_utf8_list_for_display (GdkDisplay *display, | |
32522 | GdkAtom encoding, | |
32523 | gint format, | |
32524 | const guchar *text, | |
32525 | gint length, | |
32526 | gchar ***list); | |
32527 | ||
32528 | gchar *gdk_utf8_to_string_target (const gchar *str); | |
32529 | gint gdk_string_to_compound_text_for_display (GdkDisplay *display, | |
32530 | const gchar *str, | |
32531 | GdkAtom *encoding, | |
32532 | gint *format, | |
32533 | guchar **ctext, | |
32534 | gint *length); | |
32535 | gboolean gdk_utf8_to_compound_text_for_display (GdkDisplay *display, | |
32536 | const gchar *str, | |
32537 | GdkAtom *encoding, | |
32538 | gint *format, | |
32539 | guchar **ctext, | |
32540 | gint *length); | |
32541 | ||
32542 | void gdk_free_text_list (gchar **list); | |
32543 | void gdk_free_compound_text (guchar *ctext); | |
32544 | ||
32545 | ||
32546 | # 48 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32547 | # 1 "/usr/include/gtk-2.0/gdk/gdkregion.h" 1 | |
32548 | # 28 "/usr/include/gtk-2.0/gdk/gdkregion.h" | |
32549 | #define __GDK_REGION_H__ | |
32550 | ||
32551 | ||
32552 | ||
32553 | ||
32554 | ||
32555 | ||
32556 | ||
32557 | ||
32558 | ||
32559 | typedef enum | |
32560 | { | |
32561 | GDK_EVEN_ODD_RULE, | |
32562 | GDK_WINDING_RULE | |
32563 | } GdkFillRule; | |
32564 | ||
32565 | ||
32566 | ||
32567 | ||
32568 | ||
32569 | ||
32570 | typedef enum | |
32571 | { | |
32572 | GDK_OVERLAP_RECTANGLE_IN, | |
32573 | GDK_OVERLAP_RECTANGLE_OUT, | |
32574 | GDK_OVERLAP_RECTANGLE_PART | |
32575 | } GdkOverlapType; | |
32576 | ||
32577 | typedef void (*GdkSpanFunc) (GdkSpan *span, | |
32578 | gpointer data); | |
32579 | ||
32580 | GdkRegion *gdk_region_new (void); | |
32581 | GdkRegion *gdk_region_polygon (GdkPoint *points, | |
32582 | gint npoints, | |
32583 | GdkFillRule fill_rule); | |
32584 | GdkRegion *gdk_region_copy (GdkRegion *region); | |
32585 | GdkRegion *gdk_region_rectangle (GdkRectangle *rectangle); | |
32586 | void gdk_region_destroy (GdkRegion *region); | |
32587 | ||
32588 | void gdk_region_get_clipbox (GdkRegion *region, | |
32589 | GdkRectangle *rectangle); | |
32590 | void gdk_region_get_rectangles (GdkRegion *region, | |
32591 | GdkRectangle **rectangles, | |
32592 | gint *n_rectangles); | |
32593 | ||
32594 | gboolean gdk_region_empty (GdkRegion *region); | |
32595 | gboolean gdk_region_equal (GdkRegion *region1, | |
32596 | GdkRegion *region2); | |
32597 | gboolean gdk_region_point_in (GdkRegion *region, | |
32598 | int x, | |
32599 | int y); | |
32600 | GdkOverlapType gdk_region_rect_in (GdkRegion *region, | |
32601 | GdkRectangle *rect); | |
32602 | ||
32603 | void gdk_region_offset (GdkRegion *region, | |
32604 | gint dx, | |
32605 | gint dy); | |
32606 | void gdk_region_shrink (GdkRegion *region, | |
32607 | gint dx, | |
32608 | gint dy); | |
32609 | void gdk_region_union_with_rect (GdkRegion *region, | |
32610 | GdkRectangle *rect); | |
32611 | void gdk_region_intersect (GdkRegion *source1, | |
32612 | GdkRegion *source2); | |
32613 | void gdk_region_union (GdkRegion *source1, | |
32614 | GdkRegion *source2); | |
32615 | void gdk_region_subtract (GdkRegion *source1, | |
32616 | GdkRegion *source2); | |
32617 | void gdk_region_xor (GdkRegion *source1, | |
32618 | GdkRegion *source2); | |
32619 | ||
32620 | void gdk_region_spans_intersect_foreach (GdkRegion *region, | |
32621 | GdkSpan *spans, | |
32622 | int n_spans, | |
32623 | gboolean sorted, | |
32624 | GdkSpanFunc function, | |
32625 | gpointer data); | |
32626 | ||
32627 | ||
32628 | # 49 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32629 | ||
32630 | # 1 "/usr/include/gtk-2.0/gdk/gdkscreen.h" 1 | |
32631 | # 25 "/usr/include/gtk-2.0/gdk/gdkscreen.h" | |
32632 | #define __GDK_SCREEN_H__ | |
32633 | ||
32634 | ||
32635 | ||
32636 | ||
32637 | ||
32638 | ||
32639 | ||
32640 | typedef struct _GdkScreenClass GdkScreenClass; | |
32641 | ||
32642 | #define GDK_TYPE_SCREEN (gdk_screen_get_type ()) | |
32643 | #define GDK_SCREEN(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_SCREEN, GdkScreen)) | |
32644 | #define GDK_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_SCREEN, GdkScreenClass)) | |
32645 | #define GDK_IS_SCREEN(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_SCREEN)) | |
32646 | #define GDK_IS_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_SCREEN)) | |
32647 | #define GDK_SCREEN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_SCREEN, GdkScreenClass)) | |
32648 | ||
32649 | struct _GdkScreen | |
32650 | { | |
32651 | GObject parent_instance; | |
32652 | ||
32653 | guint closed : 1; | |
32654 | ||
32655 | GdkGC *normal_gcs[32]; | |
32656 | GdkGC *exposure_gcs[32]; | |
32657 | ||
32658 | cairo_font_options_t *font_options; | |
32659 | double resolution; | |
32660 | }; | |
32661 | ||
32662 | struct _GdkScreenClass | |
32663 | { | |
32664 | GObjectClass parent_class; | |
32665 | ||
32666 | void (*size_changed) (GdkScreen *screen); | |
32667 | }; | |
32668 | ||
32669 | GType gdk_screen_get_type (void) __attribute__((__const__)); | |
32670 | GdkColormap *gdk_screen_get_default_colormap (GdkScreen *screen); | |
32671 | void gdk_screen_set_default_colormap (GdkScreen *screen, | |
32672 | GdkColormap *colormap); | |
32673 | GdkColormap* gdk_screen_get_system_colormap (GdkScreen *screen); | |
32674 | GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen); | |
32675 | GdkColormap *gdk_screen_get_rgb_colormap (GdkScreen *screen); | |
32676 | GdkVisual * gdk_screen_get_rgb_visual (GdkScreen *screen); | |
32677 | GdkColormap *gdk_screen_get_rgba_colormap (GdkScreen *screen); | |
32678 | GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen); | |
32679 | ||
32680 | ||
32681 | GdkWindow * gdk_screen_get_root_window (GdkScreen *screen); | |
32682 | GdkDisplay * gdk_screen_get_display (GdkScreen *screen); | |
32683 | gint gdk_screen_get_number (GdkScreen *screen); | |
32684 | gint gdk_screen_get_width (GdkScreen *screen); | |
32685 | gint gdk_screen_get_height (GdkScreen *screen); | |
32686 | gint gdk_screen_get_width_mm (GdkScreen *screen); | |
32687 | gint gdk_screen_get_height_mm (GdkScreen *screen); | |
32688 | ||
32689 | GList * gdk_screen_list_visuals (GdkScreen *screen); | |
32690 | GList * gdk_screen_get_toplevel_windows (GdkScreen *screen); | |
32691 | gchar * gdk_screen_make_display_name (GdkScreen *screen); | |
32692 | ||
32693 | gint gdk_screen_get_n_monitors (GdkScreen *screen); | |
32694 | void gdk_screen_get_monitor_geometry (GdkScreen *screen, | |
32695 | gint monitor_num, | |
32696 | GdkRectangle *dest); | |
32697 | gint gdk_screen_get_monitor_at_point (GdkScreen *screen, | |
32698 | gint x, | |
32699 | gint y); | |
32700 | gint gdk_screen_get_monitor_at_window (GdkScreen *screen, | |
32701 | GdkWindow *window); | |
32702 | ||
32703 | void gdk_screen_broadcast_client_message (GdkScreen *screen, | |
32704 | GdkEvent *event); | |
32705 | ||
32706 | GdkScreen *gdk_screen_get_default (void); | |
32707 | ||
32708 | gboolean gdk_screen_get_setting (GdkScreen *screen, | |
32709 | const gchar *name, | |
32710 | GValue *value); | |
32711 | ||
32712 | void gdk_screen_set_font_options_libgtk_only (GdkScreen *screen, | |
32713 | const cairo_font_options_t *options); | |
32714 | const cairo_font_options_t *gdk_screen_get_font_options_libgtk_only (GdkScreen *screen); | |
32715 | ||
32716 | void gdk_screen_set_resolution_libgtk_only (GdkScreen *screen, | |
32717 | gdouble dpi); | |
32718 | gdouble gdk_screen_get_resolution_libgtk_only (GdkScreen *screen); | |
32719 | ||
32720 | ||
32721 | # 51 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32722 | # 1 "/usr/include/gtk-2.0/gdk/gdkselection.h" 1 | |
32723 | # 28 "/usr/include/gtk-2.0/gdk/gdkselection.h" | |
32724 | #define __GDK_SELECTION_H__ | |
32725 | ||
32726 | ||
32727 | ||
32728 | ||
32729 | ||
32730 | ||
32731 | ||
32732 | ||
32733 | #define GDK_SELECTION_PRIMARY _GDK_MAKE_ATOM (1) | |
32734 | #define GDK_SELECTION_SECONDARY _GDK_MAKE_ATOM (2) | |
32735 | #define GDK_SELECTION_CLIPBOARD _GDK_MAKE_ATOM (69) | |
32736 | #define GDK_TARGET_BITMAP _GDK_MAKE_ATOM (5) | |
32737 | #define GDK_TARGET_COLORMAP _GDK_MAKE_ATOM (7) | |
32738 | #define GDK_TARGET_DRAWABLE _GDK_MAKE_ATOM (17) | |
32739 | #define GDK_TARGET_PIXMAP _GDK_MAKE_ATOM (20) | |
32740 | #define GDK_TARGET_STRING _GDK_MAKE_ATOM (31) | |
32741 | #define GDK_SELECTION_TYPE_ATOM _GDK_MAKE_ATOM (4) | |
32742 | #define GDK_SELECTION_TYPE_BITMAP _GDK_MAKE_ATOM (5) | |
32743 | #define GDK_SELECTION_TYPE_COLORMAP _GDK_MAKE_ATOM (7) | |
32744 | #define GDK_SELECTION_TYPE_DRAWABLE _GDK_MAKE_ATOM (17) | |
32745 | #define GDK_SELECTION_TYPE_INTEGER _GDK_MAKE_ATOM (19) | |
32746 | #define GDK_SELECTION_TYPE_PIXMAP _GDK_MAKE_ATOM (20) | |
32747 | #define GDK_SELECTION_TYPE_WINDOW _GDK_MAKE_ATOM (33) | |
32748 | #define GDK_SELECTION_TYPE_STRING _GDK_MAKE_ATOM (31) | |
32749 | ||
32750 | ||
32751 | ||
32752 | typedef GdkAtom GdkSelection; | |
32753 | typedef GdkAtom GdkTarget; | |
32754 | typedef GdkAtom GdkSelectionType; | |
32755 | ||
32756 | ||
32757 | ||
32758 | ||
32759 | ||
32760 | ||
32761 | ||
32762 | gboolean gdk_selection_owner_set (GdkWindow *owner, | |
32763 | GdkAtom selection, | |
32764 | guint32 time_, | |
32765 | gboolean send_event); | |
32766 | GdkWindow* gdk_selection_owner_get (GdkAtom selection); | |
32767 | ||
32768 | ||
32769 | gboolean gdk_selection_owner_set_for_display (GdkDisplay *display, | |
32770 | GdkWindow *owner, | |
32771 | GdkAtom selection, | |
32772 | guint32 time_, | |
32773 | gboolean send_event); | |
32774 | GdkWindow *gdk_selection_owner_get_for_display (GdkDisplay *display, | |
32775 | GdkAtom selection); | |
32776 | ||
32777 | void gdk_selection_convert (GdkWindow *requestor, | |
32778 | GdkAtom selection, | |
32779 | GdkAtom target, | |
32780 | guint32 time_); | |
32781 | gboolean gdk_selection_property_get (GdkWindow *requestor, | |
32782 | guchar **data, | |
32783 | GdkAtom *prop_type, | |
32784 | gint *prop_format); | |
32785 | ||
32786 | ||
32787 | void gdk_selection_send_notify (guint32 requestor, | |
32788 | GdkAtom selection, | |
32789 | GdkAtom target, | |
32790 | GdkAtom property, | |
32791 | guint32 time_); | |
32792 | ||
32793 | ||
32794 | void gdk_selection_send_notify_for_display (GdkDisplay *display, | |
32795 | guint32 requestor, | |
32796 | GdkAtom selection, | |
32797 | GdkAtom target, | |
32798 | GdkAtom property, | |
32799 | guint32 time_); | |
32800 | ||
32801 | ||
32802 | # 52 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32803 | # 1 "/usr/include/gtk-2.0/gdk/gdkspawn.h" 1 | |
32804 | # 23 "/usr/include/gtk-2.0/gdk/gdkspawn.h" | |
32805 | #define __GDK_SPAWN_H__ | |
32806 | ||
32807 | ||
32808 | ||
32809 | ||
32810 | ||
32811 | ||
32812 | gboolean gdk_spawn_on_screen (GdkScreen *screen, | |
32813 | const gchar *working_directory, | |
32814 | gchar **argv, | |
32815 | gchar **envp, | |
32816 | GSpawnFlags flags, | |
32817 | GSpawnChildSetupFunc child_setup, | |
32818 | gpointer user_data, | |
32819 | gint *child_pid, | |
32820 | GError **error); | |
32821 | ||
32822 | gboolean gdk_spawn_on_screen_with_pipes (GdkScreen *screen, | |
32823 | const gchar *working_directory, | |
32824 | gchar **argv, | |
32825 | gchar **envp, | |
32826 | GSpawnFlags flags, | |
32827 | GSpawnChildSetupFunc child_setup, | |
32828 | gpointer user_data, | |
32829 | gint *child_pid, | |
32830 | gint *standard_input, | |
32831 | gint *standard_output, | |
32832 | gint *standard_error, | |
32833 | GError **error); | |
32834 | ||
32835 | gboolean gdk_spawn_command_line_on_screen (GdkScreen *screen, | |
32836 | const gchar *command_line, | |
32837 | GError **error); | |
32838 | ||
32839 | ||
32840 | # 53 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32841 | ||
32842 | # 1 "/usr/include/gtk-2.0/gdk/gdkvisual.h" 1 | |
32843 | # 28 "/usr/include/gtk-2.0/gdk/gdkvisual.h" | |
32844 | #define __GDK_VISUAL_H__ | |
32845 | ||
32846 | ||
32847 | ||
32848 | ||
32849 | ||
32850 | #define GDK_TYPE_VISUAL (gdk_visual_get_type ()) | |
32851 | #define GDK_VISUAL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_VISUAL, GdkVisual)) | |
32852 | #define GDK_VISUAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_VISUAL, GdkVisualClass)) | |
32853 | #define GDK_IS_VISUAL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_VISUAL)) | |
32854 | #define GDK_IS_VISUAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_VISUAL)) | |
32855 | #define GDK_VISUAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_VISUAL, GdkVisualClass)) | |
32856 | ||
32857 | typedef struct _GdkVisualClass GdkVisualClass; | |
32858 | # 51 "/usr/include/gtk-2.0/gdk/gdkvisual.h" | |
32859 | typedef enum | |
32860 | { | |
32861 | GDK_VISUAL_STATIC_GRAY, | |
32862 | GDK_VISUAL_GRAYSCALE, | |
32863 | GDK_VISUAL_STATIC_COLOR, | |
32864 | GDK_VISUAL_PSEUDO_COLOR, | |
32865 | GDK_VISUAL_TRUE_COLOR, | |
32866 | GDK_VISUAL_DIRECT_COLOR | |
32867 | } GdkVisualType; | |
32868 | # 73 "/usr/include/gtk-2.0/gdk/gdkvisual.h" | |
32869 | struct _GdkVisual | |
32870 | { | |
32871 | GObject parent_instance; | |
32872 | ||
32873 | GdkVisualType type; | |
32874 | gint depth; | |
32875 | GdkByteOrder byte_order; | |
32876 | gint colormap_size; | |
32877 | gint bits_per_rgb; | |
32878 | ||
32879 | guint32 red_mask; | |
32880 | gint red_shift; | |
32881 | gint red_prec; | |
32882 | ||
32883 | guint32 green_mask; | |
32884 | gint green_shift; | |
32885 | gint green_prec; | |
32886 | ||
32887 | guint32 blue_mask; | |
32888 | gint blue_shift; | |
32889 | gint blue_prec; | |
32890 | }; | |
32891 | ||
32892 | GType gdk_visual_get_type (void) __attribute__((__const__)); | |
32893 | ||
32894 | ||
32895 | gint gdk_visual_get_best_depth (void); | |
32896 | GdkVisualType gdk_visual_get_best_type (void); | |
32897 | GdkVisual* gdk_visual_get_system (void); | |
32898 | GdkVisual* gdk_visual_get_best (void); | |
32899 | GdkVisual* gdk_visual_get_best_with_depth (gint depth); | |
32900 | GdkVisual* gdk_visual_get_best_with_type (GdkVisualType visual_type); | |
32901 | GdkVisual* gdk_visual_get_best_with_both (gint depth, | |
32902 | GdkVisualType visual_type); | |
32903 | ||
32904 | void gdk_query_depths (gint **depths, | |
32905 | gint *count); | |
32906 | void gdk_query_visual_types (GdkVisualType **visual_types, | |
32907 | gint *count); | |
32908 | ||
32909 | GList* gdk_list_visuals (void); | |
32910 | ||
32911 | ||
32912 | GdkScreen *gdk_visual_get_screen (GdkVisual *visual); | |
32913 | ||
32914 | ||
32915 | #define gdk_visual_ref(v) g_object_ref(v) | |
32916 | #define gdk_visual_unref(v) g_object_unref(v) | |
32917 | ||
32918 | ||
32919 | ||
32920 | # 55 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
32921 | # 1 "/usr/include/gtk-2.0/gdk/gdkwindow.h" 1 | |
32922 | # 28 "/usr/include/gtk-2.0/gdk/gdkwindow.h" | |
32923 | #define __GDK_WINDOW_H__ | |
32924 | ||
32925 | ||
32926 | ||
32927 | ||
32928 | ||
32929 | ||
32930 | ||
32931 | typedef struct _GdkGeometry GdkGeometry; | |
32932 | typedef struct _GdkWindowAttr GdkWindowAttr; | |
32933 | typedef struct _GdkPointerHooks GdkPointerHooks; | |
32934 | # 49 "/usr/include/gtk-2.0/gdk/gdkwindow.h" | |
32935 | typedef enum | |
32936 | { | |
32937 | GDK_INPUT_OUTPUT, | |
32938 | GDK_INPUT_ONLY | |
32939 | } GdkWindowClass; | |
32940 | # 68 "/usr/include/gtk-2.0/gdk/gdkwindow.h" | |
32941 | typedef enum | |
32942 | { | |
32943 | GDK_WINDOW_ROOT, | |
32944 | GDK_WINDOW_TOPLEVEL, | |
32945 | GDK_WINDOW_CHILD, | |
32946 | GDK_WINDOW_DIALOG, | |
32947 | GDK_WINDOW_TEMP, | |
32948 | GDK_WINDOW_FOREIGN | |
32949 | } GdkWindowType; | |
32950 | # 86 "/usr/include/gtk-2.0/gdk/gdkwindow.h" | |
32951 | typedef enum | |
32952 | { | |
32953 | GDK_WA_TITLE = 1 << 1, | |
32954 | GDK_WA_X = 1 << 2, | |
32955 | GDK_WA_Y = 1 << 3, | |
32956 | GDK_WA_CURSOR = 1 << 4, | |
32957 | GDK_WA_COLORMAP = 1 << 5, | |
32958 | GDK_WA_VISUAL = 1 << 6, | |
32959 | GDK_WA_WMCLASS = 1 << 7, | |
32960 | GDK_WA_NOREDIR = 1 << 8 | |
32961 | } GdkWindowAttributesType; | |
32962 | ||
32963 | ||
32964 | ||
32965 | typedef enum | |
32966 | { | |
32967 | GDK_HINT_POS = 1 << 0, | |
32968 | GDK_HINT_MIN_SIZE = 1 << 1, | |
32969 | GDK_HINT_MAX_SIZE = 1 << 2, | |
32970 | GDK_HINT_BASE_SIZE = 1 << 3, | |
32971 | GDK_HINT_ASPECT = 1 << 4, | |
32972 | GDK_HINT_RESIZE_INC = 1 << 5, | |
32973 | GDK_HINT_WIN_GRAVITY = 1 << 6, | |
32974 | GDK_HINT_USER_POS = 1 << 7, | |
32975 | GDK_HINT_USER_SIZE = 1 << 8 | |
32976 | } GdkWindowHints; | |
32977 | # 126 "/usr/include/gtk-2.0/gdk/gdkwindow.h" | |
32978 | typedef enum | |
32979 | { | |
32980 | GDK_WINDOW_TYPE_HINT_NORMAL, | |
32981 | GDK_WINDOW_TYPE_HINT_DIALOG, | |
32982 | GDK_WINDOW_TYPE_HINT_MENU, | |
32983 | GDK_WINDOW_TYPE_HINT_TOOLBAR, | |
32984 | GDK_WINDOW_TYPE_HINT_SPLASHSCREEN, | |
32985 | GDK_WINDOW_TYPE_HINT_UTILITY, | |
32986 | GDK_WINDOW_TYPE_HINT_DOCK, | |
32987 | GDK_WINDOW_TYPE_HINT_DESKTOP | |
32988 | } GdkWindowTypeHint; | |
32989 | ||
32990 | ||
32991 | ||
32992 | ||
32993 | ||
32994 | ||
32995 | ||
32996 | typedef enum | |
32997 | { | |
32998 | GDK_DECOR_ALL = 1 << 0, | |
32999 | GDK_DECOR_BORDER = 1 << 1, | |
33000 | GDK_DECOR_RESIZEH = 1 << 2, | |
33001 | GDK_DECOR_TITLE = 1 << 3, | |
33002 | GDK_DECOR_MENU = 1 << 4, | |
33003 | GDK_DECOR_MINIMIZE = 1 << 5, | |
33004 | GDK_DECOR_MAXIMIZE = 1 << 6 | |
33005 | } GdkWMDecoration; | |
33006 | ||
33007 | typedef enum | |
33008 | { | |
33009 | GDK_FUNC_ALL = 1 << 0, | |
33010 | GDK_FUNC_RESIZE = 1 << 1, | |
33011 | GDK_FUNC_MOVE = 1 << 2, | |
33012 | GDK_FUNC_MINIMIZE = 1 << 3, | |
33013 | GDK_FUNC_MAXIMIZE = 1 << 4, | |
33014 | GDK_FUNC_CLOSE = 1 << 5 | |
33015 | } GdkWMFunction; | |
33016 | ||
33017 | ||
33018 | ||
33019 | ||
33020 | ||
33021 | typedef enum | |
33022 | { | |
33023 | GDK_GRAVITY_NORTH_WEST = 1, | |
33024 | GDK_GRAVITY_NORTH, | |
33025 | GDK_GRAVITY_NORTH_EAST, | |
33026 | GDK_GRAVITY_WEST, | |
33027 | GDK_GRAVITY_CENTER, | |
33028 | GDK_GRAVITY_EAST, | |
33029 | GDK_GRAVITY_SOUTH_WEST, | |
33030 | GDK_GRAVITY_SOUTH, | |
33031 | GDK_GRAVITY_SOUTH_EAST, | |
33032 | GDK_GRAVITY_STATIC | |
33033 | } GdkGravity; | |
33034 | ||
33035 | ||
33036 | typedef enum | |
33037 | { | |
33038 | GDK_WINDOW_EDGE_NORTH_WEST, | |
33039 | GDK_WINDOW_EDGE_NORTH, | |
33040 | GDK_WINDOW_EDGE_NORTH_EAST, | |
33041 | GDK_WINDOW_EDGE_WEST, | |
33042 | GDK_WINDOW_EDGE_EAST, | |
33043 | GDK_WINDOW_EDGE_SOUTH_WEST, | |
33044 | GDK_WINDOW_EDGE_SOUTH, | |
33045 | GDK_WINDOW_EDGE_SOUTH_EAST | |
33046 | } GdkWindowEdge; | |
33047 | ||
33048 | struct _GdkWindowAttr | |
33049 | { | |
33050 | gchar *title; | |
33051 | gint event_mask; | |
33052 | gint x, y; | |
33053 | gint width; | |
33054 | gint height; | |
33055 | GdkWindowClass wclass; | |
33056 | GdkVisual *visual; | |
33057 | GdkColormap *colormap; | |
33058 | GdkWindowType window_type; | |
33059 | GdkCursor *cursor; | |
33060 | gchar *wmclass_name; | |
33061 | gchar *wmclass_class; | |
33062 | gboolean override_redirect; | |
33063 | }; | |
33064 | ||
33065 | struct _GdkGeometry | |
33066 | { | |
33067 | gint min_width; | |
33068 | gint min_height; | |
33069 | gint max_width; | |
33070 | gint max_height; | |
33071 | gint base_width; | |
33072 | gint base_height; | |
33073 | gint width_inc; | |
33074 | gint height_inc; | |
33075 | gdouble min_aspect; | |
33076 | gdouble max_aspect; | |
33077 | GdkGravity win_gravity; | |
33078 | }; | |
33079 | ||
33080 | struct _GdkPointerHooks | |
33081 | { | |
33082 | GdkWindow* (*get_pointer) (GdkWindow *window, | |
33083 | gint *x, | |
33084 | gint *y, | |
33085 | GdkModifierType *mask); | |
33086 | GdkWindow* (*window_at_pointer) (GdkScreen *screen, | |
33087 | gint *win_x, | |
33088 | gint *win_y); | |
33089 | }; | |
33090 | ||
33091 | typedef struct _GdkWindowObject GdkWindowObject; | |
33092 | typedef struct _GdkWindowObjectClass GdkWindowObjectClass; | |
33093 | ||
33094 | #define GDK_TYPE_WINDOW (gdk_window_object_get_type ()) | |
33095 | #define GDK_WINDOW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WINDOW, GdkWindow)) | |
33096 | #define GDK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WINDOW, GdkWindowObjectClass)) | |
33097 | #define GDK_IS_WINDOW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WINDOW)) | |
33098 | #define GDK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WINDOW)) | |
33099 | #define GDK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WINDOW, GdkWindowObjectClass)) | |
33100 | #define GDK_WINDOW_OBJECT(object) ((GdkWindowObject *) GDK_WINDOW (object)) | |
33101 | ||
33102 | struct _GdkWindowObject | |
33103 | { | |
33104 | GdkDrawable parent_instance; | |
33105 | ||
33106 | GdkDrawable *impl; | |
33107 | ||
33108 | GdkWindowObject *parent; | |
33109 | ||
33110 | gpointer user_data; | |
33111 | ||
33112 | gint x; | |
33113 | gint y; | |
33114 | ||
33115 | gint extension_events; | |
33116 | ||
33117 | GList *filters; | |
33118 | GList *children; | |
33119 | ||
33120 | GdkColor bg_color; | |
33121 | GdkPixmap *bg_pixmap; | |
33122 | ||
33123 | GSList *paint_stack; | |
33124 | ||
33125 | GdkRegion *update_area; | |
33126 | guint update_freeze_count; | |
33127 | ||
33128 | guint8 window_type; | |
33129 | guint8 depth; | |
33130 | guint8 resize_count; | |
33131 | ||
33132 | GdkWindowState state; | |
33133 | ||
33134 | guint guffaw_gravity : 1; | |
33135 | guint input_only : 1; | |
33136 | guint modal_hint : 1; | |
33137 | ||
33138 | guint destroyed : 2; | |
33139 | ||
33140 | guint accept_focus : 1; | |
33141 | guint focus_on_map : 1; | |
33142 | guint shaped : 1; | |
33143 | ||
33144 | GdkEventMask event_mask; | |
33145 | }; | |
33146 | ||
33147 | struct _GdkWindowObjectClass | |
33148 | { | |
33149 | GdkDrawableClass parent_class; | |
33150 | }; | |
33151 | ||
33152 | ||
33153 | ||
33154 | GType gdk_window_object_get_type (void) __attribute__((__const__)); | |
33155 | GdkWindow* gdk_window_new (GdkWindow *parent, | |
33156 | GdkWindowAttr *attributes, | |
33157 | gint attributes_mask); | |
33158 | void gdk_window_destroy (GdkWindow *window); | |
33159 | GdkWindowType gdk_window_get_window_type (GdkWindow *window); | |
33160 | GdkWindow* gdk_window_at_pointer (gint *win_x, | |
33161 | gint *win_y); | |
33162 | void gdk_window_show (GdkWindow *window); | |
33163 | void gdk_window_hide (GdkWindow *window); | |
33164 | void gdk_window_withdraw (GdkWindow *window); | |
33165 | void gdk_window_show_unraised (GdkWindow *window); | |
33166 | void gdk_window_move (GdkWindow *window, | |
33167 | gint x, | |
33168 | gint y); | |
33169 | void gdk_window_resize (GdkWindow *window, | |
33170 | gint width, | |
33171 | gint height); | |
33172 | void gdk_window_move_resize (GdkWindow *window, | |
33173 | gint x, | |
33174 | gint y, | |
33175 | gint width, | |
33176 | gint height); | |
33177 | void gdk_window_reparent (GdkWindow *window, | |
33178 | GdkWindow *new_parent, | |
33179 | gint x, | |
33180 | gint y); | |
33181 | void gdk_window_clear (GdkWindow *window); | |
33182 | void gdk_window_clear_area (GdkWindow *window, | |
33183 | gint x, | |
33184 | gint y, | |
33185 | gint width, | |
33186 | gint height); | |
33187 | void gdk_window_clear_area_e (GdkWindow *window, | |
33188 | gint x, | |
33189 | gint y, | |
33190 | gint width, | |
33191 | gint height); | |
33192 | void gdk_window_raise (GdkWindow *window); | |
33193 | void gdk_window_lower (GdkWindow *window); | |
33194 | void gdk_window_focus (GdkWindow *window, | |
33195 | guint32 timestamp); | |
33196 | void gdk_window_set_user_data (GdkWindow *window, | |
33197 | gpointer user_data); | |
33198 | void gdk_window_set_override_redirect (GdkWindow *window, | |
33199 | gboolean override_redirect); | |
33200 | void gdk_window_set_accept_focus (GdkWindow *window, | |
33201 | gboolean accept_focus); | |
33202 | void gdk_window_set_focus_on_map (GdkWindow *window, | |
33203 | gboolean focus_on_map); | |
33204 | void gdk_window_add_filter (GdkWindow *window, | |
33205 | GdkFilterFunc function, | |
33206 | gpointer data); | |
33207 | void gdk_window_remove_filter (GdkWindow *window, | |
33208 | GdkFilterFunc function, | |
33209 | gpointer data); | |
33210 | void gdk_window_scroll (GdkWindow *window, | |
33211 | gint dx, | |
33212 | gint dy); | |
33213 | void gdk_window_move_region (GdkWindow *window, | |
33214 | GdkRegion *region, | |
33215 | gint dx, | |
33216 | gint dy); | |
33217 | ||
33218 | ||
33219 | ||
33220 | ||
33221 | ||
33222 | ||
33223 | ||
33224 | void gdk_window_shape_combine_mask (GdkWindow *window, | |
33225 | GdkBitmap *mask, | |
33226 | gint x, | |
33227 | gint y); | |
33228 | void gdk_window_shape_combine_region (GdkWindow *window, | |
33229 | GdkRegion *shape_region, | |
33230 | gint offset_x, | |
33231 | gint offset_y); | |
33232 | # 388 "/usr/include/gtk-2.0/gdk/gdkwindow.h" | |
33233 | void gdk_window_set_child_shapes (GdkWindow *window); | |
33234 | # 397 "/usr/include/gtk-2.0/gdk/gdkwindow.h" | |
33235 | void gdk_window_merge_child_shapes (GdkWindow *window); | |
33236 | ||
33237 | ||
33238 | ||
33239 | ||
33240 | ||
33241 | ||
33242 | ||
33243 | gboolean gdk_window_is_visible (GdkWindow *window); | |
33244 | gboolean gdk_window_is_viewable (GdkWindow *window); | |
33245 | ||
33246 | GdkWindowState gdk_window_get_state (GdkWindow *window); | |
33247 | ||
33248 | ||
33249 | ||
33250 | ||
33251 | gboolean gdk_window_set_static_gravities (GdkWindow *window, | |
33252 | gboolean use_static); | |
33253 | ||
33254 | ||
33255 | ||
33256 | GdkWindow* gdk_window_foreign_new (GdkNativeWindow anid); | |
33257 | GdkWindow* gdk_window_lookup (GdkNativeWindow anid); | |
33258 | ||
33259 | GdkWindow *gdk_window_foreign_new_for_display (GdkDisplay *display, | |
33260 | GdkNativeWindow anid); | |
33261 | GdkWindow* gdk_window_lookup_for_display (GdkDisplay *display, | |
33262 | GdkNativeWindow anid); | |
33263 | ||
33264 | ||
33265 | ||
33266 | ||
33267 | ||
33268 | void gdk_window_set_hints (GdkWindow *window, | |
33269 | gint x, | |
33270 | gint y, | |
33271 | gint min_width, | |
33272 | gint min_height, | |
33273 | gint max_width, | |
33274 | gint max_height, | |
33275 | gint flags); | |
33276 | ||
33277 | void gdk_window_set_type_hint (GdkWindow *window, | |
33278 | GdkWindowTypeHint hint); | |
33279 | void gdk_window_set_modal_hint (GdkWindow *window, | |
33280 | gboolean modal); | |
33281 | ||
33282 | void gdk_window_set_skip_taskbar_hint (GdkWindow *window, | |
33283 | gboolean skips_taskbar); | |
33284 | void gdk_window_set_skip_pager_hint (GdkWindow *window, | |
33285 | gboolean skips_pager); | |
33286 | void gdk_window_set_urgency_hint (GdkWindow *window, | |
33287 | gboolean urgent); | |
33288 | ||
33289 | void gdk_window_set_geometry_hints (GdkWindow *window, | |
33290 | GdkGeometry *geometry, | |
33291 | GdkWindowHints geom_mask); | |
33292 | void gdk_set_sm_client_id (const gchar *sm_client_id); | |
33293 | ||
33294 | void gdk_window_begin_paint_rect (GdkWindow *window, | |
33295 | GdkRectangle *rectangle); | |
33296 | void gdk_window_begin_paint_region (GdkWindow *window, | |
33297 | GdkRegion *region); | |
33298 | void gdk_window_end_paint (GdkWindow *window); | |
33299 | ||
33300 | void gdk_window_set_title (GdkWindow *window, | |
33301 | const gchar *title); | |
33302 | void gdk_window_set_role (GdkWindow *window, | |
33303 | const gchar *role); | |
33304 | void gdk_window_set_transient_for (GdkWindow *window, | |
33305 | GdkWindow *parent); | |
33306 | void gdk_window_set_background (GdkWindow *window, | |
33307 | const GdkColor *color); | |
33308 | void gdk_window_set_back_pixmap (GdkWindow *window, | |
33309 | GdkPixmap *pixmap, | |
33310 | gboolean parent_relative); | |
33311 | void gdk_window_set_cursor (GdkWindow *window, | |
33312 | GdkCursor *cursor); | |
33313 | void gdk_window_get_user_data (GdkWindow *window, | |
33314 | gpointer *data); | |
33315 | void gdk_window_get_geometry (GdkWindow *window, | |
33316 | gint *x, | |
33317 | gint *y, | |
33318 | gint *width, | |
33319 | gint *height, | |
33320 | gint *depth); | |
33321 | void gdk_window_get_position (GdkWindow *window, | |
33322 | gint *x, | |
33323 | gint *y); | |
33324 | gint gdk_window_get_origin (GdkWindow *window, | |
33325 | gint *x, | |
33326 | gint *y); | |
33327 | ||
33328 | ||
33329 | ||
33330 | gboolean gdk_window_get_deskrelative_origin (GdkWindow *window, | |
33331 | gint *x, | |
33332 | gint *y); | |
33333 | ||
33334 | ||
33335 | void gdk_window_get_root_origin (GdkWindow *window, | |
33336 | gint *x, | |
33337 | gint *y); | |
33338 | void gdk_window_get_frame_extents (GdkWindow *window, | |
33339 | GdkRectangle *rect); | |
33340 | GdkWindow* gdk_window_get_pointer (GdkWindow *window, | |
33341 | gint *x, | |
33342 | gint *y, | |
33343 | GdkModifierType *mask); | |
33344 | GdkWindow * gdk_window_get_parent (GdkWindow *window); | |
33345 | GdkWindow * gdk_window_get_toplevel (GdkWindow *window); | |
33346 | ||
33347 | GList * gdk_window_get_children (GdkWindow *window); | |
33348 | GList * gdk_window_peek_children (GdkWindow *window); | |
33349 | GdkEventMask gdk_window_get_events (GdkWindow *window); | |
33350 | void gdk_window_set_events (GdkWindow *window, | |
33351 | GdkEventMask event_mask); | |
33352 | ||
33353 | void gdk_window_set_icon_list (GdkWindow *window, | |
33354 | GList *pixbufs); | |
33355 | void gdk_window_set_icon (GdkWindow *window, | |
33356 | GdkWindow *icon_window, | |
33357 | GdkPixmap *pixmap, | |
33358 | GdkBitmap *mask); | |
33359 | void gdk_window_set_icon_name (GdkWindow *window, | |
33360 | const gchar *name); | |
33361 | void gdk_window_set_group (GdkWindow *window, | |
33362 | GdkWindow *leader); | |
33363 | GdkWindow* gdk_window_get_group (GdkWindow *window); | |
33364 | void gdk_window_set_decorations (GdkWindow *window, | |
33365 | GdkWMDecoration decorations); | |
33366 | gboolean gdk_window_get_decorations (GdkWindow *window, | |
33367 | GdkWMDecoration *decorations); | |
33368 | void gdk_window_set_functions (GdkWindow *window, | |
33369 | GdkWMFunction functions); | |
33370 | ||
33371 | GList * gdk_window_get_toplevels (void); | |
33372 | ||
33373 | ||
33374 | void gdk_window_iconify (GdkWindow *window); | |
33375 | void gdk_window_deiconify (GdkWindow *window); | |
33376 | void gdk_window_stick (GdkWindow *window); | |
33377 | void gdk_window_unstick (GdkWindow *window); | |
33378 | void gdk_window_maximize (GdkWindow *window); | |
33379 | void gdk_window_unmaximize (GdkWindow *window); | |
33380 | void gdk_window_fullscreen (GdkWindow *window); | |
33381 | void gdk_window_unfullscreen (GdkWindow *window); | |
33382 | void gdk_window_set_keep_above (GdkWindow *window, | |
33383 | gboolean setting); | |
33384 | void gdk_window_set_keep_below (GdkWindow *window, | |
33385 | gboolean setting); | |
33386 | ||
33387 | void gdk_window_register_dnd (GdkWindow *window); | |
33388 | ||
33389 | void gdk_window_begin_resize_drag (GdkWindow *window, | |
33390 | GdkWindowEdge edge, | |
33391 | gint button, | |
33392 | gint root_x, | |
33393 | gint root_y, | |
33394 | guint32 timestamp); | |
33395 | void gdk_window_begin_move_drag (GdkWindow *window, | |
33396 | gint button, | |
33397 | gint root_x, | |
33398 | gint root_y, | |
33399 | guint32 timestamp); | |
33400 | ||
33401 | ||
33402 | void gdk_window_invalidate_rect (GdkWindow *window, | |
33403 | GdkRectangle *rect, | |
33404 | gboolean invalidate_children); | |
33405 | void gdk_window_invalidate_region (GdkWindow *window, | |
33406 | GdkRegion *region, | |
33407 | gboolean invalidate_children); | |
33408 | void gdk_window_invalidate_maybe_recurse (GdkWindow *window, | |
33409 | GdkRegion *region, | |
33410 | gboolean (*child_func) (GdkWindow *, gpointer), | |
33411 | gpointer user_data); | |
33412 | GdkRegion *gdk_window_get_update_area (GdkWindow *window); | |
33413 | ||
33414 | void gdk_window_freeze_updates (GdkWindow *window); | |
33415 | void gdk_window_thaw_updates (GdkWindow *window); | |
33416 | ||
33417 | void gdk_window_process_all_updates (void); | |
33418 | void gdk_window_process_updates (GdkWindow *window, | |
33419 | gboolean update_children); | |
33420 | ||
33421 | ||
33422 | void gdk_window_set_debug_updates (gboolean setting); | |
33423 | ||
33424 | void gdk_window_constrain_size (GdkGeometry *geometry, | |
33425 | guint flags, | |
33426 | gint width, | |
33427 | gint height, | |
33428 | gint *new_width, | |
33429 | gint *new_height); | |
33430 | ||
33431 | void gdk_window_get_internal_paint_info (GdkWindow *window, | |
33432 | GdkDrawable **real_drawable, | |
33433 | gint *x_offset, | |
33434 | gint *y_offset); | |
33435 | ||
33436 | void gdk_window_enable_synchronized_configure (GdkWindow *window); | |
33437 | void gdk_window_configure_finished (GdkWindow *window); | |
33438 | ||
33439 | ||
33440 | GdkPointerHooks *gdk_set_pointer_hooks (const GdkPointerHooks *new_hooks); | |
33441 | ||
33442 | ||
33443 | GdkWindow *gdk_get_default_root_window (void); | |
33444 | ||
33445 | ||
33446 | #define GDK_ROOT_PARENT() (gdk_get_default_root_window ()) | |
33447 | #define gdk_window_get_size gdk_drawable_get_size | |
33448 | #define gdk_window_get_type gdk_window_get_window_type | |
33449 | #define gdk_window_get_colormap gdk_drawable_get_colormap | |
33450 | #define gdk_window_set_colormap gdk_drawable_set_colormap | |
33451 | #define gdk_window_get_visual gdk_drawable_get_visual | |
33452 | #define gdk_window_ref gdk_drawable_ref | |
33453 | #define gdk_window_unref gdk_drawable_unref | |
33454 | ||
33455 | #define gdk_window_copy_area(drawable,gc,x,y,source_drawable,source_x,source_y,width,height) gdk_draw_pixmap(drawable,gc,source_drawable,source_x,source_y,x,y,width,height) | |
33456 | ||
33457 | ||
33458 | ||
33459 | ||
33460 | # 56 "/usr/include/gtk-2.0/gdk/gdk.h" 2 | |
33461 | ||
33462 | ||
33463 | ||
33464 | ||
33465 | ||
33466 | ||
33467 | #define GDK_PRIORITY_EVENTS (G_PRIORITY_DEFAULT) | |
33468 | void gdk_parse_args (gint *argc, | |
33469 | gchar ***argv); | |
33470 | void gdk_init (gint *argc, | |
33471 | gchar ***argv); | |
33472 | gboolean gdk_init_check (gint *argc, | |
33473 | gchar ***argv); | |
33474 | void gdk_add_option_entries_libgtk_only (GOptionGroup *group); | |
33475 | void gdk_pre_parse_libgtk_only (void); | |
33476 | ||
33477 | ||
33478 | void gdk_exit (gint error_code); | |
33479 | ||
33480 | gchar* gdk_set_locale (void); | |
33481 | ||
33482 | const char *gdk_get_program_class (void); | |
33483 | void gdk_set_program_class (const char *program_class); | |
33484 | ||
33485 | ||
33486 | ||
33487 | void gdk_error_trap_push (void); | |
33488 | gint gdk_error_trap_pop (void); | |
33489 | ||
33490 | ||
33491 | void gdk_set_use_xshm (gboolean use_xshm); | |
33492 | gboolean gdk_get_use_xshm (void); | |
33493 | ||
33494 | ||
33495 | gchar* gdk_get_display (void); | |
33496 | const gchar* gdk_get_display_arg_name (void); | |
33497 | ||
33498 | ||
33499 | ||
33500 | gint gdk_input_add_full (gint source, | |
33501 | GdkInputCondition condition, | |
33502 | GdkInputFunction function, | |
33503 | gpointer data, | |
33504 | GdkDestroyNotify destroy); | |
33505 | ||
33506 | ||
33507 | gint gdk_input_add (gint source, | |
33508 | GdkInputCondition condition, | |
33509 | GdkInputFunction function, | |
33510 | gpointer data); | |
33511 | void gdk_input_remove (gint tag); | |
33512 | ||
33513 | ||
33514 | GdkGrabStatus gdk_pointer_grab (GdkWindow *window, | |
33515 | gboolean owner_events, | |
33516 | GdkEventMask event_mask, | |
33517 | GdkWindow *confine_to, | |
33518 | GdkCursor *cursor, | |
33519 | guint32 time_); | |
33520 | GdkGrabStatus gdk_keyboard_grab (GdkWindow *window, | |
33521 | gboolean owner_events, | |
33522 | guint32 time_); | |
33523 | ||
33524 | gboolean gdk_pointer_grab_info_libgtk_only (GdkDisplay *display, | |
33525 | GdkWindow **grab_window, | |
33526 | gboolean *owner_events); | |
33527 | gboolean gdk_keyboard_grab_info_libgtk_only (GdkDisplay *display, | |
33528 | GdkWindow **grab_window, | |
33529 | gboolean *owner_events); | |
33530 | ||
33531 | ||
33532 | void gdk_pointer_ungrab (guint32 time_); | |
33533 | void gdk_keyboard_ungrab (guint32 time_); | |
33534 | gboolean gdk_pointer_is_grabbed (void); | |
33535 | ||
33536 | gint gdk_screen_width (void) __attribute__((__const__)); | |
33537 | gint gdk_screen_height (void) __attribute__((__const__)); | |
33538 | ||
33539 | gint gdk_screen_width_mm (void) __attribute__((__const__)); | |
33540 | gint gdk_screen_height_mm (void) __attribute__((__const__)); | |
33541 | ||
33542 | void gdk_beep (void); | |
33543 | ||
33544 | ||
33545 | void gdk_flush (void); | |
33546 | ||
33547 | ||
33548 | void gdk_set_double_click_time (guint msec); | |
33549 | ||
33550 | ||
33551 | ||
33552 | ||
33553 | gboolean gdk_rectangle_intersect (GdkRectangle *src1, | |
33554 | GdkRectangle *src2, | |
33555 | GdkRectangle *dest); | |
33556 | void gdk_rectangle_union (GdkRectangle *src1, | |
33557 | GdkRectangle *src2, | |
33558 | GdkRectangle *dest); | |
33559 | ||
33560 | GType gdk_rectangle_get_type (void) __attribute__((__const__)); | |
33561 | ||
33562 | #define GDK_TYPE_RECTANGLE (gdk_rectangle_get_type ()) | |
33563 | ||
33564 | ||
33565 | ||
33566 | ||
33567 | gchar *gdk_wcstombs (const GdkWChar *src); | |
33568 | gint gdk_mbstowcs (GdkWChar *dest, | |
33569 | const gchar *src, | |
33570 | gint dest_max); | |
33571 | ||
33572 | ||
33573 | ||
33574 | ||
33575 | gboolean gdk_event_send_client_message (GdkEvent *event, | |
33576 | GdkNativeWindow winid); | |
33577 | void gdk_event_send_clientmessage_toall (GdkEvent *event); | |
33578 | ||
33579 | gboolean gdk_event_send_client_message_for_display (GdkDisplay *display, | |
33580 | GdkEvent *event, | |
33581 | GdkNativeWindow winid); | |
33582 | ||
33583 | void gdk_notify_startup_complete (void); | |
33584 | ||
33585 | ||
33586 | ||
33587 | ||
33588 | ||
33589 | extern GMutex *gdk_threads_mutex; | |
33590 | ||
33591 | ||
33592 | extern GCallback gdk_threads_lock; | |
33593 | extern GCallback gdk_threads_unlock; | |
33594 | ||
33595 | void gdk_threads_enter (void); | |
33596 | void gdk_threads_leave (void); | |
33597 | void gdk_threads_init (void); | |
33598 | void gdk_threads_set_lock_functions (GCallback enter_fn, | |
33599 | GCallback leave_fn); | |
33600 | ||
33601 | ||
33602 | #define GDK_THREADS_ENTER() G_STMT_START { if (gdk_threads_lock) (*gdk_threads_lock) (); } G_STMT_END | |
33603 | ||
33604 | ||
33605 | ||
33606 | #define GDK_THREADS_LEAVE() G_STMT_START { if (gdk_threads_unlock) (*gdk_threads_unlock) (); } G_STMT_END | |
33607 | # 210 "/usr/include/gtk-2.0/gdk/gdk.h" | |
33608 | ||
33609 | # 32 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
33610 | # 1 "/usr/include/gtk-2.0/gtk/gtkaboutdialog.h" 1 | |
33611 | # 26 "/usr/include/gtk-2.0/gtk/gtkaboutdialog.h" | |
33612 | #define __GTK_ABOUT_DIALOG_H__ | |
33613 | ||
33614 | # 1 "/usr/include/gtk-2.0/gtk/gtkdialog.h" 1 | |
33615 | # 28 "/usr/include/gtk-2.0/gtk/gtkdialog.h" | |
33616 | #define __GTK_DIALOG_H__ | |
33617 | ||
33618 | ||
33619 | ||
33620 | # 1 "/usr/include/gtk-2.0/gtk/gtkwindow.h" 1 | |
33621 | # 28 "/usr/include/gtk-2.0/gtk/gtkwindow.h" | |
33622 | #define __GTK_WINDOW_H__ | |
33623 | ||
33624 | ||
33625 | ||
33626 | # 1 "/usr/include/gtk-2.0/gtk/gtkaccelgroup.h" 1 | |
33627 | # 28 "/usr/include/gtk-2.0/gtk/gtkaccelgroup.h" | |
33628 | #define __GTK_ACCEL_GROUP_H__ | |
33629 | ||
33630 | ||
33631 | ||
33632 | # 1 "/usr/include/gtk-2.0/gtk/gtkenums.h" 1 | |
33633 | # 28 "/usr/include/gtk-2.0/gtk/gtkenums.h" | |
33634 | #define __GTK_ENUMS_H__ | |
33635 | ||
33636 | ||
33637 | ||
33638 | ||
33639 | ||
33640 | ||
33641 | typedef enum | |
33642 | { | |
33643 | GTK_ANCHOR_CENTER, | |
33644 | GTK_ANCHOR_NORTH, | |
33645 | GTK_ANCHOR_NORTH_WEST, | |
33646 | GTK_ANCHOR_NORTH_EAST, | |
33647 | GTK_ANCHOR_SOUTH, | |
33648 | GTK_ANCHOR_SOUTH_WEST, | |
33649 | GTK_ANCHOR_SOUTH_EAST, | |
33650 | GTK_ANCHOR_WEST, | |
33651 | GTK_ANCHOR_EAST, | |
33652 | GTK_ANCHOR_N = GTK_ANCHOR_NORTH, | |
33653 | GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST, | |
33654 | GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST, | |
33655 | GTK_ANCHOR_S = GTK_ANCHOR_SOUTH, | |
33656 | GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST, | |
33657 | GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST, | |
33658 | GTK_ANCHOR_W = GTK_ANCHOR_WEST, | |
33659 | GTK_ANCHOR_E = GTK_ANCHOR_EAST | |
33660 | } GtkAnchorType; | |
33661 | ||
33662 | ||
33663 | typedef enum | |
33664 | { | |
33665 | GTK_ARROW_UP, | |
33666 | GTK_ARROW_DOWN, | |
33667 | GTK_ARROW_LEFT, | |
33668 | GTK_ARROW_RIGHT | |
33669 | } GtkArrowType; | |
33670 | ||
33671 | ||
33672 | typedef enum | |
33673 | { | |
33674 | GTK_EXPAND = 1 << 0, | |
33675 | GTK_SHRINK = 1 << 1, | |
33676 | GTK_FILL = 1 << 2 | |
33677 | } GtkAttachOptions; | |
33678 | ||
33679 | ||
33680 | typedef enum | |
33681 | { | |
33682 | GTK_BUTTONBOX_DEFAULT_STYLE, | |
33683 | GTK_BUTTONBOX_SPREAD, | |
33684 | GTK_BUTTONBOX_EDGE, | |
33685 | GTK_BUTTONBOX_START, | |
33686 | GTK_BUTTONBOX_END | |
33687 | } GtkButtonBoxStyle; | |
33688 | ||
33689 | ||
33690 | typedef enum | |
33691 | { | |
33692 | GTK_CURVE_TYPE_LINEAR, | |
33693 | GTK_CURVE_TYPE_SPLINE, | |
33694 | GTK_CURVE_TYPE_FREE | |
33695 | } GtkCurveType; | |
33696 | ||
33697 | typedef enum { | |
33698 | GTK_DELETE_CHARS, | |
33699 | GTK_DELETE_WORD_ENDS, | |
33700 | ||
33701 | ||
33702 | GTK_DELETE_WORDS, | |
33703 | GTK_DELETE_DISPLAY_LINES, | |
33704 | GTK_DELETE_DISPLAY_LINE_ENDS, | |
33705 | GTK_DELETE_PARAGRAPH_ENDS, | |
33706 | GTK_DELETE_PARAGRAPHS, | |
33707 | GTK_DELETE_WHITESPACE | |
33708 | } GtkDeleteType; | |
33709 | ||
33710 | ||
33711 | typedef enum | |
33712 | { | |
33713 | GTK_DIR_TAB_FORWARD, | |
33714 | GTK_DIR_TAB_BACKWARD, | |
33715 | GTK_DIR_UP, | |
33716 | GTK_DIR_DOWN, | |
33717 | GTK_DIR_LEFT, | |
33718 | GTK_DIR_RIGHT | |
33719 | } GtkDirectionType; | |
33720 | ||
33721 | ||
33722 | typedef enum | |
33723 | { | |
33724 | GTK_EXPANDER_COLLAPSED, | |
33725 | GTK_EXPANDER_SEMI_COLLAPSED, | |
33726 | GTK_EXPANDER_SEMI_EXPANDED, | |
33727 | GTK_EXPANDER_EXPANDED | |
33728 | } GtkExpanderStyle; | |
33729 | ||
33730 | ||
33731 | typedef enum | |
33732 | { | |
33733 | GTK_ICON_SIZE_INVALID, | |
33734 | GTK_ICON_SIZE_MENU, | |
33735 | GTK_ICON_SIZE_SMALL_TOOLBAR, | |
33736 | GTK_ICON_SIZE_LARGE_TOOLBAR, | |
33737 | GTK_ICON_SIZE_BUTTON, | |
33738 | GTK_ICON_SIZE_DND, | |
33739 | GTK_ICON_SIZE_DIALOG | |
33740 | } GtkIconSize; | |
33741 | ||
33742 | ||
33743 | ||
33744 | typedef enum | |
33745 | { | |
33746 | GTK_SIDE_TOP, | |
33747 | GTK_SIDE_BOTTOM, | |
33748 | GTK_SIDE_LEFT, | |
33749 | GTK_SIDE_RIGHT | |
33750 | } GtkSideType; | |
33751 | ||
33752 | ||
33753 | ||
33754 | typedef enum | |
33755 | { | |
33756 | GTK_TEXT_DIR_NONE, | |
33757 | GTK_TEXT_DIR_LTR, | |
33758 | GTK_TEXT_DIR_RTL | |
33759 | } GtkTextDirection; | |
33760 | ||
33761 | ||
33762 | typedef enum | |
33763 | { | |
33764 | GTK_JUSTIFY_LEFT, | |
33765 | GTK_JUSTIFY_RIGHT, | |
33766 | GTK_JUSTIFY_CENTER, | |
33767 | GTK_JUSTIFY_FILL | |
33768 | } GtkJustification; | |
33769 | ||
33770 | ||
33771 | ||
33772 | typedef enum | |
33773 | { | |
33774 | GTK_MATCH_ALL, | |
33775 | GTK_MATCH_ALL_TAIL, | |
33776 | GTK_MATCH_HEAD, | |
33777 | GTK_MATCH_TAIL, | |
33778 | GTK_MATCH_EXACT, | |
33779 | GTK_MATCH_LAST | |
33780 | } GtkMatchType; | |
33781 | ||
33782 | ||
33783 | ||
33784 | typedef enum | |
33785 | { | |
33786 | GTK_MENU_DIR_PARENT, | |
33787 | GTK_MENU_DIR_CHILD, | |
33788 | GTK_MENU_DIR_NEXT, | |
33789 | GTK_MENU_DIR_PREV | |
33790 | } GtkMenuDirectionType; | |
33791 | ||
33792 | typedef enum | |
33793 | { | |
33794 | GTK_PIXELS, | |
33795 | GTK_INCHES, | |
33796 | GTK_CENTIMETERS | |
33797 | } GtkMetricType; | |
33798 | ||
33799 | typedef enum | |
33800 | { | |
33801 | GTK_MOVEMENT_LOGICAL_POSITIONS, | |
33802 | GTK_MOVEMENT_VISUAL_POSITIONS, | |
33803 | GTK_MOVEMENT_WORDS, | |
33804 | GTK_MOVEMENT_DISPLAY_LINES, | |
33805 | GTK_MOVEMENT_DISPLAY_LINE_ENDS, | |
33806 | GTK_MOVEMENT_PARAGRAPHS, | |
33807 | GTK_MOVEMENT_PARAGRAPH_ENDS, | |
33808 | GTK_MOVEMENT_PAGES, | |
33809 | GTK_MOVEMENT_BUFFER_ENDS, | |
33810 | GTK_MOVEMENT_HORIZONTAL_PAGES | |
33811 | } GtkMovementStep; | |
33812 | ||
33813 | typedef enum | |
33814 | { | |
33815 | GTK_SCROLL_STEPS, | |
33816 | GTK_SCROLL_PAGES, | |
33817 | GTK_SCROLL_ENDS, | |
33818 | GTK_SCROLL_HORIZONTAL_STEPS, | |
33819 | GTK_SCROLL_HORIZONTAL_PAGES, | |
33820 | GTK_SCROLL_HORIZONTAL_ENDS | |
33821 | } GtkScrollStep; | |
33822 | ||
33823 | ||
33824 | typedef enum | |
33825 | { | |
33826 | GTK_ORIENTATION_HORIZONTAL, | |
33827 | GTK_ORIENTATION_VERTICAL | |
33828 | } GtkOrientation; | |
33829 | ||
33830 | ||
33831 | typedef enum | |
33832 | { | |
33833 | GTK_CORNER_TOP_LEFT, | |
33834 | GTK_CORNER_BOTTOM_LEFT, | |
33835 | GTK_CORNER_TOP_RIGHT, | |
33836 | GTK_CORNER_BOTTOM_RIGHT | |
33837 | } GtkCornerType; | |
33838 | ||
33839 | ||
33840 | typedef enum | |
33841 | { | |
33842 | GTK_PACK_START, | |
33843 | GTK_PACK_END | |
33844 | } GtkPackType; | |
33845 | ||
33846 | ||
33847 | typedef enum | |
33848 | { | |
33849 | GTK_PATH_PRIO_LOWEST = 0, | |
33850 | GTK_PATH_PRIO_GTK = 4, | |
33851 | GTK_PATH_PRIO_APPLICATION = 8, | |
33852 | GTK_PATH_PRIO_THEME = 10, | |
33853 | GTK_PATH_PRIO_RC = 12, | |
33854 | GTK_PATH_PRIO_HIGHEST = 15 | |
33855 | } GtkPathPriorityType; | |
33856 | #define GTK_PATH_PRIO_MASK 0x0f | |
33857 | ||
33858 | ||
33859 | typedef enum | |
33860 | { | |
33861 | GTK_PATH_WIDGET, | |
33862 | GTK_PATH_WIDGET_CLASS, | |
33863 | GTK_PATH_CLASS | |
33864 | } GtkPathType; | |
33865 | ||
33866 | ||
33867 | typedef enum | |
33868 | { | |
33869 | GTK_POLICY_ALWAYS, | |
33870 | GTK_POLICY_AUTOMATIC, | |
33871 | GTK_POLICY_NEVER | |
33872 | } GtkPolicyType; | |
33873 | ||
33874 | typedef enum | |
33875 | { | |
33876 | GTK_POS_LEFT, | |
33877 | GTK_POS_RIGHT, | |
33878 | GTK_POS_TOP, | |
33879 | GTK_POS_BOTTOM | |
33880 | } GtkPositionType; | |
33881 | ||
33882 | ||
33883 | typedef enum | |
33884 | { | |
33885 | GTK_PREVIEW_COLOR, | |
33886 | GTK_PREVIEW_GRAYSCALE | |
33887 | } GtkPreviewType; | |
33888 | ||
33889 | ||
33890 | ||
33891 | typedef enum | |
33892 | { | |
33893 | GTK_RELIEF_NORMAL, | |
33894 | GTK_RELIEF_HALF, | |
33895 | GTK_RELIEF_NONE | |
33896 | } GtkReliefStyle; | |
33897 | ||
33898 | ||
33899 | typedef enum | |
33900 | { | |
33901 | GTK_RESIZE_PARENT, | |
33902 | GTK_RESIZE_QUEUE, | |
33903 | GTK_RESIZE_IMMEDIATE | |
33904 | } GtkResizeMode; | |
33905 | ||
33906 | ||
33907 | ||
33908 | typedef enum | |
33909 | { | |
33910 | GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST, | |
33911 | GTK_RUN_LAST = G_SIGNAL_RUN_LAST, | |
33912 | GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST), | |
33913 | GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE, | |
33914 | GTK_RUN_ACTION = G_SIGNAL_ACTION, | |
33915 | GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS | |
33916 | } GtkSignalRunType; | |
33917 | ||
33918 | ||
33919 | ||
33920 | typedef enum | |
33921 | { | |
33922 | GTK_SCROLL_NONE, | |
33923 | GTK_SCROLL_JUMP, | |
33924 | GTK_SCROLL_STEP_BACKWARD, | |
33925 | GTK_SCROLL_STEP_FORWARD, | |
33926 | GTK_SCROLL_PAGE_BACKWARD, | |
33927 | GTK_SCROLL_PAGE_FORWARD, | |
33928 | GTK_SCROLL_STEP_UP, | |
33929 | GTK_SCROLL_STEP_DOWN, | |
33930 | GTK_SCROLL_PAGE_UP, | |
33931 | GTK_SCROLL_PAGE_DOWN, | |
33932 | GTK_SCROLL_STEP_LEFT, | |
33933 | GTK_SCROLL_STEP_RIGHT, | |
33934 | GTK_SCROLL_PAGE_LEFT, | |
33935 | GTK_SCROLL_PAGE_RIGHT, | |
33936 | GTK_SCROLL_START, | |
33937 | GTK_SCROLL_END | |
33938 | } GtkScrollType; | |
33939 | ||
33940 | ||
33941 | typedef enum | |
33942 | { | |
33943 | GTK_SELECTION_NONE, | |
33944 | GTK_SELECTION_SINGLE, | |
33945 | GTK_SELECTION_BROWSE, | |
33946 | GTK_SELECTION_MULTIPLE, | |
33947 | GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE | |
33948 | } GtkSelectionMode; | |
33949 | ||
33950 | ||
33951 | typedef enum | |
33952 | { | |
33953 | GTK_SHADOW_NONE, | |
33954 | GTK_SHADOW_IN, | |
33955 | GTK_SHADOW_OUT, | |
33956 | GTK_SHADOW_ETCHED_IN, | |
33957 | GTK_SHADOW_ETCHED_OUT | |
33958 | } GtkShadowType; | |
33959 | ||
33960 | ||
33961 | typedef enum | |
33962 | { | |
33963 | GTK_STATE_NORMAL, | |
33964 | GTK_STATE_ACTIVE, | |
33965 | GTK_STATE_PRELIGHT, | |
33966 | GTK_STATE_SELECTED, | |
33967 | GTK_STATE_INSENSITIVE | |
33968 | } GtkStateType; | |
33969 | ||
33970 | ||
33971 | ||
33972 | typedef enum | |
33973 | { | |
33974 | GTK_DIRECTION_LEFT, | |
33975 | GTK_DIRECTION_RIGHT | |
33976 | } GtkSubmenuDirection; | |
33977 | ||
33978 | ||
33979 | typedef enum | |
33980 | { | |
33981 | GTK_TOP_BOTTOM, | |
33982 | GTK_LEFT_RIGHT | |
33983 | } GtkSubmenuPlacement; | |
33984 | ||
33985 | ||
33986 | ||
33987 | typedef enum | |
33988 | { | |
33989 | GTK_TOOLBAR_ICONS, | |
33990 | GTK_TOOLBAR_TEXT, | |
33991 | GTK_TOOLBAR_BOTH, | |
33992 | GTK_TOOLBAR_BOTH_HORIZ | |
33993 | } GtkToolbarStyle; | |
33994 | ||
33995 | ||
33996 | typedef enum | |
33997 | { | |
33998 | GTK_UPDATE_CONTINUOUS, | |
33999 | GTK_UPDATE_DISCONTINUOUS, | |
34000 | GTK_UPDATE_DELAYED | |
34001 | } GtkUpdateType; | |
34002 | ||
34003 | ||
34004 | typedef enum | |
34005 | { | |
34006 | GTK_VISIBILITY_NONE, | |
34007 | GTK_VISIBILITY_PARTIAL, | |
34008 | GTK_VISIBILITY_FULL | |
34009 | } GtkVisibility; | |
34010 | ||
34011 | ||
34012 | typedef enum | |
34013 | { | |
34014 | GTK_WIN_POS_NONE, | |
34015 | GTK_WIN_POS_CENTER, | |
34016 | GTK_WIN_POS_MOUSE, | |
34017 | GTK_WIN_POS_CENTER_ALWAYS, | |
34018 | GTK_WIN_POS_CENTER_ON_PARENT | |
34019 | } GtkWindowPosition; | |
34020 | ||
34021 | ||
34022 | typedef enum | |
34023 | { | |
34024 | GTK_WINDOW_TOPLEVEL, | |
34025 | GTK_WINDOW_POPUP | |
34026 | } GtkWindowType; | |
34027 | ||
34028 | ||
34029 | typedef enum | |
34030 | { | |
34031 | GTK_WRAP_NONE, | |
34032 | GTK_WRAP_CHAR, | |
34033 | GTK_WRAP_WORD, | |
34034 | GTK_WRAP_WORD_CHAR | |
34035 | } GtkWrapMode; | |
34036 | ||
34037 | ||
34038 | typedef enum | |
34039 | { | |
34040 | GTK_SORT_ASCENDING, | |
34041 | GTK_SORT_DESCENDING | |
34042 | } GtkSortType; | |
34043 | ||
34044 | ||
34045 | typedef enum | |
34046 | { | |
34047 | GTK_IM_PREEDIT_NOTHING, | |
34048 | GTK_IM_PREEDIT_CALLBACK, | |
34049 | GTK_IM_PREEDIT_NONE | |
34050 | } GtkIMPreeditStyle; | |
34051 | ||
34052 | typedef enum | |
34053 | { | |
34054 | GTK_IM_STATUS_NOTHING, | |
34055 | GTK_IM_STATUS_CALLBACK, | |
34056 | GTK_IM_STATUS_NONE | |
34057 | } GtkIMStatusStyle; | |
34058 | ||
34059 | typedef enum | |
34060 | { | |
34061 | GTK_PACK_DIRECTION_LTR, | |
34062 | GTK_PACK_DIRECTION_RTL, | |
34063 | GTK_PACK_DIRECTION_TTB, | |
34064 | GTK_PACK_DIRECTION_BTT | |
34065 | } GtkPackDirection; | |
34066 | ||
34067 | ||
34068 | # 33 "/usr/include/gtk-2.0/gtk/gtkaccelgroup.h" 2 | |
34069 | ||
34070 | ||
34071 | ||
34072 | ||
34073 | ||
34074 | #define GTK_TYPE_ACCEL_GROUP (gtk_accel_group_get_type ()) | |
34075 | #define GTK_ACCEL_GROUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ACCEL_GROUP, GtkAccelGroup)) | |
34076 | #define GTK_ACCEL_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_GROUP, GtkAccelGroupClass)) | |
34077 | #define GTK_IS_ACCEL_GROUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ACCEL_GROUP)) | |
34078 | #define GTK_IS_ACCEL_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_GROUP)) | |
34079 | #define GTK_ACCEL_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_GROUP, GtkAccelGroupClass)) | |
34080 | ||
34081 | ||
34082 | ||
34083 | typedef enum | |
34084 | { | |
34085 | GTK_ACCEL_VISIBLE = 1 << 0, | |
34086 | GTK_ACCEL_LOCKED = 1 << 1, | |
34087 | GTK_ACCEL_MASK = 0x07 | |
34088 | } GtkAccelFlags; | |
34089 | ||
34090 | ||
34091 | ||
34092 | typedef struct _GtkAccelGroup GtkAccelGroup; | |
34093 | typedef struct _GtkAccelGroupClass GtkAccelGroupClass; | |
34094 | typedef struct _GtkAccelKey GtkAccelKey; | |
34095 | typedef struct _GtkAccelGroupEntry GtkAccelGroupEntry; | |
34096 | typedef gboolean (*GtkAccelGroupActivate) (GtkAccelGroup *accel_group, | |
34097 | GObject *acceleratable, | |
34098 | guint keyval, | |
34099 | GdkModifierType modifier); | |
34100 | ||
34101 | typedef gboolean (*GtkAccelGroupFindFunc) (GtkAccelKey *key, | |
34102 | GClosure *closure, | |
34103 | gpointer data); | |
34104 | ||
34105 | struct _GtkAccelGroup | |
34106 | { | |
34107 | GObject parent; | |
34108 | guint lock_count; | |
34109 | GdkModifierType modifier_mask; | |
34110 | GSList *acceleratables; | |
34111 | guint n_accels; | |
34112 | GtkAccelGroupEntry *priv_accels; | |
34113 | }; | |
34114 | ||
34115 | struct _GtkAccelGroupClass | |
34116 | { | |
34117 | GObjectClass parent_class; | |
34118 | ||
34119 | void (*accel_changed) (GtkAccelGroup *accel_group, | |
34120 | guint keyval, | |
34121 | GdkModifierType modifier, | |
34122 | GClosure *accel_closure); | |
34123 | ||
34124 | ||
34125 | void (*_gtk_reserved1) (void); | |
34126 | void (*_gtk_reserved2) (void); | |
34127 | void (*_gtk_reserved3) (void); | |
34128 | void (*_gtk_reserved4) (void); | |
34129 | }; | |
34130 | ||
34131 | struct _GtkAccelKey | |
34132 | { | |
34133 | guint accel_key; | |
34134 | GdkModifierType accel_mods; | |
34135 | guint accel_flags : 16; | |
34136 | }; | |
34137 | ||
34138 | ||
34139 | ||
34140 | GType gtk_accel_group_get_type (void) __attribute__((__const__)); | |
34141 | GtkAccelGroup* gtk_accel_group_new (void); | |
34142 | void gtk_accel_group_lock (GtkAccelGroup *accel_group); | |
34143 | void gtk_accel_group_unlock (GtkAccelGroup *accel_group); | |
34144 | void gtk_accel_group_connect (GtkAccelGroup *accel_group, | |
34145 | guint accel_key, | |
34146 | GdkModifierType accel_mods, | |
34147 | GtkAccelFlags accel_flags, | |
34148 | GClosure *closure); | |
34149 | void gtk_accel_group_connect_by_path (GtkAccelGroup *accel_group, | |
34150 | const gchar *accel_path, | |
34151 | GClosure *closure); | |
34152 | gboolean gtk_accel_group_disconnect (GtkAccelGroup *accel_group, | |
34153 | GClosure *closure); | |
34154 | gboolean gtk_accel_group_disconnect_key (GtkAccelGroup *accel_group, | |
34155 | guint accel_key, | |
34156 | GdkModifierType accel_mods); | |
34157 | gboolean gtk_accel_group_activate (GtkAccelGroup *accel_group, | |
34158 | GQuark accel_quark, | |
34159 | GObject *acceleratable, | |
34160 | guint accel_key, | |
34161 | GdkModifierType accel_mods); | |
34162 | ||
34163 | ||
34164 | ||
34165 | void _gtk_accel_group_attach (GtkAccelGroup *accel_group, | |
34166 | GObject *object); | |
34167 | void _gtk_accel_group_detach (GtkAccelGroup *accel_group, | |
34168 | GObject *object); | |
34169 | gboolean gtk_accel_groups_activate (GObject *object, | |
34170 | guint accel_key, | |
34171 | GdkModifierType accel_mods); | |
34172 | GSList* gtk_accel_groups_from_object (GObject *object); | |
34173 | GtkAccelKey* gtk_accel_group_find (GtkAccelGroup *accel_group, | |
34174 | GtkAccelGroupFindFunc find_func, | |
34175 | gpointer data); | |
34176 | GtkAccelGroup* gtk_accel_group_from_accel_closure (GClosure *closure); | |
34177 | ||
34178 | ||
34179 | ||
34180 | gboolean gtk_accelerator_valid (guint keyval, | |
34181 | GdkModifierType modifiers) __attribute__((__const__)); | |
34182 | void gtk_accelerator_parse (const gchar *accelerator, | |
34183 | guint *accelerator_key, | |
34184 | GdkModifierType *accelerator_mods); | |
34185 | gchar* gtk_accelerator_name (guint accelerator_key, | |
34186 | GdkModifierType accelerator_mods); | |
34187 | gchar* gtk_accelerator_get_label (guint accelerator_key, | |
34188 | GdkModifierType accelerator_mods); | |
34189 | void gtk_accelerator_set_default_mod_mask (GdkModifierType default_mod_mask); | |
34190 | guint gtk_accelerator_get_default_mod_mask (void); | |
34191 | ||
34192 | ||
34193 | ||
34194 | GtkAccelGroupEntry* gtk_accel_group_query (GtkAccelGroup *accel_group, | |
34195 | guint accel_key, | |
34196 | GdkModifierType accel_mods, | |
34197 | guint *n_entries); | |
34198 | ||
34199 | void _gtk_accel_group_reconnect (GtkAccelGroup *accel_group, | |
34200 | GQuark accel_path_quark); | |
34201 | ||
34202 | struct _GtkAccelGroupEntry | |
34203 | { | |
34204 | GtkAccelKey key; | |
34205 | GClosure *closure; | |
34206 | GQuark accel_path_quark; | |
34207 | }; | |
34208 | ||
34209 | ||
34210 | ||
34211 | #define gtk_accel_group_ref g_object_ref | |
34212 | #define gtk_accel_group_unref g_object_unref | |
34213 | ||
34214 | ||
34215 | ||
34216 | # 33 "/usr/include/gtk-2.0/gtk/gtkwindow.h" 2 | |
34217 | # 1 "/usr/include/gtk-2.0/gtk/gtkbin.h" 1 | |
34218 | # 28 "/usr/include/gtk-2.0/gtk/gtkbin.h" | |
34219 | #define __GTK_BIN_H__ | |
34220 | ||
34221 | ||
34222 | ||
34223 | # 1 "/usr/include/gtk-2.0/gtk/gtkcontainer.h" 1 | |
34224 | # 28 "/usr/include/gtk-2.0/gtk/gtkcontainer.h" | |
34225 | #define __GTK_CONTAINER_H__ | |
34226 | ||
34227 | ||
34228 | ||
34229 | ||
34230 | # 1 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 1 | |
34231 | # 28 "/usr/include/gtk-2.0/gtk/gtkwidget.h" | |
34232 | #define __GTK_WIDGET_H__ | |
34233 | ||
34234 | ||
34235 | ||
34236 | # 1 "/usr/include/gtk-2.0/gtk/gtkobject.h" 1 | |
34237 | # 28 "/usr/include/gtk-2.0/gtk/gtkobject.h" | |
34238 | #define __GTK_OBJECT_H__ | |
34239 | ||
34240 | ||
34241 | ||
34242 | # 1 "/usr/include/gtk-2.0/gtk/gtktypeutils.h" 1 | |
34243 | # 28 "/usr/include/gtk-2.0/gtk/gtktypeutils.h" | |
34244 | #define __GTK_TYPE_UTILS_H__ | |
34245 | ||
34246 | ||
34247 | ||
34248 | ||
34249 | ||
34250 | ||
34251 | # 43 "/usr/include/gtk-2.0/gtk/gtktypeutils.h" | |
34252 | #define GTK_TYPE_INVALID G_TYPE_INVALID | |
34253 | #define GTK_TYPE_NONE G_TYPE_NONE | |
34254 | #define GTK_TYPE_ENUM G_TYPE_ENUM | |
34255 | #define GTK_TYPE_FLAGS G_TYPE_FLAGS | |
34256 | ||
34257 | ||
34258 | #define GTK_TYPE_CHAR G_TYPE_CHAR | |
34259 | #define GTK_TYPE_UCHAR G_TYPE_UCHAR | |
34260 | #define GTK_TYPE_BOOL G_TYPE_BOOLEAN | |
34261 | #define GTK_TYPE_INT G_TYPE_INT | |
34262 | #define GTK_TYPE_UINT G_TYPE_UINT | |
34263 | #define GTK_TYPE_LONG G_TYPE_LONG | |
34264 | #define GTK_TYPE_ULONG G_TYPE_ULONG | |
34265 | #define GTK_TYPE_FLOAT G_TYPE_FLOAT | |
34266 | #define GTK_TYPE_DOUBLE G_TYPE_DOUBLE | |
34267 | #define GTK_TYPE_STRING G_TYPE_STRING | |
34268 | #define GTK_TYPE_BOXED G_TYPE_BOXED | |
34269 | #define GTK_TYPE_POINTER G_TYPE_POINTER | |
34270 | ||
34271 | typedef GType GtkFundamentalType; | |
34272 | ||
34273 | ||
34274 | #define GTK_CLASS_NAME(class) (g_type_name (G_TYPE_FROM_CLASS (class))) | |
34275 | #define GTK_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) | |
34276 | #define GTK_TYPE_IS_OBJECT(type) (g_type_is_a ((type), GTK_TYPE_OBJECT)) | |
34277 | ||
34278 | ||
34279 | ||
34280 | ||
34281 | #define GTK_TYPE_FUNDAMENTAL_LAST (G_TYPE_LAST_RESERVED_FUNDAMENTAL - 1) | |
34282 | #define GTK_TYPE_FUNDAMENTAL_MAX (G_TYPE_FUNDAMENTAL_MAX) | |
34283 | ||
34284 | #define GTK_FUNDAMENTAL_TYPE G_TYPE_FUNDAMENTAL | |
34285 | #define GTK_STRUCT_OFFSET G_STRUCT_OFFSET | |
34286 | ||
34287 | ||
34288 | ||
34289 | ||
34290 | #define GTK_CHECK_CAST G_TYPE_CHECK_INSTANCE_CAST | |
34291 | #define GTK_CHECK_CLASS_CAST G_TYPE_CHECK_CLASS_CAST | |
34292 | #define GTK_CHECK_GET_CLASS G_TYPE_INSTANCE_GET_CLASS | |
34293 | #define GTK_CHECK_TYPE G_TYPE_CHECK_INSTANCE_TYPE | |
34294 | #define GTK_CHECK_CLASS_TYPE G_TYPE_CHECK_CLASS_TYPE | |
34295 | ||
34296 | ||
34297 | ||
34298 | typedef GType GtkType; | |
34299 | ||
34300 | ||
34301 | ||
34302 | typedef GTypeInstance GtkTypeObject; | |
34303 | typedef GTypeClass GtkTypeClass; | |
34304 | typedef GBaseInitFunc GtkClassInitFunc; | |
34305 | typedef GInstanceInitFunc GtkObjectInitFunc; | |
34306 | ||
34307 | ||
34308 | ||
34309 | ||
34310 | ||
34311 | ||
34312 | ||
34313 | # 1 "/usr/include/gtk-2.0/gtk/gtktypebuiltins.h" 1 | |
34314 | ||
34315 | ||
34316 | ||
34317 | ||
34318 | #define __GTK_TYPE_BUILTINS_H__ | |
34319 | ||
34320 | ||
34321 | ||
34322 | ||
34323 | ||
34324 | GType gtk_accel_flags_get_type (void) __attribute__((__const__)); | |
34325 | #define GTK_TYPE_ACCEL_FLAGS (gtk_accel_flags_get_type()) | |
34326 | ||
34327 | GType gtk_calendar_display_options_get_type (void) __attribute__((__const__)); | |
34328 | #define GTK_TYPE_CALENDAR_DISPLAY_OPTIONS (gtk_calendar_display_options_get_type()) | |
34329 | ||
34330 | GType gtk_cell_renderer_state_get_type (void) __attribute__((__const__)); | |
34331 | #define GTK_TYPE_CELL_RENDERER_STATE (gtk_cell_renderer_state_get_type()) | |
34332 | GType gtk_cell_renderer_mode_get_type (void) __attribute__((__const__)); | |
34333 | #define GTK_TYPE_CELL_RENDERER_MODE (gtk_cell_renderer_mode_get_type()) | |
34334 | ||
34335 | GType gtk_cell_type_get_type (void) __attribute__((__const__)); | |
34336 | #define GTK_TYPE_CELL_TYPE (gtk_cell_type_get_type()) | |
34337 | GType gtk_clist_drag_pos_get_type (void) __attribute__((__const__)); | |
34338 | #define GTK_TYPE_CLIST_DRAG_POS (gtk_clist_drag_pos_get_type()) | |
34339 | GType gtk_button_action_get_type (void) __attribute__((__const__)); | |
34340 | #define GTK_TYPE_BUTTON_ACTION (gtk_button_action_get_type()) | |
34341 | ||
34342 | GType gtk_ctree_pos_get_type (void) __attribute__((__const__)); | |
34343 | #define GTK_TYPE_CTREE_POS (gtk_ctree_pos_get_type()) | |
34344 | GType gtk_ctree_line_style_get_type (void) __attribute__((__const__)); | |
34345 | #define GTK_TYPE_CTREE_LINE_STYLE (gtk_ctree_line_style_get_type()) | |
34346 | GType gtk_ctree_expander_style_get_type (void) __attribute__((__const__)); | |
34347 | #define GTK_TYPE_CTREE_EXPANDER_STYLE (gtk_ctree_expander_style_get_type()) | |
34348 | GType gtk_ctree_expansion_type_get_type (void) __attribute__((__const__)); | |
34349 | #define GTK_TYPE_CTREE_EXPANSION_TYPE (gtk_ctree_expansion_type_get_type()) | |
34350 | ||
34351 | GType gtk_debug_flag_get_type (void) __attribute__((__const__)); | |
34352 | #define GTK_TYPE_DEBUG_FLAG (gtk_debug_flag_get_type()) | |
34353 | ||
34354 | GType gtk_dialog_flags_get_type (void) __attribute__((__const__)); | |
34355 | #define GTK_TYPE_DIALOG_FLAGS (gtk_dialog_flags_get_type()) | |
34356 | GType gtk_response_type_get_type (void) __attribute__((__const__)); | |
34357 | #define GTK_TYPE_RESPONSE_TYPE (gtk_response_type_get_type()) | |
34358 | ||
34359 | GType gtk_dest_defaults_get_type (void) __attribute__((__const__)); | |
34360 | #define GTK_TYPE_DEST_DEFAULTS (gtk_dest_defaults_get_type()) | |
34361 | GType gtk_target_flags_get_type (void) __attribute__((__const__)); | |
34362 | #define GTK_TYPE_TARGET_FLAGS (gtk_target_flags_get_type()) | |
34363 | ||
34364 | GType gtk_anchor_type_get_type (void) __attribute__((__const__)); | |
34365 | #define GTK_TYPE_ANCHOR_TYPE (gtk_anchor_type_get_type()) | |
34366 | GType gtk_arrow_type_get_type (void) __attribute__((__const__)); | |
34367 | #define GTK_TYPE_ARROW_TYPE (gtk_arrow_type_get_type()) | |
34368 | GType gtk_attach_options_get_type (void) __attribute__((__const__)); | |
34369 | #define GTK_TYPE_ATTACH_OPTIONS (gtk_attach_options_get_type()) | |
34370 | GType gtk_button_box_style_get_type (void) __attribute__((__const__)); | |
34371 | #define GTK_TYPE_BUTTON_BOX_STYLE (gtk_button_box_style_get_type()) | |
34372 | GType gtk_curve_type_get_type (void) __attribute__((__const__)); | |
34373 | #define GTK_TYPE_CURVE_TYPE (gtk_curve_type_get_type()) | |
34374 | GType gtk_delete_type_get_type (void) __attribute__((__const__)); | |
34375 | #define GTK_TYPE_DELETE_TYPE (gtk_delete_type_get_type()) | |
34376 | GType gtk_direction_type_get_type (void) __attribute__((__const__)); | |
34377 | #define GTK_TYPE_DIRECTION_TYPE (gtk_direction_type_get_type()) | |
34378 | GType gtk_expander_style_get_type (void) __attribute__((__const__)); | |
34379 | #define GTK_TYPE_EXPANDER_STYLE (gtk_expander_style_get_type()) | |
34380 | GType gtk_icon_size_get_type (void) __attribute__((__const__)); | |
34381 | #define GTK_TYPE_ICON_SIZE (gtk_icon_size_get_type()) | |
34382 | GType gtk_side_type_get_type (void) __attribute__((__const__)); | |
34383 | #define GTK_TYPE_SIDE_TYPE (gtk_side_type_get_type()) | |
34384 | GType gtk_text_direction_get_type (void) __attribute__((__const__)); | |
34385 | #define GTK_TYPE_TEXT_DIRECTION (gtk_text_direction_get_type()) | |
34386 | GType gtk_justification_get_type (void) __attribute__((__const__)); | |
34387 | #define GTK_TYPE_JUSTIFICATION (gtk_justification_get_type()) | |
34388 | GType gtk_match_type_get_type (void) __attribute__((__const__)); | |
34389 | #define GTK_TYPE_MATCH_TYPE (gtk_match_type_get_type()) | |
34390 | GType gtk_menu_direction_type_get_type (void) __attribute__((__const__)); | |
34391 | #define GTK_TYPE_MENU_DIRECTION_TYPE (gtk_menu_direction_type_get_type()) | |
34392 | GType gtk_metric_type_get_type (void) __attribute__((__const__)); | |
34393 | #define GTK_TYPE_METRIC_TYPE (gtk_metric_type_get_type()) | |
34394 | GType gtk_movement_step_get_type (void) __attribute__((__const__)); | |
34395 | #define GTK_TYPE_MOVEMENT_STEP (gtk_movement_step_get_type()) | |
34396 | GType gtk_scroll_step_get_type (void) __attribute__((__const__)); | |
34397 | #define GTK_TYPE_SCROLL_STEP (gtk_scroll_step_get_type()) | |
34398 | GType gtk_orientation_get_type (void) __attribute__((__const__)); | |
34399 | #define GTK_TYPE_ORIENTATION (gtk_orientation_get_type()) | |
34400 | GType gtk_corner_type_get_type (void) __attribute__((__const__)); | |
34401 | #define GTK_TYPE_CORNER_TYPE (gtk_corner_type_get_type()) | |
34402 | GType gtk_pack_type_get_type (void) __attribute__((__const__)); | |
34403 | #define GTK_TYPE_PACK_TYPE (gtk_pack_type_get_type()) | |
34404 | GType gtk_path_priority_type_get_type (void) __attribute__((__const__)); | |
34405 | #define GTK_TYPE_PATH_PRIORITY_TYPE (gtk_path_priority_type_get_type()) | |
34406 | GType gtk_path_type_get_type (void) __attribute__((__const__)); | |
34407 | #define GTK_TYPE_PATH_TYPE (gtk_path_type_get_type()) | |
34408 | GType gtk_policy_type_get_type (void) __attribute__((__const__)); | |
34409 | #define GTK_TYPE_POLICY_TYPE (gtk_policy_type_get_type()) | |
34410 | GType gtk_position_type_get_type (void) __attribute__((__const__)); | |
34411 | #define GTK_TYPE_POSITION_TYPE (gtk_position_type_get_type()) | |
34412 | GType gtk_preview_type_get_type (void) __attribute__((__const__)); | |
34413 | #define GTK_TYPE_PREVIEW_TYPE (gtk_preview_type_get_type()) | |
34414 | GType gtk_relief_style_get_type (void) __attribute__((__const__)); | |
34415 | #define GTK_TYPE_RELIEF_STYLE (gtk_relief_style_get_type()) | |
34416 | GType gtk_resize_mode_get_type (void) __attribute__((__const__)); | |
34417 | #define GTK_TYPE_RESIZE_MODE (gtk_resize_mode_get_type()) | |
34418 | GType gtk_signal_run_type_get_type (void) __attribute__((__const__)); | |
34419 | #define GTK_TYPE_SIGNAL_RUN_TYPE (gtk_signal_run_type_get_type()) | |
34420 | GType gtk_scroll_type_get_type (void) __attribute__((__const__)); | |
34421 | #define GTK_TYPE_SCROLL_TYPE (gtk_scroll_type_get_type()) | |
34422 | GType gtk_selection_mode_get_type (void) __attribute__((__const__)); | |
34423 | #define GTK_TYPE_SELECTION_MODE (gtk_selection_mode_get_type()) | |
34424 | GType gtk_shadow_type_get_type (void) __attribute__((__const__)); | |
34425 | #define GTK_TYPE_SHADOW_TYPE (gtk_shadow_type_get_type()) | |
34426 | GType gtk_state_type_get_type (void) __attribute__((__const__)); | |
34427 | #define GTK_TYPE_STATE_TYPE (gtk_state_type_get_type()) | |
34428 | GType gtk_submenu_direction_get_type (void) __attribute__((__const__)); | |
34429 | #define GTK_TYPE_SUBMENU_DIRECTION (gtk_submenu_direction_get_type()) | |
34430 | GType gtk_submenu_placement_get_type (void) __attribute__((__const__)); | |
34431 | #define GTK_TYPE_SUBMENU_PLACEMENT (gtk_submenu_placement_get_type()) | |
34432 | GType gtk_toolbar_style_get_type (void) __attribute__((__const__)); | |
34433 | #define GTK_TYPE_TOOLBAR_STYLE (gtk_toolbar_style_get_type()) | |
34434 | GType gtk_update_type_get_type (void) __attribute__((__const__)); | |
34435 | #define GTK_TYPE_UPDATE_TYPE (gtk_update_type_get_type()) | |
34436 | GType gtk_visibility_get_type (void) __attribute__((__const__)); | |
34437 | #define GTK_TYPE_VISIBILITY (gtk_visibility_get_type()) | |
34438 | GType gtk_window_position_get_type (void) __attribute__((__const__)); | |
34439 | #define GTK_TYPE_WINDOW_POSITION (gtk_window_position_get_type()) | |
34440 | GType gtk_window_type_get_type (void) __attribute__((__const__)); | |
34441 | #define GTK_TYPE_WINDOW_TYPE (gtk_window_type_get_type()) | |
34442 | GType gtk_wrap_mode_get_type (void) __attribute__((__const__)); | |
34443 | #define GTK_TYPE_WRAP_MODE (gtk_wrap_mode_get_type()) | |
34444 | GType gtk_sort_type_get_type (void) __attribute__((__const__)); | |
34445 | #define GTK_TYPE_SORT_TYPE (gtk_sort_type_get_type()) | |
34446 | GType gtk_im_preedit_style_get_type (void) __attribute__((__const__)); | |
34447 | #define GTK_TYPE_IM_PREEDIT_STYLE (gtk_im_preedit_style_get_type()) | |
34448 | GType gtk_im_status_style_get_type (void) __attribute__((__const__)); | |
34449 | #define GTK_TYPE_IM_STATUS_STYLE (gtk_im_status_style_get_type()) | |
34450 | GType gtk_pack_direction_get_type (void) __attribute__((__const__)); | |
34451 | #define GTK_TYPE_PACK_DIRECTION (gtk_pack_direction_get_type()) | |
34452 | ||
34453 | GType gtk_file_chooser_action_get_type (void) __attribute__((__const__)); | |
34454 | #define GTK_TYPE_FILE_CHOOSER_ACTION (gtk_file_chooser_action_get_type()) | |
34455 | GType gtk_file_chooser_confirmation_get_type (void) __attribute__((__const__)); | |
34456 | #define GTK_TYPE_FILE_CHOOSER_CONFIRMATION (gtk_file_chooser_confirmation_get_type()) | |
34457 | GType gtk_file_chooser_error_get_type (void) __attribute__((__const__)); | |
34458 | #define GTK_TYPE_FILE_CHOOSER_ERROR (gtk_file_chooser_error_get_type()) | |
34459 | ||
34460 | GType gtk_file_filter_flags_get_type (void) __attribute__((__const__)); | |
34461 | #define GTK_TYPE_FILE_FILTER_FLAGS (gtk_file_filter_flags_get_type()) | |
34462 | ||
34463 | GType gtk_icon_lookup_flags_get_type (void) __attribute__((__const__)); | |
34464 | #define GTK_TYPE_ICON_LOOKUP_FLAGS (gtk_icon_lookup_flags_get_type()) | |
34465 | GType gtk_icon_theme_error_get_type (void) __attribute__((__const__)); | |
34466 | #define GTK_TYPE_ICON_THEME_ERROR (gtk_icon_theme_error_get_type()) | |
34467 | ||
34468 | GType gtk_icon_view_drop_position_get_type (void) __attribute__((__const__)); | |
34469 | #define GTK_TYPE_ICON_VIEW_DROP_POSITION (gtk_icon_view_drop_position_get_type()) | |
34470 | ||
34471 | GType gtk_image_type_get_type (void) __attribute__((__const__)); | |
34472 | #define GTK_TYPE_IMAGE_TYPE (gtk_image_type_get_type()) | |
34473 | ||
34474 | GType gtk_message_type_get_type (void) __attribute__((__const__)); | |
34475 | #define GTK_TYPE_MESSAGE_TYPE (gtk_message_type_get_type()) | |
34476 | GType gtk_buttons_type_get_type (void) __attribute__((__const__)); | |
34477 | #define GTK_TYPE_BUTTONS_TYPE (gtk_buttons_type_get_type()) | |
34478 | ||
34479 | GType gtk_notebook_tab_get_type (void) __attribute__((__const__)); | |
34480 | #define GTK_TYPE_NOTEBOOK_TAB (gtk_notebook_tab_get_type()) | |
34481 | ||
34482 | GType gtk_object_flags_get_type (void) __attribute__((__const__)); | |
34483 | #define GTK_TYPE_OBJECT_FLAGS (gtk_object_flags_get_type()) | |
34484 | GType gtk_arg_flags_get_type (void) __attribute__((__const__)); | |
34485 | #define GTK_TYPE_ARG_FLAGS (gtk_arg_flags_get_type()) | |
34486 | ||
34487 | GType gtk_private_flags_get_type (void) __attribute__((__const__)); | |
34488 | #define GTK_TYPE_PRIVATE_FLAGS (gtk_private_flags_get_type()) | |
34489 | ||
34490 | GType gtk_progress_bar_style_get_type (void) __attribute__((__const__)); | |
34491 | #define GTK_TYPE_PROGRESS_BAR_STYLE (gtk_progress_bar_style_get_type()) | |
34492 | GType gtk_progress_bar_orientation_get_type (void) __attribute__((__const__)); | |
34493 | #define GTK_TYPE_PROGRESS_BAR_ORIENTATION (gtk_progress_bar_orientation_get_type()) | |
34494 | ||
34495 | GType gtk_rc_flags_get_type (void) __attribute__((__const__)); | |
34496 | #define GTK_TYPE_RC_FLAGS (gtk_rc_flags_get_type()) | |
34497 | GType gtk_rc_token_type_get_type (void) __attribute__((__const__)); | |
34498 | #define GTK_TYPE_RC_TOKEN_TYPE (gtk_rc_token_type_get_type()) | |
34499 | ||
34500 | GType gtk_size_group_mode_get_type (void) __attribute__((__const__)); | |
34501 | #define GTK_TYPE_SIZE_GROUP_MODE (gtk_size_group_mode_get_type()) | |
34502 | ||
34503 | GType gtk_spin_button_update_policy_get_type (void) __attribute__((__const__)); | |
34504 | #define GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY (gtk_spin_button_update_policy_get_type()) | |
34505 | GType gtk_spin_type_get_type (void) __attribute__((__const__)); | |
34506 | #define GTK_TYPE_SPIN_TYPE (gtk_spin_type_get_type()) | |
34507 | ||
34508 | GType gtk_text_search_flags_get_type (void) __attribute__((__const__)); | |
34509 | #define GTK_TYPE_TEXT_SEARCH_FLAGS (gtk_text_search_flags_get_type()) | |
34510 | ||
34511 | GType gtk_text_window_type_get_type (void) __attribute__((__const__)); | |
34512 | #define GTK_TYPE_TEXT_WINDOW_TYPE (gtk_text_window_type_get_type()) | |
34513 | ||
34514 | GType gtk_toolbar_child_type_get_type (void) __attribute__((__const__)); | |
34515 | #define GTK_TYPE_TOOLBAR_CHILD_TYPE (gtk_toolbar_child_type_get_type()) | |
34516 | GType gtk_toolbar_space_style_get_type (void) __attribute__((__const__)); | |
34517 | #define GTK_TYPE_TOOLBAR_SPACE_STYLE (gtk_toolbar_space_style_get_type()) | |
34518 | ||
34519 | GType gtk_tree_view_mode_get_type (void) __attribute__((__const__)); | |
34520 | #define GTK_TYPE_TREE_VIEW_MODE (gtk_tree_view_mode_get_type()) | |
34521 | ||
34522 | GType gtk_tree_model_flags_get_type (void) __attribute__((__const__)); | |
34523 | #define GTK_TYPE_TREE_MODEL_FLAGS (gtk_tree_model_flags_get_type()) | |
34524 | ||
34525 | GType gtk_tree_view_drop_position_get_type (void) __attribute__((__const__)); | |
34526 | #define GTK_TYPE_TREE_VIEW_DROP_POSITION (gtk_tree_view_drop_position_get_type()) | |
34527 | ||
34528 | GType gtk_tree_view_column_sizing_get_type (void) __attribute__((__const__)); | |
34529 | #define GTK_TYPE_TREE_VIEW_COLUMN_SIZING (gtk_tree_view_column_sizing_get_type()) | |
34530 | ||
34531 | GType gtk_ui_manager_item_type_get_type (void) __attribute__((__const__)); | |
34532 | #define GTK_TYPE_UI_MANAGER_ITEM_TYPE (gtk_ui_manager_item_type_get_type()) | |
34533 | ||
34534 | GType gtk_widget_flags_get_type (void) __attribute__((__const__)); | |
34535 | #define GTK_TYPE_WIDGET_FLAGS (gtk_widget_flags_get_type()) | |
34536 | GType gtk_widget_help_type_get_type (void) __attribute__((__const__)); | |
34537 | #define GTK_TYPE_WIDGET_HELP_TYPE (gtk_widget_help_type_get_type()) | |
34538 | ||
34539 | # 105 "/usr/include/gtk-2.0/gtk/gtktypeutils.h" 2 | |
34540 | ||
34541 | ||
34542 | ||
34543 | ||
34544 | #define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ()) | |
34545 | GType gtk_identifier_get_type (void) __attribute__((__const__)); | |
34546 | ||
34547 | ||
34548 | ||
34549 | ||
34550 | ||
34551 | typedef struct _GtkArg GtkArg; | |
34552 | typedef struct _GtkObject GtkObject; | |
34553 | typedef gboolean (*GtkFunction) (gpointer data); | |
34554 | typedef void (*GtkDestroyNotify) (gpointer data); | |
34555 | typedef void (*GtkCallbackMarshal) (GtkObject *object, | |
34556 | gpointer data, | |
34557 | guint n_args, | |
34558 | GtkArg *args); | |
34559 | typedef void (*GtkSignalFunc) (void); | |
34560 | #define GTK_SIGNAL_FUNC(f) ((GtkSignalFunc) (f)) | |
34561 | ||
34562 | ||
34563 | typedef struct _GtkTypeInfo GtkTypeInfo; | |
34564 | typedef GSignalCMarshaller GtkSignalMarshaller; | |
34565 | ||
34566 | ||
34567 | ||
34568 | ||
34569 | ||
34570 | ||
34571 | struct _GtkArg | |
34572 | { | |
34573 | GtkType type; | |
34574 | gchar *name; | |
34575 | ||
34576 | ||
34577 | ||
34578 | ||
34579 | ||
34580 | ||
34581 | ||
34582 | union { | |
34583 | ||
34584 | gchar char_data; | |
34585 | guchar uchar_data; | |
34586 | gboolean bool_data; | |
34587 | gint int_data; | |
34588 | guint uint_data; | |
34589 | glong long_data; | |
34590 | gulong ulong_data; | |
34591 | gfloat float_data; | |
34592 | gdouble double_data; | |
34593 | gchar *string_data; | |
34594 | GtkObject *object_data; | |
34595 | gpointer pointer_data; | |
34596 | ||
34597 | ||
34598 | struct { | |
34599 | GtkSignalFunc f; | |
34600 | gpointer d; | |
34601 | } signal_data; | |
34602 | } d; | |
34603 | }; | |
34604 | ||
34605 | ||
34606 | ||
34607 | ||
34608 | ||
34609 | #define GTK_VALUE_CHAR(a) ((a).d.char_data) | |
34610 | #define GTK_VALUE_UCHAR(a) ((a).d.uchar_data) | |
34611 | #define GTK_VALUE_BOOL(a) ((a).d.bool_data) | |
34612 | #define GTK_VALUE_INT(a) ((a).d.int_data) | |
34613 | #define GTK_VALUE_UINT(a) ((a).d.uint_data) | |
34614 | #define GTK_VALUE_LONG(a) ((a).d.long_data) | |
34615 | #define GTK_VALUE_ULONG(a) ((a).d.ulong_data) | |
34616 | #define GTK_VALUE_FLOAT(a) ((a).d.float_data) | |
34617 | #define GTK_VALUE_DOUBLE(a) ((a).d.double_data) | |
34618 | #define GTK_VALUE_STRING(a) ((a).d.string_data) | |
34619 | #define GTK_VALUE_ENUM(a) ((a).d.int_data) | |
34620 | #define GTK_VALUE_FLAGS(a) ((a).d.uint_data) | |
34621 | #define GTK_VALUE_BOXED(a) ((a).d.pointer_data) | |
34622 | #define GTK_VALUE_OBJECT(a) ((a).d.object_data) | |
34623 | #define GTK_VALUE_POINTER(a) ((a).d.pointer_data) | |
34624 | #define GTK_VALUE_SIGNAL(a) ((a).d.signal_data) | |
34625 | ||
34626 | ||
34627 | ||
34628 | ||
34629 | ||
34630 | ||
34631 | ||
34632 | #define GTK_RETLOC_CHAR(a) ((gchar*) (a).d.pointer_data) | |
34633 | #define GTK_RETLOC_UCHAR(a) ((guchar*) (a).d.pointer_data) | |
34634 | #define GTK_RETLOC_BOOL(a) ((gboolean*) (a).d.pointer_data) | |
34635 | #define GTK_RETLOC_INT(a) ((gint*) (a).d.pointer_data) | |
34636 | #define GTK_RETLOC_UINT(a) ((guint*) (a).d.pointer_data) | |
34637 | #define GTK_RETLOC_LONG(a) ((glong*) (a).d.pointer_data) | |
34638 | #define GTK_RETLOC_ULONG(a) ((gulong*) (a).d.pointer_data) | |
34639 | #define GTK_RETLOC_FLOAT(a) ((gfloat*) (a).d.pointer_data) | |
34640 | #define GTK_RETLOC_DOUBLE(a) ((gdouble*) (a).d.pointer_data) | |
34641 | #define GTK_RETLOC_STRING(a) ((gchar**) (a).d.pointer_data) | |
34642 | #define GTK_RETLOC_ENUM(a) ((gint*) (a).d.pointer_data) | |
34643 | #define GTK_RETLOC_FLAGS(a) ((guint*) (a).d.pointer_data) | |
34644 | #define GTK_RETLOC_BOXED(a) ((gpointer*) (a).d.pointer_data) | |
34645 | #define GTK_RETLOC_OBJECT(a) ((GtkObject**) (a).d.pointer_data) | |
34646 | #define GTK_RETLOC_POINTER(a) ((gpointer*) (a).d.pointer_data) | |
34647 | ||
34648 | ||
34649 | ||
34650 | ||
34651 | ||
34652 | ||
34653 | struct _GtkTypeInfo | |
34654 | { | |
34655 | gchar *type_name; | |
34656 | guint object_size; | |
34657 | guint class_size; | |
34658 | GtkClassInitFunc class_init_func; | |
34659 | GtkObjectInitFunc object_init_func; | |
34660 | gpointer reserved_1; | |
34661 | gpointer reserved_2; | |
34662 | GtkClassInitFunc base_class_init_func; | |
34663 | }; | |
34664 | ||
34665 | ||
34666 | ||
34667 | gpointer gtk_type_class (GtkType type); | |
34668 | ||
34669 | ||
34670 | ||
34671 | GtkType gtk_type_unique (GtkType parent_type, | |
34672 | const GtkTypeInfo *gtkinfo); | |
34673 | gpointer gtk_type_new (GtkType type); | |
34674 | ||
34675 | ||
34676 | #define gtk_type_name(type) g_type_name (type) | |
34677 | #define gtk_type_from_name(name) g_type_from_name (name) | |
34678 | #define gtk_type_parent(type) g_type_parent (type) | |
34679 | #define gtk_type_is_a(type,is_a_type) g_type_is_a ((type), (is_a_type)) | |
34680 | ||
34681 | ||
34682 | ||
34683 | ||
34684 | typedef GEnumValue GtkEnumValue; | |
34685 | typedef GFlagsValue GtkFlagValue; | |
34686 | GtkEnumValue* gtk_type_enum_get_values (GtkType enum_type); | |
34687 | GtkFlagValue* gtk_type_flags_get_values (GtkType flags_type); | |
34688 | GtkEnumValue* gtk_type_enum_find_value (GtkType enum_type, | |
34689 | const gchar *value_name); | |
34690 | GtkFlagValue* gtk_type_flags_find_value (GtkType flags_type, | |
34691 | const gchar *value_name); | |
34692 | ||
34693 | ||
34694 | ||
34695 | ||
34696 | ||
34697 | void gtk_type_init (GTypeDebugFlags debug_flags); | |
34698 | ||
34699 | ||
34700 | ||
34701 | # 33 "/usr/include/gtk-2.0/gtk/gtkobject.h" 2 | |
34702 | # 1 "/usr/include/gtk-2.0/gtk/gtkdebug.h" 1 | |
34703 | # 28 "/usr/include/gtk-2.0/gtk/gtkdebug.h" | |
34704 | #define __GTK_DEBUG_H__ | |
34705 | ||
34706 | ||
34707 | ||
34708 | ||
34709 | ||
34710 | typedef enum { | |
34711 | GTK_DEBUG_MISC = 1 << 0, | |
34712 | GTK_DEBUG_PLUGSOCKET = 1 << 1, | |
34713 | GTK_DEBUG_TEXT = 1 << 2, | |
34714 | GTK_DEBUG_TREE = 1 << 3, | |
34715 | GTK_DEBUG_UPDATES = 1 << 4, | |
34716 | GTK_DEBUG_KEYBINDINGS = 1 << 5, | |
34717 | GTK_DEBUG_MULTIHEAD = 1 << 6, | |
34718 | GTK_DEBUG_MODULES = 1 << 7, | |
34719 | GTK_DEBUG_GEOMETRY = 1 << 8, | |
34720 | GTK_DEBUG_ICONTHEME = 1 << 9 | |
34721 | } GtkDebugFlag; | |
34722 | # 55 "/usr/include/gtk-2.0/gtk/gtkdebug.h" | |
34723 | #define GTK_NOTE(type,action) | |
34724 | # 66 "/usr/include/gtk-2.0/gtk/gtkdebug.h" | |
34725 | #define GTKVAR extern | |
34726 | ||
34727 | ||
34728 | extern guint gtk_debug_flags; | |
34729 | ||
34730 | ||
34731 | # 34 "/usr/include/gtk-2.0/gtk/gtkobject.h" 2 | |
34732 | ||
34733 | ||
34734 | ||
34735 | ||
34736 | ||
34737 | ||
34738 | ||
34739 | #define GTK_TYPE_OBJECT (gtk_object_get_type ()) | |
34740 | #define GTK_OBJECT(object) (GTK_CHECK_CAST ((object), GTK_TYPE_OBJECT, GtkObject)) | |
34741 | #define GTK_OBJECT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_OBJECT, GtkObjectClass)) | |
34742 | #define GTK_IS_OBJECT(object) (GTK_CHECK_TYPE ((object), GTK_TYPE_OBJECT)) | |
34743 | #define GTK_IS_OBJECT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OBJECT)) | |
34744 | #define GTK_OBJECT_GET_CLASS(object) (GTK_CHECK_GET_CLASS ((object), GTK_TYPE_OBJECT, GtkObjectClass)) | |
34745 | ||
34746 | ||
34747 | ||
34748 | #define GTK_OBJECT_TYPE(object) (G_TYPE_FROM_INSTANCE (object)) | |
34749 | #define GTK_OBJECT_TYPE_NAME(object) (g_type_name (GTK_OBJECT_TYPE (object))) | |
34750 | ||
34751 | ||
34752 | ||
34753 | ||
34754 | ||
34755 | ||
34756 | typedef enum | |
34757 | { | |
34758 | GTK_IN_DESTRUCTION = 1 << 0, | |
34759 | GTK_FLOATING = 1 << 1, | |
34760 | GTK_RESERVED_1 = 1 << 2, | |
34761 | GTK_RESERVED_2 = 1 << 3 | |
34762 | } GtkObjectFlags; | |
34763 | ||
34764 | ||
34765 | ||
34766 | #define GTK_OBJECT_FLAGS(obj) (GTK_OBJECT (obj)->flags) | |
34767 | #define GTK_OBJECT_FLOATING(obj) ((GTK_OBJECT_FLAGS (obj) & GTK_FLOATING) != 0) | |
34768 | ||
34769 | ||
34770 | ||
34771 | #define GTK_OBJECT_SET_FLAGS(obj,flag) G_STMT_START{ (GTK_OBJECT_FLAGS (obj) |= (flag)); }G_STMT_END | |
34772 | #define GTK_OBJECT_UNSET_FLAGS(obj,flag) G_STMT_START{ (GTK_OBJECT_FLAGS (obj) &= ~(flag)); }G_STMT_END | |
34773 | ||
34774 | typedef struct _GtkObjectClass GtkObjectClass; | |
34775 | ||
34776 | ||
34777 | struct _GtkObject | |
34778 | { | |
34779 | GObject parent_instance; | |
34780 | ||
34781 | ||
34782 | ||
34783 | ||
34784 | ||
34785 | ||
34786 | guint32 flags; | |
34787 | }; | |
34788 | ||
34789 | struct _GtkObjectClass | |
34790 | { | |
34791 | GObjectClass parent_class; | |
34792 | ||
34793 | ||
34794 | void (*set_arg) (GtkObject *object, | |
34795 | GtkArg *arg, | |
34796 | guint arg_id); | |
34797 | void (*get_arg) (GtkObject *object, | |
34798 | GtkArg *arg, | |
34799 | guint arg_id); | |
34800 | # 111 "/usr/include/gtk-2.0/gtk/gtkobject.h" | |
34801 | void (*destroy) (GtkObject *object); | |
34802 | }; | |
34803 | ||
34804 | ||
34805 | ||
34806 | ||
34807 | ||
34808 | GtkType gtk_object_get_type (void) __attribute__((__const__)); | |
34809 | ||
34810 | void gtk_object_sink (GtkObject *object); | |
34811 | void gtk_object_destroy (GtkObject *object); | |
34812 | ||
34813 | ||
34814 | ||
34815 | ||
34816 | ||
34817 | GtkObject* gtk_object_new (GtkType type, | |
34818 | const gchar *first_property_name, | |
34819 | ...); | |
34820 | GtkObject* gtk_object_ref (GtkObject *object); | |
34821 | void gtk_object_unref (GtkObject *object); | |
34822 | void gtk_object_weakref (GtkObject *object, | |
34823 | GtkDestroyNotify notify, | |
34824 | gpointer data); | |
34825 | void gtk_object_weakunref (GtkObject *object, | |
34826 | GtkDestroyNotify notify, | |
34827 | gpointer data); | |
34828 | # 151 "/usr/include/gtk-2.0/gtk/gtkobject.h" | |
34829 | void gtk_object_set_data (GtkObject *object, | |
34830 | const gchar *key, | |
34831 | gpointer data); | |
34832 | void gtk_object_set_data_full (GtkObject *object, | |
34833 | const gchar *key, | |
34834 | gpointer data, | |
34835 | GtkDestroyNotify destroy); | |
34836 | void gtk_object_remove_data (GtkObject *object, | |
34837 | const gchar *key); | |
34838 | gpointer gtk_object_get_data (GtkObject *object, | |
34839 | const gchar *key); | |
34840 | void gtk_object_remove_no_notify (GtkObject *object, | |
34841 | const gchar *key); | |
34842 | ||
34843 | ||
34844 | ||
34845 | ||
34846 | ||
34847 | ||
34848 | void gtk_object_set_user_data (GtkObject *object, | |
34849 | gpointer data); | |
34850 | gpointer gtk_object_get_user_data (GtkObject *object); | |
34851 | ||
34852 | ||
34853 | ||
34854 | ||
34855 | ||
34856 | void gtk_object_set_data_by_id (GtkObject *object, | |
34857 | GQuark data_id, | |
34858 | gpointer data); | |
34859 | void gtk_object_set_data_by_id_full (GtkObject *object, | |
34860 | GQuark data_id, | |
34861 | gpointer data, | |
34862 | GtkDestroyNotify destroy); | |
34863 | gpointer gtk_object_get_data_by_id (GtkObject *object, | |
34864 | GQuark data_id); | |
34865 | void gtk_object_remove_data_by_id (GtkObject *object, | |
34866 | GQuark data_id); | |
34867 | void gtk_object_remove_no_notify_by_id (GtkObject *object, | |
34868 | GQuark key_id); | |
34869 | #define gtk_object_data_try_key g_quark_try_string | |
34870 | #define gtk_object_data_force_id g_quark_from_string | |
34871 | ||
34872 | ||
34873 | ||
34874 | typedef enum | |
34875 | { | |
34876 | GTK_ARG_READABLE = G_PARAM_READABLE, | |
34877 | GTK_ARG_WRITABLE = G_PARAM_WRITABLE, | |
34878 | GTK_ARG_CONSTRUCT = G_PARAM_CONSTRUCT, | |
34879 | GTK_ARG_CONSTRUCT_ONLY = G_PARAM_CONSTRUCT_ONLY, | |
34880 | GTK_ARG_CHILD_ARG = 1 << 4 | |
34881 | } GtkArgFlags; | |
34882 | #define GTK_ARG_READWRITE (GTK_ARG_READABLE | GTK_ARG_WRITABLE) | |
34883 | void gtk_object_get (GtkObject *object, | |
34884 | const gchar *first_property_name, | |
34885 | ...) ; | |
34886 | void gtk_object_set (GtkObject *object, | |
34887 | const gchar *first_property_name, | |
34888 | ...) ; | |
34889 | void gtk_object_add_arg_type (const gchar *arg_name, | |
34890 | GtkType arg_type, | |
34891 | guint arg_flags, | |
34892 | guint arg_id); | |
34893 | ||
34894 | ||
34895 | ||
34896 | ||
34897 | # 33 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2 | |
34898 | # 1 "/usr/include/gtk-2.0/gtk/gtkadjustment.h" 1 | |
34899 | # 28 "/usr/include/gtk-2.0/gtk/gtkadjustment.h" | |
34900 | #define __GTK_ADJUSTMENT_H__ | |
34901 | ||
34902 | ||
34903 | ||
34904 | ||
34905 | ||
34906 | ||
34907 | ||
34908 | #define GTK_TYPE_ADJUSTMENT (gtk_adjustment_get_type ()) | |
34909 | #define GTK_ADJUSTMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustment)) | |
34910 | #define GTK_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass)) | |
34911 | #define GTK_IS_ADJUSTMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ADJUSTMENT)) | |
34912 | #define GTK_IS_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ADJUSTMENT)) | |
34913 | #define GTK_ADJUSTMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass)) | |
34914 | ||
34915 | ||
34916 | typedef struct _GtkAdjustment GtkAdjustment; | |
34917 | typedef struct _GtkAdjustmentClass GtkAdjustmentClass; | |
34918 | ||
34919 | struct _GtkAdjustment | |
34920 | { | |
34921 | GtkObject parent_instance; | |
34922 | ||
34923 | gdouble lower; | |
34924 | gdouble upper; | |
34925 | gdouble value; | |
34926 | gdouble step_increment; | |
34927 | gdouble page_increment; | |
34928 | gdouble page_size; | |
34929 | }; | |
34930 | ||
34931 | struct _GtkAdjustmentClass | |
34932 | { | |
34933 | GtkObjectClass parent_class; | |
34934 | ||
34935 | void (* changed) (GtkAdjustment *adjustment); | |
34936 | void (* value_changed) (GtkAdjustment *adjustment); | |
34937 | ||
34938 | ||
34939 | void (*_gtk_reserved1) (void); | |
34940 | void (*_gtk_reserved2) (void); | |
34941 | void (*_gtk_reserved3) (void); | |
34942 | void (*_gtk_reserved4) (void); | |
34943 | }; | |
34944 | ||
34945 | ||
34946 | GType gtk_adjustment_get_type (void) __attribute__((__const__)); | |
34947 | GtkObject* gtk_adjustment_new (gdouble value, | |
34948 | gdouble lower, | |
34949 | gdouble upper, | |
34950 | gdouble step_increment, | |
34951 | gdouble page_increment, | |
34952 | gdouble page_size); | |
34953 | void gtk_adjustment_changed (GtkAdjustment *adjustment); | |
34954 | void gtk_adjustment_value_changed (GtkAdjustment *adjustment); | |
34955 | void gtk_adjustment_clamp_page (GtkAdjustment *adjustment, | |
34956 | gdouble lower, | |
34957 | gdouble upper); | |
34958 | gdouble gtk_adjustment_get_value (GtkAdjustment *adjustment); | |
34959 | void gtk_adjustment_set_value (GtkAdjustment *adjustment, | |
34960 | gdouble value); | |
34961 | ||
34962 | ||
34963 | # 34 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2 | |
34964 | # 1 "/usr/include/gtk-2.0/gtk/gtkstyle.h" 1 | |
34965 | # 28 "/usr/include/gtk-2.0/gtk/gtkstyle.h" | |
34966 | #define __GTK_STYLE_H__ | |
34967 | ||
34968 | ||
34969 | ||
34970 | ||
34971 | ||
34972 | ||
34973 | ||
34974 | ||
34975 | #define GTK_TYPE_STYLE (gtk_style_get_type ()) | |
34976 | #define GTK_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_STYLE, GtkStyle)) | |
34977 | #define GTK_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STYLE, GtkStyleClass)) | |
34978 | #define GTK_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_STYLE)) | |
34979 | #define GTK_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STYLE)) | |
34980 | #define GTK_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STYLE, GtkStyleClass)) | |
34981 | ||
34982 | #define GTK_TYPE_BORDER (gtk_border_get_type ()) | |
34983 | ||
34984 | ||
34985 | ||
34986 | ||
34987 | typedef struct _GtkBorder GtkBorder; | |
34988 | typedef struct _GtkStyle GtkStyle; | |
34989 | typedef struct _GtkStyleClass GtkStyleClass; | |
34990 | typedef struct _GtkThemeEngine GtkThemeEngine; | |
34991 | typedef struct _GtkRcStyle GtkRcStyle; | |
34992 | typedef struct _GtkIconSet GtkIconSet; | |
34993 | typedef struct _GtkIconSource GtkIconSource; | |
34994 | typedef struct _GtkRcProperty GtkRcProperty; | |
34995 | typedef struct _GtkSettings GtkSettings; | |
34996 | typedef gboolean (*GtkRcPropertyParser) (const GParamSpec *pspec, | |
34997 | const GString *rc_string, | |
34998 | GValue *property_value); | |
34999 | ||
35000 | ||
35001 | ||
35002 | ||
35003 | typedef struct _GtkWidget GtkWidget; | |
35004 | ||
35005 | #define GTK_STYLE_ATTACHED(style) (GTK_STYLE (style)->attach_count > 0) | |
35006 | ||
35007 | struct _GtkStyle | |
35008 | { | |
35009 | GObject parent_instance; | |
35010 | ||
35011 | ||
35012 | ||
35013 | GdkColor fg[5]; | |
35014 | GdkColor bg[5]; | |
35015 | GdkColor light[5]; | |
35016 | GdkColor dark[5]; | |
35017 | GdkColor mid[5]; | |
35018 | GdkColor text[5]; | |
35019 | GdkColor base[5]; | |
35020 | GdkColor text_aa[5]; | |
35021 | ||
35022 | GdkColor black; | |
35023 | GdkColor white; | |
35024 | PangoFontDescription *font_desc; | |
35025 | ||
35026 | gint xthickness; | |
35027 | gint ythickness; | |
35028 | ||
35029 | GdkGC *fg_gc[5]; | |
35030 | GdkGC *bg_gc[5]; | |
35031 | GdkGC *light_gc[5]; | |
35032 | GdkGC *dark_gc[5]; | |
35033 | GdkGC *mid_gc[5]; | |
35034 | GdkGC *text_gc[5]; | |
35035 | GdkGC *base_gc[5]; | |
35036 | GdkGC *text_aa_gc[5]; | |
35037 | GdkGC *black_gc; | |
35038 | GdkGC *white_gc; | |
35039 | ||
35040 | GdkPixmap *bg_pixmap[5]; | |
35041 | ||
35042 | ||
35043 | ||
35044 | gint attach_count; | |
35045 | ||
35046 | gint depth; | |
35047 | GdkColormap *colormap; | |
35048 | GdkFont *private_font; | |
35049 | PangoFontDescription *private_font_desc; | |
35050 | ||
35051 | ||
35052 | GtkRcStyle *rc_style; | |
35053 | ||
35054 | GSList *styles; | |
35055 | GArray *property_cache; | |
35056 | GSList *icon_factories; | |
35057 | }; | |
35058 | ||
35059 | struct _GtkStyleClass | |
35060 | { | |
35061 | GObjectClass parent_class; | |
35062 | ||
35063 | ||
35064 | ||
35065 | ||
35066 | ||
35067 | void (*realize) (GtkStyle *style); | |
35068 | ||
35069 | ||
35070 | ||
35071 | ||
35072 | void (*unrealize) (GtkStyle *style); | |
35073 | ||
35074 | ||
35075 | ||
35076 | void (*copy) (GtkStyle *style, | |
35077 | GtkStyle *src); | |
35078 | ||
35079 | ||
35080 | ||
35081 | ||
35082 | ||
35083 | ||
35084 | GtkStyle *(*clone) (GtkStyle *style); | |
35085 | ||
35086 | ||
35087 | ||
35088 | ||
35089 | void (*init_from_rc) (GtkStyle *style, | |
35090 | GtkRcStyle *rc_style); | |
35091 | ||
35092 | void (*set_background) (GtkStyle *style, | |
35093 | GdkWindow *window, | |
35094 | GtkStateType state_type); | |
35095 | ||
35096 | ||
35097 | GdkPixbuf * (* render_icon) (GtkStyle *style, | |
35098 | const GtkIconSource *source, | |
35099 | GtkTextDirection direction, | |
35100 | GtkStateType state, | |
35101 | GtkIconSize size, | |
35102 | GtkWidget *widget, | |
35103 | const gchar *detail); | |
35104 | ||
35105 | ||
35106 | ||
35107 | ||
35108 | void (*draw_hline) (GtkStyle *style, | |
35109 | GdkWindow *window, | |
35110 | GtkStateType state_type, | |
35111 | GdkRectangle *area, | |
35112 | GtkWidget *widget, | |
35113 | const gchar *detail, | |
35114 | gint x1, | |
35115 | gint x2, | |
35116 | gint y); | |
35117 | void (*draw_vline) (GtkStyle *style, | |
35118 | GdkWindow *window, | |
35119 | GtkStateType state_type, | |
35120 | GdkRectangle *area, | |
35121 | GtkWidget *widget, | |
35122 | const gchar *detail, | |
35123 | gint y1_, | |
35124 | gint y2_, | |
35125 | gint x); | |
35126 | void (*draw_shadow) (GtkStyle *style, | |
35127 | GdkWindow *window, | |
35128 | GtkStateType state_type, | |
35129 | GtkShadowType shadow_type, | |
35130 | GdkRectangle *area, | |
35131 | GtkWidget *widget, | |
35132 | const gchar *detail, | |
35133 | gint x, | |
35134 | gint y, | |
35135 | gint width, | |
35136 | gint height); | |
35137 | void (*draw_polygon) (GtkStyle *style, | |
35138 | GdkWindow *window, | |
35139 | GtkStateType state_type, | |
35140 | GtkShadowType shadow_type, | |
35141 | GdkRectangle *area, | |
35142 | GtkWidget *widget, | |
35143 | const gchar *detail, | |
35144 | GdkPoint *point, | |
35145 | gint npoints, | |
35146 | gboolean fill); | |
35147 | void (*draw_arrow) (GtkStyle *style, | |
35148 | GdkWindow *window, | |
35149 | GtkStateType state_type, | |
35150 | GtkShadowType shadow_type, | |
35151 | GdkRectangle *area, | |
35152 | GtkWidget *widget, | |
35153 | const gchar *detail, | |
35154 | GtkArrowType arrow_type, | |
35155 | gboolean fill, | |
35156 | gint x, | |
35157 | gint y, | |
35158 | gint width, | |
35159 | gint height); | |
35160 | void (*draw_diamond) (GtkStyle *style, | |
35161 | GdkWindow *window, | |
35162 | GtkStateType state_type, | |
35163 | GtkShadowType shadow_type, | |
35164 | GdkRectangle *area, | |
35165 | GtkWidget *widget, | |
35166 | const gchar *detail, | |
35167 | gint x, | |
35168 | gint y, | |
35169 | gint width, | |
35170 | gint height); | |
35171 | void (*draw_string) (GtkStyle *style, | |
35172 | GdkWindow *window, | |
35173 | GtkStateType state_type, | |
35174 | GdkRectangle *area, | |
35175 | GtkWidget *widget, | |
35176 | const gchar *detail, | |
35177 | gint x, | |
35178 | gint y, | |
35179 | const gchar *string); | |
35180 | void (*draw_box) (GtkStyle *style, | |
35181 | GdkWindow *window, | |
35182 | GtkStateType state_type, | |
35183 | GtkShadowType shadow_type, | |
35184 | GdkRectangle *area, | |
35185 | GtkWidget *widget, | |
35186 | const gchar *detail, | |
35187 | gint x, | |
35188 | gint y, | |
35189 | gint width, | |
35190 | gint height); | |
35191 | void (*draw_flat_box) (GtkStyle *style, | |
35192 | GdkWindow *window, | |
35193 | GtkStateType state_type, | |
35194 | GtkShadowType shadow_type, | |
35195 | GdkRectangle *area, | |
35196 | GtkWidget *widget, | |
35197 | const gchar *detail, | |
35198 | gint x, | |
35199 | gint y, | |
35200 | gint width, | |
35201 | gint height); | |
35202 | void (*draw_check) (GtkStyle *style, | |
35203 | GdkWindow *window, | |
35204 | GtkStateType state_type, | |
35205 | GtkShadowType shadow_type, | |
35206 | GdkRectangle *area, | |
35207 | GtkWidget *widget, | |
35208 | const gchar *detail, | |
35209 | gint x, | |
35210 | gint y, | |
35211 | gint width, | |
35212 | gint height); | |
35213 | void (*draw_option) (GtkStyle *style, | |
35214 | GdkWindow *window, | |
35215 | GtkStateType state_type, | |
35216 | GtkShadowType shadow_type, | |
35217 | GdkRectangle *area, | |
35218 | GtkWidget *widget, | |
35219 | const gchar *detail, | |
35220 | gint x, | |
35221 | gint y, | |
35222 | gint width, | |
35223 | gint height); | |
35224 | void (*draw_tab) (GtkStyle *style, | |
35225 | GdkWindow *window, | |
35226 | GtkStateType state_type, | |
35227 | GtkShadowType shadow_type, | |
35228 | GdkRectangle *area, | |
35229 | GtkWidget *widget, | |
35230 | const gchar *detail, | |
35231 | gint x, | |
35232 | gint y, | |
35233 | gint width, | |
35234 | gint height); | |
35235 | void (*draw_shadow_gap) (GtkStyle *style, | |
35236 | GdkWindow *window, | |
35237 | GtkStateType state_type, | |
35238 | GtkShadowType shadow_type, | |
35239 | GdkRectangle *area, | |
35240 | GtkWidget *widget, | |
35241 | const gchar *detail, | |
35242 | gint x, | |
35243 | gint y, | |
35244 | gint width, | |
35245 | gint height, | |
35246 | GtkPositionType gap_side, | |
35247 | gint gap_x, | |
35248 | gint gap_width); | |
35249 | void (*draw_box_gap) (GtkStyle *style, | |
35250 | GdkWindow *window, | |
35251 | GtkStateType state_type, | |
35252 | GtkShadowType shadow_type, | |
35253 | GdkRectangle *area, | |
35254 | GtkWidget *widget, | |
35255 | const gchar *detail, | |
35256 | gint x, | |
35257 | gint y, | |
35258 | gint width, | |
35259 | gint height, | |
35260 | GtkPositionType gap_side, | |
35261 | gint gap_x, | |
35262 | gint gap_width); | |
35263 | void (*draw_extension) (GtkStyle *style, | |
35264 | GdkWindow *window, | |
35265 | GtkStateType state_type, | |
35266 | GtkShadowType shadow_type, | |
35267 | GdkRectangle *area, | |
35268 | GtkWidget *widget, | |
35269 | const gchar *detail, | |
35270 | gint x, | |
35271 | gint y, | |
35272 | gint width, | |
35273 | gint height, | |
35274 | GtkPositionType gap_side); | |
35275 | void (*draw_focus) (GtkStyle *style, | |
35276 | GdkWindow *window, | |
35277 | GtkStateType state_type, | |
35278 | GdkRectangle *area, | |
35279 | GtkWidget *widget, | |
35280 | const gchar *detail, | |
35281 | gint x, | |
35282 | gint y, | |
35283 | gint width, | |
35284 | gint height); | |
35285 | void (*draw_slider) (GtkStyle *style, | |
35286 | GdkWindow *window, | |
35287 | GtkStateType state_type, | |
35288 | GtkShadowType shadow_type, | |
35289 | GdkRectangle *area, | |
35290 | GtkWidget *widget, | |
35291 | const gchar *detail, | |
35292 | gint x, | |
35293 | gint y, | |
35294 | gint width, | |
35295 | gint height, | |
35296 | GtkOrientation orientation); | |
35297 | void (*draw_handle) (GtkStyle *style, | |
35298 | GdkWindow *window, | |
35299 | GtkStateType state_type, | |
35300 | GtkShadowType shadow_type, | |
35301 | GdkRectangle *area, | |
35302 | GtkWidget *widget, | |
35303 | const gchar *detail, | |
35304 | gint x, | |
35305 | gint y, | |
35306 | gint width, | |
35307 | gint height, | |
35308 | GtkOrientation orientation); | |
35309 | ||
35310 | void (*draw_expander) (GtkStyle *style, | |
35311 | GdkWindow *window, | |
35312 | GtkStateType state_type, | |
35313 | GdkRectangle *area, | |
35314 | GtkWidget *widget, | |
35315 | const gchar *detail, | |
35316 | gint x, | |
35317 | gint y, | |
35318 | GtkExpanderStyle expander_style); | |
35319 | void (*draw_layout) (GtkStyle *style, | |
35320 | GdkWindow *window, | |
35321 | GtkStateType state_type, | |
35322 | gboolean use_text, | |
35323 | GdkRectangle *area, | |
35324 | GtkWidget *widget, | |
35325 | const gchar *detail, | |
35326 | gint x, | |
35327 | gint y, | |
35328 | PangoLayout *layout); | |
35329 | void (*draw_resize_grip) (GtkStyle *style, | |
35330 | GdkWindow *window, | |
35331 | GtkStateType state_type, | |
35332 | GdkRectangle *area, | |
35333 | GtkWidget *widget, | |
35334 | const gchar *detail, | |
35335 | GdkWindowEdge edge, | |
35336 | gint x, | |
35337 | gint y, | |
35338 | gint width, | |
35339 | gint height); | |
35340 | ||
35341 | ||
35342 | void (*_gtk_reserved1) (void); | |
35343 | void (*_gtk_reserved2) (void); | |
35344 | void (*_gtk_reserved3) (void); | |
35345 | void (*_gtk_reserved4) (void); | |
35346 | void (*_gtk_reserved5) (void); | |
35347 | void (*_gtk_reserved6) (void); | |
35348 | void (*_gtk_reserved7) (void); | |
35349 | void (*_gtk_reserved8) (void); | |
35350 | void (*_gtk_reserved9) (void); | |
35351 | void (*_gtk_reserved10) (void); | |
35352 | void (*_gtk_reserved11) (void); | |
35353 | void (*_gtk_reserved12) (void); | |
35354 | }; | |
35355 | ||
35356 | struct _GtkBorder | |
35357 | { | |
35358 | gint left; | |
35359 | gint right; | |
35360 | gint top; | |
35361 | gint bottom; | |
35362 | }; | |
35363 | ||
35364 | GType gtk_style_get_type (void) __attribute__((__const__)); | |
35365 | GtkStyle* gtk_style_new (void); | |
35366 | GtkStyle* gtk_style_copy (GtkStyle *style); | |
35367 | GtkStyle* gtk_style_attach (GtkStyle *style, | |
35368 | GdkWindow *window); | |
35369 | void gtk_style_detach (GtkStyle *style); | |
35370 | ||
35371 | ||
35372 | GtkStyle* gtk_style_ref (GtkStyle *style); | |
35373 | void gtk_style_unref (GtkStyle *style); | |
35374 | ||
35375 | GdkFont * gtk_style_get_font (GtkStyle *style); | |
35376 | void gtk_style_set_font (GtkStyle *style, | |
35377 | GdkFont *font); | |
35378 | ||
35379 | ||
35380 | void gtk_style_set_background (GtkStyle *style, | |
35381 | GdkWindow *window, | |
35382 | GtkStateType state_type); | |
35383 | void gtk_style_apply_default_background (GtkStyle *style, | |
35384 | GdkWindow *window, | |
35385 | gboolean set_bg, | |
35386 | GtkStateType state_type, | |
35387 | GdkRectangle *area, | |
35388 | gint x, | |
35389 | gint y, | |
35390 | gint width, | |
35391 | gint height); | |
35392 | ||
35393 | GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style, | |
35394 | const gchar *stock_id); | |
35395 | GdkPixbuf* gtk_style_render_icon (GtkStyle *style, | |
35396 | const GtkIconSource *source, | |
35397 | GtkTextDirection direction, | |
35398 | GtkStateType state, | |
35399 | GtkIconSize size, | |
35400 | GtkWidget *widget, | |
35401 | const gchar *detail); | |
35402 | ||
35403 | void gtk_draw_hline (GtkStyle *style, | |
35404 | GdkWindow *window, | |
35405 | GtkStateType state_type, | |
35406 | gint x1, | |
35407 | gint x2, | |
35408 | gint y); | |
35409 | void gtk_draw_vline (GtkStyle *style, | |
35410 | GdkWindow *window, | |
35411 | GtkStateType state_type, | |
35412 | gint y1_, | |
35413 | gint y2_, | |
35414 | gint x); | |
35415 | void gtk_draw_shadow (GtkStyle *style, | |
35416 | GdkWindow *window, | |
35417 | GtkStateType state_type, | |
35418 | GtkShadowType shadow_type, | |
35419 | gint x, | |
35420 | gint y, | |
35421 | gint width, | |
35422 | gint height); | |
35423 | void gtk_draw_polygon (GtkStyle *style, | |
35424 | GdkWindow *window, | |
35425 | GtkStateType state_type, | |
35426 | GtkShadowType shadow_type, | |
35427 | GdkPoint *points, | |
35428 | gint npoints, | |
35429 | gboolean fill); | |
35430 | void gtk_draw_arrow (GtkStyle *style, | |
35431 | GdkWindow *window, | |
35432 | GtkStateType state_type, | |
35433 | GtkShadowType shadow_type, | |
35434 | GtkArrowType arrow_type, | |
35435 | gboolean fill, | |
35436 | gint x, | |
35437 | gint y, | |
35438 | gint width, | |
35439 | gint height); | |
35440 | void gtk_draw_diamond (GtkStyle *style, | |
35441 | GdkWindow *window, | |
35442 | GtkStateType state_type, | |
35443 | GtkShadowType shadow_type, | |
35444 | gint x, | |
35445 | gint y, | |
35446 | gint width, | |
35447 | gint height); | |
35448 | void gtk_draw_box (GtkStyle *style, | |
35449 | GdkWindow *window, | |
35450 | GtkStateType state_type, | |
35451 | GtkShadowType shadow_type, | |
35452 | gint x, | |
35453 | gint y, | |
35454 | gint width, | |
35455 | gint height); | |
35456 | void gtk_draw_flat_box (GtkStyle *style, | |
35457 | GdkWindow *window, | |
35458 | GtkStateType state_type, | |
35459 | GtkShadowType shadow_type, | |
35460 | gint x, | |
35461 | gint y, | |
35462 | gint width, | |
35463 | gint height); | |
35464 | void gtk_draw_check (GtkStyle *style, | |
35465 | GdkWindow *window, | |
35466 | GtkStateType state_type, | |
35467 | GtkShadowType shadow_type, | |
35468 | gint x, | |
35469 | gint y, | |
35470 | gint width, | |
35471 | gint height); | |
35472 | void gtk_draw_option (GtkStyle *style, | |
35473 | GdkWindow *window, | |
35474 | GtkStateType state_type, | |
35475 | GtkShadowType shadow_type, | |
35476 | gint x, | |
35477 | gint y, | |
35478 | gint width, | |
35479 | gint height); | |
35480 | void gtk_draw_tab (GtkStyle *style, | |
35481 | GdkWindow *window, | |
35482 | GtkStateType state_type, | |
35483 | GtkShadowType shadow_type, | |
35484 | gint x, | |
35485 | gint y, | |
35486 | gint width, | |
35487 | gint height); | |
35488 | void gtk_draw_shadow_gap (GtkStyle *style, | |
35489 | GdkWindow *window, | |
35490 | GtkStateType state_type, | |
35491 | GtkShadowType shadow_type, | |
35492 | gint x, | |
35493 | gint y, | |
35494 | gint width, | |
35495 | gint height, | |
35496 | GtkPositionType gap_side, | |
35497 | gint gap_x, | |
35498 | gint gap_width); | |
35499 | void gtk_draw_box_gap (GtkStyle *style, | |
35500 | GdkWindow *window, | |
35501 | GtkStateType state_type, | |
35502 | GtkShadowType shadow_type, | |
35503 | gint x, | |
35504 | gint y, | |
35505 | gint width, | |
35506 | gint height, | |
35507 | GtkPositionType gap_side, | |
35508 | gint gap_x, | |
35509 | gint gap_width); | |
35510 | void gtk_draw_extension (GtkStyle *style, | |
35511 | GdkWindow *window, | |
35512 | GtkStateType state_type, | |
35513 | GtkShadowType shadow_type, | |
35514 | gint x, | |
35515 | gint y, | |
35516 | gint width, | |
35517 | gint height, | |
35518 | GtkPositionType gap_side); | |
35519 | void gtk_draw_focus (GtkStyle *style, | |
35520 | GdkWindow *window, | |
35521 | gint x, | |
35522 | gint y, | |
35523 | gint width, | |
35524 | gint height); | |
35525 | void gtk_draw_slider (GtkStyle *style, | |
35526 | GdkWindow *window, | |
35527 | GtkStateType state_type, | |
35528 | GtkShadowType shadow_type, | |
35529 | gint x, | |
35530 | gint y, | |
35531 | gint width, | |
35532 | gint height, | |
35533 | GtkOrientation orientation); | |
35534 | void gtk_draw_handle (GtkStyle *style, | |
35535 | GdkWindow *window, | |
35536 | GtkStateType state_type, | |
35537 | GtkShadowType shadow_type, | |
35538 | gint x, | |
35539 | gint y, | |
35540 | gint width, | |
35541 | gint height, | |
35542 | GtkOrientation orientation); | |
35543 | void gtk_draw_expander (GtkStyle *style, | |
35544 | GdkWindow *window, | |
35545 | GtkStateType state_type, | |
35546 | gint x, | |
35547 | gint y, | |
35548 | GtkExpanderStyle expander_style); | |
35549 | void gtk_draw_layout (GtkStyle *style, | |
35550 | GdkWindow *window, | |
35551 | GtkStateType state_type, | |
35552 | gboolean use_text, | |
35553 | gint x, | |
35554 | gint y, | |
35555 | PangoLayout *layout); | |
35556 | void gtk_draw_resize_grip (GtkStyle *style, | |
35557 | GdkWindow *window, | |
35558 | GtkStateType state_type, | |
35559 | GdkWindowEdge edge, | |
35560 | gint x, | |
35561 | gint y, | |
35562 | gint width, | |
35563 | gint height); | |
35564 | ||
35565 | ||
35566 | void gtk_paint_hline (GtkStyle *style, | |
35567 | GdkWindow *window, | |
35568 | GtkStateType state_type, | |
35569 | GdkRectangle *area, | |
35570 | GtkWidget *widget, | |
35571 | const gchar *detail, | |
35572 | gint x1, | |
35573 | gint x2, | |
35574 | gint y); | |
35575 | void gtk_paint_vline (GtkStyle *style, | |
35576 | GdkWindow *window, | |
35577 | GtkStateType state_type, | |
35578 | GdkRectangle *area, | |
35579 | GtkWidget *widget, | |
35580 | const gchar *detail, | |
35581 | gint y1_, | |
35582 | gint y2_, | |
35583 | gint x); | |
35584 | void gtk_paint_shadow (GtkStyle *style, | |
35585 | GdkWindow *window, | |
35586 | GtkStateType state_type, | |
35587 | GtkShadowType shadow_type, | |
35588 | GdkRectangle *area, | |
35589 | GtkWidget *widget, | |
35590 | const gchar *detail, | |
35591 | gint x, | |
35592 | gint y, | |
35593 | gint width, | |
35594 | gint height); | |
35595 | void gtk_paint_polygon (GtkStyle *style, | |
35596 | GdkWindow *window, | |
35597 | GtkStateType state_type, | |
35598 | GtkShadowType shadow_type, | |
35599 | GdkRectangle *area, | |
35600 | GtkWidget *widget, | |
35601 | const gchar *detail, | |
35602 | GdkPoint *points, | |
35603 | gint npoints, | |
35604 | gboolean fill); | |
35605 | void gtk_paint_arrow (GtkStyle *style, | |
35606 | GdkWindow *window, | |
35607 | GtkStateType state_type, | |
35608 | GtkShadowType shadow_type, | |
35609 | GdkRectangle *area, | |
35610 | GtkWidget *widget, | |
35611 | const gchar *detail, | |
35612 | GtkArrowType arrow_type, | |
35613 | gboolean fill, | |
35614 | gint x, | |
35615 | gint y, | |
35616 | gint width, | |
35617 | gint height); | |
35618 | void gtk_paint_diamond (GtkStyle *style, | |
35619 | GdkWindow *window, | |
35620 | GtkStateType state_type, | |
35621 | GtkShadowType shadow_type, | |
35622 | GdkRectangle *area, | |
35623 | GtkWidget *widget, | |
35624 | const gchar *detail, | |
35625 | gint x, | |
35626 | gint y, | |
35627 | gint width, | |
35628 | gint height); | |
35629 | void gtk_paint_box (GtkStyle *style, | |
35630 | GdkWindow *window, | |
35631 | GtkStateType state_type, | |
35632 | GtkShadowType shadow_type, | |
35633 | GdkRectangle *area, | |
35634 | GtkWidget *widget, | |
35635 | const gchar *detail, | |
35636 | gint x, | |
35637 | gint y, | |
35638 | gint width, | |
35639 | gint height); | |
35640 | void gtk_paint_flat_box (GtkStyle *style, | |
35641 | GdkWindow *window, | |
35642 | GtkStateType state_type, | |
35643 | GtkShadowType shadow_type, | |
35644 | GdkRectangle *area, | |
35645 | GtkWidget *widget, | |
35646 | const gchar *detail, | |
35647 | gint x, | |
35648 | gint y, | |
35649 | gint width, | |
35650 | gint height); | |
35651 | void gtk_paint_check (GtkStyle *style, | |
35652 | GdkWindow *window, | |
35653 | GtkStateType state_type, | |
35654 | GtkShadowType shadow_type, | |
35655 | GdkRectangle *area, | |
35656 | GtkWidget *widget, | |
35657 | const gchar *detail, | |
35658 | gint x, | |
35659 | gint y, | |
35660 | gint width, | |
35661 | gint height); | |
35662 | void gtk_paint_option (GtkStyle *style, | |
35663 | GdkWindow *window, | |
35664 | GtkStateType state_type, | |
35665 | GtkShadowType shadow_type, | |
35666 | GdkRectangle *area, | |
35667 | GtkWidget *widget, | |
35668 | const gchar *detail, | |
35669 | gint x, | |
35670 | gint y, | |
35671 | gint width, | |
35672 | gint height); | |
35673 | void gtk_paint_tab (GtkStyle *style, | |
35674 | GdkWindow *window, | |
35675 | GtkStateType state_type, | |
35676 | GtkShadowType shadow_type, | |
35677 | GdkRectangle *area, | |
35678 | GtkWidget *widget, | |
35679 | const gchar *detail, | |
35680 | gint x, | |
35681 | gint y, | |
35682 | gint width, | |
35683 | gint height); | |
35684 | void gtk_paint_shadow_gap (GtkStyle *style, | |
35685 | GdkWindow *window, | |
35686 | GtkStateType state_type, | |
35687 | GtkShadowType shadow_type, | |
35688 | GdkRectangle *area, | |
35689 | GtkWidget *widget, | |
35690 | gchar *detail, | |
35691 | gint x, | |
35692 | gint y, | |
35693 | gint width, | |
35694 | gint height, | |
35695 | GtkPositionType gap_side, | |
35696 | gint gap_x, | |
35697 | gint gap_width); | |
35698 | void gtk_paint_box_gap (GtkStyle *style, | |
35699 | GdkWindow *window, | |
35700 | GtkStateType state_type, | |
35701 | GtkShadowType shadow_type, | |
35702 | GdkRectangle *area, | |
35703 | GtkWidget *widget, | |
35704 | gchar *detail, | |
35705 | gint x, | |
35706 | gint y, | |
35707 | gint width, | |
35708 | gint height, | |
35709 | GtkPositionType gap_side, | |
35710 | gint gap_x, | |
35711 | gint gap_width); | |
35712 | void gtk_paint_extension (GtkStyle *style, | |
35713 | GdkWindow *window, | |
35714 | GtkStateType state_type, | |
35715 | GtkShadowType shadow_type, | |
35716 | GdkRectangle *area, | |
35717 | GtkWidget *widget, | |
35718 | gchar *detail, | |
35719 | gint x, | |
35720 | gint y, | |
35721 | gint width, | |
35722 | gint height, | |
35723 | GtkPositionType gap_side); | |
35724 | void gtk_paint_focus (GtkStyle *style, | |
35725 | GdkWindow *window, | |
35726 | GtkStateType state_type, | |
35727 | GdkRectangle *area, | |
35728 | GtkWidget *widget, | |
35729 | const gchar *detail, | |
35730 | gint x, | |
35731 | gint y, | |
35732 | gint width, | |
35733 | gint height); | |
35734 | void gtk_paint_slider (GtkStyle *style, | |
35735 | GdkWindow *window, | |
35736 | GtkStateType state_type, | |
35737 | GtkShadowType shadow_type, | |
35738 | GdkRectangle *area, | |
35739 | GtkWidget *widget, | |
35740 | const gchar *detail, | |
35741 | gint x, | |
35742 | gint y, | |
35743 | gint width, | |
35744 | gint height, | |
35745 | GtkOrientation orientation); | |
35746 | void gtk_paint_handle (GtkStyle *style, | |
35747 | GdkWindow *window, | |
35748 | GtkStateType state_type, | |
35749 | GtkShadowType shadow_type, | |
35750 | GdkRectangle *area, | |
35751 | GtkWidget *widget, | |
35752 | const gchar *detail, | |
35753 | gint x, | |
35754 | gint y, | |
35755 | gint width, | |
35756 | gint height, | |
35757 | GtkOrientation orientation); | |
35758 | void gtk_paint_expander (GtkStyle *style, | |
35759 | GdkWindow *window, | |
35760 | GtkStateType state_type, | |
35761 | GdkRectangle *area, | |
35762 | GtkWidget *widget, | |
35763 | const gchar *detail, | |
35764 | gint x, | |
35765 | gint y, | |
35766 | GtkExpanderStyle expander_style); | |
35767 | void gtk_paint_layout (GtkStyle *style, | |
35768 | GdkWindow *window, | |
35769 | GtkStateType state_type, | |
35770 | gboolean use_text, | |
35771 | GdkRectangle *area, | |
35772 | GtkWidget *widget, | |
35773 | const gchar *detail, | |
35774 | gint x, | |
35775 | gint y, | |
35776 | PangoLayout *layout); | |
35777 | ||
35778 | void gtk_paint_resize_grip (GtkStyle *style, | |
35779 | GdkWindow *window, | |
35780 | GtkStateType state_type, | |
35781 | GdkRectangle *area, | |
35782 | GtkWidget *widget, | |
35783 | const gchar *detail, | |
35784 | GdkWindowEdge edge, | |
35785 | gint x, | |
35786 | gint y, | |
35787 | gint width, | |
35788 | gint height); | |
35789 | ||
35790 | ||
35791 | GType gtk_border_get_type (void) __attribute__((__const__)); | |
35792 | GtkBorder *gtk_border_copy (const GtkBorder *border_); | |
35793 | void gtk_border_free ( GtkBorder *border_); | |
35794 | ||
35795 | ||
35796 | const GValue* _gtk_style_peek_property_value (GtkStyle *style, | |
35797 | GType widget_type, | |
35798 | GParamSpec *pspec, | |
35799 | GtkRcPropertyParser parser); | |
35800 | ||
35801 | void _gtk_style_init_for_settings (GtkStyle *style, | |
35802 | GtkSettings *settings); | |
35803 | ||
35804 | ||
35805 | ||
35806 | #define gtk_style_apply_default_pixmap(s,gw,st,a,x,y,w,h) gtk_style_apply_default_background (s,gw,1,st,a,x,y,w,h) | |
35807 | void gtk_draw_string (GtkStyle *style, | |
35808 | GdkWindow *window, | |
35809 | GtkStateType state_type, | |
35810 | gint x, | |
35811 | gint y, | |
35812 | const gchar *string); | |
35813 | void gtk_paint_string (GtkStyle *style, | |
35814 | GdkWindow *window, | |
35815 | GtkStateType state_type, | |
35816 | GdkRectangle *area, | |
35817 | GtkWidget *widget, | |
35818 | const gchar *detail, | |
35819 | gint x, | |
35820 | gint y, | |
35821 | const gchar *string); | |
35822 | ||
35823 | ||
35824 | void gtk_draw_insertion_cursor (GtkWidget *widget, | |
35825 | GdkDrawable *drawable, | |
35826 | GdkRectangle *area, | |
35827 | GdkRectangle *location, | |
35828 | gboolean is_primary, | |
35829 | GtkTextDirection direction, | |
35830 | gboolean draw_arrow); | |
35831 | ||
35832 | ||
35833 | # 35 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2 | |
35834 | # 1 "/usr/include/gtk-2.0/gtk/gtksettings.h" 1 | |
35835 | # 19 "/usr/include/gtk-2.0/gtk/gtksettings.h" | |
35836 | #define __GTK_SETTINGS_H__ | |
35837 | ||
35838 | # 1 "/usr/include/gtk-2.0/gtk/gtkrc.h" 1 | |
35839 | # 28 "/usr/include/gtk-2.0/gtk/gtkrc.h" | |
35840 | #define __GTK_RC_H__ | |
35841 | ||
35842 | ||
35843 | ||
35844 | ||
35845 | ||
35846 | ||
35847 | ||
35848 | typedef struct _GtkIconFactory GtkIconFactory; | |
35849 | typedef struct _GtkRcContext GtkRcContext; | |
35850 | ||
35851 | typedef struct _GtkRcStyleClass GtkRcStyleClass; | |
35852 | ||
35853 | #define GTK_TYPE_RC_STYLE (gtk_rc_style_get_type ()) | |
35854 | #define GTK_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_RC_STYLE, GtkRcStyle)) | |
35855 | #define GTK_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RC_STYLE, GtkRcStyleClass)) | |
35856 | #define GTK_IS_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_RC_STYLE)) | |
35857 | #define GTK_IS_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RC_STYLE)) | |
35858 | #define GTK_RC_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RC_STYLE, GtkRcStyleClass)) | |
35859 | ||
35860 | typedef enum | |
35861 | { | |
35862 | GTK_RC_FG = 1 << 0, | |
35863 | GTK_RC_BG = 1 << 1, | |
35864 | GTK_RC_TEXT = 1 << 2, | |
35865 | GTK_RC_BASE = 1 << 3 | |
35866 | } GtkRcFlags; | |
35867 | ||
35868 | struct _GtkRcStyle | |
35869 | { | |
35870 | GObject parent_instance; | |
35871 | ||
35872 | ||
35873 | ||
35874 | gchar *name; | |
35875 | gchar *bg_pixmap_name[5]; | |
35876 | PangoFontDescription *font_desc; | |
35877 | ||
35878 | GtkRcFlags color_flags[5]; | |
35879 | GdkColor fg[5]; | |
35880 | GdkColor bg[5]; | |
35881 | GdkColor text[5]; | |
35882 | GdkColor base[5]; | |
35883 | ||
35884 | gint xthickness; | |
35885 | gint ythickness; | |
35886 | ||
35887 | ||
35888 | GArray *rc_properties; | |
35889 | ||
35890 | ||
35891 | GSList *rc_style_lists; | |
35892 | ||
35893 | GSList *icon_factories; | |
35894 | ||
35895 | guint engine_specified : 1; | |
35896 | }; | |
35897 | ||
35898 | struct _GtkRcStyleClass | |
35899 | { | |
35900 | GObjectClass parent_class; | |
35901 | ||
35902 | ||
35903 | ||
35904 | ||
35905 | ||
35906 | ||
35907 | GtkRcStyle * (*create_rc_style) (GtkRcStyle *rc_style); | |
35908 | ||
35909 | ||
35910 | ||
35911 | ||
35912 | ||
35913 | guint (*parse) (GtkRcStyle *rc_style, | |
35914 | GtkSettings *settings, | |
35915 | GScanner *scanner); | |
35916 | ||
35917 | ||
35918 | ||
35919 | ||
35920 | void (*merge) (GtkRcStyle *dest, | |
35921 | GtkRcStyle *src); | |
35922 | ||
35923 | ||
35924 | ||
35925 | GtkStyle * (*create_style) (GtkRcStyle *rc_style); | |
35926 | ||
35927 | ||
35928 | void (*_gtk_reserved1) (void); | |
35929 | void (*_gtk_reserved2) (void); | |
35930 | void (*_gtk_reserved3) (void); | |
35931 | void (*_gtk_reserved4) (void); | |
35932 | }; | |
35933 | # 129 "/usr/include/gtk-2.0/gtk/gtkrc.h" | |
35934 | void _gtk_rc_init (void); | |
35935 | void gtk_rc_add_default_file (const gchar *filename); | |
35936 | void gtk_rc_set_default_files (gchar **filenames); | |
35937 | gchar** gtk_rc_get_default_files (void); | |
35938 | GtkStyle* gtk_rc_get_style (GtkWidget *widget); | |
35939 | GtkStyle* gtk_rc_get_style_by_paths (GtkSettings *settings, | |
35940 | const char *widget_path, | |
35941 | const char *class_path, | |
35942 | GType type); | |
35943 | ||
35944 | gboolean gtk_rc_reparse_all_for_settings (GtkSettings *settings, | |
35945 | gboolean force_load); | |
35946 | void gtk_rc_reset_styles (GtkSettings *settings); | |
35947 | ||
35948 | gchar* gtk_rc_find_pixmap_in_path (GtkSettings *settings, | |
35949 | GScanner *scanner, | |
35950 | const gchar *pixmap_file); | |
35951 | ||
35952 | void gtk_rc_parse (const gchar *filename); | |
35953 | void gtk_rc_parse_string (const gchar *rc_string); | |
35954 | gboolean gtk_rc_reparse_all (void); | |
35955 | ||
35956 | ||
35957 | void gtk_rc_add_widget_name_style (GtkRcStyle *rc_style, | |
35958 | const gchar *pattern); | |
35959 | void gtk_rc_add_widget_class_style (GtkRcStyle *rc_style, | |
35960 | const gchar *pattern); | |
35961 | void gtk_rc_add_class_style (GtkRcStyle *rc_style, | |
35962 | const gchar *pattern); | |
35963 | ||
35964 | ||
35965 | ||
35966 | GType gtk_rc_style_get_type (void) __attribute__((__const__)); | |
35967 | GtkRcStyle* gtk_rc_style_new (void); | |
35968 | GtkRcStyle* gtk_rc_style_copy (GtkRcStyle *orig); | |
35969 | void gtk_rc_style_ref (GtkRcStyle *rc_style); | |
35970 | void gtk_rc_style_unref (GtkRcStyle *rc_style); | |
35971 | ||
35972 | gchar* gtk_rc_find_module_in_path (const gchar *module_file); | |
35973 | gchar* gtk_rc_get_theme_dir (void); | |
35974 | gchar* gtk_rc_get_module_dir (void); | |
35975 | gchar* gtk_rc_get_im_module_path (void); | |
35976 | gchar* gtk_rc_get_im_module_file (void); | |
35977 | ||
35978 | ||
35979 | typedef enum { | |
35980 | GTK_RC_TOKEN_INVALID = G_TOKEN_LAST, | |
35981 | GTK_RC_TOKEN_INCLUDE, | |
35982 | GTK_RC_TOKEN_NORMAL, | |
35983 | GTK_RC_TOKEN_ACTIVE, | |
35984 | GTK_RC_TOKEN_PRELIGHT, | |
35985 | GTK_RC_TOKEN_SELECTED, | |
35986 | GTK_RC_TOKEN_INSENSITIVE, | |
35987 | GTK_RC_TOKEN_FG, | |
35988 | GTK_RC_TOKEN_BG, | |
35989 | GTK_RC_TOKEN_TEXT, | |
35990 | GTK_RC_TOKEN_BASE, | |
35991 | GTK_RC_TOKEN_XTHICKNESS, | |
35992 | GTK_RC_TOKEN_YTHICKNESS, | |
35993 | GTK_RC_TOKEN_FONT, | |
35994 | GTK_RC_TOKEN_FONTSET, | |
35995 | GTK_RC_TOKEN_FONT_NAME, | |
35996 | GTK_RC_TOKEN_BG_PIXMAP, | |
35997 | GTK_RC_TOKEN_PIXMAP_PATH, | |
35998 | GTK_RC_TOKEN_STYLE, | |
35999 | GTK_RC_TOKEN_BINDING, | |
36000 | GTK_RC_TOKEN_BIND, | |
36001 | GTK_RC_TOKEN_WIDGET, | |
36002 | GTK_RC_TOKEN_WIDGET_CLASS, | |
36003 | GTK_RC_TOKEN_CLASS, | |
36004 | GTK_RC_TOKEN_LOWEST, | |
36005 | GTK_RC_TOKEN_GTK, | |
36006 | GTK_RC_TOKEN_APPLICATION, | |
36007 | GTK_RC_TOKEN_THEME, | |
36008 | GTK_RC_TOKEN_RC, | |
36009 | GTK_RC_TOKEN_HIGHEST, | |
36010 | GTK_RC_TOKEN_ENGINE, | |
36011 | GTK_RC_TOKEN_MODULE_PATH, | |
36012 | GTK_RC_TOKEN_IM_MODULE_PATH, | |
36013 | GTK_RC_TOKEN_IM_MODULE_FILE, | |
36014 | GTK_RC_TOKEN_STOCK, | |
36015 | GTK_RC_TOKEN_LTR, | |
36016 | GTK_RC_TOKEN_RTL, | |
36017 | GTK_RC_TOKEN_LAST | |
36018 | } GtkRcTokenType; | |
36019 | ||
36020 | GScanner* gtk_rc_scanner_new (void); | |
36021 | guint gtk_rc_parse_color (GScanner *scanner, | |
36022 | GdkColor *color); | |
36023 | guint gtk_rc_parse_state (GScanner *scanner, | |
36024 | GtkStateType *state); | |
36025 | guint gtk_rc_parse_priority (GScanner *scanner, | |
36026 | GtkPathPriorityType *priority); | |
36027 | ||
36028 | ||
36029 | ||
36030 | ||
36031 | struct _GtkRcProperty | |
36032 | { | |
36033 | ||
36034 | GQuark type_name; | |
36035 | GQuark property_name; | |
36036 | ||
36037 | ||
36038 | gchar *origin; | |
36039 | GValue value; | |
36040 | }; | |
36041 | const GtkRcProperty* _gtk_rc_style_lookup_rc_property (GtkRcStyle *rc_style, | |
36042 | GQuark type_name, | |
36043 | GQuark property_name); | |
36044 | ||
36045 | const gchar* _gtk_rc_context_get_default_font_name (GtkSettings *settings); | |
36046 | ||
36047 | ||
36048 | # 22 "/usr/include/gtk-2.0/gtk/gtksettings.h" 2 | |
36049 | ||
36050 | ||
36051 | ||
36052 | ||
36053 | ||
36054 | #define GTK_TYPE_SETTINGS (gtk_settings_get_type ()) | |
36055 | #define GTK_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SETTINGS, GtkSettings)) | |
36056 | #define GTK_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SETTINGS, GtkSettingsClass)) | |
36057 | #define GTK_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SETTINGS)) | |
36058 | #define GTK_IS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SETTINGS)) | |
36059 | #define GTK_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SETTINGS, GtkSettingsClass)) | |
36060 | ||
36061 | ||
36062 | ||
36063 | typedef struct _GtkSettingsClass GtkSettingsClass; | |
36064 | typedef struct _GtkSettingsValue GtkSettingsValue; | |
36065 | typedef struct _GtkSettingsPropertyValue GtkSettingsPropertyValue; | |
36066 | ||
36067 | ||
36068 | ||
36069 | struct _GtkSettings | |
36070 | { | |
36071 | GObject parent_instance; | |
36072 | ||
36073 | GData *queued_settings; | |
36074 | GtkSettingsPropertyValue *property_values; | |
36075 | ||
36076 | GtkRcContext *rc_context; | |
36077 | GdkScreen *screen; | |
36078 | }; | |
36079 | struct _GtkSettingsClass | |
36080 | { | |
36081 | GObjectClass parent_class; | |
36082 | ||
36083 | }; | |
36084 | struct _GtkSettingsValue | |
36085 | { | |
36086 | ||
36087 | ||
36088 | ||
36089 | gchar *origin; | |
36090 | ||
36091 | ||
36092 | ||
36093 | ||
36094 | GValue value; | |
36095 | }; | |
36096 | ||
36097 | ||
36098 | ||
36099 | GType gtk_settings_get_type (void) __attribute__((__const__)); | |
36100 | ||
36101 | GtkSettings* gtk_settings_get_default (void); | |
36102 | ||
36103 | GtkSettings* gtk_settings_get_for_screen (GdkScreen *screen); | |
36104 | ||
36105 | void gtk_settings_install_property (GParamSpec *pspec); | |
36106 | void gtk_settings_install_property_parser (GParamSpec *pspec, | |
36107 | GtkRcPropertyParser parser); | |
36108 | ||
36109 | ||
36110 | gboolean gtk_rc_property_parse_color (const GParamSpec *pspec, | |
36111 | const GString *gstring, | |
36112 | GValue *property_value); | |
36113 | gboolean gtk_rc_property_parse_enum (const GParamSpec *pspec, | |
36114 | const GString *gstring, | |
36115 | GValue *property_value); | |
36116 | gboolean gtk_rc_property_parse_flags (const GParamSpec *pspec, | |
36117 | const GString *gstring, | |
36118 | GValue *property_value); | |
36119 | gboolean gtk_rc_property_parse_requisition (const GParamSpec *pspec, | |
36120 | const GString *gstring, | |
36121 | GValue *property_value); | |
36122 | gboolean gtk_rc_property_parse_border (const GParamSpec *pspec, | |
36123 | const GString *gstring, | |
36124 | GValue *property_value); | |
36125 | ||
36126 | ||
36127 | void gtk_settings_set_property_value (GtkSettings *settings, | |
36128 | const gchar *name, | |
36129 | const GtkSettingsValue *svalue); | |
36130 | void gtk_settings_set_string_property (GtkSettings *settings, | |
36131 | const gchar *name, | |
36132 | const gchar *v_string, | |
36133 | const gchar *origin); | |
36134 | void gtk_settings_set_long_property (GtkSettings *settings, | |
36135 | const gchar *name, | |
36136 | glong v_long, | |
36137 | const gchar *origin); | |
36138 | void gtk_settings_set_double_property (GtkSettings *settings, | |
36139 | const gchar *name, | |
36140 | gdouble v_double, | |
36141 | const gchar *origin); | |
36142 | ||
36143 | ||
36144 | ||
36145 | void _gtk_settings_set_property_value_from_rc (GtkSettings *settings, | |
36146 | const gchar *name, | |
36147 | const GtkSettingsValue *svalue); | |
36148 | void _gtk_settings_reset_rc_values (GtkSettings *settings); | |
36149 | ||
36150 | void _gtk_settings_handle_event (GdkEventSetting *event); | |
36151 | GtkRcPropertyParser _gtk_rc_property_parser_from_type (GType type); | |
36152 | gboolean _gtk_settings_parse_convert (GtkRcPropertyParser parser, | |
36153 | const GValue *src_value, | |
36154 | GParamSpec *pspec, | |
36155 | GValue *dest_value); | |
36156 | ||
36157 | ||
36158 | ||
36159 | # 36 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2 | |
36160 | # 1 "/usr/include/atk-1.0/atk/atkobject.h" 1 | |
36161 | # 21 "/usr/include/atk-1.0/atk/atkobject.h" | |
36162 | #define __ATK_OBJECT_H__ | |
36163 | ||
36164 | ||
36165 | ||
36166 | ||
36167 | ||
36168 | ||
36169 | # 1 "/usr/include/atk-1.0/atk/atkstate.h" 1 | |
36170 | # 21 "/usr/include/atk-1.0/atk/atkstate.h" | |
36171 | #define __ATK_STATE_H__ | |
36172 | # 76 "/usr/include/atk-1.0/atk/atkstate.h" | |
36173 | typedef enum | |
36174 | { | |
36175 | ATK_STATE_INVALID, | |
36176 | ATK_STATE_ACTIVE, | |
36177 | ATK_STATE_ARMED, | |
36178 | ATK_STATE_BUSY, | |
36179 | ATK_STATE_CHECKED, | |
36180 | ATK_STATE_DEFUNCT, | |
36181 | ATK_STATE_EDITABLE, | |
36182 | ATK_STATE_ENABLED, | |
36183 | ATK_STATE_EXPANDABLE, | |
36184 | ATK_STATE_EXPANDED, | |
36185 | ATK_STATE_FOCUSABLE, | |
36186 | ATK_STATE_FOCUSED, | |
36187 | ATK_STATE_HORIZONTAL, | |
36188 | ATK_STATE_ICONIFIED, | |
36189 | ATK_STATE_MODAL, | |
36190 | ATK_STATE_MULTI_LINE, | |
36191 | ATK_STATE_MULTISELECTABLE, | |
36192 | ATK_STATE_OPAQUE, | |
36193 | ATK_STATE_PRESSED, | |
36194 | ATK_STATE_RESIZABLE, | |
36195 | ATK_STATE_SELECTABLE, | |
36196 | ATK_STATE_SELECTED, | |
36197 | ATK_STATE_SENSITIVE, | |
36198 | ATK_STATE_SHOWING, | |
36199 | ATK_STATE_SINGLE_LINE, | |
36200 | ATK_STATE_STALE, | |
36201 | ATK_STATE_TRANSIENT, | |
36202 | ATK_STATE_VERTICAL, | |
36203 | ATK_STATE_VISIBLE, | |
36204 | ATK_STATE_MANAGES_DESCENDANTS, | |
36205 | ATK_STATE_INDETERMINATE, | |
36206 | ATK_STATE_TRUNCATED, | |
36207 | ATK_STATE_REQUIRED, | |
36208 | ATK_STATE_INVALID_ENTRY, | |
36209 | ATK_STATE_SUPPORTS_AUTOCOMPLETION, | |
36210 | ATK_STATE_SELECTABLE_TEXT, | |
36211 | ATK_STATE_DEFAULT, | |
36212 | ATK_STATE_ANIMATED, | |
36213 | ATK_STATE_VISITED, | |
36214 | ||
36215 | ATK_STATE_LAST_DEFINED | |
36216 | } AtkStateType; | |
36217 | ||
36218 | typedef guint64 AtkState; | |
36219 | ||
36220 | AtkStateType atk_state_type_register (const gchar *name); | |
36221 | ||
36222 | const gchar* atk_state_type_get_name (AtkStateType type); | |
36223 | AtkStateType atk_state_type_for_name (const gchar *name); | |
36224 | # 29 "/usr/include/atk-1.0/atk/atkobject.h" 2 | |
36225 | # 1 "/usr/include/atk-1.0/atk/atkrelationtype.h" 1 | |
36226 | # 21 "/usr/include/atk-1.0/atk/atkrelationtype.h" | |
36227 | #define __ATK_RELATION_TYPE_H__ | |
36228 | # 54 "/usr/include/atk-1.0/atk/atkrelationtype.h" | |
36229 | typedef enum | |
36230 | { | |
36231 | ATK_RELATION_NULL = 0, | |
36232 | ATK_RELATION_CONTROLLED_BY, | |
36233 | ATK_RELATION_CONTROLLER_FOR, | |
36234 | ATK_RELATION_LABEL_FOR, | |
36235 | ATK_RELATION_LABELLED_BY, | |
36236 | ATK_RELATION_MEMBER_OF, | |
36237 | ATK_RELATION_NODE_CHILD_OF, | |
36238 | ATK_RELATION_FLOWS_TO, | |
36239 | ATK_RELATION_FLOWS_FROM, | |
36240 | ATK_RELATION_SUBWINDOW_OF, | |
36241 | ATK_RELATION_EMBEDS, | |
36242 | ATK_RELATION_EMBEDDED_BY, | |
36243 | ATK_RELATION_POPUP_FOR, | |
36244 | ATK_RELATION_PARENT_WINDOW_OF, | |
36245 | ATK_RELATION_DESCRIBED_BY, | |
36246 | ATK_RELATION_DESCRIPTION_FOR, | |
36247 | ATK_RELATION_LAST_DEFINED | |
36248 | } AtkRelationType; | |
36249 | # 30 "/usr/include/atk-1.0/atk/atkobject.h" 2 | |
36250 | # 148 "/usr/include/atk-1.0/atk/atkobject.h" | |
36251 | typedef enum | |
36252 | { | |
36253 | ATK_ROLE_INVALID = 0, | |
36254 | ATK_ROLE_ACCEL_LABEL, | |
36255 | ATK_ROLE_ALERT, | |
36256 | ATK_ROLE_ANIMATION, | |
36257 | ATK_ROLE_ARROW, | |
36258 | ATK_ROLE_CALENDAR, | |
36259 | ATK_ROLE_CANVAS, | |
36260 | ATK_ROLE_CHECK_BOX, | |
36261 | ATK_ROLE_CHECK_MENU_ITEM, | |
36262 | ATK_ROLE_COLOR_CHOOSER, | |
36263 | ATK_ROLE_COLUMN_HEADER, | |
36264 | ATK_ROLE_COMBO_BOX, | |
36265 | ATK_ROLE_DATE_EDITOR, | |
36266 | ATK_ROLE_DESKTOP_ICON, | |
36267 | ATK_ROLE_DESKTOP_FRAME, | |
36268 | ATK_ROLE_DIAL, | |
36269 | ATK_ROLE_DIALOG, | |
36270 | ATK_ROLE_DIRECTORY_PANE, | |
36271 | ATK_ROLE_DRAWING_AREA, | |
36272 | ATK_ROLE_FILE_CHOOSER, | |
36273 | ATK_ROLE_FILLER, | |
36274 | ATK_ROLE_FONT_CHOOSER, | |
36275 | ATK_ROLE_FRAME, | |
36276 | ATK_ROLE_GLASS_PANE, | |
36277 | ATK_ROLE_HTML_CONTAINER, | |
36278 | ATK_ROLE_ICON, | |
36279 | ATK_ROLE_IMAGE, | |
36280 | ATK_ROLE_INTERNAL_FRAME, | |
36281 | ATK_ROLE_LABEL, | |
36282 | ATK_ROLE_LAYERED_PANE, | |
36283 | ATK_ROLE_LIST, | |
36284 | ATK_ROLE_LIST_ITEM, | |
36285 | ATK_ROLE_MENU, | |
36286 | ATK_ROLE_MENU_BAR, | |
36287 | ATK_ROLE_MENU_ITEM, | |
36288 | ATK_ROLE_OPTION_PANE, | |
36289 | ATK_ROLE_PAGE_TAB, | |
36290 | ATK_ROLE_PAGE_TAB_LIST, | |
36291 | ATK_ROLE_PANEL, | |
36292 | ATK_ROLE_PASSWORD_TEXT, | |
36293 | ATK_ROLE_POPUP_MENU, | |
36294 | ATK_ROLE_PROGRESS_BAR, | |
36295 | ATK_ROLE_PUSH_BUTTON, | |
36296 | ATK_ROLE_RADIO_BUTTON, | |
36297 | ATK_ROLE_RADIO_MENU_ITEM, | |
36298 | ATK_ROLE_ROOT_PANE, | |
36299 | ATK_ROLE_ROW_HEADER, | |
36300 | ATK_ROLE_SCROLL_BAR, | |
36301 | ATK_ROLE_SCROLL_PANE, | |
36302 | ATK_ROLE_SEPARATOR, | |
36303 | ATK_ROLE_SLIDER, | |
36304 | ATK_ROLE_SPLIT_PANE, | |
36305 | ATK_ROLE_SPIN_BUTTON, | |
36306 | ATK_ROLE_STATUSBAR, | |
36307 | ATK_ROLE_TABLE, | |
36308 | ATK_ROLE_TABLE_CELL, | |
36309 | ATK_ROLE_TABLE_COLUMN_HEADER, | |
36310 | ATK_ROLE_TABLE_ROW_HEADER, | |
36311 | ATK_ROLE_TEAR_OFF_MENU_ITEM, | |
36312 | ATK_ROLE_TERMINAL, | |
36313 | ATK_ROLE_TEXT, | |
36314 | ATK_ROLE_TOGGLE_BUTTON, | |
36315 | ATK_ROLE_TOOL_BAR, | |
36316 | ATK_ROLE_TOOL_TIP, | |
36317 | ATK_ROLE_TREE, | |
36318 | ATK_ROLE_TREE_TABLE, | |
36319 | ATK_ROLE_UNKNOWN, | |
36320 | ATK_ROLE_VIEWPORT, | |
36321 | ATK_ROLE_WINDOW, | |
36322 | ATK_ROLE_HEADER, | |
36323 | ATK_ROLE_FOOTER, | |
36324 | ATK_ROLE_PARAGRAPH, | |
36325 | ATK_ROLE_RULER, | |
36326 | ATK_ROLE_APPLICATION, | |
36327 | ATK_ROLE_AUTOCOMPLETE, | |
36328 | ATK_ROLE_EDITBAR, | |
36329 | ATK_ROLE_EMBEDDED, | |
36330 | ATK_ROLE_ENTRY, | |
36331 | ATK_ROLE_CHART, | |
36332 | ATK_ROLE_CAPTION, | |
36333 | ATK_ROLE_DOCUMENT_FRAME, | |
36334 | ATK_ROLE_HEADING, | |
36335 | ATK_ROLE_PAGE, | |
36336 | ATK_ROLE_SECTION, | |
36337 | ATK_ROLE_REDUNDANT_OBJECT, | |
36338 | ATK_ROLE_FORM, | |
36339 | ATK_ROLE_LINK, | |
36340 | ATK_ROLE_INPUT_METHOD_WINDOW, | |
36341 | ATK_ROLE_LAST_DEFINED | |
36342 | } AtkRole; | |
36343 | ||
36344 | AtkRole atk_role_register (const gchar *name); | |
36345 | # 260 "/usr/include/atk-1.0/atk/atkobject.h" | |
36346 | typedef enum | |
36347 | { | |
36348 | ATK_LAYER_INVALID, | |
36349 | ATK_LAYER_BACKGROUND, | |
36350 | ATK_LAYER_CANVAS, | |
36351 | ATK_LAYER_WIDGET, | |
36352 | ATK_LAYER_MDI, | |
36353 | ATK_LAYER_POPUP, | |
36354 | ATK_LAYER_OVERLAY, | |
36355 | ATK_LAYER_WINDOW | |
36356 | } AtkLayer; | |
36357 | # 279 "/usr/include/atk-1.0/atk/atkobject.h" | |
36358 | typedef GSList AtkAttributeSet; | |
36359 | # 291 "/usr/include/atk-1.0/atk/atkobject.h" | |
36360 | typedef struct _AtkAttribute AtkAttribute; | |
36361 | ||
36362 | struct _AtkAttribute { | |
36363 | gchar* name; | |
36364 | gchar* value; | |
36365 | }; | |
36366 | ||
36367 | #define ATK_TYPE_OBJECT (atk_object_get_type ()) | |
36368 | #define ATK_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT, AtkObject)) | |
36369 | #define ATK_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_OBJECT, AtkObjectClass)) | |
36370 | #define ATK_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_OBJECT)) | |
36371 | #define ATK_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_OBJECT)) | |
36372 | #define ATK_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_OBJECT, AtkObjectClass)) | |
36373 | ||
36374 | #define ATK_TYPE_IMPLEMENTOR (atk_implementor_get_type ()) | |
36375 | #define ATK_IS_IMPLEMENTOR(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_IMPLEMENTOR) | |
36376 | #define ATK_IMPLEMENTOR(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_IMPLEMENTOR, AtkImplementor) | |
36377 | #define ATK_IMPLEMENTOR_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_IMPLEMENTOR, AtkImplementorIface)) | |
36378 | ||
36379 | ||
36380 | typedef struct _AtkImplementor AtkImplementor; | |
36381 | typedef struct _AtkImplementorIface AtkImplementorIface; | |
36382 | ||
36383 | ||
36384 | typedef struct _AtkObject AtkObject; | |
36385 | typedef struct _AtkObjectClass AtkObjectClass; | |
36386 | typedef struct _AtkRelationSet AtkRelationSet; | |
36387 | typedef struct _AtkStateSet AtkStateSet; | |
36388 | # 338 "/usr/include/atk-1.0/atk/atkobject.h" | |
36389 | struct _AtkPropertyValues | |
36390 | { | |
36391 | const gchar *property_name; | |
36392 | GValue old_value; | |
36393 | GValue new_value; | |
36394 | }; | |
36395 | ||
36396 | typedef struct _AtkPropertyValues AtkPropertyValues; | |
36397 | ||
36398 | typedef gboolean (*AtkFunction) (gpointer data); | |
36399 | # 360 "/usr/include/atk-1.0/atk/atkobject.h" | |
36400 | typedef void (*AtkPropertyChangeHandler) (AtkObject*, AtkPropertyValues*); | |
36401 | ||
36402 | ||
36403 | struct _AtkObject | |
36404 | { | |
36405 | GObject parent; | |
36406 | ||
36407 | gchar *description; | |
36408 | gchar *name; | |
36409 | AtkObject *accessible_parent; | |
36410 | AtkRole role; | |
36411 | AtkRelationSet *relation_set; | |
36412 | AtkLayer layer; | |
36413 | }; | |
36414 | ||
36415 | struct _AtkObjectClass | |
36416 | { | |
36417 | GObjectClass parent; | |
36418 | ||
36419 | ||
36420 | ||
36421 | ||
36422 | const gchar* (* get_name) (AtkObject *accessible); | |
36423 | ||
36424 | ||
36425 | ||
36426 | const gchar* (* get_description) (AtkObject *accessible); | |
36427 | ||
36428 | ||
36429 | ||
36430 | AtkObject* (*get_parent) (AtkObject *accessible); | |
36431 | ||
36432 | ||
36433 | ||
36434 | ||
36435 | gint (* get_n_children) (AtkObject *accessible); | |
36436 | ||
36437 | ||
36438 | ||
36439 | ||
36440 | ||
36441 | AtkObject* (* ref_child) (AtkObject *accessible, | |
36442 | gint i); | |
36443 | ||
36444 | ||
36445 | ||
36446 | ||
36447 | gint (* get_index_in_parent) (AtkObject *accessible); | |
36448 | ||
36449 | ||
36450 | ||
36451 | AtkRelationSet* (* ref_relation_set) (AtkObject *accessible); | |
36452 | ||
36453 | ||
36454 | ||
36455 | AtkRole (* get_role) (AtkObject *accessible); | |
36456 | AtkLayer (* get_layer) (AtkObject *accessible); | |
36457 | gint (* get_mdi_zorder) (AtkObject *accessible); | |
36458 | ||
36459 | ||
36460 | ||
36461 | AtkStateSet* (* ref_state_set) (AtkObject *accessible); | |
36462 | ||
36463 | ||
36464 | ||
36465 | void (* set_name) (AtkObject *accessible, | |
36466 | const gchar *name); | |
36467 | ||
36468 | ||
36469 | ||
36470 | void (* set_description) (AtkObject *accessible, | |
36471 | const gchar *description); | |
36472 | ||
36473 | ||
36474 | ||
36475 | void (* set_parent) (AtkObject *accessible, | |
36476 | AtkObject *parent); | |
36477 | ||
36478 | ||
36479 | ||
36480 | void (* set_role) (AtkObject *accessible, | |
36481 | AtkRole role); | |
36482 | ||
36483 | ||
36484 | ||
36485 | guint (* connect_property_change_handler) (AtkObject | |
36486 | *accessible, | |
36487 | AtkPropertyChangeHandler *handler); | |
36488 | ||
36489 | ||
36490 | ||
36491 | ||
36492 | void (* remove_property_change_handler) (AtkObject | |
36493 | *accessible, | |
36494 | guint | |
36495 | handler_id); | |
36496 | void (* initialize) (AtkObject *accessible, | |
36497 | gpointer data); | |
36498 | ||
36499 | ||
36500 | ||
36501 | ||
36502 | void (* children_changed) (AtkObject *accessible, | |
36503 | guint change_index, | |
36504 | gpointer changed_child); | |
36505 | ||
36506 | ||
36507 | ||
36508 | ||
36509 | void (* focus_event) (AtkObject *accessible, | |
36510 | gboolean focus_in); | |
36511 | ||
36512 | ||
36513 | ||
36514 | ||
36515 | void (* property_change) (AtkObject *accessible, | |
36516 | AtkPropertyValues *values); | |
36517 | ||
36518 | ||
36519 | ||
36520 | ||
36521 | void (* state_change) (AtkObject *accessible, | |
36522 | const gchar *name, | |
36523 | gboolean state_set); | |
36524 | ||
36525 | ||
36526 | ||
36527 | ||
36528 | void (*visible_data_changed) (AtkObject *accessible); | |
36529 | ||
36530 | ||
36531 | ||
36532 | ||
36533 | ||
36534 | ||
36535 | ||
36536 | void (*active_descendant_changed) (AtkObject *accessible, | |
36537 | gpointer *child); | |
36538 | ||
36539 | ||
36540 | ||
36541 | ||
36542 | ||
36543 | AtkAttributeSet* (*get_attributes) (AtkObject *accessible); | |
36544 | AtkFunction pad1; | |
36545 | AtkFunction pad2; | |
36546 | }; | |
36547 | ||
36548 | GType atk_object_get_type (void); | |
36549 | ||
36550 | struct _AtkImplementorIface | |
36551 | { | |
36552 | GTypeInterface parent; | |
36553 | ||
36554 | AtkObject* (*ref_accessible) (AtkImplementor *implementor); | |
36555 | }; | |
36556 | GType atk_implementor_get_type (void); | |
36557 | # 530 "/usr/include/atk-1.0/atk/atkobject.h" | |
36558 | AtkObject* atk_implementor_ref_accessible (AtkImplementor *implementor); | |
36559 | ||
36560 | ||
36561 | ||
36562 | ||
36563 | ||
36564 | const gchar* atk_object_get_name (AtkObject *accessible); | |
36565 | const gchar* atk_object_get_description (AtkObject *accessible); | |
36566 | AtkObject* atk_object_get_parent (AtkObject *accessible); | |
36567 | gint atk_object_get_n_accessible_children (AtkObject *accessible); | |
36568 | AtkObject* atk_object_ref_accessible_child (AtkObject *accessible, | |
36569 | gint i); | |
36570 | AtkRelationSet* atk_object_ref_relation_set (AtkObject *accessible); | |
36571 | AtkRole atk_object_get_role (AtkObject *accessible); | |
36572 | AtkLayer atk_object_get_layer (AtkObject *accessible); | |
36573 | gint atk_object_get_mdi_zorder (AtkObject *accessible); | |
36574 | AtkAttributeSet* atk_object_get_attributes (AtkObject *accessible); | |
36575 | AtkStateSet* atk_object_ref_state_set (AtkObject *accessible); | |
36576 | gint atk_object_get_index_in_parent (AtkObject *accessible); | |
36577 | void atk_object_set_name (AtkObject *accessible, | |
36578 | const gchar *name); | |
36579 | void atk_object_set_description (AtkObject *accessible, | |
36580 | const gchar *description); | |
36581 | void atk_object_set_parent (AtkObject *accessible, | |
36582 | AtkObject *parent); | |
36583 | void atk_object_set_role (AtkObject *accessible, | |
36584 | AtkRole role); | |
36585 | ||
36586 | ||
36587 | guint atk_object_connect_property_change_handler (AtkObject *accessible, | |
36588 | AtkPropertyChangeHandler *handler); | |
36589 | void atk_object_remove_property_change_handler (AtkObject *accessible, | |
36590 | guint handler_id); | |
36591 | ||
36592 | void atk_object_notify_state_change (AtkObject *accessible, | |
36593 | AtkState state, | |
36594 | gboolean value); | |
36595 | void atk_object_initialize (AtkObject *accessible, | |
36596 | gpointer data); | |
36597 | ||
36598 | const gchar* atk_role_get_name (AtkRole role); | |
36599 | AtkRole atk_role_for_name (const gchar *name); | |
36600 | ||
36601 | ||
36602 | ||
36603 | gboolean atk_object_add_relationship (AtkObject *object, | |
36604 | AtkRelationType relationship, | |
36605 | AtkObject *target); | |
36606 | gboolean atk_object_remove_relationship (AtkObject *object, | |
36607 | AtkRelationType relationship, | |
36608 | AtkObject *target); | |
36609 | const gchar* atk_role_get_localized_name (AtkRole role); | |
36610 | # 37 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2 | |
36611 | ||
36612 | ||
36613 | ||
36614 | ||
36615 | ||
36616 | ||
36617 | typedef enum | |
36618 | { | |
36619 | GTK_TOPLEVEL = 1 << 4, | |
36620 | GTK_NO_WINDOW = 1 << 5, | |
36621 | GTK_REALIZED = 1 << 6, | |
36622 | GTK_MAPPED = 1 << 7, | |
36623 | GTK_VISIBLE = 1 << 8, | |
36624 | GTK_SENSITIVE = 1 << 9, | |
36625 | GTK_PARENT_SENSITIVE = 1 << 10, | |
36626 | GTK_CAN_FOCUS = 1 << 11, | |
36627 | GTK_HAS_FOCUS = 1 << 12, | |
36628 | ||
36629 | ||
36630 | ||
36631 | ||
36632 | GTK_CAN_DEFAULT = 1 << 13, | |
36633 | ||
36634 | ||
36635 | ||
36636 | ||
36637 | GTK_HAS_DEFAULT = 1 << 14, | |
36638 | ||
36639 | GTK_HAS_GRAB = 1 << 15, | |
36640 | GTK_RC_STYLE = 1 << 16, | |
36641 | GTK_COMPOSITE_CHILD = 1 << 17, | |
36642 | GTK_NO_REPARENT = 1 << 18, | |
36643 | GTK_APP_PAINTABLE = 1 << 19, | |
36644 | ||
36645 | ||
36646 | ||
36647 | ||
36648 | GTK_RECEIVES_DEFAULT = 1 << 20, | |
36649 | ||
36650 | GTK_DOUBLE_BUFFERED = 1 << 21, | |
36651 | GTK_NO_SHOW_ALL = 1 << 22 | |
36652 | } GtkWidgetFlags; | |
36653 | ||
36654 | ||
36655 | typedef enum | |
36656 | { | |
36657 | GTK_WIDGET_HELP_TOOLTIP, | |
36658 | GTK_WIDGET_HELP_WHATS_THIS | |
36659 | } GtkWidgetHelpType; | |
36660 | ||
36661 | ||
36662 | ||
36663 | ||
36664 | #define GTK_TYPE_WIDGET (gtk_widget_get_type ()) | |
36665 | #define GTK_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_CAST ((widget), GTK_TYPE_WIDGET, GtkWidget)) | |
36666 | #define GTK_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WIDGET, GtkWidgetClass)) | |
36667 | #define GTK_IS_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_TYPE ((widget), GTK_TYPE_WIDGET)) | |
36668 | #define GTK_IS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WIDGET)) | |
36669 | #define GTK_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WIDGET, GtkWidgetClass)) | |
36670 | ||
36671 | ||
36672 | ||
36673 | #define GTK_WIDGET_TYPE(wid) (GTK_OBJECT_TYPE (wid)) | |
36674 | #define GTK_WIDGET_STATE(wid) (GTK_WIDGET (wid)->state) | |
36675 | #define GTK_WIDGET_SAVED_STATE(wid) (GTK_WIDGET (wid)->saved_state) | |
36676 | ||
36677 | ||
36678 | ||
36679 | #define GTK_WIDGET_FLAGS(wid) (GTK_OBJECT_FLAGS (wid)) | |
36680 | #define GTK_WIDGET_TOPLEVEL(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_TOPLEVEL) != 0) | |
36681 | #define GTK_WIDGET_NO_WINDOW(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_NO_WINDOW) != 0) | |
36682 | #define GTK_WIDGET_REALIZED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_REALIZED) != 0) | |
36683 | #define GTK_WIDGET_MAPPED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_MAPPED) != 0) | |
36684 | #define GTK_WIDGET_VISIBLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_VISIBLE) != 0) | |
36685 | #define GTK_WIDGET_DRAWABLE(wid) (GTK_WIDGET_VISIBLE (wid) && GTK_WIDGET_MAPPED (wid)) | |
36686 | #define GTK_WIDGET_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_SENSITIVE) != 0) | |
36687 | #define GTK_WIDGET_PARENT_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_PARENT_SENSITIVE) != 0) | |
36688 | #define GTK_WIDGET_IS_SENSITIVE(wid) (GTK_WIDGET_SENSITIVE (wid) && GTK_WIDGET_PARENT_SENSITIVE (wid)) | |
36689 | ||
36690 | #define GTK_WIDGET_CAN_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_FOCUS) != 0) | |
36691 | #define GTK_WIDGET_HAS_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_FOCUS) != 0) | |
36692 | #define GTK_WIDGET_CAN_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_DEFAULT) != 0) | |
36693 | #define GTK_WIDGET_HAS_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_DEFAULT) != 0) | |
36694 | #define GTK_WIDGET_HAS_GRAB(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_GRAB) != 0) | |
36695 | #define GTK_WIDGET_RC_STYLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RC_STYLE) != 0) | |
36696 | #define GTK_WIDGET_COMPOSITE_CHILD(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_COMPOSITE_CHILD) != 0) | |
36697 | #define GTK_WIDGET_APP_PAINTABLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_APP_PAINTABLE) != 0) | |
36698 | #define GTK_WIDGET_RECEIVES_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RECEIVES_DEFAULT) != 0) | |
36699 | #define GTK_WIDGET_DOUBLE_BUFFERED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_DOUBLE_BUFFERED) != 0) | |
36700 | ||
36701 | ||
36702 | ||
36703 | #define GTK_WIDGET_SET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) |= (flag)); }G_STMT_END | |
36704 | #define GTK_WIDGET_UNSET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) &= ~(flag)); }G_STMT_END | |
36705 | ||
36706 | #define GTK_TYPE_REQUISITION (gtk_requisition_get_type ()) | |
36707 | ||
36708 | ||
36709 | ||
36710 | typedef struct _GtkRequisition GtkRequisition; | |
36711 | typedef GdkRectangle GtkAllocation; | |
36712 | typedef struct _GtkSelectionData GtkSelectionData; | |
36713 | typedef struct _GtkWidgetClass GtkWidgetClass; | |
36714 | typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo; | |
36715 | typedef struct _GtkWidgetShapeInfo GtkWidgetShapeInfo; | |
36716 | typedef struct _GtkClipboard GtkClipboard; | |
36717 | typedef void (*GtkCallback) (GtkWidget *widget, | |
36718 | gpointer data); | |
36719 | ||
36720 | ||
36721 | ||
36722 | ||
36723 | struct _GtkRequisition | |
36724 | { | |
36725 | gint width; | |
36726 | gint height; | |
36727 | }; | |
36728 | ||
36729 | ||
36730 | ||
36731 | ||
36732 | ||
36733 | ||
36734 | struct _GtkWidget | |
36735 | { | |
36736 | ||
36737 | ||
36738 | ||
36739 | ||
36740 | ||
36741 | ||
36742 | GtkObject object; | |
36743 | ||
36744 | ||
36745 | ||
36746 | ||
36747 | ||
36748 | ||
36749 | guint16 private_flags; | |
36750 | ||
36751 | ||
36752 | ||
36753 | ||
36754 | guint8 state; | |
36755 | ||
36756 | ||
36757 | ||
36758 | ||
36759 | ||
36760 | ||
36761 | ||
36762 | guint8 saved_state; | |
36763 | ||
36764 | ||
36765 | ||
36766 | ||
36767 | ||
36768 | ||
36769 | ||
36770 | gchar *name; | |
36771 | # 205 "/usr/include/gtk-2.0/gtk/gtkwidget.h" | |
36772 | GtkStyle *style; | |
36773 | ||
36774 | ||
36775 | ||
36776 | GtkRequisition requisition; | |
36777 | ||
36778 | ||
36779 | ||
36780 | GtkAllocation allocation; | |
36781 | ||
36782 | ||
36783 | ||
36784 | ||
36785 | ||
36786 | GdkWindow *window; | |
36787 | ||
36788 | ||
36789 | ||
36790 | GtkWidget *parent; | |
36791 | }; | |
36792 | ||
36793 | struct _GtkWidgetClass | |
36794 | { | |
36795 | ||
36796 | ||
36797 | ||
36798 | ||
36799 | ||
36800 | ||
36801 | GtkObjectClass parent_class; | |
36802 | ||
36803 | ||
36804 | ||
36805 | guint activate_signal; | |
36806 | ||
36807 | guint set_scroll_adjustments_signal; | |
36808 | ||
36809 | ||
36810 | ||
36811 | ||
36812 | void (*dispatch_child_properties_changed) (GtkWidget *widget, | |
36813 | guint n_pspecs, | |
36814 | GParamSpec **pspecs); | |
36815 | ||
36816 | ||
36817 | void (* show) (GtkWidget *widget); | |
36818 | void (* show_all) (GtkWidget *widget); | |
36819 | void (* hide) (GtkWidget *widget); | |
36820 | void (* hide_all) (GtkWidget *widget); | |
36821 | void (* map) (GtkWidget *widget); | |
36822 | void (* unmap) (GtkWidget *widget); | |
36823 | void (* realize) (GtkWidget *widget); | |
36824 | void (* unrealize) (GtkWidget *widget); | |
36825 | void (* size_request) (GtkWidget *widget, | |
36826 | GtkRequisition *requisition); | |
36827 | void (* size_allocate) (GtkWidget *widget, | |
36828 | GtkAllocation *allocation); | |
36829 | void (* state_changed) (GtkWidget *widget, | |
36830 | GtkStateType previous_state); | |
36831 | void (* parent_set) (GtkWidget *widget, | |
36832 | GtkWidget *previous_parent); | |
36833 | void (* hierarchy_changed) (GtkWidget *widget, | |
36834 | GtkWidget *previous_toplevel); | |
36835 | void (* style_set) (GtkWidget *widget, | |
36836 | GtkStyle *previous_style); | |
36837 | void (* direction_changed) (GtkWidget *widget, | |
36838 | GtkTextDirection previous_direction); | |
36839 | void (* grab_notify) (GtkWidget *widget, | |
36840 | gboolean was_grabbed); | |
36841 | void (* child_notify) (GtkWidget *widget, | |
36842 | GParamSpec *pspec); | |
36843 | ||
36844 | ||
36845 | gboolean (* mnemonic_activate) (GtkWidget *widget, | |
36846 | gboolean group_cycling); | |
36847 | ||
36848 | ||
36849 | void (* grab_focus) (GtkWidget *widget); | |
36850 | gboolean (* focus) (GtkWidget *widget, | |
36851 | GtkDirectionType direction); | |
36852 | ||
36853 | ||
36854 | gboolean (* event) (GtkWidget *widget, | |
36855 | GdkEvent *event); | |
36856 | gboolean (* button_press_event) (GtkWidget *widget, | |
36857 | GdkEventButton *event); | |
36858 | gboolean (* button_release_event) (GtkWidget *widget, | |
36859 | GdkEventButton *event); | |
36860 | gboolean (* scroll_event) (GtkWidget *widget, | |
36861 | GdkEventScroll *event); | |
36862 | gboolean (* motion_notify_event) (GtkWidget *widget, | |
36863 | GdkEventMotion *event); | |
36864 | gboolean (* delete_event) (GtkWidget *widget, | |
36865 | GdkEventAny *event); | |
36866 | gboolean (* destroy_event) (GtkWidget *widget, | |
36867 | GdkEventAny *event); | |
36868 | gboolean (* expose_event) (GtkWidget *widget, | |
36869 | GdkEventExpose *event); | |
36870 | gboolean (* key_press_event) (GtkWidget *widget, | |
36871 | GdkEventKey *event); | |
36872 | gboolean (* key_release_event) (GtkWidget *widget, | |
36873 | GdkEventKey *event); | |
36874 | gboolean (* enter_notify_event) (GtkWidget *widget, | |
36875 | GdkEventCrossing *event); | |
36876 | gboolean (* leave_notify_event) (GtkWidget *widget, | |
36877 | GdkEventCrossing *event); | |
36878 | gboolean (* configure_event) (GtkWidget *widget, | |
36879 | GdkEventConfigure *event); | |
36880 | gboolean (* focus_in_event) (GtkWidget *widget, | |
36881 | GdkEventFocus *event); | |
36882 | gboolean (* focus_out_event) (GtkWidget *widget, | |
36883 | GdkEventFocus *event); | |
36884 | gboolean (* map_event) (GtkWidget *widget, | |
36885 | GdkEventAny *event); | |
36886 | gboolean (* unmap_event) (GtkWidget *widget, | |
36887 | GdkEventAny *event); | |
36888 | gboolean (* property_notify_event) (GtkWidget *widget, | |
36889 | GdkEventProperty *event); | |
36890 | gboolean (* selection_clear_event) (GtkWidget *widget, | |
36891 | GdkEventSelection *event); | |
36892 | gboolean (* selection_request_event) (GtkWidget *widget, | |
36893 | GdkEventSelection *event); | |
36894 | gboolean (* selection_notify_event) (GtkWidget *widget, | |
36895 | GdkEventSelection *event); | |
36896 | gboolean (* proximity_in_event) (GtkWidget *widget, | |
36897 | GdkEventProximity *event); | |
36898 | gboolean (* proximity_out_event) (GtkWidget *widget, | |
36899 | GdkEventProximity *event); | |
36900 | gboolean (* visibility_notify_event) (GtkWidget *widget, | |
36901 | GdkEventVisibility *event); | |
36902 | gboolean (* client_event) (GtkWidget *widget, | |
36903 | GdkEventClient *event); | |
36904 | gboolean (* no_expose_event) (GtkWidget *widget, | |
36905 | GdkEventAny *event); | |
36906 | gboolean (* window_state_event) (GtkWidget *widget, | |
36907 | GdkEventWindowState *event); | |
36908 | ||
36909 | ||
36910 | void (* selection_get) (GtkWidget *widget, | |
36911 | GtkSelectionData *selection_data, | |
36912 | guint info, | |
36913 | guint time_); | |
36914 | void (* selection_received) (GtkWidget *widget, | |
36915 | GtkSelectionData *selection_data, | |
36916 | guint time_); | |
36917 | ||
36918 | ||
36919 | void (* drag_begin) (GtkWidget *widget, | |
36920 | GdkDragContext *context); | |
36921 | void (* drag_end) (GtkWidget *widget, | |
36922 | GdkDragContext *context); | |
36923 | void (* drag_data_get) (GtkWidget *widget, | |
36924 | GdkDragContext *context, | |
36925 | GtkSelectionData *selection_data, | |
36926 | guint info, | |
36927 | guint time_); | |
36928 | void (* drag_data_delete) (GtkWidget *widget, | |
36929 | GdkDragContext *context); | |
36930 | ||
36931 | ||
36932 | void (* drag_leave) (GtkWidget *widget, | |
36933 | GdkDragContext *context, | |
36934 | guint time_); | |
36935 | gboolean (* drag_motion) (GtkWidget *widget, | |
36936 | GdkDragContext *context, | |
36937 | gint x, | |
36938 | gint y, | |
36939 | guint time_); | |
36940 | gboolean (* drag_drop) (GtkWidget *widget, | |
36941 | GdkDragContext *context, | |
36942 | gint x, | |
36943 | gint y, | |
36944 | guint time_); | |
36945 | void (* drag_data_received) (GtkWidget *widget, | |
36946 | GdkDragContext *context, | |
36947 | gint x, | |
36948 | gint y, | |
36949 | GtkSelectionData *selection_data, | |
36950 | guint info, | |
36951 | guint time_); | |
36952 | ||
36953 | ||
36954 | gboolean (* popup_menu) (GtkWidget *widget); | |
36955 | ||
36956 | ||
36957 | ||
36958 | ||
36959 | ||
36960 | ||
36961 | gboolean (* show_help) (GtkWidget *widget, | |
36962 | GtkWidgetHelpType help_type); | |
36963 | ||
36964 | ||
36965 | ||
36966 | AtkObject* (*get_accessible) (GtkWidget *widget); | |
36967 | ||
36968 | void (*screen_changed) (GtkWidget *widget, | |
36969 | GdkScreen *previous_screen); | |
36970 | gboolean (*can_activate_accel) (GtkWidget *widget, | |
36971 | guint signal_id); | |
36972 | ||
36973 | ||
36974 | gboolean (*grab_broken_event) (GtkWidget *widget, | |
36975 | GdkEventGrabBroken *event); | |
36976 | ||
36977 | ||
36978 | void (*_gtk_reserved3) (void); | |
36979 | void (*_gtk_reserved4) (void); | |
36980 | void (*_gtk_reserved5) (void); | |
36981 | void (*_gtk_reserved6) (void); | |
36982 | void (*_gtk_reserved7) (void); | |
36983 | }; | |
36984 | ||
36985 | struct _GtkWidgetAuxInfo | |
36986 | { | |
36987 | gint x; | |
36988 | gint y; | |
36989 | gint width; | |
36990 | gint height; | |
36991 | guint x_set : 1; | |
36992 | guint y_set : 1; | |
36993 | }; | |
36994 | ||
36995 | struct _GtkWidgetShapeInfo | |
36996 | { | |
36997 | gint16 offset_x; | |
36998 | gint16 offset_y; | |
36999 | GdkBitmap *shape_mask; | |
37000 | }; | |
37001 | ||
37002 | GType gtk_widget_get_type (void) __attribute__((__const__)); | |
37003 | GtkWidget* gtk_widget_new (GType type, | |
37004 | const gchar *first_property_name, | |
37005 | ...); | |
37006 | GtkWidget* gtk_widget_ref (GtkWidget *widget); | |
37007 | void gtk_widget_unref (GtkWidget *widget); | |
37008 | void gtk_widget_destroy (GtkWidget *widget); | |
37009 | void gtk_widget_destroyed (GtkWidget *widget, | |
37010 | GtkWidget **widget_pointer); | |
37011 | ||
37012 | void gtk_widget_set (GtkWidget *widget, | |
37013 | const gchar *first_property_name, | |
37014 | ...) ; | |
37015 | ||
37016 | void gtk_widget_unparent (GtkWidget *widget); | |
37017 | void gtk_widget_show (GtkWidget *widget); | |
37018 | void gtk_widget_show_now (GtkWidget *widget); | |
37019 | void gtk_widget_hide (GtkWidget *widget); | |
37020 | void gtk_widget_show_all (GtkWidget *widget); | |
37021 | void gtk_widget_hide_all (GtkWidget *widget); | |
37022 | void gtk_widget_set_no_show_all (GtkWidget *widget, | |
37023 | gboolean no_show_all); | |
37024 | gboolean gtk_widget_get_no_show_all (GtkWidget *widget); | |
37025 | void gtk_widget_map (GtkWidget *widget); | |
37026 | void gtk_widget_unmap (GtkWidget *widget); | |
37027 | void gtk_widget_realize (GtkWidget *widget); | |
37028 | void gtk_widget_unrealize (GtkWidget *widget); | |
37029 | ||
37030 | ||
37031 | void gtk_widget_queue_draw (GtkWidget *widget); | |
37032 | void gtk_widget_queue_draw_area (GtkWidget *widget, | |
37033 | gint x, | |
37034 | gint y, | |
37035 | gint width, | |
37036 | gint height); | |
37037 | ||
37038 | void gtk_widget_queue_clear (GtkWidget *widget); | |
37039 | void gtk_widget_queue_clear_area (GtkWidget *widget, | |
37040 | gint x, | |
37041 | gint y, | |
37042 | gint width, | |
37043 | gint height); | |
37044 | ||
37045 | ||
37046 | ||
37047 | void gtk_widget_queue_resize (GtkWidget *widget); | |
37048 | void gtk_widget_queue_resize_no_redraw (GtkWidget *widget); | |
37049 | ||
37050 | void gtk_widget_draw (GtkWidget *widget, | |
37051 | GdkRectangle *area); | |
37052 | ||
37053 | void gtk_widget_size_request (GtkWidget *widget, | |
37054 | GtkRequisition *requisition); | |
37055 | void gtk_widget_size_allocate (GtkWidget *widget, | |
37056 | GtkAllocation *allocation); | |
37057 | void gtk_widget_get_child_requisition (GtkWidget *widget, | |
37058 | GtkRequisition *requisition); | |
37059 | void gtk_widget_add_accelerator (GtkWidget *widget, | |
37060 | const gchar *accel_signal, | |
37061 | GtkAccelGroup *accel_group, | |
37062 | guint accel_key, | |
37063 | GdkModifierType accel_mods, | |
37064 | GtkAccelFlags accel_flags); | |
37065 | gboolean gtk_widget_remove_accelerator (GtkWidget *widget, | |
37066 | GtkAccelGroup *accel_group, | |
37067 | guint accel_key, | |
37068 | GdkModifierType accel_mods); | |
37069 | void gtk_widget_set_accel_path (GtkWidget *widget, | |
37070 | const gchar *accel_path, | |
37071 | GtkAccelGroup *accel_group); | |
37072 | const gchar* _gtk_widget_get_accel_path (GtkWidget *widget, | |
37073 | gboolean *locked); | |
37074 | GList* gtk_widget_list_accel_closures (GtkWidget *widget); | |
37075 | gboolean gtk_widget_can_activate_accel (GtkWidget *widget, | |
37076 | guint signal_id); | |
37077 | gboolean gtk_widget_mnemonic_activate (GtkWidget *widget, | |
37078 | gboolean group_cycling); | |
37079 | gboolean gtk_widget_event (GtkWidget *widget, | |
37080 | GdkEvent *event); | |
37081 | gint gtk_widget_send_expose (GtkWidget *widget, | |
37082 | GdkEvent *event); | |
37083 | ||
37084 | gboolean gtk_widget_activate (GtkWidget *widget); | |
37085 | gboolean gtk_widget_set_scroll_adjustments (GtkWidget *widget, | |
37086 | GtkAdjustment *hadjustment, | |
37087 | GtkAdjustment *vadjustment); | |
37088 | ||
37089 | void gtk_widget_reparent (GtkWidget *widget, | |
37090 | GtkWidget *new_parent); | |
37091 | gboolean gtk_widget_intersect (GtkWidget *widget, | |
37092 | GdkRectangle *area, | |
37093 | GdkRectangle *intersection); | |
37094 | GdkRegion *gtk_widget_region_intersect (GtkWidget *widget, | |
37095 | GdkRegion *region); | |
37096 | ||
37097 | void gtk_widget_freeze_child_notify (GtkWidget *widget); | |
37098 | void gtk_widget_child_notify (GtkWidget *widget, | |
37099 | const gchar *child_property); | |
37100 | void gtk_widget_thaw_child_notify (GtkWidget *widget); | |
37101 | ||
37102 | gboolean gtk_widget_is_focus (GtkWidget *widget); | |
37103 | void gtk_widget_grab_focus (GtkWidget *widget); | |
37104 | void gtk_widget_grab_default (GtkWidget *widget); | |
37105 | ||
37106 | void gtk_widget_set_name (GtkWidget *widget, | |
37107 | const gchar *name); | |
37108 | const gchar* gtk_widget_get_name (GtkWidget *widget); | |
37109 | void gtk_widget_set_state (GtkWidget *widget, | |
37110 | GtkStateType state); | |
37111 | void gtk_widget_set_sensitive (GtkWidget *widget, | |
37112 | gboolean sensitive); | |
37113 | void gtk_widget_set_app_paintable (GtkWidget *widget, | |
37114 | gboolean app_paintable); | |
37115 | void gtk_widget_set_double_buffered (GtkWidget *widget, | |
37116 | gboolean double_buffered); | |
37117 | void gtk_widget_set_redraw_on_allocate (GtkWidget *widget, | |
37118 | gboolean redraw_on_allocate); | |
37119 | void gtk_widget_set_parent (GtkWidget *widget, | |
37120 | GtkWidget *parent); | |
37121 | void gtk_widget_set_parent_window (GtkWidget *widget, | |
37122 | GdkWindow *parent_window); | |
37123 | void gtk_widget_set_child_visible (GtkWidget *widget, | |
37124 | gboolean is_visible); | |
37125 | gboolean gtk_widget_get_child_visible (GtkWidget *widget); | |
37126 | ||
37127 | GtkWidget *gtk_widget_get_parent (GtkWidget *widget); | |
37128 | GdkWindow *gtk_widget_get_parent_window (GtkWidget *widget); | |
37129 | ||
37130 | gboolean gtk_widget_child_focus (GtkWidget *widget, | |
37131 | GtkDirectionType direction); | |
37132 | ||
37133 | void gtk_widget_set_size_request (GtkWidget *widget, | |
37134 | gint width, | |
37135 | gint height); | |
37136 | void gtk_widget_get_size_request (GtkWidget *widget, | |
37137 | gint *width, | |
37138 | gint *height); | |
37139 | ||
37140 | void gtk_widget_set_uposition (GtkWidget *widget, | |
37141 | gint x, | |
37142 | gint y); | |
37143 | void gtk_widget_set_usize (GtkWidget *widget, | |
37144 | gint width, | |
37145 | gint height); | |
37146 | ||
37147 | ||
37148 | void gtk_widget_set_events (GtkWidget *widget, | |
37149 | gint events); | |
37150 | void gtk_widget_add_events (GtkWidget *widget, | |
37151 | gint events); | |
37152 | void gtk_widget_set_extension_events (GtkWidget *widget, | |
37153 | GdkExtensionMode mode); | |
37154 | ||
37155 | GdkExtensionMode gtk_widget_get_extension_events (GtkWidget *widget); | |
37156 | GtkWidget* gtk_widget_get_toplevel (GtkWidget *widget); | |
37157 | GtkWidget* gtk_widget_get_ancestor (GtkWidget *widget, | |
37158 | GType widget_type); | |
37159 | GdkColormap* gtk_widget_get_colormap (GtkWidget *widget); | |
37160 | GdkVisual* gtk_widget_get_visual (GtkWidget *widget); | |
37161 | ||
37162 | GdkScreen * gtk_widget_get_screen (GtkWidget *widget); | |
37163 | gboolean gtk_widget_has_screen (GtkWidget *widget); | |
37164 | GdkDisplay * gtk_widget_get_display (GtkWidget *widget); | |
37165 | GdkWindow * gtk_widget_get_root_window (GtkWidget *widget); | |
37166 | GtkSettings* gtk_widget_get_settings (GtkWidget *widget); | |
37167 | GtkClipboard *gtk_widget_get_clipboard (GtkWidget *widget, | |
37168 | GdkAtom selection); | |
37169 | ||
37170 | ||
37171 | #define gtk_widget_set_visual(widget,visual) ((void) 0) | |
37172 | #define gtk_widget_push_visual(visual) ((void) 0) | |
37173 | #define gtk_widget_pop_visual() ((void) 0) | |
37174 | #define gtk_widget_set_default_visual(visual) ((void) 0) | |
37175 | ||
37176 | ||
37177 | ||
37178 | AtkObject* gtk_widget_get_accessible (GtkWidget *widget); | |
37179 | ||
37180 | ||
37181 | ||
37182 | ||
37183 | ||
37184 | ||
37185 | ||
37186 | void gtk_widget_set_colormap (GtkWidget *widget, | |
37187 | GdkColormap *colormap); | |
37188 | ||
37189 | gint gtk_widget_get_events (GtkWidget *widget); | |
37190 | void gtk_widget_get_pointer (GtkWidget *widget, | |
37191 | gint *x, | |
37192 | gint *y); | |
37193 | ||
37194 | gboolean gtk_widget_is_ancestor (GtkWidget *widget, | |
37195 | GtkWidget *ancestor); | |
37196 | ||
37197 | gboolean gtk_widget_translate_coordinates (GtkWidget *src_widget, | |
37198 | GtkWidget *dest_widget, | |
37199 | gint src_x, | |
37200 | gint src_y, | |
37201 | gint *dest_x, | |
37202 | gint *dest_y); | |
37203 | ||
37204 | ||
37205 | ||
37206 | gboolean gtk_widget_hide_on_delete (GtkWidget *widget); | |
37207 | ||
37208 | ||
37209 | ||
37210 | void gtk_widget_set_style (GtkWidget *widget, | |
37211 | GtkStyle *style); | |
37212 | void gtk_widget_ensure_style (GtkWidget *widget); | |
37213 | GtkStyle* gtk_widget_get_style (GtkWidget *widget); | |
37214 | ||
37215 | void gtk_widget_modify_style (GtkWidget *widget, | |
37216 | GtkRcStyle *style); | |
37217 | GtkRcStyle *gtk_widget_get_modifier_style (GtkWidget *widget); | |
37218 | void gtk_widget_modify_fg (GtkWidget *widget, | |
37219 | GtkStateType state, | |
37220 | const GdkColor *color); | |
37221 | void gtk_widget_modify_bg (GtkWidget *widget, | |
37222 | GtkStateType state, | |
37223 | const GdkColor *color); | |
37224 | void gtk_widget_modify_text (GtkWidget *widget, | |
37225 | GtkStateType state, | |
37226 | const GdkColor *color); | |
37227 | void gtk_widget_modify_base (GtkWidget *widget, | |
37228 | GtkStateType state, | |
37229 | const GdkColor *color); | |
37230 | void gtk_widget_modify_font (GtkWidget *widget, | |
37231 | PangoFontDescription *font_desc); | |
37232 | ||
37233 | ||
37234 | #define gtk_widget_set_rc_style(widget) (gtk_widget_set_style (widget, NULL)) | |
37235 | #define gtk_widget_restore_default_style(widget) (gtk_widget_set_style (widget, NULL)) | |
37236 | ||
37237 | ||
37238 | PangoContext *gtk_widget_create_pango_context (GtkWidget *widget); | |
37239 | PangoContext *gtk_widget_get_pango_context (GtkWidget *widget); | |
37240 | PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget, | |
37241 | const gchar *text); | |
37242 | ||
37243 | GdkPixbuf *gtk_widget_render_icon (GtkWidget *widget, | |
37244 | const gchar *stock_id, | |
37245 | GtkIconSize size, | |
37246 | const gchar *detail); | |
37247 | ||
37248 | ||
37249 | ||
37250 | ||
37251 | void gtk_widget_set_composite_name (GtkWidget *widget, | |
37252 | const gchar *name); | |
37253 | gchar* gtk_widget_get_composite_name (GtkWidget *widget); | |
37254 | ||
37255 | ||
37256 | void gtk_widget_reset_rc_styles (GtkWidget *widget); | |
37257 | ||
37258 | ||
37259 | ||
37260 | ||
37261 | ||
37262 | void gtk_widget_push_colormap (GdkColormap *cmap); | |
37263 | void gtk_widget_push_composite_child (void); | |
37264 | void gtk_widget_pop_composite_child (void); | |
37265 | void gtk_widget_pop_colormap (void); | |
37266 | ||
37267 | ||
37268 | ||
37269 | void gtk_widget_class_install_style_property (GtkWidgetClass *klass, | |
37270 | GParamSpec *pspec); | |
37271 | void gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass, | |
37272 | GParamSpec *pspec, | |
37273 | GtkRcPropertyParser parser); | |
37274 | GParamSpec* gtk_widget_class_find_style_property (GtkWidgetClass *klass, | |
37275 | const gchar *property_name); | |
37276 | GParamSpec** gtk_widget_class_list_style_properties (GtkWidgetClass *klass, | |
37277 | guint *n_properties); | |
37278 | void gtk_widget_style_get_property (GtkWidget *widget, | |
37279 | const gchar *property_name, | |
37280 | GValue *value); | |
37281 | void gtk_widget_style_get_valist (GtkWidget *widget, | |
37282 | const gchar *first_property_name, | |
37283 | va_list var_args); | |
37284 | void gtk_widget_style_get (GtkWidget *widget, | |
37285 | const gchar *first_property_name, | |
37286 | ...) ; | |
37287 | ||
37288 | ||
37289 | ||
37290 | ||
37291 | void gtk_widget_set_default_colormap (GdkColormap *colormap); | |
37292 | GtkStyle* gtk_widget_get_default_style (void); | |
37293 | ||
37294 | GdkColormap* gtk_widget_get_default_colormap (void); | |
37295 | GdkVisual* gtk_widget_get_default_visual (void); | |
37296 | ||
37297 | ||
37298 | ||
37299 | ||
37300 | ||
37301 | void gtk_widget_set_direction (GtkWidget *widget, | |
37302 | GtkTextDirection dir); | |
37303 | GtkTextDirection gtk_widget_get_direction (GtkWidget *widget); | |
37304 | ||
37305 | void gtk_widget_set_default_direction (GtkTextDirection dir); | |
37306 | GtkTextDirection gtk_widget_get_default_direction (void); | |
37307 | ||
37308 | ||
37309 | ||
37310 | void gtk_widget_shape_combine_mask (GtkWidget *widget, | |
37311 | GdkBitmap *shape_mask, | |
37312 | gint offset_x, | |
37313 | gint offset_y); | |
37314 | ||
37315 | ||
37316 | void gtk_widget_reset_shapes (GtkWidget *widget); | |
37317 | ||
37318 | ||
37319 | ||
37320 | ||
37321 | void gtk_widget_path (GtkWidget *widget, | |
37322 | guint *path_length, | |
37323 | gchar **path, | |
37324 | gchar **path_reversed); | |
37325 | void gtk_widget_class_path (GtkWidget *widget, | |
37326 | guint *path_length, | |
37327 | gchar **path, | |
37328 | gchar **path_reversed); | |
37329 | ||
37330 | GList* gtk_widget_list_mnemonic_labels (GtkWidget *widget); | |
37331 | void gtk_widget_add_mnemonic_label (GtkWidget *widget, | |
37332 | GtkWidget *label); | |
37333 | void gtk_widget_remove_mnemonic_label (GtkWidget *widget, | |
37334 | GtkWidget *label); | |
37335 | ||
37336 | GType gtk_requisition_get_type (void) __attribute__((__const__)); | |
37337 | GtkRequisition *gtk_requisition_copy (const GtkRequisition *requisition); | |
37338 | void gtk_requisition_free (GtkRequisition *requisition); | |
37339 | ||
37340 | ||
37341 | ||
37342 | ||
37343 | ||
37344 | ||
37345 | void _gtk_widget_grab_notify (GtkWidget *widget, | |
37346 | gboolean was_grabbed); | |
37347 | ||
37348 | GtkWidgetAuxInfo *_gtk_widget_get_aux_info (GtkWidget *widget, | |
37349 | gboolean create); | |
37350 | void _gtk_widget_propagate_hierarchy_changed (GtkWidget *widget, | |
37351 | GtkWidget *previous_toplevel); | |
37352 | void _gtk_widget_propagate_screen_changed (GtkWidget *widget, | |
37353 | GdkScreen *previous_screen); | |
37354 | ||
37355 | GdkColormap* _gtk_widget_peek_colormap (void); | |
37356 | ||
37357 | ||
37358 | # 34 "/usr/include/gtk-2.0/gtk/gtkcontainer.h" 2 | |
37359 | ||
37360 | ||
37361 | ||
37362 | ||
37363 | ||
37364 | #define GTK_TYPE_CONTAINER (gtk_container_get_type ()) | |
37365 | #define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) | |
37366 | #define GTK_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CONTAINER, GtkContainerClass)) | |
37367 | #define GTK_IS_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CONTAINER)) | |
37368 | #define GTK_IS_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CONTAINER)) | |
37369 | #define GTK_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CONTAINER, GtkContainerClass)) | |
37370 | ||
37371 | #define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && ((GtkContainer*) (widget))->resize_mode != GTK_RESIZE_PARENT) | |
37372 | ||
37373 | ||
37374 | typedef struct _GtkContainer GtkContainer; | |
37375 | typedef struct _GtkContainerClass GtkContainerClass; | |
37376 | ||
37377 | struct _GtkContainer | |
37378 | { | |
37379 | GtkWidget widget; | |
37380 | ||
37381 | GtkWidget *focus_child; | |
37382 | ||
37383 | guint border_width : 16; | |
37384 | ||
37385 | ||
37386 | guint need_resize : 1; | |
37387 | guint resize_mode : 2; | |
37388 | guint reallocate_redraws : 1; | |
37389 | guint has_focus_chain : 1; | |
37390 | }; | |
37391 | ||
37392 | struct _GtkContainerClass | |
37393 | { | |
37394 | GtkWidgetClass parent_class; | |
37395 | ||
37396 | void (*add) (GtkContainer *container, | |
37397 | GtkWidget *widget); | |
37398 | void (*remove) (GtkContainer *container, | |
37399 | GtkWidget *widget); | |
37400 | void (*check_resize) (GtkContainer *container); | |
37401 | void (*forall) (GtkContainer *container, | |
37402 | gboolean include_internals, | |
37403 | GtkCallback callback, | |
37404 | gpointer callback_data); | |
37405 | void (*set_focus_child) (GtkContainer *container, | |
37406 | GtkWidget *widget); | |
37407 | GType (*child_type) (GtkContainer *container); | |
37408 | gchar* (*composite_name) (GtkContainer *container, | |
37409 | GtkWidget *child); | |
37410 | void (*set_child_property) (GtkContainer *container, | |
37411 | GtkWidget *child, | |
37412 | guint property_id, | |
37413 | const GValue *value, | |
37414 | GParamSpec *pspec); | |
37415 | void (*get_child_property) (GtkContainer *container, | |
37416 | GtkWidget *child, | |
37417 | guint property_id, | |
37418 | GValue *value, | |
37419 | GParamSpec *pspec); | |
37420 | ||
37421 | ||
37422 | void (*_gtk_reserved1) (void); | |
37423 | void (*_gtk_reserved2) (void); | |
37424 | void (*_gtk_reserved3) (void); | |
37425 | void (*_gtk_reserved4) (void); | |
37426 | }; | |
37427 | ||
37428 | ||
37429 | ||
37430 | GType gtk_container_get_type (void) __attribute__((__const__)); | |
37431 | void gtk_container_set_border_width (GtkContainer *container, | |
37432 | guint border_width); | |
37433 | guint gtk_container_get_border_width (GtkContainer *container); | |
37434 | void gtk_container_add (GtkContainer *container, | |
37435 | GtkWidget *widget); | |
37436 | void gtk_container_remove (GtkContainer *container, | |
37437 | GtkWidget *widget); | |
37438 | ||
37439 | void gtk_container_set_resize_mode (GtkContainer *container, | |
37440 | GtkResizeMode resize_mode); | |
37441 | GtkResizeMode gtk_container_get_resize_mode (GtkContainer *container); | |
37442 | ||
37443 | void gtk_container_check_resize (GtkContainer *container); | |
37444 | ||
37445 | void gtk_container_foreach (GtkContainer *container, | |
37446 | GtkCallback callback, | |
37447 | gpointer callback_data); | |
37448 | ||
37449 | void gtk_container_foreach_full (GtkContainer *container, | |
37450 | GtkCallback callback, | |
37451 | GtkCallbackMarshal marshal, | |
37452 | gpointer callback_data, | |
37453 | GtkDestroyNotify notify); | |
37454 | ||
37455 | GList* gtk_container_get_children (GtkContainer *container); | |
37456 | ||
37457 | ||
37458 | #define gtk_container_children gtk_container_get_children | |
37459 | ||
37460 | ||
37461 | void gtk_container_propagate_expose (GtkContainer *container, | |
37462 | GtkWidget *child, | |
37463 | GdkEventExpose *event); | |
37464 | ||
37465 | void gtk_container_set_focus_chain (GtkContainer *container, | |
37466 | GList *focusable_widgets); | |
37467 | gboolean gtk_container_get_focus_chain (GtkContainer *container, | |
37468 | GList **focusable_widgets); | |
37469 | void gtk_container_unset_focus_chain (GtkContainer *container); | |
37470 | ||
37471 | ||
37472 | ||
37473 | void gtk_container_set_reallocate_redraws (GtkContainer *container, | |
37474 | gboolean needs_redraws); | |
37475 | void gtk_container_set_focus_child (GtkContainer *container, | |
37476 | GtkWidget *child); | |
37477 | void gtk_container_set_focus_vadjustment (GtkContainer *container, | |
37478 | GtkAdjustment *adjustment); | |
37479 | GtkAdjustment *gtk_container_get_focus_vadjustment (GtkContainer *container); | |
37480 | void gtk_container_set_focus_hadjustment (GtkContainer *container, | |
37481 | GtkAdjustment *adjustment); | |
37482 | GtkAdjustment *gtk_container_get_focus_hadjustment (GtkContainer *container); | |
37483 | ||
37484 | void gtk_container_resize_children (GtkContainer *container); | |
37485 | ||
37486 | GType gtk_container_child_type (GtkContainer *container); | |
37487 | ||
37488 | ||
37489 | void gtk_container_class_install_child_property (GtkContainerClass *cclass, | |
37490 | guint property_id, | |
37491 | GParamSpec *pspec); | |
37492 | GParamSpec* gtk_container_class_find_child_property (GObjectClass *cclass, | |
37493 | const gchar *property_name); | |
37494 | GParamSpec** gtk_container_class_list_child_properties (GObjectClass *cclass, | |
37495 | guint *n_properties); | |
37496 | void gtk_container_add_with_properties (GtkContainer *container, | |
37497 | GtkWidget *widget, | |
37498 | const gchar *first_prop_name, | |
37499 | ...) ; | |
37500 | void gtk_container_child_set (GtkContainer *container, | |
37501 | GtkWidget *child, | |
37502 | const gchar *first_prop_name, | |
37503 | ...) ; | |
37504 | void gtk_container_child_get (GtkContainer *container, | |
37505 | GtkWidget *child, | |
37506 | const gchar *first_prop_name, | |
37507 | ...) ; | |
37508 | void gtk_container_child_set_valist (GtkContainer *container, | |
37509 | GtkWidget *child, | |
37510 | const gchar *first_property_name, | |
37511 | va_list var_args); | |
37512 | void gtk_container_child_get_valist (GtkContainer *container, | |
37513 | GtkWidget *child, | |
37514 | const gchar *first_property_name, | |
37515 | va_list var_args); | |
37516 | void gtk_container_child_set_property (GtkContainer *container, | |
37517 | GtkWidget *child, | |
37518 | const gchar *property_name, | |
37519 | const GValue *value); | |
37520 | void gtk_container_child_get_property (GtkContainer *container, | |
37521 | GtkWidget *child, | |
37522 | const gchar *property_name, | |
37523 | GValue *value); | |
37524 | ||
37525 | #define GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID(object,property_id,pspec) G_OBJECT_WARN_INVALID_PSPEC ((object), "child property id", (property_id), (pspec)) | |
37526 | ||
37527 | ||
37528 | ||
37529 | void gtk_container_forall (GtkContainer *container, | |
37530 | GtkCallback callback, | |
37531 | gpointer callback_data); | |
37532 | ||
37533 | ||
37534 | void _gtk_container_queue_resize (GtkContainer *container); | |
37535 | void _gtk_container_clear_resize_widgets (GtkContainer *container); | |
37536 | gchar* _gtk_container_child_composite_name (GtkContainer *container, | |
37537 | GtkWidget *child); | |
37538 | void _gtk_container_dequeue_resize_handler (GtkContainer *container); | |
37539 | GList *_gtk_container_focus_sort (GtkContainer *container, | |
37540 | GList *children, | |
37541 | GtkDirectionType direction, | |
37542 | GtkWidget *old_focus); | |
37543 | ||
37544 | ||
37545 | #define gtk_container_border_width gtk_container_set_border_width | |
37546 | ||
37547 | ||
37548 | ||
37549 | # 33 "/usr/include/gtk-2.0/gtk/gtkbin.h" 2 | |
37550 | ||
37551 | ||
37552 | ||
37553 | ||
37554 | #define GTK_TYPE_BIN (gtk_bin_get_type ()) | |
37555 | #define GTK_BIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BIN, GtkBin)) | |
37556 | #define GTK_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BIN, GtkBinClass)) | |
37557 | #define GTK_IS_BIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BIN)) | |
37558 | #define GTK_IS_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BIN)) | |
37559 | #define GTK_BIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BIN, GtkBinClass)) | |
37560 | ||
37561 | ||
37562 | typedef struct _GtkBin GtkBin; | |
37563 | typedef struct _GtkBinClass GtkBinClass; | |
37564 | ||
37565 | struct _GtkBin | |
37566 | { | |
37567 | GtkContainer container; | |
37568 | ||
37569 | GtkWidget *child; | |
37570 | }; | |
37571 | ||
37572 | struct _GtkBinClass | |
37573 | { | |
37574 | GtkContainerClass parent_class; | |
37575 | }; | |
37576 | ||
37577 | ||
37578 | GType gtk_bin_get_type (void) __attribute__((__const__)); | |
37579 | ||
37580 | GtkWidget *gtk_bin_get_child (GtkBin *bin); | |
37581 | ||
37582 | ||
37583 | # 34 "/usr/include/gtk-2.0/gtk/gtkwindow.h" 2 | |
37584 | ||
37585 | ||
37586 | ||
37587 | ||
37588 | ||
37589 | #define GTK_TYPE_WINDOW (gtk_window_get_type ()) | |
37590 | #define GTK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_WINDOW, GtkWindow)) | |
37591 | #define GTK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW, GtkWindowClass)) | |
37592 | #define GTK_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_WINDOW)) | |
37593 | #define GTK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW)) | |
37594 | #define GTK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW, GtkWindowClass)) | |
37595 | ||
37596 | ||
37597 | typedef struct _GtkWindow GtkWindow; | |
37598 | typedef struct _GtkWindowClass GtkWindowClass; | |
37599 | typedef struct _GtkWindowGeometryInfo GtkWindowGeometryInfo; | |
37600 | typedef struct _GtkWindowGroup GtkWindowGroup; | |
37601 | typedef struct _GtkWindowGroupClass GtkWindowGroupClass; | |
37602 | ||
37603 | struct _GtkWindow | |
37604 | { | |
37605 | GtkBin bin; | |
37606 | ||
37607 | gchar *title; | |
37608 | gchar *wmclass_name; | |
37609 | gchar *wmclass_class; | |
37610 | gchar *wm_role; | |
37611 | ||
37612 | GtkWidget *focus_widget; | |
37613 | GtkWidget *default_widget; | |
37614 | GtkWindow *transient_parent; | |
37615 | GtkWindowGeometryInfo *geometry_info; | |
37616 | GdkWindow *frame; | |
37617 | GtkWindowGroup *group; | |
37618 | ||
37619 | guint16 configure_request_count; | |
37620 | guint allow_shrink : 1; | |
37621 | guint allow_grow : 1; | |
37622 | guint configure_notify_received : 1; | |
37623 | ||
37624 | ||
37625 | ||
37626 | ||
37627 | ||
37628 | ||
37629 | guint need_default_position : 1; | |
37630 | guint need_default_size : 1; | |
37631 | guint position : 3; | |
37632 | guint type : 4; | |
37633 | guint has_user_ref_count : 1; | |
37634 | guint has_focus : 1; | |
37635 | ||
37636 | guint modal : 1; | |
37637 | guint destroy_with_parent : 1; | |
37638 | ||
37639 | guint has_frame : 1; | |
37640 | ||
37641 | ||
37642 | guint iconify_initially : 1; | |
37643 | guint stick_initially : 1; | |
37644 | guint maximize_initially : 1; | |
37645 | guint decorated : 1; | |
37646 | ||
37647 | guint type_hint : 3; | |
37648 | guint gravity : 5; | |
37649 | ||
37650 | guint is_active : 1; | |
37651 | guint has_toplevel_focus : 1; | |
37652 | ||
37653 | guint frame_left; | |
37654 | guint frame_top; | |
37655 | guint frame_right; | |
37656 | guint frame_bottom; | |
37657 | ||
37658 | guint keys_changed_handler; | |
37659 | ||
37660 | GdkModifierType mnemonic_modifier; | |
37661 | GdkScreen *screen; | |
37662 | }; | |
37663 | ||
37664 | struct _GtkWindowClass | |
37665 | { | |
37666 | GtkBinClass parent_class; | |
37667 | ||
37668 | void (* set_focus) (GtkWindow *window, | |
37669 | GtkWidget *focus); | |
37670 | gboolean (* frame_event) (GtkWindow *window, | |
37671 | GdkEvent *event); | |
37672 | ||
37673 | ||
37674 | ||
37675 | void (* activate_focus) (GtkWindow *window); | |
37676 | void (* activate_default) (GtkWindow *window); | |
37677 | void (* move_focus) (GtkWindow *window, | |
37678 | GtkDirectionType direction); | |
37679 | ||
37680 | void (*keys_changed) (GtkWindow *window); | |
37681 | ||
37682 | ||
37683 | void (*_gtk_reserved1) (void); | |
37684 | void (*_gtk_reserved2) (void); | |
37685 | void (*_gtk_reserved3) (void); | |
37686 | void (*_gtk_reserved4) (void); | |
37687 | }; | |
37688 | ||
37689 | #define GTK_TYPE_WINDOW_GROUP (gtk_window_group_get_type ()) | |
37690 | #define GTK_WINDOW_GROUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_WINDOW_GROUP, GtkWindowGroup)) | |
37691 | #define GTK_WINDOW_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW_GROUP, GtkWindowGroupClass)) | |
37692 | #define GTK_IS_WINDOW_GROUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_WINDOW_GROUP)) | |
37693 | #define GTK_IS_WINDOW_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW_GROUP)) | |
37694 | #define GTK_WINDOW_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW_GROUP, GtkWindowGroupClass)) | |
37695 | ||
37696 | struct _GtkWindowGroup | |
37697 | { | |
37698 | GObject parent_instance; | |
37699 | ||
37700 | GSList *grabs; | |
37701 | }; | |
37702 | ||
37703 | struct _GtkWindowGroupClass | |
37704 | { | |
37705 | GObjectClass parent_class; | |
37706 | ||
37707 | ||
37708 | void (*_gtk_reserved1) (void); | |
37709 | void (*_gtk_reserved2) (void); | |
37710 | void (*_gtk_reserved3) (void); | |
37711 | void (*_gtk_reserved4) (void); | |
37712 | }; | |
37713 | ||
37714 | ||
37715 | ||
37716 | ||
37717 | ||
37718 | ||
37719 | ||
37720 | GType gtk_window_get_type (void) __attribute__((__const__)); | |
37721 | GtkWidget* gtk_window_new (GtkWindowType type); | |
37722 | void gtk_window_set_title (GtkWindow *window, | |
37723 | const gchar *title); | |
37724 | const gchar *gtk_window_get_title (GtkWindow *window); | |
37725 | void gtk_window_set_wmclass (GtkWindow *window, | |
37726 | const gchar *wmclass_name, | |
37727 | const gchar *wmclass_class); | |
37728 | void gtk_window_set_role (GtkWindow *window, | |
37729 | const gchar *role); | |
37730 | const gchar *gtk_window_get_role (GtkWindow *window); | |
37731 | void gtk_window_add_accel_group (GtkWindow *window, | |
37732 | GtkAccelGroup *accel_group); | |
37733 | void gtk_window_remove_accel_group (GtkWindow *window, | |
37734 | GtkAccelGroup *accel_group); | |
37735 | void gtk_window_set_position (GtkWindow *window, | |
37736 | GtkWindowPosition position); | |
37737 | gboolean gtk_window_activate_focus (GtkWindow *window); | |
37738 | void gtk_window_set_focus (GtkWindow *window, | |
37739 | GtkWidget *focus); | |
37740 | GtkWidget *gtk_window_get_focus (GtkWindow *window); | |
37741 | void gtk_window_set_default (GtkWindow *window, | |
37742 | GtkWidget *default_widget); | |
37743 | gboolean gtk_window_activate_default (GtkWindow *window); | |
37744 | ||
37745 | void gtk_window_set_transient_for (GtkWindow *window, | |
37746 | GtkWindow *parent); | |
37747 | GtkWindow *gtk_window_get_transient_for (GtkWindow *window); | |
37748 | void gtk_window_set_type_hint (GtkWindow *window, | |
37749 | GdkWindowTypeHint hint); | |
37750 | GdkWindowTypeHint gtk_window_get_type_hint (GtkWindow *window); | |
37751 | void gtk_window_set_skip_taskbar_hint (GtkWindow *window, | |
37752 | gboolean setting); | |
37753 | gboolean gtk_window_get_skip_taskbar_hint (GtkWindow *window); | |
37754 | void gtk_window_set_skip_pager_hint (GtkWindow *window, | |
37755 | gboolean setting); | |
37756 | gboolean gtk_window_get_skip_pager_hint (GtkWindow *window); | |
37757 | void gtk_window_set_urgency_hint (GtkWindow *window, | |
37758 | gboolean setting); | |
37759 | gboolean gtk_window_get_urgency_hint (GtkWindow *window); | |
37760 | void gtk_window_set_accept_focus (GtkWindow *window, | |
37761 | gboolean setting); | |
37762 | gboolean gtk_window_get_accept_focus (GtkWindow *window); | |
37763 | void gtk_window_set_focus_on_map (GtkWindow *window, | |
37764 | gboolean setting); | |
37765 | gboolean gtk_window_get_focus_on_map (GtkWindow *window); | |
37766 | void gtk_window_set_destroy_with_parent (GtkWindow *window, | |
37767 | gboolean setting); | |
37768 | gboolean gtk_window_get_destroy_with_parent (GtkWindow *window); | |
37769 | ||
37770 | void gtk_window_set_resizable (GtkWindow *window, | |
37771 | gboolean resizable); | |
37772 | gboolean gtk_window_get_resizable (GtkWindow *window); | |
37773 | ||
37774 | void gtk_window_set_gravity (GtkWindow *window, | |
37775 | GdkGravity gravity); | |
37776 | GdkGravity gtk_window_get_gravity (GtkWindow *window); | |
37777 | ||
37778 | ||
37779 | void gtk_window_set_geometry_hints (GtkWindow *window, | |
37780 | GtkWidget *geometry_widget, | |
37781 | GdkGeometry *geometry, | |
37782 | GdkWindowHints geom_mask); | |
37783 | ||
37784 | void gtk_window_set_screen (GtkWindow *window, | |
37785 | GdkScreen *screen); | |
37786 | GdkScreen* gtk_window_get_screen (GtkWindow *window); | |
37787 | ||
37788 | gboolean gtk_window_is_active (GtkWindow *window); | |
37789 | gboolean gtk_window_has_toplevel_focus (GtkWindow *window); | |
37790 | ||
37791 | ||
37792 | ||
37793 | ||
37794 | void gtk_window_set_has_frame (GtkWindow *window, | |
37795 | gboolean setting); | |
37796 | gboolean gtk_window_get_has_frame (GtkWindow *window); | |
37797 | void gtk_window_set_frame_dimensions (GtkWindow *window, | |
37798 | gint left, | |
37799 | gint top, | |
37800 | gint right, | |
37801 | gint bottom); | |
37802 | void gtk_window_get_frame_dimensions (GtkWindow *window, | |
37803 | gint *left, | |
37804 | gint *top, | |
37805 | gint *right, | |
37806 | gint *bottom); | |
37807 | void gtk_window_set_decorated (GtkWindow *window, | |
37808 | gboolean setting); | |
37809 | gboolean gtk_window_get_decorated (GtkWindow *window); | |
37810 | ||
37811 | void gtk_window_set_icon_list (GtkWindow *window, | |
37812 | GList *list); | |
37813 | GList* gtk_window_get_icon_list (GtkWindow *window); | |
37814 | void gtk_window_set_icon (GtkWindow *window, | |
37815 | GdkPixbuf *icon); | |
37816 | void gtk_window_set_icon_name (GtkWindow *window, | |
37817 | const gchar *name); | |
37818 | gboolean gtk_window_set_icon_from_file (GtkWindow *window, | |
37819 | const gchar *filename, | |
37820 | GError **err); | |
37821 | GdkPixbuf* gtk_window_get_icon (GtkWindow *window); | |
37822 | const | |
37823 | gchar *gtk_window_get_icon_name (GtkWindow *window); | |
37824 | void gtk_window_set_default_icon_list (GList *list); | |
37825 | GList* gtk_window_get_default_icon_list (void); | |
37826 | void gtk_window_set_default_icon (GdkPixbuf *icon); | |
37827 | void gtk_window_set_default_icon_name (const gchar *name); | |
37828 | gboolean gtk_window_set_default_icon_from_file (const gchar *filename, | |
37829 | GError **err); | |
37830 | ||
37831 | void gtk_window_set_auto_startup_notification (gboolean setting); | |
37832 | ||
37833 | ||
37834 | void gtk_window_set_modal (GtkWindow *window, | |
37835 | gboolean modal); | |
37836 | gboolean gtk_window_get_modal (GtkWindow *window); | |
37837 | GList* gtk_window_list_toplevels (void); | |
37838 | ||
37839 | void gtk_window_add_mnemonic (GtkWindow *window, | |
37840 | guint keyval, | |
37841 | GtkWidget *target); | |
37842 | void gtk_window_remove_mnemonic (GtkWindow *window, | |
37843 | guint keyval, | |
37844 | GtkWidget *target); | |
37845 | gboolean gtk_window_mnemonic_activate (GtkWindow *window, | |
37846 | guint keyval, | |
37847 | GdkModifierType modifier); | |
37848 | void gtk_window_set_mnemonic_modifier (GtkWindow *window, | |
37849 | GdkModifierType modifier); | |
37850 | GdkModifierType gtk_window_get_mnemonic_modifier (GtkWindow *window); | |
37851 | ||
37852 | gboolean gtk_window_activate_key (GtkWindow *window, | |
37853 | GdkEventKey *event); | |
37854 | gboolean gtk_window_propagate_key_event (GtkWindow *window, | |
37855 | GdkEventKey *event); | |
37856 | ||
37857 | void gtk_window_present (GtkWindow *window); | |
37858 | void gtk_window_present_with_time (GtkWindow *window, | |
37859 | guint32 timestamp); | |
37860 | void gtk_window_iconify (GtkWindow *window); | |
37861 | void gtk_window_deiconify (GtkWindow *window); | |
37862 | void gtk_window_stick (GtkWindow *window); | |
37863 | void gtk_window_unstick (GtkWindow *window); | |
37864 | void gtk_window_maximize (GtkWindow *window); | |
37865 | void gtk_window_unmaximize (GtkWindow *window); | |
37866 | void gtk_window_fullscreen (GtkWindow *window); | |
37867 | void gtk_window_unfullscreen (GtkWindow *window); | |
37868 | void gtk_window_set_keep_above (GtkWindow *window, gboolean setting); | |
37869 | void gtk_window_set_keep_below (GtkWindow *window, gboolean setting); | |
37870 | ||
37871 | void gtk_window_begin_resize_drag (GtkWindow *window, | |
37872 | GdkWindowEdge edge, | |
37873 | gint button, | |
37874 | gint root_x, | |
37875 | gint root_y, | |
37876 | guint32 timestamp); | |
37877 | void gtk_window_begin_move_drag (GtkWindow *window, | |
37878 | gint button, | |
37879 | gint root_x, | |
37880 | gint root_y, | |
37881 | guint32 timestamp); | |
37882 | ||
37883 | ||
37884 | void gtk_window_set_policy (GtkWindow *window, | |
37885 | gint allow_shrink, | |
37886 | gint allow_grow, | |
37887 | gint auto_shrink); | |
37888 | #define gtk_window_position gtk_window_set_position | |
37889 | ||
37890 | ||
37891 | ||
37892 | ||
37893 | ||
37894 | void gtk_window_set_default_size (GtkWindow *window, | |
37895 | gint width, | |
37896 | gint height); | |
37897 | void gtk_window_get_default_size (GtkWindow *window, | |
37898 | gint *width, | |
37899 | gint *height); | |
37900 | void gtk_window_resize (GtkWindow *window, | |
37901 | gint width, | |
37902 | gint height); | |
37903 | void gtk_window_get_size (GtkWindow *window, | |
37904 | gint *width, | |
37905 | gint *height); | |
37906 | void gtk_window_move (GtkWindow *window, | |
37907 | gint x, | |
37908 | gint y); | |
37909 | void gtk_window_get_position (GtkWindow *window, | |
37910 | gint *root_x, | |
37911 | gint *root_y); | |
37912 | gboolean gtk_window_parse_geometry (GtkWindow *window, | |
37913 | const gchar *geometry); | |
37914 | ||
37915 | ||
37916 | void gtk_window_reshow_with_initial_size (GtkWindow *window); | |
37917 | ||
37918 | ||
37919 | ||
37920 | GType gtk_window_group_get_type (void) __attribute__((__const__)); | |
37921 | ||
37922 | GtkWindowGroup * gtk_window_group_new (void); | |
37923 | void gtk_window_group_add_window (GtkWindowGroup *window_group, | |
37924 | GtkWindow *window); | |
37925 | void gtk_window_group_remove_window (GtkWindowGroup *window_group, | |
37926 | GtkWindow *window); | |
37927 | ||
37928 | ||
37929 | void _gtk_window_internal_set_focus (GtkWindow *window, | |
37930 | GtkWidget *focus); | |
37931 | void gtk_window_remove_embedded_xid (GtkWindow *window, | |
37932 | guint xid); | |
37933 | void gtk_window_add_embedded_xid (GtkWindow *window, | |
37934 | guint xid); | |
37935 | void _gtk_window_reposition (GtkWindow *window, | |
37936 | gint x, | |
37937 | gint y); | |
37938 | void _gtk_window_constrain_size (GtkWindow *window, | |
37939 | gint width, | |
37940 | gint height, | |
37941 | gint *new_width, | |
37942 | gint *new_height); | |
37943 | GtkWindowGroup *_gtk_window_get_group (GtkWindow *window); | |
37944 | GtkWidget *_gtk_window_group_get_current_grab (GtkWindowGroup *window_group); | |
37945 | ||
37946 | void _gtk_window_set_has_toplevel_focus (GtkWindow *window, | |
37947 | gboolean has_toplevel_focus); | |
37948 | void _gtk_window_unset_focus_and_default (GtkWindow *window, | |
37949 | GtkWidget *widget); | |
37950 | ||
37951 | void _gtk_window_set_is_active (GtkWindow *window, | |
37952 | gboolean is_active); | |
37953 | ||
37954 | typedef void (*GtkWindowKeysForeachFunc) (GtkWindow *window, | |
37955 | guint keyval, | |
37956 | GdkModifierType modifiers, | |
37957 | gboolean is_mnemonic, | |
37958 | gpointer data); | |
37959 | ||
37960 | void _gtk_window_keys_foreach (GtkWindow *window, | |
37961 | GtkWindowKeysForeachFunc func, | |
37962 | gpointer func_data); | |
37963 | ||
37964 | ||
37965 | gboolean _gtk_window_query_nonaccels (GtkWindow *window, | |
37966 | guint accel_key, | |
37967 | GdkModifierType accel_mods); | |
37968 | ||
37969 | ||
37970 | # 33 "/usr/include/gtk-2.0/gtk/gtkdialog.h" 2 | |
37971 | ||
37972 | ||
37973 | ||
37974 | ||
37975 | ||
37976 | typedef enum | |
37977 | { | |
37978 | GTK_DIALOG_MODAL = 1 << 0, | |
37979 | GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1, | |
37980 | GTK_DIALOG_NO_SEPARATOR = 1 << 2 | |
37981 | } GtkDialogFlags; | |
37982 | # 53 "/usr/include/gtk-2.0/gtk/gtkdialog.h" | |
37983 | typedef enum | |
37984 | { | |
37985 | ||
37986 | ||
37987 | ||
37988 | GTK_RESPONSE_NONE = -1, | |
37989 | ||
37990 | ||
37991 | ||
37992 | ||
37993 | ||
37994 | GTK_RESPONSE_REJECT = -2, | |
37995 | GTK_RESPONSE_ACCEPT = -3, | |
37996 | ||
37997 | ||
37998 | GTK_RESPONSE_DELETE_EVENT = -4, | |
37999 | ||
38000 | ||
38001 | ||
38002 | ||
38003 | GTK_RESPONSE_OK = -5, | |
38004 | GTK_RESPONSE_CANCEL = -6, | |
38005 | GTK_RESPONSE_CLOSE = -7, | |
38006 | GTK_RESPONSE_YES = -8, | |
38007 | GTK_RESPONSE_NO = -9, | |
38008 | GTK_RESPONSE_APPLY = -10, | |
38009 | GTK_RESPONSE_HELP = -11 | |
38010 | } GtkResponseType; | |
38011 | ||
38012 | ||
38013 | #define GTK_TYPE_DIALOG (gtk_dialog_get_type ()) | |
38014 | #define GTK_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_DIALOG, GtkDialog)) | |
38015 | #define GTK_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_DIALOG, GtkDialogClass)) | |
38016 | #define GTK_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_DIALOG)) | |
38017 | #define GTK_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DIALOG)) | |
38018 | #define GTK_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_DIALOG, GtkDialogClass)) | |
38019 | ||
38020 | ||
38021 | typedef struct _GtkDialog GtkDialog; | |
38022 | typedef struct _GtkDialogClass GtkDialogClass; | |
38023 | ||
38024 | struct _GtkDialog | |
38025 | { | |
38026 | GtkWindow window; | |
38027 | ||
38028 | ||
38029 | GtkWidget *vbox; | |
38030 | GtkWidget *action_area; | |
38031 | ||
38032 | ||
38033 | GtkWidget *separator; | |
38034 | }; | |
38035 | ||
38036 | struct _GtkDialogClass | |
38037 | { | |
38038 | GtkWindowClass parent_class; | |
38039 | ||
38040 | void (* response) (GtkDialog *dialog, gint response_id); | |
38041 | ||
38042 | ||
38043 | ||
38044 | void (* close) (GtkDialog *dialog); | |
38045 | ||
38046 | ||
38047 | void (*_gtk_reserved1) (void); | |
38048 | void (*_gtk_reserved2) (void); | |
38049 | void (*_gtk_reserved3) (void); | |
38050 | void (*_gtk_reserved4) (void); | |
38051 | }; | |
38052 | ||
38053 | ||
38054 | GType gtk_dialog_get_type (void) __attribute__((__const__)); | |
38055 | GtkWidget* gtk_dialog_new (void); | |
38056 | ||
38057 | GtkWidget* gtk_dialog_new_with_buttons (const gchar *title, | |
38058 | GtkWindow *parent, | |
38059 | GtkDialogFlags flags, | |
38060 | const gchar *first_button_text, | |
38061 | ...); | |
38062 | ||
38063 | void gtk_dialog_add_action_widget (GtkDialog *dialog, | |
38064 | GtkWidget *child, | |
38065 | gint response_id); | |
38066 | GtkWidget* gtk_dialog_add_button (GtkDialog *dialog, | |
38067 | const gchar *button_text, | |
38068 | gint response_id); | |
38069 | void gtk_dialog_add_buttons (GtkDialog *dialog, | |
38070 | const gchar *first_button_text, | |
38071 | ...) ; | |
38072 | ||
38073 | void gtk_dialog_set_response_sensitive (GtkDialog *dialog, | |
38074 | gint response_id, | |
38075 | gboolean setting); | |
38076 | void gtk_dialog_set_default_response (GtkDialog *dialog, | |
38077 | gint response_id); | |
38078 | gint gtk_dialog_get_response_for_widget (GtkDialog *dialog, | |
38079 | GtkWidget *widget); | |
38080 | ||
38081 | void gtk_dialog_set_has_separator (GtkDialog *dialog, | |
38082 | gboolean setting); | |
38083 | gboolean gtk_dialog_get_has_separator (GtkDialog *dialog); | |
38084 | ||
38085 | gboolean gtk_alternative_dialog_button_order (GdkScreen *screen); | |
38086 | void gtk_dialog_set_alternative_button_order (GtkDialog *dialog, | |
38087 | gint first_response_id, | |
38088 | ...); | |
38089 | void gtk_dialog_set_alternative_button_order_from_array (GtkDialog *dialog, | |
38090 | gint n_params, | |
38091 | gint *new_order); | |
38092 | ||
38093 | ||
38094 | void gtk_dialog_response (GtkDialog *dialog, | |
38095 | gint response_id); | |
38096 | ||
38097 | ||
38098 | gint gtk_dialog_run (GtkDialog *dialog); | |
38099 | ||
38100 | ||
38101 | ||
38102 | void _gtk_dialog_set_ignore_separator (GtkDialog *dialog, | |
38103 | gboolean ignore_separator); | |
38104 | gint _gtk_dialog_get_response_for_widget (GtkDialog *dialog, | |
38105 | GtkWidget *widget); | |
38106 | ||
38107 | ||
38108 | # 29 "/usr/include/gtk-2.0/gtk/gtkaboutdialog.h" 2 | |
38109 | ||
38110 | ||
38111 | ||
38112 | #define GTK_TYPE_ABOUT_DIALOG (gtk_about_dialog_get_type ()) | |
38113 | #define GTK_ABOUT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialog)) | |
38114 | #define GTK_ABOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialogClass)) | |
38115 | #define GTK_IS_ABOUT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ABOUT_DIALOG)) | |
38116 | #define GTK_IS_ABOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ABOUT_DIALOG)) | |
38117 | #define GTK_ABOUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialogClass)) | |
38118 | ||
38119 | typedef struct _GtkAboutDialog GtkAboutDialog; | |
38120 | typedef struct _GtkAboutDialogClass GtkAboutDialogClass; | |
38121 | ||
38122 | struct _GtkAboutDialog | |
38123 | { | |
38124 | GtkDialog parent_instance; | |
38125 | ||
38126 | ||
38127 | gpointer private_data; | |
38128 | }; | |
38129 | ||
38130 | struct _GtkAboutDialogClass | |
38131 | { | |
38132 | GtkDialogClass parent_class; | |
38133 | ||
38134 | ||
38135 | void (*_gtk_reserved1) (void); | |
38136 | void (*_gtk_reserved2) (void); | |
38137 | void (*_gtk_reserved3) (void); | |
38138 | void (*_gtk_reserved4) (void); | |
38139 | }; | |
38140 | ||
38141 | GType gtk_about_dialog_get_type (void) __attribute__((__const__)); | |
38142 | GtkWidget *gtk_about_dialog_new (void); | |
38143 | void gtk_show_about_dialog (GtkWindow *parent, | |
38144 | const gchar *first_property_name, | |
38145 | ...) ; | |
38146 | ||
38147 | const gchar *gtk_about_dialog_get_name (GtkAboutDialog *about); | |
38148 | void gtk_about_dialog_set_name (GtkAboutDialog *about, | |
38149 | const gchar *name); | |
38150 | const gchar *gtk_about_dialog_get_version (GtkAboutDialog *about); | |
38151 | void gtk_about_dialog_set_version (GtkAboutDialog *about, | |
38152 | const gchar *version); | |
38153 | const gchar *gtk_about_dialog_get_copyright (GtkAboutDialog *about); | |
38154 | void gtk_about_dialog_set_copyright (GtkAboutDialog *about, | |
38155 | const gchar *copyright); | |
38156 | const gchar *gtk_about_dialog_get_comments (GtkAboutDialog *about); | |
38157 | void gtk_about_dialog_set_comments (GtkAboutDialog *about, | |
38158 | const gchar *comments); | |
38159 | const gchar *gtk_about_dialog_get_license (GtkAboutDialog *about); | |
38160 | void gtk_about_dialog_set_license (GtkAboutDialog *about, | |
38161 | const gchar *license); | |
38162 | ||
38163 | gboolean gtk_about_dialog_get_wrap_license (GtkAboutDialog *about); | |
38164 | void gtk_about_dialog_set_wrap_license (GtkAboutDialog *about, | |
38165 | gboolean wrap_license); | |
38166 | ||
38167 | const gchar *gtk_about_dialog_get_website (GtkAboutDialog *about); | |
38168 | void gtk_about_dialog_set_website (GtkAboutDialog *about, | |
38169 | const gchar *website); | |
38170 | const gchar *gtk_about_dialog_get_website_label (GtkAboutDialog *about); | |
38171 | void gtk_about_dialog_set_website_label (GtkAboutDialog *about, | |
38172 | const gchar *website_label); | |
38173 | const gchar* const * gtk_about_dialog_get_authors (GtkAboutDialog *about); | |
38174 | void gtk_about_dialog_set_authors (GtkAboutDialog *about, | |
38175 | const gchar **authors); | |
38176 | const gchar* const * gtk_about_dialog_get_documenters (GtkAboutDialog *about); | |
38177 | void gtk_about_dialog_set_documenters (GtkAboutDialog *about, | |
38178 | const gchar **documenters); | |
38179 | const gchar* const * gtk_about_dialog_get_artists (GtkAboutDialog *about); | |
38180 | void gtk_about_dialog_set_artists (GtkAboutDialog *about, | |
38181 | const gchar **artists); | |
38182 | const gchar *gtk_about_dialog_get_translator_credits (GtkAboutDialog *about); | |
38183 | void gtk_about_dialog_set_translator_credits (GtkAboutDialog *about, | |
38184 | const gchar *translator_credits); | |
38185 | GdkPixbuf *gtk_about_dialog_get_logo (GtkAboutDialog *about); | |
38186 | void gtk_about_dialog_set_logo (GtkAboutDialog *about, | |
38187 | GdkPixbuf *logo); | |
38188 | const gchar *gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about); | |
38189 | void gtk_about_dialog_set_logo_icon_name (GtkAboutDialog *about, | |
38190 | const gchar *icon_name); | |
38191 | ||
38192 | typedef void (* GtkAboutDialogActivateLinkFunc) (GtkAboutDialog *about, | |
38193 | const gchar *link, | |
38194 | gpointer data); | |
38195 | ||
38196 | GtkAboutDialogActivateLinkFunc gtk_about_dialog_set_email_hook (GtkAboutDialogActivateLinkFunc func, | |
38197 | gpointer data, | |
38198 | GDestroyNotify destroy); | |
38199 | GtkAboutDialogActivateLinkFunc gtk_about_dialog_set_url_hook (GtkAboutDialogActivateLinkFunc func, | |
38200 | gpointer data, | |
38201 | GDestroyNotify destroy); | |
38202 | ||
38203 | ||
38204 | # 33 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
38205 | ||
38206 | # 1 "/usr/include/gtk-2.0/gtk/gtkaccellabel.h" 1 | |
38207 | # 31 "/usr/include/gtk-2.0/gtk/gtkaccellabel.h" | |
38208 | #define __GTK_ACCEL_LABEL_H__ | |
38209 | ||
38210 | ||
38211 | # 1 "/usr/include/gtk-2.0/gtk/gtklabel.h" 1 | |
38212 | # 27 "/usr/include/gtk-2.0/gtk/gtklabel.h" | |
38213 | #define __GTK_LABEL_H__ | |
38214 | ||
38215 | ||
38216 | ||
38217 | # 1 "/usr/include/gtk-2.0/gtk/gtkmisc.h" 1 | |
38218 | # 28 "/usr/include/gtk-2.0/gtk/gtkmisc.h" | |
38219 | #define __GTK_MISC_H__ | |
38220 | ||
38221 | ||
38222 | ||
38223 | ||
38224 | ||
38225 | ||
38226 | ||
38227 | ||
38228 | #define GTK_TYPE_MISC (gtk_misc_get_type ()) | |
38229 | #define GTK_MISC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MISC, GtkMisc)) | |
38230 | #define GTK_MISC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MISC, GtkMiscClass)) | |
38231 | #define GTK_IS_MISC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MISC)) | |
38232 | #define GTK_IS_MISC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MISC)) | |
38233 | #define GTK_MISC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MISC, GtkMiscClass)) | |
38234 | ||
38235 | ||
38236 | typedef struct _GtkMisc GtkMisc; | |
38237 | typedef struct _GtkMiscClass GtkMiscClass; | |
38238 | ||
38239 | struct _GtkMisc | |
38240 | { | |
38241 | GtkWidget widget; | |
38242 | ||
38243 | gfloat xalign; | |
38244 | gfloat yalign; | |
38245 | ||
38246 | guint16 xpad; | |
38247 | guint16 ypad; | |
38248 | }; | |
38249 | ||
38250 | struct _GtkMiscClass | |
38251 | { | |
38252 | GtkWidgetClass parent_class; | |
38253 | }; | |
38254 | ||
38255 | ||
38256 | GType gtk_misc_get_type (void) __attribute__((__const__)); | |
38257 | void gtk_misc_set_alignment (GtkMisc *misc, | |
38258 | gfloat xalign, | |
38259 | gfloat yalign); | |
38260 | void gtk_misc_get_alignment (GtkMisc *misc, | |
38261 | gfloat *xalign, | |
38262 | gfloat *yalign); | |
38263 | void gtk_misc_set_padding (GtkMisc *misc, | |
38264 | gint xpad, | |
38265 | gint ypad); | |
38266 | void gtk_misc_get_padding (GtkMisc *misc, | |
38267 | gint *xpad, | |
38268 | gint *ypad); | |
38269 | ||
38270 | ||
38271 | ||
38272 | # 32 "/usr/include/gtk-2.0/gtk/gtklabel.h" 2 | |
38273 | ||
38274 | # 1 "/usr/include/gtk-2.0/gtk/gtkmenu.h" 1 | |
38275 | # 28 "/usr/include/gtk-2.0/gtk/gtkmenu.h" | |
38276 | #define __GTK_MENU_H__ | |
38277 | ||
38278 | ||
38279 | ||
38280 | ||
38281 | # 1 "/usr/include/gtk-2.0/gtk/gtkmenushell.h" 1 | |
38282 | # 28 "/usr/include/gtk-2.0/gtk/gtkmenushell.h" | |
38283 | #define __GTK_MENU_SHELL_H__ | |
38284 | ||
38285 | ||
38286 | ||
38287 | ||
38288 | ||
38289 | ||
38290 | ||
38291 | ||
38292 | #define GTK_TYPE_MENU_SHELL (gtk_menu_shell_get_type ()) | |
38293 | #define GTK_MENU_SHELL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShell)) | |
38294 | #define GTK_MENU_SHELL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) | |
38295 | #define GTK_IS_MENU_SHELL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_SHELL)) | |
38296 | #define GTK_IS_MENU_SHELL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_SHELL)) | |
38297 | #define GTK_MENU_SHELL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) | |
38298 | ||
38299 | ||
38300 | typedef struct _GtkMenuShell GtkMenuShell; | |
38301 | typedef struct _GtkMenuShellClass GtkMenuShellClass; | |
38302 | ||
38303 | struct _GtkMenuShell | |
38304 | { | |
38305 | GtkContainer container; | |
38306 | ||
38307 | GList *children; | |
38308 | GtkWidget *active_menu_item; | |
38309 | GtkWidget *parent_menu_shell; | |
38310 | ||
38311 | guint button; | |
38312 | guint32 activate_time; | |
38313 | ||
38314 | guint active : 1; | |
38315 | guint have_grab : 1; | |
38316 | guint have_xgrab : 1; | |
38317 | guint ignore_leave : 1; | |
38318 | guint menu_flag : 1; | |
38319 | guint ignore_enter : 1; | |
38320 | }; | |
38321 | ||
38322 | struct _GtkMenuShellClass | |
38323 | { | |
38324 | GtkContainerClass parent_class; | |
38325 | ||
38326 | guint submenu_placement : 1; | |
38327 | ||
38328 | void (*deactivate) (GtkMenuShell *menu_shell); | |
38329 | void (*selection_done) (GtkMenuShell *menu_shell); | |
38330 | ||
38331 | void (*move_current) (GtkMenuShell *menu_shell, | |
38332 | GtkMenuDirectionType direction); | |
38333 | void (*activate_current) (GtkMenuShell *menu_shell, | |
38334 | gboolean force_hide); | |
38335 | void (*cancel) (GtkMenuShell *menu_shell); | |
38336 | void (*select_item) (GtkMenuShell *menu_shell, | |
38337 | GtkWidget *menu_item); | |
38338 | void (*insert) (GtkMenuShell *menu_shell, | |
38339 | GtkWidget *child, | |
38340 | gint position); | |
38341 | gint (*get_popup_delay) (GtkMenuShell *menu_shell); | |
38342 | ||
38343 | ||
38344 | void (*_gtk_reserved1) (void); | |
38345 | void (*_gtk_reserved2) (void); | |
38346 | void (*_gtk_reserved3) (void); | |
38347 | }; | |
38348 | ||
38349 | ||
38350 | GType gtk_menu_shell_get_type (void) __attribute__((__const__)); | |
38351 | void gtk_menu_shell_append (GtkMenuShell *menu_shell, | |
38352 | GtkWidget *child); | |
38353 | void gtk_menu_shell_prepend (GtkMenuShell *menu_shell, | |
38354 | GtkWidget *child); | |
38355 | void gtk_menu_shell_insert (GtkMenuShell *menu_shell, | |
38356 | GtkWidget *child, | |
38357 | gint position); | |
38358 | void gtk_menu_shell_deactivate (GtkMenuShell *menu_shell); | |
38359 | void gtk_menu_shell_select_item (GtkMenuShell *menu_shell, | |
38360 | GtkWidget *menu_item); | |
38361 | void gtk_menu_shell_deselect (GtkMenuShell *menu_shell); | |
38362 | void gtk_menu_shell_activate_item (GtkMenuShell *menu_shell, | |
38363 | GtkWidget *menu_item, | |
38364 | gboolean force_deactivate); | |
38365 | void gtk_menu_shell_select_first (GtkMenuShell *menu_shell, | |
38366 | gboolean search_sensitive); | |
38367 | void _gtk_menu_shell_select_last (GtkMenuShell *menu_shell, | |
38368 | gboolean search_sensitive); | |
38369 | void _gtk_menu_shell_activate (GtkMenuShell *menu_shell); | |
38370 | gint _gtk_menu_shell_get_popup_delay (GtkMenuShell *menu_shell); | |
38371 | void gtk_menu_shell_cancel (GtkMenuShell *menu_shell); | |
38372 | ||
38373 | void _gtk_menu_shell_add_mnemonic (GtkMenuShell *menu_shell, | |
38374 | guint keyval, | |
38375 | GtkWidget *target); | |
38376 | void _gtk_menu_shell_remove_mnemonic (GtkMenuShell *menu_shell, | |
38377 | guint keyval, | |
38378 | GtkWidget *target); | |
38379 | ||
38380 | gboolean gtk_menu_shell_get_take_focus (GtkMenuShell *menu_shell); | |
38381 | void gtk_menu_shell_set_take_focus (GtkMenuShell *menu_shell, | |
38382 | gboolean take_focus); | |
38383 | ||
38384 | ||
38385 | # 34 "/usr/include/gtk-2.0/gtk/gtkmenu.h" 2 | |
38386 | ||
38387 | ||
38388 | ||
38389 | ||
38390 | #define GTK_TYPE_MENU (gtk_menu_get_type ()) | |
38391 | #define GTK_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU, GtkMenu)) | |
38392 | #define GTK_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU, GtkMenuClass)) | |
38393 | #define GTK_IS_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU)) | |
38394 | #define GTK_IS_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU)) | |
38395 | #define GTK_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU, GtkMenuClass)) | |
38396 | ||
38397 | ||
38398 | typedef struct _GtkMenu GtkMenu; | |
38399 | typedef struct _GtkMenuClass GtkMenuClass; | |
38400 | ||
38401 | typedef void (*GtkMenuPositionFunc) (GtkMenu *menu, | |
38402 | gint *x, | |
38403 | gint *y, | |
38404 | gboolean *push_in, | |
38405 | gpointer user_data); | |
38406 | typedef void (*GtkMenuDetachFunc) (GtkWidget *attach_widget, | |
38407 | GtkMenu *menu); | |
38408 | ||
38409 | struct _GtkMenu | |
38410 | { | |
38411 | GtkMenuShell menu_shell; | |
38412 | ||
38413 | GtkWidget *parent_menu_item; | |
38414 | GtkWidget *old_active_menu_item; | |
38415 | ||
38416 | GtkAccelGroup *accel_group; | |
38417 | gchar *accel_path; | |
38418 | GtkMenuPositionFunc position_func; | |
38419 | gpointer position_func_data; | |
38420 | ||
38421 | guint toggle_size; | |
38422 | ||
38423 | ||
38424 | ||
38425 | ||
38426 | GtkWidget *toplevel; | |
38427 | ||
38428 | GtkWidget *tearoff_window; | |
38429 | GtkWidget *tearoff_hbox; | |
38430 | GtkWidget *tearoff_scrollbar; | |
38431 | GtkAdjustment *tearoff_adjustment; | |
38432 | ||
38433 | GdkWindow *view_window; | |
38434 | GdkWindow *bin_window; | |
38435 | ||
38436 | gint scroll_offset; | |
38437 | gint saved_scroll_offset; | |
38438 | gint scroll_step; | |
38439 | guint timeout_id; | |
38440 | ||
38441 | ||
38442 | ||
38443 | ||
38444 | GdkRegion *navigation_region; | |
38445 | guint navigation_timeout; | |
38446 | ||
38447 | guint needs_destruction_ref_count : 1; | |
38448 | guint torn_off : 1; | |
38449 | ||
38450 | ||
38451 | ||
38452 | guint tearoff_active : 1; | |
38453 | ||
38454 | guint scroll_fast : 1; | |
38455 | ||
38456 | guint upper_arrow_visible : 1; | |
38457 | guint lower_arrow_visible : 1; | |
38458 | guint upper_arrow_prelight : 1; | |
38459 | guint lower_arrow_prelight : 1; | |
38460 | }; | |
38461 | ||
38462 | struct _GtkMenuClass | |
38463 | { | |
38464 | GtkMenuShellClass parent_class; | |
38465 | ||
38466 | ||
38467 | void (*_gtk_reserved1) (void); | |
38468 | void (*_gtk_reserved2) (void); | |
38469 | void (*_gtk_reserved3) (void); | |
38470 | void (*_gtk_reserved4) (void); | |
38471 | }; | |
38472 | ||
38473 | ||
38474 | GType gtk_menu_get_type (void) __attribute__((__const__)); | |
38475 | GtkWidget* gtk_menu_new (void); | |
38476 | ||
38477 | ||
38478 | void gtk_menu_popup (GtkMenu *menu, | |
38479 | GtkWidget *parent_menu_shell, | |
38480 | GtkWidget *parent_menu_item, | |
38481 | GtkMenuPositionFunc func, | |
38482 | gpointer data, | |
38483 | guint button, | |
38484 | guint32 activate_time); | |
38485 | ||
38486 | ||
38487 | ||
38488 | ||
38489 | void gtk_menu_reposition (GtkMenu *menu); | |
38490 | ||
38491 | void gtk_menu_popdown (GtkMenu *menu); | |
38492 | ||
38493 | ||
38494 | ||
38495 | ||
38496 | GtkWidget* gtk_menu_get_active (GtkMenu *menu); | |
38497 | void gtk_menu_set_active (GtkMenu *menu, | |
38498 | guint index_); | |
38499 | ||
38500 | ||
38501 | ||
38502 | ||
38503 | void gtk_menu_set_accel_group (GtkMenu *menu, | |
38504 | GtkAccelGroup *accel_group); | |
38505 | GtkAccelGroup* gtk_menu_get_accel_group (GtkMenu *menu); | |
38506 | void gtk_menu_set_accel_path (GtkMenu *menu, | |
38507 | const gchar *accel_path); | |
38508 | ||
38509 | ||
38510 | ||
38511 | ||
38512 | ||
38513 | void gtk_menu_attach_to_widget (GtkMenu *menu, | |
38514 | GtkWidget *attach_widget, | |
38515 | GtkMenuDetachFunc detacher); | |
38516 | void gtk_menu_detach (GtkMenu *menu); | |
38517 | ||
38518 | ||
38519 | ||
38520 | ||
38521 | ||
38522 | GtkWidget* gtk_menu_get_attach_widget (GtkMenu *menu); | |
38523 | ||
38524 | void gtk_menu_set_tearoff_state (GtkMenu *menu, | |
38525 | gboolean torn_off); | |
38526 | gboolean gtk_menu_get_tearoff_state (GtkMenu *menu); | |
38527 | ||
38528 | ||
38529 | ||
38530 | ||
38531 | void gtk_menu_set_title (GtkMenu *menu, | |
38532 | const gchar *title); | |
38533 | const gchar *gtk_menu_get_title (GtkMenu *menu); | |
38534 | ||
38535 | void gtk_menu_reorder_child (GtkMenu *menu, | |
38536 | GtkWidget *child, | |
38537 | gint position); | |
38538 | ||
38539 | void gtk_menu_set_screen (GtkMenu *menu, | |
38540 | GdkScreen *screen); | |
38541 | ||
38542 | void gtk_menu_attach (GtkMenu *menu, | |
38543 | GtkWidget *child, | |
38544 | guint left_attach, | |
38545 | guint right_attach, | |
38546 | guint top_attach, | |
38547 | guint bottom_attach); | |
38548 | ||
38549 | void gtk_menu_set_monitor (GtkMenu *menu, | |
38550 | gint monitor_num); | |
38551 | GList* gtk_menu_get_for_attach_widget (GtkWidget *widget); | |
38552 | ||
38553 | ||
38554 | #define gtk_menu_append(menu,child) gtk_menu_shell_append ((GtkMenuShell *)(menu),(child)) | |
38555 | #define gtk_menu_prepend(menu,child) gtk_menu_shell_prepend ((GtkMenuShell *)(menu),(child)) | |
38556 | #define gtk_menu_insert(menu,child,pos) gtk_menu_shell_insert ((GtkMenuShell *)(menu),(child),(pos)) | |
38557 | ||
38558 | ||
38559 | ||
38560 | # 34 "/usr/include/gtk-2.0/gtk/gtklabel.h" 2 | |
38561 | ||
38562 | ||
38563 | ||
38564 | #define GTK_TYPE_LABEL (gtk_label_get_type ()) | |
38565 | #define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel)) | |
38566 | #define GTK_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LABEL, GtkLabelClass)) | |
38567 | #define GTK_IS_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LABEL)) | |
38568 | #define GTK_IS_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LABEL)) | |
38569 | #define GTK_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LABEL, GtkLabelClass)) | |
38570 | ||
38571 | ||
38572 | typedef struct _GtkLabel GtkLabel; | |
38573 | typedef struct _GtkLabelClass GtkLabelClass; | |
38574 | ||
38575 | typedef struct _GtkLabelSelectionInfo GtkLabelSelectionInfo; | |
38576 | ||
38577 | struct _GtkLabel | |
38578 | { | |
38579 | GtkMisc misc; | |
38580 | ||
38581 | ||
38582 | gchar *label; | |
38583 | guint jtype : 2; | |
38584 | guint wrap : 1; | |
38585 | guint use_underline : 1; | |
38586 | guint use_markup : 1; | |
38587 | guint ellipsize : 3; | |
38588 | ||
38589 | guint mnemonic_keyval; | |
38590 | ||
38591 | gchar *text; | |
38592 | PangoAttrList *attrs; | |
38593 | PangoAttrList *effective_attrs; | |
38594 | ||
38595 | PangoLayout *layout; | |
38596 | ||
38597 | GtkWidget *mnemonic_widget; | |
38598 | GtkWindow *mnemonic_window; | |
38599 | ||
38600 | GtkLabelSelectionInfo *select_info; | |
38601 | }; | |
38602 | ||
38603 | struct _GtkLabelClass | |
38604 | { | |
38605 | GtkMiscClass parent_class; | |
38606 | ||
38607 | void (* move_cursor) (GtkLabel *label, | |
38608 | GtkMovementStep step, | |
38609 | gint count, | |
38610 | gboolean extend_selection); | |
38611 | void (* copy_clipboard) (GtkLabel *label); | |
38612 | ||
38613 | ||
38614 | void (* populate_popup) (GtkLabel *label, | |
38615 | GtkMenu *menu); | |
38616 | ||
38617 | ||
38618 | void (*_gtk_reserved1) (void); | |
38619 | void (*_gtk_reserved2) (void); | |
38620 | void (*_gtk_reserved3) (void); | |
38621 | void (*_gtk_reserved4) (void); | |
38622 | }; | |
38623 | ||
38624 | GType gtk_label_get_type (void) __attribute__((__const__)); | |
38625 | GtkWidget* gtk_label_new (const gchar *str); | |
38626 | GtkWidget* gtk_label_new_with_mnemonic (const gchar *str); | |
38627 | void gtk_label_set_text (GtkLabel *label, | |
38628 | const gchar *str); | |
38629 | const gchar* gtk_label_get_text (GtkLabel *label); | |
38630 | void gtk_label_set_attributes (GtkLabel *label, | |
38631 | PangoAttrList *attrs); | |
38632 | PangoAttrList *gtk_label_get_attributes (GtkLabel *label); | |
38633 | void gtk_label_set_label (GtkLabel *label, | |
38634 | const gchar *str); | |
38635 | const gchar *gtk_label_get_label (GtkLabel *label); | |
38636 | void gtk_label_set_markup (GtkLabel *label, | |
38637 | const gchar *str); | |
38638 | void gtk_label_set_use_markup (GtkLabel *label, | |
38639 | gboolean setting); | |
38640 | gboolean gtk_label_get_use_markup (GtkLabel *label); | |
38641 | void gtk_label_set_use_underline (GtkLabel *label, | |
38642 | gboolean setting); | |
38643 | gboolean gtk_label_get_use_underline (GtkLabel *label); | |
38644 | ||
38645 | void gtk_label_set_markup_with_mnemonic (GtkLabel *label, | |
38646 | const gchar *str); | |
38647 | guint gtk_label_get_mnemonic_keyval (GtkLabel *label); | |
38648 | void gtk_label_set_mnemonic_widget (GtkLabel *label, | |
38649 | GtkWidget *widget); | |
38650 | GtkWidget *gtk_label_get_mnemonic_widget (GtkLabel *label); | |
38651 | void gtk_label_set_text_with_mnemonic (GtkLabel *label, | |
38652 | const gchar *str); | |
38653 | void gtk_label_set_justify (GtkLabel *label, | |
38654 | GtkJustification jtype); | |
38655 | GtkJustification gtk_label_get_justify (GtkLabel *label); | |
38656 | void gtk_label_set_ellipsize (GtkLabel *label, | |
38657 | PangoEllipsizeMode mode); | |
38658 | PangoEllipsizeMode gtk_label_get_ellipsize (GtkLabel *label); | |
38659 | void gtk_label_set_width_chars (GtkLabel *label, | |
38660 | gint n_chars); | |
38661 | gint gtk_label_get_width_chars (GtkLabel *label); | |
38662 | void gtk_label_set_max_width_chars (GtkLabel *label, | |
38663 | gint n_chars); | |
38664 | gint gtk_label_get_max_width_chars (GtkLabel *label); | |
38665 | void gtk_label_set_pattern (GtkLabel *label, | |
38666 | const gchar *pattern); | |
38667 | void gtk_label_set_line_wrap (GtkLabel *label, | |
38668 | gboolean wrap); | |
38669 | gboolean gtk_label_get_line_wrap (GtkLabel *label); | |
38670 | void gtk_label_set_selectable (GtkLabel *label, | |
38671 | gboolean setting); | |
38672 | gboolean gtk_label_get_selectable (GtkLabel *label); | |
38673 | void gtk_label_set_angle (GtkLabel *label, | |
38674 | gdouble angle); | |
38675 | gdouble gtk_label_get_angle (GtkLabel *label); | |
38676 | void gtk_label_select_region (GtkLabel *label, | |
38677 | gint start_offset, | |
38678 | gint end_offset); | |
38679 | gboolean gtk_label_get_selection_bounds (GtkLabel *label, | |
38680 | gint *start, | |
38681 | gint *end); | |
38682 | ||
38683 | PangoLayout *gtk_label_get_layout (GtkLabel *label); | |
38684 | void gtk_label_get_layout_offsets (GtkLabel *label, | |
38685 | gint *x, | |
38686 | gint *y); | |
38687 | ||
38688 | void gtk_label_set_single_line_mode (GtkLabel *label, | |
38689 | gboolean single_line_mode); | |
38690 | gboolean gtk_label_get_single_line_mode (GtkLabel *label); | |
38691 | ||
38692 | ||
38693 | ||
38694 | #define gtk_label_set gtk_label_set_text | |
38695 | void gtk_label_get (GtkLabel *label, | |
38696 | gchar **str); | |
38697 | ||
38698 | ||
38699 | ||
38700 | ||
38701 | ||
38702 | guint gtk_label_parse_uline (GtkLabel *label, | |
38703 | const gchar *string); | |
38704 | ||
38705 | ||
38706 | ||
38707 | ||
38708 | # 35 "/usr/include/gtk-2.0/gtk/gtkaccellabel.h" 2 | |
38709 | ||
38710 | ||
38711 | ||
38712 | ||
38713 | #define GTK_TYPE_ACCEL_LABEL (gtk_accel_label_get_type ()) | |
38714 | #define GTK_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabel)) | |
38715 | #define GTK_ACCEL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass)) | |
38716 | #define GTK_IS_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACCEL_LABEL)) | |
38717 | #define GTK_IS_ACCEL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_LABEL)) | |
38718 | #define GTK_ACCEL_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass)) | |
38719 | ||
38720 | ||
38721 | typedef struct _GtkAccelLabel GtkAccelLabel; | |
38722 | typedef struct _GtkAccelLabelClass GtkAccelLabelClass; | |
38723 | ||
38724 | struct _GtkAccelLabel | |
38725 | { | |
38726 | GtkLabel label; | |
38727 | ||
38728 | guint gtk_reserved; | |
38729 | guint accel_padding; | |
38730 | GtkWidget *accel_widget; | |
38731 | GClosure *accel_closure; | |
38732 | GtkAccelGroup *accel_group; | |
38733 | gchar *accel_string; | |
38734 | guint16 accel_string_width; | |
38735 | }; | |
38736 | ||
38737 | struct _GtkAccelLabelClass | |
38738 | { | |
38739 | GtkLabelClass parent_class; | |
38740 | ||
38741 | gchar *signal_quote1; | |
38742 | gchar *signal_quote2; | |
38743 | gchar *mod_name_shift; | |
38744 | gchar *mod_name_control; | |
38745 | gchar *mod_name_alt; | |
38746 | gchar *mod_separator; | |
38747 | gchar *accel_seperator; | |
38748 | guint latin1_to_char : 1; | |
38749 | ||
38750 | ||
38751 | void (*_gtk_reserved1) (void); | |
38752 | void (*_gtk_reserved2) (void); | |
38753 | void (*_gtk_reserved3) (void); | |
38754 | void (*_gtk_reserved4) (void); | |
38755 | }; | |
38756 | ||
38757 | ||
38758 | #define gtk_accel_label_accelerator_width gtk_accel_label_get_accel_width | |
38759 | ||
38760 | ||
38761 | GType gtk_accel_label_get_type (void) __attribute__((__const__)); | |
38762 | GtkWidget* gtk_accel_label_new (const gchar *string); | |
38763 | GtkWidget* gtk_accel_label_get_accel_widget (GtkAccelLabel *accel_label); | |
38764 | guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label); | |
38765 | void gtk_accel_label_set_accel_widget (GtkAccelLabel *accel_label, | |
38766 | GtkWidget *accel_widget); | |
38767 | void gtk_accel_label_set_accel_closure (GtkAccelLabel *accel_label, | |
38768 | GClosure *accel_closure); | |
38769 | gboolean gtk_accel_label_refetch (GtkAccelLabel *accel_label); | |
38770 | ||
38771 | ||
38772 | gchar * _gtk_accel_label_class_get_accelerator_label (GtkAccelLabelClass *klass, | |
38773 | guint accelerator_key, | |
38774 | GdkModifierType accelerator_mods); | |
38775 | ||
38776 | ||
38777 | # 35 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
38778 | # 1 "/usr/include/gtk-2.0/gtk/gtkaccelmap.h" 1 | |
38779 | # 20 "/usr/include/gtk-2.0/gtk/gtkaccelmap.h" | |
38780 | #define __GTK_ACCEL_MAP_H__ | |
38781 | ||
38782 | ||
38783 | ||
38784 | ||
38785 | ||
38786 | ||
38787 | ||
38788 | #define GTK_TYPE_ACCEL_MAP (gtk_accel_map_get_type ()) | |
38789 | #define GTK_ACCEL_MAP(accel_map) (G_TYPE_CHECK_INSTANCE_CAST ((accel_map), GTK_TYPE_ACCEL_MAP, GtkAccelMap)) | |
38790 | #define GTK_ACCEL_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_MAP, GtkAccelMapClass)) | |
38791 | #define GTK_IS_ACCEL_MAP(accel_map) (G_TYPE_CHECK_INSTANCE_TYPE ((accel_map), GTK_TYPE_ACCEL_MAP)) | |
38792 | #define GTK_IS_ACCEL_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_MAP)) | |
38793 | #define GTK_ACCEL_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_MAP, GtkAccelMapClass)) | |
38794 | ||
38795 | typedef struct _GtkAccelMap GtkAccelMap; | |
38796 | typedef struct _GtkAccelMapClass GtkAccelMapClass; | |
38797 | ||
38798 | ||
38799 | typedef void (*GtkAccelMapForeach) (gpointer data, | |
38800 | const gchar *accel_path, | |
38801 | guint accel_key, | |
38802 | GdkModifierType accel_mods, | |
38803 | gboolean changed); | |
38804 | # 54 "/usr/include/gtk-2.0/gtk/gtkaccelmap.h" | |
38805 | void gtk_accel_map_add_entry (const gchar *accel_path, | |
38806 | guint accel_key, | |
38807 | GdkModifierType accel_mods); | |
38808 | gboolean gtk_accel_map_lookup_entry (const gchar *accel_path, | |
38809 | GtkAccelKey *key); | |
38810 | gboolean gtk_accel_map_change_entry (const gchar *accel_path, | |
38811 | guint accel_key, | |
38812 | GdkModifierType accel_mods, | |
38813 | gboolean replace); | |
38814 | void gtk_accel_map_load (const gchar *file_name); | |
38815 | void gtk_accel_map_save (const gchar *file_name); | |
38816 | void gtk_accel_map_foreach (gpointer data, | |
38817 | GtkAccelMapForeach foreach_func); | |
38818 | void gtk_accel_map_load_fd (gint fd); | |
38819 | void gtk_accel_map_load_scanner (GScanner *scanner); | |
38820 | void gtk_accel_map_save_fd (gint fd); | |
38821 | ||
38822 | void gtk_accel_map_lock_path (const gchar *accel_path); | |
38823 | void gtk_accel_map_unlock_path (const gchar *accel_path); | |
38824 | ||
38825 | ||
38826 | void gtk_accel_map_add_filter (const gchar *filter_pattern); | |
38827 | void gtk_accel_map_foreach_unfiltered (gpointer data, | |
38828 | GtkAccelMapForeach foreach_func); | |
38829 | ||
38830 | ||
38831 | GType gtk_accel_map_get_type (void) __attribute__((__const__)); | |
38832 | GtkAccelMap *gtk_accel_map_get (void); | |
38833 | ||
38834 | ||
38835 | ||
38836 | void _gtk_accel_map_init (void); | |
38837 | ||
38838 | void _gtk_accel_map_add_group (const gchar *accel_path, | |
38839 | GtkAccelGroup *accel_group); | |
38840 | void _gtk_accel_map_remove_group (const gchar *accel_path, | |
38841 | GtkAccelGroup *accel_group); | |
38842 | gboolean _gtk_accel_path_is_valid (const gchar *accel_path); | |
38843 | ||
38844 | ||
38845 | ||
38846 | # 36 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
38847 | # 1 "/usr/include/gtk-2.0/gtk/gtkaccessible.h" 1 | |
38848 | # 21 "/usr/include/gtk-2.0/gtk/gtkaccessible.h" | |
38849 | #define __GTK_ACCESSIBLE_H__ | |
38850 | ||
38851 | # 1 "/usr/include/atk-1.0/atk/atk.h" 1 | |
38852 | # 21 "/usr/include/atk-1.0/atk/atk.h" | |
38853 | #define __ATK_H__ | |
38854 | ||
38855 | ||
38856 | # 1 "/usr/include/atk-1.0/atk/atkaction.h" 1 | |
38857 | # 21 "/usr/include/atk-1.0/atk/atkaction.h" | |
38858 | #define __ATK_ACTION_H__ | |
38859 | # 38 "/usr/include/atk-1.0/atk/atkaction.h" | |
38860 | #define ATK_TYPE_ACTION (atk_action_get_type ()) | |
38861 | #define ATK_IS_ACTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_ACTION) | |
38862 | #define ATK_ACTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_ACTION, AtkAction) | |
38863 | #define ATK_ACTION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_ACTION, AtkActionIface)) | |
38864 | ||
38865 | ||
38866 | #define _TYPEDEF_ATK_ACTION_ | |
38867 | typedef struct _AtkAction AtkAction; | |
38868 | ||
38869 | typedef struct _AtkActionIface AtkActionIface; | |
38870 | ||
38871 | struct _AtkActionIface | |
38872 | { | |
38873 | GTypeInterface parent; | |
38874 | ||
38875 | gboolean (*do_action) (AtkAction *action, | |
38876 | gint i); | |
38877 | gint (*get_n_actions) (AtkAction *action); | |
38878 | const gchar* (*get_description) (AtkAction *action, | |
38879 | gint i); | |
38880 | const gchar* (*get_name) (AtkAction *action, | |
38881 | gint i); | |
38882 | const gchar* (*get_keybinding) (AtkAction *action, | |
38883 | gint i); | |
38884 | gboolean (*set_description) (AtkAction *action, | |
38885 | gint i, | |
38886 | const gchar *desc); | |
38887 | const gchar* (*get_localized_name)(AtkAction *action, | |
38888 | gint i); | |
38889 | AtkFunction pad2; | |
38890 | }; | |
38891 | ||
38892 | GType atk_action_get_type (void); | |
38893 | # 83 "/usr/include/atk-1.0/atk/atkaction.h" | |
38894 | gboolean atk_action_do_action (AtkAction *action, | |
38895 | gint i); | |
38896 | gint atk_action_get_n_actions (AtkAction *action); | |
38897 | const gchar* atk_action_get_description (AtkAction *action, | |
38898 | gint i); | |
38899 | const gchar* atk_action_get_name (AtkAction *action, | |
38900 | gint i); | |
38901 | const gchar* atk_action_get_keybinding (AtkAction *action, | |
38902 | gint i); | |
38903 | gboolean atk_action_set_description (AtkAction *action, | |
38904 | gint i, | |
38905 | const gchar *desc); | |
38906 | ||
38907 | ||
38908 | ||
38909 | const gchar* atk_action_get_localized_name (AtkAction *action, | |
38910 | gint i); | |
38911 | # 25 "/usr/include/atk-1.0/atk/atk.h" 2 | |
38912 | # 1 "/usr/include/atk-1.0/atk/atkcomponent.h" 1 | |
38913 | # 21 "/usr/include/atk-1.0/atk/atkcomponent.h" | |
38914 | #define __ATK_COMPONENT_H__ | |
38915 | ||
38916 | ||
38917 | # 1 "/usr/include/atk-1.0/atk/atkutil.h" 1 | |
38918 | # 21 "/usr/include/atk-1.0/atk/atkutil.h" | |
38919 | #define __ATK_UTIL_H__ | |
38920 | ||
38921 | ||
38922 | ||
38923 | ||
38924 | ||
38925 | ||
38926 | ||
38927 | #define ATK_TYPE_UTIL (atk_util_get_type ()) | |
38928 | #define ATK_IS_UTIL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_UTIL) | |
38929 | #define ATK_UTIL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_UTIL, AtkUtil) | |
38930 | #define ATK_UTIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_UTIL, AtkUtilClass)) | |
38931 | #define ATK_IS_UTIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_UTIL)) | |
38932 | #define ATK_UTIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_UTIL, AtkUtilClass)) | |
38933 | ||
38934 | ||
38935 | ||
38936 | #define _TYPEDEF_ATK_UTIL_ | |
38937 | typedef struct _AtkUtil AtkUtil; | |
38938 | typedef struct _AtkUtilClass AtkUtilClass; | |
38939 | typedef struct _AtkKeyEventStruct AtkKeyEventStruct; | |
38940 | # 57 "/usr/include/atk-1.0/atk/atkutil.h" | |
38941 | typedef void (*AtkEventListener) (AtkObject* obj); | |
38942 | # 67 "/usr/include/atk-1.0/atk/atkutil.h" | |
38943 | typedef void (*AtkEventListenerInit) (void); | |
38944 | # 84 "/usr/include/atk-1.0/atk/atkutil.h" | |
38945 | typedef gint (*AtkKeySnoopFunc) (AtkKeyEventStruct *event, | |
38946 | gpointer func_data); | |
38947 | # 108 "/usr/include/atk-1.0/atk/atkutil.h" | |
38948 | struct _AtkKeyEventStruct { | |
38949 | gint type; | |
38950 | guint state; | |
38951 | guint keyval; | |
38952 | gint length; | |
38953 | gchar *string; | |
38954 | guint16 keycode; | |
38955 | guint32 timestamp; | |
38956 | }; | |
38957 | # 126 "/usr/include/atk-1.0/atk/atkutil.h" | |
38958 | typedef enum | |
38959 | { | |
38960 | ATK_KEY_EVENT_PRESS, | |
38961 | ATK_KEY_EVENT_RELEASE, | |
38962 | ATK_KEY_EVENT_LAST_DEFINED | |
38963 | } AtkKeyEventType; | |
38964 | ||
38965 | struct _AtkUtil | |
38966 | { | |
38967 | GObject parent; | |
38968 | }; | |
38969 | ||
38970 | struct _AtkUtilClass | |
38971 | { | |
38972 | GObjectClass parent; | |
38973 | guint (* add_global_event_listener) (GSignalEmissionHook listener, | |
38974 | const gchar *event_type); | |
38975 | void (* remove_global_event_listener) (guint listener_id); | |
38976 | guint (* add_key_event_listener) (AtkKeySnoopFunc listener, | |
38977 | gpointer data); | |
38978 | void (* remove_key_event_listener) (guint listener_id); | |
38979 | AtkObject* (* get_root) (void); | |
38980 | const gchar* (* get_toolkit_name) (void); | |
38981 | const gchar* (* get_toolkit_version) (void); | |
38982 | }; | |
38983 | GType atk_util_get_type (void); | |
38984 | # 162 "/usr/include/atk-1.0/atk/atkutil.h" | |
38985 | typedef enum { | |
38986 | ATK_XY_SCREEN, | |
38987 | ATK_XY_WINDOW | |
38988 | }AtkCoordType; | |
38989 | ||
38990 | ||
38991 | ||
38992 | ||
38993 | ||
38994 | guint atk_add_focus_tracker (AtkEventListener focus_tracker); | |
38995 | ||
38996 | ||
38997 | ||
38998 | ||
38999 | ||
39000 | void atk_remove_focus_tracker (guint tracker_id); | |
39001 | # 189 "/usr/include/atk-1.0/atk/atkutil.h" | |
39002 | void atk_focus_tracker_init (AtkEventListenerInit init); | |
39003 | ||
39004 | ||
39005 | ||
39006 | ||
39007 | ||
39008 | void atk_focus_tracker_notify (AtkObject *object); | |
39009 | ||
39010 | ||
39011 | ||
39012 | ||
39013 | ||
39014 | guint atk_add_global_event_listener (GSignalEmissionHook listener, | |
39015 | const gchar *event_type); | |
39016 | ||
39017 | ||
39018 | ||
39019 | ||
39020 | void atk_remove_global_event_listener (guint listener_id); | |
39021 | ||
39022 | ||
39023 | ||
39024 | ||
39025 | ||
39026 | guint atk_add_key_event_listener (AtkKeySnoopFunc listener, gpointer data); | |
39027 | ||
39028 | ||
39029 | ||
39030 | ||
39031 | void atk_remove_key_event_listener (guint listener_id); | |
39032 | ||
39033 | ||
39034 | ||
39035 | ||
39036 | AtkObject* atk_get_root(void); | |
39037 | ||
39038 | AtkObject* atk_get_focus_object (void); | |
39039 | ||
39040 | ||
39041 | ||
39042 | ||
39043 | const gchar *atk_get_toolkit_name (void); | |
39044 | ||
39045 | ||
39046 | ||
39047 | ||
39048 | const gchar *atk_get_toolkit_version (void); | |
39049 | # 25 "/usr/include/atk-1.0/atk/atkcomponent.h" 2 | |
39050 | # 37 "/usr/include/atk-1.0/atk/atkcomponent.h" | |
39051 | #define ATK_TYPE_COMPONENT (atk_component_get_type ()) | |
39052 | #define ATK_IS_COMPONENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_COMPONENT) | |
39053 | #define ATK_COMPONENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_COMPONENT, AtkComponent) | |
39054 | #define ATK_COMPONENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_COMPONENT, AtkComponentIface)) | |
39055 | ||
39056 | ||
39057 | #define _TYPEDEF_ATK_COMPONENT_ | |
39058 | typedef struct _AtkComponent AtkComponent; | |
39059 | ||
39060 | typedef struct _AtkComponentIface AtkComponentIface; | |
39061 | ||
39062 | typedef void (*AtkFocusHandler) (AtkObject*, gboolean); | |
39063 | ||
39064 | typedef struct _AtkRectangle AtkRectangle; | |
39065 | ||
39066 | struct _AtkRectangle | |
39067 | { | |
39068 | gint x; | |
39069 | gint y; | |
39070 | gint width; | |
39071 | gint height; | |
39072 | }; | |
39073 | ||
39074 | GType atk_rectangle_get_type (void); | |
39075 | ||
39076 | #define ATK_TYPE_RECTANGLE (atk_rectangle_get_type ()) | |
39077 | struct _AtkComponentIface | |
39078 | { | |
39079 | GTypeInterface parent; | |
39080 | ||
39081 | guint (* add_focus_handler) (AtkComponent *component, | |
39082 | AtkFocusHandler handler); | |
39083 | ||
39084 | gboolean (* contains) (AtkComponent *component, | |
39085 | gint x, | |
39086 | gint y, | |
39087 | AtkCoordType coord_type); | |
39088 | ||
39089 | AtkObject* (* ref_accessible_at_point) (AtkComponent *component, | |
39090 | gint x, | |
39091 | gint y, | |
39092 | AtkCoordType coord_type); | |
39093 | void (* get_extents) (AtkComponent *component, | |
39094 | gint *x, | |
39095 | gint *y, | |
39096 | gint *width, | |
39097 | gint *height, | |
39098 | AtkCoordType coord_type); | |
39099 | void (* get_position) (AtkComponent *component, | |
39100 | gint *x, | |
39101 | gint *y, | |
39102 | AtkCoordType coord_type); | |
39103 | void (* get_size) (AtkComponent *component, | |
39104 | gint *width, | |
39105 | gint *height); | |
39106 | gboolean (* grab_focus) (AtkComponent *component); | |
39107 | void (* remove_focus_handler) (AtkComponent *component, | |
39108 | guint handler_id); | |
39109 | gboolean (* set_extents) (AtkComponent *component, | |
39110 | gint x, | |
39111 | gint y, | |
39112 | gint width, | |
39113 | gint height, | |
39114 | AtkCoordType coord_type); | |
39115 | gboolean (* set_position) (AtkComponent *component, | |
39116 | gint x, | |
39117 | gint y, | |
39118 | AtkCoordType coord_type); | |
39119 | gboolean (* set_size) (AtkComponent *component, | |
39120 | gint width, | |
39121 | gint height); | |
39122 | ||
39123 | AtkLayer (* get_layer) (AtkComponent *component); | |
39124 | gint (* get_mdi_zorder) (AtkComponent *component); | |
39125 | ||
39126 | ||
39127 | ||
39128 | ||
39129 | void (* bounds_changed) (AtkComponent *component, | |
39130 | AtkRectangle *bounds); | |
39131 | gdouble (* get_alpha) (AtkComponent *component); | |
39132 | }; | |
39133 | ||
39134 | GType atk_component_get_type (void); | |
39135 | ||
39136 | ||
39137 | ||
39138 | guint atk_component_add_focus_handler (AtkComponent *component, | |
39139 | AtkFocusHandler handler); | |
39140 | gboolean atk_component_contains (AtkComponent *component, | |
39141 | gint x, | |
39142 | gint y, | |
39143 | AtkCoordType coord_type); | |
39144 | AtkObject* atk_component_ref_accessible_at_point(AtkComponent *component, | |
39145 | gint x, | |
39146 | gint y, | |
39147 | AtkCoordType coord_type); | |
39148 | void atk_component_get_extents (AtkComponent *component, | |
39149 | gint *x, | |
39150 | gint *y, | |
39151 | gint *width, | |
39152 | gint *height, | |
39153 | AtkCoordType coord_type); | |
39154 | void atk_component_get_position (AtkComponent *component, | |
39155 | gint *x, | |
39156 | gint *y, | |
39157 | AtkCoordType coord_type); | |
39158 | void atk_component_get_size (AtkComponent *component, | |
39159 | gint *width, | |
39160 | gint *height); | |
39161 | AtkLayer atk_component_get_layer (AtkComponent *component); | |
39162 | gint atk_component_get_mdi_zorder (AtkComponent *component); | |
39163 | gboolean atk_component_grab_focus (AtkComponent *component); | |
39164 | void atk_component_remove_focus_handler (AtkComponent *component, | |
39165 | guint handler_id); | |
39166 | gboolean atk_component_set_extents (AtkComponent *component, | |
39167 | gint x, | |
39168 | gint y, | |
39169 | gint width, | |
39170 | gint height, | |
39171 | AtkCoordType coord_type); | |
39172 | gboolean atk_component_set_position (AtkComponent *component, | |
39173 | gint x, | |
39174 | gint y, | |
39175 | AtkCoordType coord_type); | |
39176 | gboolean atk_component_set_size (AtkComponent *component, | |
39177 | gint width, | |
39178 | gint height); | |
39179 | gdouble atk_component_get_alpha (AtkComponent *component); | |
39180 | # 26 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39181 | # 1 "/usr/include/atk-1.0/atk/atkdocument.h" 1 | |
39182 | # 21 "/usr/include/atk-1.0/atk/atkdocument.h" | |
39183 | #define __ATK_DOCUMENT_H__ | |
39184 | # 36 "/usr/include/atk-1.0/atk/atkdocument.h" | |
39185 | #define ATK_TYPE_DOCUMENT (atk_document_get_type ()) | |
39186 | #define ATK_IS_DOCUMENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_DOCUMENT) | |
39187 | #define ATK_DOCUMENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_DOCUMENT, AtkDocument) | |
39188 | #define ATK_DOCUMENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_DOCUMENT, AtkDocumentIface)) | |
39189 | ||
39190 | ||
39191 | #define _TYPEDEF_ATK_DOCUMENT_ | |
39192 | typedef struct _AtkDocument AtkDocument; | |
39193 | ||
39194 | typedef struct _AtkDocumentIface AtkDocumentIface; | |
39195 | ||
39196 | struct _AtkDocumentIface | |
39197 | { | |
39198 | GTypeInterface parent; | |
39199 | const gchar* ( *get_document_type) (AtkDocument *document); | |
39200 | gpointer ( *get_document) (AtkDocument *document); | |
39201 | ||
39202 | const gchar* ( *get_document_locale) (AtkDocument *document); | |
39203 | AtkAttributeSet * ( *get_document_attributes) (AtkDocument *document); | |
39204 | const gchar* ( *get_document_attribute_value) (AtkDocument *document, | |
39205 | const gchar *attribute_name); | |
39206 | gboolean ( *set_document_attribute) (AtkDocument *document, | |
39207 | const gchar *attribute_name, | |
39208 | const gchar *attribute_value); | |
39209 | AtkFunction pad1; | |
39210 | AtkFunction pad2; | |
39211 | AtkFunction pad3; | |
39212 | AtkFunction pad4; | |
39213 | }; | |
39214 | ||
39215 | GType atk_document_get_type (void); | |
39216 | ||
39217 | const gchar* atk_document_get_document_type (AtkDocument *document); | |
39218 | gpointer atk_document_get_document (AtkDocument *document); | |
39219 | const gchar* atk_document_get_locale (AtkDocument *document); | |
39220 | AtkAttributeSet* atk_document_get_attributes (AtkDocument *document); | |
39221 | const gchar* atk_document_get_attribute_value (AtkDocument *document, | |
39222 | const gchar *attribute_name); | |
39223 | gboolean atk_document_set_attribute_value (AtkDocument *document, | |
39224 | const gchar *attribute_name, | |
39225 | const gchar *attribute_value); | |
39226 | # 27 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39227 | # 1 "/usr/include/atk-1.0/atk/atkeditabletext.h" 1 | |
39228 | # 21 "/usr/include/atk-1.0/atk/atkeditabletext.h" | |
39229 | #define __ATK_EDITABLE_TEXT_H__ | |
39230 | ||
39231 | ||
39232 | # 1 "/usr/include/atk-1.0/atk/atktext.h" 1 | |
39233 | # 22 "/usr/include/atk-1.0/atk/atktext.h" | |
39234 | #define __ATK_TEXT_H__ | |
39235 | # 66 "/usr/include/atk-1.0/atk/atktext.h" | |
39236 | typedef enum | |
39237 | { | |
39238 | ATK_TEXT_ATTR_INVALID = 0, | |
39239 | ATK_TEXT_ATTR_LEFT_MARGIN, | |
39240 | ATK_TEXT_ATTR_RIGHT_MARGIN, | |
39241 | ATK_TEXT_ATTR_INDENT, | |
39242 | ATK_TEXT_ATTR_INVISIBLE, | |
39243 | ATK_TEXT_ATTR_EDITABLE, | |
39244 | ATK_TEXT_ATTR_PIXELS_ABOVE_LINES, | |
39245 | ATK_TEXT_ATTR_PIXELS_BELOW_LINES, | |
39246 | ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP, | |
39247 | ATK_TEXT_ATTR_BG_FULL_HEIGHT, | |
39248 | ATK_TEXT_ATTR_RISE, | |
39249 | ATK_TEXT_ATTR_UNDERLINE, | |
39250 | ATK_TEXT_ATTR_STRIKETHROUGH, | |
39251 | ATK_TEXT_ATTR_SIZE, | |
39252 | ATK_TEXT_ATTR_SCALE, | |
39253 | ATK_TEXT_ATTR_WEIGHT, | |
39254 | ATK_TEXT_ATTR_LANGUAGE, | |
39255 | ATK_TEXT_ATTR_FAMILY_NAME, | |
39256 | ATK_TEXT_ATTR_BG_COLOR, | |
39257 | ATK_TEXT_ATTR_FG_COLOR, | |
39258 | ATK_TEXT_ATTR_BG_STIPPLE, | |
39259 | ATK_TEXT_ATTR_FG_STIPPLE, | |
39260 | ATK_TEXT_ATTR_WRAP_MODE, | |
39261 | ATK_TEXT_ATTR_DIRECTION, | |
39262 | ATK_TEXT_ATTR_JUSTIFICATION, | |
39263 | ATK_TEXT_ATTR_STRETCH, | |
39264 | ATK_TEXT_ATTR_VARIANT, | |
39265 | ATK_TEXT_ATTR_STYLE, | |
39266 | ATK_TEXT_ATTR_LAST_DEFINED | |
39267 | } AtkTextAttribute; | |
39268 | ||
39269 | AtkTextAttribute atk_text_attribute_register (const gchar *name); | |
39270 | ||
39271 | ||
39272 | #define ATK_TYPE_TEXT (atk_text_get_type ()) | |
39273 | #define ATK_IS_TEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TEXT) | |
39274 | #define ATK_TEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TEXT, AtkText) | |
39275 | #define ATK_TEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TEXT, AtkTextIface)) | |
39276 | ||
39277 | ||
39278 | #define _TYPEDEF_ATK_TEXT_ | |
39279 | typedef struct _AtkText AtkText; | |
39280 | ||
39281 | typedef struct _AtkTextIface AtkTextIface; | |
39282 | # 129 "/usr/include/atk-1.0/atk/atktext.h" | |
39283 | typedef enum { | |
39284 | ATK_TEXT_BOUNDARY_CHAR, | |
39285 | ATK_TEXT_BOUNDARY_WORD_START, | |
39286 | ATK_TEXT_BOUNDARY_WORD_END, | |
39287 | ATK_TEXT_BOUNDARY_SENTENCE_START, | |
39288 | ATK_TEXT_BOUNDARY_SENTENCE_END, | |
39289 | ATK_TEXT_BOUNDARY_LINE_START, | |
39290 | ATK_TEXT_BOUNDARY_LINE_END | |
39291 | } AtkTextBoundary; | |
39292 | # 149 "/usr/include/atk-1.0/atk/atktext.h" | |
39293 | typedef struct _AtkTextRectangle AtkTextRectangle; | |
39294 | ||
39295 | struct _AtkTextRectangle { | |
39296 | gint x; | |
39297 | gint y; | |
39298 | gint width; | |
39299 | gint height; | |
39300 | }; | |
39301 | # 167 "/usr/include/atk-1.0/atk/atktext.h" | |
39302 | typedef struct _AtkTextRange AtkTextRange; | |
39303 | ||
39304 | struct _AtkTextRange { | |
39305 | AtkTextRectangle bounds; | |
39306 | gint start_offset; | |
39307 | gint end_offset; | |
39308 | gchar* content; | |
39309 | }; | |
39310 | # 185 "/usr/include/atk-1.0/atk/atktext.h" | |
39311 | typedef enum { | |
39312 | ATK_TEXT_CLIP_NONE, | |
39313 | ATK_TEXT_CLIP_MIN, | |
39314 | ATK_TEXT_CLIP_MAX, | |
39315 | ATK_TEXT_CLIP_BOTH | |
39316 | } AtkTextClipType; | |
39317 | ||
39318 | struct _AtkTextIface | |
39319 | { | |
39320 | GTypeInterface parent; | |
39321 | ||
39322 | gchar* (* get_text) (AtkText *text, | |
39323 | gint start_offset, | |
39324 | gint end_offset); | |
39325 | gchar* (* get_text_after_offset) (AtkText *text, | |
39326 | gint offset, | |
39327 | AtkTextBoundary boundary_type, | |
39328 | gint *start_offset, | |
39329 | gint *end_offset); | |
39330 | gchar* (* get_text_at_offset) (AtkText *text, | |
39331 | gint offset, | |
39332 | AtkTextBoundary boundary_type, | |
39333 | gint *start_offset, | |
39334 | gint *end_offset); | |
39335 | gunichar (* get_character_at_offset) (AtkText *text, | |
39336 | gint offset); | |
39337 | gchar* (* get_text_before_offset) (AtkText *text, | |
39338 | gint offset, | |
39339 | AtkTextBoundary boundary_type, | |
39340 | gint *start_offset, | |
39341 | gint *end_offset); | |
39342 | gint (* get_caret_offset) (AtkText *text); | |
39343 | AtkAttributeSet* (* get_run_attributes) (AtkText *text, | |
39344 | gint offset, | |
39345 | gint *start_offset, | |
39346 | gint *end_offset); | |
39347 | AtkAttributeSet* (* get_default_attributes) (AtkText *text); | |
39348 | void (* get_character_extents) (AtkText *text, | |
39349 | gint offset, | |
39350 | gint *x, | |
39351 | gint *y, | |
39352 | gint *width, | |
39353 | gint *height, | |
39354 | AtkCoordType coords); | |
39355 | gint (* get_character_count) (AtkText *text); | |
39356 | gint (* get_offset_at_point) (AtkText *text, | |
39357 | gint x, | |
39358 | gint y, | |
39359 | AtkCoordType coords); | |
39360 | gint (* get_n_selections) (AtkText *text); | |
39361 | gchar* (* get_selection) (AtkText *text, | |
39362 | gint selection_num, | |
39363 | gint *start_offset, | |
39364 | gint *end_offset); | |
39365 | gboolean (* add_selection) (AtkText *text, | |
39366 | gint start_offset, | |
39367 | gint end_offset); | |
39368 | gboolean (* remove_selection) (AtkText *text, | |
39369 | gint selection_num); | |
39370 | gboolean (* set_selection) (AtkText *text, | |
39371 | gint selection_num, | |
39372 | gint start_offset, | |
39373 | gint end_offset); | |
39374 | gboolean (* set_caret_offset) (AtkText *text, | |
39375 | gint offset); | |
39376 | ||
39377 | ||
39378 | ||
39379 | ||
39380 | void (* text_changed) (AtkText *text, | |
39381 | gint position, | |
39382 | gint length); | |
39383 | void (* text_caret_moved) (AtkText *text, | |
39384 | gint location); | |
39385 | void (* text_selection_changed) (AtkText *text); | |
39386 | ||
39387 | void (* text_attributes_changed) (AtkText *text); | |
39388 | ||
39389 | ||
39390 | void (* get_range_extents) (AtkText *text, | |
39391 | gint start_offset, | |
39392 | gint end_offset, | |
39393 | AtkCoordType coord_type, | |
39394 | AtkTextRectangle *rect); | |
39395 | ||
39396 | AtkTextRange** (* get_bounded_ranges) (AtkText *text, | |
39397 | AtkTextRectangle *rect, | |
39398 | AtkCoordType coord_type, | |
39399 | AtkTextClipType x_clip_type, | |
39400 | AtkTextClipType y_clip_type); | |
39401 | ||
39402 | ||
39403 | AtkFunction pad4; | |
39404 | }; | |
39405 | ||
39406 | GType atk_text_get_type (void); | |
39407 | # 290 "/usr/include/atk-1.0/atk/atktext.h" | |
39408 | gchar* atk_text_get_text (AtkText *text, | |
39409 | gint start_offset, | |
39410 | gint end_offset); | |
39411 | gunichar atk_text_get_character_at_offset (AtkText *text, | |
39412 | gint offset); | |
39413 | gchar* atk_text_get_text_after_offset (AtkText *text, | |
39414 | gint offset, | |
39415 | AtkTextBoundary boundary_type, | |
39416 | gint *start_offset, | |
39417 | gint *end_offset); | |
39418 | gchar* atk_text_get_text_at_offset (AtkText *text, | |
39419 | gint offset, | |
39420 | AtkTextBoundary boundary_type, | |
39421 | gint *start_offset, | |
39422 | gint *end_offset); | |
39423 | gchar* atk_text_get_text_before_offset (AtkText *text, | |
39424 | gint offset, | |
39425 | AtkTextBoundary boundary_type, | |
39426 | gint *start_offset, | |
39427 | gint *end_offset); | |
39428 | gint atk_text_get_caret_offset (AtkText *text); | |
39429 | void atk_text_get_character_extents (AtkText *text, | |
39430 | gint offset, | |
39431 | gint *x, | |
39432 | gint *y, | |
39433 | gint *width, | |
39434 | gint *height, | |
39435 | AtkCoordType coords); | |
39436 | AtkAttributeSet* atk_text_get_run_attributes (AtkText *text, | |
39437 | gint offset, | |
39438 | gint *start_offset, | |
39439 | gint *end_offset); | |
39440 | AtkAttributeSet* atk_text_get_default_attributes (AtkText *text); | |
39441 | gint atk_text_get_character_count (AtkText *text); | |
39442 | gint atk_text_get_offset_at_point (AtkText *text, | |
39443 | gint x, | |
39444 | gint y, | |
39445 | AtkCoordType coords); | |
39446 | gint atk_text_get_n_selections (AtkText *text); | |
39447 | gchar* atk_text_get_selection (AtkText *text, | |
39448 | gint selection_num, | |
39449 | gint *start_offset, | |
39450 | gint *end_offset); | |
39451 | gboolean atk_text_add_selection (AtkText *text, | |
39452 | gint start_offset, | |
39453 | gint end_offset); | |
39454 | gboolean atk_text_remove_selection (AtkText *text, | |
39455 | gint selection_num); | |
39456 | gboolean atk_text_set_selection (AtkText *text, | |
39457 | gint selection_num, | |
39458 | gint start_offset, | |
39459 | gint end_offset); | |
39460 | gboolean atk_text_set_caret_offset (AtkText *text, | |
39461 | gint offset); | |
39462 | void atk_text_get_range_extents (AtkText *text, | |
39463 | ||
39464 | gint start_offset, | |
39465 | gint end_offset, | |
39466 | AtkCoordType coord_type, | |
39467 | AtkTextRectangle *rect); | |
39468 | AtkTextRange** atk_text_get_bounded_ranges (AtkText *text, | |
39469 | AtkTextRectangle *rect, | |
39470 | AtkCoordType coord_type, | |
39471 | AtkTextClipType x_clip_type, | |
39472 | AtkTextClipType y_clip_type); | |
39473 | void atk_text_free_ranges (AtkTextRange **ranges); | |
39474 | void atk_attribute_set_free (AtkAttributeSet *attrib_set); | |
39475 | const gchar* atk_text_attribute_get_name (AtkTextAttribute attr); | |
39476 | AtkTextAttribute atk_text_attribute_for_name (const gchar *name); | |
39477 | const gchar* atk_text_attribute_get_value (AtkTextAttribute attr, | |
39478 | gint index_); | |
39479 | # 25 "/usr/include/atk-1.0/atk/atkeditabletext.h" 2 | |
39480 | # 35 "/usr/include/atk-1.0/atk/atkeditabletext.h" | |
39481 | #define ATK_TYPE_EDITABLE_TEXT (atk_editable_text_get_type ()) | |
39482 | #define ATK_IS_EDITABLE_TEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_EDITABLE_TEXT) | |
39483 | #define ATK_EDITABLE_TEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_EDITABLE_TEXT, AtkEditableText) | |
39484 | #define ATK_EDITABLE_TEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_EDITABLE_TEXT, AtkEditableTextIface)) | |
39485 | ||
39486 | ||
39487 | #define _TYPEDEF_ATK_EDITABLE_TEXT_ | |
39488 | typedef struct _AtkEditableText AtkEditableText; | |
39489 | ||
39490 | typedef struct _AtkEditableTextIface AtkEditableTextIface; | |
39491 | ||
39492 | struct _AtkEditableTextIface | |
39493 | { | |
39494 | GTypeInterface parent_interface; | |
39495 | ||
39496 | gboolean (* set_run_attributes) (AtkEditableText *text, | |
39497 | AtkAttributeSet *attrib_set, | |
39498 | gint start_offset, | |
39499 | gint end_offset); | |
39500 | void (* set_text_contents) (AtkEditableText *text, | |
39501 | const gchar *string); | |
39502 | void (* insert_text) (AtkEditableText *text, | |
39503 | const gchar *string, | |
39504 | gint length, | |
39505 | gint *position); | |
39506 | void (* copy_text) (AtkEditableText *text, | |
39507 | gint start_pos, | |
39508 | gint end_pos); | |
39509 | void (* cut_text) (AtkEditableText *text, | |
39510 | gint start_pos, | |
39511 | gint end_pos); | |
39512 | void (* delete_text) (AtkEditableText *text, | |
39513 | gint start_pos, | |
39514 | gint end_pos); | |
39515 | void (* paste_text) (AtkEditableText *text, | |
39516 | gint position); | |
39517 | ||
39518 | AtkFunction pad1; | |
39519 | AtkFunction pad2; | |
39520 | }; | |
39521 | GType atk_editable_text_get_type (void); | |
39522 | ||
39523 | ||
39524 | gboolean atk_editable_text_set_run_attributes (AtkEditableText *text, | |
39525 | AtkAttributeSet *attrib_set, | |
39526 | gint start_offset, | |
39527 | gint end_offset); | |
39528 | void atk_editable_text_set_text_contents (AtkEditableText *text, | |
39529 | const gchar *string); | |
39530 | void atk_editable_text_insert_text (AtkEditableText *text, | |
39531 | const gchar *string, | |
39532 | gint length, | |
39533 | gint *position); | |
39534 | void atk_editable_text_copy_text (AtkEditableText *text, | |
39535 | gint start_pos, | |
39536 | gint end_pos); | |
39537 | void atk_editable_text_cut_text (AtkEditableText *text, | |
39538 | gint start_pos, | |
39539 | gint end_pos); | |
39540 | void atk_editable_text_delete_text (AtkEditableText *text, | |
39541 | gint start_pos, | |
39542 | gint end_pos); | |
39543 | void atk_editable_text_paste_text (AtkEditableText *text, | |
39544 | gint position); | |
39545 | # 28 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39546 | # 1 "/usr/include/atk-1.0/atk/atkgobjectaccessible.h" 1 | |
39547 | # 21 "/usr/include/atk-1.0/atk/atkgobjectaccessible.h" | |
39548 | #define __ATK_GOBJECT_ACCESSIBLE_H__ | |
39549 | ||
39550 | # 1 "/usr/include/atk-1.0/atk/atk.h" 1 | |
39551 | # 24 "/usr/include/atk-1.0/atk/atkgobjectaccessible.h" 2 | |
39552 | # 34 "/usr/include/atk-1.0/atk/atkgobjectaccessible.h" | |
39553 | #define ATK_TYPE_GOBJECT_ACCESSIBLE (atk_gobject_accessible_get_type ()) | |
39554 | #define ATK_GOBJECT_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_GOBJECT_ACCESSIBLE, AtkGObjectAccessible)) | |
39555 | #define ATK_GOBJECT_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_GOBJECT_ACCESSIBLE, AtkGObjectAccessibleClass)) | |
39556 | #define ATK_IS_GOBJECT_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_GOBJECT_ACCESSIBLE)) | |
39557 | #define ATK_IS_GOBJECT_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_GOBJECT_ACCESSIBLE)) | |
39558 | #define ATK_GOBJECT_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_GOBJECT_ACCESSIBLE, AtkGObjectAccessibleClass)) | |
39559 | ||
39560 | typedef struct _AtkGObjectAccessible AtkGObjectAccessible; | |
39561 | typedef struct _AtkGObjectAccessibleClass AtkGObjectAccessibleClass; | |
39562 | ||
39563 | struct _AtkGObjectAccessible | |
39564 | { | |
39565 | AtkObject parent; | |
39566 | }; | |
39567 | ||
39568 | GType atk_gobject_accessible_get_type (void); | |
39569 | ||
39570 | struct _AtkGObjectAccessibleClass | |
39571 | { | |
39572 | AtkObjectClass parent_class; | |
39573 | ||
39574 | AtkFunction pad1; | |
39575 | AtkFunction pad2; | |
39576 | }; | |
39577 | ||
39578 | AtkObject *atk_gobject_accessible_for_object (GObject *obj); | |
39579 | GObject *atk_gobject_accessible_get_object (AtkGObjectAccessible *obj); | |
39580 | # 29 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39581 | # 1 "/usr/include/atk-1.0/atk/atkhyperlink.h" 1 | |
39582 | # 21 "/usr/include/atk-1.0/atk/atkhyperlink.h" | |
39583 | #define __ATK_HYPERLINK_H__ | |
39584 | # 41 "/usr/include/atk-1.0/atk/atkhyperlink.h" | |
39585 | typedef enum | |
39586 | { | |
39587 | ATK_HYPERLINK_IS_INLINE = 1 << 0 | |
39588 | } AtkHyperlinkStateFlags; | |
39589 | ||
39590 | #define ATK_TYPE_HYPERLINK (atk_hyperlink_get_type ()) | |
39591 | #define ATK_HYPERLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERLINK, AtkHyperlink)) | |
39592 | #define ATK_HYPERLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_HYPERLINK, AtkHyperlinkClass)) | |
39593 | #define ATK_IS_HYPERLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERLINK)) | |
39594 | #define ATK_IS_HYPERLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_HYPERLINK)) | |
39595 | #define ATK_HYPERLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_HYPERLINK, AtkHyperlinkClass)) | |
39596 | ||
39597 | typedef struct _AtkHyperlink AtkHyperlink; | |
39598 | typedef struct _AtkHyperlinkClass AtkHyperlinkClass; | |
39599 | ||
39600 | struct _AtkHyperlink | |
39601 | { | |
39602 | GObject parent; | |
39603 | }; | |
39604 | ||
39605 | struct _AtkHyperlinkClass | |
39606 | { | |
39607 | GObjectClass parent; | |
39608 | ||
39609 | gchar* (* get_uri) (AtkHyperlink *link_, | |
39610 | gint i); | |
39611 | AtkObject* (* get_object) (AtkHyperlink *link_, | |
39612 | gint i); | |
39613 | gint (* get_end_index) (AtkHyperlink *link_); | |
39614 | gint (* get_start_index) (AtkHyperlink *link_); | |
39615 | gboolean (* is_valid) (AtkHyperlink *link_); | |
39616 | gint (* get_n_anchors) (AtkHyperlink *link_); | |
39617 | guint (* link_state) (AtkHyperlink *link_); | |
39618 | gboolean (* is_selected_link) (AtkHyperlink *link_); | |
39619 | ||
39620 | ||
39621 | void ( *link_activated) (AtkHyperlink *link_); | |
39622 | AtkFunction pad1; | |
39623 | }; | |
39624 | ||
39625 | GType atk_hyperlink_get_type (void); | |
39626 | ||
39627 | gchar* atk_hyperlink_get_uri (AtkHyperlink *link_, | |
39628 | gint i); | |
39629 | ||
39630 | AtkObject* atk_hyperlink_get_object (AtkHyperlink *link_, | |
39631 | gint i); | |
39632 | ||
39633 | gint atk_hyperlink_get_end_index (AtkHyperlink *link_); | |
39634 | ||
39635 | gint atk_hyperlink_get_start_index (AtkHyperlink *link_); | |
39636 | ||
39637 | gboolean atk_hyperlink_is_valid (AtkHyperlink *link_); | |
39638 | ||
39639 | gboolean atk_hyperlink_is_inline (AtkHyperlink *link_); | |
39640 | ||
39641 | gint atk_hyperlink_get_n_anchors (AtkHyperlink *link_); | |
39642 | gboolean atk_hyperlink_is_selected_link (AtkHyperlink *link_); | |
39643 | # 30 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39644 | # 1 "/usr/include/atk-1.0/atk/atkhyperlinkimpl.h" 1 | |
39645 | # 21 "/usr/include/atk-1.0/atk/atkhyperlinkimpl.h" | |
39646 | #define __ATK_HYPERLINK_IMPL_H__ | |
39647 | # 47 "/usr/include/atk-1.0/atk/atkhyperlinkimpl.h" | |
39648 | #define ATK_TYPE_HYPERLINK_IMPL (atk_hyperlink_impl_get_type ()) | |
39649 | #define ATK_IS_HYPERLINK_IMPL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERLINK_IMPL) | |
39650 | #define ATK_HYPERLINK_IMPL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERLINK_IMPL, AtkHyperlinkImpl) | |
39651 | #define ATK_HYPERLINK_IMPL_GET_IFACE(obj) G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_HYPERLINK_IMPL, AtkHyperlinkImplIface) | |
39652 | ||
39653 | ||
39654 | #define _TYPEDEF_ATK_HYPERLINK_IMPL__ | |
39655 | typedef struct _AtkHyperlinkImpl AtkHyperlinkImpl; | |
39656 | ||
39657 | typedef struct _AtkHyperlinkImplIface AtkHyperlinkImplIface; | |
39658 | ||
39659 | struct _AtkHyperlinkImplIface | |
39660 | { | |
39661 | GTypeInterface parent; | |
39662 | ||
39663 | AtkHyperlink* (* get_hyperlink) (AtkHyperlinkImpl *impl); | |
39664 | ||
39665 | AtkFunction pad1; | |
39666 | }; | |
39667 | ||
39668 | GType atk_hyperlink_impl_get_type (void); | |
39669 | ||
39670 | AtkHyperlink *atk_hyperlink_impl_get_hyperlink (AtkHyperlinkImpl *obj); | |
39671 | # 31 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39672 | # 1 "/usr/include/atk-1.0/atk/atkhypertext.h" 1 | |
39673 | # 21 "/usr/include/atk-1.0/atk/atkhypertext.h" | |
39674 | #define __ATK_HYPERTEXT_H__ | |
39675 | # 35 "/usr/include/atk-1.0/atk/atkhypertext.h" | |
39676 | #define ATK_TYPE_HYPERTEXT (atk_hypertext_get_type ()) | |
39677 | #define ATK_IS_HYPERTEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERTEXT) | |
39678 | #define ATK_HYPERTEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERTEXT, AtkHypertext) | |
39679 | #define ATK_HYPERTEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_HYPERTEXT, AtkHypertextIface)) | |
39680 | ||
39681 | ||
39682 | #define _TYPEDEF_ATK_HYPERTEXT_ | |
39683 | typedef struct _AtkHypertext AtkHypertext; | |
39684 | ||
39685 | typedef struct _AtkHypertextIface AtkHypertextIface; | |
39686 | ||
39687 | struct _AtkHypertextIface | |
39688 | { | |
39689 | GTypeInterface parent; | |
39690 | ||
39691 | AtkHyperlink*(* get_link) (AtkHypertext *hypertext, | |
39692 | gint link_index); | |
39693 | gint (* get_n_links) (AtkHypertext *hypertext); | |
39694 | gint (* get_link_index) (AtkHypertext *hypertext, | |
39695 | gint char_index); | |
39696 | ||
39697 | ||
39698 | ||
39699 | ||
39700 | void (* link_selected) (AtkHypertext *hypertext, | |
39701 | gint link_index); | |
39702 | ||
39703 | AtkFunction pad1; | |
39704 | AtkFunction pad2; | |
39705 | AtkFunction pad3; | |
39706 | }; | |
39707 | GType atk_hypertext_get_type (void); | |
39708 | ||
39709 | AtkHyperlink* atk_hypertext_get_link (AtkHypertext *hypertext, | |
39710 | gint link_index); | |
39711 | gint atk_hypertext_get_n_links (AtkHypertext *hypertext); | |
39712 | gint atk_hypertext_get_link_index (AtkHypertext *hypertext, | |
39713 | gint char_index); | |
39714 | # 32 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39715 | # 1 "/usr/include/atk-1.0/atk/atkimage.h" 1 | |
39716 | # 21 "/usr/include/atk-1.0/atk/atkimage.h" | |
39717 | #define __ATK_IMAGE_H__ | |
39718 | # 36 "/usr/include/atk-1.0/atk/atkimage.h" | |
39719 | #define ATK_TYPE_IMAGE (atk_image_get_type ()) | |
39720 | #define ATK_IS_IMAGE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_IMAGE) | |
39721 | #define ATK_IMAGE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_IMAGE, AtkImage) | |
39722 | #define ATK_IMAGE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_IMAGE, AtkImageIface)) | |
39723 | ||
39724 | ||
39725 | #define _TYPEDEF_ATK_IMAGE_ | |
39726 | typedef struct _AtkImage AtkImage; | |
39727 | ||
39728 | typedef struct _AtkImageIface AtkImageIface; | |
39729 | ||
39730 | struct _AtkImageIface | |
39731 | { | |
39732 | GTypeInterface parent; | |
39733 | void ( *get_image_position) (AtkImage *image, | |
39734 | gint *x, | |
39735 | gint *y, | |
39736 | AtkCoordType coord_type); | |
39737 | const gchar* ( *get_image_description) (AtkImage *image); | |
39738 | void ( *get_image_size) (AtkImage *image, | |
39739 | gint *width, | |
39740 | gint *height); | |
39741 | gboolean ( *set_image_description) (AtkImage *image, | |
39742 | const gchar *description); | |
39743 | const gchar* ( *get_image_locale) (AtkImage *image); | |
39744 | ||
39745 | AtkFunction pad1; | |
39746 | ||
39747 | }; | |
39748 | ||
39749 | GType atk_image_get_type (void); | |
39750 | ||
39751 | const gchar* atk_image_get_image_description (AtkImage *image); | |
39752 | ||
39753 | void atk_image_get_image_size (AtkImage *image, | |
39754 | gint *width, | |
39755 | gint *height); | |
39756 | ||
39757 | gboolean atk_image_set_image_description (AtkImage *image, | |
39758 | const gchar *description); | |
39759 | void atk_image_get_image_position (AtkImage *image, | |
39760 | gint *x, | |
39761 | gint *y, | |
39762 | AtkCoordType coord_type); | |
39763 | ||
39764 | const gchar* atk_image_get_image_locale (AtkImage *image); | |
39765 | # 33 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39766 | # 1 "/usr/include/atk-1.0/atk/atknoopobject.h" 1 | |
39767 | # 21 "/usr/include/atk-1.0/atk/atknoopobject.h" | |
39768 | #define __ATK_NO_OP_OBJECT_H__ | |
39769 | ||
39770 | ||
39771 | ||
39772 | #define ATK_TYPE_NO_OP_OBJECT (atk_no_op_object_get_type ()) | |
39773 | #define ATK_NO_OP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_NO_OP_OBJECT, AtkNoOpObject)) | |
39774 | #define ATK_NO_OP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_NO_OP_OBJECT, AtkNoOpObjectClass)) | |
39775 | #define ATK_IS_NO_OP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_NO_OP_OBJECT)) | |
39776 | #define ATK_IS_NO_OP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_NO_OP_OBJECT)) | |
39777 | #define ATK_NO_OP_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_NO_OP_OBJECT, AtkNoOpObjectClass)) | |
39778 | ||
39779 | typedef struct _AtkNoOpObject AtkNoOpObject; | |
39780 | typedef struct _AtkNoOpObjectClass AtkNoOpObjectClass; | |
39781 | ||
39782 | struct _AtkNoOpObject | |
39783 | { | |
39784 | AtkObject parent; | |
39785 | }; | |
39786 | ||
39787 | GType atk_no_op_object_get_type (void); | |
39788 | ||
39789 | struct _AtkNoOpObjectClass | |
39790 | { | |
39791 | AtkObjectClass parent_class; | |
39792 | }; | |
39793 | ||
39794 | AtkObject *atk_no_op_object_new (GObject *obj); | |
39795 | ||
39796 | ||
39797 | # 34 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39798 | # 1 "/usr/include/atk-1.0/atk/atknoopobjectfactory.h" 1 | |
39799 | # 21 "/usr/include/atk-1.0/atk/atknoopobjectfactory.h" | |
39800 | #define __ATK_NO_OP_OBJECT_FACTORY_H__ | |
39801 | ||
39802 | # 1 "/usr/include/atk-1.0/atk/atkobjectfactory.h" 1 | |
39803 | # 21 "/usr/include/atk-1.0/atk/atkobjectfactory.h" | |
39804 | #define __ATK_OBJECT_FACTORY_H__ | |
39805 | # 30 "/usr/include/atk-1.0/atk/atkobjectfactory.h" | |
39806 | #define ATK_TYPE_OBJECT_FACTORY (atk_object_factory_get_type ()) | |
39807 | #define ATK_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactory)) | |
39808 | #define ATK_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactoryClass)) | |
39809 | #define ATK_IS_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_OBJECT_FACTORY)) | |
39810 | #define ATK_IS_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_OBJECT_FACTORY)) | |
39811 | #define ATK_OBJECT_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactoryClass)) | |
39812 | ||
39813 | typedef struct _AtkObjectFactory AtkObjectFactory; | |
39814 | typedef struct _AtkObjectFactoryClass AtkObjectFactoryClass; | |
39815 | ||
39816 | struct _AtkObjectFactory | |
39817 | { | |
39818 | GObject parent; | |
39819 | }; | |
39820 | ||
39821 | struct _AtkObjectFactoryClass | |
39822 | { | |
39823 | GObjectClass parent_class; | |
39824 | ||
39825 | AtkObject* (* create_accessible) (GObject *obj); | |
39826 | void (* invalidate) (AtkObjectFactory *factory); | |
39827 | GType (* get_accessible_type) (void); | |
39828 | ||
39829 | AtkFunction pad1; | |
39830 | AtkFunction pad2; | |
39831 | }; | |
39832 | ||
39833 | GType atk_object_factory_get_type(void); | |
39834 | ||
39835 | AtkObject* atk_object_factory_create_accessible (AtkObjectFactory *factory, GObject *obj); | |
39836 | void atk_object_factory_invalidate (AtkObjectFactory *factory); | |
39837 | GType atk_object_factory_get_accessible_type (AtkObjectFactory *factory); | |
39838 | # 24 "/usr/include/atk-1.0/atk/atknoopobjectfactory.h" 2 | |
39839 | ||
39840 | ||
39841 | ||
39842 | ||
39843 | ||
39844 | #define ATK_TYPE_NO_OP_OBJECT_FACTORY (atk_no_op_object_factory_get_type ()) | |
39845 | #define ATK_NO_OP_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_NO_OP_OBJECT_FACTORY, AtkNoOpObjectFactory)) | |
39846 | #define ATK_NO_OP_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_NO_OP_OBJECT_FACTORY, AtkNoOpObjectFactoryClass)) | |
39847 | #define ATK_IS_NO_OP_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_NO_OP_OBJECT_FACTORY)) | |
39848 | #define ATK_IS_NO_OP_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_NO_OP_OBJECT_FACTORY)) | |
39849 | #define ATK_NO_OP_OBJECT_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ( (obj), ATK_TYPE_NO_OP_OBJECT_FACTORY, AtkNoOpObjectFactoryClass)) | |
39850 | ||
39851 | typedef struct _AtkNoOpObjectFactory AtkNoOpObjectFactory; | |
39852 | typedef struct _AtkNoOpObjectFactoryClass AtkNoOpObjectFactoryClass; | |
39853 | ||
39854 | struct _AtkNoOpObjectFactory | |
39855 | { | |
39856 | AtkObjectFactory parent; | |
39857 | }; | |
39858 | ||
39859 | struct _AtkNoOpObjectFactoryClass | |
39860 | { | |
39861 | AtkObjectFactoryClass parent_class; | |
39862 | }; | |
39863 | ||
39864 | GType atk_no_op_object_factory_get_type(void); | |
39865 | ||
39866 | AtkObjectFactory *atk_no_op_object_factory_new(void); | |
39867 | # 35 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39868 | ||
39869 | # 1 "/usr/include/atk-1.0/atk/atkregistry.h" 1 | |
39870 | # 21 "/usr/include/atk-1.0/atk/atkregistry.h" | |
39871 | #define __ATK_REGISTRY_H__ | |
39872 | ||
39873 | ||
39874 | ||
39875 | ||
39876 | ||
39877 | ||
39878 | # 1 "/usr/include/atk-1.0/atk/atkobjectfactory.h" 1 | |
39879 | # 29 "/usr/include/atk-1.0/atk/atkregistry.h" 2 | |
39880 | ||
39881 | #define ATK_TYPE_REGISTRY (atk_registry_get_type ()) | |
39882 | #define ATK_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_REGISTRY, AtkRegistry)) | |
39883 | #define ATK_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_REGISTRY, AtkRegistryClass)) | |
39884 | #define ATK_IS_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_REGISTRY)) | |
39885 | #define ATK_IS_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_REGISTRY)) | |
39886 | #define ATK_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_REGISTRY, AtkRegistryClass)) | |
39887 | ||
39888 | struct _AtkRegistry | |
39889 | { | |
39890 | GObject parent; | |
39891 | GHashTable *factory_type_registry; | |
39892 | GHashTable *factory_singleton_cache; | |
39893 | }; | |
39894 | ||
39895 | struct _AtkRegistryClass | |
39896 | { | |
39897 | GObjectClass parent_class; | |
39898 | }; | |
39899 | ||
39900 | typedef struct _AtkRegistry AtkRegistry; | |
39901 | typedef struct _AtkRegistryClass AtkRegistryClass; | |
39902 | ||
39903 | ||
39904 | GType atk_registry_get_type (void); | |
39905 | void atk_registry_set_factory_type (AtkRegistry *registry, | |
39906 | GType type, | |
39907 | GType factory_type); | |
39908 | GType atk_registry_get_factory_type (AtkRegistry *registry, | |
39909 | GType type); | |
39910 | AtkObjectFactory* atk_registry_get_factory (AtkRegistry *registry, | |
39911 | GType type); | |
39912 | ||
39913 | AtkRegistry* atk_get_default_registry (void); | |
39914 | # 37 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39915 | # 1 "/usr/include/atk-1.0/atk/atkrelation.h" 1 | |
39916 | # 21 "/usr/include/atk-1.0/atk/atkrelation.h" | |
39917 | #define __ATK_RELATION_H__ | |
39918 | # 36 "/usr/include/atk-1.0/atk/atkrelation.h" | |
39919 | #define ATK_TYPE_RELATION (atk_relation_get_type ()) | |
39920 | #define ATK_RELATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_RELATION, AtkRelation)) | |
39921 | #define ATK_RELATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_RELATION, AtkRelationClass)) | |
39922 | #define ATK_IS_RELATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_RELATION)) | |
39923 | #define ATK_IS_RELATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_RELATION)) | |
39924 | #define ATK_RELATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_RELATION, AtkRelationClass)) | |
39925 | ||
39926 | typedef struct _AtkRelation AtkRelation; | |
39927 | typedef struct _AtkRelationClass AtkRelationClass; | |
39928 | ||
39929 | struct _AtkRelation | |
39930 | { | |
39931 | GObject parent; | |
39932 | ||
39933 | GPtrArray *target; | |
39934 | AtkRelationType relationship; | |
39935 | }; | |
39936 | ||
39937 | struct _AtkRelationClass | |
39938 | { | |
39939 | GObjectClass parent; | |
39940 | }; | |
39941 | ||
39942 | GType atk_relation_get_type (void); | |
39943 | ||
39944 | AtkRelationType atk_relation_type_register (const gchar *name); | |
39945 | const gchar* atk_relation_type_get_name (AtkRelationType type); | |
39946 | AtkRelationType atk_relation_type_for_name (const gchar *name); | |
39947 | ||
39948 | ||
39949 | ||
39950 | ||
39951 | ||
39952 | AtkRelation* atk_relation_new (AtkObject **targets, | |
39953 | gint n_targets, | |
39954 | AtkRelationType relationship); | |
39955 | ||
39956 | ||
39957 | ||
39958 | AtkRelationType atk_relation_get_relation_type (AtkRelation *relation); | |
39959 | ||
39960 | ||
39961 | ||
39962 | GPtrArray* atk_relation_get_target (AtkRelation *relation); | |
39963 | void atk_relation_add_target (AtkRelation *relation, | |
39964 | AtkObject *target); | |
39965 | # 38 "/usr/include/atk-1.0/atk/atk.h" 2 | |
39966 | # 1 "/usr/include/atk-1.0/atk/atkrelationset.h" 1 | |
39967 | # 21 "/usr/include/atk-1.0/atk/atkrelationset.h" | |
39968 | #define __ATK_RELATION_SET_H__ | |
39969 | # 31 "/usr/include/atk-1.0/atk/atkrelationset.h" | |
39970 | #define ATK_TYPE_RELATION_SET (atk_relation_set_get_type ()) | |
39971 | #define ATK_RELATION_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_RELATION_SET, AtkRelationSet)) | |
39972 | #define ATK_RELATION_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_RELATION_SET, AtkRelationSetClass)) | |
39973 | #define ATK_IS_RELATION_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_RELATION_SET)) | |
39974 | #define ATK_IS_RELATION_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_RELATION_SET)) | |
39975 | #define ATK_RELATION_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_RELATION_SET, AtkRelationSetClass)) | |
39976 | ||
39977 | typedef struct _AtkRelationSetClass AtkRelationSetClass; | |
39978 | ||
39979 | ||
39980 | struct _AtkRelationSet | |
39981 | { | |
39982 | GObject parent; | |
39983 | ||
39984 | GPtrArray *relations; | |
39985 | }; | |
39986 | ||
39987 | struct _AtkRelationSetClass | |
39988 | { | |
39989 | GObjectClass parent; | |
39990 | ||
39991 | AtkFunction pad1; | |
39992 | AtkFunction pad2; | |
39993 | }; | |
39994 | ||
39995 | GType atk_relation_set_get_type (void); | |
39996 | ||
39997 | AtkRelationSet* atk_relation_set_new (void); | |
39998 | gboolean atk_relation_set_contains (AtkRelationSet *set, | |
39999 | AtkRelationType relationship); | |
40000 | void atk_relation_set_remove (AtkRelationSet *set, | |
40001 | AtkRelation *relation); | |
40002 | void atk_relation_set_add (AtkRelationSet *set, | |
40003 | AtkRelation *relation); | |
40004 | gint atk_relation_set_get_n_relations (AtkRelationSet *set); | |
40005 | AtkRelation* atk_relation_set_get_relation (AtkRelationSet *set, | |
40006 | gint i); | |
40007 | AtkRelation* atk_relation_set_get_relation_by_type (AtkRelationSet *set, | |
40008 | AtkRelationType relationship); | |
40009 | void atk_relation_set_add_relation_by_type (AtkRelationSet *set, | |
40010 | AtkRelationType relationship, | |
40011 | AtkObject *target); | |
40012 | # 39 "/usr/include/atk-1.0/atk/atk.h" 2 | |
40013 | ||
40014 | # 1 "/usr/include/atk-1.0/atk/atkselection.h" 1 | |
40015 | # 21 "/usr/include/atk-1.0/atk/atkselection.h" | |
40016 | #define __ATK_SELECTION_H__ | |
40017 | # 36 "/usr/include/atk-1.0/atk/atkselection.h" | |
40018 | #define ATK_TYPE_SELECTION (atk_selection_get_type ()) | |
40019 | #define ATK_IS_SELECTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_SELECTION) | |
40020 | #define ATK_SELECTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_SELECTION, AtkSelection) | |
40021 | #define ATK_SELECTION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_SELECTION, AtkSelectionIface)) | |
40022 | ||
40023 | ||
40024 | #define _TYPEDEF_ATK_SELECTION_ | |
40025 | typedef struct _AtkSelection AtkSelection; | |
40026 | ||
40027 | typedef struct _AtkSelectionIface AtkSelectionIface; | |
40028 | ||
40029 | struct _AtkSelectionIface | |
40030 | { | |
40031 | GTypeInterface parent; | |
40032 | ||
40033 | gboolean (* add_selection) (AtkSelection *selection, | |
40034 | gint i); | |
40035 | gboolean (* clear_selection) (AtkSelection *selection); | |
40036 | AtkObject* (* ref_selection) (AtkSelection *selection, | |
40037 | gint i); | |
40038 | gint (* get_selection_count) (AtkSelection *selection); | |
40039 | gboolean (* is_child_selected) (AtkSelection *selection, | |
40040 | gint i); | |
40041 | gboolean (* remove_selection) (AtkSelection *selection, | |
40042 | gint i); | |
40043 | gboolean (* select_all_selection) (AtkSelection *selection); | |
40044 | ||
40045 | ||
40046 | ||
40047 | void (*selection_changed) (AtkSelection *selection); | |
40048 | ||
40049 | AtkFunction pad1; | |
40050 | AtkFunction pad2; | |
40051 | }; | |
40052 | ||
40053 | GType atk_selection_get_type (void); | |
40054 | ||
40055 | gboolean atk_selection_add_selection (AtkSelection *selection, | |
40056 | gint i); | |
40057 | ||
40058 | gboolean atk_selection_clear_selection (AtkSelection *selection); | |
40059 | ||
40060 | AtkObject* atk_selection_ref_selection (AtkSelection *selection, | |
40061 | gint i); | |
40062 | ||
40063 | gint atk_selection_get_selection_count (AtkSelection *selection); | |
40064 | ||
40065 | gboolean atk_selection_is_child_selected (AtkSelection *selection, | |
40066 | gint i); | |
40067 | ||
40068 | gboolean atk_selection_remove_selection (AtkSelection *selection, | |
40069 | gint i); | |
40070 | ||
40071 | gboolean atk_selection_select_all_selection (AtkSelection *selection); | |
40072 | # 41 "/usr/include/atk-1.0/atk/atk.h" 2 | |
40073 | ||
40074 | # 1 "/usr/include/atk-1.0/atk/atkstateset.h" 1 | |
40075 | # 21 "/usr/include/atk-1.0/atk/atkstateset.h" | |
40076 | #define __ATK_STATE_SET_H__ | |
40077 | # 31 "/usr/include/atk-1.0/atk/atkstateset.h" | |
40078 | #define ATK_TYPE_STATE_SET (atk_state_set_get_type ()) | |
40079 | #define ATK_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_STATE_SET, AtkStateSet)) | |
40080 | #define ATK_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_STATE_SET, AtkStateSetClass)) | |
40081 | #define ATK_IS_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_STATE_SET)) | |
40082 | #define ATK_IS_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_STATE_SET)) | |
40083 | #define ATK_STATE_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_STATE_SET, AtkStateSetClass)) | |
40084 | ||
40085 | typedef struct _AtkStateSetClass AtkStateSetClass; | |
40086 | ||
40087 | ||
40088 | struct _AtkStateSet | |
40089 | { | |
40090 | GObject parent; | |
40091 | ||
40092 | }; | |
40093 | ||
40094 | struct _AtkStateSetClass | |
40095 | { | |
40096 | GObjectClass parent; | |
40097 | }; | |
40098 | ||
40099 | GType atk_state_set_get_type (void); | |
40100 | ||
40101 | AtkStateSet* atk_state_set_new (void); | |
40102 | gboolean atk_state_set_is_empty (AtkStateSet *set); | |
40103 | gboolean atk_state_set_add_state (AtkStateSet *set, | |
40104 | AtkStateType type); | |
40105 | void atk_state_set_add_states (AtkStateSet *set, | |
40106 | AtkStateType *types, | |
40107 | gint n_types); | |
40108 | void atk_state_set_clear_states (AtkStateSet *set); | |
40109 | gboolean atk_state_set_contains_state (AtkStateSet *set, | |
40110 | AtkStateType type); | |
40111 | gboolean atk_state_set_contains_states (AtkStateSet *set, | |
40112 | AtkStateType *types, | |
40113 | gint n_types); | |
40114 | gboolean atk_state_set_remove_state (AtkStateSet *set, | |
40115 | AtkStateType type); | |
40116 | AtkStateSet* atk_state_set_and_sets (AtkStateSet *set, | |
40117 | AtkStateSet *compare_set); | |
40118 | AtkStateSet* atk_state_set_or_sets (AtkStateSet *set, | |
40119 | AtkStateSet *compare_set); | |
40120 | AtkStateSet* atk_state_set_xor_sets (AtkStateSet *set, | |
40121 | AtkStateSet *compare_set); | |
40122 | # 43 "/usr/include/atk-1.0/atk/atk.h" 2 | |
40123 | # 1 "/usr/include/atk-1.0/atk/atkstreamablecontent.h" 1 | |
40124 | # 21 "/usr/include/atk-1.0/atk/atkstreamablecontent.h" | |
40125 | #define __ATK_STREAMABLE_CONTENT_H__ | |
40126 | ||
40127 | ||
40128 | ||
40129 | ||
40130 | ||
40131 | ||
40132 | ||
40133 | #define ATK_TYPE_STREAMABLE_CONTENT (atk_streamable_content_get_type ()) | |
40134 | #define ATK_IS_STREAMABLE_CONTENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_STREAMABLE_CONTENT) | |
40135 | #define ATK_STREAMABLE_CONTENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_STREAMABLE_CONTENT, AtkStreamableContent) | |
40136 | #define ATK_STREAMABLE_CONTENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_STREAMABLE_CONTENT, AtkStreamableContentIface)) | |
40137 | ||
40138 | ||
40139 | #define _TYPEDEF_ATK_STREAMABLE_CONTENT | |
40140 | typedef struct _AtkStreamableContent AtkStreamableContent; | |
40141 | ||
40142 | typedef struct _AtkStreamableContentIface AtkStreamableContentIface; | |
40143 | ||
40144 | struct _AtkStreamableContentIface | |
40145 | { | |
40146 | GTypeInterface parent; | |
40147 | ||
40148 | ||
40149 | ||
40150 | ||
40151 | gint (* get_n_mime_types) (AtkStreamableContent *streamable); | |
40152 | # 59 "/usr/include/atk-1.0/atk/atkstreamablecontent.h" | |
40153 | const gchar* (* get_mime_type) (AtkStreamableContent *streamable, | |
40154 | gint i); | |
40155 | ||
40156 | ||
40157 | ||
40158 | ||
40159 | ||
40160 | ||
40161 | GIOChannel* (* get_stream) (AtkStreamableContent *streamable, | |
40162 | const gchar *mime_type); | |
40163 | # 81 "/usr/include/atk-1.0/atk/atkstreamablecontent.h" | |
40164 | const gchar* (* get_uri) (AtkStreamableContent *streamable, | |
40165 | const gchar *mime_type); | |
40166 | ||
40167 | ||
40168 | AtkFunction pad1; | |
40169 | AtkFunction pad2; | |
40170 | AtkFunction pad3; | |
40171 | }; | |
40172 | GType atk_streamable_content_get_type (void); | |
40173 | ||
40174 | gint atk_streamable_content_get_n_mime_types (AtkStreamableContent *streamable); | |
40175 | ||
40176 | const gchar* atk_streamable_content_get_mime_type (AtkStreamableContent *streamable, | |
40177 | gint i); | |
40178 | GIOChannel* atk_streamable_content_get_stream (AtkStreamableContent *streamable, | |
40179 | const gchar *mime_type); | |
40180 | ||
40181 | gchar* atk_streamable_content_get_uri (AtkStreamableContent *streamable, | |
40182 | const gchar *mime_type); | |
40183 | # 44 "/usr/include/atk-1.0/atk/atk.h" 2 | |
40184 | # 1 "/usr/include/atk-1.0/atk/atktable.h" 1 | |
40185 | # 21 "/usr/include/atk-1.0/atk/atktable.h" | |
40186 | #define __ATK_TABLE_H__ | |
40187 | # 35 "/usr/include/atk-1.0/atk/atktable.h" | |
40188 | #define ATK_TYPE_TABLE (atk_table_get_type ()) | |
40189 | #define ATK_IS_TABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE) | |
40190 | #define ATK_TABLE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable) | |
40191 | #define ATK_TABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface)) | |
40192 | ||
40193 | ||
40194 | #define _TYPEDEF_ATK_TABLE_ | |
40195 | typedef struct _AtkTable AtkTable; | |
40196 | ||
40197 | typedef struct _AtkTableIface AtkTableIface; | |
40198 | ||
40199 | struct _AtkTableIface | |
40200 | { | |
40201 | GTypeInterface parent; | |
40202 | ||
40203 | AtkObject* (* ref_at) (AtkTable *table, | |
40204 | gint row, | |
40205 | gint column); | |
40206 | gint (* get_index_at) (AtkTable *table, | |
40207 | gint row, | |
40208 | gint column); | |
40209 | gint (* get_column_at_index) (AtkTable *table, | |
40210 | gint index_); | |
40211 | gint (* get_row_at_index) (AtkTable *table, | |
40212 | gint index_); | |
40213 | gint (* get_n_columns) (AtkTable *table); | |
40214 | gint (* get_n_rows) (AtkTable *table); | |
40215 | gint (* get_column_extent_at) (AtkTable *table, | |
40216 | gint row, | |
40217 | gint column); | |
40218 | gint (* get_row_extent_at) (AtkTable *table, | |
40219 | gint row, | |
40220 | gint column); | |
40221 | AtkObject* | |
40222 | (* get_caption) (AtkTable *table); | |
40223 | const gchar* | |
40224 | (* get_column_description) (AtkTable *table, | |
40225 | gint column); | |
40226 | AtkObject* (* get_column_header) (AtkTable *table, | |
40227 | gint column); | |
40228 | const gchar* | |
40229 | (* get_row_description) (AtkTable *table, | |
40230 | gint row); | |
40231 | AtkObject* (* get_row_header) (AtkTable *table, | |
40232 | gint row); | |
40233 | AtkObject* (* get_summary) (AtkTable *table); | |
40234 | void (* set_caption) (AtkTable *table, | |
40235 | AtkObject *caption); | |
40236 | void (* set_column_description) (AtkTable *table, | |
40237 | gint column, | |
40238 | const gchar *description); | |
40239 | void (* set_column_header) (AtkTable *table, | |
40240 | gint column, | |
40241 | AtkObject *header); | |
40242 | void (* set_row_description) (AtkTable *table, | |
40243 | gint row, | |
40244 | const gchar *description); | |
40245 | void (* set_row_header) (AtkTable *table, | |
40246 | gint row, | |
40247 | AtkObject *header); | |
40248 | void (* set_summary) (AtkTable *table, | |
40249 | AtkObject *accessible); | |
40250 | gint (* get_selected_columns) (AtkTable *table, | |
40251 | gint **selected); | |
40252 | gint (* get_selected_rows) (AtkTable *table, | |
40253 | gint **selected); | |
40254 | gboolean (* is_column_selected) (AtkTable *table, | |
40255 | gint column); | |
40256 | gboolean (* is_row_selected) (AtkTable *table, | |
40257 | gint row); | |
40258 | gboolean (* is_selected) (AtkTable *table, | |
40259 | gint row, | |
40260 | gint column); | |
40261 | gboolean (* add_row_selection) (AtkTable *table, | |
40262 | gint row); | |
40263 | gboolean (* remove_row_selection) (AtkTable *table, | |
40264 | gint row); | |
40265 | gboolean (* add_column_selection) (AtkTable *table, | |
40266 | gint column); | |
40267 | gboolean (* remove_column_selection) (AtkTable *table, | |
40268 | gint column); | |
40269 | ||
40270 | ||
40271 | ||
40272 | ||
40273 | void (* row_inserted) (AtkTable *table, | |
40274 | gint row, | |
40275 | gint num_inserted); | |
40276 | void (* column_inserted) (AtkTable *table, | |
40277 | gint column, | |
40278 | gint num_inserted); | |
40279 | void (* row_deleted) (AtkTable *table, | |
40280 | gint row, | |
40281 | gint num_deleted); | |
40282 | void (* column_deleted) (AtkTable *table, | |
40283 | gint column, | |
40284 | gint num_deleted); | |
40285 | void (* row_reordered) (AtkTable *table); | |
40286 | void (* column_reordered) (AtkTable *table); | |
40287 | void (* model_changed) (AtkTable *table); | |
40288 | ||
40289 | AtkFunction pad1; | |
40290 | AtkFunction pad2; | |
40291 | AtkFunction pad3; | |
40292 | AtkFunction pad4; | |
40293 | }; | |
40294 | ||
40295 | GType atk_table_get_type (void); | |
40296 | ||
40297 | AtkObject* atk_table_ref_at (AtkTable *table, | |
40298 | gint row, | |
40299 | gint column); | |
40300 | gint atk_table_get_index_at (AtkTable *table, | |
40301 | gint row, | |
40302 | gint column); | |
40303 | gint atk_table_get_column_at_index (AtkTable *table, | |
40304 | gint index_); | |
40305 | gint atk_table_get_row_at_index (AtkTable *table, | |
40306 | gint index_); | |
40307 | gint atk_table_get_n_columns (AtkTable *table); | |
40308 | gint atk_table_get_n_rows (AtkTable *table); | |
40309 | gint atk_table_get_column_extent_at (AtkTable *table, | |
40310 | gint row, | |
40311 | gint column); | |
40312 | gint atk_table_get_row_extent_at (AtkTable *table, | |
40313 | gint row, | |
40314 | gint column); | |
40315 | AtkObject* | |
40316 | atk_table_get_caption (AtkTable *table); | |
40317 | const gchar* | |
40318 | atk_table_get_column_description (AtkTable *table, | |
40319 | gint column); | |
40320 | AtkObject* atk_table_get_column_header (AtkTable *table, | |
40321 | gint column); | |
40322 | const gchar* | |
40323 | atk_table_get_row_description (AtkTable *table, | |
40324 | gint row); | |
40325 | AtkObject* atk_table_get_row_header (AtkTable *table, | |
40326 | gint row); | |
40327 | AtkObject* atk_table_get_summary (AtkTable *table); | |
40328 | void atk_table_set_caption (AtkTable *table, | |
40329 | AtkObject *caption); | |
40330 | void atk_table_set_column_description | |
40331 | (AtkTable *table, | |
40332 | gint column, | |
40333 | const gchar *description); | |
40334 | void atk_table_set_column_header (AtkTable *table, | |
40335 | gint column, | |
40336 | AtkObject *header); | |
40337 | void atk_table_set_row_description (AtkTable *table, | |
40338 | gint row, | |
40339 | const gchar *description); | |
40340 | void atk_table_set_row_header (AtkTable *table, | |
40341 | gint row, | |
40342 | AtkObject *header); | |
40343 | void atk_table_set_summary (AtkTable *table, | |
40344 | AtkObject *accessible); | |
40345 | gint atk_table_get_selected_columns (AtkTable *table, | |
40346 | gint **selected); | |
40347 | gint atk_table_get_selected_rows (AtkTable *table, | |
40348 | gint **selected); | |
40349 | gboolean atk_table_is_column_selected (AtkTable *table, | |
40350 | gint column); | |
40351 | gboolean atk_table_is_row_selected (AtkTable *table, | |
40352 | gint row); | |
40353 | gboolean atk_table_is_selected (AtkTable *table, | |
40354 | gint row, | |
40355 | gint column); | |
40356 | gboolean atk_table_add_row_selection (AtkTable *table, | |
40357 | gint row); | |
40358 | gboolean atk_table_remove_row_selection (AtkTable *table, | |
40359 | gint row); | |
40360 | gboolean atk_table_add_column_selection (AtkTable *table, | |
40361 | gint column); | |
40362 | gboolean atk_table_remove_column_selection | |
40363 | (AtkTable *table, | |
40364 | gint column); | |
40365 | # 45 "/usr/include/atk-1.0/atk/atk.h" 2 | |
40366 | ||
40367 | ||
40368 | # 1 "/usr/include/atk-1.0/atk/atkvalue.h" 1 | |
40369 | # 21 "/usr/include/atk-1.0/atk/atkvalue.h" | |
40370 | #define __ATK_VALUE_H__ | |
40371 | # 37 "/usr/include/atk-1.0/atk/atkvalue.h" | |
40372 | #define ATK_TYPE_VALUE (atk_value_get_type ()) | |
40373 | #define ATK_IS_VALUE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_VALUE) | |
40374 | #define ATK_VALUE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_VALUE, AtkValue) | |
40375 | #define ATK_VALUE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_VALUE, AtkValueIface)) | |
40376 | ||
40377 | ||
40378 | #define _TYPEDEF_ATK_VALUE__ | |
40379 | typedef struct _AtkValue AtkValue; | |
40380 | ||
40381 | typedef struct _AtkValueIface AtkValueIface; | |
40382 | ||
40383 | struct _AtkValueIface | |
40384 | { | |
40385 | GTypeInterface parent; | |
40386 | ||
40387 | void (* get_current_value) (AtkValue *obj, | |
40388 | GValue *value); | |
40389 | void (* get_maximum_value) (AtkValue *obj, | |
40390 | GValue *value); | |
40391 | void (* get_minimum_value) (AtkValue *obj, | |
40392 | GValue *value); | |
40393 | gboolean (* set_current_value) (AtkValue *obj, | |
40394 | const GValue *value); | |
40395 | void (* get_minimum_increment) (AtkValue *obj, | |
40396 | GValue *value); | |
40397 | AtkFunction pad1; | |
40398 | }; | |
40399 | ||
40400 | GType atk_value_get_type (void); | |
40401 | ||
40402 | void atk_value_get_current_value (AtkValue *obj, | |
40403 | GValue *value); | |
40404 | ||
40405 | ||
40406 | void atk_value_get_maximum_value (AtkValue *obj, | |
40407 | GValue *value); | |
40408 | ||
40409 | void atk_value_get_minimum_value (AtkValue *obj, | |
40410 | GValue *value); | |
40411 | ||
40412 | gboolean atk_value_set_current_value (AtkValue *obj, | |
40413 | const GValue *value); | |
40414 | ||
40415 | void atk_value_get_minimum_increment (AtkValue *obj, | |
40416 | GValue *value); | |
40417 | # 48 "/usr/include/atk-1.0/atk/atk.h" 2 | |
40418 | # 24 "/usr/include/gtk-2.0/gtk/gtkaccessible.h" 2 | |
40419 | ||
40420 | ||
40421 | ||
40422 | ||
40423 | #define GTK_TYPE_ACCESSIBLE (gtk_accessible_get_type ()) | |
40424 | #define GTK_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACCESSIBLE, GtkAccessible)) | |
40425 | #define GTK_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCESSIBLE, GtkAccessibleClass)) | |
40426 | #define GTK_IS_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACCESSIBLE)) | |
40427 | #define GTK_IS_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCESSIBLE)) | |
40428 | #define GTK_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCESSIBLE, GtkAccessibleClass)) | |
40429 | ||
40430 | typedef struct _GtkAccessible GtkAccessible; | |
40431 | typedef struct _GtkAccessibleClass GtkAccessibleClass; | |
40432 | ||
40433 | ||
40434 | ||
40435 | ||
40436 | ||
40437 | struct _GtkAccessible | |
40438 | { | |
40439 | AtkObject parent; | |
40440 | ||
40441 | ||
40442 | ||
40443 | ||
40444 | ||
40445 | GtkWidget *widget; | |
40446 | }; | |
40447 | ||
40448 | struct _GtkAccessibleClass | |
40449 | { | |
40450 | AtkObjectClass parent_class; | |
40451 | ||
40452 | void (*connect_widget_destroyed) (GtkAccessible *accessible); | |
40453 | ||
40454 | ||
40455 | void (*_gtk_reserved1) (void); | |
40456 | void (*_gtk_reserved2) (void); | |
40457 | void (*_gtk_reserved3) (void); | |
40458 | void (*_gtk_reserved4) (void); | |
40459 | }; | |
40460 | ||
40461 | GType gtk_accessible_get_type (void) __attribute__((__const__)); | |
40462 | ||
40463 | void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible); | |
40464 | ||
40465 | ||
40466 | # 37 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
40467 | # 1 "/usr/include/gtk-2.0/gtk/gtkaction.h" 1 | |
40468 | # 31 "/usr/include/gtk-2.0/gtk/gtkaction.h" | |
40469 | #define __GTK_ACTION_H__ | |
40470 | ||
40471 | ||
40472 | ||
40473 | ||
40474 | ||
40475 | ||
40476 | #define GTK_TYPE_ACTION (gtk_action_get_type ()) | |
40477 | #define GTK_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACTION, GtkAction)) | |
40478 | #define GTK_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACTION, GtkActionClass)) | |
40479 | #define GTK_IS_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACTION)) | |
40480 | #define GTK_IS_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACTION)) | |
40481 | #define GTK_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_ACTION, GtkActionClass)) | |
40482 | ||
40483 | typedef struct _GtkAction GtkAction; | |
40484 | typedef struct _GtkActionClass GtkActionClass; | |
40485 | typedef struct _GtkActionPrivate GtkActionPrivate; | |
40486 | ||
40487 | struct _GtkAction | |
40488 | { | |
40489 | GObject object; | |
40490 | ||
40491 | ||
40492 | ||
40493 | GtkActionPrivate *private_data; | |
40494 | }; | |
40495 | ||
40496 | struct _GtkActionClass | |
40497 | { | |
40498 | GObjectClass parent_class; | |
40499 | ||
40500 | ||
40501 | void (* activate) (GtkAction *action); | |
40502 | ||
40503 | GType menu_item_type; | |
40504 | GType toolbar_item_type; | |
40505 | ||
40506 | ||
40507 | GtkWidget *(* create_menu_item) (GtkAction *action); | |
40508 | GtkWidget *(* create_tool_item) (GtkAction *action); | |
40509 | void (* connect_proxy) (GtkAction *action, | |
40510 | GtkWidget *proxy); | |
40511 | void (* disconnect_proxy) (GtkAction *action, | |
40512 | GtkWidget *proxy); | |
40513 | ||
40514 | ||
40515 | void (*_gtk_reserved1) (void); | |
40516 | void (*_gtk_reserved2) (void); | |
40517 | void (*_gtk_reserved3) (void); | |
40518 | void (*_gtk_reserved4) (void); | |
40519 | }; | |
40520 | ||
40521 | GType gtk_action_get_type (void) __attribute__((__const__)); | |
40522 | GtkAction *gtk_action_new (const gchar *name, | |
40523 | const gchar *label, | |
40524 | const gchar *tooltip, | |
40525 | const gchar *stock_id); | |
40526 | const gchar* gtk_action_get_name (GtkAction *action); | |
40527 | gboolean gtk_action_is_sensitive (GtkAction *action); | |
40528 | gboolean gtk_action_get_sensitive (GtkAction *action); | |
40529 | void gtk_action_set_sensitive (GtkAction *action, | |
40530 | gboolean sensitive); | |
40531 | gboolean gtk_action_is_visible (GtkAction *action); | |
40532 | gboolean gtk_action_get_visible (GtkAction *action); | |
40533 | void gtk_action_set_visible (GtkAction *action, | |
40534 | gboolean visible); | |
40535 | void gtk_action_activate (GtkAction *action); | |
40536 | GtkWidget* gtk_action_create_icon (GtkAction *action, | |
40537 | GtkIconSize icon_size); | |
40538 | GtkWidget* gtk_action_create_menu_item (GtkAction *action); | |
40539 | GtkWidget* gtk_action_create_tool_item (GtkAction *action); | |
40540 | void gtk_action_connect_proxy (GtkAction *action, | |
40541 | GtkWidget *proxy); | |
40542 | void gtk_action_disconnect_proxy (GtkAction *action, | |
40543 | GtkWidget *proxy); | |
40544 | GSList* gtk_action_get_proxies (GtkAction *action); | |
40545 | void gtk_action_connect_accelerator (GtkAction *action); | |
40546 | void gtk_action_disconnect_accelerator (GtkAction *action); | |
40547 | const gchar *gtk_action_get_accel_path (GtkAction *action); | |
40548 | GClosure *gtk_action_get_accel_closure (GtkAction *action); | |
40549 | ||
40550 | ||
40551 | void gtk_action_block_activate_from (GtkAction *action, | |
40552 | GtkWidget *proxy); | |
40553 | void gtk_action_unblock_activate_from (GtkAction *action, | |
40554 | GtkWidget *proxy); | |
40555 | void _gtk_action_emit_activate (GtkAction *action); | |
40556 | ||
40557 | ||
40558 | void gtk_action_set_accel_path (GtkAction *action, | |
40559 | const gchar *accel_path); | |
40560 | void gtk_action_set_accel_group (GtkAction *action, | |
40561 | GtkAccelGroup *accel_group); | |
40562 | ||
40563 | ||
40564 | ||
40565 | # 38 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
40566 | # 1 "/usr/include/gtk-2.0/gtk/gtkactiongroup.h" 1 | |
40567 | # 31 "/usr/include/gtk-2.0/gtk/gtkactiongroup.h" | |
40568 | #define __GTK_ACTION_GROUP_H__ | |
40569 | ||
40570 | ||
40571 | # 1 "/usr/include/gtk-2.0/gtk/gtkitemfactory.h" 1 | |
40572 | # 31 "/usr/include/gtk-2.0/gtk/gtkitemfactory.h" | |
40573 | #define __GTK_ITEM_FACTORY_H__ | |
40574 | ||
40575 | ||
40576 | ||
40577 | ||
40578 | ||
40579 | ||
40580 | typedef gchar * (*GtkTranslateFunc) (const gchar *path, | |
40581 | gpointer func_data); | |
40582 | ||
40583 | ||
40584 | ||
40585 | typedef void (*GtkPrintFunc) (gpointer func_data, | |
40586 | const gchar *str); | |
40587 | ||
40588 | ||
40589 | ||
40590 | ||
40591 | ||
40592 | typedef void (*GtkItemFactoryCallback) (); | |
40593 | typedef void (*GtkItemFactoryCallback1) (gpointer callback_data, | |
40594 | guint callback_action, | |
40595 | GtkWidget *widget); | |
40596 | ||
40597 | #define GTK_TYPE_ITEM_FACTORY (gtk_item_factory_get_type ()) | |
40598 | #define GTK_ITEM_FACTORY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ITEM_FACTORY, GtkItemFactory)) | |
40599 | #define GTK_ITEM_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ITEM_FACTORY, GtkItemFactoryClass)) | |
40600 | #define GTK_IS_ITEM_FACTORY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ITEM_FACTORY)) | |
40601 | #define GTK_IS_ITEM_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ITEM_FACTORY)) | |
40602 | #define GTK_ITEM_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ITEM_FACTORY, GtkItemFactoryClass)) | |
40603 | ||
40604 | ||
40605 | typedef struct _GtkItemFactory GtkItemFactory; | |
40606 | typedef struct _GtkItemFactoryClass GtkItemFactoryClass; | |
40607 | typedef struct _GtkItemFactoryEntry GtkItemFactoryEntry; | |
40608 | typedef struct _GtkItemFactoryItem GtkItemFactoryItem; | |
40609 | ||
40610 | struct _GtkItemFactory | |
40611 | { | |
40612 | GtkObject object; | |
40613 | ||
40614 | gchar *path; | |
40615 | GtkAccelGroup *accel_group; | |
40616 | GtkWidget *widget; | |
40617 | GSList *items; | |
40618 | ||
40619 | GtkTranslateFunc translate_func; | |
40620 | gpointer translate_data; | |
40621 | GtkDestroyNotify translate_notify; | |
40622 | }; | |
40623 | ||
40624 | struct _GtkItemFactoryClass | |
40625 | { | |
40626 | GtkObjectClass object_class; | |
40627 | ||
40628 | GHashTable *item_ht; | |
40629 | ||
40630 | ||
40631 | void (*_gtk_reserved1) (void); | |
40632 | void (*_gtk_reserved2) (void); | |
40633 | void (*_gtk_reserved3) (void); | |
40634 | void (*_gtk_reserved4) (void); | |
40635 | }; | |
40636 | ||
40637 | struct _GtkItemFactoryEntry | |
40638 | { | |
40639 | gchar *path; | |
40640 | gchar *accelerator; | |
40641 | ||
40642 | GtkItemFactoryCallback callback; | |
40643 | guint callback_action; | |
40644 | # 119 "/usr/include/gtk-2.0/gtk/gtkitemfactory.h" | |
40645 | gchar *item_type; | |
40646 | ||
40647 | ||
40648 | ||
40649 | ||
40650 | ||
40651 | gconstpointer extra_data; | |
40652 | }; | |
40653 | ||
40654 | struct _GtkItemFactoryItem | |
40655 | { | |
40656 | gchar *path; | |
40657 | GSList *widgets; | |
40658 | }; | |
40659 | ||
40660 | ||
40661 | GType gtk_item_factory_get_type (void) __attribute__((__const__)); | |
40662 | ||
40663 | ||
40664 | ||
40665 | ||
40666 | GtkItemFactory* gtk_item_factory_new (GType container_type, | |
40667 | const gchar *path, | |
40668 | GtkAccelGroup *accel_group); | |
40669 | void gtk_item_factory_construct (GtkItemFactory *ifactory, | |
40670 | GType container_type, | |
40671 | const gchar *path, | |
40672 | GtkAccelGroup *accel_group); | |
40673 | ||
40674 | ||
40675 | ||
40676 | void gtk_item_factory_add_foreign (GtkWidget *accel_widget, | |
40677 | const gchar *full_path, | |
40678 | GtkAccelGroup *accel_group, | |
40679 | guint keyval, | |
40680 | GdkModifierType modifiers); | |
40681 | ||
40682 | GtkItemFactory* gtk_item_factory_from_widget (GtkWidget *widget); | |
40683 | const gchar* gtk_item_factory_path_from_widget (GtkWidget *widget); | |
40684 | ||
40685 | GtkWidget* gtk_item_factory_get_item (GtkItemFactory *ifactory, | |
40686 | const gchar *path); | |
40687 | GtkWidget* gtk_item_factory_get_widget (GtkItemFactory *ifactory, | |
40688 | const gchar *path); | |
40689 | GtkWidget* gtk_item_factory_get_widget_by_action (GtkItemFactory *ifactory, | |
40690 | guint action); | |
40691 | GtkWidget* gtk_item_factory_get_item_by_action (GtkItemFactory *ifactory, | |
40692 | guint action); | |
40693 | ||
40694 | void gtk_item_factory_create_item (GtkItemFactory *ifactory, | |
40695 | GtkItemFactoryEntry *entry, | |
40696 | gpointer callback_data, | |
40697 | guint callback_type); | |
40698 | void gtk_item_factory_create_items (GtkItemFactory *ifactory, | |
40699 | guint n_entries, | |
40700 | GtkItemFactoryEntry *entries, | |
40701 | gpointer callback_data); | |
40702 | void gtk_item_factory_delete_item (GtkItemFactory *ifactory, | |
40703 | const gchar *path); | |
40704 | void gtk_item_factory_delete_entry (GtkItemFactory *ifactory, | |
40705 | GtkItemFactoryEntry *entry); | |
40706 | void gtk_item_factory_delete_entries (GtkItemFactory *ifactory, | |
40707 | guint n_entries, | |
40708 | GtkItemFactoryEntry *entries); | |
40709 | void gtk_item_factory_popup (GtkItemFactory *ifactory, | |
40710 | guint x, | |
40711 | guint y, | |
40712 | guint mouse_button, | |
40713 | guint32 time_); | |
40714 | void gtk_item_factory_popup_with_data(GtkItemFactory *ifactory, | |
40715 | gpointer popup_data, | |
40716 | GtkDestroyNotify destroy, | |
40717 | guint x, | |
40718 | guint y, | |
40719 | guint mouse_button, | |
40720 | guint32 time_); | |
40721 | gpointer gtk_item_factory_popup_data (GtkItemFactory *ifactory); | |
40722 | gpointer gtk_item_factory_popup_data_from_widget (GtkWidget *widget); | |
40723 | void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory, | |
40724 | GtkTranslateFunc func, | |
40725 | gpointer data, | |
40726 | GtkDestroyNotify notify); | |
40727 | ||
40728 | ||
40729 | ||
40730 | ||
40731 | ||
40732 | typedef void (*GtkMenuCallback) (GtkWidget *widget, | |
40733 | gpointer user_data); | |
40734 | typedef struct { | |
40735 | gchar *path; | |
40736 | gchar *accelerator; | |
40737 | GtkMenuCallback callback; | |
40738 | gpointer callback_data; | |
40739 | GtkWidget *widget; | |
40740 | } GtkMenuEntry; | |
40741 | ||
40742 | ||
40743 | typedef void (*GtkItemFactoryCallback2) (GtkWidget *widget, | |
40744 | gpointer callback_data, | |
40745 | guint callback_action); | |
40746 | ||
40747 | ||
40748 | void gtk_item_factory_create_items_ac (GtkItemFactory *ifactory, | |
40749 | guint n_entries, | |
40750 | GtkItemFactoryEntry *entries, | |
40751 | gpointer callback_data, | |
40752 | guint callback_type); | |
40753 | ||
40754 | GtkItemFactory* gtk_item_factory_from_path (const gchar *path); | |
40755 | void gtk_item_factory_create_menu_entries (guint n_entries, | |
40756 | GtkMenuEntry *entries); | |
40757 | void gtk_item_factories_path_delete (const gchar *ifactory_path, | |
40758 | const gchar *path); | |
40759 | ||
40760 | ||
40761 | ||
40762 | ||
40763 | ||
40764 | # 35 "/usr/include/gtk-2.0/gtk/gtkactiongroup.h" 2 | |
40765 | ||
40766 | ||
40767 | ||
40768 | #define GTK_TYPE_ACTION_GROUP (gtk_action_group_get_type ()) | |
40769 | #define GTK_ACTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACTION_GROUP, GtkActionGroup)) | |
40770 | #define GTK_ACTION_GROUP_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_ACTION_GROUP, GtkActionGroupClass)) | |
40771 | #define GTK_IS_ACTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACTION_GROUP)) | |
40772 | #define GTK_IS_ACTION_GROUP_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_ACTION_GROUP)) | |
40773 | #define GTK_ACTION_GROUP_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_ACTION_GROUP, GtkActionGroupClass)) | |
40774 | ||
40775 | typedef struct _GtkActionGroup GtkActionGroup; | |
40776 | typedef struct _GtkActionGroupPrivate GtkActionGroupPrivate; | |
40777 | typedef struct _GtkActionGroupClass GtkActionGroupClass; | |
40778 | typedef struct _GtkActionEntry GtkActionEntry; | |
40779 | typedef struct _GtkToggleActionEntry GtkToggleActionEntry; | |
40780 | typedef struct _GtkRadioActionEntry GtkRadioActionEntry; | |
40781 | ||
40782 | struct _GtkActionGroup | |
40783 | { | |
40784 | GObject parent; | |
40785 | ||
40786 | ||
40787 | ||
40788 | GtkActionGroupPrivate *private_data; | |
40789 | }; | |
40790 | ||
40791 | struct _GtkActionGroupClass | |
40792 | { | |
40793 | GObjectClass parent_class; | |
40794 | ||
40795 | GtkAction *(* get_action) (GtkActionGroup *action_group, | |
40796 | const gchar *action_name); | |
40797 | ||
40798 | ||
40799 | void (*_gtk_reserved1) (void); | |
40800 | void (*_gtk_reserved2) (void); | |
40801 | void (*_gtk_reserved3) (void); | |
40802 | void (*_gtk_reserved4) (void); | |
40803 | }; | |
40804 | ||
40805 | struct _GtkActionEntry | |
40806 | { | |
40807 | const gchar *name; | |
40808 | const gchar *stock_id; | |
40809 | const gchar *label; | |
40810 | const gchar *accelerator; | |
40811 | const gchar *tooltip; | |
40812 | GCallback callback; | |
40813 | }; | |
40814 | ||
40815 | struct _GtkToggleActionEntry | |
40816 | { | |
40817 | const gchar *name; | |
40818 | const gchar *stock_id; | |
40819 | const gchar *label; | |
40820 | const gchar *accelerator; | |
40821 | const gchar *tooltip; | |
40822 | GCallback callback; | |
40823 | gboolean is_active; | |
40824 | }; | |
40825 | ||
40826 | struct _GtkRadioActionEntry | |
40827 | { | |
40828 | const gchar *name; | |
40829 | const gchar *stock_id; | |
40830 | const gchar *label; | |
40831 | const gchar *accelerator; | |
40832 | const gchar *tooltip; | |
40833 | gint value; | |
40834 | }; | |
40835 | ||
40836 | GType gtk_action_group_get_type (void) __attribute__((__const__)); | |
40837 | GtkActionGroup *gtk_action_group_new (const gchar *name); | |
40838 | const gchar *gtk_action_group_get_name (GtkActionGroup *action_group); | |
40839 | gboolean gtk_action_group_get_sensitive (GtkActionGroup *action_group); | |
40840 | void gtk_action_group_set_sensitive (GtkActionGroup *action_group, | |
40841 | gboolean sensitive); | |
40842 | gboolean gtk_action_group_get_visible (GtkActionGroup *action_group); | |
40843 | void gtk_action_group_set_visible (GtkActionGroup *action_group, | |
40844 | gboolean visible); | |
40845 | GtkAction *gtk_action_group_get_action (GtkActionGroup *action_group, | |
40846 | const gchar *action_name); | |
40847 | GList *gtk_action_group_list_actions (GtkActionGroup *action_group); | |
40848 | void gtk_action_group_add_action (GtkActionGroup *action_group, | |
40849 | GtkAction *action); | |
40850 | void gtk_action_group_add_action_with_accel (GtkActionGroup *action_group, | |
40851 | GtkAction *action, | |
40852 | const gchar *accelerator); | |
40853 | void gtk_action_group_remove_action (GtkActionGroup *action_group, | |
40854 | GtkAction *action); | |
40855 | void gtk_action_group_add_actions (GtkActionGroup *action_group, | |
40856 | const GtkActionEntry *entries, | |
40857 | guint n_entries, | |
40858 | gpointer user_data); | |
40859 | void gtk_action_group_add_toggle_actions (GtkActionGroup *action_group, | |
40860 | const GtkToggleActionEntry *entries, | |
40861 | guint n_entries, | |
40862 | gpointer user_data); | |
40863 | void gtk_action_group_add_radio_actions (GtkActionGroup *action_group, | |
40864 | const GtkRadioActionEntry *entries, | |
40865 | guint n_entries, | |
40866 | gint value, | |
40867 | GCallback on_change, | |
40868 | gpointer user_data); | |
40869 | void gtk_action_group_add_actions_full (GtkActionGroup *action_group, | |
40870 | const GtkActionEntry *entries, | |
40871 | guint n_entries, | |
40872 | gpointer user_data, | |
40873 | GDestroyNotify destroy); | |
40874 | void gtk_action_group_add_toggle_actions_full (GtkActionGroup *action_group, | |
40875 | const GtkToggleActionEntry *entries, | |
40876 | guint n_entries, | |
40877 | gpointer user_data, | |
40878 | GDestroyNotify destroy); | |
40879 | void gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group, | |
40880 | const GtkRadioActionEntry *entries, | |
40881 | guint n_entries, | |
40882 | gint value, | |
40883 | GCallback on_change, | |
40884 | gpointer user_data, | |
40885 | GDestroyNotify destroy); | |
40886 | void gtk_action_group_set_translate_func (GtkActionGroup *action_group, | |
40887 | GtkTranslateFunc func, | |
40888 | gpointer data, | |
40889 | GtkDestroyNotify notify); | |
40890 | void gtk_action_group_set_translation_domain (GtkActionGroup *action_group, | |
40891 | const gchar *domain); | |
40892 | const gchar *gtk_action_group_translate_string (GtkActionGroup *action_group, | |
40893 | const gchar *string); | |
40894 | ||
40895 | ||
40896 | void _gtk_action_group_emit_connect_proxy (GtkActionGroup *action_group, | |
40897 | GtkAction *action, | |
40898 | GtkWidget *proxy); | |
40899 | void _gtk_action_group_emit_disconnect_proxy (GtkActionGroup *action_group, | |
40900 | GtkAction *action, | |
40901 | GtkWidget *proxy); | |
40902 | void _gtk_action_group_emit_pre_activate (GtkActionGroup *action_group, | |
40903 | GtkAction *action); | |
40904 | void _gtk_action_group_emit_post_activate (GtkActionGroup *action_group, | |
40905 | GtkAction *action); | |
40906 | ||
40907 | ||
40908 | # 39 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
40909 | ||
40910 | # 1 "/usr/include/gtk-2.0/gtk/gtkalignment.h" 1 | |
40911 | # 28 "/usr/include/gtk-2.0/gtk/gtkalignment.h" | |
40912 | #define __GTK_ALIGNMENT_H__ | |
40913 | ||
40914 | ||
40915 | ||
40916 | ||
40917 | ||
40918 | ||
40919 | ||
40920 | ||
40921 | #define GTK_TYPE_ALIGNMENT (gtk_alignment_get_type ()) | |
40922 | #define GTK_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ALIGNMENT, GtkAlignment)) | |
40923 | #define GTK_ALIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ALIGNMENT, GtkAlignmentClass)) | |
40924 | #define GTK_IS_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ALIGNMENT)) | |
40925 | #define GTK_IS_ALIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ALIGNMENT)) | |
40926 | #define GTK_ALIGNMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ALIGNMENT, GtkAlignmentClass)) | |
40927 | ||
40928 | ||
40929 | typedef struct _GtkAlignment GtkAlignment; | |
40930 | typedef struct _GtkAlignmentClass GtkAlignmentClass; | |
40931 | typedef struct _GtkAlignmentPrivate GtkAlignmentPrivate; | |
40932 | ||
40933 | struct _GtkAlignment | |
40934 | { | |
40935 | GtkBin bin; | |
40936 | ||
40937 | gfloat xalign; | |
40938 | gfloat yalign; | |
40939 | gfloat xscale; | |
40940 | gfloat yscale; | |
40941 | }; | |
40942 | ||
40943 | struct _GtkAlignmentClass | |
40944 | { | |
40945 | GtkBinClass parent_class; | |
40946 | }; | |
40947 | ||
40948 | ||
40949 | GType gtk_alignment_get_type (void) __attribute__((__const__)); | |
40950 | GtkWidget* gtk_alignment_new (gfloat xalign, | |
40951 | gfloat yalign, | |
40952 | gfloat xscale, | |
40953 | gfloat yscale); | |
40954 | void gtk_alignment_set (GtkAlignment *alignment, | |
40955 | gfloat xalign, | |
40956 | gfloat yalign, | |
40957 | gfloat xscale, | |
40958 | gfloat yscale); | |
40959 | ||
40960 | void gtk_alignment_set_padding (GtkAlignment *alignment, | |
40961 | guint padding_top, | |
40962 | guint padding_bottom, | |
40963 | guint padding_left, | |
40964 | guint padding_right); | |
40965 | ||
40966 | void gtk_alignment_get_padding (GtkAlignment *alignment, | |
40967 | guint *padding_top, | |
40968 | guint *padding_bottom, | |
40969 | guint *padding_left, | |
40970 | guint *padding_right); | |
40971 | ||
40972 | ||
40973 | # 41 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
40974 | # 1 "/usr/include/gtk-2.0/gtk/gtkarrow.h" 1 | |
40975 | # 28 "/usr/include/gtk-2.0/gtk/gtkarrow.h" | |
40976 | #define __GTK_ARROW_H__ | |
40977 | ||
40978 | ||
40979 | ||
40980 | ||
40981 | ||
40982 | ||
40983 | ||
40984 | ||
40985 | ||
40986 | #define GTK_TYPE_ARROW (gtk_arrow_get_type ()) | |
40987 | #define GTK_ARROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ARROW, GtkArrow)) | |
40988 | #define GTK_ARROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ARROW, GtkArrowClass)) | |
40989 | #define GTK_IS_ARROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ARROW)) | |
40990 | #define GTK_IS_ARROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ARROW)) | |
40991 | #define GTK_ARROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ARROW, GtkArrowClass)) | |
40992 | ||
40993 | ||
40994 | typedef struct _GtkArrow GtkArrow; | |
40995 | typedef struct _GtkArrowClass GtkArrowClass; | |
40996 | ||
40997 | struct _GtkArrow | |
40998 | { | |
40999 | GtkMisc misc; | |
41000 | ||
41001 | gint16 arrow_type; | |
41002 | gint16 shadow_type; | |
41003 | }; | |
41004 | ||
41005 | struct _GtkArrowClass | |
41006 | { | |
41007 | GtkMiscClass parent_class; | |
41008 | }; | |
41009 | ||
41010 | ||
41011 | GType gtk_arrow_get_type (void) __attribute__((__const__)); | |
41012 | GtkWidget* gtk_arrow_new (GtkArrowType arrow_type, | |
41013 | GtkShadowType shadow_type); | |
41014 | void gtk_arrow_set (GtkArrow *arrow, | |
41015 | GtkArrowType arrow_type, | |
41016 | GtkShadowType shadow_type); | |
41017 | ||
41018 | ||
41019 | ||
41020 | # 42 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
41021 | # 1 "/usr/include/gtk-2.0/gtk/gtkaspectframe.h" 1 | |
41022 | # 28 "/usr/include/gtk-2.0/gtk/gtkaspectframe.h" | |
41023 | #define __GTK_ASPECT_FRAME_H__ | |
41024 | ||
41025 | ||
41026 | ||
41027 | ||
41028 | # 1 "/usr/include/gtk-2.0/gtk/gtkframe.h" 1 | |
41029 | # 28 "/usr/include/gtk-2.0/gtk/gtkframe.h" | |
41030 | #define __GTK_FRAME_H__ | |
41031 | ||
41032 | ||
41033 | ||
41034 | ||
41035 | ||
41036 | ||
41037 | ||
41038 | ||
41039 | ||
41040 | #define GTK_TYPE_FRAME (gtk_frame_get_type ()) | |
41041 | #define GTK_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FRAME, GtkFrame)) | |
41042 | #define GTK_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FRAME, GtkFrameClass)) | |
41043 | #define GTK_IS_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FRAME)) | |
41044 | #define GTK_IS_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FRAME)) | |
41045 | #define GTK_FRAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FRAME, GtkFrameClass)) | |
41046 | ||
41047 | ||
41048 | typedef struct _GtkFrame GtkFrame; | |
41049 | typedef struct _GtkFrameClass GtkFrameClass; | |
41050 | ||
41051 | struct _GtkFrame | |
41052 | { | |
41053 | GtkBin bin; | |
41054 | ||
41055 | GtkWidget *label_widget; | |
41056 | gint16 shadow_type; | |
41057 | gfloat label_xalign; | |
41058 | gfloat label_yalign; | |
41059 | ||
41060 | GtkAllocation child_allocation; | |
41061 | }; | |
41062 | ||
41063 | struct _GtkFrameClass | |
41064 | { | |
41065 | GtkBinClass parent_class; | |
41066 | ||
41067 | void (*compute_child_allocation) (GtkFrame *frame, GtkAllocation *allocation); | |
41068 | }; | |
41069 | ||
41070 | ||
41071 | GType gtk_frame_get_type (void) __attribute__((__const__)); | |
41072 | GtkWidget* gtk_frame_new (const gchar *label); | |
41073 | ||
41074 | void gtk_frame_set_label (GtkFrame *frame, | |
41075 | const gchar *label); | |
41076 | const gchar *gtk_frame_get_label (GtkFrame *frame); | |
41077 | ||
41078 | void gtk_frame_set_label_widget (GtkFrame *frame, | |
41079 | GtkWidget *label_widget); | |
41080 | GtkWidget *gtk_frame_get_label_widget (GtkFrame *frame); | |
41081 | void gtk_frame_set_label_align (GtkFrame *frame, | |
41082 | gfloat xalign, | |
41083 | gfloat yalign); | |
41084 | void gtk_frame_get_label_align (GtkFrame *frame, | |
41085 | gfloat *xalign, | |
41086 | gfloat *yalign); | |
41087 | void gtk_frame_set_shadow_type (GtkFrame *frame, | |
41088 | GtkShadowType type); | |
41089 | GtkShadowType gtk_frame_get_shadow_type (GtkFrame *frame); | |
41090 | ||
41091 | ||
41092 | ||
41093 | # 34 "/usr/include/gtk-2.0/gtk/gtkaspectframe.h" 2 | |
41094 | ||
41095 | ||
41096 | ||
41097 | #define GTK_TYPE_ASPECT_FRAME (gtk_aspect_frame_get_type ()) | |
41098 | #define GTK_ASPECT_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ASPECT_FRAME, GtkAspectFrame)) | |
41099 | #define GTK_ASPECT_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ASPECT_FRAME, GtkAspectFrameClass)) | |
41100 | #define GTK_IS_ASPECT_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ASPECT_FRAME)) | |
41101 | #define GTK_IS_ASPECT_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ASPECT_FRAME)) | |
41102 | #define GTK_ASPECT_FRAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ASPECT_FRAME, GtkAspectFrameClass)) | |
41103 | ||
41104 | ||
41105 | typedef struct _GtkAspectFrame GtkAspectFrame; | |
41106 | typedef struct _GtkAspectFrameClass GtkAspectFrameClass; | |
41107 | ||
41108 | struct _GtkAspectFrame | |
41109 | { | |
41110 | GtkFrame frame; | |
41111 | ||
41112 | gfloat xalign; | |
41113 | gfloat yalign; | |
41114 | gfloat ratio; | |
41115 | gboolean obey_child; | |
41116 | ||
41117 | GtkAllocation center_allocation; | |
41118 | }; | |
41119 | ||
41120 | struct _GtkAspectFrameClass | |
41121 | { | |
41122 | GtkFrameClass parent_class; | |
41123 | }; | |
41124 | ||
41125 | ||
41126 | GType gtk_aspect_frame_get_type (void) __attribute__((__const__)); | |
41127 | GtkWidget* gtk_aspect_frame_new (const gchar *label, | |
41128 | gfloat xalign, | |
41129 | gfloat yalign, | |
41130 | gfloat ratio, | |
41131 | gboolean obey_child); | |
41132 | void gtk_aspect_frame_set (GtkAspectFrame *aspect_frame, | |
41133 | gfloat xalign, | |
41134 | gfloat yalign, | |
41135 | gfloat ratio, | |
41136 | gboolean obey_child); | |
41137 | ||
41138 | ||
41139 | ||
41140 | # 43 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
41141 | # 1 "/usr/include/gtk-2.0/gtk/gtkbbox.h" 1 | |
41142 | # 28 "/usr/include/gtk-2.0/gtk/gtkbbox.h" | |
41143 | #define __GTK_BUTTON_BOX_H__ | |
41144 | ||
41145 | # 1 "/usr/include/gtk-2.0/gtk/gtkbox.h" 1 | |
41146 | # 28 "/usr/include/gtk-2.0/gtk/gtkbox.h" | |
41147 | #define __GTK_BOX_H__ | |
41148 | ||
41149 | ||
41150 | ||
41151 | ||
41152 | ||
41153 | ||
41154 | ||
41155 | ||
41156 | ||
41157 | #define GTK_TYPE_BOX (gtk_box_get_type ()) | |
41158 | #define GTK_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox)) | |
41159 | #define GTK_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BOX, GtkBoxClass)) | |
41160 | #define GTK_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BOX)) | |
41161 | #define GTK_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BOX)) | |
41162 | #define GTK_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BOX, GtkBoxClass)) | |
41163 | ||
41164 | ||
41165 | typedef struct _GtkBox GtkBox; | |
41166 | typedef struct _GtkBoxClass GtkBoxClass; | |
41167 | typedef struct _GtkBoxChild GtkBoxChild; | |
41168 | ||
41169 | struct _GtkBox | |
41170 | { | |
41171 | GtkContainer container; | |
41172 | ||
41173 | ||
41174 | GList *children; | |
41175 | gint16 spacing; | |
41176 | guint homogeneous : 1; | |
41177 | }; | |
41178 | ||
41179 | struct _GtkBoxClass | |
41180 | { | |
41181 | GtkContainerClass parent_class; | |
41182 | }; | |
41183 | ||
41184 | struct _GtkBoxChild | |
41185 | { | |
41186 | GtkWidget *widget; | |
41187 | guint16 padding; | |
41188 | guint expand : 1; | |
41189 | guint fill : 1; | |
41190 | guint pack : 1; | |
41191 | guint is_secondary : 1; | |
41192 | }; | |
41193 | ||
41194 | ||
41195 | GType gtk_box_get_type (void) __attribute__((__const__)); | |
41196 | void gtk_box_pack_start (GtkBox *box, | |
41197 | GtkWidget *child, | |
41198 | gboolean expand, | |
41199 | gboolean fill, | |
41200 | guint padding); | |
41201 | void gtk_box_pack_end (GtkBox *box, | |
41202 | GtkWidget *child, | |
41203 | gboolean expand, | |
41204 | gboolean fill, | |
41205 | guint padding); | |
41206 | void gtk_box_pack_start_defaults (GtkBox *box, | |
41207 | GtkWidget *widget); | |
41208 | void gtk_box_pack_end_defaults (GtkBox *box, | |
41209 | GtkWidget *widget); | |
41210 | void gtk_box_set_homogeneous (GtkBox *box, | |
41211 | gboolean homogeneous); | |
41212 | gboolean gtk_box_get_homogeneous (GtkBox *box); | |
41213 | void gtk_box_set_spacing (GtkBox *box, | |
41214 | gint spacing); | |
41215 | gint gtk_box_get_spacing (GtkBox *box); | |
41216 | void gtk_box_reorder_child (GtkBox *box, | |
41217 | GtkWidget *child, | |
41218 | gint position); | |
41219 | void gtk_box_query_child_packing (GtkBox *box, | |
41220 | GtkWidget *child, | |
41221 | gboolean *expand, | |
41222 | gboolean *fill, | |
41223 | guint *padding, | |
41224 | GtkPackType *pack_type); | |
41225 | void gtk_box_set_child_packing (GtkBox *box, | |
41226 | GtkWidget *child, | |
41227 | gboolean expand, | |
41228 | gboolean fill, | |
41229 | guint padding, | |
41230 | GtkPackType pack_type); | |
41231 | ||
41232 | ||
41233 | ||
41234 | # 31 "/usr/include/gtk-2.0/gtk/gtkbbox.h" 2 | |
41235 | ||
41236 | ||
41237 | ||
41238 | ||
41239 | #define GTK_TYPE_BUTTON_BOX (gtk_button_box_get_type ()) | |
41240 | #define GTK_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUTTON_BOX, GtkButtonBox)) | |
41241 | #define GTK_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUTTON_BOX, GtkButtonBoxClass)) | |
41242 | #define GTK_IS_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUTTON_BOX)) | |
41243 | #define GTK_IS_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON_BOX)) | |
41244 | #define GTK_BUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUTTON_BOX, GtkButtonBoxClass)) | |
41245 | ||
41246 | ||
41247 | #define GTK_BUTTONBOX_DEFAULT -1 | |
41248 | ||
41249 | typedef struct _GtkButtonBox GtkButtonBox; | |
41250 | typedef struct _GtkButtonBoxClass GtkButtonBoxClass; | |
41251 | ||
41252 | struct _GtkButtonBox | |
41253 | { | |
41254 | GtkBox box; | |
41255 | gint child_min_width; | |
41256 | gint child_min_height; | |
41257 | gint child_ipad_x; | |
41258 | gint child_ipad_y; | |
41259 | GtkButtonBoxStyle layout_style; | |
41260 | }; | |
41261 | ||
41262 | struct _GtkButtonBoxClass | |
41263 | { | |
41264 | GtkBoxClass parent_class; | |
41265 | }; | |
41266 | ||
41267 | ||
41268 | GType gtk_button_box_get_type (void) __attribute__((__const__)); | |
41269 | ||
41270 | GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget); | |
41271 | void gtk_button_box_set_layout (GtkButtonBox *widget, | |
41272 | GtkButtonBoxStyle layout_style); | |
41273 | gboolean gtk_button_box_get_child_secondary (GtkButtonBox *widget, | |
41274 | GtkWidget *child); | |
41275 | void gtk_button_box_set_child_secondary (GtkButtonBox *widget, | |
41276 | GtkWidget *child, | |
41277 | gboolean is_secondary); | |
41278 | ||
41279 | ||
41280 | #define gtk_button_box_set_spacing(b,s) gtk_box_set_spacing (GTK_BOX (b), s) | |
41281 | #define gtk_button_box_get_spacing(b) gtk_box_get_spacing (GTK_BOX (b)) | |
41282 | ||
41283 | void gtk_button_box_set_child_size (GtkButtonBox *widget, | |
41284 | gint min_width, | |
41285 | gint min_height); | |
41286 | void gtk_button_box_set_child_ipadding (GtkButtonBox *widget, | |
41287 | gint ipad_x, | |
41288 | gint ipad_y); | |
41289 | void gtk_button_box_get_child_size (GtkButtonBox *widget, | |
41290 | gint *min_width, | |
41291 | gint *min_height); | |
41292 | void gtk_button_box_get_child_ipadding (GtkButtonBox *widget, | |
41293 | gint *ipad_x, | |
41294 | gint *ipad_y); | |
41295 | ||
41296 | ||
41297 | ||
41298 | void _gtk_button_box_child_requisition (GtkWidget *widget, | |
41299 | int *nvis_children, | |
41300 | int *nvis_secondaries, | |
41301 | int *width, | |
41302 | int *height); | |
41303 | ||
41304 | # 44 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
41305 | ||
41306 | # 1 "/usr/include/gtk-2.0/gtk/gtkbindings.h" 1 | |
41307 | # 31 "/usr/include/gtk-2.0/gtk/gtkbindings.h" | |
41308 | #define __GTK_BINDINGS_H__ | |
41309 | ||
41310 | ||
41311 | ||
41312 | ||
41313 | ||
41314 | ||
41315 | ||
41316 | ||
41317 | ||
41318 | ||
41319 | ||
41320 | ||
41321 | ||
41322 | typedef struct _GtkBindingSet GtkBindingSet; | |
41323 | typedef struct _GtkBindingEntry GtkBindingEntry; | |
41324 | typedef struct _GtkBindingSignal GtkBindingSignal; | |
41325 | typedef struct _GtkBindingArg GtkBindingArg; | |
41326 | ||
41327 | struct _GtkBindingSet | |
41328 | { | |
41329 | gchar *set_name; | |
41330 | gint priority; | |
41331 | GSList *widget_path_pspecs; | |
41332 | GSList *widget_class_pspecs; | |
41333 | GSList *class_branch_pspecs; | |
41334 | GtkBindingEntry *entries; | |
41335 | GtkBindingEntry *current; | |
41336 | guint parsed : 1; | |
41337 | }; | |
41338 | ||
41339 | struct _GtkBindingEntry | |
41340 | { | |
41341 | ||
41342 | ||
41343 | guint keyval; | |
41344 | GdkModifierType modifiers; | |
41345 | ||
41346 | GtkBindingSet *binding_set; | |
41347 | guint destroyed : 1; | |
41348 | guint in_emission : 1; | |
41349 | GtkBindingEntry *set_next; | |
41350 | GtkBindingEntry *hash_next; | |
41351 | GtkBindingSignal *signals; | |
41352 | }; | |
41353 | ||
41354 | struct _GtkBindingSignal | |
41355 | { | |
41356 | GtkBindingSignal *next; | |
41357 | gchar *signal_name; | |
41358 | guint n_args; | |
41359 | GtkBindingArg *args; | |
41360 | }; | |
41361 | ||
41362 | struct _GtkBindingArg | |
41363 | { | |
41364 | GType arg_type; | |
41365 | union { | |
41366 | glong long_data; | |
41367 | gdouble double_data; | |
41368 | gchar *string_data; | |
41369 | } d; | |
41370 | }; | |
41371 | ||
41372 | ||
41373 | ||
41374 | ||
41375 | GtkBindingSet* gtk_binding_set_new (const gchar *set_name); | |
41376 | GtkBindingSet* gtk_binding_set_by_class(gpointer object_class); | |
41377 | GtkBindingSet* gtk_binding_set_find (const gchar *set_name); | |
41378 | gboolean gtk_bindings_activate (GtkObject *object, | |
41379 | guint keyval, | |
41380 | GdkModifierType modifiers); | |
41381 | gboolean gtk_bindings_activate_event (GtkObject *object, | |
41382 | GdkEventKey *event); | |
41383 | gboolean gtk_binding_set_activate (GtkBindingSet *binding_set, | |
41384 | guint keyval, | |
41385 | GdkModifierType modifiers, | |
41386 | GtkObject *object); | |
41387 | #define gtk_binding_entry_add gtk_binding_entry_clear | |
41388 | void gtk_binding_entry_clear (GtkBindingSet *binding_set, | |
41389 | guint keyval, | |
41390 | GdkModifierType modifiers); | |
41391 | void gtk_binding_entry_add_signal (GtkBindingSet *binding_set, | |
41392 | guint keyval, | |
41393 | GdkModifierType modifiers, | |
41394 | const gchar *signal_name, | |
41395 | guint n_args, | |
41396 | ...); | |
41397 | void gtk_binding_set_add_path (GtkBindingSet *binding_set, | |
41398 | GtkPathType path_type, | |
41399 | const gchar *path_pattern, | |
41400 | GtkPathPriorityType priority); | |
41401 | ||
41402 | ||
41403 | ||
41404 | ||
41405 | void gtk_binding_entry_remove (GtkBindingSet *binding_set, | |
41406 | guint keyval, | |
41407 | GdkModifierType modifiers); | |
41408 | void gtk_binding_entry_add_signall (GtkBindingSet *binding_set, | |
41409 | guint keyval, | |
41410 | GdkModifierType modifiers, | |
41411 | const gchar *signal_name, | |
41412 | GSList *binding_args); | |
41413 | guint gtk_binding_parse_binding (GScanner *scanner); | |
41414 | ||
41415 | ||
41416 | void _gtk_binding_reset_parsed (void); | |
41417 | ||
41418 | ||
41419 | ||
41420 | ||
41421 | guint _gtk_binding_signal_new (const gchar *signal_name, | |
41422 | GType itype, | |
41423 | GSignalFlags signal_flags, | |
41424 | GCallback handler, | |
41425 | GSignalAccumulator accumulator, | |
41426 | gpointer accu_data, | |
41427 | GSignalCMarshaller c_marshaller, | |
41428 | GType return_type, | |
41429 | guint n_params, | |
41430 | ...); | |
41431 | ||
41432 | ||
41433 | # 46 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
41434 | ||
41435 | # 1 "/usr/include/gtk-2.0/gtk/gtkbutton.h" 1 | |
41436 | # 28 "/usr/include/gtk-2.0/gtk/gtkbutton.h" | |
41437 | #define __GTK_BUTTON_H__ | |
41438 | ||
41439 | ||
41440 | ||
41441 | ||
41442 | ||
41443 | # 1 "/usr/include/gtk-2.0/gtk/gtkimage.h" 1 | |
41444 | # 28 "/usr/include/gtk-2.0/gtk/gtkimage.h" | |
41445 | #define __GTK_IMAGE_H__ | |
41446 | ||
41447 | ||
41448 | ||
41449 | ||
41450 | ||
41451 | ||
41452 | ||
41453 | ||
41454 | #define GTK_TYPE_IMAGE (gtk_image_get_type ()) | |
41455 | #define GTK_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage)) | |
41456 | #define GTK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE, GtkImageClass)) | |
41457 | #define GTK_IS_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE)) | |
41458 | #define GTK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE)) | |
41459 | #define GTK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE, GtkImageClass)) | |
41460 | ||
41461 | ||
41462 | typedef struct _GtkImage GtkImage; | |
41463 | typedef struct _GtkImageClass GtkImageClass; | |
41464 | ||
41465 | typedef struct _GtkImagePixmapData GtkImagePixmapData; | |
41466 | typedef struct _GtkImageImageData GtkImageImageData; | |
41467 | typedef struct _GtkImagePixbufData GtkImagePixbufData; | |
41468 | typedef struct _GtkImageStockData GtkImageStockData; | |
41469 | typedef struct _GtkImageIconSetData GtkImageIconSetData; | |
41470 | typedef struct _GtkImageAnimationData GtkImageAnimationData; | |
41471 | typedef struct _GtkImageIconNameData GtkImageIconNameData; | |
41472 | ||
41473 | struct _GtkImagePixmapData | |
41474 | { | |
41475 | GdkPixmap *pixmap; | |
41476 | }; | |
41477 | ||
41478 | struct _GtkImageImageData | |
41479 | { | |
41480 | GdkImage *image; | |
41481 | }; | |
41482 | ||
41483 | struct _GtkImagePixbufData | |
41484 | { | |
41485 | GdkPixbuf *pixbuf; | |
41486 | }; | |
41487 | ||
41488 | struct _GtkImageStockData | |
41489 | { | |
41490 | gchar *stock_id; | |
41491 | }; | |
41492 | ||
41493 | struct _GtkImageIconSetData | |
41494 | { | |
41495 | GtkIconSet *icon_set; | |
41496 | }; | |
41497 | ||
41498 | struct _GtkImageAnimationData | |
41499 | { | |
41500 | GdkPixbufAnimation *anim; | |
41501 | GdkPixbufAnimationIter *iter; | |
41502 | guint frame_timeout; | |
41503 | }; | |
41504 | ||
41505 | struct _GtkImageIconNameData | |
41506 | { | |
41507 | gchar *icon_name; | |
41508 | GdkPixbuf *pixbuf; | |
41509 | guint theme_change_id; | |
41510 | }; | |
41511 | ||
41512 | typedef enum | |
41513 | { | |
41514 | GTK_IMAGE_EMPTY, | |
41515 | GTK_IMAGE_PIXMAP, | |
41516 | GTK_IMAGE_IMAGE, | |
41517 | GTK_IMAGE_PIXBUF, | |
41518 | GTK_IMAGE_STOCK, | |
41519 | GTK_IMAGE_ICON_SET, | |
41520 | GTK_IMAGE_ANIMATION, | |
41521 | GTK_IMAGE_ICON_NAME | |
41522 | } GtkImageType; | |
41523 | ||
41524 | struct _GtkImage | |
41525 | { | |
41526 | GtkMisc misc; | |
41527 | ||
41528 | GtkImageType storage_type; | |
41529 | ||
41530 | union | |
41531 | { | |
41532 | GtkImagePixmapData pixmap; | |
41533 | GtkImageImageData image; | |
41534 | GtkImagePixbufData pixbuf; | |
41535 | GtkImageStockData stock; | |
41536 | GtkImageIconSetData icon_set; | |
41537 | GtkImageAnimationData anim; | |
41538 | GtkImageIconNameData name; | |
41539 | } data; | |
41540 | ||
41541 | ||
41542 | GdkBitmap *mask; | |
41543 | ||
41544 | ||
41545 | GtkIconSize icon_size; | |
41546 | }; | |
41547 | ||
41548 | struct _GtkImageClass | |
41549 | { | |
41550 | GtkMiscClass parent_class; | |
41551 | ||
41552 | ||
41553 | void (*_gtk_reserved1) (void); | |
41554 | void (*_gtk_reserved2) (void); | |
41555 | void (*_gtk_reserved3) (void); | |
41556 | void (*_gtk_reserved4) (void); | |
41557 | }; | |
41558 | ||
41559 | ||
41560 | ||
41561 | ||
41562 | ||
41563 | ||
41564 | ||
41565 | GType gtk_image_get_type (void) __attribute__((__const__)); | |
41566 | ||
41567 | GtkWidget* gtk_image_new (void); | |
41568 | GtkWidget* gtk_image_new_from_pixmap (GdkPixmap *pixmap, | |
41569 | GdkBitmap *mask); | |
41570 | GtkWidget* gtk_image_new_from_image (GdkImage *image, | |
41571 | GdkBitmap *mask); | |
41572 | GtkWidget* gtk_image_new_from_file (const gchar *filename); | |
41573 | GtkWidget* gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf); | |
41574 | GtkWidget* gtk_image_new_from_stock (const gchar *stock_id, | |
41575 | GtkIconSize size); | |
41576 | GtkWidget* gtk_image_new_from_icon_set (GtkIconSet *icon_set, | |
41577 | GtkIconSize size); | |
41578 | GtkWidget* gtk_image_new_from_animation (GdkPixbufAnimation *animation); | |
41579 | GtkWidget* gtk_image_new_from_icon_name (const gchar *icon_name, | |
41580 | GtkIconSize size); | |
41581 | ||
41582 | void gtk_image_clear (GtkImage *image); | |
41583 | void gtk_image_set_from_pixmap (GtkImage *image, | |
41584 | GdkPixmap *pixmap, | |
41585 | GdkBitmap *mask); | |
41586 | void gtk_image_set_from_image (GtkImage *image, | |
41587 | GdkImage *gdk_image, | |
41588 | GdkBitmap *mask); | |
41589 | void gtk_image_set_from_file (GtkImage *image, | |
41590 | const gchar *filename); | |
41591 | void gtk_image_set_from_pixbuf (GtkImage *image, | |
41592 | GdkPixbuf *pixbuf); | |
41593 | void gtk_image_set_from_stock (GtkImage *image, | |
41594 | const gchar *stock_id, | |
41595 | GtkIconSize size); | |
41596 | void gtk_image_set_from_icon_set (GtkImage *image, | |
41597 | GtkIconSet *icon_set, | |
41598 | GtkIconSize size); | |
41599 | void gtk_image_set_from_animation (GtkImage *image, | |
41600 | GdkPixbufAnimation *animation); | |
41601 | void gtk_image_set_from_icon_name (GtkImage *image, | |
41602 | const gchar *icon_name, | |
41603 | GtkIconSize size); | |
41604 | void gtk_image_set_pixel_size (GtkImage *image, | |
41605 | gint pixel_size); | |
41606 | ||
41607 | GtkImageType gtk_image_get_storage_type (GtkImage *image); | |
41608 | ||
41609 | void gtk_image_get_pixmap (GtkImage *image, | |
41610 | GdkPixmap **pixmap, | |
41611 | GdkBitmap **mask); | |
41612 | void gtk_image_get_image (GtkImage *image, | |
41613 | GdkImage **gdk_image, | |
41614 | GdkBitmap **mask); | |
41615 | GdkPixbuf* gtk_image_get_pixbuf (GtkImage *image); | |
41616 | void gtk_image_get_stock (GtkImage *image, | |
41617 | gchar **stock_id, | |
41618 | GtkIconSize *size); | |
41619 | void gtk_image_get_icon_set (GtkImage *image, | |
41620 | GtkIconSet **icon_set, | |
41621 | GtkIconSize *size); | |
41622 | GdkPixbufAnimation* gtk_image_get_animation (GtkImage *image); | |
41623 | void gtk_image_get_icon_name (GtkImage *image, | |
41624 | const gchar **icon_name, | |
41625 | GtkIconSize *size); | |
41626 | gint gtk_image_get_pixel_size (GtkImage *image); | |
41627 | ||
41628 | ||
41629 | ||
41630 | ||
41631 | void gtk_image_set (GtkImage *image, | |
41632 | GdkImage *val, | |
41633 | GdkBitmap *mask); | |
41634 | void gtk_image_get (GtkImage *image, | |
41635 | GdkImage **val, | |
41636 | GdkBitmap **mask); | |
41637 | ||
41638 | ||
41639 | ||
41640 | # 35 "/usr/include/gtk-2.0/gtk/gtkbutton.h" 2 | |
41641 | ||
41642 | ||
41643 | ||
41644 | ||
41645 | #define GTK_TYPE_BUTTON (gtk_button_get_type ()) | |
41646 | #define GTK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUTTON, GtkButton)) | |
41647 | #define GTK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUTTON, GtkButtonClass)) | |
41648 | #define GTK_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUTTON)) | |
41649 | #define GTK_IS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON)) | |
41650 | #define GTK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUTTON, GtkButtonClass)) | |
41651 | ||
41652 | typedef struct _GtkButton GtkButton; | |
41653 | typedef struct _GtkButtonClass GtkButtonClass; | |
41654 | ||
41655 | struct _GtkButton | |
41656 | { | |
41657 | GtkBin bin; | |
41658 | ||
41659 | GdkWindow *event_window; | |
41660 | ||
41661 | gchar *label_text; | |
41662 | ||
41663 | guint activate_timeout; | |
41664 | ||
41665 | guint constructed : 1; | |
41666 | guint in_button : 1; | |
41667 | guint button_down : 1; | |
41668 | guint relief : 2; | |
41669 | guint use_underline : 1; | |
41670 | guint use_stock : 1; | |
41671 | guint depressed : 1; | |
41672 | guint depress_on_activate : 1; | |
41673 | guint focus_on_click : 1; | |
41674 | }; | |
41675 | ||
41676 | struct _GtkButtonClass | |
41677 | { | |
41678 | GtkBinClass parent_class; | |
41679 | ||
41680 | void (* pressed) (GtkButton *button); | |
41681 | void (* released) (GtkButton *button); | |
41682 | void (* clicked) (GtkButton *button); | |
41683 | void (* enter) (GtkButton *button); | |
41684 | void (* leave) (GtkButton *button); | |
41685 | void (* activate) (GtkButton *button); | |
41686 | ||
41687 | ||
41688 | void (*_gtk_reserved1) (void); | |
41689 | void (*_gtk_reserved2) (void); | |
41690 | void (*_gtk_reserved3) (void); | |
41691 | void (*_gtk_reserved4) (void); | |
41692 | }; | |
41693 | ||
41694 | ||
41695 | GType gtk_button_get_type (void) __attribute__((__const__)); | |
41696 | GtkWidget* gtk_button_new (void); | |
41697 | GtkWidget* gtk_button_new_with_label (const gchar *label); | |
41698 | GtkWidget* gtk_button_new_from_stock (const gchar *stock_id); | |
41699 | GtkWidget* gtk_button_new_with_mnemonic (const gchar *label); | |
41700 | void gtk_button_pressed (GtkButton *button); | |
41701 | void gtk_button_released (GtkButton *button); | |
41702 | void gtk_button_clicked (GtkButton *button); | |
41703 | void gtk_button_enter (GtkButton *button); | |
41704 | void gtk_button_leave (GtkButton *button); | |
41705 | ||
41706 | void gtk_button_set_relief (GtkButton *button, | |
41707 | GtkReliefStyle newstyle); | |
41708 | GtkReliefStyle gtk_button_get_relief (GtkButton *button); | |
41709 | void gtk_button_set_label (GtkButton *button, | |
41710 | const gchar *label); | |
41711 | const gchar *gtk_button_get_label (GtkButton *button); | |
41712 | void gtk_button_set_use_underline (GtkButton *button, | |
41713 | gboolean use_underline); | |
41714 | gboolean gtk_button_get_use_underline (GtkButton *button); | |
41715 | void gtk_button_set_use_stock (GtkButton *button, | |
41716 | gboolean use_stock); | |
41717 | gboolean gtk_button_get_use_stock (GtkButton *button); | |
41718 | void gtk_button_set_focus_on_click (GtkButton *button, | |
41719 | gboolean focus_on_click); | |
41720 | gboolean gtk_button_get_focus_on_click (GtkButton *button); | |
41721 | void gtk_button_set_alignment (GtkButton *button, | |
41722 | gfloat xalign, | |
41723 | gfloat yalign); | |
41724 | void gtk_button_get_alignment (GtkButton *button, | |
41725 | gfloat *xalign, | |
41726 | gfloat *yalign); | |
41727 | void gtk_button_set_image (GtkButton *button, | |
41728 | GtkWidget *image); | |
41729 | GtkWidget* gtk_button_get_image (GtkButton *button); | |
41730 | ||
41731 | ||
41732 | void _gtk_button_set_depressed (GtkButton *button, | |
41733 | gboolean depressed); | |
41734 | void _gtk_button_paint (GtkButton *button, | |
41735 | GdkRectangle *area, | |
41736 | GtkStateType state_type, | |
41737 | GtkShadowType shadow_type, | |
41738 | const gchar *main_detail, | |
41739 | const gchar *default_detail); | |
41740 | ||
41741 | ||
41742 | # 48 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
41743 | # 1 "/usr/include/gtk-2.0/gtk/gtkcalendar.h" 1 | |
41744 | # 30 "/usr/include/gtk-2.0/gtk/gtkcalendar.h" | |
41745 | #define __GTK_CALENDAR_H__ | |
41746 | ||
41747 | ||
41748 | ||
41749 | ||
41750 | ||
41751 | # 1 "/usr/include/gtk-2.0/gtk/gtksignal.h" 1 | |
41752 | # 28 "/usr/include/gtk-2.0/gtk/gtksignal.h" | |
41753 | #define __GTK_SIGNAL_H__ | |
41754 | ||
41755 | ||
41756 | ||
41757 | ||
41758 | # 1 "/usr/include/gtk-2.0/gtk/gtkmarshal.h" 1 | |
41759 | ||
41760 | ||
41761 | ||
41762 | #define __gtk_marshal_MARSHAL_H__ | |
41763 | ||
41764 | ||
41765 | ||
41766 | ||
41767 | ||
41768 | ||
41769 | extern void gtk_marshal_BOOLEAN__VOID (GClosure *closure, | |
41770 | GValue *return_value, | |
41771 | guint n_param_values, | |
41772 | const GValue *param_values, | |
41773 | gpointer invocation_hint, | |
41774 | gpointer marshal_data); | |
41775 | #define gtk_marshal_BOOL__NONE gtk_marshal_BOOLEAN__VOID | |
41776 | ||
41777 | ||
41778 | extern void gtk_marshal_BOOLEAN__POINTER (GClosure *closure, | |
41779 | GValue *return_value, | |
41780 | guint n_param_values, | |
41781 | const GValue *param_values, | |
41782 | gpointer invocation_hint, | |
41783 | gpointer marshal_data); | |
41784 | #define gtk_marshal_BOOL__POINTER gtk_marshal_BOOLEAN__POINTER | |
41785 | ||
41786 | ||
41787 | extern void gtk_marshal_BOOLEAN__POINTER_POINTER_INT_INT (GClosure *closure, | |
41788 | GValue *return_value, | |
41789 | guint n_param_values, | |
41790 | const GValue *param_values, | |
41791 | gpointer invocation_hint, | |
41792 | gpointer marshal_data); | |
41793 | #define gtk_marshal_BOOL__POINTER_POINTER_INT_INT gtk_marshal_BOOLEAN__POINTER_POINTER_INT_INT | |
41794 | ||
41795 | ||
41796 | extern void gtk_marshal_BOOLEAN__POINTER_INT_INT (GClosure *closure, | |
41797 | GValue *return_value, | |
41798 | guint n_param_values, | |
41799 | const GValue *param_values, | |
41800 | gpointer invocation_hint, | |
41801 | gpointer marshal_data); | |
41802 | #define gtk_marshal_BOOL__POINTER_INT_INT gtk_marshal_BOOLEAN__POINTER_INT_INT | |
41803 | ||
41804 | ||
41805 | extern void gtk_marshal_BOOLEAN__POINTER_INT_INT_UINT (GClosure *closure, | |
41806 | GValue *return_value, | |
41807 | guint n_param_values, | |
41808 | const GValue *param_values, | |
41809 | gpointer invocation_hint, | |
41810 | gpointer marshal_data); | |
41811 | #define gtk_marshal_BOOL__POINTER_INT_INT_UINT gtk_marshal_BOOLEAN__POINTER_INT_INT_UINT | |
41812 | ||
41813 | ||
41814 | extern void gtk_marshal_BOOLEAN__POINTER_STRING_STRING_POINTER (GClosure *closure, | |
41815 | GValue *return_value, | |
41816 | guint n_param_values, | |
41817 | const GValue *param_values, | |
41818 | gpointer invocation_hint, | |
41819 | gpointer marshal_data); | |
41820 | #define gtk_marshal_BOOL__POINTER_STRING_STRING_POINTER gtk_marshal_BOOLEAN__POINTER_STRING_STRING_POINTER | |
41821 | ||
41822 | ||
41823 | extern void gtk_marshal_ENUM__ENUM (GClosure *closure, | |
41824 | GValue *return_value, | |
41825 | guint n_param_values, | |
41826 | const GValue *param_values, | |
41827 | gpointer invocation_hint, | |
41828 | gpointer marshal_data); | |
41829 | ||
41830 | ||
41831 | extern void gtk_marshal_INT__POINTER (GClosure *closure, | |
41832 | GValue *return_value, | |
41833 | guint n_param_values, | |
41834 | const GValue *param_values, | |
41835 | gpointer invocation_hint, | |
41836 | gpointer marshal_data); | |
41837 | ||
41838 | ||
41839 | extern void gtk_marshal_INT__POINTER_CHAR_CHAR (GClosure *closure, | |
41840 | GValue *return_value, | |
41841 | guint n_param_values, | |
41842 | const GValue *param_values, | |
41843 | gpointer invocation_hint, | |
41844 | gpointer marshal_data); | |
41845 | ||
41846 | ||
41847 | #define gtk_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN | |
41848 | #define gtk_marshal_NONE__BOOL gtk_marshal_VOID__BOOLEAN | |
41849 | ||
41850 | ||
41851 | #define gtk_marshal_VOID__BOXED g_cclosure_marshal_VOID__BOXED | |
41852 | #define gtk_marshal_NONE__BOXED gtk_marshal_VOID__BOXED | |
41853 | ||
41854 | ||
41855 | #define gtk_marshal_VOID__ENUM g_cclosure_marshal_VOID__ENUM | |
41856 | #define gtk_marshal_NONE__ENUM gtk_marshal_VOID__ENUM | |
41857 | ||
41858 | ||
41859 | extern void gtk_marshal_VOID__ENUM_FLOAT (GClosure *closure, | |
41860 | GValue *return_value, | |
41861 | guint n_param_values, | |
41862 | const GValue *param_values, | |
41863 | gpointer invocation_hint, | |
41864 | gpointer marshal_data); | |
41865 | #define gtk_marshal_NONE__ENUM_FLOAT gtk_marshal_VOID__ENUM_FLOAT | |
41866 | ||
41867 | ||
41868 | extern void gtk_marshal_VOID__ENUM_FLOAT_BOOLEAN (GClosure *closure, | |
41869 | GValue *return_value, | |
41870 | guint n_param_values, | |
41871 | const GValue *param_values, | |
41872 | gpointer invocation_hint, | |
41873 | gpointer marshal_data); | |
41874 | #define gtk_marshal_NONE__ENUM_FLOAT_BOOL gtk_marshal_VOID__ENUM_FLOAT_BOOLEAN | |
41875 | ||
41876 | ||
41877 | #define gtk_marshal_VOID__INT g_cclosure_marshal_VOID__INT | |
41878 | #define gtk_marshal_NONE__INT gtk_marshal_VOID__INT | |
41879 | ||
41880 | ||
41881 | extern void gtk_marshal_VOID__INT_INT (GClosure *closure, | |
41882 | GValue *return_value, | |
41883 | guint n_param_values, | |
41884 | const GValue *param_values, | |
41885 | gpointer invocation_hint, | |
41886 | gpointer marshal_data); | |
41887 | #define gtk_marshal_NONE__INT_INT gtk_marshal_VOID__INT_INT | |
41888 | ||
41889 | ||
41890 | extern void gtk_marshal_VOID__INT_INT_POINTER (GClosure *closure, | |
41891 | GValue *return_value, | |
41892 | guint n_param_values, | |
41893 | const GValue *param_values, | |
41894 | gpointer invocation_hint, | |
41895 | gpointer marshal_data); | |
41896 | #define gtk_marshal_NONE__INT_INT_POINTER gtk_marshal_VOID__INT_INT_POINTER | |
41897 | ||
41898 | ||
41899 | #define gtk_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID | |
41900 | #define gtk_marshal_NONE__NONE gtk_marshal_VOID__VOID | |
41901 | ||
41902 | ||
41903 | #define gtk_marshal_VOID__OBJECT g_cclosure_marshal_VOID__OBJECT | |
41904 | #define gtk_marshal_NONE__OBJECT gtk_marshal_VOID__OBJECT | |
41905 | ||
41906 | ||
41907 | #define gtk_marshal_VOID__POINTER g_cclosure_marshal_VOID__POINTER | |
41908 | #define gtk_marshal_NONE__POINTER gtk_marshal_VOID__POINTER | |
41909 | ||
41910 | ||
41911 | extern void gtk_marshal_VOID__POINTER_INT (GClosure *closure, | |
41912 | GValue *return_value, | |
41913 | guint n_param_values, | |
41914 | const GValue *param_values, | |
41915 | gpointer invocation_hint, | |
41916 | gpointer marshal_data); | |
41917 | #define gtk_marshal_NONE__POINTER_INT gtk_marshal_VOID__POINTER_INT | |
41918 | ||
41919 | ||
41920 | extern void gtk_marshal_VOID__POINTER_POINTER (GClosure *closure, | |
41921 | GValue *return_value, | |
41922 | guint n_param_values, | |
41923 | const GValue *param_values, | |
41924 | gpointer invocation_hint, | |
41925 | gpointer marshal_data); | |
41926 | #define gtk_marshal_NONE__POINTER_POINTER gtk_marshal_VOID__POINTER_POINTER | |
41927 | ||
41928 | ||
41929 | extern void gtk_marshal_VOID__POINTER_POINTER_POINTER (GClosure *closure, | |
41930 | GValue *return_value, | |
41931 | guint n_param_values, | |
41932 | const GValue *param_values, | |
41933 | gpointer invocation_hint, | |
41934 | gpointer marshal_data); | |
41935 | #define gtk_marshal_NONE__POINTER_POINTER_POINTER gtk_marshal_VOID__POINTER_POINTER_POINTER | |
41936 | ||
41937 | ||
41938 | extern void gtk_marshal_VOID__POINTER_STRING_STRING (GClosure *closure, | |
41939 | GValue *return_value, | |
41940 | guint n_param_values, | |
41941 | const GValue *param_values, | |
41942 | gpointer invocation_hint, | |
41943 | gpointer marshal_data); | |
41944 | #define gtk_marshal_NONE__POINTER_STRING_STRING gtk_marshal_VOID__POINTER_STRING_STRING | |
41945 | ||
41946 | ||
41947 | extern void gtk_marshal_VOID__POINTER_UINT (GClosure *closure, | |
41948 | GValue *return_value, | |
41949 | guint n_param_values, | |
41950 | const GValue *param_values, | |
41951 | gpointer invocation_hint, | |
41952 | gpointer marshal_data); | |
41953 | #define gtk_marshal_NONE__POINTER_UINT gtk_marshal_VOID__POINTER_UINT | |
41954 | ||
41955 | ||
41956 | extern void gtk_marshal_VOID__POINTER_UINT_ENUM (GClosure *closure, | |
41957 | GValue *return_value, | |
41958 | guint n_param_values, | |
41959 | const GValue *param_values, | |
41960 | gpointer invocation_hint, | |
41961 | gpointer marshal_data); | |
41962 | #define gtk_marshal_NONE__POINTER_UINT_ENUM gtk_marshal_VOID__POINTER_UINT_ENUM | |
41963 | ||
41964 | ||
41965 | extern void gtk_marshal_VOID__POINTER_POINTER_UINT_UINT (GClosure *closure, | |
41966 | GValue *return_value, | |
41967 | guint n_param_values, | |
41968 | const GValue *param_values, | |
41969 | gpointer invocation_hint, | |
41970 | gpointer marshal_data); | |
41971 | #define gtk_marshal_NONE__POINTER_POINTER_UINT_UINT gtk_marshal_VOID__POINTER_POINTER_UINT_UINT | |
41972 | ||
41973 | ||
41974 | extern void gtk_marshal_VOID__POINTER_INT_INT_POINTER_UINT_UINT (GClosure *closure, | |
41975 | GValue *return_value, | |
41976 | guint n_param_values, | |
41977 | const GValue *param_values, | |
41978 | gpointer invocation_hint, | |
41979 | gpointer marshal_data); | |
41980 | #define gtk_marshal_NONE__POINTER_INT_INT_POINTER_UINT_UINT gtk_marshal_VOID__POINTER_INT_INT_POINTER_UINT_UINT | |
41981 | ||
41982 | ||
41983 | extern void gtk_marshal_VOID__POINTER_UINT_UINT (GClosure *closure, | |
41984 | GValue *return_value, | |
41985 | guint n_param_values, | |
41986 | const GValue *param_values, | |
41987 | gpointer invocation_hint, | |
41988 | gpointer marshal_data); | |
41989 | #define gtk_marshal_NONE__POINTER_UINT_UINT gtk_marshal_VOID__POINTER_UINT_UINT | |
41990 | ||
41991 | ||
41992 | ||
41993 | ||
41994 | #define gtk_marshal_VOID__STRING g_cclosure_marshal_VOID__STRING | |
41995 | #define gtk_marshal_NONE__STRING gtk_marshal_VOID__STRING | |
41996 | ||
41997 | ||
41998 | extern void gtk_marshal_VOID__STRING_INT_POINTER (GClosure *closure, | |
41999 | GValue *return_value, | |
42000 | guint n_param_values, | |
42001 | const GValue *param_values, | |
42002 | gpointer invocation_hint, | |
42003 | gpointer marshal_data); | |
42004 | #define gtk_marshal_NONE__STRING_INT_POINTER gtk_marshal_VOID__STRING_INT_POINTER | |
42005 | ||
42006 | ||
42007 | #define gtk_marshal_VOID__UINT g_cclosure_marshal_VOID__UINT | |
42008 | #define gtk_marshal_NONE__UINT gtk_marshal_VOID__UINT | |
42009 | ||
42010 | ||
42011 | extern void gtk_marshal_VOID__UINT_POINTER_UINT_ENUM_ENUM_POINTER (GClosure *closure, | |
42012 | GValue *return_value, | |
42013 | guint n_param_values, | |
42014 | const GValue *param_values, | |
42015 | gpointer invocation_hint, | |
42016 | gpointer marshal_data); | |
42017 | #define gtk_marshal_NONE__UINT_POINTER_UINT_ENUM_ENUM_POINTER gtk_marshal_VOID__UINT_POINTER_UINT_ENUM_ENUM_POINTER | |
42018 | ||
42019 | ||
42020 | extern void gtk_marshal_VOID__UINT_POINTER_UINT_UINT_ENUM (GClosure *closure, | |
42021 | GValue *return_value, | |
42022 | guint n_param_values, | |
42023 | const GValue *param_values, | |
42024 | gpointer invocation_hint, | |
42025 | gpointer marshal_data); | |
42026 | #define gtk_marshal_NONE__UINT_POINTER_UINT_UINT_ENUM gtk_marshal_VOID__UINT_POINTER_UINT_UINT_ENUM | |
42027 | ||
42028 | ||
42029 | extern void gtk_marshal_VOID__UINT_STRING (GClosure *closure, | |
42030 | GValue *return_value, | |
42031 | guint n_param_values, | |
42032 | const GValue *param_values, | |
42033 | gpointer invocation_hint, | |
42034 | gpointer marshal_data); | |
42035 | #define gtk_marshal_NONE__UINT_STRING gtk_marshal_VOID__UINT_STRING | |
42036 | ||
42037 | ||
42038 | # 34 "/usr/include/gtk-2.0/gtk/gtksignal.h" 2 | |
42039 | ||
42040 | ||
42041 | ||
42042 | ||
42043 | ||
42044 | #define gtk_signal_default_marshaller g_cclosure_marshal_VOID__VOID | |
42045 | ||
42046 | ||
42047 | ||
42048 | #define GTK_SIGNAL_OFFSET GTK_STRUCT_OFFSET | |
42049 | #define gtk_signal_lookup(name,object_type) g_signal_lookup ((name), (object_type)) | |
42050 | ||
42051 | #define gtk_signal_name(signal_id) g_signal_name (signal_id) | |
42052 | ||
42053 | #define gtk_signal_emit_stop(object,signal_id) g_signal_stop_emission ((object), (signal_id), 0) | |
42054 | ||
42055 | #define gtk_signal_connect(object,name,func,func_data) gtk_signal_connect_full ((object), (name), (func), 0, (func_data), 0, 0, 0) | |
42056 | ||
42057 | #define gtk_signal_connect_after(object,name,func,func_data) gtk_signal_connect_full ((object), (name), (func), 0, (func_data), 0, 0, 1) | |
42058 | ||
42059 | #define gtk_signal_connect_object(object,name,func,slot_object) gtk_signal_connect_full ((object), (name), (func), 0, (slot_object), 0, 1, 0) | |
42060 | ||
42061 | #define gtk_signal_connect_object_after(object,name,func,slot_object) gtk_signal_connect_full ((object), (name), (func), 0, (slot_object), 0, 1, 1) | |
42062 | ||
42063 | #define gtk_signal_disconnect(object,handler_id) g_signal_handler_disconnect ((object), (handler_id)) | |
42064 | ||
42065 | #define gtk_signal_handler_block(object,handler_id) g_signal_handler_block ((object), (handler_id)) | |
42066 | ||
42067 | #define gtk_signal_handler_unblock(object,handler_id) g_signal_handler_unblock ((object), (handler_id)) | |
42068 | ||
42069 | #define gtk_signal_disconnect_by_func(object,func,data) gtk_signal_compat_matched ((object), (func), (data), (GSignalMatchType)(G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), 0) | |
42070 | ||
42071 | ||
42072 | ||
42073 | #define gtk_signal_disconnect_by_data(object,data) gtk_signal_compat_matched ((object), 0, (data), G_SIGNAL_MATCH_DATA, 0) | |
42074 | ||
42075 | #define gtk_signal_handler_block_by_func(object,func,data) gtk_signal_compat_matched ((object), (func), (data), (GSignalMatchType)(G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), 1) | |
42076 | ||
42077 | ||
42078 | ||
42079 | #define gtk_signal_handler_block_by_data(object,data) gtk_signal_compat_matched ((object), 0, (data), G_SIGNAL_MATCH_DATA, 1) | |
42080 | ||
42081 | #define gtk_signal_handler_unblock_by_func(object,func,data) gtk_signal_compat_matched ((object), (func), (data), (GSignalMatchType)(G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), 2) | |
42082 | ||
42083 | ||
42084 | ||
42085 | #define gtk_signal_handler_unblock_by_data(object,data) gtk_signal_compat_matched ((object), 0, (data), G_SIGNAL_MATCH_DATA, 2) | |
42086 | ||
42087 | #define gtk_signal_handler_pending(object,signal_id,may_be_blocked) g_signal_has_handler_pending ((object), (signal_id), 0, (may_be_blocked)) | |
42088 | ||
42089 | #define gtk_signal_handler_pending_by_func(object,signal_id,may_be_blocked,func,data) (g_signal_handler_find ((object), (GSignalMatchType)(G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA | ((may_be_blocked) ? 0 : G_SIGNAL_MATCH_UNBLOCKED)), (signal_id), 0, 0, (func), (data)) != 0) | |
42090 | # 94 "/usr/include/gtk-2.0/gtk/gtksignal.h" | |
42091 | guint gtk_signal_newv (const gchar *name, | |
42092 | GtkSignalRunType signal_flags, | |
42093 | GtkType object_type, | |
42094 | guint function_offset, | |
42095 | GtkSignalMarshaller marshaller, | |
42096 | GtkType return_val, | |
42097 | guint n_args, | |
42098 | GtkType *args); | |
42099 | guint gtk_signal_new (const gchar *name, | |
42100 | GtkSignalRunType signal_flags, | |
42101 | GtkType object_type, | |
42102 | guint function_offset, | |
42103 | GtkSignalMarshaller marshaller, | |
42104 | GtkType return_val, | |
42105 | guint n_args, | |
42106 | ...); | |
42107 | void gtk_signal_emit_stop_by_name (GtkObject *object, | |
42108 | const gchar *name); | |
42109 | void gtk_signal_connect_object_while_alive (GtkObject *object, | |
42110 | const gchar *name, | |
42111 | GtkSignalFunc func, | |
42112 | GtkObject *alive_object); | |
42113 | void gtk_signal_connect_while_alive (GtkObject *object, | |
42114 | const gchar *name, | |
42115 | GtkSignalFunc func, | |
42116 | gpointer func_data, | |
42117 | GtkObject *alive_object); | |
42118 | gulong gtk_signal_connect_full (GtkObject *object, | |
42119 | const gchar *name, | |
42120 | GtkSignalFunc func, | |
42121 | GtkCallbackMarshal unsupported, | |
42122 | gpointer data, | |
42123 | GtkDestroyNotify destroy_func, | |
42124 | gint object_signal, | |
42125 | gint after); | |
42126 | void gtk_signal_emitv (GtkObject *object, | |
42127 | guint signal_id, | |
42128 | GtkArg *args); | |
42129 | void gtk_signal_emit (GtkObject *object, | |
42130 | guint signal_id, | |
42131 | ...); | |
42132 | void gtk_signal_emit_by_name (GtkObject *object, | |
42133 | const gchar *name, | |
42134 | ...); | |
42135 | void gtk_signal_emitv_by_name (GtkObject *object, | |
42136 | const gchar *name, | |
42137 | GtkArg *args); | |
42138 | void gtk_signal_compat_matched (GtkObject *object, | |
42139 | GtkSignalFunc func, | |
42140 | gpointer data, | |
42141 | GSignalMatchType match, | |
42142 | guint action); | |
42143 | ||
42144 | ||
42145 | ||
42146 | ||
42147 | # 37 "/usr/include/gtk-2.0/gtk/gtkcalendar.h" 2 | |
42148 | ||
42149 | ||
42150 | ||
42151 | ||
42152 | #define GTK_TYPE_CALENDAR (gtk_calendar_get_type ()) | |
42153 | #define GTK_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CALENDAR, GtkCalendar)) | |
42154 | #define GTK_CALENDAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CALENDAR, GtkCalendarClass)) | |
42155 | #define GTK_IS_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CALENDAR)) | |
42156 | #define GTK_IS_CALENDAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CALENDAR)) | |
42157 | #define GTK_CALENDAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CALENDAR, GtkCalendarClass)) | |
42158 | ||
42159 | ||
42160 | typedef struct _GtkCalendar GtkCalendar; | |
42161 | typedef struct _GtkCalendarClass GtkCalendarClass; | |
42162 | ||
42163 | typedef struct _GtkCalendarPrivate GtkCalendarPrivate; | |
42164 | ||
42165 | typedef enum | |
42166 | { | |
42167 | GTK_CALENDAR_SHOW_HEADING = 1 << 0, | |
42168 | GTK_CALENDAR_SHOW_DAY_NAMES = 1 << 1, | |
42169 | GTK_CALENDAR_NO_MONTH_CHANGE = 1 << 2, | |
42170 | GTK_CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3, | |
42171 | GTK_CALENDAR_WEEK_START_MONDAY = 1 << 4 | |
42172 | } GtkCalendarDisplayOptions; | |
42173 | ||
42174 | struct _GtkCalendar | |
42175 | { | |
42176 | GtkWidget widget; | |
42177 | ||
42178 | GtkStyle *header_style; | |
42179 | GtkStyle *label_style; | |
42180 | ||
42181 | gint month; | |
42182 | gint year; | |
42183 | gint selected_day; | |
42184 | ||
42185 | gint day_month[6][7]; | |
42186 | gint day[6][7]; | |
42187 | ||
42188 | gint num_marked_dates; | |
42189 | gint marked_date[31]; | |
42190 | GtkCalendarDisplayOptions display_flags; | |
42191 | GdkColor marked_date_color[31]; | |
42192 | ||
42193 | GdkGC *gc; | |
42194 | GdkGC *xor_gc; | |
42195 | ||
42196 | gint focus_row; | |
42197 | gint focus_col; | |
42198 | ||
42199 | gint highlight_row; | |
42200 | gint highlight_col; | |
42201 | ||
42202 | GtkCalendarPrivate *priv; | |
42203 | gchar grow_space [32]; | |
42204 | ||
42205 | ||
42206 | void (*_gtk_reserved1) (void); | |
42207 | void (*_gtk_reserved2) (void); | |
42208 | void (*_gtk_reserved3) (void); | |
42209 | void (*_gtk_reserved4) (void); | |
42210 | }; | |
42211 | ||
42212 | struct _GtkCalendarClass | |
42213 | { | |
42214 | GtkWidgetClass parent_class; | |
42215 | ||
42216 | ||
42217 | void (* month_changed) (GtkCalendar *calendar); | |
42218 | void (* day_selected) (GtkCalendar *calendar); | |
42219 | void (* day_selected_double_click) (GtkCalendar *calendar); | |
42220 | void (* prev_month) (GtkCalendar *calendar); | |
42221 | void (* next_month) (GtkCalendar *calendar); | |
42222 | void (* prev_year) (GtkCalendar *calendar); | |
42223 | void (* next_year) (GtkCalendar *calendar); | |
42224 | ||
42225 | }; | |
42226 | ||
42227 | ||
42228 | GType gtk_calendar_get_type (void) __attribute__((__const__)); | |
42229 | GtkWidget* gtk_calendar_new (void); | |
42230 | ||
42231 | gboolean gtk_calendar_select_month (GtkCalendar *calendar, | |
42232 | guint month, | |
42233 | guint year); | |
42234 | void gtk_calendar_select_day (GtkCalendar *calendar, | |
42235 | guint day); | |
42236 | ||
42237 | gboolean gtk_calendar_mark_day (GtkCalendar *calendar, | |
42238 | guint day); | |
42239 | gboolean gtk_calendar_unmark_day (GtkCalendar *calendar, | |
42240 | guint day); | |
42241 | void gtk_calendar_clear_marks (GtkCalendar *calendar); | |
42242 | ||
42243 | ||
42244 | void gtk_calendar_set_display_options (GtkCalendar *calendar, | |
42245 | GtkCalendarDisplayOptions flags); | |
42246 | GtkCalendarDisplayOptions | |
42247 | gtk_calendar_get_display_options (GtkCalendar *calendar); | |
42248 | ||
42249 | void gtk_calendar_display_options (GtkCalendar *calendar, | |
42250 | GtkCalendarDisplayOptions flags); | |
42251 | ||
42252 | ||
42253 | void gtk_calendar_get_date (GtkCalendar *calendar, | |
42254 | guint *year, | |
42255 | guint *month, | |
42256 | guint *day); | |
42257 | ||
42258 | void gtk_calendar_freeze (GtkCalendar *calendar); | |
42259 | void gtk_calendar_thaw (GtkCalendar *calendar); | |
42260 | ||
42261 | ||
42262 | ||
42263 | # 49 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
42264 | # 1 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h" 1 | |
42265 | # 21 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h" | |
42266 | #define __GTK_CELL_LAYOUT_H__ | |
42267 | ||
42268 | ||
42269 | ||
42270 | # 1 "/usr/include/gtk-2.0/gtk/gtkcellrenderer.h" 1 | |
42271 | # 21 "/usr/include/gtk-2.0/gtk/gtkcellrenderer.h" | |
42272 | #define __GTK_CELL_RENDERER_H__ | |
42273 | ||
42274 | ||
42275 | ||
42276 | # 1 "/usr/include/gtk-2.0/gtk/gtkcelleditable.h" 1 | |
42277 | # 21 "/usr/include/gtk-2.0/gtk/gtkcelleditable.h" | |
42278 | #define __GTK_CELL_EDITABLE_H__ | |
42279 | ||
42280 | ||
42281 | ||
42282 | ||
42283 | ||
42284 | #define GTK_TYPE_CELL_EDITABLE (gtk_cell_editable_get_type ()) | |
42285 | #define GTK_CELL_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditable)) | |
42286 | #define GTK_CELL_EDITABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditableIface)) | |
42287 | #define GTK_IS_CELL_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_EDITABLE)) | |
42288 | #define GTK_CELL_EDITABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditableIface)) | |
42289 | ||
42290 | typedef struct _GtkCellEditable GtkCellEditable; | |
42291 | typedef struct _GtkCellEditableIface GtkCellEditableIface; | |
42292 | ||
42293 | struct _GtkCellEditableIface | |
42294 | { | |
42295 | GTypeInterface g_iface; | |
42296 | ||
42297 | ||
42298 | void (* editing_done) (GtkCellEditable *cell_editable); | |
42299 | void (* remove_widget) (GtkCellEditable *cell_editable); | |
42300 | ||
42301 | ||
42302 | void (* start_editing) (GtkCellEditable *cell_editable, | |
42303 | GdkEvent *event); | |
42304 | }; | |
42305 | ||
42306 | ||
42307 | GType gtk_cell_editable_get_type (void) __attribute__((__const__)); | |
42308 | ||
42309 | void gtk_cell_editable_start_editing (GtkCellEditable *cell_editable, | |
42310 | GdkEvent *event); | |
42311 | void gtk_cell_editable_editing_done (GtkCellEditable *cell_editable); | |
42312 | void gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable); | |
42313 | ||
42314 | ||
42315 | ||
42316 | # 26 "/usr/include/gtk-2.0/gtk/gtkcellrenderer.h" 2 | |
42317 | ||
42318 | ||
42319 | ||
42320 | typedef enum | |
42321 | { | |
42322 | GTK_CELL_RENDERER_SELECTED = 1 << 0, | |
42323 | GTK_CELL_RENDERER_PRELIT = 1 << 1, | |
42324 | GTK_CELL_RENDERER_INSENSITIVE = 1 << 2, | |
42325 | ||
42326 | GTK_CELL_RENDERER_SORTED = 1 << 3, | |
42327 | GTK_CELL_RENDERER_FOCUSED = 1 << 4 | |
42328 | } GtkCellRendererState; | |
42329 | ||
42330 | typedef enum | |
42331 | { | |
42332 | GTK_CELL_RENDERER_MODE_INERT, | |
42333 | GTK_CELL_RENDERER_MODE_ACTIVATABLE, | |
42334 | GTK_CELL_RENDERER_MODE_EDITABLE | |
42335 | } GtkCellRendererMode; | |
42336 | ||
42337 | #define GTK_TYPE_CELL_RENDERER (gtk_cell_renderer_get_type ()) | |
42338 | #define GTK_CELL_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER, GtkCellRenderer)) | |
42339 | #define GTK_CELL_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER, GtkCellRendererClass)) | |
42340 | #define GTK_IS_CELL_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER)) | |
42341 | #define GTK_IS_CELL_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER)) | |
42342 | #define GTK_CELL_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER, GtkCellRendererClass)) | |
42343 | ||
42344 | typedef struct _GtkCellRenderer GtkCellRenderer; | |
42345 | typedef struct _GtkCellRendererClass GtkCellRendererClass; | |
42346 | ||
42347 | struct _GtkCellRenderer | |
42348 | { | |
42349 | GtkObject parent; | |
42350 | ||
42351 | gfloat xalign; | |
42352 | gfloat yalign; | |
42353 | ||
42354 | gint width; | |
42355 | gint height; | |
42356 | ||
42357 | guint16 xpad; | |
42358 | guint16 ypad; | |
42359 | ||
42360 | guint mode : 2; | |
42361 | guint visible : 1; | |
42362 | guint is_expander : 1; | |
42363 | guint is_expanded : 1; | |
42364 | guint cell_background_set : 1; | |
42365 | guint sensitive : 1; | |
42366 | guint editing : 1; | |
42367 | }; | |
42368 | ||
42369 | struct _GtkCellRendererClass | |
42370 | { | |
42371 | GtkObjectClass parent_class; | |
42372 | ||
42373 | ||
42374 | void (* get_size) (GtkCellRenderer *cell, | |
42375 | GtkWidget *widget, | |
42376 | GdkRectangle *cell_area, | |
42377 | gint *x_offset, | |
42378 | gint *y_offset, | |
42379 | gint *width, | |
42380 | gint *height); | |
42381 | void (* render) (GtkCellRenderer *cell, | |
42382 | GdkDrawable *window, | |
42383 | GtkWidget *widget, | |
42384 | GdkRectangle *background_area, | |
42385 | GdkRectangle *cell_area, | |
42386 | GdkRectangle *expose_area, | |
42387 | GtkCellRendererState flags); | |
42388 | gboolean (* activate) (GtkCellRenderer *cell, | |
42389 | GdkEvent *event, | |
42390 | GtkWidget *widget, | |
42391 | const gchar *path, | |
42392 | GdkRectangle *background_area, | |
42393 | GdkRectangle *cell_area, | |
42394 | GtkCellRendererState flags); | |
42395 | GtkCellEditable *(* start_editing) (GtkCellRenderer *cell, | |
42396 | GdkEvent *event, | |
42397 | GtkWidget *widget, | |
42398 | const gchar *path, | |
42399 | GdkRectangle *background_area, | |
42400 | GdkRectangle *cell_area, | |
42401 | GtkCellRendererState flags); | |
42402 | ||
42403 | ||
42404 | void (* editing_canceled) (GtkCellRenderer *cell); | |
42405 | void (* editing_started) (GtkCellRenderer *cell, | |
42406 | GtkCellEditable *editable, | |
42407 | const gchar *path); | |
42408 | ||
42409 | ||
42410 | void (*_gtk_reserved1) (void); | |
42411 | void (*_gtk_reserved2) (void); | |
42412 | }; | |
42413 | ||
42414 | GType gtk_cell_renderer_get_type (void) __attribute__((__const__)); | |
42415 | ||
42416 | void gtk_cell_renderer_get_size (GtkCellRenderer *cell, | |
42417 | GtkWidget *widget, | |
42418 | GdkRectangle *cell_area, | |
42419 | gint *x_offset, | |
42420 | gint *y_offset, | |
42421 | gint *width, | |
42422 | gint *height); | |
42423 | void gtk_cell_renderer_render (GtkCellRenderer *cell, | |
42424 | GdkWindow *window, | |
42425 | GtkWidget *widget, | |
42426 | GdkRectangle *background_area, | |
42427 | GdkRectangle *cell_area, | |
42428 | GdkRectangle *expose_area, | |
42429 | GtkCellRendererState flags); | |
42430 | gboolean gtk_cell_renderer_activate (GtkCellRenderer *cell, | |
42431 | GdkEvent *event, | |
42432 | GtkWidget *widget, | |
42433 | const gchar *path, | |
42434 | GdkRectangle *background_area, | |
42435 | GdkRectangle *cell_area, | |
42436 | GtkCellRendererState flags); | |
42437 | GtkCellEditable *gtk_cell_renderer_start_editing (GtkCellRenderer *cell, | |
42438 | GdkEvent *event, | |
42439 | GtkWidget *widget, | |
42440 | const gchar *path, | |
42441 | GdkRectangle *background_area, | |
42442 | GdkRectangle *cell_area, | |
42443 | GtkCellRendererState flags); | |
42444 | void gtk_cell_renderer_set_fixed_size (GtkCellRenderer *cell, | |
42445 | gint width, | |
42446 | gint height); | |
42447 | void gtk_cell_renderer_get_fixed_size (GtkCellRenderer *cell, | |
42448 | gint *width, | |
42449 | gint *height); | |
42450 | ||
42451 | ||
42452 | ||
42453 | void gtk_cell_renderer_editing_canceled (GtkCellRenderer *cell); | |
42454 | ||
42455 | void gtk_cell_renderer_stop_editing (GtkCellRenderer *cell, | |
42456 | gboolean canceled); | |
42457 | ||
42458 | ||
42459 | ||
42460 | # 26 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h" 2 | |
42461 | # 1 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h" 1 | |
42462 | # 21 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h" | |
42463 | #define __GTK_TREE_VIEW_COLUMN_H__ | |
42464 | ||
42465 | ||
42466 | ||
42467 | # 1 "/usr/include/gtk-2.0/gtk/gtktreemodel.h" 1 | |
42468 | # 21 "/usr/include/gtk-2.0/gtk/gtktreemodel.h" | |
42469 | #define __GTK_TREE_MODEL_H__ | |
42470 | ||
42471 | ||
42472 | ||
42473 | ||
42474 | ||
42475 | ||
42476 | ||
42477 | ||
42478 | #define GTK_TYPE_TREE_MODEL (gtk_tree_model_get_type ()) | |
42479 | #define GTK_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL, GtkTreeModel)) | |
42480 | #define GTK_IS_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL)) | |
42481 | #define GTK_TREE_MODEL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_MODEL, GtkTreeModelIface)) | |
42482 | ||
42483 | #define GTK_TYPE_TREE_ITER (gtk_tree_iter_get_type ()) | |
42484 | #define GTK_TYPE_TREE_PATH (gtk_tree_path_get_type ()) | |
42485 | #define GTK_TYPE_TREE_ROW_REFERENCE (gtk_tree_row_reference_get_type ()) | |
42486 | ||
42487 | typedef struct _GtkTreeIter GtkTreeIter; | |
42488 | typedef struct _GtkTreePath GtkTreePath; | |
42489 | typedef struct _GtkTreeRowReference GtkTreeRowReference; | |
42490 | typedef struct _GtkTreeModel GtkTreeModel; | |
42491 | typedef struct _GtkTreeModelIface GtkTreeModelIface; | |
42492 | typedef gboolean (* GtkTreeModelForeachFunc) (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); | |
42493 | ||
42494 | ||
42495 | typedef enum | |
42496 | { | |
42497 | GTK_TREE_MODEL_ITERS_PERSIST = 1 << 0, | |
42498 | GTK_TREE_MODEL_LIST_ONLY = 1 << 1 | |
42499 | } GtkTreeModelFlags; | |
42500 | ||
42501 | struct _GtkTreeIter | |
42502 | { | |
42503 | gint stamp; | |
42504 | gpointer user_data; | |
42505 | gpointer user_data2; | |
42506 | gpointer user_data3; | |
42507 | }; | |
42508 | ||
42509 | struct _GtkTreeModelIface | |
42510 | { | |
42511 | GTypeInterface g_iface; | |
42512 | ||
42513 | ||
42514 | void (* row_changed) (GtkTreeModel *tree_model, | |
42515 | GtkTreePath *path, | |
42516 | GtkTreeIter *iter); | |
42517 | void (* row_inserted) (GtkTreeModel *tree_model, | |
42518 | GtkTreePath *path, | |
42519 | GtkTreeIter *iter); | |
42520 | void (* row_has_child_toggled) (GtkTreeModel *tree_model, | |
42521 | GtkTreePath *path, | |
42522 | GtkTreeIter *iter); | |
42523 | void (* row_deleted) (GtkTreeModel *tree_model, | |
42524 | GtkTreePath *path); | |
42525 | void (* rows_reordered) (GtkTreeModel *tree_model, | |
42526 | GtkTreePath *path, | |
42527 | GtkTreeIter *iter, | |
42528 | gint *new_order); | |
42529 | ||
42530 | ||
42531 | GtkTreeModelFlags (* get_flags) (GtkTreeModel *tree_model); | |
42532 | ||
42533 | gint (* get_n_columns) (GtkTreeModel *tree_model); | |
42534 | GType (* get_column_type) (GtkTreeModel *tree_model, | |
42535 | gint index_); | |
42536 | gboolean (* get_iter) (GtkTreeModel *tree_model, | |
42537 | GtkTreeIter *iter, | |
42538 | GtkTreePath *path); | |
42539 | GtkTreePath *(* get_path) (GtkTreeModel *tree_model, | |
42540 | GtkTreeIter *iter); | |
42541 | void (* get_value) (GtkTreeModel *tree_model, | |
42542 | GtkTreeIter *iter, | |
42543 | gint column, | |
42544 | GValue *value); | |
42545 | gboolean (* iter_next) (GtkTreeModel *tree_model, | |
42546 | GtkTreeIter *iter); | |
42547 | gboolean (* iter_children) (GtkTreeModel *tree_model, | |
42548 | GtkTreeIter *iter, | |
42549 | GtkTreeIter *parent); | |
42550 | gboolean (* iter_has_child) (GtkTreeModel *tree_model, | |
42551 | GtkTreeIter *iter); | |
42552 | gint (* iter_n_children) (GtkTreeModel *tree_model, | |
42553 | GtkTreeIter *iter); | |
42554 | gboolean (* iter_nth_child) (GtkTreeModel *tree_model, | |
42555 | GtkTreeIter *iter, | |
42556 | GtkTreeIter *parent, | |
42557 | gint n); | |
42558 | gboolean (* iter_parent) (GtkTreeModel *tree_model, | |
42559 | GtkTreeIter *iter, | |
42560 | GtkTreeIter *child); | |
42561 | void (* ref_node) (GtkTreeModel *tree_model, | |
42562 | GtkTreeIter *iter); | |
42563 | void (* unref_node) (GtkTreeModel *tree_model, | |
42564 | GtkTreeIter *iter); | |
42565 | }; | |
42566 | ||
42567 | ||
42568 | ||
42569 | GtkTreePath *gtk_tree_path_new (void); | |
42570 | GtkTreePath *gtk_tree_path_new_from_string (const gchar *path); | |
42571 | GtkTreePath *gtk_tree_path_new_from_indices (gint first_index, | |
42572 | ...); | |
42573 | gchar *gtk_tree_path_to_string (GtkTreePath *path); | |
42574 | GtkTreePath *gtk_tree_path_new_first (void); | |
42575 | void gtk_tree_path_append_index (GtkTreePath *path, | |
42576 | gint index_); | |
42577 | void gtk_tree_path_prepend_index (GtkTreePath *path, | |
42578 | gint index_); | |
42579 | gint gtk_tree_path_get_depth (GtkTreePath *path); | |
42580 | gint *gtk_tree_path_get_indices (GtkTreePath *path); | |
42581 | void gtk_tree_path_free (GtkTreePath *path); | |
42582 | GtkTreePath *gtk_tree_path_copy (const GtkTreePath *path); | |
42583 | GType gtk_tree_path_get_type (void) __attribute__((__const__)); | |
42584 | gint gtk_tree_path_compare (const GtkTreePath *a, | |
42585 | const GtkTreePath *b); | |
42586 | void gtk_tree_path_next (GtkTreePath *path); | |
42587 | gboolean gtk_tree_path_prev (GtkTreePath *path); | |
42588 | gboolean gtk_tree_path_up (GtkTreePath *path); | |
42589 | void gtk_tree_path_down (GtkTreePath *path); | |
42590 | ||
42591 | gboolean gtk_tree_path_is_ancestor (GtkTreePath *path, | |
42592 | GtkTreePath *descendant); | |
42593 | gboolean gtk_tree_path_is_descendant (GtkTreePath *path, | |
42594 | GtkTreePath *ancestor); | |
42595 | ||
42596 | ||
42597 | #define gtk_tree_path_new_root() gtk_tree_path_new_first() | |
42598 | ||
42599 | ||
42600 | ||
42601 | ||
42602 | ||
42603 | ||
42604 | ||
42605 | GType gtk_tree_row_reference_get_type (void) __attribute__((__const__)); | |
42606 | GtkTreeRowReference *gtk_tree_row_reference_new (GtkTreeModel *model, | |
42607 | GtkTreePath *path); | |
42608 | GtkTreeRowReference *gtk_tree_row_reference_new_proxy (GObject *proxy, | |
42609 | GtkTreeModel *model, | |
42610 | GtkTreePath *path); | |
42611 | GtkTreePath *gtk_tree_row_reference_get_path (GtkTreeRowReference *reference); | |
42612 | GtkTreeModel *gtk_tree_row_reference_get_model (GtkTreeRowReference *reference); | |
42613 | gboolean gtk_tree_row_reference_valid (GtkTreeRowReference *reference); | |
42614 | GtkTreeRowReference *gtk_tree_row_reference_copy (GtkTreeRowReference *reference); | |
42615 | void gtk_tree_row_reference_free (GtkTreeRowReference *reference); | |
42616 | ||
42617 | ||
42618 | void gtk_tree_row_reference_inserted (GObject *proxy, | |
42619 | GtkTreePath *path); | |
42620 | void gtk_tree_row_reference_deleted (GObject *proxy, | |
42621 | GtkTreePath *path); | |
42622 | void gtk_tree_row_reference_reordered (GObject *proxy, | |
42623 | GtkTreePath *path, | |
42624 | GtkTreeIter *iter, | |
42625 | gint *new_order); | |
42626 | ||
42627 | ||
42628 | GtkTreeIter * gtk_tree_iter_copy (GtkTreeIter *iter); | |
42629 | void gtk_tree_iter_free (GtkTreeIter *iter); | |
42630 | GType gtk_tree_iter_get_type (void) __attribute__((__const__)); | |
42631 | ||
42632 | GType gtk_tree_model_get_type (void) __attribute__((__const__)); | |
42633 | GtkTreeModelFlags gtk_tree_model_get_flags (GtkTreeModel *tree_model); | |
42634 | gint gtk_tree_model_get_n_columns (GtkTreeModel *tree_model); | |
42635 | GType gtk_tree_model_get_column_type (GtkTreeModel *tree_model, | |
42636 | gint index_); | |
42637 | ||
42638 | ||
42639 | ||
42640 | gboolean gtk_tree_model_get_iter (GtkTreeModel *tree_model, | |
42641 | GtkTreeIter *iter, | |
42642 | GtkTreePath *path); | |
42643 | gboolean gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model, | |
42644 | GtkTreeIter *iter, | |
42645 | const gchar *path_string); | |
42646 | gchar * gtk_tree_model_get_string_from_iter (GtkTreeModel *tree_model, | |
42647 | GtkTreeIter *iter); | |
42648 | gboolean gtk_tree_model_get_iter_first (GtkTreeModel *tree_model, | |
42649 | GtkTreeIter *iter); | |
42650 | GtkTreePath * gtk_tree_model_get_path (GtkTreeModel *tree_model, | |
42651 | GtkTreeIter *iter); | |
42652 | void gtk_tree_model_get_value (GtkTreeModel *tree_model, | |
42653 | GtkTreeIter *iter, | |
42654 | gint column, | |
42655 | GValue *value); | |
42656 | gboolean gtk_tree_model_iter_next (GtkTreeModel *tree_model, | |
42657 | GtkTreeIter *iter); | |
42658 | gboolean gtk_tree_model_iter_children (GtkTreeModel *tree_model, | |
42659 | GtkTreeIter *iter, | |
42660 | GtkTreeIter *parent); | |
42661 | gboolean gtk_tree_model_iter_has_child (GtkTreeModel *tree_model, | |
42662 | GtkTreeIter *iter); | |
42663 | gint gtk_tree_model_iter_n_children (GtkTreeModel *tree_model, | |
42664 | GtkTreeIter *iter); | |
42665 | gboolean gtk_tree_model_iter_nth_child (GtkTreeModel *tree_model, | |
42666 | GtkTreeIter *iter, | |
42667 | GtkTreeIter *parent, | |
42668 | gint n); | |
42669 | gboolean gtk_tree_model_iter_parent (GtkTreeModel *tree_model, | |
42670 | GtkTreeIter *iter, | |
42671 | GtkTreeIter *child); | |
42672 | void gtk_tree_model_ref_node (GtkTreeModel *tree_model, | |
42673 | GtkTreeIter *iter); | |
42674 | void gtk_tree_model_unref_node (GtkTreeModel *tree_model, | |
42675 | GtkTreeIter *iter); | |
42676 | void gtk_tree_model_get (GtkTreeModel *tree_model, | |
42677 | GtkTreeIter *iter, | |
42678 | ...); | |
42679 | void gtk_tree_model_get_valist (GtkTreeModel *tree_model, | |
42680 | GtkTreeIter *iter, | |
42681 | va_list var_args); | |
42682 | ||
42683 | ||
42684 | void gtk_tree_model_foreach (GtkTreeModel *model, | |
42685 | GtkTreeModelForeachFunc func, | |
42686 | gpointer user_data); | |
42687 | ||
42688 | ||
42689 | ||
42690 | #define gtk_tree_model_get_iter_root(tree_model,iter) gtk_tree_model_get_iter_first(tree_model, iter) | |
42691 | ||
42692 | ||
42693 | ||
42694 | void gtk_tree_model_row_changed (GtkTreeModel *tree_model, | |
42695 | GtkTreePath *path, | |
42696 | GtkTreeIter *iter); | |
42697 | void gtk_tree_model_row_inserted (GtkTreeModel *tree_model, | |
42698 | GtkTreePath *path, | |
42699 | GtkTreeIter *iter); | |
42700 | void gtk_tree_model_row_has_child_toggled (GtkTreeModel *tree_model, | |
42701 | GtkTreePath *path, | |
42702 | GtkTreeIter *iter); | |
42703 | void gtk_tree_model_row_deleted (GtkTreeModel *tree_model, | |
42704 | GtkTreePath *path); | |
42705 | void gtk_tree_model_rows_reordered (GtkTreeModel *tree_model, | |
42706 | GtkTreePath *path, | |
42707 | GtkTreeIter *iter, | |
42708 | gint *new_order); | |
42709 | ||
42710 | ||
42711 | ||
42712 | ||
42713 | ||
42714 | # 26 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h" 2 | |
42715 | # 1 "/usr/include/gtk-2.0/gtk/gtktreesortable.h" 1 | |
42716 | # 21 "/usr/include/gtk-2.0/gtk/gtktreesortable.h" | |
42717 | #define __GTK_TREE_SORTABLE_H__ | |
42718 | ||
42719 | ||
42720 | ||
42721 | ||
42722 | ||
42723 | ||
42724 | ||
42725 | #define GTK_TYPE_TREE_SORTABLE (gtk_tree_sortable_get_type ()) | |
42726 | #define GTK_TREE_SORTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortable)) | |
42727 | #define GTK_TREE_SORTABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortableIface)) | |
42728 | #define GTK_IS_TREE_SORTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_SORTABLE)) | |
42729 | #define GTK_TREE_SORTABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortableIface)) | |
42730 | ||
42731 | enum { | |
42732 | GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = -1, | |
42733 | GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = -2 | |
42734 | }; | |
42735 | ||
42736 | typedef struct _GtkTreeSortable GtkTreeSortable; | |
42737 | typedef struct _GtkTreeSortableIface GtkTreeSortableIface; | |
42738 | ||
42739 | typedef gint (* GtkTreeIterCompareFunc) (GtkTreeModel *model, | |
42740 | GtkTreeIter *a, | |
42741 | GtkTreeIter *b, | |
42742 | gpointer user_data); | |
42743 | ||
42744 | ||
42745 | struct _GtkTreeSortableIface | |
42746 | { | |
42747 | GTypeInterface g_iface; | |
42748 | ||
42749 | ||
42750 | void (* sort_column_changed) (GtkTreeSortable *sortable); | |
42751 | ||
42752 | ||
42753 | gboolean (* get_sort_column_id) (GtkTreeSortable *sortable, | |
42754 | gint *sort_column_id, | |
42755 | GtkSortType *order); | |
42756 | void (* set_sort_column_id) (GtkTreeSortable *sortable, | |
42757 | gint sort_column_id, | |
42758 | GtkSortType order); | |
42759 | void (* set_sort_func) (GtkTreeSortable *sortable, | |
42760 | gint sort_column_id, | |
42761 | GtkTreeIterCompareFunc func, | |
42762 | gpointer data, | |
42763 | GtkDestroyNotify destroy); | |
42764 | void (* set_default_sort_func) (GtkTreeSortable *sortable, | |
42765 | GtkTreeIterCompareFunc func, | |
42766 | gpointer data, | |
42767 | GtkDestroyNotify destroy); | |
42768 | gboolean (* has_default_sort_func) (GtkTreeSortable *sortable); | |
42769 | }; | |
42770 | ||
42771 | ||
42772 | GType gtk_tree_sortable_get_type (void) __attribute__((__const__)); | |
42773 | ||
42774 | void gtk_tree_sortable_sort_column_changed (GtkTreeSortable *sortable); | |
42775 | gboolean gtk_tree_sortable_get_sort_column_id (GtkTreeSortable *sortable, | |
42776 | gint *sort_column_id, | |
42777 | GtkSortType *order); | |
42778 | void gtk_tree_sortable_set_sort_column_id (GtkTreeSortable *sortable, | |
42779 | gint sort_column_id, | |
42780 | GtkSortType order); | |
42781 | void gtk_tree_sortable_set_sort_func (GtkTreeSortable *sortable, | |
42782 | gint sort_column_id, | |
42783 | GtkTreeIterCompareFunc sort_func, | |
42784 | gpointer user_data, | |
42785 | GtkDestroyNotify destroy); | |
42786 | void gtk_tree_sortable_set_default_sort_func (GtkTreeSortable *sortable, | |
42787 | GtkTreeIterCompareFunc sort_func, | |
42788 | gpointer user_data, | |
42789 | GtkDestroyNotify destroy); | |
42790 | gboolean gtk_tree_sortable_has_default_sort_func (GtkTreeSortable *sortable); | |
42791 | ||
42792 | ||
42793 | ||
42794 | # 27 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h" 2 | |
42795 | ||
42796 | ||
42797 | ||
42798 | ||
42799 | ||
42800 | ||
42801 | ||
42802 | ||
42803 | #define GTK_TYPE_TREE_VIEW_COLUMN (gtk_tree_view_column_get_type ()) | |
42804 | #define GTK_TREE_VIEW_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumn)) | |
42805 | #define GTK_TREE_VIEW_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumnClass)) | |
42806 | #define GTK_IS_TREE_VIEW_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW_COLUMN)) | |
42807 | #define GTK_IS_TREE_VIEW_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW_COLUMN)) | |
42808 | #define GTK_TREE_VIEW_COLUMN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumnClass)) | |
42809 | ||
42810 | typedef enum | |
42811 | { | |
42812 | GTK_TREE_VIEW_COLUMN_GROW_ONLY, | |
42813 | GTK_TREE_VIEW_COLUMN_AUTOSIZE, | |
42814 | GTK_TREE_VIEW_COLUMN_FIXED | |
42815 | } GtkTreeViewColumnSizing; | |
42816 | ||
42817 | typedef struct _GtkTreeViewColumn GtkTreeViewColumn; | |
42818 | typedef struct _GtkTreeViewColumnClass GtkTreeViewColumnClass; | |
42819 | ||
42820 | typedef void (* GtkTreeCellDataFunc) (GtkTreeViewColumn *tree_column, | |
42821 | GtkCellRenderer *cell, | |
42822 | GtkTreeModel *tree_model, | |
42823 | GtkTreeIter *iter, | |
42824 | gpointer data); | |
42825 | ||
42826 | ||
42827 | struct _GtkTreeViewColumn | |
42828 | { | |
42829 | GtkObject parent; | |
42830 | ||
42831 | GtkWidget *tree_view; | |
42832 | GtkWidget *button; | |
42833 | GtkWidget *child; | |
42834 | GtkWidget *arrow; | |
42835 | GtkWidget *alignment; | |
42836 | GdkWindow *window; | |
42837 | GtkCellEditable *editable_widget; | |
42838 | gfloat xalign; | |
42839 | guint property_changed_signal; | |
42840 | gint spacing; | |
42841 | ||
42842 | ||
42843 | ||
42844 | GtkTreeViewColumnSizing column_type; | |
42845 | gint requested_width; | |
42846 | gint button_request; | |
42847 | gint resized_width; | |
42848 | gint width; | |
42849 | gint fixed_width; | |
42850 | gint min_width; | |
42851 | gint max_width; | |
42852 | ||
42853 | ||
42854 | gint drag_x; | |
42855 | gint drag_y; | |
42856 | ||
42857 | gchar *title; | |
42858 | GList *cell_list; | |
42859 | ||
42860 | ||
42861 | guint sort_clicked_signal; | |
42862 | guint sort_column_changed_signal; | |
42863 | gint sort_column_id; | |
42864 | GtkSortType sort_order; | |
42865 | ||
42866 | ||
42867 | guint visible : 1; | |
42868 | guint resizable : 1; | |
42869 | guint clickable : 1; | |
42870 | guint dirty : 1; | |
42871 | guint show_sort_indicator : 1; | |
42872 | guint maybe_reordered : 1; | |
42873 | guint reorderable : 1; | |
42874 | guint use_resized_width : 1; | |
42875 | guint expand : 1; | |
42876 | }; | |
42877 | ||
42878 | struct _GtkTreeViewColumnClass | |
42879 | { | |
42880 | GtkObjectClass parent_class; | |
42881 | ||
42882 | void (*clicked) (GtkTreeViewColumn *tree_column); | |
42883 | ||
42884 | ||
42885 | void (*_gtk_reserved1) (void); | |
42886 | void (*_gtk_reserved2) (void); | |
42887 | void (*_gtk_reserved3) (void); | |
42888 | void (*_gtk_reserved4) (void); | |
42889 | }; | |
42890 | ||
42891 | GType gtk_tree_view_column_get_type (void) __attribute__((__const__)); | |
42892 | GtkTreeViewColumn *gtk_tree_view_column_new (void); | |
42893 | GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title, | |
42894 | GtkCellRenderer *cell, | |
42895 | ...) ; | |
42896 | void gtk_tree_view_column_pack_start (GtkTreeViewColumn *tree_column, | |
42897 | GtkCellRenderer *cell, | |
42898 | gboolean expand); | |
42899 | void gtk_tree_view_column_pack_end (GtkTreeViewColumn *tree_column, | |
42900 | GtkCellRenderer *cell, | |
42901 | gboolean expand); | |
42902 | void gtk_tree_view_column_clear (GtkTreeViewColumn *tree_column); | |
42903 | GList *gtk_tree_view_column_get_cell_renderers (GtkTreeViewColumn *tree_column); | |
42904 | void gtk_tree_view_column_add_attribute (GtkTreeViewColumn *tree_column, | |
42905 | GtkCellRenderer *cell_renderer, | |
42906 | const gchar *attribute, | |
42907 | gint column); | |
42908 | void gtk_tree_view_column_set_attributes (GtkTreeViewColumn *tree_column, | |
42909 | GtkCellRenderer *cell_renderer, | |
42910 | ...) ; | |
42911 | void gtk_tree_view_column_set_cell_data_func (GtkTreeViewColumn *tree_column, | |
42912 | GtkCellRenderer *cell_renderer, | |
42913 | GtkTreeCellDataFunc func, | |
42914 | gpointer func_data, | |
42915 | GtkDestroyNotify destroy); | |
42916 | void gtk_tree_view_column_clear_attributes (GtkTreeViewColumn *tree_column, | |
42917 | GtkCellRenderer *cell_renderer); | |
42918 | void gtk_tree_view_column_set_spacing (GtkTreeViewColumn *tree_column, | |
42919 | gint spacing); | |
42920 | gint gtk_tree_view_column_get_spacing (GtkTreeViewColumn *tree_column); | |
42921 | void gtk_tree_view_column_set_visible (GtkTreeViewColumn *tree_column, | |
42922 | gboolean visible); | |
42923 | gboolean gtk_tree_view_column_get_visible (GtkTreeViewColumn *tree_column); | |
42924 | void gtk_tree_view_column_set_resizable (GtkTreeViewColumn *tree_column, | |
42925 | gboolean resizable); | |
42926 | gboolean gtk_tree_view_column_get_resizable (GtkTreeViewColumn *tree_column); | |
42927 | void gtk_tree_view_column_set_sizing (GtkTreeViewColumn *tree_column, | |
42928 | GtkTreeViewColumnSizing type); | |
42929 | GtkTreeViewColumnSizing gtk_tree_view_column_get_sizing (GtkTreeViewColumn *tree_column); | |
42930 | gint gtk_tree_view_column_get_width (GtkTreeViewColumn *tree_column); | |
42931 | gint gtk_tree_view_column_get_fixed_width (GtkTreeViewColumn *tree_column); | |
42932 | void gtk_tree_view_column_set_fixed_width (GtkTreeViewColumn *tree_column, | |
42933 | gint fixed_width); | |
42934 | void gtk_tree_view_column_set_min_width (GtkTreeViewColumn *tree_column, | |
42935 | gint min_width); | |
42936 | gint gtk_tree_view_column_get_min_width (GtkTreeViewColumn *tree_column); | |
42937 | void gtk_tree_view_column_set_max_width (GtkTreeViewColumn *tree_column, | |
42938 | gint max_width); | |
42939 | gint gtk_tree_view_column_get_max_width (GtkTreeViewColumn *tree_column); | |
42940 | void gtk_tree_view_column_clicked (GtkTreeViewColumn *tree_column); | |
42941 | ||
42942 | ||
42943 | ||
42944 | ||
42945 | ||
42946 | void gtk_tree_view_column_set_title (GtkTreeViewColumn *tree_column, | |
42947 | const gchar *title); | |
42948 | const gchar *gtk_tree_view_column_get_title (GtkTreeViewColumn *tree_column); | |
42949 | void gtk_tree_view_column_set_expand (GtkTreeViewColumn *tree_column, | |
42950 | gboolean expand); | |
42951 | gboolean gtk_tree_view_column_get_expand (GtkTreeViewColumn *tree_column); | |
42952 | void gtk_tree_view_column_set_clickable (GtkTreeViewColumn *tree_column, | |
42953 | gboolean clickable); | |
42954 | gboolean gtk_tree_view_column_get_clickable (GtkTreeViewColumn *tree_column); | |
42955 | void gtk_tree_view_column_set_widget (GtkTreeViewColumn *tree_column, | |
42956 | GtkWidget *widget); | |
42957 | GtkWidget *gtk_tree_view_column_get_widget (GtkTreeViewColumn *tree_column); | |
42958 | void gtk_tree_view_column_set_alignment (GtkTreeViewColumn *tree_column, | |
42959 | gfloat xalign); | |
42960 | gfloat gtk_tree_view_column_get_alignment (GtkTreeViewColumn *tree_column); | |
42961 | void gtk_tree_view_column_set_reorderable (GtkTreeViewColumn *tree_column, | |
42962 | gboolean reorderable); | |
42963 | gboolean gtk_tree_view_column_get_reorderable (GtkTreeViewColumn *tree_column); | |
42964 | ||
42965 | ||
42966 | ||
42967 | ||
42968 | ||
42969 | ||
42970 | void gtk_tree_view_column_set_sort_column_id (GtkTreeViewColumn *tree_column, | |
42971 | gint sort_column_id); | |
42972 | gint gtk_tree_view_column_get_sort_column_id (GtkTreeViewColumn *tree_column); | |
42973 | void gtk_tree_view_column_set_sort_indicator (GtkTreeViewColumn *tree_column, | |
42974 | gboolean setting); | |
42975 | gboolean gtk_tree_view_column_get_sort_indicator (GtkTreeViewColumn *tree_column); | |
42976 | void gtk_tree_view_column_set_sort_order (GtkTreeViewColumn *tree_column, | |
42977 | GtkSortType order); | |
42978 | GtkSortType gtk_tree_view_column_get_sort_order (GtkTreeViewColumn *tree_column); | |
42979 | ||
42980 | ||
42981 | ||
42982 | ||
42983 | void gtk_tree_view_column_cell_set_cell_data (GtkTreeViewColumn *tree_column, | |
42984 | GtkTreeModel *tree_model, | |
42985 | GtkTreeIter *iter, | |
42986 | gboolean is_expander, | |
42987 | gboolean is_expanded); | |
42988 | void gtk_tree_view_column_cell_get_size (GtkTreeViewColumn *tree_column, | |
42989 | GdkRectangle *cell_area, | |
42990 | gint *x_offset, | |
42991 | gint *y_offset, | |
42992 | gint *width, | |
42993 | gint *height); | |
42994 | gboolean gtk_tree_view_column_cell_is_visible (GtkTreeViewColumn *tree_column); | |
42995 | void gtk_tree_view_column_focus_cell (GtkTreeViewColumn *tree_column, | |
42996 | GtkCellRenderer *cell); | |
42997 | gboolean gtk_tree_view_column_cell_get_position (GtkTreeViewColumn *tree_column, | |
42998 | GtkCellRenderer *cell_renderer, | |
42999 | gint *start_pos, | |
43000 | gint *width); | |
43001 | void gtk_tree_view_column_queue_resize (GtkTreeViewColumn *tree_column); | |
43002 | ||
43003 | ||
43004 | ||
43005 | # 27 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h" 2 | |
43006 | ||
43007 | ||
43008 | ||
43009 | #define GTK_TYPE_CELL_LAYOUT (gtk_cell_layout_get_type ()) | |
43010 | #define GTK_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayout)) | |
43011 | #define GTK_IS_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_LAYOUT)) | |
43012 | #define GTK_CELL_LAYOUT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayoutIface)) | |
43013 | ||
43014 | typedef struct _GtkCellLayout GtkCellLayout; | |
43015 | typedef struct _GtkCellLayoutIface GtkCellLayoutIface; | |
43016 | ||
43017 | ||
43018 | typedef void (* GtkCellLayoutDataFunc) (GtkCellLayout *cell_layout, | |
43019 | GtkCellRenderer *cell, | |
43020 | GtkTreeModel *tree_model, | |
43021 | GtkTreeIter *iter, | |
43022 | gpointer data); | |
43023 | ||
43024 | struct _GtkCellLayoutIface | |
43025 | { | |
43026 | GTypeInterface g_iface; | |
43027 | ||
43028 | ||
43029 | void (* pack_start) (GtkCellLayout *cell_layout, | |
43030 | GtkCellRenderer *cell, | |
43031 | gboolean expand); | |
43032 | void (* pack_end) (GtkCellLayout *cell_layout, | |
43033 | GtkCellRenderer *cell, | |
43034 | gboolean expand); | |
43035 | void (* clear) (GtkCellLayout *cell_layout); | |
43036 | void (* add_attribute) (GtkCellLayout *cell_layout, | |
43037 | GtkCellRenderer *cell, | |
43038 | const gchar *attribute, | |
43039 | gint column); | |
43040 | void (* set_cell_data_func) (GtkCellLayout *cell_layout, | |
43041 | GtkCellRenderer *cell, | |
43042 | GtkCellLayoutDataFunc func, | |
43043 | gpointer func_data, | |
43044 | GDestroyNotify destroy); | |
43045 | void (* clear_attributes) (GtkCellLayout *cell_layout, | |
43046 | GtkCellRenderer *cell); | |
43047 | void (* reorder) (GtkCellLayout *cell_layout, | |
43048 | GtkCellRenderer *cell, | |
43049 | gint position); | |
43050 | }; | |
43051 | ||
43052 | GType gtk_cell_layout_get_type (void) __attribute__((__const__)); | |
43053 | void gtk_cell_layout_pack_start (GtkCellLayout *cell_layout, | |
43054 | GtkCellRenderer *cell, | |
43055 | gboolean expand); | |
43056 | void gtk_cell_layout_pack_end (GtkCellLayout *cell_layout, | |
43057 | GtkCellRenderer *cell, | |
43058 | gboolean expand); | |
43059 | void gtk_cell_layout_clear (GtkCellLayout *cell_layout); | |
43060 | void gtk_cell_layout_set_attributes (GtkCellLayout *cell_layout, | |
43061 | GtkCellRenderer *cell, | |
43062 | ...) ; | |
43063 | void gtk_cell_layout_add_attribute (GtkCellLayout *cell_layout, | |
43064 | GtkCellRenderer *cell, | |
43065 | const gchar *attribute, | |
43066 | gint column); | |
43067 | void gtk_cell_layout_set_cell_data_func (GtkCellLayout *cell_layout, | |
43068 | GtkCellRenderer *cell, | |
43069 | GtkCellLayoutDataFunc func, | |
43070 | gpointer func_data, | |
43071 | GDestroyNotify destroy); | |
43072 | void gtk_cell_layout_clear_attributes (GtkCellLayout *cell_layout, | |
43073 | GtkCellRenderer *cell); | |
43074 | void gtk_cell_layout_reorder (GtkCellLayout *cell_layout, | |
43075 | GtkCellRenderer *cell, | |
43076 | gint position); | |
43077 | ||
43078 | ||
43079 | ||
43080 | # 50 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
43081 | ||
43082 | # 1 "/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h" 1 | |
43083 | # 22 "/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h" | |
43084 | #define __GTK_CELL_RENDERER_COMBO_H__ | |
43085 | ||
43086 | ||
43087 | # 1 "/usr/include/gtk-2.0/gtk/gtkcellrenderertext.h" 1 | |
43088 | # 21 "/usr/include/gtk-2.0/gtk/gtkcellrenderertext.h" | |
43089 | #define __GTK_CELL_RENDERER_TEXT_H__ | |
43090 | ||
43091 | ||
43092 | ||
43093 | ||
43094 | ||
43095 | ||
43096 | ||
43097 | ||
43098 | #define GTK_TYPE_CELL_RENDERER_TEXT (gtk_cell_renderer_text_get_type ()) | |
43099 | #define GTK_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererText)) | |
43100 | #define GTK_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererTextClass)) | |
43101 | #define GTK_IS_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TEXT)) | |
43102 | #define GTK_IS_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TEXT)) | |
43103 | #define GTK_CELL_RENDERER_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererTextClass)) | |
43104 | ||
43105 | typedef struct _GtkCellRendererText GtkCellRendererText; | |
43106 | typedef struct _GtkCellRendererTextClass GtkCellRendererTextClass; | |
43107 | ||
43108 | struct _GtkCellRendererText | |
43109 | { | |
43110 | GtkCellRenderer parent; | |
43111 | ||
43112 | ||
43113 | gchar *text; | |
43114 | PangoFontDescription *font; | |
43115 | gdouble font_scale; | |
43116 | PangoColor foreground; | |
43117 | PangoColor background; | |
43118 | ||
43119 | PangoAttrList *extra_attrs; | |
43120 | ||
43121 | PangoUnderline underline_style; | |
43122 | ||
43123 | gint rise; | |
43124 | gint fixed_height_rows; | |
43125 | ||
43126 | guint strikethrough : 1; | |
43127 | ||
43128 | guint editable : 1; | |
43129 | ||
43130 | guint scale_set : 1; | |
43131 | ||
43132 | guint foreground_set : 1; | |
43133 | guint background_set : 1; | |
43134 | ||
43135 | guint underline_set : 1; | |
43136 | ||
43137 | guint rise_set : 1; | |
43138 | ||
43139 | guint strikethrough_set : 1; | |
43140 | ||
43141 | guint editable_set : 1; | |
43142 | guint calc_fixed_height : 1; | |
43143 | }; | |
43144 | ||
43145 | struct _GtkCellRendererTextClass | |
43146 | { | |
43147 | GtkCellRendererClass parent_class; | |
43148 | ||
43149 | void (* edited) (GtkCellRendererText *cell_renderer_text, | |
43150 | const gchar *path, | |
43151 | const gchar *new_text); | |
43152 | ||
43153 | ||
43154 | void (*_gtk_reserved1) (void); | |
43155 | void (*_gtk_reserved2) (void); | |
43156 | void (*_gtk_reserved3) (void); | |
43157 | void (*_gtk_reserved4) (void); | |
43158 | }; | |
43159 | ||
43160 | GType gtk_cell_renderer_text_get_type (void) __attribute__((__const__)); | |
43161 | GtkCellRenderer *gtk_cell_renderer_text_new (void); | |
43162 | ||
43163 | void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer, | |
43164 | gint number_of_rows); | |
43165 | ||
43166 | ||
43167 | ||
43168 | # 26 "/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h" 2 | |
43169 | ||
43170 | ||
43171 | ||
43172 | #define GTK_TYPE_CELL_RENDERER_COMBO (gtk_cell_renderer_combo_get_type ()) | |
43173 | #define GTK_CELL_RENDERER_COMBO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererCombo)) | |
43174 | #define GTK_CELL_RENDERER_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererComboClass)) | |
43175 | #define GTK_IS_CELL_RENDERER_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_COMBO)) | |
43176 | #define GTK_IS_CELL_RENDERER_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_COMBO)) | |
43177 | #define GTK_CELL_RENDERER_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererTextClass)) | |
43178 | ||
43179 | typedef struct _GtkCellRendererCombo GtkCellRendererCombo; | |
43180 | typedef struct _GtkCellRendererComboClass GtkCellRendererComboClass; | |
43181 | ||
43182 | struct _GtkCellRendererCombo | |
43183 | { | |
43184 | GtkCellRendererText parent; | |
43185 | ||
43186 | GtkTreeModel *model; | |
43187 | gint text_column; | |
43188 | gboolean has_entry; | |
43189 | ||
43190 | ||
43191 | guint focus_out_id; | |
43192 | }; | |
43193 | ||
43194 | struct _GtkCellRendererComboClass | |
43195 | { | |
43196 | GtkCellRendererTextClass parent; | |
43197 | }; | |
43198 | ||
43199 | GType gtk_cell_renderer_combo_get_type (void) __attribute__((__const__)); | |
43200 | GtkCellRenderer *gtk_cell_renderer_combo_new (void); | |
43201 | ||
43202 | ||
43203 | # 52 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
43204 | # 1 "/usr/include/gtk-2.0/gtk/gtkcellrendererpixbuf.h" 1 | |
43205 | # 21 "/usr/include/gtk-2.0/gtk/gtkcellrendererpixbuf.h" | |
43206 | #define __GTK_CELL_RENDERER_PIXBUF_H__ | |
43207 | ||
43208 | ||
43209 | ||
43210 | ||
43211 | ||
43212 | ||
43213 | ||
43214 | #define GTK_TYPE_CELL_RENDERER_PIXBUF (gtk_cell_renderer_pixbuf_get_type ()) | |
43215 | #define GTK_CELL_RENDERER_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbuf)) | |
43216 | #define GTK_CELL_RENDERER_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbufClass)) | |
43217 | #define GTK_IS_CELL_RENDERER_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF)) | |
43218 | #define GTK_IS_CELL_RENDERER_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PIXBUF)) | |
43219 | #define GTK_CELL_RENDERER_PIXBUF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbufClass)) | |
43220 | ||
43221 | typedef struct _GtkCellRendererPixbuf GtkCellRendererPixbuf; | |
43222 | typedef struct _GtkCellRendererPixbufClass GtkCellRendererPixbufClass; | |
43223 | ||
43224 | struct _GtkCellRendererPixbuf | |
43225 | { | |
43226 | GtkCellRenderer parent; | |
43227 | ||
43228 | ||
43229 | GdkPixbuf *pixbuf; | |
43230 | GdkPixbuf *pixbuf_expander_open; | |
43231 | GdkPixbuf *pixbuf_expander_closed; | |
43232 | }; | |
43233 | ||
43234 | struct _GtkCellRendererPixbufClass | |
43235 | { | |
43236 | GtkCellRendererClass parent_class; | |
43237 | ||
43238 | ||
43239 | void (*_gtk_reserved1) (void); | |
43240 | void (*_gtk_reserved2) (void); | |
43241 | void (*_gtk_reserved3) (void); | |
43242 | void (*_gtk_reserved4) (void); | |
43243 | }; | |
43244 | ||
43245 | GType gtk_cell_renderer_pixbuf_get_type (void) __attribute__((__const__)); | |
43246 | GtkCellRenderer *gtk_cell_renderer_pixbuf_new (void); | |
43247 | ||
43248 | ||
43249 | ||
43250 | # 53 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
43251 | # 1 "/usr/include/gtk-2.0/gtk/gtkcellrendererprogress.h" 1 | |
43252 | # 28 "/usr/include/gtk-2.0/gtk/gtkcellrendererprogress.h" | |
43253 | #define __GTK_CELL_RENDERER_PROGRESS_H__ | |
43254 | ||
43255 | ||
43256 | ||
43257 | ||
43258 | ||
43259 | #define GTK_TYPE_CELL_RENDERER_PROGRESS (gtk_cell_renderer_progress_get_type ()) | |
43260 | #define GTK_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgress)) | |
43261 | #define GTK_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) | |
43262 | #define GTK_IS_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS)) | |
43263 | #define GTK_IS_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS)) | |
43264 | #define GTK_CELL_RENDERER_PROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) | |
43265 | ||
43266 | typedef struct _GtkCellRendererProgress GtkCellRendererProgress; | |
43267 | typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass; | |
43268 | typedef struct _GtkCellRendererProgressPrivate GtkCellRendererProgressPrivate; | |
43269 | ||
43270 | struct _GtkCellRendererProgress | |
43271 | { | |
43272 | GtkCellRenderer parent_instance; | |
43273 | ||
43274 | ||
43275 | GtkCellRendererProgressPrivate *priv; | |
43276 | }; | |
43277 | ||
43278 | struct _GtkCellRendererProgressClass | |
43279 | { | |
43280 | GtkCellRendererClass parent_class; | |
43281 | ||
43282 | ||
43283 | void (*_gtk_reserved1) (void); | |
43284 | void (*_gtk_reserved2) (void); | |
43285 | void (*_gtk_reserved3) (void); | |
43286 | void (*_gtk_reserved4) (void); | |
43287 | }; | |
43288 | ||
43289 | GType gtk_cell_renderer_progress_get_type (void) __attribute__((__const__)); | |
43290 | GtkCellRenderer* gtk_cell_renderer_progress_new (void); | |
43291 | ||
43292 | ||
43293 | # 54 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
43294 | ||
43295 | # 1 "/usr/include/gtk-2.0/gtk/gtkcellrenderertoggle.h" 1 | |
43296 | # 21 "/usr/include/gtk-2.0/gtk/gtkcellrenderertoggle.h" | |
43297 | #define __GTK_CELL_RENDERER_TOGGLE_H__ | |
43298 | ||
43299 | ||
43300 | ||
43301 | ||
43302 | ||
43303 | ||
43304 | ||
43305 | #define GTK_TYPE_CELL_RENDERER_TOGGLE (gtk_cell_renderer_toggle_get_type ()) | |
43306 | #define GTK_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggle)) | |
43307 | #define GTK_CELL_RENDERER_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggleClass)) | |
43308 | #define GTK_IS_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE)) | |
43309 | #define GTK_IS_CELL_RENDERER_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TOGGLE)) | |
43310 | #define GTK_CELL_RENDERER_TOGGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggleClass)) | |
43311 | ||
43312 | typedef struct _GtkCellRendererToggle GtkCellRendererToggle; | |
43313 | typedef struct _GtkCellRendererToggleClass GtkCellRendererToggleClass; | |
43314 | ||
43315 | struct _GtkCellRendererToggle | |
43316 | { | |
43317 | GtkCellRenderer parent; | |
43318 | ||
43319 | ||
43320 | guint active : 1; | |
43321 | guint activatable : 1; | |
43322 | guint radio : 1; | |
43323 | }; | |
43324 | ||
43325 | struct _GtkCellRendererToggleClass | |
43326 | { | |
43327 | GtkCellRendererClass parent_class; | |
43328 | ||
43329 | void (* toggled) (GtkCellRendererToggle *cell_renderer_toggle, | |
43330 | const gchar *path); | |
43331 | ||
43332 | ||
43333 | void (*_gtk_reserved1) (void); | |
43334 | void (*_gtk_reserved2) (void); | |
43335 | void (*_gtk_reserved3) (void); | |
43336 | void (*_gtk_reserved4) (void); | |
43337 | }; | |
43338 | ||
43339 | GType gtk_cell_renderer_toggle_get_type (void) __attribute__((__const__)); | |
43340 | GtkCellRenderer *gtk_cell_renderer_toggle_new (void); | |
43341 | ||
43342 | gboolean gtk_cell_renderer_toggle_get_radio (GtkCellRendererToggle *toggle); | |
43343 | void gtk_cell_renderer_toggle_set_radio (GtkCellRendererToggle *toggle, | |
43344 | gboolean radio); | |
43345 | ||
43346 | gboolean gtk_cell_renderer_toggle_get_active (GtkCellRendererToggle *toggle); | |
43347 | void gtk_cell_renderer_toggle_set_active (GtkCellRendererToggle *toggle, | |
43348 | gboolean setting); | |
43349 | ||
43350 | ||
43351 | ||
43352 | # 56 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
43353 | # 1 "/usr/include/gtk-2.0/gtk/gtkcellview.h" 1 | |
43354 | # 21 "/usr/include/gtk-2.0/gtk/gtkcellview.h" | |
43355 | #define __GTK_CELL_VIEW_H__ | |
43356 | ||
43357 | ||
43358 | ||
43359 | ||
43360 | ||
43361 | ||
43362 | ||
43363 | #define GTK_TYPE_CELL_VIEW (gtk_cell_view_get_type ()) | |
43364 | #define GTK_CELL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_VIEW, GtkCellView)) | |
43365 | #define GTK_CELL_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_CELL_VIEW, GtkCellViewClass)) | |
43366 | #define GTK_IS_CELL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_VIEW)) | |
43367 | #define GTK_IS_CELL_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_CELL_VIEW)) | |
43368 | #define GTK_CELL_VIEW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_CELL_VIEW, GtkCellViewClass)) | |
43369 | ||
43370 | typedef struct _GtkCellView GtkCellView; | |
43371 | typedef struct _GtkCellViewClass GtkCellViewClass; | |
43372 | typedef struct _GtkCellViewPrivate GtkCellViewPrivate; | |
43373 | ||
43374 | struct _GtkCellView | |
43375 | { | |
43376 | GtkWidget parent_instance; | |
43377 | ||
43378 | ||
43379 | GtkCellViewPrivate *priv; | |
43380 | }; | |
43381 | ||
43382 | struct _GtkCellViewClass | |
43383 | { | |
43384 | GtkWidgetClass parent_class; | |
43385 | }; | |
43386 | ||
43387 | GType gtk_cell_view_get_type (void) __attribute__((__const__)); | |
43388 | GtkWidget *gtk_cell_view_new (void); | |
43389 | GtkWidget *gtk_cell_view_new_with_text (const gchar *text); | |
43390 | GtkWidget *gtk_cell_view_new_with_markup (const gchar *markup); | |
43391 | GtkWidget *gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf); | |
43392 | ||
43393 | void gtk_cell_view_set_model (GtkCellView *cell_view, | |
43394 | GtkTreeModel *model); | |
43395 | void gtk_cell_view_set_displayed_row (GtkCellView *cell_view, | |
43396 | GtkTreePath *path); | |
43397 | GtkTreePath *gtk_cell_view_get_displayed_row (GtkCellView *cell_view); | |
43398 | gboolean gtk_cell_view_get_size_of_row (GtkCellView *cell_view, | |
43399 | GtkTreePath *path, | |
43400 | GtkRequisition *requisition); | |
43401 | ||
43402 | void gtk_cell_view_set_background_color (GtkCellView *cell_view, | |
43403 | const GdkColor *color); | |
43404 | GList *gtk_cell_view_get_cell_renderers (GtkCellView *cell_view); | |
43405 | ||
43406 | ||
43407 | # 57 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
43408 | # 1 "/usr/include/gtk-2.0/gtk/gtkcheckbutton.h" 1 | |
43409 | # 28 "/usr/include/gtk-2.0/gtk/gtkcheckbutton.h" | |
43410 | #define __GTK_CHECK_BUTTON_H__ | |
43411 | ||
43412 | ||
43413 | ||
43414 | # 1 "/usr/include/gtk-2.0/gtk/gtktogglebutton.h" 1 | |
43415 | # 28 "/usr/include/gtk-2.0/gtk/gtktogglebutton.h" | |
43416 | #define __GTK_TOGGLE_BUTTON_H__ | |
43417 | ||
43418 | ||
43419 | ||
43420 | ||
43421 | ||
43422 | ||
43423 | ||
43424 | #define GTK_TYPE_TOGGLE_BUTTON (gtk_toggle_button_get_type ()) | |
43425 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | |
43426 | #define GTK_TOGGLE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButtonClass)) | |
43427 | #define GTK_IS_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_BUTTON)) | |
43428 | #define GTK_IS_TOGGLE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_BUTTON)) | |
43429 | #define GTK_TOGGLE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButtonClass)) | |
43430 | ||
43431 | ||
43432 | typedef struct _GtkToggleButton GtkToggleButton; | |
43433 | typedef struct _GtkToggleButtonClass GtkToggleButtonClass; | |
43434 | ||
43435 | struct _GtkToggleButton | |
43436 | { | |
43437 | GtkButton button; | |
43438 | ||
43439 | guint active : 1; | |
43440 | guint draw_indicator : 1; | |
43441 | guint inconsistent : 1; | |
43442 | }; | |
43443 | ||
43444 | struct _GtkToggleButtonClass | |
43445 | { | |
43446 | GtkButtonClass parent_class; | |
43447 | ||
43448 | void (* toggled) (GtkToggleButton *toggle_button); | |
43449 | ||
43450 | ||
43451 | void (*_gtk_reserved1) (void); | |
43452 | void (*_gtk_reserved2) (void); | |
43453 | void (*_gtk_reserved3) (void); | |
43454 | void (*_gtk_reserved4) (void); | |
43455 | }; | |
43456 | ||
43457 | ||
43458 | GType gtk_toggle_button_get_type (void) __attribute__((__const__)); | |
43459 | ||
43460 | GtkWidget* gtk_toggle_button_new (void); | |
43461 | GtkWidget* gtk_toggle_button_new_with_label (const gchar *label); | |
43462 | GtkWidget* gtk_toggle_button_new_with_mnemonic (const gchar *label); | |
43463 | void gtk_toggle_button_set_mode (GtkToggleButton *toggle_button, | |
43464 | gboolean draw_indicator); | |
43465 | gboolean gtk_toggle_button_get_mode (GtkToggleButton *toggle_button); | |
43466 | void gtk_toggle_button_set_active (GtkToggleButton *toggle_button, | |
43467 | gboolean is_active); | |
43468 | gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button); | |
43469 | void gtk_toggle_button_toggled (GtkToggleButton *toggle_button); | |
43470 | void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button, | |
43471 | gboolean setting); | |
43472 | gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button); | |
43473 | ||
43474 | ||
43475 | ||
43476 | #define gtk_toggle_button_set_state gtk_toggle_button_set_active | |
43477 | ||
43478 | ||
43479 | ||
43480 | # 33 "/usr/include/gtk-2.0/gtk/gtkcheckbutton.h" 2 | |
43481 | ||
43482 | ||
43483 | ||
43484 | ||
43485 | #define GTK_TYPE_CHECK_BUTTON (gtk_check_button_get_type ()) | |
43486 | #define GTK_CHECK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHECK_BUTTON, GtkCheckButton)) | |
43487 | #define GTK_CHECK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHECK_BUTTON, GtkCheckButtonClass)) | |
43488 | #define GTK_IS_CHECK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHECK_BUTTON)) | |
43489 | #define GTK_IS_CHECK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHECK_BUTTON)) | |
43490 | #define GTK_CHECK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHECK_BUTTON, GtkCheckButtonClass)) | |
43491 | ||
43492 | ||
43493 | typedef struct _GtkCheckButton GtkCheckButton; | |
43494 | typedef struct _GtkCheckButtonClass GtkCheckButtonClass; | |
43495 | ||
43496 | struct _GtkCheckButton | |
43497 | { | |
43498 | GtkToggleButton toggle_button; | |
43499 | }; | |
43500 | ||
43501 | struct _GtkCheckButtonClass | |
43502 | { | |
43503 | GtkToggleButtonClass parent_class; | |
43504 | ||
43505 | void (* draw_indicator) (GtkCheckButton *check_button, | |
43506 | GdkRectangle *area); | |
43507 | ||
43508 | ||
43509 | void (*_gtk_reserved1) (void); | |
43510 | void (*_gtk_reserved2) (void); | |
43511 | void (*_gtk_reserved3) (void); | |
43512 | void (*_gtk_reserved4) (void); | |
43513 | }; | |
43514 | ||
43515 | ||
43516 | GType gtk_check_button_get_type (void) __attribute__((__const__)); | |
43517 | GtkWidget* gtk_check_button_new (void); | |
43518 | GtkWidget* gtk_check_button_new_with_label (const gchar *label); | |
43519 | GtkWidget* gtk_check_button_new_with_mnemonic (const gchar *label); | |
43520 | ||
43521 | void _gtk_check_button_get_props (GtkCheckButton *check_button, | |
43522 | gint *indicator_size, | |
43523 | gint *indicator_spacing); | |
43524 | ||
43525 | ||
43526 | # 58 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
43527 | # 1 "/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h" 1 | |
43528 | # 28 "/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h" | |
43529 | #define __GTK_CHECK_MENU_ITEM_H__ | |
43530 | ||
43531 | ||
43532 | ||
43533 | # 1 "/usr/include/gtk-2.0/gtk/gtkmenuitem.h" 1 | |
43534 | # 28 "/usr/include/gtk-2.0/gtk/gtkmenuitem.h" | |
43535 | #define __GTK_MENU_ITEM_H__ | |
43536 | ||
43537 | ||
43538 | ||
43539 | # 1 "/usr/include/gtk-2.0/gtk/gtkitem.h" 1 | |
43540 | # 28 "/usr/include/gtk-2.0/gtk/gtkitem.h" | |
43541 | #define __GTK_ITEM_H__ | |
43542 | ||
43543 | ||
43544 | ||
43545 | ||
43546 | ||
43547 | ||
43548 | ||
43549 | ||
43550 | #define GTK_TYPE_ITEM (gtk_item_get_type ()) | |
43551 | #define GTK_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ITEM, GtkItem)) | |
43552 | #define GTK_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ITEM, GtkItemClass)) | |
43553 | #define GTK_IS_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ITEM)) | |
43554 | #define GTK_IS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ITEM)) | |
43555 | #define GTK_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ITEM, GtkItemClass)) | |
43556 | ||
43557 | ||
43558 | typedef struct _GtkItem GtkItem; | |
43559 | typedef struct _GtkItemClass GtkItemClass; | |
43560 | ||
43561 | struct _GtkItem | |
43562 | { | |
43563 | GtkBin bin; | |
43564 | }; | |
43565 | ||
43566 | struct _GtkItemClass | |
43567 | { | |
43568 | GtkBinClass parent_class; | |
43569 | ||
43570 | void (* select) (GtkItem *item); | |
43571 | void (* deselect) (GtkItem *item); | |
43572 | void (* toggle) (GtkItem *item); | |
43573 | ||
43574 | ||
43575 | void (*_gtk_reserved1) (void); | |
43576 | void (*_gtk_reserved2) (void); | |
43577 | void (*_gtk_reserved3) (void); | |
43578 | void (*_gtk_reserved4) (void); | |
43579 | }; | |
43580 | ||
43581 | ||
43582 | GType gtk_item_get_type (void) __attribute__((__const__)); | |
43583 | void gtk_item_select (GtkItem *item); | |
43584 | void gtk_item_deselect (GtkItem *item); | |
43585 | void gtk_item_toggle (GtkItem *item); | |
43586 | ||
43587 | ||
43588 | # 33 "/usr/include/gtk-2.0/gtk/gtkmenuitem.h" 2 | |
43589 | ||
43590 | ||
43591 | ||
43592 | ||
43593 | #define GTK_TYPE_MENU_ITEM (gtk_menu_item_get_type ()) | |
43594 | #define GTK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_ITEM, GtkMenuItem)) | |
43595 | #define GTK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_ITEM, GtkMenuItemClass)) | |
43596 | #define GTK_IS_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_ITEM)) | |
43597 | #define GTK_IS_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_ITEM)) | |
43598 | #define GTK_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_ITEM, GtkMenuItemClass)) | |
43599 | ||
43600 | ||
43601 | typedef struct _GtkMenuItem GtkMenuItem; | |
43602 | typedef struct _GtkMenuItemClass GtkMenuItemClass; | |
43603 | ||
43604 | struct _GtkMenuItem | |
43605 | { | |
43606 | GtkItem item; | |
43607 | ||
43608 | GtkWidget *submenu; | |
43609 | GdkWindow *event_window; | |
43610 | ||
43611 | guint16 toggle_size; | |
43612 | guint16 accelerator_width; | |
43613 | gchar *accel_path; | |
43614 | ||
43615 | guint show_submenu_indicator : 1; | |
43616 | guint submenu_placement : 1; | |
43617 | guint submenu_direction : 1; | |
43618 | guint right_justify: 1; | |
43619 | guint timer_from_keypress : 1; | |
43620 | guint timer; | |
43621 | }; | |
43622 | ||
43623 | struct _GtkMenuItemClass | |
43624 | { | |
43625 | GtkItemClass parent_class; | |
43626 | ||
43627 | ||
43628 | ||
43629 | ||
43630 | ||
43631 | ||
43632 | ||
43633 | guint hide_on_activate : 1; | |
43634 | ||
43635 | void (* activate) (GtkMenuItem *menu_item); | |
43636 | void (* activate_item) (GtkMenuItem *menu_item); | |
43637 | void (* toggle_size_request) (GtkMenuItem *menu_item, | |
43638 | gint *requisition); | |
43639 | void (* toggle_size_allocate) (GtkMenuItem *menu_item, | |
43640 | gint allocation); | |
43641 | ||
43642 | ||
43643 | void (*_gtk_reserved1) (void); | |
43644 | void (*_gtk_reserved2) (void); | |
43645 | void (*_gtk_reserved3) (void); | |
43646 | void (*_gtk_reserved4) (void); | |
43647 | }; | |
43648 | ||
43649 | ||
43650 | GType gtk_menu_item_get_type (void) __attribute__((__const__)); | |
43651 | GtkWidget* gtk_menu_item_new (void); | |
43652 | GtkWidget* gtk_menu_item_new_with_label (const gchar *label); | |
43653 | GtkWidget* gtk_menu_item_new_with_mnemonic (const gchar *label); | |
43654 | void gtk_menu_item_set_submenu (GtkMenuItem *menu_item, | |
43655 | GtkWidget *submenu); | |
43656 | GtkWidget* gtk_menu_item_get_submenu (GtkMenuItem *menu_item); | |
43657 | void gtk_menu_item_remove_submenu (GtkMenuItem *menu_item); | |
43658 | void gtk_menu_item_select (GtkMenuItem *menu_item); | |
43659 | void gtk_menu_item_deselect (GtkMenuItem *menu_item); | |
43660 | void gtk_menu_item_activate (GtkMenuItem *menu_item); | |
43661 | void gtk_menu_item_toggle_size_request (GtkMenuItem *menu_item, | |
43662 | gint *requisition); | |
43663 | void gtk_menu_item_toggle_size_allocate (GtkMenuItem *menu_item, | |
43664 | gint allocation); | |
43665 | void gtk_menu_item_set_right_justified (GtkMenuItem *menu_item, | |
43666 | gboolean right_justified); | |
43667 | gboolean gtk_menu_item_get_right_justified (GtkMenuItem *menu_item); | |
43668 | void gtk_menu_item_set_accel_path (GtkMenuItem *menu_item, | |
43669 | const gchar *accel_path); | |
43670 | ||
43671 | ||
43672 | void _gtk_menu_item_refresh_accel_path (GtkMenuItem *menu_item, | |
43673 | const gchar *prefix, | |
43674 | GtkAccelGroup *accel_group, | |
43675 | gboolean group_changed); | |
43676 | gboolean _gtk_menu_item_is_selectable (GtkWidget *menu_item); | |
43677 | void _gtk_menu_item_popup_submenu (GtkWidget *menu_item); | |
43678 | ||
43679 | ||
43680 | #define gtk_menu_item_right_justify(menu_item) gtk_menu_item_set_right_justified ((menu_item), TRUE) | |
43681 | ||
43682 | ||
43683 | ||
43684 | # 33 "/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h" 2 | |
43685 | ||
43686 | ||
43687 | ||
43688 | ||
43689 | #define GTK_TYPE_CHECK_MENU_ITEM (gtk_check_menu_item_get_type ()) | |
43690 | #define GTK_CHECK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItem)) | |
43691 | #define GTK_CHECK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItemClass)) | |
43692 | #define GTK_IS_CHECK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHECK_MENU_ITEM)) | |
43693 | #define GTK_IS_CHECK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHECK_MENU_ITEM)) | |
43694 | #define GTK_CHECK_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItemClass)) | |
43695 | ||
43696 | ||
43697 | typedef struct _GtkCheckMenuItem GtkCheckMenuItem; | |
43698 | typedef struct _GtkCheckMenuItemClass GtkCheckMenuItemClass; | |
43699 | ||
43700 | struct _GtkCheckMenuItem | |
43701 | { | |
43702 | GtkMenuItem menu_item; | |
43703 | ||
43704 | guint active : 1; | |
43705 | guint always_show_toggle : 1; | |
43706 | guint inconsistent : 1; | |
43707 | guint draw_as_radio : 1; | |
43708 | }; | |
43709 | ||
43710 | struct _GtkCheckMenuItemClass | |
43711 | { | |
43712 | GtkMenuItemClass parent_class; | |
43713 | ||
43714 | void (* toggled) (GtkCheckMenuItem *check_menu_item); | |
43715 | void (* draw_indicator) (GtkCheckMenuItem *check_menu_item, | |
43716 | GdkRectangle *area); | |
43717 | ||
43718 | ||
43719 | void (*_gtk_reserved1) (void); | |
43720 | void (*_gtk_reserved2) (void); | |
43721 | void (*_gtk_reserved3) (void); | |
43722 | void (*_gtk_reserved4) (void); | |
43723 | }; | |
43724 | ||
43725 | ||
43726 | GType gtk_check_menu_item_get_type (void) __attribute__((__const__)); | |
43727 | ||
43728 | GtkWidget* gtk_check_menu_item_new (void); | |
43729 | GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label); | |
43730 | GtkWidget* gtk_check_menu_item_new_with_mnemonic (const gchar *label); | |
43731 | void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item, | |
43732 | gboolean is_active); | |
43733 | gboolean gtk_check_menu_item_get_active (GtkCheckMenuItem *check_menu_item); | |
43734 | void gtk_check_menu_item_toggled (GtkCheckMenuItem *check_menu_item); | |
43735 | void gtk_check_menu_item_set_inconsistent (GtkCheckMenuItem *check_menu_item, | |
43736 | gboolean setting); | |
43737 | gboolean gtk_check_menu_item_get_inconsistent (GtkCheckMenuItem *check_menu_item); | |
43738 | void gtk_check_menu_item_set_draw_as_radio (GtkCheckMenuItem *check_menu_item, | |
43739 | gboolean draw_as_radio); | |
43740 | gboolean gtk_check_menu_item_get_draw_as_radio (GtkCheckMenuItem *check_menu_item); | |
43741 | ||
43742 | ||
43743 | ||
43744 | void gtk_check_menu_item_set_show_toggle (GtkCheckMenuItem *menu_item, | |
43745 | gboolean always); | |
43746 | #define gtk_check_menu_item_set_state gtk_check_menu_item_set_active | |
43747 | ||
43748 | ||
43749 | ||
43750 | # 59 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
43751 | # 1 "/usr/include/gtk-2.0/gtk/gtkclipboard.h" 1 | |
43752 | # 23 "/usr/include/gtk-2.0/gtk/gtkclipboard.h" | |
43753 | #define __GTK_CLIPBOARD_H__ | |
43754 | ||
43755 | # 1 "/usr/include/gtk-2.0/gtk/gtkselection.h" 1 | |
43756 | # 28 "/usr/include/gtk-2.0/gtk/gtkselection.h" | |
43757 | #define __GTK_SELECTION_H__ | |
43758 | ||
43759 | ||
43760 | ||
43761 | ||
43762 | ||
43763 | ||
43764 | ||
43765 | ||
43766 | typedef struct _GtkTargetList GtkTargetList; | |
43767 | typedef struct _GtkTargetEntry GtkTargetEntry; | |
43768 | ||
43769 | #define GTK_TYPE_SELECTION_DATA (gtk_selection_data_get_type ()) | |
43770 | # 53 "/usr/include/gtk-2.0/gtk/gtkselection.h" | |
43771 | struct _GtkSelectionData | |
43772 | { | |
43773 | GdkAtom selection; | |
43774 | GdkAtom target; | |
43775 | GdkAtom type; | |
43776 | gint format; | |
43777 | guchar *data; | |
43778 | gint length; | |
43779 | GdkDisplay *display; | |
43780 | }; | |
43781 | ||
43782 | struct _GtkTargetEntry { | |
43783 | gchar *target; | |
43784 | guint flags; | |
43785 | guint info; | |
43786 | }; | |
43787 | ||
43788 | ||
43789 | ||
43790 | ||
43791 | ||
43792 | typedef struct _GtkTargetPair GtkTargetPair; | |
43793 | ||
43794 | ||
43795 | struct _GtkTargetList { | |
43796 | GList *list; | |
43797 | guint ref_count; | |
43798 | }; | |
43799 | ||
43800 | struct _GtkTargetPair { | |
43801 | GdkAtom target; | |
43802 | guint flags; | |
43803 | guint info; | |
43804 | }; | |
43805 | ||
43806 | GtkTargetList *gtk_target_list_new (const GtkTargetEntry *targets, | |
43807 | guint ntargets); | |
43808 | void gtk_target_list_ref (GtkTargetList *list); | |
43809 | void gtk_target_list_unref (GtkTargetList *list); | |
43810 | void gtk_target_list_add (GtkTargetList *list, | |
43811 | GdkAtom target, | |
43812 | guint flags, | |
43813 | guint info); | |
43814 | void gtk_target_list_add_text_targets (GtkTargetList *list, | |
43815 | guint info); | |
43816 | void gtk_target_list_add_image_targets (GtkTargetList *list, | |
43817 | guint info, | |
43818 | gboolean writable); | |
43819 | void gtk_target_list_add_uri_targets (GtkTargetList *list, | |
43820 | guint info); | |
43821 | void gtk_target_list_add_table (GtkTargetList *list, | |
43822 | const GtkTargetEntry *targets, | |
43823 | guint ntargets); | |
43824 | void gtk_target_list_remove (GtkTargetList *list, | |
43825 | GdkAtom target); | |
43826 | gboolean gtk_target_list_find (GtkTargetList *list, | |
43827 | GdkAtom target, | |
43828 | guint *info); | |
43829 | ||
43830 | ||
43831 | ||
43832 | gboolean gtk_selection_owner_set (GtkWidget *widget, | |
43833 | GdkAtom selection, | |
43834 | guint32 time_); | |
43835 | gboolean gtk_selection_owner_set_for_display (GdkDisplay *display, | |
43836 | GtkWidget *widget, | |
43837 | GdkAtom selection, | |
43838 | guint32 time_); | |
43839 | ||
43840 | void gtk_selection_add_target (GtkWidget *widget, | |
43841 | GdkAtom selection, | |
43842 | GdkAtom target, | |
43843 | guint info); | |
43844 | void gtk_selection_add_targets (GtkWidget *widget, | |
43845 | GdkAtom selection, | |
43846 | const GtkTargetEntry *targets, | |
43847 | guint ntargets); | |
43848 | void gtk_selection_clear_targets (GtkWidget *widget, | |
43849 | GdkAtom selection); | |
43850 | gboolean gtk_selection_convert (GtkWidget *widget, | |
43851 | GdkAtom selection, | |
43852 | GdkAtom target, | |
43853 | guint32 time_); | |
43854 | void gtk_selection_data_set (GtkSelectionData *selection_data, | |
43855 | GdkAtom type, | |
43856 | gint format, | |
43857 | const guchar *data, | |
43858 | gint length); | |
43859 | gboolean gtk_selection_data_set_text (GtkSelectionData *selection_data, | |
43860 | const gchar *str, | |
43861 | gint len); | |
43862 | guchar * gtk_selection_data_get_text (GtkSelectionData *selection_data); | |
43863 | gboolean gtk_selection_data_set_pixbuf (GtkSelectionData *selection_data, | |
43864 | GdkPixbuf *pixbuf); | |
43865 | GdkPixbuf *gtk_selection_data_get_pixbuf (GtkSelectionData *selection_data); | |
43866 | gboolean gtk_selection_data_set_uris (GtkSelectionData *selection_data, | |
43867 | gchar **uris); | |
43868 | gchar **gtk_selection_data_get_uris (GtkSelectionData *selection_data); | |
43869 | ||
43870 | gboolean gtk_selection_data_get_targets (GtkSelectionData *selection_data, | |
43871 | GdkAtom **targets, | |
43872 | gint *n_atoms); | |
43873 | gboolean gtk_selection_data_targets_include_text (GtkSelectionData *selection_data); | |
43874 | gboolean gtk_selection_data_targets_include_image (GtkSelectionData *selection_data, | |
43875 | gboolean writable); | |
43876 | ||
43877 | ||
43878 | ||
43879 | void gtk_selection_remove_all (GtkWidget *widget); | |
43880 | ||
43881 | ||
43882 | ||
43883 | gboolean gtk_selection_clear (GtkWidget *widget, | |
43884 | GdkEventSelection *event); | |
43885 | ||
43886 | gboolean _gtk_selection_request (GtkWidget *widget, | |
43887 | GdkEventSelection *event); | |
43888 | gboolean _gtk_selection_incr_event (GdkWindow *window, | |
43889 | GdkEventProperty *event); | |
43890 | gboolean _gtk_selection_notify (GtkWidget *widget, | |
43891 | GdkEventSelection *event); | |
43892 | gboolean _gtk_selection_property_notify (GtkWidget *widget, | |
43893 | GdkEventProperty *event); | |
43894 | ||
43895 | GType gtk_selection_data_get_type (void) __attribute__((__const__)); | |
43896 | GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data); | |
43897 | void gtk_selection_data_free (GtkSelectionData *data); | |
43898 | ||
43899 | ||
43900 | ||
43901 | # 26 "/usr/include/gtk-2.0/gtk/gtkclipboard.h" 2 | |
43902 | ||
43903 | ||
43904 | ||
43905 | #define GTK_TYPE_CLIPBOARD (gtk_clipboard_get_type ()) | |
43906 | #define GTK_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIPBOARD, GtkClipboard)) | |
43907 | #define GTK_IS_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CLIPBOARD)) | |
43908 | ||
43909 | typedef void (* GtkClipboardReceivedFunc) (GtkClipboard *clipboard, | |
43910 | GtkSelectionData *selection_data, | |
43911 | gpointer data); | |
43912 | typedef void (* GtkClipboardTextReceivedFunc) (GtkClipboard *clipboard, | |
43913 | const gchar *text, | |
43914 | gpointer data); | |
43915 | typedef void (* GtkClipboardImageReceivedFunc) (GtkClipboard *clipboard, | |
43916 | GdkPixbuf *pixbuf, | |
43917 | gpointer data); | |
43918 | typedef void (* GtkClipboardTargetsReceivedFunc) (GtkClipboard *clipboard, | |
43919 | GdkAtom *atoms, | |
43920 | gint n_atoms, | |
43921 | gpointer data); | |
43922 | ||
43923 | ||
43924 | ||
43925 | ||
43926 | ||
43927 | typedef void (* GtkClipboardGetFunc) (GtkClipboard *clipboard, | |
43928 | GtkSelectionData *selection_data, | |
43929 | guint info, | |
43930 | gpointer user_data_or_owner); | |
43931 | typedef void (* GtkClipboardClearFunc) (GtkClipboard *clipboard, | |
43932 | gpointer user_data_or_owner); | |
43933 | ||
43934 | GType gtk_clipboard_get_type (void) __attribute__((__const__)); | |
43935 | ||
43936 | GtkClipboard *gtk_clipboard_get_for_display (GdkDisplay *display, | |
43937 | GdkAtom selection); | |
43938 | ||
43939 | GtkClipboard *gtk_clipboard_get (GdkAtom selection); | |
43940 | ||
43941 | ||
43942 | GdkDisplay *gtk_clipboard_get_display (GtkClipboard *clipboard); | |
43943 | ||
43944 | ||
43945 | gboolean gtk_clipboard_set_with_data (GtkClipboard *clipboard, | |
43946 | const GtkTargetEntry *targets, | |
43947 | guint n_targets, | |
43948 | GtkClipboardGetFunc get_func, | |
43949 | GtkClipboardClearFunc clear_func, | |
43950 | gpointer user_data); | |
43951 | gboolean gtk_clipboard_set_with_owner (GtkClipboard *clipboard, | |
43952 | const GtkTargetEntry *targets, | |
43953 | guint n_targets, | |
43954 | GtkClipboardGetFunc get_func, | |
43955 | GtkClipboardClearFunc clear_func, | |
43956 | GObject *owner); | |
43957 | GObject *gtk_clipboard_get_owner (GtkClipboard *clipboard); | |
43958 | void gtk_clipboard_clear (GtkClipboard *clipboard); | |
43959 | void gtk_clipboard_set_text (GtkClipboard *clipboard, | |
43960 | const gchar *text, | |
43961 | gint len); | |
43962 | void gtk_clipboard_set_image (GtkClipboard *clipboard, | |
43963 | GdkPixbuf *pixbuf); | |
43964 | ||
43965 | void gtk_clipboard_request_contents (GtkClipboard *clipboard, | |
43966 | GdkAtom target, | |
43967 | GtkClipboardReceivedFunc callback, | |
43968 | gpointer user_data); | |
43969 | void gtk_clipboard_request_text (GtkClipboard *clipboard, | |
43970 | GtkClipboardTextReceivedFunc callback, | |
43971 | gpointer user_data); | |
43972 | void gtk_clipboard_request_image (GtkClipboard *clipboard, | |
43973 | GtkClipboardImageReceivedFunc callback, | |
43974 | gpointer user_data); | |
43975 | void gtk_clipboard_request_targets (GtkClipboard *clipboard, | |
43976 | GtkClipboardTargetsReceivedFunc callback, | |
43977 | gpointer user_data); | |
43978 | ||
43979 | GtkSelectionData *gtk_clipboard_wait_for_contents (GtkClipboard *clipboard, | |
43980 | GdkAtom target); | |
43981 | gchar * gtk_clipboard_wait_for_text (GtkClipboard *clipboard); | |
43982 | GdkPixbuf * gtk_clipboard_wait_for_image (GtkClipboard *clipboard); | |
43983 | gboolean gtk_clipboard_wait_for_targets (GtkClipboard *clipboard, | |
43984 | GdkAtom **targets, | |
43985 | gint *n_targets); | |
43986 | ||
43987 | gboolean gtk_clipboard_wait_is_text_available (GtkClipboard *clipboard); | |
43988 | gboolean gtk_clipboard_wait_is_image_available (GtkClipboard *clipboard); | |
43989 | gboolean gtk_clipboard_wait_is_target_available (GtkClipboard *clipboard, | |
43990 | GdkAtom target); | |
43991 | ||
43992 | ||
43993 | void gtk_clipboard_set_can_store (GtkClipboard *clipboard, | |
43994 | const GtkTargetEntry *targets, | |
43995 | gint n_targets); | |
43996 | ||
43997 | void gtk_clipboard_store (GtkClipboard *clipboard); | |
43998 | ||
43999 | ||
44000 | void _gtk_clipboard_handle_event (GdkEventOwnerChange *event); | |
44001 | ||
44002 | void _gtk_clipboard_store_all (void); | |
44003 | ||
44004 | ||
44005 | # 60 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
44006 | # 1 "/usr/include/gtk-2.0/gtk/gtkclist.h" 1 | |
44007 | # 31 "/usr/include/gtk-2.0/gtk/gtkclist.h" | |
44008 | #define __GTK_CLIST_H__ | |
44009 | ||
44010 | ||
44011 | ||
44012 | ||
44013 | ||
44014 | ||
44015 | # 1 "/usr/include/gtk-2.0/gtk/gtkhscrollbar.h" 1 | |
44016 | # 28 "/usr/include/gtk-2.0/gtk/gtkhscrollbar.h" | |
44017 | #define __GTK_HSCROLLBAR_H__ | |
44018 | ||
44019 | ||
44020 | ||
44021 | # 1 "/usr/include/gtk-2.0/gtk/gtkscrollbar.h" 1 | |
44022 | # 28 "/usr/include/gtk-2.0/gtk/gtkscrollbar.h" | |
44023 | #define __GTK_SCROLLBAR_H__ | |
44024 | ||
44025 | ||
44026 | ||
44027 | # 1 "/usr/include/gtk-2.0/gtk/gtkrange.h" 1 | |
44028 | # 28 "/usr/include/gtk-2.0/gtk/gtkrange.h" | |
44029 | #define __GTK_RANGE_H__ | |
44030 | ||
44031 | ||
44032 | ||
44033 | ||
44034 | ||
44035 | ||
44036 | ||
44037 | ||
44038 | ||
44039 | ||
44040 | #define GTK_TYPE_RANGE (gtk_range_get_type ()) | |
44041 | #define GTK_RANGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RANGE, GtkRange)) | |
44042 | #define GTK_RANGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RANGE, GtkRangeClass)) | |
44043 | #define GTK_IS_RANGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RANGE)) | |
44044 | #define GTK_IS_RANGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RANGE)) | |
44045 | #define GTK_RANGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RANGE, GtkRangeClass)) | |
44046 | ||
44047 | ||
44048 | typedef struct _GtkRangeLayout GtkRangeLayout; | |
44049 | typedef struct _GtkRangeStepTimer GtkRangeStepTimer; | |
44050 | ||
44051 | typedef struct _GtkRange GtkRange; | |
44052 | typedef struct _GtkRangeClass GtkRangeClass; | |
44053 | ||
44054 | struct _GtkRange | |
44055 | { | |
44056 | GtkWidget widget; | |
44057 | ||
44058 | GtkAdjustment *adjustment; | |
44059 | GtkUpdateType update_policy; | |
44060 | guint inverted : 1; | |
44061 | ||
44062 | ||
44063 | ||
44064 | guint flippable : 1; | |
44065 | ||
44066 | ||
44067 | ||
44068 | ||
44069 | ||
44070 | guint has_stepper_a : 1; | |
44071 | guint has_stepper_b : 1; | |
44072 | guint has_stepper_c : 1; | |
44073 | guint has_stepper_d : 1; | |
44074 | ||
44075 | guint need_recalc : 1; | |
44076 | ||
44077 | guint slider_size_fixed : 1; | |
44078 | ||
44079 | gint min_slider_size; | |
44080 | ||
44081 | GtkOrientation orientation; | |
44082 | ||
44083 | ||
44084 | GdkRectangle range_rect; | |
44085 | ||
44086 | gint slider_start, slider_end; | |
44087 | ||
44088 | ||
44089 | gint round_digits; | |
44090 | ||
44091 | ||
44092 | guint trough_click_forward : 1; | |
44093 | guint update_pending : 1; | |
44094 | GtkRangeLayout *layout; | |
44095 | GtkRangeStepTimer *timer; | |
44096 | gint slide_initial_slider_position; | |
44097 | gint slide_initial_coordinate; | |
44098 | guint update_timeout_id; | |
44099 | GdkWindow *event_window; | |
44100 | }; | |
44101 | ||
44102 | struct _GtkRangeClass | |
44103 | { | |
44104 | GtkWidgetClass parent_class; | |
44105 | ||
44106 | ||
44107 | gchar *slider_detail; | |
44108 | gchar *stepper_detail; | |
44109 | ||
44110 | void (* value_changed) (GtkRange *range); | |
44111 | void (* adjust_bounds) (GtkRange *range, | |
44112 | gdouble new_value); | |
44113 | ||
44114 | ||
44115 | void (* move_slider) (GtkRange *range, | |
44116 | GtkScrollType scroll); | |
44117 | ||
44118 | ||
44119 | void (* get_range_border) (GtkRange *range, | |
44120 | GtkBorder *border_); | |
44121 | ||
44122 | gboolean (* change_value) (GtkRange *range, | |
44123 | GtkScrollType scroll, | |
44124 | gdouble new_value); | |
44125 | ||
44126 | ||
44127 | void (*_gtk_reserved1) (void); | |
44128 | void (*_gtk_reserved2) (void); | |
44129 | void (*_gtk_reserved3) (void); | |
44130 | }; | |
44131 | ||
44132 | ||
44133 | GType gtk_range_get_type (void) __attribute__((__const__)); | |
44134 | ||
44135 | void gtk_range_set_update_policy (GtkRange *range, | |
44136 | GtkUpdateType policy); | |
44137 | GtkUpdateType gtk_range_get_update_policy (GtkRange *range); | |
44138 | void gtk_range_set_adjustment (GtkRange *range, | |
44139 | GtkAdjustment *adjustment); | |
44140 | GtkAdjustment* gtk_range_get_adjustment (GtkRange *range); | |
44141 | void gtk_range_set_inverted (GtkRange *range, | |
44142 | gboolean setting); | |
44143 | gboolean gtk_range_get_inverted (GtkRange *range); | |
44144 | void gtk_range_set_increments (GtkRange *range, | |
44145 | gdouble step, | |
44146 | gdouble page); | |
44147 | void gtk_range_set_range (GtkRange *range, | |
44148 | gdouble min, | |
44149 | gdouble max); | |
44150 | void gtk_range_set_value (GtkRange *range, | |
44151 | gdouble value); | |
44152 | gdouble gtk_range_get_value (GtkRange *range); | |
44153 | ||
44154 | gdouble _gtk_range_get_wheel_delta (GtkRange *range, | |
44155 | GdkScrollDirection direction); | |
44156 | ||
44157 | ||
44158 | ||
44159 | # 33 "/usr/include/gtk-2.0/gtk/gtkscrollbar.h" 2 | |
44160 | ||
44161 | ||
44162 | ||
44163 | ||
44164 | #define GTK_TYPE_SCROLLBAR (gtk_scrollbar_get_type ()) | |
44165 | #define GTK_SCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCROLLBAR, GtkScrollbar)) | |
44166 | #define GTK_SCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLBAR, GtkScrollbarClass)) | |
44167 | #define GTK_IS_SCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCROLLBAR)) | |
44168 | #define GTK_IS_SCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLBAR)) | |
44169 | #define GTK_SCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCROLLBAR, GtkScrollbarClass)) | |
44170 | ||
44171 | ||
44172 | typedef struct _GtkScrollbar GtkScrollbar; | |
44173 | typedef struct _GtkScrollbarClass GtkScrollbarClass; | |
44174 | ||
44175 | struct _GtkScrollbar | |
44176 | { | |
44177 | GtkRange range; | |
44178 | }; | |
44179 | ||
44180 | struct _GtkScrollbarClass | |
44181 | { | |
44182 | GtkRangeClass parent_class; | |
44183 | ||
44184 | ||
44185 | void (*_gtk_reserved1) (void); | |
44186 | void (*_gtk_reserved2) (void); | |
44187 | void (*_gtk_reserved3) (void); | |
44188 | void (*_gtk_reserved4) (void); | |
44189 | }; | |
44190 | ||
44191 | ||
44192 | GType gtk_scrollbar_get_type (void) __attribute__((__const__)); | |
44193 | ||
44194 | ||
44195 | ||
44196 | # 33 "/usr/include/gtk-2.0/gtk/gtkhscrollbar.h" 2 | |
44197 | ||
44198 | ||
44199 | ||
44200 | ||
44201 | ||
44202 | #define GTK_TYPE_HSCROLLBAR (gtk_hscrollbar_get_type ()) | |
44203 | #define GTK_HSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSCROLLBAR, GtkHScrollbar)) | |
44204 | #define GTK_HSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSCROLLBAR, GtkHScrollbarClass)) | |
44205 | #define GTK_IS_HSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSCROLLBAR)) | |
44206 | #define GTK_IS_HSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSCROLLBAR)) | |
44207 | #define GTK_HSCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSCROLLBAR, GtkHScrollbarClass)) | |
44208 | ||
44209 | ||
44210 | typedef struct _GtkHScrollbar GtkHScrollbar; | |
44211 | typedef struct _GtkHScrollbarClass GtkHScrollbarClass; | |
44212 | ||
44213 | struct _GtkHScrollbar | |
44214 | { | |
44215 | GtkScrollbar scrollbar; | |
44216 | }; | |
44217 | ||
44218 | struct _GtkHScrollbarClass | |
44219 | { | |
44220 | GtkScrollbarClass parent_class; | |
44221 | }; | |
44222 | ||
44223 | ||
44224 | GType gtk_hscrollbar_get_type (void) __attribute__((__const__)); | |
44225 | GtkWidget* gtk_hscrollbar_new (GtkAdjustment *adjustment); | |
44226 | ||
44227 | ||
44228 | ||
44229 | # 39 "/usr/include/gtk-2.0/gtk/gtkclist.h" 2 | |
44230 | # 1 "/usr/include/gtk-2.0/gtk/gtkvscrollbar.h" 1 | |
44231 | # 28 "/usr/include/gtk-2.0/gtk/gtkvscrollbar.h" | |
44232 | #define __GTK_VSCROLLBAR_H__ | |
44233 | ||
44234 | ||
44235 | ||
44236 | ||
44237 | ||
44238 | ||
44239 | ||
44240 | ||
44241 | ||
44242 | #define GTK_TYPE_VSCROLLBAR (gtk_vscrollbar_get_type ()) | |
44243 | #define GTK_VSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSCROLLBAR, GtkVScrollbar)) | |
44244 | #define GTK_VSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCROLLBAR, GtkVScrollbarClass)) | |
44245 | #define GTK_IS_VSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSCROLLBAR)) | |
44246 | #define GTK_IS_VSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCROLLBAR)) | |
44247 | #define GTK_VSCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSCROLLBAR, GtkVScrollbarClass)) | |
44248 | ||
44249 | ||
44250 | typedef struct _GtkVScrollbar GtkVScrollbar; | |
44251 | typedef struct _GtkVScrollbarClass GtkVScrollbarClass; | |
44252 | ||
44253 | struct _GtkVScrollbar | |
44254 | { | |
44255 | GtkScrollbar scrollbar; | |
44256 | }; | |
44257 | ||
44258 | struct _GtkVScrollbarClass | |
44259 | { | |
44260 | GtkScrollbarClass parent_class; | |
44261 | }; | |
44262 | ||
44263 | ||
44264 | GType gtk_vscrollbar_get_type (void) __attribute__((__const__)); | |
44265 | GtkWidget* gtk_vscrollbar_new (GtkAdjustment *adjustment); | |
44266 | ||
44267 | ||
44268 | ||
44269 | # 40 "/usr/include/gtk-2.0/gtk/gtkclist.h" 2 | |
44270 | ||
44271 | ||
44272 | ||
44273 | ||
44274 | ||
44275 | ||
44276 | ||
44277 | enum { | |
44278 | GTK_CLIST_IN_DRAG = 1 << 0, | |
44279 | GTK_CLIST_ROW_HEIGHT_SET = 1 << 1, | |
44280 | GTK_CLIST_SHOW_TITLES = 1 << 2, | |
44281 | ||
44282 | GTK_CLIST_ADD_MODE = 1 << 4, | |
44283 | GTK_CLIST_AUTO_SORT = 1 << 5, | |
44284 | GTK_CLIST_AUTO_RESIZE_BLOCKED = 1 << 6, | |
44285 | GTK_CLIST_REORDERABLE = 1 << 7, | |
44286 | GTK_CLIST_USE_DRAG_ICONS = 1 << 8, | |
44287 | GTK_CLIST_DRAW_DRAG_LINE = 1 << 9, | |
44288 | GTK_CLIST_DRAW_DRAG_RECT = 1 << 10 | |
44289 | }; | |
44290 | ||
44291 | ||
44292 | typedef enum | |
44293 | { | |
44294 | GTK_CELL_EMPTY, | |
44295 | GTK_CELL_TEXT, | |
44296 | GTK_CELL_PIXMAP, | |
44297 | GTK_CELL_PIXTEXT, | |
44298 | GTK_CELL_WIDGET | |
44299 | } GtkCellType; | |
44300 | ||
44301 | typedef enum | |
44302 | { | |
44303 | GTK_CLIST_DRAG_NONE, | |
44304 | GTK_CLIST_DRAG_BEFORE, | |
44305 | GTK_CLIST_DRAG_INTO, | |
44306 | GTK_CLIST_DRAG_AFTER | |
44307 | } GtkCListDragPos; | |
44308 | ||
44309 | typedef enum | |
44310 | { | |
44311 | GTK_BUTTON_IGNORED = 0, | |
44312 | GTK_BUTTON_SELECTS = 1 << 0, | |
44313 | GTK_BUTTON_DRAGS = 1 << 1, | |
44314 | GTK_BUTTON_EXPANDS = 1 << 2 | |
44315 | } GtkButtonAction; | |
44316 | ||
44317 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) | |
44318 | #define GTK_CLIST(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) | |
44319 | #define GTK_CLIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CLIST, GtkCListClass)) | |
44320 | #define GTK_IS_CLIST(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CLIST)) | |
44321 | #define GTK_IS_CLIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CLIST)) | |
44322 | #define GTK_CLIST_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CLIST, GtkCListClass)) | |
44323 | ||
44324 | ||
44325 | #define GTK_CLIST_FLAGS(clist) (GTK_CLIST (clist)->flags) | |
44326 | #define GTK_CLIST_SET_FLAG(clist,flag) (GTK_CLIST_FLAGS (clist) |= (GTK_ ## flag)) | |
44327 | #define GTK_CLIST_UNSET_FLAG(clist,flag) (GTK_CLIST_FLAGS (clist) &= ~(GTK_ ## flag)) | |
44328 | ||
44329 | #define GTK_CLIST_IN_DRAG(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_IN_DRAG) | |
44330 | #define GTK_CLIST_ROW_HEIGHT_SET(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_ROW_HEIGHT_SET) | |
44331 | #define GTK_CLIST_SHOW_TITLES(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_SHOW_TITLES) | |
44332 | #define GTK_CLIST_ADD_MODE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_ADD_MODE) | |
44333 | #define GTK_CLIST_AUTO_SORT(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_AUTO_SORT) | |
44334 | #define GTK_CLIST_AUTO_RESIZE_BLOCKED(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_AUTO_RESIZE_BLOCKED) | |
44335 | #define GTK_CLIST_REORDERABLE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_REORDERABLE) | |
44336 | #define GTK_CLIST_USE_DRAG_ICONS(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_USE_DRAG_ICONS) | |
44337 | #define GTK_CLIST_DRAW_DRAG_LINE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_DRAW_DRAG_LINE) | |
44338 | #define GTK_CLIST_DRAW_DRAG_RECT(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_DRAW_DRAG_RECT) | |
44339 | ||
44340 | #define GTK_CLIST_ROW(_glist_) ((GtkCListRow *)((_glist_)->data)) | |
44341 | ||
44342 | ||
44343 | #define GTK_CELL_TEXT(cell) (((GtkCellText *) &(cell))) | |
44344 | #define GTK_CELL_PIXMAP(cell) (((GtkCellPixmap *) &(cell))) | |
44345 | #define GTK_CELL_PIXTEXT(cell) (((GtkCellPixText *) &(cell))) | |
44346 | #define GTK_CELL_WIDGET(cell) (((GtkCellWidget *) &(cell))) | |
44347 | ||
44348 | typedef struct _GtkCList GtkCList; | |
44349 | typedef struct _GtkCListClass GtkCListClass; | |
44350 | typedef struct _GtkCListColumn GtkCListColumn; | |
44351 | typedef struct _GtkCListRow GtkCListRow; | |
44352 | ||
44353 | typedef struct _GtkCell GtkCell; | |
44354 | typedef struct _GtkCellText GtkCellText; | |
44355 | typedef struct _GtkCellPixmap GtkCellPixmap; | |
44356 | typedef struct _GtkCellPixText GtkCellPixText; | |
44357 | typedef struct _GtkCellWidget GtkCellWidget; | |
44358 | ||
44359 | typedef gint (*GtkCListCompareFunc) (GtkCList *clist, | |
44360 | gconstpointer ptr1, | |
44361 | gconstpointer ptr2); | |
44362 | ||
44363 | typedef struct _GtkCListCellInfo GtkCListCellInfo; | |
44364 | typedef struct _GtkCListDestInfo GtkCListDestInfo; | |
44365 | ||
44366 | struct _GtkCListCellInfo | |
44367 | { | |
44368 | gint row; | |
44369 | gint column; | |
44370 | }; | |
44371 | ||
44372 | struct _GtkCListDestInfo | |
44373 | { | |
44374 | GtkCListCellInfo cell; | |
44375 | GtkCListDragPos insert_pos; | |
44376 | }; | |
44377 | ||
44378 | struct _GtkCList | |
44379 | { | |
44380 | GtkContainer container; | |
44381 | ||
44382 | guint16 flags; | |
44383 | ||
44384 | ||
44385 | gpointer row_mem_chunk; | |
44386 | gpointer cell_mem_chunk; | |
44387 | ||
44388 | guint freeze_count; | |
44389 | ||
44390 | ||
44391 | ||
44392 | GdkRectangle internal_allocation; | |
44393 | ||
44394 | ||
44395 | gint rows; | |
44396 | gint row_height; | |
44397 | GList *row_list; | |
44398 | GList *row_list_end; | |
44399 | ||
44400 | ||
44401 | gint columns; | |
44402 | GdkRectangle column_title_area; | |
44403 | GdkWindow *title_window; | |
44404 | ||
44405 | ||
44406 | GtkCListColumn *column; | |
44407 | ||
44408 | ||
44409 | ||
44410 | GdkWindow *clist_window; | |
44411 | gint clist_window_width; | |
44412 | gint clist_window_height; | |
44413 | ||
44414 | ||
44415 | gint hoffset; | |
44416 | gint voffset; | |
44417 | ||
44418 | ||
44419 | GtkShadowType shadow_type; | |
44420 | ||
44421 | ||
44422 | GtkSelectionMode selection_mode; | |
44423 | ||
44424 | ||
44425 | GList *selection; | |
44426 | GList *selection_end; | |
44427 | ||
44428 | GList *undo_selection; | |
44429 | GList *undo_unselection; | |
44430 | gint undo_anchor; | |
44431 | ||
44432 | ||
44433 | guint8 button_actions[5]; | |
44434 | ||
44435 | guint8 drag_button; | |
44436 | ||
44437 | ||
44438 | GtkCListCellInfo click_cell; | |
44439 | ||
44440 | ||
44441 | GtkAdjustment *hadjustment; | |
44442 | GtkAdjustment *vadjustment; | |
44443 | ||
44444 | ||
44445 | GdkGC *xor_gc; | |
44446 | ||
44447 | ||
44448 | GdkGC *fg_gc; | |
44449 | GdkGC *bg_gc; | |
44450 | ||
44451 | ||
44452 | GdkCursor *cursor_drag; | |
44453 | ||
44454 | ||
44455 | gint x_drag; | |
44456 | ||
44457 | ||
44458 | gint focus_row; | |
44459 | ||
44460 | gint focus_header_column; | |
44461 | ||
44462 | ||
44463 | gint anchor; | |
44464 | GtkStateType anchor_state; | |
44465 | gint drag_pos; | |
44466 | gint htimer; | |
44467 | gint vtimer; | |
44468 | ||
44469 | GtkSortType sort_type; | |
44470 | GtkCListCompareFunc compare; | |
44471 | gint sort_column; | |
44472 | ||
44473 | gint drag_highlight_row; | |
44474 | GtkCListDragPos drag_highlight_pos; | |
44475 | }; | |
44476 | ||
44477 | struct _GtkCListClass | |
44478 | { | |
44479 | GtkContainerClass parent_class; | |
44480 | ||
44481 | void (*set_scroll_adjustments) (GtkCList *clist, | |
44482 | GtkAdjustment *hadjustment, | |
44483 | GtkAdjustment *vadjustment); | |
44484 | void (*refresh) (GtkCList *clist); | |
44485 | void (*select_row) (GtkCList *clist, | |
44486 | gint row, | |
44487 | gint column, | |
44488 | GdkEvent *event); | |
44489 | void (*unselect_row) (GtkCList *clist, | |
44490 | gint row, | |
44491 | gint column, | |
44492 | GdkEvent *event); | |
44493 | void (*row_move) (GtkCList *clist, | |
44494 | gint source_row, | |
44495 | gint dest_row); | |
44496 | void (*click_column) (GtkCList *clist, | |
44497 | gint column); | |
44498 | void (*resize_column) (GtkCList *clist, | |
44499 | gint column, | |
44500 | gint width); | |
44501 | void (*toggle_focus_row) (GtkCList *clist); | |
44502 | void (*select_all) (GtkCList *clist); | |
44503 | void (*unselect_all) (GtkCList *clist); | |
44504 | void (*undo_selection) (GtkCList *clist); | |
44505 | void (*start_selection) (GtkCList *clist); | |
44506 | void (*end_selection) (GtkCList *clist); | |
44507 | void (*extend_selection) (GtkCList *clist, | |
44508 | GtkScrollType scroll_type, | |
44509 | gfloat position, | |
44510 | gboolean auto_start_selection); | |
44511 | void (*scroll_horizontal) (GtkCList *clist, | |
44512 | GtkScrollType scroll_type, | |
44513 | gfloat position); | |
44514 | void (*scroll_vertical) (GtkCList *clist, | |
44515 | GtkScrollType scroll_type, | |
44516 | gfloat position); | |
44517 | void (*toggle_add_mode) (GtkCList *clist); | |
44518 | void (*abort_column_resize) (GtkCList *clist); | |
44519 | void (*resync_selection) (GtkCList *clist, | |
44520 | GdkEvent *event); | |
44521 | GList* (*selection_find) (GtkCList *clist, | |
44522 | gint row_number, | |
44523 | GList *row_list_element); | |
44524 | void (*draw_row) (GtkCList *clist, | |
44525 | GdkRectangle *area, | |
44526 | gint row, | |
44527 | GtkCListRow *clist_row); | |
44528 | void (*draw_drag_highlight) (GtkCList *clist, | |
44529 | GtkCListRow *target_row, | |
44530 | gint target_row_number, | |
44531 | GtkCListDragPos drag_pos); | |
44532 | void (*clear) (GtkCList *clist); | |
44533 | void (*fake_unselect_all) (GtkCList *clist, | |
44534 | gint row); | |
44535 | void (*sort_list) (GtkCList *clist); | |
44536 | gint (*insert_row) (GtkCList *clist, | |
44537 | gint row, | |
44538 | gchar *text[]); | |
44539 | void (*remove_row) (GtkCList *clist, | |
44540 | gint row); | |
44541 | void (*set_cell_contents) (GtkCList *clist, | |
44542 | GtkCListRow *clist_row, | |
44543 | gint column, | |
44544 | GtkCellType type, | |
44545 | const gchar *text, | |
44546 | guint8 spacing, | |
44547 | GdkPixmap *pixmap, | |
44548 | GdkBitmap *mask); | |
44549 | void (*cell_size_request) (GtkCList *clist, | |
44550 | GtkCListRow *clist_row, | |
44551 | gint column, | |
44552 | GtkRequisition *requisition); | |
44553 | ||
44554 | }; | |
44555 | ||
44556 | struct _GtkCListColumn | |
44557 | { | |
44558 | gchar *title; | |
44559 | GdkRectangle area; | |
44560 | ||
44561 | GtkWidget *button; | |
44562 | GdkWindow *window; | |
44563 | ||
44564 | gint width; | |
44565 | gint min_width; | |
44566 | gint max_width; | |
44567 | GtkJustification justification; | |
44568 | ||
44569 | guint visible : 1; | |
44570 | guint width_set : 1; | |
44571 | guint resizeable : 1; | |
44572 | guint auto_resize : 1; | |
44573 | guint button_passive : 1; | |
44574 | }; | |
44575 | ||
44576 | struct _GtkCListRow | |
44577 | { | |
44578 | GtkCell *cell; | |
44579 | GtkStateType state; | |
44580 | ||
44581 | GdkColor foreground; | |
44582 | GdkColor background; | |
44583 | ||
44584 | GtkStyle *style; | |
44585 | ||
44586 | gpointer data; | |
44587 | GtkDestroyNotify destroy; | |
44588 | ||
44589 | guint fg_set : 1; | |
44590 | guint bg_set : 1; | |
44591 | guint selectable : 1; | |
44592 | }; | |
44593 | ||
44594 | ||
44595 | struct _GtkCellText | |
44596 | { | |
44597 | GtkCellType type; | |
44598 | ||
44599 | gint16 vertical; | |
44600 | gint16 horizontal; | |
44601 | ||
44602 | GtkStyle *style; | |
44603 | ||
44604 | gchar *text; | |
44605 | }; | |
44606 | ||
44607 | struct _GtkCellPixmap | |
44608 | { | |
44609 | GtkCellType type; | |
44610 | ||
44611 | gint16 vertical; | |
44612 | gint16 horizontal; | |
44613 | ||
44614 | GtkStyle *style; | |
44615 | ||
44616 | GdkPixmap *pixmap; | |
44617 | GdkBitmap *mask; | |
44618 | }; | |
44619 | ||
44620 | struct _GtkCellPixText | |
44621 | { | |
44622 | GtkCellType type; | |
44623 | ||
44624 | gint16 vertical; | |
44625 | gint16 horizontal; | |
44626 | ||
44627 | GtkStyle *style; | |
44628 | ||
44629 | gchar *text; | |
44630 | guint8 spacing; | |
44631 | GdkPixmap *pixmap; | |
44632 | GdkBitmap *mask; | |
44633 | }; | |
44634 | ||
44635 | struct _GtkCellWidget | |
44636 | { | |
44637 | GtkCellType type; | |
44638 | ||
44639 | gint16 vertical; | |
44640 | gint16 horizontal; | |
44641 | ||
44642 | GtkStyle *style; | |
44643 | ||
44644 | GtkWidget *widget; | |
44645 | }; | |
44646 | ||
44647 | struct _GtkCell | |
44648 | { | |
44649 | GtkCellType type; | |
44650 | ||
44651 | gint16 vertical; | |
44652 | gint16 horizontal; | |
44653 | ||
44654 | GtkStyle *style; | |
44655 | ||
44656 | union { | |
44657 | gchar *text; | |
44658 | ||
44659 | struct { | |
44660 | GdkPixmap *pixmap; | |
44661 | GdkBitmap *mask; | |
44662 | } pm; | |
44663 | ||
44664 | struct { | |
44665 | gchar *text; | |
44666 | guint8 spacing; | |
44667 | GdkPixmap *pixmap; | |
44668 | GdkBitmap *mask; | |
44669 | } pt; | |
44670 | ||
44671 | GtkWidget *widget; | |
44672 | } u; | |
44673 | }; | |
44674 | ||
44675 | GtkType gtk_clist_get_type (void) __attribute__((__const__)); | |
44676 | ||
44677 | ||
44678 | GtkWidget* gtk_clist_new (gint columns); | |
44679 | GtkWidget* gtk_clist_new_with_titles (gint columns, | |
44680 | gchar *titles[]); | |
44681 | ||
44682 | ||
44683 | void gtk_clist_set_hadjustment (GtkCList *clist, | |
44684 | GtkAdjustment *adjustment); | |
44685 | void gtk_clist_set_vadjustment (GtkCList *clist, | |
44686 | GtkAdjustment *adjustment); | |
44687 | ||
44688 | ||
44689 | GtkAdjustment* gtk_clist_get_hadjustment (GtkCList *clist); | |
44690 | GtkAdjustment* gtk_clist_get_vadjustment (GtkCList *clist); | |
44691 | ||
44692 | ||
44693 | void gtk_clist_set_shadow_type (GtkCList *clist, | |
44694 | GtkShadowType type); | |
44695 | ||
44696 | ||
44697 | void gtk_clist_set_selection_mode (GtkCList *clist, | |
44698 | GtkSelectionMode mode); | |
44699 | ||
44700 | ||
44701 | void gtk_clist_set_reorderable (GtkCList *clist, | |
44702 | gboolean reorderable); | |
44703 | void gtk_clist_set_use_drag_icons (GtkCList *clist, | |
44704 | gboolean use_icons); | |
44705 | void gtk_clist_set_button_actions (GtkCList *clist, | |
44706 | guint button, | |
44707 | guint8 button_actions); | |
44708 | ||
44709 | ||
44710 | ||
44711 | ||
44712 | ||
44713 | void gtk_clist_freeze (GtkCList *clist); | |
44714 | void gtk_clist_thaw (GtkCList *clist); | |
44715 | ||
44716 | ||
44717 | void gtk_clist_column_titles_show (GtkCList *clist); | |
44718 | void gtk_clist_column_titles_hide (GtkCList *clist); | |
44719 | ||
44720 | ||
44721 | ||
44722 | ||
44723 | ||
44724 | void gtk_clist_column_title_active (GtkCList *clist, | |
44725 | gint column); | |
44726 | void gtk_clist_column_title_passive (GtkCList *clist, | |
44727 | gint column); | |
44728 | void gtk_clist_column_titles_active (GtkCList *clist); | |
44729 | void gtk_clist_column_titles_passive (GtkCList *clist); | |
44730 | ||
44731 | ||
44732 | void gtk_clist_set_column_title (GtkCList *clist, | |
44733 | gint column, | |
44734 | const gchar *title); | |
44735 | ||
44736 | ||
44737 | gchar * gtk_clist_get_column_title (GtkCList *clist, | |
44738 | gint column); | |
44739 | ||
44740 | ||
44741 | void gtk_clist_set_column_widget (GtkCList *clist, | |
44742 | gint column, | |
44743 | GtkWidget *widget); | |
44744 | ||
44745 | ||
44746 | GtkWidget * gtk_clist_get_column_widget (GtkCList *clist, | |
44747 | gint column); | |
44748 | ||
44749 | ||
44750 | void gtk_clist_set_column_justification (GtkCList *clist, | |
44751 | gint column, | |
44752 | GtkJustification justification); | |
44753 | ||
44754 | ||
44755 | void gtk_clist_set_column_visibility (GtkCList *clist, | |
44756 | gint column, | |
44757 | gboolean visible); | |
44758 | ||
44759 | ||
44760 | void gtk_clist_set_column_resizeable (GtkCList *clist, | |
44761 | gint column, | |
44762 | gboolean resizeable); | |
44763 | ||
44764 | ||
44765 | void gtk_clist_set_column_auto_resize (GtkCList *clist, | |
44766 | gint column, | |
44767 | gboolean auto_resize); | |
44768 | ||
44769 | gint gtk_clist_columns_autosize (GtkCList *clist); | |
44770 | ||
44771 | ||
44772 | gint gtk_clist_optimal_column_width (GtkCList *clist, | |
44773 | gint column); | |
44774 | ||
44775 | ||
44776 | ||
44777 | ||
44778 | ||
44779 | void gtk_clist_set_column_width (GtkCList *clist, | |
44780 | gint column, | |
44781 | gint width); | |
44782 | ||
44783 | ||
44784 | void gtk_clist_set_column_min_width (GtkCList *clist, | |
44785 | gint column, | |
44786 | gint min_width); | |
44787 | void gtk_clist_set_column_max_width (GtkCList *clist, | |
44788 | gint column, | |
44789 | gint max_width); | |
44790 | ||
44791 | ||
44792 | ||
44793 | ||
44794 | void gtk_clist_set_row_height (GtkCList *clist, | |
44795 | guint height); | |
44796 | ||
44797 | ||
44798 | ||
44799 | ||
44800 | ||
44801 | ||
44802 | void gtk_clist_moveto (GtkCList *clist, | |
44803 | gint row, | |
44804 | gint column, | |
44805 | gfloat row_align, | |
44806 | gfloat col_align); | |
44807 | ||
44808 | ||
44809 | GtkVisibility gtk_clist_row_is_visible (GtkCList *clist, | |
44810 | gint row); | |
44811 | ||
44812 | ||
44813 | GtkCellType gtk_clist_get_cell_type (GtkCList *clist, | |
44814 | gint row, | |
44815 | gint column); | |
44816 | ||
44817 | ||
44818 | void gtk_clist_set_text (GtkCList *clist, | |
44819 | gint row, | |
44820 | gint column, | |
44821 | const gchar *text); | |
44822 | ||
44823 | ||
44824 | ||
44825 | ||
44826 | gint gtk_clist_get_text (GtkCList *clist, | |
44827 | gint row, | |
44828 | gint column, | |
44829 | gchar **text); | |
44830 | ||
44831 | ||
44832 | void gtk_clist_set_pixmap (GtkCList *clist, | |
44833 | gint row, | |
44834 | gint column, | |
44835 | GdkPixmap *pixmap, | |
44836 | GdkBitmap *mask); | |
44837 | ||
44838 | gint gtk_clist_get_pixmap (GtkCList *clist, | |
44839 | gint row, | |
44840 | gint column, | |
44841 | GdkPixmap **pixmap, | |
44842 | GdkBitmap **mask); | |
44843 | ||
44844 | ||
44845 | void gtk_clist_set_pixtext (GtkCList *clist, | |
44846 | gint row, | |
44847 | gint column, | |
44848 | const gchar *text, | |
44849 | guint8 spacing, | |
44850 | GdkPixmap *pixmap, | |
44851 | GdkBitmap *mask); | |
44852 | ||
44853 | gint gtk_clist_get_pixtext (GtkCList *clist, | |
44854 | gint row, | |
44855 | gint column, | |
44856 | gchar **text, | |
44857 | guint8 *spacing, | |
44858 | GdkPixmap **pixmap, | |
44859 | GdkBitmap **mask); | |
44860 | ||
44861 | ||
44862 | ||
44863 | ||
44864 | void gtk_clist_set_foreground (GtkCList *clist, | |
44865 | gint row, | |
44866 | const GdkColor *color); | |
44867 | ||
44868 | ||
44869 | ||
44870 | ||
44871 | void gtk_clist_set_background (GtkCList *clist, | |
44872 | gint row, | |
44873 | const GdkColor *color); | |
44874 | ||
44875 | ||
44876 | void gtk_clist_set_cell_style (GtkCList *clist, | |
44877 | gint row, | |
44878 | gint column, | |
44879 | GtkStyle *style); | |
44880 | ||
44881 | GtkStyle *gtk_clist_get_cell_style (GtkCList *clist, | |
44882 | gint row, | |
44883 | gint column); | |
44884 | ||
44885 | void gtk_clist_set_row_style (GtkCList *clist, | |
44886 | gint row, | |
44887 | GtkStyle *style); | |
44888 | ||
44889 | GtkStyle *gtk_clist_get_row_style (GtkCList *clist, | |
44890 | gint row); | |
44891 | ||
44892 | ||
44893 | ||
44894 | ||
44895 | ||
44896 | void gtk_clist_set_shift (GtkCList *clist, | |
44897 | gint row, | |
44898 | gint column, | |
44899 | gint vertical, | |
44900 | gint horizontal); | |
44901 | ||
44902 | ||
44903 | void gtk_clist_set_selectable (GtkCList *clist, | |
44904 | gint row, | |
44905 | gboolean selectable); | |
44906 | gboolean gtk_clist_get_selectable (GtkCList *clist, | |
44907 | gint row); | |
44908 | ||
44909 | ||
44910 | ||
44911 | ||
44912 | gint gtk_clist_prepend (GtkCList *clist, | |
44913 | gchar *text[]); | |
44914 | gint gtk_clist_append (GtkCList *clist, | |
44915 | gchar *text[]); | |
44916 | ||
44917 | ||
44918 | ||
44919 | ||
44920 | gint gtk_clist_insert (GtkCList *clist, | |
44921 | gint row, | |
44922 | gchar *text[]); | |
44923 | ||
44924 | ||
44925 | void gtk_clist_remove (GtkCList *clist, | |
44926 | gint row); | |
44927 | ||
44928 | ||
44929 | void gtk_clist_set_row_data (GtkCList *clist, | |
44930 | gint row, | |
44931 | gpointer data); | |
44932 | ||
44933 | ||
44934 | void gtk_clist_set_row_data_full (GtkCList *clist, | |
44935 | gint row, | |
44936 | gpointer data, | |
44937 | GtkDestroyNotify destroy); | |
44938 | ||
44939 | ||
44940 | gpointer gtk_clist_get_row_data (GtkCList *clist, | |
44941 | gint row); | |
44942 | ||
44943 | ||
44944 | ||
44945 | ||
44946 | gint gtk_clist_find_row_from_data (GtkCList *clist, | |
44947 | gpointer data); | |
44948 | ||
44949 | ||
44950 | void gtk_clist_select_row (GtkCList *clist, | |
44951 | gint row, | |
44952 | gint column); | |
44953 | ||
44954 | ||
44955 | void gtk_clist_unselect_row (GtkCList *clist, | |
44956 | gint row, | |
44957 | gint column); | |
44958 | ||
44959 | ||
44960 | void gtk_clist_undo_selection (GtkCList *clist); | |
44961 | ||
44962 | ||
44963 | ||
44964 | ||
44965 | void gtk_clist_clear (GtkCList *clist); | |
44966 | ||
44967 | ||
44968 | ||
44969 | ||
44970 | ||
44971 | gint gtk_clist_get_selection_info (GtkCList *clist, | |
44972 | gint x, | |
44973 | gint y, | |
44974 | gint *row, | |
44975 | gint *column); | |
44976 | ||
44977 | ||
44978 | void gtk_clist_select_all (GtkCList *clist); | |
44979 | ||
44980 | ||
44981 | void gtk_clist_unselect_all (GtkCList *clist); | |
44982 | ||
44983 | ||
44984 | void gtk_clist_swap_rows (GtkCList *clist, | |
44985 | gint row1, | |
44986 | gint row2); | |
44987 | ||
44988 | ||
44989 | void gtk_clist_row_move (GtkCList *clist, | |
44990 | gint source_row, | |
44991 | gint dest_row); | |
44992 | ||
44993 | ||
44994 | void gtk_clist_set_compare_func (GtkCList *clist, | |
44995 | GtkCListCompareFunc cmp_func); | |
44996 | ||
44997 | ||
44998 | void gtk_clist_set_sort_column (GtkCList *clist, | |
44999 | gint column); | |
45000 | ||
45001 | ||
45002 | void gtk_clist_set_sort_type (GtkCList *clist, | |
45003 | GtkSortType sort_type); | |
45004 | ||
45005 | ||
45006 | void gtk_clist_sort (GtkCList *clist); | |
45007 | ||
45008 | ||
45009 | void gtk_clist_set_auto_sort (GtkCList *clist, | |
45010 | gboolean auto_sort); | |
45011 | ||
45012 | ||
45013 | ||
45014 | PangoLayout *_gtk_clist_create_cell_layout (GtkCList *clist, | |
45015 | GtkCListRow *clist_row, | |
45016 | gint column); | |
45017 | ||
45018 | ||
45019 | ||
45020 | # 61 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
45021 | # 1 "/usr/include/gtk-2.0/gtk/gtkcolorbutton.h" 1 | |
45022 | # 32 "/usr/include/gtk-2.0/gtk/gtkcolorbutton.h" | |
45023 | #define __GTK_COLOR_BUTTON_H__ | |
45024 | ||
45025 | ||
45026 | ||
45027 | ||
45028 | ||
45029 | # 46 "/usr/include/gtk-2.0/gtk/gtkcolorbutton.h" | |
45030 | #define GTK_TYPE_COLOR_BUTTON (gtk_color_button_get_type ()) | |
45031 | #define GTK_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButton)) | |
45032 | #define GTK_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_BUTTON, GtkColorButtonClass)) | |
45033 | #define GTK_IS_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_BUTTON)) | |
45034 | #define GTK_IS_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_BUTTON)) | |
45035 | #define GTK_COLOR_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButtonClass)) | |
45036 | ||
45037 | typedef struct _GtkColorButton GtkColorButton; | |
45038 | typedef struct _GtkColorButtonClass GtkColorButtonClass; | |
45039 | typedef struct _GtkColorButtonPrivate GtkColorButtonPrivate; | |
45040 | ||
45041 | struct _GtkColorButton { | |
45042 | GtkButton button; | |
45043 | ||
45044 | ||
45045 | ||
45046 | GtkColorButtonPrivate *priv; | |
45047 | }; | |
45048 | ||
45049 | struct _GtkColorButtonClass { | |
45050 | GtkButtonClass parent_class; | |
45051 | ||
45052 | void (* color_set) (GtkColorButton *cp); | |
45053 | ||
45054 | ||
45055 | void (*_gtk_reserved1) (void); | |
45056 | void (*_gtk_reserved2) (void); | |
45057 | void (*_gtk_reserved3) (void); | |
45058 | void (*_gtk_reserved4) (void); | |
45059 | }; | |
45060 | ||
45061 | ||
45062 | GType gtk_color_button_get_type (void) __attribute__((__const__)); | |
45063 | GtkWidget *gtk_color_button_new (void); | |
45064 | GtkWidget *gtk_color_button_new_with_color (const GdkColor *color); | |
45065 | void gtk_color_button_set_color (GtkColorButton *color_button, | |
45066 | const GdkColor *color); | |
45067 | void gtk_color_button_set_alpha (GtkColorButton *color_button, | |
45068 | guint16 alpha); | |
45069 | void gtk_color_button_get_color (GtkColorButton *color_button, | |
45070 | GdkColor *color); | |
45071 | guint16 gtk_color_button_get_alpha (GtkColorButton *color_button); | |
45072 | void gtk_color_button_set_use_alpha (GtkColorButton *color_button, | |
45073 | gboolean use_alpha); | |
45074 | gboolean gtk_color_button_get_use_alpha (GtkColorButton *color_button); | |
45075 | void gtk_color_button_set_title (GtkColorButton *color_button, | |
45076 | const gchar *title); | |
45077 | const gchar *gtk_color_button_get_title (GtkColorButton *color_button); | |
45078 | ||
45079 | ||
45080 | ||
45081 | # 62 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
45082 | # 1 "/usr/include/gtk-2.0/gtk/gtkcolorsel.h" 1 | |
45083 | # 28 "/usr/include/gtk-2.0/gtk/gtkcolorsel.h" | |
45084 | #define __GTK_COLOR_SELECTION_H__ | |
45085 | ||
45086 | ||
45087 | # 1 "/usr/include/gtk-2.0/gtk/gtkvbox.h" 1 | |
45088 | # 28 "/usr/include/gtk-2.0/gtk/gtkvbox.h" | |
45089 | #define __GTK_VBOX_H__ | |
45090 | ||
45091 | ||
45092 | ||
45093 | ||
45094 | ||
45095 | ||
45096 | ||
45097 | ||
45098 | ||
45099 | #define GTK_TYPE_VBOX (gtk_vbox_get_type ()) | |
45100 | #define GTK_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBOX, GtkVBox)) | |
45101 | #define GTK_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBOX, GtkVBoxClass)) | |
45102 | #define GTK_IS_VBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VBOX)) | |
45103 | #define GTK_IS_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBOX)) | |
45104 | #define GTK_VBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VBOX, GtkVBoxClass)) | |
45105 | ||
45106 | ||
45107 | typedef struct _GtkVBox GtkVBox; | |
45108 | typedef struct _GtkVBoxClass GtkVBoxClass; | |
45109 | ||
45110 | struct _GtkVBox | |
45111 | { | |
45112 | GtkBox box; | |
45113 | }; | |
45114 | ||
45115 | struct _GtkVBoxClass | |
45116 | { | |
45117 | GtkBoxClass parent_class; | |
45118 | }; | |
45119 | ||
45120 | ||
45121 | GType gtk_vbox_get_type (void) __attribute__((__const__)); | |
45122 | GtkWidget* gtk_vbox_new (gboolean homogeneous, | |
45123 | gint spacing); | |
45124 | ||
45125 | ||
45126 | ||
45127 | # 32 "/usr/include/gtk-2.0/gtk/gtkcolorsel.h" 2 | |
45128 | ||
45129 | ||
45130 | ||
45131 | #define GTK_TYPE_COLOR_SELECTION (gtk_color_selection_get_type ()) | |
45132 | #define GTK_COLOR_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_SELECTION, GtkColorSelection)) | |
45133 | #define GTK_COLOR_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_SELECTION, GtkColorSelectionClass)) | |
45134 | #define GTK_IS_COLOR_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_SELECTION)) | |
45135 | #define GTK_IS_COLOR_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_SELECTION)) | |
45136 | #define GTK_COLOR_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_SELECTION, GtkColorSelectionClass)) | |
45137 | ||
45138 | ||
45139 | typedef struct _GtkColorSelection GtkColorSelection; | |
45140 | typedef struct _GtkColorSelectionClass GtkColorSelectionClass; | |
45141 | ||
45142 | ||
45143 | typedef void (* GtkColorSelectionChangePaletteFunc) (const GdkColor *colors, | |
45144 | gint n_colors); | |
45145 | typedef void (* GtkColorSelectionChangePaletteWithScreenFunc) (GdkScreen *screen, | |
45146 | const GdkColor *colors, | |
45147 | gint n_colors); | |
45148 | ||
45149 | struct _GtkColorSelection | |
45150 | { | |
45151 | GtkVBox parent_instance; | |
45152 | ||
45153 | ||
45154 | gpointer private_data; | |
45155 | }; | |
45156 | ||
45157 | struct _GtkColorSelectionClass | |
45158 | { | |
45159 | GtkVBoxClass parent_class; | |
45160 | ||
45161 | void (*color_changed) (GtkColorSelection *color_selection); | |
45162 | ||
45163 | ||
45164 | void (*_gtk_reserved1) (void); | |
45165 | void (*_gtk_reserved2) (void); | |
45166 | void (*_gtk_reserved3) (void); | |
45167 | void (*_gtk_reserved4) (void); | |
45168 | }; | |
45169 | ||
45170 | ||
45171 | ||
45172 | ||
45173 | GType gtk_color_selection_get_type (void) __attribute__((__const__)); | |
45174 | GtkWidget *gtk_color_selection_new (void); | |
45175 | gboolean gtk_color_selection_get_has_opacity_control (GtkColorSelection *colorsel); | |
45176 | void gtk_color_selection_set_has_opacity_control (GtkColorSelection *colorsel, | |
45177 | gboolean has_opacity); | |
45178 | gboolean gtk_color_selection_get_has_palette (GtkColorSelection *colorsel); | |
45179 | void gtk_color_selection_set_has_palette (GtkColorSelection *colorsel, | |
45180 | gboolean has_palette); | |
45181 | ||
45182 | ||
45183 | void gtk_color_selection_set_current_color (GtkColorSelection *colorsel, | |
45184 | const GdkColor *color); | |
45185 | void gtk_color_selection_set_current_alpha (GtkColorSelection *colorsel, | |
45186 | guint16 alpha); | |
45187 | void gtk_color_selection_get_current_color (GtkColorSelection *colorsel, | |
45188 | GdkColor *color); | |
45189 | guint16 gtk_color_selection_get_current_alpha (GtkColorSelection *colorsel); | |
45190 | void gtk_color_selection_set_previous_color (GtkColorSelection *colorsel, | |
45191 | const GdkColor *color); | |
45192 | void gtk_color_selection_set_previous_alpha (GtkColorSelection *colorsel, | |
45193 | guint16 alpha); | |
45194 | void gtk_color_selection_get_previous_color (GtkColorSelection *colorsel, | |
45195 | GdkColor *color); | |
45196 | guint16 gtk_color_selection_get_previous_alpha (GtkColorSelection *colorsel); | |
45197 | ||
45198 | gboolean gtk_color_selection_is_adjusting (GtkColorSelection *colorsel); | |
45199 | ||
45200 | gboolean gtk_color_selection_palette_from_string (const gchar *str, | |
45201 | GdkColor **colors, | |
45202 | gint *n_colors); | |
45203 | gchar* gtk_color_selection_palette_to_string (const GdkColor *colors, | |
45204 | gint n_colors); | |
45205 | ||
45206 | ||
45207 | ||
45208 | GtkColorSelectionChangePaletteFunc gtk_color_selection_set_change_palette_hook (GtkColorSelectionChangePaletteFunc func); | |
45209 | ||
45210 | ||
45211 | ||
45212 | GtkColorSelectionChangePaletteWithScreenFunc gtk_color_selection_set_change_palette_with_screen_hook (GtkColorSelectionChangePaletteWithScreenFunc func); | |
45213 | ||
45214 | ||
45215 | ||
45216 | void gtk_color_selection_set_color (GtkColorSelection *colorsel, | |
45217 | gdouble *color); | |
45218 | void gtk_color_selection_get_color (GtkColorSelection *colorsel, | |
45219 | gdouble *color); | |
45220 | void gtk_color_selection_set_update_policy (GtkColorSelection *colorsel, | |
45221 | GtkUpdateType policy); | |
45222 | ||
45223 | ||
45224 | ||
45225 | # 63 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
45226 | # 1 "/usr/include/gtk-2.0/gtk/gtkcolorseldialog.h" 1 | |
45227 | # 27 "/usr/include/gtk-2.0/gtk/gtkcolorseldialog.h" | |
45228 | #define __GTK_COLOR_SELECTION_DIALOG_H__ | |
45229 | ||
45230 | ||
45231 | ||
45232 | ||
45233 | ||
45234 | ||
45235 | ||
45236 | #define GTK_TYPE_COLOR_SELECTION_DIALOG (gtk_color_selection_dialog_get_type ()) | |
45237 | #define GTK_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialog)) | |
45238 | #define GTK_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialogClass)) | |
45239 | #define GTK_IS_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG)) | |
45240 | #define GTK_IS_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_SELECTION_DIALOG)) | |
45241 | #define GTK_COLOR_SELECTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialogClass)) | |
45242 | ||
45243 | ||
45244 | typedef struct _GtkColorSelectionDialog GtkColorSelectionDialog; | |
45245 | typedef struct _GtkColorSelectionDialogClass GtkColorSelectionDialogClass; | |
45246 | ||
45247 | ||
45248 | struct _GtkColorSelectionDialog | |
45249 | { | |
45250 | GtkDialog parent_instance; | |
45251 | ||
45252 | GtkWidget *colorsel; | |
45253 | GtkWidget *ok_button; | |
45254 | GtkWidget *cancel_button; | |
45255 | GtkWidget *help_button; | |
45256 | }; | |
45257 | ||
45258 | struct _GtkColorSelectionDialogClass | |
45259 | { | |
45260 | GtkDialogClass parent_class; | |
45261 | ||
45262 | ||
45263 | void (*_gtk_reserved1) (void); | |
45264 | void (*_gtk_reserved2) (void); | |
45265 | void (*_gtk_reserved3) (void); | |
45266 | void (*_gtk_reserved4) (void); | |
45267 | }; | |
45268 | ||
45269 | ||
45270 | ||
45271 | GType gtk_color_selection_dialog_get_type (void) __attribute__((__const__)); | |
45272 | GtkWidget* gtk_color_selection_dialog_new (const gchar *title); | |
45273 | ||
45274 | ||
45275 | ||
45276 | # 64 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
45277 | # 1 "/usr/include/gtk-2.0/gtk/gtkcombo.h" 1 | |
45278 | # 30 "/usr/include/gtk-2.0/gtk/gtkcombo.h" | |
45279 | #define __GTK_SMART_COMBO_H__ | |
45280 | ||
45281 | # 1 "/usr/include/gtk-2.0/gtk/gtkhbox.h" 1 | |
45282 | # 28 "/usr/include/gtk-2.0/gtk/gtkhbox.h" | |
45283 | #define __GTK_HBOX_H__ | |
45284 | ||
45285 | ||
45286 | ||
45287 | ||
45288 | ||
45289 | ||
45290 | ||
45291 | ||
45292 | #define GTK_TYPE_HBOX (gtk_hbox_get_type ()) | |
45293 | #define GTK_HBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HBOX, GtkHBox)) | |
45294 | #define GTK_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBOX, GtkHBoxClass)) | |
45295 | #define GTK_IS_HBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HBOX)) | |
45296 | #define GTK_IS_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBOX)) | |
45297 | #define GTK_HBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HBOX, GtkHBoxClass)) | |
45298 | ||
45299 | ||
45300 | typedef struct _GtkHBox GtkHBox; | |
45301 | typedef struct _GtkHBoxClass GtkHBoxClass; | |
45302 | ||
45303 | struct _GtkHBox | |
45304 | { | |
45305 | GtkBox box; | |
45306 | }; | |
45307 | ||
45308 | struct _GtkHBoxClass | |
45309 | { | |
45310 | GtkBoxClass parent_class; | |
45311 | }; | |
45312 | ||
45313 | ||
45314 | GType gtk_hbox_get_type (void) __attribute__((__const__)); | |
45315 | GtkWidget* gtk_hbox_new (gboolean homogeneous, | |
45316 | gint spacing); | |
45317 | ||
45318 | ||
45319 | ||
45320 | # 33 "/usr/include/gtk-2.0/gtk/gtkcombo.h" 2 | |
45321 | ||
45322 | ||
45323 | ||
45324 | ||
45325 | #define GTK_TYPE_COMBO (gtk_combo_get_type ()) | |
45326 | #define GTK_COMBO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO, GtkCombo)) | |
45327 | #define GTK_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COMBO, GtkComboClass)) | |
45328 | #define GTK_IS_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO)) | |
45329 | #define GTK_IS_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COMBO)) | |
45330 | #define GTK_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COMBO, GtkComboClass)) | |
45331 | ||
45332 | ||
45333 | typedef struct _GtkCombo GtkCombo; | |
45334 | typedef struct _GtkComboClass GtkComboClass; | |
45335 | ||
45336 | ||
45337 | struct _GtkCombo { | |
45338 | GtkHBox hbox; | |
45339 | ||
45340 | ||
45341 | GtkWidget *entry; | |
45342 | ||
45343 | ||
45344 | GtkWidget *button; | |
45345 | GtkWidget *popup; | |
45346 | GtkWidget *popwin; | |
45347 | ||
45348 | ||
45349 | GtkWidget *list; | |
45350 | ||
45351 | ||
45352 | guint entry_change_id; | |
45353 | guint list_change_id; | |
45354 | ||
45355 | guint value_in_list:1; | |
45356 | guint ok_if_empty:1; | |
45357 | guint case_sensitive:1; | |
45358 | guint use_arrows:1; | |
45359 | guint use_arrows_always:1; | |
45360 | ||
45361 | guint16 current_button; | |
45362 | guint activate_id; | |
45363 | }; | |
45364 | ||
45365 | struct _GtkComboClass { | |
45366 | GtkHBoxClass parent_class; | |
45367 | ||
45368 | ||
45369 | void (*_gtk_reserved1) (void); | |
45370 | void (*_gtk_reserved2) (void); | |
45371 | void (*_gtk_reserved3) (void); | |
45372 | void (*_gtk_reserved4) (void); | |
45373 | }; | |
45374 | ||
45375 | GType gtk_combo_get_type (void) __attribute__((__const__)); | |
45376 | ||
45377 | GtkWidget* gtk_combo_new (void); | |
45378 | ||
45379 | void gtk_combo_set_value_in_list (GtkCombo* combo, | |
45380 | gboolean val, | |
45381 | gboolean ok_if_empty); | |
45382 | ||
45383 | void gtk_combo_set_use_arrows (GtkCombo* combo, | |
45384 | gboolean val); | |
45385 | ||
45386 | void gtk_combo_set_use_arrows_always (GtkCombo* combo, | |
45387 | gboolean val); | |
45388 | ||
45389 | void gtk_combo_set_case_sensitive (GtkCombo* combo, | |
45390 | gboolean val); | |
45391 | ||
45392 | ||
45393 | void gtk_combo_set_item_string (GtkCombo* combo, | |
45394 | GtkItem* item, | |
45395 | const gchar* item_value); | |
45396 | ||
45397 | void gtk_combo_set_popdown_strings (GtkCombo* combo, | |
45398 | GList *strings); | |
45399 | ||
45400 | void gtk_combo_disable_activate (GtkCombo* combo); | |
45401 | ||
45402 | ||
45403 | # 65 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
45404 | # 1 "/usr/include/gtk-2.0/gtk/gtkcombobox.h" 1 | |
45405 | # 21 "/usr/include/gtk-2.0/gtk/gtkcombobox.h" | |
45406 | #define __GTK_COMBO_BOX_H__ | |
45407 | ||
45408 | ||
45409 | ||
45410 | # 1 "/usr/include/gtk-2.0/gtk/gtktreeview.h" 1 | |
45411 | # 20 "/usr/include/gtk-2.0/gtk/gtktreeview.h" | |
45412 | #define __GTK_TREE_VIEW_H__ | |
45413 | ||
45414 | ||
45415 | ||
45416 | ||
45417 | ||
45418 | # 1 "/usr/include/gtk-2.0/gtk/gtkdnd.h" 1 | |
45419 | # 28 "/usr/include/gtk-2.0/gtk/gtkdnd.h" | |
45420 | #define __GTK_DND_H__ | |
45421 | ||
45422 | ||
45423 | ||
45424 | ||
45425 | ||
45426 | ||
45427 | ||
45428 | ||
45429 | typedef enum { | |
45430 | GTK_DEST_DEFAULT_MOTION = 1 << 0, | |
45431 | GTK_DEST_DEFAULT_HIGHLIGHT = 1 << 1, | |
45432 | GTK_DEST_DEFAULT_DROP = 1 << 2, | |
45433 | GTK_DEST_DEFAULT_ALL = 0x07 | |
45434 | } GtkDestDefaults; | |
45435 | ||
45436 | ||
45437 | ||
45438 | typedef enum { | |
45439 | GTK_TARGET_SAME_APP = 1 << 0, | |
45440 | GTK_TARGET_SAME_WIDGET = 1 << 1 | |
45441 | } GtkTargetFlags; | |
45442 | ||
45443 | ||
45444 | ||
45445 | void gtk_drag_get_data (GtkWidget *widget, | |
45446 | GdkDragContext *context, | |
45447 | GdkAtom target, | |
45448 | guint32 time_); | |
45449 | void gtk_drag_finish (GdkDragContext *context, | |
45450 | gboolean success, | |
45451 | gboolean del, | |
45452 | guint32 time_); | |
45453 | ||
45454 | GtkWidget *gtk_drag_get_source_widget (GdkDragContext *context); | |
45455 | ||
45456 | void gtk_drag_highlight (GtkWidget *widget); | |
45457 | void gtk_drag_unhighlight (GtkWidget *widget); | |
45458 | ||
45459 | void gtk_drag_dest_set (GtkWidget *widget, | |
45460 | GtkDestDefaults flags, | |
45461 | const GtkTargetEntry *targets, | |
45462 | gint n_targets, | |
45463 | GdkDragAction actions); | |
45464 | ||
45465 | void gtk_drag_dest_set_proxy (GtkWidget *widget, | |
45466 | GdkWindow *proxy_window, | |
45467 | GdkDragProtocol protocol, | |
45468 | gboolean use_coordinates); | |
45469 | ||
45470 | void gtk_drag_dest_unset (GtkWidget *widget); | |
45471 | ||
45472 | GdkAtom gtk_drag_dest_find_target (GtkWidget *widget, | |
45473 | GdkDragContext *context, | |
45474 | GtkTargetList *target_list); | |
45475 | GtkTargetList* gtk_drag_dest_get_target_list (GtkWidget *widget); | |
45476 | void gtk_drag_dest_set_target_list (GtkWidget *widget, | |
45477 | GtkTargetList *target_list); | |
45478 | void gtk_drag_dest_add_text_targets (GtkWidget *widget); | |
45479 | void gtk_drag_dest_add_image_targets (GtkWidget *widget); | |
45480 | void gtk_drag_dest_add_uri_targets (GtkWidget *widget); | |
45481 | ||
45482 | ||
45483 | ||
45484 | void gtk_drag_source_set (GtkWidget *widget, | |
45485 | GdkModifierType start_button_mask, | |
45486 | const GtkTargetEntry *targets, | |
45487 | gint n_targets, | |
45488 | GdkDragAction actions); | |
45489 | ||
45490 | void gtk_drag_source_unset (GtkWidget *widget); | |
45491 | ||
45492 | GtkTargetList* gtk_drag_source_get_target_list (GtkWidget *widget); | |
45493 | void gtk_drag_source_set_target_list (GtkWidget *widget, | |
45494 | GtkTargetList *target_list); | |
45495 | void gtk_drag_source_add_text_targets (GtkWidget *widget); | |
45496 | void gtk_drag_source_add_image_targets (GtkWidget *widget); | |
45497 | void gtk_drag_source_add_uri_targets (GtkWidget *widget); | |
45498 | ||
45499 | void gtk_drag_source_set_icon (GtkWidget *widget, | |
45500 | GdkColormap *colormap, | |
45501 | GdkPixmap *pixmap, | |
45502 | GdkBitmap *mask); | |
45503 | void gtk_drag_source_set_icon_pixbuf (GtkWidget *widget, | |
45504 | GdkPixbuf *pixbuf); | |
45505 | void gtk_drag_source_set_icon_stock (GtkWidget *widget, | |
45506 | const gchar *stock_id); | |
45507 | void gtk_drag_source_set_icon_name (GtkWidget *widget, | |
45508 | const gchar *icon_name); | |
45509 | ||
45510 | ||
45511 | ||
45512 | ||
45513 | ||
45514 | GdkDragContext *gtk_drag_begin (GtkWidget *widget, | |
45515 | GtkTargetList *targets, | |
45516 | GdkDragAction actions, | |
45517 | gint button, | |
45518 | GdkEvent *event); | |
45519 | ||
45520 | ||
45521 | ||
45522 | void gtk_drag_set_icon_widget (GdkDragContext *context, | |
45523 | GtkWidget *widget, | |
45524 | gint hot_x, | |
45525 | gint hot_y); | |
45526 | void gtk_drag_set_icon_pixmap (GdkDragContext *context, | |
45527 | GdkColormap *colormap, | |
45528 | GdkPixmap *pixmap, | |
45529 | GdkBitmap *mask, | |
45530 | gint hot_x, | |
45531 | gint hot_y); | |
45532 | void gtk_drag_set_icon_pixbuf (GdkDragContext *context, | |
45533 | GdkPixbuf *pixbuf, | |
45534 | gint hot_x, | |
45535 | gint hot_y); | |
45536 | void gtk_drag_set_icon_stock (GdkDragContext *context, | |
45537 | const gchar *stock_id, | |
45538 | gint hot_x, | |
45539 | gint hot_y); | |
45540 | void gtk_drag_set_icon_name (GdkDragContext *context, | |
45541 | const gchar *icon_name, | |
45542 | gint hot_x, | |
45543 | gint hot_y); | |
45544 | ||
45545 | void gtk_drag_set_icon_default (GdkDragContext *context); | |
45546 | ||
45547 | gboolean gtk_drag_check_threshold (GtkWidget *widget, | |
45548 | gint start_x, | |
45549 | gint start_y, | |
45550 | gint current_x, | |
45551 | gint current_y); | |
45552 | ||
45553 | ||
45554 | void _gtk_drag_source_handle_event (GtkWidget *widget, | |
45555 | GdkEvent *event); | |
45556 | void _gtk_drag_dest_handle_event (GtkWidget *toplevel, | |
45557 | GdkEvent *event); | |
45558 | ||
45559 | ||
45560 | void gtk_drag_set_default_icon (GdkColormap *colormap, | |
45561 | GdkPixmap *pixmap, | |
45562 | GdkBitmap *mask, | |
45563 | gint hot_x, | |
45564 | gint hot_y); | |
45565 | ||
45566 | ||
45567 | ||
45568 | # 27 "/usr/include/gtk-2.0/gtk/gtktreeview.h" 2 | |
45569 | ||
45570 | ||
45571 | ||
45572 | ||
45573 | ||
45574 | typedef enum | |
45575 | { | |
45576 | ||
45577 | GTK_TREE_VIEW_DROP_BEFORE, | |
45578 | GTK_TREE_VIEW_DROP_AFTER, | |
45579 | ||
45580 | ||
45581 | ||
45582 | GTK_TREE_VIEW_DROP_INTO_OR_BEFORE, | |
45583 | GTK_TREE_VIEW_DROP_INTO_OR_AFTER | |
45584 | } GtkTreeViewDropPosition; | |
45585 | ||
45586 | #define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ()) | |
45587 | #define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView)) | |
45588 | #define GTK_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW, GtkTreeViewClass)) | |
45589 | #define GTK_IS_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW)) | |
45590 | #define GTK_IS_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW)) | |
45591 | #define GTK_TREE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW, GtkTreeViewClass)) | |
45592 | ||
45593 | typedef struct _GtkTreeView GtkTreeView; | |
45594 | typedef struct _GtkTreeViewClass GtkTreeViewClass; | |
45595 | typedef struct _GtkTreeViewPrivate GtkTreeViewPrivate; | |
45596 | typedef struct _GtkTreeSelection GtkTreeSelection; | |
45597 | typedef struct _GtkTreeSelectionClass GtkTreeSelectionClass; | |
45598 | ||
45599 | struct _GtkTreeView | |
45600 | { | |
45601 | GtkContainer parent; | |
45602 | ||
45603 | GtkTreeViewPrivate *priv; | |
45604 | }; | |
45605 | ||
45606 | struct _GtkTreeViewClass | |
45607 | { | |
45608 | GtkContainerClass parent_class; | |
45609 | ||
45610 | void (* set_scroll_adjustments) (GtkTreeView *tree_view, | |
45611 | GtkAdjustment *hadjustment, | |
45612 | GtkAdjustment *vadjustment); | |
45613 | void (* row_activated) (GtkTreeView *tree_view, | |
45614 | GtkTreePath *path, | |
45615 | GtkTreeViewColumn *column); | |
45616 | gboolean (* test_expand_row) (GtkTreeView *tree_view, | |
45617 | GtkTreeIter *iter, | |
45618 | GtkTreePath *path); | |
45619 | gboolean (* test_collapse_row) (GtkTreeView *tree_view, | |
45620 | GtkTreeIter *iter, | |
45621 | GtkTreePath *path); | |
45622 | void (* row_expanded) (GtkTreeView *tree_view, | |
45623 | GtkTreeIter *iter, | |
45624 | GtkTreePath *path); | |
45625 | void (* row_collapsed) (GtkTreeView *tree_view, | |
45626 | GtkTreeIter *iter, | |
45627 | GtkTreePath *path); | |
45628 | void (* columns_changed) (GtkTreeView *tree_view); | |
45629 | void (* cursor_changed) (GtkTreeView *tree_view); | |
45630 | ||
45631 | ||
45632 | gboolean (* move_cursor) (GtkTreeView *tree_view, | |
45633 | GtkMovementStep step, | |
45634 | gint count); | |
45635 | gboolean (* select_all) (GtkTreeView *tree_view); | |
45636 | gboolean (* unselect_all) (GtkTreeView *tree_view); | |
45637 | gboolean (* select_cursor_row) (GtkTreeView *tree_view, | |
45638 | gboolean start_editing); | |
45639 | gboolean (* toggle_cursor_row) (GtkTreeView *tree_view); | |
45640 | gboolean (* expand_collapse_cursor_row) (GtkTreeView *tree_view, | |
45641 | gboolean logical, | |
45642 | gboolean expand, | |
45643 | gboolean open_all); | |
45644 | gboolean (* select_cursor_parent) (GtkTreeView *tree_view); | |
45645 | gboolean (* start_interactive_search) (GtkTreeView *tree_view); | |
45646 | ||
45647 | ||
45648 | void (*_gtk_reserved0) (void); | |
45649 | void (*_gtk_reserved1) (void); | |
45650 | void (*_gtk_reserved2) (void); | |
45651 | void (*_gtk_reserved3) (void); | |
45652 | void (*_gtk_reserved4) (void); | |
45653 | }; | |
45654 | ||
45655 | ||
45656 | typedef gboolean (* GtkTreeViewColumnDropFunc) (GtkTreeView *tree_view, | |
45657 | GtkTreeViewColumn *column, | |
45658 | GtkTreeViewColumn *prev_column, | |
45659 | GtkTreeViewColumn *next_column, | |
45660 | gpointer data); | |
45661 | typedef void (* GtkTreeViewMappingFunc) (GtkTreeView *tree_view, | |
45662 | GtkTreePath *path, | |
45663 | gpointer user_data); | |
45664 | typedef gboolean (*GtkTreeViewSearchEqualFunc) (GtkTreeModel *model, | |
45665 | gint column, | |
45666 | const gchar *key, | |
45667 | GtkTreeIter *iter, | |
45668 | gpointer search_data); | |
45669 | typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model, | |
45670 | GtkTreeIter *iter, | |
45671 | gpointer data); | |
45672 | ||
45673 | ||
45674 | ||
45675 | GType gtk_tree_view_get_type (void) __attribute__((__const__)); | |
45676 | GtkWidget *gtk_tree_view_new (void); | |
45677 | GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model); | |
45678 | ||
45679 | ||
45680 | GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view); | |
45681 | void gtk_tree_view_set_model (GtkTreeView *tree_view, | |
45682 | GtkTreeModel *model); | |
45683 | GtkTreeSelection *gtk_tree_view_get_selection (GtkTreeView *tree_view); | |
45684 | GtkAdjustment *gtk_tree_view_get_hadjustment (GtkTreeView *tree_view); | |
45685 | void gtk_tree_view_set_hadjustment (GtkTreeView *tree_view, | |
45686 | GtkAdjustment *adjustment); | |
45687 | GtkAdjustment *gtk_tree_view_get_vadjustment (GtkTreeView *tree_view); | |
45688 | void gtk_tree_view_set_vadjustment (GtkTreeView *tree_view, | |
45689 | GtkAdjustment *adjustment); | |
45690 | gboolean gtk_tree_view_get_headers_visible (GtkTreeView *tree_view); | |
45691 | void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view, | |
45692 | gboolean headers_visible); | |
45693 | void gtk_tree_view_columns_autosize (GtkTreeView *tree_view); | |
45694 | void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view, | |
45695 | gboolean setting); | |
45696 | void gtk_tree_view_set_rules_hint (GtkTreeView *tree_view, | |
45697 | gboolean setting); | |
45698 | gboolean gtk_tree_view_get_rules_hint (GtkTreeView *tree_view); | |
45699 | ||
45700 | ||
45701 | gint gtk_tree_view_append_column (GtkTreeView *tree_view, | |
45702 | GtkTreeViewColumn *column); | |
45703 | gint gtk_tree_view_remove_column (GtkTreeView *tree_view, | |
45704 | GtkTreeViewColumn *column); | |
45705 | gint gtk_tree_view_insert_column (GtkTreeView *tree_view, | |
45706 | GtkTreeViewColumn *column, | |
45707 | gint position); | |
45708 | gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view, | |
45709 | gint position, | |
45710 | const gchar *title, | |
45711 | GtkCellRenderer *cell, | |
45712 | ...) ; | |
45713 | gint gtk_tree_view_insert_column_with_data_func (GtkTreeView *tree_view, | |
45714 | gint position, | |
45715 | const gchar *title, | |
45716 | GtkCellRenderer *cell, | |
45717 | GtkTreeCellDataFunc func, | |
45718 | gpointer data, | |
45719 | GDestroyNotify dnotify); | |
45720 | GtkTreeViewColumn *gtk_tree_view_get_column (GtkTreeView *tree_view, | |
45721 | gint n); | |
45722 | GList *gtk_tree_view_get_columns (GtkTreeView *tree_view); | |
45723 | void gtk_tree_view_move_column_after (GtkTreeView *tree_view, | |
45724 | GtkTreeViewColumn *column, | |
45725 | GtkTreeViewColumn *base_column); | |
45726 | void gtk_tree_view_set_expander_column (GtkTreeView *tree_view, | |
45727 | GtkTreeViewColumn *column); | |
45728 | GtkTreeViewColumn *gtk_tree_view_get_expander_column (GtkTreeView *tree_view); | |
45729 | void gtk_tree_view_set_column_drag_function (GtkTreeView *tree_view, | |
45730 | GtkTreeViewColumnDropFunc func, | |
45731 | gpointer user_data, | |
45732 | GtkDestroyNotify destroy); | |
45733 | ||
45734 | ||
45735 | void gtk_tree_view_scroll_to_point (GtkTreeView *tree_view, | |
45736 | gint tree_x, | |
45737 | gint tree_y); | |
45738 | void gtk_tree_view_scroll_to_cell (GtkTreeView *tree_view, | |
45739 | GtkTreePath *path, | |
45740 | GtkTreeViewColumn *column, | |
45741 | gboolean use_align, | |
45742 | gfloat row_align, | |
45743 | gfloat col_align); | |
45744 | void gtk_tree_view_row_activated (GtkTreeView *tree_view, | |
45745 | GtkTreePath *path, | |
45746 | GtkTreeViewColumn *column); | |
45747 | void gtk_tree_view_expand_all (GtkTreeView *tree_view); | |
45748 | void gtk_tree_view_collapse_all (GtkTreeView *tree_view); | |
45749 | void gtk_tree_view_expand_to_path (GtkTreeView *tree_view, | |
45750 | GtkTreePath *path); | |
45751 | gboolean gtk_tree_view_expand_row (GtkTreeView *tree_view, | |
45752 | GtkTreePath *path, | |
45753 | gboolean open_all); | |
45754 | gboolean gtk_tree_view_collapse_row (GtkTreeView *tree_view, | |
45755 | GtkTreePath *path); | |
45756 | void gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view, | |
45757 | GtkTreeViewMappingFunc func, | |
45758 | gpointer data); | |
45759 | gboolean gtk_tree_view_row_expanded (GtkTreeView *tree_view, | |
45760 | GtkTreePath *path); | |
45761 | void gtk_tree_view_set_reorderable (GtkTreeView *tree_view, | |
45762 | gboolean reorderable); | |
45763 | gboolean gtk_tree_view_get_reorderable (GtkTreeView *tree_view); | |
45764 | void gtk_tree_view_set_cursor (GtkTreeView *tree_view, | |
45765 | GtkTreePath *path, | |
45766 | GtkTreeViewColumn *focus_column, | |
45767 | gboolean start_editing); | |
45768 | void gtk_tree_view_set_cursor_on_cell (GtkTreeView *tree_view, | |
45769 | GtkTreePath *path, | |
45770 | GtkTreeViewColumn *focus_column, | |
45771 | GtkCellRenderer *focus_cell, | |
45772 | gboolean start_editing); | |
45773 | void gtk_tree_view_get_cursor (GtkTreeView *tree_view, | |
45774 | GtkTreePath **path, | |
45775 | GtkTreeViewColumn **focus_column); | |
45776 | ||
45777 | ||
45778 | ||
45779 | GdkWindow *gtk_tree_view_get_bin_window (GtkTreeView *tree_view); | |
45780 | gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view, | |
45781 | gint x, | |
45782 | gint y, | |
45783 | GtkTreePath **path, | |
45784 | GtkTreeViewColumn **column, | |
45785 | gint *cell_x, | |
45786 | gint *cell_y); | |
45787 | void gtk_tree_view_get_cell_area (GtkTreeView *tree_view, | |
45788 | GtkTreePath *path, | |
45789 | GtkTreeViewColumn *column, | |
45790 | GdkRectangle *rect); | |
45791 | void gtk_tree_view_get_background_area (GtkTreeView *tree_view, | |
45792 | GtkTreePath *path, | |
45793 | GtkTreeViewColumn *column, | |
45794 | GdkRectangle *rect); | |
45795 | void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view, | |
45796 | GdkRectangle *visible_rect); | |
45797 | void gtk_tree_view_widget_to_tree_coords (GtkTreeView *tree_view, | |
45798 | gint wx, | |
45799 | gint wy, | |
45800 | gint *tx, | |
45801 | gint *ty); | |
45802 | void gtk_tree_view_tree_to_widget_coords (GtkTreeView *tree_view, | |
45803 | gint tx, | |
45804 | gint ty, | |
45805 | gint *wx, | |
45806 | gint *wy); | |
45807 | gboolean gtk_tree_view_get_visible_range (GtkTreeView *tree_view, | |
45808 | GtkTreePath **start_path, | |
45809 | GtkTreePath **end_path); | |
45810 | ||
45811 | ||
45812 | void gtk_tree_view_enable_model_drag_source (GtkTreeView *tree_view, | |
45813 | GdkModifierType start_button_mask, | |
45814 | const GtkTargetEntry *targets, | |
45815 | gint n_targets, | |
45816 | GdkDragAction actions); | |
45817 | void gtk_tree_view_enable_model_drag_dest (GtkTreeView *tree_view, | |
45818 | const GtkTargetEntry *targets, | |
45819 | gint n_targets, | |
45820 | GdkDragAction actions); | |
45821 | void gtk_tree_view_unset_rows_drag_source (GtkTreeView *tree_view); | |
45822 | void gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view); | |
45823 | ||
45824 | ||
45825 | ||
45826 | void gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view, | |
45827 | GtkTreePath *path, | |
45828 | GtkTreeViewDropPosition pos); | |
45829 | void gtk_tree_view_get_drag_dest_row (GtkTreeView *tree_view, | |
45830 | GtkTreePath **path, | |
45831 | GtkTreeViewDropPosition *pos); | |
45832 | gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView *tree_view, | |
45833 | gint drag_x, | |
45834 | gint drag_y, | |
45835 | GtkTreePath **path, | |
45836 | GtkTreeViewDropPosition *pos); | |
45837 | GdkPixmap *gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view, | |
45838 | GtkTreePath *path); | |
45839 | ||
45840 | ||
45841 | void gtk_tree_view_set_enable_search (GtkTreeView *tree_view, | |
45842 | gboolean enable_search); | |
45843 | gboolean gtk_tree_view_get_enable_search (GtkTreeView *tree_view); | |
45844 | gint gtk_tree_view_get_search_column (GtkTreeView *tree_view); | |
45845 | void gtk_tree_view_set_search_column (GtkTreeView *tree_view, | |
45846 | gint column); | |
45847 | GtkTreeViewSearchEqualFunc gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view); | |
45848 | void gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view, | |
45849 | GtkTreeViewSearchEqualFunc search_equal_func, | |
45850 | gpointer search_user_data, | |
45851 | GtkDestroyNotify search_destroy); | |
45852 | ||
45853 | ||
45854 | ||
45855 | typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view, | |
45856 | GtkTreePath *path, | |
45857 | gint children, | |
45858 | gpointer user_data); | |
45859 | void gtk_tree_view_set_destroy_count_func (GtkTreeView *tree_view, | |
45860 | GtkTreeDestroyCountFunc func, | |
45861 | gpointer data, | |
45862 | GtkDestroyNotify destroy); | |
45863 | ||
45864 | void gtk_tree_view_set_fixed_height_mode (GtkTreeView *tree_view, | |
45865 | gboolean enable); | |
45866 | gboolean gtk_tree_view_get_fixed_height_mode (GtkTreeView *tree_view); | |
45867 | void gtk_tree_view_set_hover_selection (GtkTreeView *tree_view, | |
45868 | gboolean hover); | |
45869 | gboolean gtk_tree_view_get_hover_selection (GtkTreeView *tree_view); | |
45870 | void gtk_tree_view_set_hover_expand (GtkTreeView *tree_view, | |
45871 | gboolean expand); | |
45872 | gboolean gtk_tree_view_get_hover_expand (GtkTreeView *tree_view); | |
45873 | ||
45874 | GtkTreeViewRowSeparatorFunc gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view); | |
45875 | void gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view, | |
45876 | GtkTreeViewRowSeparatorFunc func, | |
45877 | gpointer data, | |
45878 | GtkDestroyNotify destroy); | |
45879 | ||
45880 | ||
45881 | ||
45882 | # 26 "/usr/include/gtk-2.0/gtk/gtkcombobox.h" 2 | |
45883 | ||
45884 | ||
45885 | ||
45886 | #define GTK_TYPE_COMBO_BOX (gtk_combo_box_get_type ()) | |
45887 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | |
45888 | #define GTK_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_COMBO_BOX, GtkComboBoxClass)) | |
45889 | #define GTK_IS_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX)) | |
45890 | #define GTK_IS_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_COMBO_BOX)) | |
45891 | #define GTK_COMBO_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_COMBO_BOX, GtkComboBoxClass)) | |
45892 | ||
45893 | typedef struct _GtkComboBox GtkComboBox; | |
45894 | typedef struct _GtkComboBoxClass GtkComboBoxClass; | |
45895 | typedef struct _GtkComboBoxPrivate GtkComboBoxPrivate; | |
45896 | ||
45897 | struct _GtkComboBox | |
45898 | { | |
45899 | GtkBin parent_instance; | |
45900 | ||
45901 | ||
45902 | GtkComboBoxPrivate *priv; | |
45903 | }; | |
45904 | ||
45905 | struct _GtkComboBoxClass | |
45906 | { | |
45907 | GtkBinClass parent_class; | |
45908 | ||
45909 | ||
45910 | void (* changed) (GtkComboBox *combo_box); | |
45911 | ||
45912 | ||
45913 | gchar * (* get_active_text) (GtkComboBox *combo_box); | |
45914 | ||
45915 | ||
45916 | void (*_gtk_reserved0) (void); | |
45917 | void (*_gtk_reserved1) (void); | |
45918 | void (*_gtk_reserved2) (void); | |
45919 | }; | |
45920 | ||
45921 | ||
45922 | ||
45923 | GType gtk_combo_box_get_type (void) __attribute__((__const__)); | |
45924 | GtkWidget *gtk_combo_box_new (void); | |
45925 | GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model); | |
45926 | ||
45927 | ||
45928 | gint gtk_combo_box_get_wrap_width (GtkComboBox *combo_box); | |
45929 | void gtk_combo_box_set_wrap_width (GtkComboBox *combo_box, | |
45930 | gint width); | |
45931 | gint gtk_combo_box_get_row_span_column (GtkComboBox *combo_box); | |
45932 | void gtk_combo_box_set_row_span_column (GtkComboBox *combo_box, | |
45933 | gint row_span); | |
45934 | gint gtk_combo_box_get_column_span_column (GtkComboBox *combo_box); | |
45935 | void gtk_combo_box_set_column_span_column (GtkComboBox *combo_box, | |
45936 | gint column_span); | |
45937 | ||
45938 | gboolean gtk_combo_box_get_add_tearoffs (GtkComboBox *combo_box); | |
45939 | void gtk_combo_box_set_add_tearoffs (GtkComboBox *combo_box, | |
45940 | gboolean add_tearoffs); | |
45941 | gboolean gtk_combo_box_get_focus_on_click (GtkComboBox *combo); | |
45942 | void gtk_combo_box_set_focus_on_click (GtkComboBox *combo, | |
45943 | gboolean focus_on_click); | |
45944 | ||
45945 | ||
45946 | gint gtk_combo_box_get_active (GtkComboBox *combo_box); | |
45947 | void gtk_combo_box_set_active (GtkComboBox *combo_box, | |
45948 | gint index_); | |
45949 | gboolean gtk_combo_box_get_active_iter (GtkComboBox *combo_box, | |
45950 | GtkTreeIter *iter); | |
45951 | void gtk_combo_box_set_active_iter (GtkComboBox *combo_box, | |
45952 | GtkTreeIter *iter); | |
45953 | ||
45954 | ||
45955 | void gtk_combo_box_set_model (GtkComboBox *combo_box, | |
45956 | GtkTreeModel *model); | |
45957 | GtkTreeModel *gtk_combo_box_get_model (GtkComboBox *combo_box); | |
45958 | ||
45959 | GtkTreeViewRowSeparatorFunc gtk_combo_box_get_row_separator_func (GtkComboBox *combo_box); | |
45960 | void gtk_combo_box_set_row_separator_func (GtkComboBox *combo_box, | |
45961 | GtkTreeViewRowSeparatorFunc func, | |
45962 | gpointer data, | |
45963 | GtkDestroyNotify destroy); | |
45964 | ||
45965 | ||
45966 | GtkWidget *gtk_combo_box_new_text (void); | |
45967 | void gtk_combo_box_append_text (GtkComboBox *combo_box, | |
45968 | const gchar *text); | |
45969 | void gtk_combo_box_insert_text (GtkComboBox *combo_box, | |
45970 | gint position, | |
45971 | const gchar *text); | |
45972 | void gtk_combo_box_prepend_text (GtkComboBox *combo_box, | |
45973 | const gchar *text); | |
45974 | void gtk_combo_box_remove_text (GtkComboBox *combo_box, | |
45975 | gint position); | |
45976 | gchar *gtk_combo_box_get_active_text (GtkComboBox *combo_box); | |
45977 | ||
45978 | ||
45979 | void gtk_combo_box_popup (GtkComboBox *combo_box); | |
45980 | void gtk_combo_box_popdown (GtkComboBox *combo_box); | |
45981 | AtkObject* gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box); | |
45982 | ||
45983 | ||
45984 | gboolean _gtk_combo_box_editing_canceled (GtkComboBox *combo_box); | |
45985 | ||
45986 | ||
45987 | # 66 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
45988 | # 1 "/usr/include/gtk-2.0/gtk/gtkcomboboxentry.h" 1 | |
45989 | # 21 "/usr/include/gtk-2.0/gtk/gtkcomboboxentry.h" | |
45990 | #define __GTK_COMBO_BOX_ENTRY_H__ | |
45991 | ||
45992 | ||
45993 | ||
45994 | ||
45995 | ||
45996 | ||
45997 | #define GTK_TYPE_COMBO_BOX_ENTRY (gtk_combo_box_entry_get_type ()) | |
45998 | #define GTK_COMBO_BOX_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX_ENTRY, GtkComboBoxEntry)) | |
45999 | #define GTK_COMBO_BOX_ENTRY_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_COMBO_BOX_ENTRY, GtkComboBoxEntryClass)) | |
46000 | #define GTK_IS_COMBO_BOX_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX_ENTRY)) | |
46001 | #define GTK_IS_COMBO_BOX_ENTRY_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_COMBO_BOX_ENTRY)) | |
46002 | #define GTK_COMBO_BOX_ENTRY_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_COMBO_BOX_ENTRY, GtkComboBoxEntryClass)) | |
46003 | ||
46004 | typedef struct _GtkComboBoxEntry GtkComboBoxEntry; | |
46005 | typedef struct _GtkComboBoxEntryClass GtkComboBoxEntryClass; | |
46006 | typedef struct _GtkComboBoxEntryPrivate GtkComboBoxEntryPrivate; | |
46007 | ||
46008 | struct _GtkComboBoxEntry | |
46009 | { | |
46010 | GtkComboBox parent_instance; | |
46011 | ||
46012 | ||
46013 | GtkComboBoxEntryPrivate *priv; | |
46014 | }; | |
46015 | ||
46016 | struct _GtkComboBoxEntryClass | |
46017 | { | |
46018 | GtkComboBoxClass parent_class; | |
46019 | ||
46020 | ||
46021 | void (*_gtk_reserved0) (void); | |
46022 | void (*_gtk_reserved1) (void); | |
46023 | void (*_gtk_reserved2) (void); | |
46024 | void (*_gtk_reserved3) (void); | |
46025 | }; | |
46026 | ||
46027 | ||
46028 | GType gtk_combo_box_entry_get_type (void) __attribute__((__const__)); | |
46029 | GtkWidget *gtk_combo_box_entry_new (void); | |
46030 | GtkWidget *gtk_combo_box_entry_new_with_model (GtkTreeModel *model, | |
46031 | gint text_column); | |
46032 | ||
46033 | void gtk_combo_box_entry_set_text_column (GtkComboBoxEntry *entry_box, | |
46034 | gint text_column); | |
46035 | gint gtk_combo_box_entry_get_text_column (GtkComboBoxEntry *entry_box); | |
46036 | ||
46037 | ||
46038 | GtkWidget *gtk_combo_box_entry_new_text (void); | |
46039 | ||
46040 | ||
46041 | ||
46042 | # 67 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
46043 | ||
46044 | # 1 "/usr/include/gtk-2.0/gtk/gtkctree.h" 1 | |
46045 | # 34 "/usr/include/gtk-2.0/gtk/gtkctree.h" | |
46046 | #define __GTK_CTREE_H__ | |
46047 | ||
46048 | # 1 "/usr/include/gtk-2.0/gtk/gtkclist.h" 1 | |
46049 | # 37 "/usr/include/gtk-2.0/gtk/gtkctree.h" 2 | |
46050 | ||
46051 | ||
46052 | ||
46053 | #define GTK_TYPE_CTREE (gtk_ctree_get_type ()) | |
46054 | #define GTK_CTREE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CTREE, GtkCTree)) | |
46055 | #define GTK_CTREE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CTREE, GtkCTreeClass)) | |
46056 | #define GTK_IS_CTREE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CTREE)) | |
46057 | #define GTK_IS_CTREE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CTREE)) | |
46058 | #define GTK_CTREE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CTREE, GtkCTreeClass)) | |
46059 | ||
46060 | #define GTK_CTREE_ROW(_node_) ((GtkCTreeRow *)(((GList *)(_node_))->data)) | |
46061 | #define GTK_CTREE_NODE(_node_) ((GtkCTreeNode *)((_node_))) | |
46062 | #define GTK_CTREE_NODE_NEXT(_nnode_) ((GtkCTreeNode *)(((GList *)(_nnode_))->next)) | |
46063 | #define GTK_CTREE_NODE_PREV(_pnode_) ((GtkCTreeNode *)(((GList *)(_pnode_))->prev)) | |
46064 | #define GTK_CTREE_FUNC(_func_) ((GtkCTreeFunc)(_func_)) | |
46065 | ||
46066 | #define GTK_TYPE_CTREE_NODE (gtk_ctree_node_get_type ()) | |
46067 | ||
46068 | typedef enum | |
46069 | { | |
46070 | GTK_CTREE_POS_BEFORE, | |
46071 | GTK_CTREE_POS_AS_CHILD, | |
46072 | GTK_CTREE_POS_AFTER | |
46073 | } GtkCTreePos; | |
46074 | ||
46075 | typedef enum | |
46076 | { | |
46077 | GTK_CTREE_LINES_NONE, | |
46078 | GTK_CTREE_LINES_SOLID, | |
46079 | GTK_CTREE_LINES_DOTTED, | |
46080 | GTK_CTREE_LINES_TABBED | |
46081 | } GtkCTreeLineStyle; | |
46082 | ||
46083 | typedef enum | |
46084 | { | |
46085 | GTK_CTREE_EXPANDER_NONE, | |
46086 | GTK_CTREE_EXPANDER_SQUARE, | |
46087 | GTK_CTREE_EXPANDER_TRIANGLE, | |
46088 | GTK_CTREE_EXPANDER_CIRCULAR | |
46089 | } GtkCTreeExpanderStyle; | |
46090 | ||
46091 | typedef enum | |
46092 | { | |
46093 | GTK_CTREE_EXPANSION_EXPAND, | |
46094 | GTK_CTREE_EXPANSION_EXPAND_RECURSIVE, | |
46095 | GTK_CTREE_EXPANSION_COLLAPSE, | |
46096 | GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE, | |
46097 | GTK_CTREE_EXPANSION_TOGGLE, | |
46098 | GTK_CTREE_EXPANSION_TOGGLE_RECURSIVE | |
46099 | } GtkCTreeExpansionType; | |
46100 | ||
46101 | typedef struct _GtkCTree GtkCTree; | |
46102 | typedef struct _GtkCTreeClass GtkCTreeClass; | |
46103 | typedef struct _GtkCTreeRow GtkCTreeRow; | |
46104 | typedef struct _GtkCTreeNode GtkCTreeNode; | |
46105 | ||
46106 | typedef void (*GtkCTreeFunc) (GtkCTree *ctree, | |
46107 | GtkCTreeNode *node, | |
46108 | gpointer data); | |
46109 | ||
46110 | typedef gboolean (*GtkCTreeGNodeFunc) (GtkCTree *ctree, | |
46111 | guint depth, | |
46112 | GNode *gnode, | |
46113 | GtkCTreeNode *cnode, | |
46114 | gpointer data); | |
46115 | ||
46116 | typedef gboolean (*GtkCTreeCompareDragFunc) (GtkCTree *ctree, | |
46117 | GtkCTreeNode *source_node, | |
46118 | GtkCTreeNode *new_parent, | |
46119 | GtkCTreeNode *new_sibling); | |
46120 | ||
46121 | struct _GtkCTree | |
46122 | { | |
46123 | GtkCList clist; | |
46124 | ||
46125 | GdkGC *lines_gc; | |
46126 | ||
46127 | gint tree_indent; | |
46128 | gint tree_spacing; | |
46129 | gint tree_column; | |
46130 | ||
46131 | guint line_style : 2; | |
46132 | guint expander_style : 2; | |
46133 | guint show_stub : 1; | |
46134 | ||
46135 | GtkCTreeCompareDragFunc drag_compare; | |
46136 | }; | |
46137 | ||
46138 | struct _GtkCTreeClass | |
46139 | { | |
46140 | GtkCListClass parent_class; | |
46141 | ||
46142 | void (*tree_select_row) (GtkCTree *ctree, | |
46143 | GtkCTreeNode *row, | |
46144 | gint column); | |
46145 | void (*tree_unselect_row) (GtkCTree *ctree, | |
46146 | GtkCTreeNode *row, | |
46147 | gint column); | |
46148 | void (*tree_expand) (GtkCTree *ctree, | |
46149 | GtkCTreeNode *node); | |
46150 | void (*tree_collapse) (GtkCTree *ctree, | |
46151 | GtkCTreeNode *node); | |
46152 | void (*tree_move) (GtkCTree *ctree, | |
46153 | GtkCTreeNode *node, | |
46154 | GtkCTreeNode *new_parent, | |
46155 | GtkCTreeNode *new_sibling); | |
46156 | void (*change_focus_row_expansion) (GtkCTree *ctree, | |
46157 | GtkCTreeExpansionType action); | |
46158 | }; | |
46159 | ||
46160 | struct _GtkCTreeRow | |
46161 | { | |
46162 | GtkCListRow row; | |
46163 | ||
46164 | GtkCTreeNode *parent; | |
46165 | GtkCTreeNode *sibling; | |
46166 | GtkCTreeNode *children; | |
46167 | ||
46168 | GdkPixmap *pixmap_closed; | |
46169 | GdkBitmap *mask_closed; | |
46170 | GdkPixmap *pixmap_opened; | |
46171 | GdkBitmap *mask_opened; | |
46172 | ||
46173 | guint16 level; | |
46174 | ||
46175 | guint is_leaf : 1; | |
46176 | guint expanded : 1; | |
46177 | }; | |
46178 | ||
46179 | struct _GtkCTreeNode { | |
46180 | GList list; | |
46181 | }; | |
46182 | ||
46183 | ||
46184 | ||
46185 | ||
46186 | ||
46187 | ||
46188 | GtkType gtk_ctree_get_type (void) __attribute__((__const__)); | |
46189 | GtkWidget * gtk_ctree_new_with_titles (gint columns, | |
46190 | gint tree_column, | |
46191 | gchar *titles[]); | |
46192 | GtkWidget * gtk_ctree_new (gint columns, | |
46193 | gint tree_column); | |
46194 | GtkCTreeNode * gtk_ctree_insert_node (GtkCTree *ctree, | |
46195 | GtkCTreeNode *parent, | |
46196 | GtkCTreeNode *sibling, | |
46197 | gchar *text[], | |
46198 | guint8 spacing, | |
46199 | GdkPixmap *pixmap_closed, | |
46200 | GdkBitmap *mask_closed, | |
46201 | GdkPixmap *pixmap_opened, | |
46202 | GdkBitmap *mask_opened, | |
46203 | gboolean is_leaf, | |
46204 | gboolean expanded); | |
46205 | void gtk_ctree_remove_node (GtkCTree *ctree, | |
46206 | GtkCTreeNode *node); | |
46207 | GtkCTreeNode * gtk_ctree_insert_gnode (GtkCTree *ctree, | |
46208 | GtkCTreeNode *parent, | |
46209 | GtkCTreeNode *sibling, | |
46210 | GNode *gnode, | |
46211 | GtkCTreeGNodeFunc func, | |
46212 | gpointer data); | |
46213 | GNode * gtk_ctree_export_to_gnode (GtkCTree *ctree, | |
46214 | GNode *parent, | |
46215 | GNode *sibling, | |
46216 | GtkCTreeNode *node, | |
46217 | GtkCTreeGNodeFunc func, | |
46218 | gpointer data); | |
46219 | ||
46220 | ||
46221 | ||
46222 | ||
46223 | ||
46224 | ||
46225 | void gtk_ctree_post_recursive (GtkCTree *ctree, | |
46226 | GtkCTreeNode *node, | |
46227 | GtkCTreeFunc func, | |
46228 | gpointer data); | |
46229 | void gtk_ctree_post_recursive_to_depth (GtkCTree *ctree, | |
46230 | GtkCTreeNode *node, | |
46231 | gint depth, | |
46232 | GtkCTreeFunc func, | |
46233 | gpointer data); | |
46234 | void gtk_ctree_pre_recursive (GtkCTree *ctree, | |
46235 | GtkCTreeNode *node, | |
46236 | GtkCTreeFunc func, | |
46237 | gpointer data); | |
46238 | void gtk_ctree_pre_recursive_to_depth (GtkCTree *ctree, | |
46239 | GtkCTreeNode *node, | |
46240 | gint depth, | |
46241 | GtkCTreeFunc func, | |
46242 | gpointer data); | |
46243 | gboolean gtk_ctree_is_viewable (GtkCTree *ctree, | |
46244 | GtkCTreeNode *node); | |
46245 | GtkCTreeNode * gtk_ctree_last (GtkCTree *ctree, | |
46246 | GtkCTreeNode *node); | |
46247 | GtkCTreeNode * gtk_ctree_find_node_ptr (GtkCTree *ctree, | |
46248 | GtkCTreeRow *ctree_row); | |
46249 | GtkCTreeNode * gtk_ctree_node_nth (GtkCTree *ctree, | |
46250 | guint row); | |
46251 | gboolean gtk_ctree_find (GtkCTree *ctree, | |
46252 | GtkCTreeNode *node, | |
46253 | GtkCTreeNode *child); | |
46254 | gboolean gtk_ctree_is_ancestor (GtkCTree *ctree, | |
46255 | GtkCTreeNode *node, | |
46256 | GtkCTreeNode *child); | |
46257 | GtkCTreeNode * gtk_ctree_find_by_row_data (GtkCTree *ctree, | |
46258 | GtkCTreeNode *node, | |
46259 | gpointer data); | |
46260 | ||
46261 | GList * gtk_ctree_find_all_by_row_data (GtkCTree *ctree, | |
46262 | GtkCTreeNode *node, | |
46263 | gpointer data); | |
46264 | GtkCTreeNode * gtk_ctree_find_by_row_data_custom (GtkCTree *ctree, | |
46265 | GtkCTreeNode *node, | |
46266 | gpointer data, | |
46267 | GCompareFunc func); | |
46268 | ||
46269 | GList * gtk_ctree_find_all_by_row_data_custom (GtkCTree *ctree, | |
46270 | GtkCTreeNode *node, | |
46271 | gpointer data, | |
46272 | GCompareFunc func); | |
46273 | gboolean gtk_ctree_is_hot_spot (GtkCTree *ctree, | |
46274 | gint x, | |
46275 | gint y); | |
46276 | ||
46277 | ||
46278 | ||
46279 | ||
46280 | ||
46281 | void gtk_ctree_move (GtkCTree *ctree, | |
46282 | GtkCTreeNode *node, | |
46283 | GtkCTreeNode *new_parent, | |
46284 | GtkCTreeNode *new_sibling); | |
46285 | void gtk_ctree_expand (GtkCTree *ctree, | |
46286 | GtkCTreeNode *node); | |
46287 | void gtk_ctree_expand_recursive (GtkCTree *ctree, | |
46288 | GtkCTreeNode *node); | |
46289 | void gtk_ctree_expand_to_depth (GtkCTree *ctree, | |
46290 | GtkCTreeNode *node, | |
46291 | gint depth); | |
46292 | void gtk_ctree_collapse (GtkCTree *ctree, | |
46293 | GtkCTreeNode *node); | |
46294 | void gtk_ctree_collapse_recursive (GtkCTree *ctree, | |
46295 | GtkCTreeNode *node); | |
46296 | void gtk_ctree_collapse_to_depth (GtkCTree *ctree, | |
46297 | GtkCTreeNode *node, | |
46298 | gint depth); | |
46299 | void gtk_ctree_toggle_expansion (GtkCTree *ctree, | |
46300 | GtkCTreeNode *node); | |
46301 | void gtk_ctree_toggle_expansion_recursive (GtkCTree *ctree, | |
46302 | GtkCTreeNode *node); | |
46303 | void gtk_ctree_select (GtkCTree *ctree, | |
46304 | GtkCTreeNode *node); | |
46305 | void gtk_ctree_select_recursive (GtkCTree *ctree, | |
46306 | GtkCTreeNode *node); | |
46307 | void gtk_ctree_unselect (GtkCTree *ctree, | |
46308 | GtkCTreeNode *node); | |
46309 | void gtk_ctree_unselect_recursive (GtkCTree *ctree, | |
46310 | GtkCTreeNode *node); | |
46311 | void gtk_ctree_real_select_recursive (GtkCTree *ctree, | |
46312 | GtkCTreeNode *node, | |
46313 | gint state); | |
46314 | ||
46315 | ||
46316 | ||
46317 | ||
46318 | ||
46319 | void gtk_ctree_node_set_text (GtkCTree *ctree, | |
46320 | GtkCTreeNode *node, | |
46321 | gint column, | |
46322 | const gchar *text); | |
46323 | void gtk_ctree_node_set_pixmap (GtkCTree *ctree, | |
46324 | GtkCTreeNode *node, | |
46325 | gint column, | |
46326 | GdkPixmap *pixmap, | |
46327 | GdkBitmap *mask); | |
46328 | void gtk_ctree_node_set_pixtext (GtkCTree *ctree, | |
46329 | GtkCTreeNode *node, | |
46330 | gint column, | |
46331 | const gchar *text, | |
46332 | guint8 spacing, | |
46333 | GdkPixmap *pixmap, | |
46334 | GdkBitmap *mask); | |
46335 | void gtk_ctree_set_node_info (GtkCTree *ctree, | |
46336 | GtkCTreeNode *node, | |
46337 | const gchar *text, | |
46338 | guint8 spacing, | |
46339 | GdkPixmap *pixmap_closed, | |
46340 | GdkBitmap *mask_closed, | |
46341 | GdkPixmap *pixmap_opened, | |
46342 | GdkBitmap *mask_opened, | |
46343 | gboolean is_leaf, | |
46344 | gboolean expanded); | |
46345 | void gtk_ctree_node_set_shift (GtkCTree *ctree, | |
46346 | GtkCTreeNode *node, | |
46347 | gint column, | |
46348 | gint vertical, | |
46349 | gint horizontal); | |
46350 | void gtk_ctree_node_set_selectable (GtkCTree *ctree, | |
46351 | GtkCTreeNode *node, | |
46352 | gboolean selectable); | |
46353 | gboolean gtk_ctree_node_get_selectable (GtkCTree *ctree, | |
46354 | GtkCTreeNode *node); | |
46355 | GtkCellType gtk_ctree_node_get_cell_type (GtkCTree *ctree, | |
46356 | GtkCTreeNode *node, | |
46357 | gint column); | |
46358 | gboolean gtk_ctree_node_get_text (GtkCTree *ctree, | |
46359 | GtkCTreeNode *node, | |
46360 | gint column, | |
46361 | gchar **text); | |
46362 | gboolean gtk_ctree_node_get_pixmap (GtkCTree *ctree, | |
46363 | GtkCTreeNode *node, | |
46364 | gint column, | |
46365 | GdkPixmap **pixmap, | |
46366 | GdkBitmap **mask); | |
46367 | gboolean gtk_ctree_node_get_pixtext (GtkCTree *ctree, | |
46368 | GtkCTreeNode *node, | |
46369 | gint column, | |
46370 | gchar **text, | |
46371 | guint8 *spacing, | |
46372 | GdkPixmap **pixmap, | |
46373 | GdkBitmap **mask); | |
46374 | gboolean gtk_ctree_get_node_info (GtkCTree *ctree, | |
46375 | GtkCTreeNode *node, | |
46376 | gchar **text, | |
46377 | guint8 *spacing, | |
46378 | GdkPixmap **pixmap_closed, | |
46379 | GdkBitmap **mask_closed, | |
46380 | GdkPixmap **pixmap_opened, | |
46381 | GdkBitmap **mask_opened, | |
46382 | gboolean *is_leaf, | |
46383 | gboolean *expanded); | |
46384 | void gtk_ctree_node_set_row_style (GtkCTree *ctree, | |
46385 | GtkCTreeNode *node, | |
46386 | GtkStyle *style); | |
46387 | GtkStyle * gtk_ctree_node_get_row_style (GtkCTree *ctree, | |
46388 | GtkCTreeNode *node); | |
46389 | void gtk_ctree_node_set_cell_style (GtkCTree *ctree, | |
46390 | GtkCTreeNode *node, | |
46391 | gint column, | |
46392 | GtkStyle *style); | |
46393 | GtkStyle * gtk_ctree_node_get_cell_style (GtkCTree *ctree, | |
46394 | GtkCTreeNode *node, | |
46395 | gint column); | |
46396 | void gtk_ctree_node_set_foreground (GtkCTree *ctree, | |
46397 | GtkCTreeNode *node, | |
46398 | const GdkColor *color); | |
46399 | void gtk_ctree_node_set_background (GtkCTree *ctree, | |
46400 | GtkCTreeNode *node, | |
46401 | const GdkColor *color); | |
46402 | void gtk_ctree_node_set_row_data (GtkCTree *ctree, | |
46403 | GtkCTreeNode *node, | |
46404 | gpointer data); | |
46405 | void gtk_ctree_node_set_row_data_full (GtkCTree *ctree, | |
46406 | GtkCTreeNode *node, | |
46407 | gpointer data, | |
46408 | GtkDestroyNotify destroy); | |
46409 | gpointer gtk_ctree_node_get_row_data (GtkCTree *ctree, | |
46410 | GtkCTreeNode *node); | |
46411 | void gtk_ctree_node_moveto (GtkCTree *ctree, | |
46412 | GtkCTreeNode *node, | |
46413 | gint column, | |
46414 | gfloat row_align, | |
46415 | gfloat col_align); | |
46416 | GtkVisibility gtk_ctree_node_is_visible (GtkCTree *ctree, | |
46417 | GtkCTreeNode *node); | |
46418 | ||
46419 | ||
46420 | ||
46421 | ||
46422 | ||
46423 | void gtk_ctree_set_indent (GtkCTree *ctree, | |
46424 | gint indent); | |
46425 | void gtk_ctree_set_spacing (GtkCTree *ctree, | |
46426 | gint spacing); | |
46427 | void gtk_ctree_set_show_stub (GtkCTree *ctree, | |
46428 | gboolean show_stub); | |
46429 | void gtk_ctree_set_line_style (GtkCTree *ctree, | |
46430 | GtkCTreeLineStyle line_style); | |
46431 | void gtk_ctree_set_expander_style (GtkCTree *ctree, | |
46432 | GtkCTreeExpanderStyle expander_style); | |
46433 | void gtk_ctree_set_drag_compare_func (GtkCTree *ctree, | |
46434 | GtkCTreeCompareDragFunc cmp_func); | |
46435 | ||
46436 | ||
46437 | ||
46438 | ||
46439 | ||
46440 | void gtk_ctree_sort_node (GtkCTree *ctree, | |
46441 | GtkCTreeNode *node); | |
46442 | void gtk_ctree_sort_recursive (GtkCTree *ctree, | |
46443 | GtkCTreeNode *node); | |
46444 | ||
46445 | ||
46446 | #define gtk_ctree_set_reorderable(t,r) gtk_clist_set_reorderable((GtkCList*) (t),(r)) | |
46447 | ||
46448 | ||
46449 | ||
46450 | ||
46451 | ||
46452 | GType gtk_ctree_node_get_type (void) __attribute__((__const__)); | |
46453 | ||
46454 | ||
46455 | # 69 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
46456 | # 1 "/usr/include/gtk-2.0/gtk/gtkcurve.h" 1 | |
46457 | # 38 "/usr/include/gtk-2.0/gtk/gtkcurve.h" | |
46458 | #define __GTK_CURVE_H__ | |
46459 | ||
46460 | ||
46461 | ||
46462 | # 1 "/usr/include/gtk-2.0/gtk/gtkdrawingarea.h" 1 | |
46463 | # 28 "/usr/include/gtk-2.0/gtk/gtkdrawingarea.h" | |
46464 | #define __GTK_DRAWING_AREA_H__ | |
46465 | ||
46466 | ||
46467 | ||
46468 | ||
46469 | ||
46470 | ||
46471 | ||
46472 | ||
46473 | #define GTK_TYPE_DRAWING_AREA (gtk_drawing_area_get_type ()) | |
46474 | #define GTK_DRAWING_AREA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_DRAWING_AREA, GtkDrawingArea)) | |
46475 | #define GTK_DRAWING_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_DRAWING_AREA, GtkDrawingAreaClass)) | |
46476 | #define GTK_IS_DRAWING_AREA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_DRAWING_AREA)) | |
46477 | #define GTK_IS_DRAWING_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DRAWING_AREA)) | |
46478 | #define GTK_DRAWING_AREA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_DRAWING_AREA, GtkDrawingAreaClass)) | |
46479 | ||
46480 | ||
46481 | typedef struct _GtkDrawingArea GtkDrawingArea; | |
46482 | typedef struct _GtkDrawingAreaClass GtkDrawingAreaClass; | |
46483 | ||
46484 | struct _GtkDrawingArea | |
46485 | { | |
46486 | GtkWidget widget; | |
46487 | ||
46488 | gpointer draw_data; | |
46489 | }; | |
46490 | ||
46491 | struct _GtkDrawingAreaClass | |
46492 | { | |
46493 | GtkWidgetClass parent_class; | |
46494 | ||
46495 | ||
46496 | void (*_gtk_reserved1) (void); | |
46497 | void (*_gtk_reserved2) (void); | |
46498 | void (*_gtk_reserved3) (void); | |
46499 | void (*_gtk_reserved4) (void); | |
46500 | }; | |
46501 | ||
46502 | ||
46503 | GType gtk_drawing_area_get_type (void) __attribute__((__const__)); | |
46504 | GtkWidget* gtk_drawing_area_new (void); | |
46505 | ||
46506 | ||
46507 | void gtk_drawing_area_size (GtkDrawingArea *darea, | |
46508 | gint width, | |
46509 | gint height); | |
46510 | ||
46511 | ||
46512 | ||
46513 | ||
46514 | # 43 "/usr/include/gtk-2.0/gtk/gtkcurve.h" 2 | |
46515 | ||
46516 | ||
46517 | ||
46518 | #define GTK_TYPE_CURVE (gtk_curve_get_type ()) | |
46519 | #define GTK_CURVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CURVE, GtkCurve)) | |
46520 | #define GTK_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CURVE, GtkCurveClass)) | |
46521 | #define GTK_IS_CURVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CURVE)) | |
46522 | #define GTK_IS_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CURVE)) | |
46523 | #define GTK_CURVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CURVE, GtkCurveClass)) | |
46524 | ||
46525 | ||
46526 | typedef struct _GtkCurve GtkCurve; | |
46527 | typedef struct _GtkCurveClass GtkCurveClass; | |
46528 | ||
46529 | ||
46530 | struct _GtkCurve | |
46531 | { | |
46532 | GtkDrawingArea graph; | |
46533 | ||
46534 | gint cursor_type; | |
46535 | gfloat min_x; | |
46536 | gfloat max_x; | |
46537 | gfloat min_y; | |
46538 | gfloat max_y; | |
46539 | GdkPixmap *pixmap; | |
46540 | GtkCurveType curve_type; | |
46541 | gint height; | |
46542 | gint grab_point; | |
46543 | gint last; | |
46544 | ||
46545 | ||
46546 | gint num_points; | |
46547 | GdkPoint *point; | |
46548 | ||
46549 | ||
46550 | gint num_ctlpoints; | |
46551 | gfloat (*ctlpoint)[2]; | |
46552 | }; | |
46553 | ||
46554 | struct _GtkCurveClass | |
46555 | { | |
46556 | GtkDrawingAreaClass parent_class; | |
46557 | ||
46558 | void (* curve_type_changed) (GtkCurve *curve); | |
46559 | ||
46560 | ||
46561 | void (*_gtk_reserved1) (void); | |
46562 | void (*_gtk_reserved2) (void); | |
46563 | void (*_gtk_reserved3) (void); | |
46564 | void (*_gtk_reserved4) (void); | |
46565 | }; | |
46566 | ||
46567 | ||
46568 | GType gtk_curve_get_type (void) __attribute__((__const__)); | |
46569 | GtkWidget* gtk_curve_new (void); | |
46570 | void gtk_curve_reset (GtkCurve *curve); | |
46571 | void gtk_curve_set_gamma (GtkCurve *curve, gfloat gamma_); | |
46572 | void gtk_curve_set_range (GtkCurve *curve, | |
46573 | gfloat min_x, gfloat max_x, | |
46574 | gfloat min_y, gfloat max_y); | |
46575 | void gtk_curve_get_vector (GtkCurve *curve, | |
46576 | int veclen, gfloat vector[]); | |
46577 | void gtk_curve_set_vector (GtkCurve *curve, | |
46578 | int veclen, gfloat vector[]); | |
46579 | void gtk_curve_set_curve_type (GtkCurve *curve, GtkCurveType type); | |
46580 | ||
46581 | ||
46582 | ||
46583 | # 70 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
46584 | ||
46585 | ||
46586 | ||
46587 | # 1 "/usr/include/gtk-2.0/gtk/gtkeditable.h" 1 | |
46588 | # 28 "/usr/include/gtk-2.0/gtk/gtkeditable.h" | |
46589 | #define __GTK_EDITABLE_H__ | |
46590 | ||
46591 | ||
46592 | ||
46593 | ||
46594 | ||
46595 | ||
46596 | ||
46597 | #define GTK_TYPE_EDITABLE (gtk_editable_get_type ()) | |
46598 | #define GTK_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EDITABLE, GtkEditable)) | |
46599 | #define GTK_EDITABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_EDITABLE, GtkEditableClass)) | |
46600 | #define GTK_IS_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EDITABLE)) | |
46601 | #define GTK_IS_EDITABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_EDITABLE)) | |
46602 | #define GTK_EDITABLE_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_EDITABLE, GtkEditableClass)) | |
46603 | ||
46604 | typedef struct _GtkEditable GtkEditable; | |
46605 | typedef struct _GtkEditableClass GtkEditableClass; | |
46606 | ||
46607 | struct _GtkEditableClass | |
46608 | { | |
46609 | GTypeInterface base_iface; | |
46610 | ||
46611 | ||
46612 | void (* insert_text) (GtkEditable *editable, | |
46613 | const gchar *text, | |
46614 | gint length, | |
46615 | gint *position); | |
46616 | void (* delete_text) (GtkEditable *editable, | |
46617 | gint start_pos, | |
46618 | gint end_pos); | |
46619 | void (* changed) (GtkEditable *editable); | |
46620 | ||
46621 | ||
46622 | void (* do_insert_text) (GtkEditable *editable, | |
46623 | const gchar *text, | |
46624 | gint length, | |
46625 | gint *position); | |
46626 | void (* do_delete_text) (GtkEditable *editable, | |
46627 | gint start_pos, | |
46628 | gint end_pos); | |
46629 | ||
46630 | gchar* (* get_chars) (GtkEditable *editable, | |
46631 | gint start_pos, | |
46632 | gint end_pos); | |
46633 | void (* set_selection_bounds) (GtkEditable *editable, | |
46634 | gint start_pos, | |
46635 | gint end_pos); | |
46636 | gboolean (* get_selection_bounds) (GtkEditable *editable, | |
46637 | gint *start_pos, | |
46638 | gint *end_pos); | |
46639 | void (* set_position) (GtkEditable *editable, | |
46640 | gint position); | |
46641 | gint (* get_position) (GtkEditable *editable); | |
46642 | }; | |
46643 | ||
46644 | GType gtk_editable_get_type (void) __attribute__((__const__)); | |
46645 | void gtk_editable_select_region (GtkEditable *editable, | |
46646 | gint start, | |
46647 | gint end); | |
46648 | gboolean gtk_editable_get_selection_bounds (GtkEditable *editable, | |
46649 | gint *start, | |
46650 | gint *end); | |
46651 | void gtk_editable_insert_text (GtkEditable *editable, | |
46652 | const gchar *new_text, | |
46653 | gint new_text_length, | |
46654 | gint *position); | |
46655 | void gtk_editable_delete_text (GtkEditable *editable, | |
46656 | gint start_pos, | |
46657 | gint end_pos); | |
46658 | gchar* gtk_editable_get_chars (GtkEditable *editable, | |
46659 | gint start_pos, | |
46660 | gint end_pos); | |
46661 | void gtk_editable_cut_clipboard (GtkEditable *editable); | |
46662 | void gtk_editable_copy_clipboard (GtkEditable *editable); | |
46663 | void gtk_editable_paste_clipboard (GtkEditable *editable); | |
46664 | void gtk_editable_delete_selection (GtkEditable *editable); | |
46665 | void gtk_editable_set_position (GtkEditable *editable, | |
46666 | gint position); | |
46667 | gint gtk_editable_get_position (GtkEditable *editable); | |
46668 | void gtk_editable_set_editable (GtkEditable *editable, | |
46669 | gboolean is_editable); | |
46670 | gboolean gtk_editable_get_editable (GtkEditable *editable); | |
46671 | ||
46672 | ||
46673 | # 74 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
46674 | # 1 "/usr/include/gtk-2.0/gtk/gtkentry.h" 1 | |
46675 | # 28 "/usr/include/gtk-2.0/gtk/gtkentry.h" | |
46676 | #define __GTK_ENTRY_H__ | |
46677 | ||
46678 | ||
46679 | ||
46680 | ||
46681 | # 1 "/usr/include/gtk-2.0/gtk/gtkimcontext.h" 1 | |
46682 | # 21 "/usr/include/gtk-2.0/gtk/gtkimcontext.h" | |
46683 | #define __GTK_IM_CONTEXT_H__ | |
46684 | ||
46685 | ||
46686 | ||
46687 | ||
46688 | ||
46689 | ||
46690 | ||
46691 | #define GTK_TYPE_IM_CONTEXT (gtk_im_context_get_type ()) | |
46692 | #define GTK_IM_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContext)) | |
46693 | #define GTK_IM_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT, GtkIMContextClass)) | |
46694 | #define GTK_IS_IM_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT)) | |
46695 | #define GTK_IS_IM_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT)) | |
46696 | #define GTK_IM_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContextClass)) | |
46697 | ||
46698 | ||
46699 | typedef struct _GtkIMContext GtkIMContext; | |
46700 | typedef struct _GtkIMContextClass GtkIMContextClass; | |
46701 | ||
46702 | struct _GtkIMContext | |
46703 | { | |
46704 | GObject parent_instance; | |
46705 | }; | |
46706 | ||
46707 | struct _GtkIMContextClass | |
46708 | { | |
46709 | ||
46710 | ||
46711 | ||
46712 | GtkObjectClass parent_class; | |
46713 | ||
46714 | ||
46715 | void (*preedit_start) (GtkIMContext *context); | |
46716 | void (*preedit_end) (GtkIMContext *context); | |
46717 | void (*preedit_changed) (GtkIMContext *context); | |
46718 | void (*commit) (GtkIMContext *context, const gchar *str); | |
46719 | gboolean (*retrieve_surrounding) (GtkIMContext *context); | |
46720 | gboolean (*delete_surrounding) (GtkIMContext *context, | |
46721 | gint offset, | |
46722 | gint n_chars); | |
46723 | ||
46724 | ||
46725 | void (*set_client_window) (GtkIMContext *context, | |
46726 | GdkWindow *window); | |
46727 | void (*get_preedit_string) (GtkIMContext *context, | |
46728 | gchar **str, | |
46729 | PangoAttrList **attrs, | |
46730 | gint *cursor_pos); | |
46731 | gboolean (*filter_keypress) (GtkIMContext *context, | |
46732 | GdkEventKey *event); | |
46733 | void (*focus_in) (GtkIMContext *context); | |
46734 | void (*focus_out) (GtkIMContext *context); | |
46735 | void (*reset) (GtkIMContext *context); | |
46736 | void (*set_cursor_location) (GtkIMContext *context, | |
46737 | GdkRectangle *area); | |
46738 | void (*set_use_preedit) (GtkIMContext *context, | |
46739 | gboolean use_preedit); | |
46740 | void (*set_surrounding) (GtkIMContext *context, | |
46741 | const gchar *text, | |
46742 | gint len, | |
46743 | gint cursor_index); | |
46744 | gboolean (*get_surrounding) (GtkIMContext *context, | |
46745 | gchar **text, | |
46746 | gint *cursor_index); | |
46747 | ||
46748 | ||
46749 | void (*_gtk_reserved1) (void); | |
46750 | void (*_gtk_reserved2) (void); | |
46751 | void (*_gtk_reserved3) (void); | |
46752 | void (*_gtk_reserved4) (void); | |
46753 | void (*_gtk_reserved5) (void); | |
46754 | void (*_gtk_reserved6) (void); | |
46755 | }; | |
46756 | ||
46757 | GType gtk_im_context_get_type (void) __attribute__((__const__)); | |
46758 | ||
46759 | void gtk_im_context_set_client_window (GtkIMContext *context, | |
46760 | GdkWindow *window); | |
46761 | void gtk_im_context_get_preedit_string (GtkIMContext *context, | |
46762 | gchar **str, | |
46763 | PangoAttrList **attrs, | |
46764 | gint *cursor_pos); | |
46765 | gboolean gtk_im_context_filter_keypress (GtkIMContext *context, | |
46766 | GdkEventKey *event); | |
46767 | void gtk_im_context_focus_in (GtkIMContext *context); | |
46768 | void gtk_im_context_focus_out (GtkIMContext *context); | |
46769 | void gtk_im_context_reset (GtkIMContext *context); | |
46770 | void gtk_im_context_set_cursor_location (GtkIMContext *context, | |
46771 | GdkRectangle *area); | |
46772 | void gtk_im_context_set_use_preedit (GtkIMContext *context, | |
46773 | gboolean use_preedit); | |
46774 | void gtk_im_context_set_surrounding (GtkIMContext *context, | |
46775 | const gchar *text, | |
46776 | gint len, | |
46777 | gint cursor_index); | |
46778 | gboolean gtk_im_context_get_surrounding (GtkIMContext *context, | |
46779 | gchar **text, | |
46780 | gint *cursor_index); | |
46781 | gboolean gtk_im_context_delete_surrounding (GtkIMContext *context, | |
46782 | gint offset, | |
46783 | gint n_chars); | |
46784 | ||
46785 | ||
46786 | # 34 "/usr/include/gtk-2.0/gtk/gtkentry.h" 2 | |
46787 | ||
46788 | # 1 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h" 1 | |
46789 | # 21 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h" | |
46790 | #define __GTK_ENTRY_COMPLETION_H__ | |
46791 | ||
46792 | ||
46793 | ||
46794 | ||
46795 | # 1 "/usr/include/gtk-2.0/gtk/gtkliststore.h" 1 | |
46796 | # 21 "/usr/include/gtk-2.0/gtk/gtkliststore.h" | |
46797 | #define __GTK_LIST_STORE_H__ | |
46798 | ||
46799 | ||
46800 | ||
46801 | ||
46802 | ||
46803 | ||
46804 | ||
46805 | ||
46806 | #define GTK_TYPE_LIST_STORE (gtk_list_store_get_type ()) | |
46807 | #define GTK_LIST_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LIST_STORE, GtkListStore)) | |
46808 | #define GTK_LIST_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST_STORE, GtkListStoreClass)) | |
46809 | #define GTK_IS_LIST_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LIST_STORE)) | |
46810 | #define GTK_IS_LIST_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST_STORE)) | |
46811 | #define GTK_LIST_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LIST_STORE, GtkListStoreClass)) | |
46812 | ||
46813 | typedef struct _GtkListStore GtkListStore; | |
46814 | typedef struct _GtkListStoreClass GtkListStoreClass; | |
46815 | ||
46816 | struct _GtkListStore | |
46817 | { | |
46818 | GObject parent; | |
46819 | ||
46820 | ||
46821 | gint stamp; | |
46822 | gpointer seq; | |
46823 | gpointer _gtk_reserved1; | |
46824 | GList *sort_list; | |
46825 | gint n_columns; | |
46826 | gint sort_column_id; | |
46827 | GtkSortType order; | |
46828 | GType *column_headers; | |
46829 | gint length; | |
46830 | GtkTreeIterCompareFunc default_sort_func; | |
46831 | gpointer default_sort_data; | |
46832 | GtkDestroyNotify default_sort_destroy; | |
46833 | guint columns_dirty : 1; | |
46834 | }; | |
46835 | ||
46836 | struct _GtkListStoreClass | |
46837 | { | |
46838 | GObjectClass parent_class; | |
46839 | ||
46840 | ||
46841 | void (*_gtk_reserved1) (void); | |
46842 | void (*_gtk_reserved2) (void); | |
46843 | void (*_gtk_reserved3) (void); | |
46844 | void (*_gtk_reserved4) (void); | |
46845 | }; | |
46846 | ||
46847 | ||
46848 | GType gtk_list_store_get_type (void) __attribute__((__const__)); | |
46849 | GtkListStore *gtk_list_store_new (gint n_columns, | |
46850 | ...); | |
46851 | GtkListStore *gtk_list_store_newv (gint n_columns, | |
46852 | GType *types); | |
46853 | void gtk_list_store_set_column_types (GtkListStore *list_store, | |
46854 | gint n_columns, | |
46855 | GType *types); | |
46856 | ||
46857 | ||
46858 | ||
46859 | void gtk_list_store_set_value (GtkListStore *list_store, | |
46860 | GtkTreeIter *iter, | |
46861 | gint column, | |
46862 | GValue *value); | |
46863 | void gtk_list_store_set (GtkListStore *list_store, | |
46864 | GtkTreeIter *iter, | |
46865 | ...); | |
46866 | void gtk_list_store_set_valist (GtkListStore *list_store, | |
46867 | GtkTreeIter *iter, | |
46868 | va_list var_args); | |
46869 | gboolean gtk_list_store_remove (GtkListStore *list_store, | |
46870 | GtkTreeIter *iter); | |
46871 | void gtk_list_store_insert (GtkListStore *list_store, | |
46872 | GtkTreeIter *iter, | |
46873 | gint position); | |
46874 | void gtk_list_store_insert_before (GtkListStore *list_store, | |
46875 | GtkTreeIter *iter, | |
46876 | GtkTreeIter *sibling); | |
46877 | void gtk_list_store_insert_after (GtkListStore *list_store, | |
46878 | GtkTreeIter *iter, | |
46879 | GtkTreeIter *sibling); | |
46880 | void gtk_list_store_insert_with_values (GtkListStore *list_store, | |
46881 | GtkTreeIter *iter, | |
46882 | gint position, | |
46883 | ...); | |
46884 | void gtk_list_store_insert_with_valuesv (GtkListStore *list_store, | |
46885 | GtkTreeIter *iter, | |
46886 | gint position, | |
46887 | gint *columns, | |
46888 | GValue *values, | |
46889 | gint n_values); | |
46890 | void gtk_list_store_prepend (GtkListStore *list_store, | |
46891 | GtkTreeIter *iter); | |
46892 | void gtk_list_store_append (GtkListStore *list_store, | |
46893 | GtkTreeIter *iter); | |
46894 | void gtk_list_store_clear (GtkListStore *list_store); | |
46895 | gboolean gtk_list_store_iter_is_valid (GtkListStore *list_store, | |
46896 | GtkTreeIter *iter); | |
46897 | void gtk_list_store_reorder (GtkListStore *store, | |
46898 | gint *new_order); | |
46899 | void gtk_list_store_swap (GtkListStore *store, | |
46900 | GtkTreeIter *a, | |
46901 | GtkTreeIter *b); | |
46902 | void gtk_list_store_move_after (GtkListStore *store, | |
46903 | GtkTreeIter *iter, | |
46904 | GtkTreeIter *position); | |
46905 | void gtk_list_store_move_before (GtkListStore *store, | |
46906 | GtkTreeIter *iter, | |
46907 | GtkTreeIter *position); | |
46908 | ||
46909 | ||
46910 | ||
46911 | # 27 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h" 2 | |
46912 | ||
46913 | # 1 "/usr/include/gtk-2.0/gtk/gtktreemodelfilter.h" 1 | |
46914 | # 22 "/usr/include/gtk-2.0/gtk/gtktreemodelfilter.h" | |
46915 | #define __GTK_TREE_MODEL_FILTER_H__ | |
46916 | ||
46917 | ||
46918 | ||
46919 | ||
46920 | ||
46921 | #define GTK_TYPE_TREE_MODEL_FILTER (gtk_tree_model_filter_get_type ()) | |
46922 | #define GTK_TREE_MODEL_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilter)) | |
46923 | #define GTK_TREE_MODEL_FILTER_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilterClass)) | |
46924 | #define GTK_IS_TREE_MODEL_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL_FILTER)) | |
46925 | #define GTK_IS_TREE_MODEL_FILTER_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_TREE_MODEL_FILTER)) | |
46926 | #define GTK_TREE_MODEL_FILTER_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilterClass)) | |
46927 | ||
46928 | typedef gboolean (* GtkTreeModelFilterVisibleFunc) (GtkTreeModel *model, | |
46929 | GtkTreeIter *iter, | |
46930 | gpointer data); | |
46931 | typedef void (* GtkTreeModelFilterModifyFunc) (GtkTreeModel *model, | |
46932 | GtkTreeIter *iter, | |
46933 | GValue *value, | |
46934 | gint column, | |
46935 | gpointer data); | |
46936 | ||
46937 | typedef struct _GtkTreeModelFilter GtkTreeModelFilter; | |
46938 | typedef struct _GtkTreeModelFilterClass GtkTreeModelFilterClass; | |
46939 | typedef struct _GtkTreeModelFilterPrivate GtkTreeModelFilterPrivate; | |
46940 | ||
46941 | struct _GtkTreeModelFilter | |
46942 | { | |
46943 | GObject parent; | |
46944 | ||
46945 | ||
46946 | GtkTreeModelFilterPrivate *priv; | |
46947 | }; | |
46948 | ||
46949 | struct _GtkTreeModelFilterClass | |
46950 | { | |
46951 | GObjectClass parent_class; | |
46952 | ||
46953 | ||
46954 | void (*_gtk_reserved0) (void); | |
46955 | void (*_gtk_reserved1) (void); | |
46956 | void (*_gtk_reserved2) (void); | |
46957 | void (*_gtk_reserved3) (void); | |
46958 | }; | |
46959 | ||
46960 | ||
46961 | GType gtk_tree_model_filter_get_type (void) __attribute__((__const__)); | |
46962 | GtkTreeModel *gtk_tree_model_filter_new (GtkTreeModel *child_model, | |
46963 | GtkTreePath *root); | |
46964 | void gtk_tree_model_filter_set_visible_func (GtkTreeModelFilter *filter, | |
46965 | GtkTreeModelFilterVisibleFunc func, | |
46966 | gpointer data, | |
46967 | GtkDestroyNotify destroy); | |
46968 | void gtk_tree_model_filter_set_modify_func (GtkTreeModelFilter *filter, | |
46969 | gint n_columns, | |
46970 | GType *types, | |
46971 | GtkTreeModelFilterModifyFunc func, | |
46972 | gpointer data, | |
46973 | GtkDestroyNotify destroy); | |
46974 | void gtk_tree_model_filter_set_visible_column (GtkTreeModelFilter *filter, | |
46975 | gint column); | |
46976 | ||
46977 | GtkTreeModel *gtk_tree_model_filter_get_model (GtkTreeModelFilter *filter); | |
46978 | ||
46979 | ||
46980 | void gtk_tree_model_filter_convert_child_iter_to_iter (GtkTreeModelFilter *filter, | |
46981 | GtkTreeIter *filter_iter, | |
46982 | GtkTreeIter *child_iter); | |
46983 | void gtk_tree_model_filter_convert_iter_to_child_iter (GtkTreeModelFilter *filter, | |
46984 | GtkTreeIter *child_iter, | |
46985 | GtkTreeIter *filter_iter); | |
46986 | GtkTreePath *gtk_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filter, | |
46987 | GtkTreePath *child_path); | |
46988 | GtkTreePath *gtk_tree_model_filter_convert_path_to_child_path (GtkTreeModelFilter *filter, | |
46989 | GtkTreePath *filter_path); | |
46990 | ||
46991 | ||
46992 | void gtk_tree_model_filter_refilter (GtkTreeModelFilter *filter); | |
46993 | void gtk_tree_model_filter_clear_cache (GtkTreeModelFilter *filter); | |
46994 | ||
46995 | ||
46996 | # 29 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h" 2 | |
46997 | ||
46998 | ||
46999 | ||
47000 | #define GTK_TYPE_ENTRY_COMPLETION (gtk_entry_completion_get_type ()) | |
47001 | #define GTK_ENTRY_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletion)) | |
47002 | #define GTK_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionClass)) | |
47003 | #define GTK_IS_ENTRY_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ENTRY_COMPLETION)) | |
47004 | #define GTK_IS_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY_COMPLETION)) | |
47005 | #define GTK_ENTRY_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionClass)) | |
47006 | ||
47007 | typedef struct _GtkEntryCompletion GtkEntryCompletion; | |
47008 | typedef struct _GtkEntryCompletionClass GtkEntryCompletionClass; | |
47009 | typedef struct _GtkEntryCompletionPrivate GtkEntryCompletionPrivate; | |
47010 | ||
47011 | typedef gboolean (* GtkEntryCompletionMatchFunc) (GtkEntryCompletion *completion, | |
47012 | const gchar *key, | |
47013 | GtkTreeIter *iter, | |
47014 | gpointer user_data); | |
47015 | ||
47016 | ||
47017 | struct _GtkEntryCompletion | |
47018 | { | |
47019 | GObject parent_instance; | |
47020 | ||
47021 | ||
47022 | GtkEntryCompletionPrivate *priv; | |
47023 | }; | |
47024 | ||
47025 | struct _GtkEntryCompletionClass | |
47026 | { | |
47027 | GObjectClass parent_class; | |
47028 | ||
47029 | gboolean (* match_selected) (GtkEntryCompletion *completion, | |
47030 | GtkTreeModel *model, | |
47031 | GtkTreeIter *iter); | |
47032 | void (* action_activated) (GtkEntryCompletion *completion, | |
47033 | gint index_); | |
47034 | gboolean (* insert_prefix) (GtkEntryCompletion *completion, | |
47035 | const gchar *prefix); | |
47036 | ||
47037 | ||
47038 | void (*_gtk_reserved0) (void); | |
47039 | void (*_gtk_reserved1) (void); | |
47040 | void (*_gtk_reserved2) (void); | |
47041 | }; | |
47042 | ||
47043 | ||
47044 | GType gtk_entry_completion_get_type (void) __attribute__((__const__)); | |
47045 | GtkEntryCompletion *gtk_entry_completion_new (void); | |
47046 | ||
47047 | GtkWidget *gtk_entry_completion_get_entry (GtkEntryCompletion *completion); | |
47048 | ||
47049 | void gtk_entry_completion_set_model (GtkEntryCompletion *completion, | |
47050 | GtkTreeModel *model); | |
47051 | GtkTreeModel *gtk_entry_completion_get_model (GtkEntryCompletion *completion); | |
47052 | ||
47053 | void gtk_entry_completion_set_match_func (GtkEntryCompletion *completion, | |
47054 | GtkEntryCompletionMatchFunc func, | |
47055 | gpointer func_data, | |
47056 | GDestroyNotify func_notify); | |
47057 | void gtk_entry_completion_set_minimum_key_length (GtkEntryCompletion *completion, | |
47058 | gint length); | |
47059 | gint gtk_entry_completion_get_minimum_key_length (GtkEntryCompletion *completion); | |
47060 | void gtk_entry_completion_complete (GtkEntryCompletion *completion); | |
47061 | void gtk_entry_completion_insert_prefix (GtkEntryCompletion *completion); | |
47062 | ||
47063 | void gtk_entry_completion_insert_action_text (GtkEntryCompletion *completion, | |
47064 | gint index_, | |
47065 | const gchar *text); | |
47066 | void gtk_entry_completion_insert_action_markup (GtkEntryCompletion *completion, | |
47067 | gint index_, | |
47068 | const gchar *markup); | |
47069 | void gtk_entry_completion_delete_action (GtkEntryCompletion *completion, | |
47070 | gint index_); | |
47071 | ||
47072 | void gtk_entry_completion_set_inline_completion (GtkEntryCompletion *completion, | |
47073 | gboolean inline_completion); | |
47074 | gboolean gtk_entry_completion_get_inline_completion (GtkEntryCompletion *completion); | |
47075 | void gtk_entry_completion_set_popup_completion (GtkEntryCompletion *completion, | |
47076 | gboolean popup_completion); | |
47077 | gboolean gtk_entry_completion_get_popup_completion (GtkEntryCompletion *completion); | |
47078 | void gtk_entry_completion_set_popup_set_width (GtkEntryCompletion *completion, | |
47079 | gboolean popup_set_width); | |
47080 | gboolean gtk_entry_completion_get_popup_set_width (GtkEntryCompletion *completion); | |
47081 | void gtk_entry_completion_set_popup_single_match (GtkEntryCompletion *completion, | |
47082 | gboolean popup_single_match); | |
47083 | gboolean gtk_entry_completion_get_popup_single_match (GtkEntryCompletion *completion); | |
47084 | ||
47085 | ||
47086 | ||
47087 | void gtk_entry_completion_set_text_column (GtkEntryCompletion *completion, | |
47088 | gint column); | |
47089 | gint gtk_entry_completion_get_text_column (GtkEntryCompletion *completion); | |
47090 | ||
47091 | ||
47092 | # 36 "/usr/include/gtk-2.0/gtk/gtkentry.h" 2 | |
47093 | ||
47094 | ||
47095 | ||
47096 | ||
47097 | #define GTK_TYPE_ENTRY (gtk_entry_get_type ()) | |
47098 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | |
47099 | #define GTK_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ENTRY, GtkEntryClass)) | |
47100 | #define GTK_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ENTRY)) | |
47101 | #define GTK_IS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY)) | |
47102 | #define GTK_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ENTRY, GtkEntryClass)) | |
47103 | ||
47104 | ||
47105 | typedef struct _GtkEntry GtkEntry; | |
47106 | typedef struct _GtkEntryClass GtkEntryClass; | |
47107 | ||
47108 | struct _GtkEntry | |
47109 | { | |
47110 | GtkWidget widget; | |
47111 | ||
47112 | gchar *text; | |
47113 | ||
47114 | guint editable : 1; | |
47115 | guint visible : 1; | |
47116 | guint overwrite_mode : 1; | |
47117 | guint in_drag : 1; | |
47118 | ||
47119 | guint16 text_length; | |
47120 | guint16 text_max_length; | |
47121 | ||
47122 | ||
47123 | GdkWindow *text_area; | |
47124 | GtkIMContext *im_context; | |
47125 | GtkWidget *popup_menu; | |
47126 | ||
47127 | gint current_pos; | |
47128 | gint selection_bound; | |
47129 | ||
47130 | PangoLayout *cached_layout; | |
47131 | guint cache_includes_preedit : 1; | |
47132 | ||
47133 | guint need_im_reset : 1; | |
47134 | ||
47135 | guint has_frame : 1; | |
47136 | ||
47137 | guint activates_default : 1; | |
47138 | ||
47139 | guint cursor_visible : 1; | |
47140 | ||
47141 | guint in_click : 1; | |
47142 | ||
47143 | guint is_cell_renderer : 1; | |
47144 | guint editing_canceled : 1; | |
47145 | ||
47146 | guint mouse_cursor_obscured : 1; | |
47147 | ||
47148 | guint select_words : 1; | |
47149 | guint select_lines : 1; | |
47150 | guint resolved_dir : 4; | |
47151 | guint button; | |
47152 | guint blink_timeout; | |
47153 | guint recompute_idle; | |
47154 | gint scroll_offset; | |
47155 | gint ascent; | |
47156 | gint descent; | |
47157 | ||
47158 | guint16 text_size; | |
47159 | guint16 n_bytes; | |
47160 | ||
47161 | guint16 preedit_length; | |
47162 | guint16 preedit_cursor; | |
47163 | ||
47164 | gint dnd_position; | |
47165 | ||
47166 | gint drag_start_x; | |
47167 | gint drag_start_y; | |
47168 | ||
47169 | gunichar invisible_char; | |
47170 | ||
47171 | gint width_chars; | |
47172 | }; | |
47173 | ||
47174 | struct _GtkEntryClass | |
47175 | { | |
47176 | GtkWidgetClass parent_class; | |
47177 | ||
47178 | ||
47179 | void (* populate_popup) (GtkEntry *entry, | |
47180 | GtkMenu *menu); | |
47181 | ||
47182 | ||
47183 | ||
47184 | void (* activate) (GtkEntry *entry); | |
47185 | void (* move_cursor) (GtkEntry *entry, | |
47186 | GtkMovementStep step, | |
47187 | gint count, | |
47188 | gboolean extend_selection); | |
47189 | void (* insert_at_cursor) (GtkEntry *entry, | |
47190 | const gchar *str); | |
47191 | void (* delete_from_cursor) (GtkEntry *entry, | |
47192 | GtkDeleteType type, | |
47193 | gint count); | |
47194 | void (* backspace) (GtkEntry *entry); | |
47195 | void (* cut_clipboard) (GtkEntry *entry); | |
47196 | void (* copy_clipboard) (GtkEntry *entry); | |
47197 | void (* paste_clipboard) (GtkEntry *entry); | |
47198 | void (* toggle_overwrite) (GtkEntry *entry); | |
47199 | ||
47200 | ||
47201 | void (*_gtk_reserved1) (void); | |
47202 | void (*_gtk_reserved2) (void); | |
47203 | void (*_gtk_reserved3) (void); | |
47204 | }; | |
47205 | ||
47206 | GType gtk_entry_get_type (void) __attribute__((__const__)); | |
47207 | GtkWidget* gtk_entry_new (void); | |
47208 | void gtk_entry_set_visibility (GtkEntry *entry, | |
47209 | gboolean visible); | |
47210 | gboolean gtk_entry_get_visibility (GtkEntry *entry); | |
47211 | void gtk_entry_set_invisible_char (GtkEntry *entry, | |
47212 | gunichar ch); | |
47213 | gunichar gtk_entry_get_invisible_char (GtkEntry *entry); | |
47214 | void gtk_entry_set_has_frame (GtkEntry *entry, | |
47215 | gboolean setting); | |
47216 | gboolean gtk_entry_get_has_frame (GtkEntry *entry); | |
47217 | ||
47218 | void gtk_entry_set_max_length (GtkEntry *entry, | |
47219 | gint max); | |
47220 | gint gtk_entry_get_max_length (GtkEntry *entry); | |
47221 | void gtk_entry_set_activates_default (GtkEntry *entry, | |
47222 | gboolean setting); | |
47223 | gboolean gtk_entry_get_activates_default (GtkEntry *entry); | |
47224 | ||
47225 | void gtk_entry_set_width_chars (GtkEntry *entry, | |
47226 | gint n_chars); | |
47227 | gint gtk_entry_get_width_chars (GtkEntry *entry); | |
47228 | ||
47229 | ||
47230 | ||
47231 | void gtk_entry_set_text (GtkEntry *entry, | |
47232 | const gchar *text); | |
47233 | ||
47234 | const gchar* gtk_entry_get_text (GtkEntry *entry); | |
47235 | ||
47236 | PangoLayout* gtk_entry_get_layout (GtkEntry *entry); | |
47237 | void gtk_entry_get_layout_offsets (GtkEntry *entry, | |
47238 | gint *x, | |
47239 | gint *y); | |
47240 | void gtk_entry_set_alignment (GtkEntry *entry, | |
47241 | gfloat xalign); | |
47242 | gfloat gtk_entry_get_alignment (GtkEntry *entry); | |
47243 | ||
47244 | void gtk_entry_set_completion (GtkEntry *entry, | |
47245 | GtkEntryCompletion *completion); | |
47246 | GtkEntryCompletion *gtk_entry_get_completion (GtkEntry *entry); | |
47247 | ||
47248 | gint gtk_entry_layout_index_to_text_index (GtkEntry *entry, | |
47249 | gint layout_index); | |
47250 | gint gtk_entry_text_index_to_layout_index (GtkEntry *entry, | |
47251 | gint text_index); | |
47252 | ||
47253 | ||
47254 | ||
47255 | ||
47256 | ||
47257 | ||
47258 | GtkWidget* gtk_entry_new_with_max_length (gint max); | |
47259 | void gtk_entry_append_text (GtkEntry *entry, | |
47260 | const gchar *text); | |
47261 | void gtk_entry_prepend_text (GtkEntry *entry, | |
47262 | const gchar *text); | |
47263 | void gtk_entry_set_position (GtkEntry *entry, | |
47264 | gint position); | |
47265 | void gtk_entry_select_region (GtkEntry *entry, | |
47266 | gint start, | |
47267 | gint end); | |
47268 | void gtk_entry_set_editable (GtkEntry *entry, | |
47269 | gboolean editable); | |
47270 | ||
47271 | ||
47272 | ||
47273 | void _gtk_entry_get_borders (GtkEntry *entry, | |
47274 | gint *xborder, | |
47275 | gint *yborder); | |
47276 | ||
47277 | ||
47278 | ||
47279 | # 75 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47280 | ||
47281 | ||
47282 | # 1 "/usr/include/gtk-2.0/gtk/gtkeventbox.h" 1 | |
47283 | # 28 "/usr/include/gtk-2.0/gtk/gtkeventbox.h" | |
47284 | #define __GTK_EVENT_BOX_H__ | |
47285 | ||
47286 | ||
47287 | ||
47288 | ||
47289 | ||
47290 | ||
47291 | ||
47292 | ||
47293 | #define GTK_TYPE_EVENT_BOX (gtk_event_box_get_type ()) | |
47294 | #define GTK_EVENT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EVENT_BOX, GtkEventBox)) | |
47295 | #define GTK_EVENT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_EVENT_BOX, GtkEventBoxClass)) | |
47296 | #define GTK_IS_EVENT_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EVENT_BOX)) | |
47297 | #define GTK_IS_EVENT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EVENT_BOX)) | |
47298 | #define GTK_EVENT_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_EVENT_BOX, GtkEventBoxClass)) | |
47299 | ||
47300 | typedef struct _GtkEventBox GtkEventBox; | |
47301 | typedef struct _GtkEventBoxClass GtkEventBoxClass; | |
47302 | ||
47303 | struct _GtkEventBox | |
47304 | { | |
47305 | GtkBin bin; | |
47306 | }; | |
47307 | ||
47308 | struct _GtkEventBoxClass | |
47309 | { | |
47310 | GtkBinClass parent_class; | |
47311 | }; | |
47312 | ||
47313 | GType gtk_event_box_get_type (void) __attribute__((__const__)); | |
47314 | GtkWidget* gtk_event_box_new (void); | |
47315 | gboolean gtk_event_box_get_visible_window (GtkEventBox *event_box); | |
47316 | void gtk_event_box_set_visible_window (GtkEventBox *event_box, | |
47317 | gboolean visible_window); | |
47318 | gboolean gtk_event_box_get_above_child (GtkEventBox *event_box); | |
47319 | void gtk_event_box_set_above_child (GtkEventBox *event_box, | |
47320 | gboolean above_child); | |
47321 | ||
47322 | ||
47323 | # 78 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47324 | # 1 "/usr/include/gtk-2.0/gtk/gtkexpander.h" 1 | |
47325 | # 25 "/usr/include/gtk-2.0/gtk/gtkexpander.h" | |
47326 | #define __GTK_EXPANDER_H__ | |
47327 | ||
47328 | ||
47329 | ||
47330 | ||
47331 | ||
47332 | #define GTK_TYPE_EXPANDER (gtk_expander_get_type ()) | |
47333 | #define GTK_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EXPANDER, GtkExpander)) | |
47334 | #define GTK_EXPANDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_EXPANDER, GtkExpanderClass)) | |
47335 | #define GTK_IS_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EXPANDER)) | |
47336 | #define GTK_IS_EXPANDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EXPANDER)) | |
47337 | #define GTK_EXPANDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_EXPANDER, GtkExpanderClass)) | |
47338 | ||
47339 | typedef struct _GtkExpander GtkExpander; | |
47340 | typedef struct _GtkExpanderClass GtkExpanderClass; | |
47341 | typedef struct _GtkExpanderPrivate GtkExpanderPrivate; | |
47342 | ||
47343 | struct _GtkExpander | |
47344 | { | |
47345 | GtkBin bin; | |
47346 | ||
47347 | GtkExpanderPrivate *priv; | |
47348 | }; | |
47349 | ||
47350 | struct _GtkExpanderClass | |
47351 | { | |
47352 | GtkBinClass parent_class; | |
47353 | ||
47354 | ||
47355 | ||
47356 | ||
47357 | void (* activate) (GtkExpander *expander); | |
47358 | }; | |
47359 | ||
47360 | GType gtk_expander_get_type (void) __attribute__((__const__)); | |
47361 | ||
47362 | GtkWidget *gtk_expander_new (const gchar *label); | |
47363 | GtkWidget *gtk_expander_new_with_mnemonic (const gchar *label); | |
47364 | ||
47365 | void gtk_expander_set_expanded (GtkExpander *expander, | |
47366 | gboolean expanded); | |
47367 | gboolean gtk_expander_get_expanded (GtkExpander *expander); | |
47368 | ||
47369 | ||
47370 | void gtk_expander_set_spacing (GtkExpander *expander, | |
47371 | gint spacing); | |
47372 | gint gtk_expander_get_spacing (GtkExpander *expander); | |
47373 | ||
47374 | void gtk_expander_set_label (GtkExpander *expander, | |
47375 | const gchar *label); | |
47376 | const gchar *gtk_expander_get_label (GtkExpander *expander); | |
47377 | ||
47378 | void gtk_expander_set_use_underline (GtkExpander *expander, | |
47379 | gboolean use_underline); | |
47380 | gboolean gtk_expander_get_use_underline (GtkExpander *expander); | |
47381 | ||
47382 | void gtk_expander_set_use_markup (GtkExpander *expander, | |
47383 | gboolean use_markup); | |
47384 | gboolean gtk_expander_get_use_markup (GtkExpander *expander); | |
47385 | ||
47386 | void gtk_expander_set_label_widget (GtkExpander *expander, | |
47387 | GtkWidget *label_widget); | |
47388 | GtkWidget *gtk_expander_get_label_widget (GtkExpander *expander); | |
47389 | ||
47390 | ||
47391 | # 79 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47392 | # 1 "/usr/include/gtk-2.0/gtk/gtkfilesel.h" 1 | |
47393 | # 28 "/usr/include/gtk-2.0/gtk/gtkfilesel.h" | |
47394 | #define __GTK_FILESEL_H__ | |
47395 | ||
47396 | ||
47397 | ||
47398 | ||
47399 | ||
47400 | ||
47401 | ||
47402 | ||
47403 | ||
47404 | #define GTK_TYPE_FILE_SELECTION (gtk_file_selection_get_type ()) | |
47405 | #define GTK_FILE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_SELECTION, GtkFileSelection)) | |
47406 | #define GTK_FILE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass)) | |
47407 | #define GTK_IS_FILE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_SELECTION)) | |
47408 | #define GTK_IS_FILE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_SELECTION)) | |
47409 | #define GTK_FILE_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass)) | |
47410 | ||
47411 | ||
47412 | typedef struct _GtkFileSelection GtkFileSelection; | |
47413 | typedef struct _GtkFileSelectionClass GtkFileSelectionClass; | |
47414 | ||
47415 | struct _GtkFileSelection | |
47416 | { | |
47417 | ||
47418 | GtkDialog parent_instance; | |
47419 | ||
47420 | ||
47421 | GtkWidget *dir_list; | |
47422 | GtkWidget *file_list; | |
47423 | GtkWidget *selection_entry; | |
47424 | GtkWidget *selection_text; | |
47425 | GtkWidget *main_vbox; | |
47426 | GtkWidget *ok_button; | |
47427 | GtkWidget *cancel_button; | |
47428 | GtkWidget *help_button; | |
47429 | GtkWidget *history_pulldown; | |
47430 | GtkWidget *history_menu; | |
47431 | GList *history_list; | |
47432 | GtkWidget *fileop_dialog; | |
47433 | GtkWidget *fileop_entry; | |
47434 | gchar *fileop_file; | |
47435 | gpointer cmpl_state; | |
47436 | ||
47437 | GtkWidget *fileop_c_dir; | |
47438 | GtkWidget *fileop_del_file; | |
47439 | GtkWidget *fileop_ren_file; | |
47440 | ||
47441 | GtkWidget *button_area; | |
47442 | GtkWidget *action_area; | |
47443 | ||
47444 | ||
47445 | GPtrArray *selected_names; | |
47446 | gchar *last_selected; | |
47447 | }; | |
47448 | ||
47449 | struct _GtkFileSelectionClass | |
47450 | { | |
47451 | GtkDialogClass parent_class; | |
47452 | ||
47453 | ||
47454 | void (*_gtk_reserved1) (void); | |
47455 | void (*_gtk_reserved2) (void); | |
47456 | void (*_gtk_reserved3) (void); | |
47457 | void (*_gtk_reserved4) (void); | |
47458 | }; | |
47459 | # 102 "/usr/include/gtk-2.0/gtk/gtkfilesel.h" | |
47460 | GType gtk_file_selection_get_type (void) __attribute__((__const__)); | |
47461 | GtkWidget* gtk_file_selection_new (const gchar *title); | |
47462 | void gtk_file_selection_set_filename (GtkFileSelection *filesel, | |
47463 | const gchar *filename); | |
47464 | const gchar* gtk_file_selection_get_filename (GtkFileSelection *filesel); | |
47465 | ||
47466 | void gtk_file_selection_complete (GtkFileSelection *filesel, | |
47467 | const gchar *pattern); | |
47468 | void gtk_file_selection_show_fileop_buttons (GtkFileSelection *filesel); | |
47469 | void gtk_file_selection_hide_fileop_buttons (GtkFileSelection *filesel); | |
47470 | ||
47471 | gchar** gtk_file_selection_get_selections (GtkFileSelection *filesel); | |
47472 | ||
47473 | void gtk_file_selection_set_select_multiple (GtkFileSelection *filesel, | |
47474 | gboolean select_multiple); | |
47475 | gboolean gtk_file_selection_get_select_multiple (GtkFileSelection *filesel); | |
47476 | ||
47477 | ||
47478 | ||
47479 | # 80 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47480 | # 1 "/usr/include/gtk-2.0/gtk/gtkfixed.h" 1 | |
47481 | # 28 "/usr/include/gtk-2.0/gtk/gtkfixed.h" | |
47482 | #define __GTK_FIXED_H__ | |
47483 | ||
47484 | ||
47485 | ||
47486 | ||
47487 | ||
47488 | ||
47489 | ||
47490 | ||
47491 | #define GTK_TYPE_FIXED (gtk_fixed_get_type ()) | |
47492 | #define GTK_FIXED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FIXED, GtkFixed)) | |
47493 | #define GTK_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FIXED, GtkFixedClass)) | |
47494 | #define GTK_IS_FIXED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FIXED)) | |
47495 | #define GTK_IS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FIXED)) | |
47496 | #define GTK_FIXED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FIXED, GtkFixedClass)) | |
47497 | ||
47498 | ||
47499 | typedef struct _GtkFixed GtkFixed; | |
47500 | typedef struct _GtkFixedClass GtkFixedClass; | |
47501 | typedef struct _GtkFixedChild GtkFixedChild; | |
47502 | ||
47503 | struct _GtkFixed | |
47504 | { | |
47505 | GtkContainer container; | |
47506 | ||
47507 | GList *children; | |
47508 | }; | |
47509 | ||
47510 | struct _GtkFixedClass | |
47511 | { | |
47512 | GtkContainerClass parent_class; | |
47513 | }; | |
47514 | ||
47515 | struct _GtkFixedChild | |
47516 | { | |
47517 | GtkWidget *widget; | |
47518 | gint x; | |
47519 | gint y; | |
47520 | }; | |
47521 | ||
47522 | ||
47523 | GType gtk_fixed_get_type (void) __attribute__((__const__)); | |
47524 | GtkWidget* gtk_fixed_new (void); | |
47525 | void gtk_fixed_put (GtkFixed *fixed, | |
47526 | GtkWidget *widget, | |
47527 | gint x, | |
47528 | gint y); | |
47529 | void gtk_fixed_move (GtkFixed *fixed, | |
47530 | GtkWidget *widget, | |
47531 | gint x, | |
47532 | gint y); | |
47533 | void gtk_fixed_set_has_window (GtkFixed *fixed, | |
47534 | gboolean has_window); | |
47535 | gboolean gtk_fixed_get_has_window (GtkFixed *fixed); | |
47536 | ||
47537 | ||
47538 | # 81 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47539 | # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h" 1 | |
47540 | # 22 "/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h" | |
47541 | #define __GTK_FILE_CHOOSER_BUTTON_H__ | |
47542 | ||
47543 | ||
47544 | # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h" 1 | |
47545 | # 22 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h" | |
47546 | #define __GTK_FILE_CHOOSER_H__ | |
47547 | ||
47548 | # 1 "/usr/include/gtk-2.0/gtk/gtkfilefilter.h" 1 | |
47549 | # 22 "/usr/include/gtk-2.0/gtk/gtkfilefilter.h" | |
47550 | #define __GTK_FILE_FILTER_H__ | |
47551 | ||
47552 | ||
47553 | ||
47554 | ||
47555 | ||
47556 | #define GTK_TYPE_FILE_FILTER (gtk_file_filter_get_type ()) | |
47557 | #define GTK_FILE_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_FILTER, GtkFileFilter)) | |
47558 | #define GTK_IS_FILE_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_FILTER)) | |
47559 | ||
47560 | typedef struct _GtkFileFilter GtkFileFilter; | |
47561 | typedef struct _GtkFileFilterInfo GtkFileFilterInfo; | |
47562 | ||
47563 | typedef enum { | |
47564 | GTK_FILE_FILTER_FILENAME = 1 << 0, | |
47565 | GTK_FILE_FILTER_URI = 1 << 1, | |
47566 | GTK_FILE_FILTER_DISPLAY_NAME = 1 << 2, | |
47567 | GTK_FILE_FILTER_MIME_TYPE = 1 << 3 | |
47568 | } GtkFileFilterFlags; | |
47569 | ||
47570 | typedef gboolean (*GtkFileFilterFunc) (const GtkFileFilterInfo *filter_info, | |
47571 | gpointer data); | |
47572 | ||
47573 | struct _GtkFileFilterInfo | |
47574 | { | |
47575 | GtkFileFilterFlags contains; | |
47576 | ||
47577 | const gchar *filename; | |
47578 | const gchar *uri; | |
47579 | const gchar *display_name; | |
47580 | const gchar *mime_type; | |
47581 | }; | |
47582 | ||
47583 | GType gtk_file_filter_get_type (void) __attribute__((__const__)); | |
47584 | ||
47585 | GtkFileFilter * gtk_file_filter_new (void); | |
47586 | void gtk_file_filter_set_name (GtkFileFilter *filter, | |
47587 | const gchar *name); | |
47588 | const gchar *gtk_file_filter_get_name (GtkFileFilter *filter); | |
47589 | ||
47590 | void gtk_file_filter_add_mime_type (GtkFileFilter *filter, | |
47591 | const gchar *mime_type); | |
47592 | void gtk_file_filter_add_pattern (GtkFileFilter *filter, | |
47593 | const gchar *pattern); | |
47594 | void gtk_file_filter_add_pixbuf_formats (GtkFileFilter *filter); | |
47595 | void gtk_file_filter_add_custom (GtkFileFilter *filter, | |
47596 | GtkFileFilterFlags needed, | |
47597 | GtkFileFilterFunc func, | |
47598 | gpointer data, | |
47599 | GDestroyNotify notify); | |
47600 | ||
47601 | GtkFileFilterFlags gtk_file_filter_get_needed (GtkFileFilter *filter); | |
47602 | gboolean gtk_file_filter_filter (GtkFileFilter *filter, | |
47603 | const GtkFileFilterInfo *filter_info); | |
47604 | ||
47605 | ||
47606 | # 25 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h" 2 | |
47607 | ||
47608 | ||
47609 | ||
47610 | ||
47611 | #define GTK_TYPE_FILE_CHOOSER (gtk_file_chooser_get_type ()) | |
47612 | #define GTK_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER, GtkFileChooser)) | |
47613 | #define GTK_IS_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER)) | |
47614 | ||
47615 | typedef struct _GtkFileChooser GtkFileChooser; | |
47616 | ||
47617 | typedef enum | |
47618 | { | |
47619 | GTK_FILE_CHOOSER_ACTION_OPEN, | |
47620 | GTK_FILE_CHOOSER_ACTION_SAVE, | |
47621 | GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, | |
47622 | GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER | |
47623 | } GtkFileChooserAction; | |
47624 | ||
47625 | typedef enum | |
47626 | { | |
47627 | GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM, | |
47628 | GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME, | |
47629 | GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN | |
47630 | } GtkFileChooserConfirmation; | |
47631 | ||
47632 | GType gtk_file_chooser_get_type (void) __attribute__((__const__)); | |
47633 | ||
47634 | ||
47635 | ||
47636 | #define GTK_FILE_CHOOSER_ERROR (gtk_file_chooser_error_quark ()) | |
47637 | ||
47638 | typedef enum { | |
47639 | GTK_FILE_CHOOSER_ERROR_NONEXISTENT, | |
47640 | GTK_FILE_CHOOSER_ERROR_BAD_FILENAME | |
47641 | } GtkFileChooserError; | |
47642 | ||
47643 | GQuark gtk_file_chooser_error_quark (void); | |
47644 | ||
47645 | ||
47646 | ||
47647 | void gtk_file_chooser_set_action (GtkFileChooser *chooser, | |
47648 | GtkFileChooserAction action); | |
47649 | GtkFileChooserAction gtk_file_chooser_get_action (GtkFileChooser *chooser); | |
47650 | void gtk_file_chooser_set_local_only (GtkFileChooser *chooser, | |
47651 | gboolean local_only); | |
47652 | gboolean gtk_file_chooser_get_local_only (GtkFileChooser *chooser); | |
47653 | void gtk_file_chooser_set_select_multiple (GtkFileChooser *chooser, | |
47654 | gboolean select_multiple); | |
47655 | gboolean gtk_file_chooser_get_select_multiple (GtkFileChooser *chooser); | |
47656 | void gtk_file_chooser_set_show_hidden (GtkFileChooser *chooser, | |
47657 | gboolean show_hidden); | |
47658 | gboolean gtk_file_chooser_get_show_hidden (GtkFileChooser *chooser); | |
47659 | ||
47660 | void gtk_file_chooser_set_do_overwrite_confirmation (GtkFileChooser *chooser, | |
47661 | gboolean do_overwrite_confirmation); | |
47662 | gboolean gtk_file_chooser_get_do_overwrite_confirmation (GtkFileChooser *chooser); | |
47663 | ||
47664 | ||
47665 | ||
47666 | void gtk_file_chooser_set_current_name (GtkFileChooser *chooser, | |
47667 | const gchar *name); | |
47668 | # 104 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h" | |
47669 | gchar * gtk_file_chooser_get_filename (GtkFileChooser *chooser); | |
47670 | gboolean gtk_file_chooser_set_filename (GtkFileChooser *chooser, | |
47671 | const char *filename); | |
47672 | gboolean gtk_file_chooser_select_filename (GtkFileChooser *chooser, | |
47673 | const char *filename); | |
47674 | void gtk_file_chooser_unselect_filename (GtkFileChooser *chooser, | |
47675 | const char *filename); | |
47676 | void gtk_file_chooser_select_all (GtkFileChooser *chooser); | |
47677 | void gtk_file_chooser_unselect_all (GtkFileChooser *chooser); | |
47678 | GSList * gtk_file_chooser_get_filenames (GtkFileChooser *chooser); | |
47679 | gboolean gtk_file_chooser_set_current_folder (GtkFileChooser *chooser, | |
47680 | const gchar *filename); | |
47681 | gchar * gtk_file_chooser_get_current_folder (GtkFileChooser *chooser); | |
47682 | ||
47683 | ||
47684 | ||
47685 | ||
47686 | gchar * gtk_file_chooser_get_uri (GtkFileChooser *chooser); | |
47687 | gboolean gtk_file_chooser_set_uri (GtkFileChooser *chooser, | |
47688 | const char *uri); | |
47689 | gboolean gtk_file_chooser_select_uri (GtkFileChooser *chooser, | |
47690 | const char *uri); | |
47691 | void gtk_file_chooser_unselect_uri (GtkFileChooser *chooser, | |
47692 | const char *uri); | |
47693 | GSList * gtk_file_chooser_get_uris (GtkFileChooser *chooser); | |
47694 | gboolean gtk_file_chooser_set_current_folder_uri (GtkFileChooser *chooser, | |
47695 | const gchar *uri); | |
47696 | gchar * gtk_file_chooser_get_current_folder_uri (GtkFileChooser *chooser); | |
47697 | ||
47698 | ||
47699 | ||
47700 | void gtk_file_chooser_set_preview_widget (GtkFileChooser *chooser, | |
47701 | GtkWidget *preview_widget); | |
47702 | GtkWidget *gtk_file_chooser_get_preview_widget (GtkFileChooser *chooser); | |
47703 | void gtk_file_chooser_set_preview_widget_active (GtkFileChooser *chooser, | |
47704 | gboolean active); | |
47705 | gboolean gtk_file_chooser_get_preview_widget_active (GtkFileChooser *chooser); | |
47706 | void gtk_file_chooser_set_use_preview_label (GtkFileChooser *chooser, | |
47707 | gboolean use_label); | |
47708 | gboolean gtk_file_chooser_get_use_preview_label (GtkFileChooser *chooser); | |
47709 | ||
47710 | char *gtk_file_chooser_get_preview_filename (GtkFileChooser *chooser); | |
47711 | char *gtk_file_chooser_get_preview_uri (GtkFileChooser *chooser); | |
47712 | ||
47713 | ||
47714 | ||
47715 | void gtk_file_chooser_set_extra_widget (GtkFileChooser *chooser, | |
47716 | GtkWidget *extra_widget); | |
47717 | GtkWidget *gtk_file_chooser_get_extra_widget (GtkFileChooser *chooser); | |
47718 | ||
47719 | ||
47720 | ||
47721 | void gtk_file_chooser_add_filter (GtkFileChooser *chooser, | |
47722 | GtkFileFilter *filter); | |
47723 | void gtk_file_chooser_remove_filter (GtkFileChooser *chooser, | |
47724 | GtkFileFilter *filter); | |
47725 | GSList *gtk_file_chooser_list_filters (GtkFileChooser *chooser); | |
47726 | ||
47727 | ||
47728 | ||
47729 | void gtk_file_chooser_set_filter (GtkFileChooser *chooser, | |
47730 | GtkFileFilter *filter); | |
47731 | GtkFileFilter *gtk_file_chooser_get_filter (GtkFileChooser *chooser); | |
47732 | ||
47733 | ||
47734 | ||
47735 | gboolean gtk_file_chooser_add_shortcut_folder (GtkFileChooser *chooser, | |
47736 | const char *folder, | |
47737 | GError **error); | |
47738 | gboolean gtk_file_chooser_remove_shortcut_folder (GtkFileChooser *chooser, | |
47739 | const char *folder, | |
47740 | GError **error); | |
47741 | GSList *gtk_file_chooser_list_shortcut_folders (GtkFileChooser *chooser); | |
47742 | ||
47743 | gboolean gtk_file_chooser_add_shortcut_folder_uri (GtkFileChooser *chooser, | |
47744 | const char *uri, | |
47745 | GError **error); | |
47746 | gboolean gtk_file_chooser_remove_shortcut_folder_uri (GtkFileChooser *chooser, | |
47747 | const char *uri, | |
47748 | GError **error); | |
47749 | GSList *gtk_file_chooser_list_shortcut_folder_uris (GtkFileChooser *chooser); | |
47750 | ||
47751 | ||
47752 | # 26 "/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h" 2 | |
47753 | ||
47754 | ||
47755 | ||
47756 | ||
47757 | #define GTK_TYPE_FILE_CHOOSER_BUTTON (gtk_file_chooser_button_get_type ()) | |
47758 | ||
47759 | #define GTK_FILE_CHOOSER_BUTTON(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButton)) | |
47760 | ||
47761 | #define GTK_FILE_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass)) | |
47762 | ||
47763 | #define GTK_IS_FILE_CHOOSER_BUTTON(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_FILE_CHOOSER_BUTTON)) | |
47764 | ||
47765 | #define GTK_IS_FILE_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON)) | |
47766 | ||
47767 | #define GTK_FILE_CHOOSER_BUTTON_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass)) | |
47768 | ||
47769 | ||
47770 | ||
47771 | typedef struct _GtkFileChooserButton GtkFileChooserButton; | |
47772 | typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate; | |
47773 | typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass; | |
47774 | ||
47775 | struct _GtkFileChooserButton | |
47776 | { | |
47777 | ||
47778 | GtkHBox parent; | |
47779 | ||
47780 | GtkFileChooserButtonPrivate *priv; | |
47781 | }; | |
47782 | ||
47783 | struct _GtkFileChooserButtonClass | |
47784 | { | |
47785 | ||
47786 | GtkHBoxClass parent_class; | |
47787 | ||
47788 | void (*__gtk_reserved1); | |
47789 | void (*__gtk_reserved2); | |
47790 | void (*__gtk_reserved3); | |
47791 | void (*__gtk_reserved4); | |
47792 | void (*__gtk_reserved5); | |
47793 | void (*__gtk_reserved6); | |
47794 | void (*__gtk_reserved7); | |
47795 | void (*__gtk_reserved8); | |
47796 | }; | |
47797 | ||
47798 | ||
47799 | GType gtk_file_chooser_button_get_type (void) __attribute__((__const__)); | |
47800 | GtkWidget * gtk_file_chooser_button_new (const gchar *title, | |
47801 | GtkFileChooserAction action); | |
47802 | GtkWidget * gtk_file_chooser_button_new_with_backend (const gchar *title, | |
47803 | GtkFileChooserAction action, | |
47804 | const gchar *backend); | |
47805 | GtkWidget * gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog); | |
47806 | const gchar *gtk_file_chooser_button_get_title (GtkFileChooserButton *button); | |
47807 | void gtk_file_chooser_button_set_title (GtkFileChooserButton *button, | |
47808 | const gchar *title); | |
47809 | gint gtk_file_chooser_button_get_width_chars (GtkFileChooserButton *button); | |
47810 | void gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button, | |
47811 | gint n_chars); | |
47812 | ||
47813 | ||
47814 | # 82 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47815 | # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h" 1 | |
47816 | # 22 "/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h" | |
47817 | #define __GTK_FILE_CHOOSER_DIALOG_H__ | |
47818 | ||
47819 | ||
47820 | # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h" 1 | |
47821 | # 26 "/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h" 2 | |
47822 | ||
47823 | ||
47824 | ||
47825 | #define GTK_TYPE_FILE_CHOOSER_DIALOG (gtk_file_chooser_dialog_get_type ()) | |
47826 | #define GTK_FILE_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialog)) | |
47827 | #define GTK_FILE_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialogClass)) | |
47828 | #define GTK_IS_FILE_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG)) | |
47829 | #define GTK_IS_FILE_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_DIALOG)) | |
47830 | #define GTK_FILE_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialogClass)) | |
47831 | ||
47832 | typedef struct _GtkFileChooserDialog GtkFileChooserDialog; | |
47833 | typedef struct _GtkFileChooserDialogClass GtkFileChooserDialogClass; | |
47834 | ||
47835 | typedef struct _GtkFileChooserDialogPrivate GtkFileChooserDialogPrivate; | |
47836 | ||
47837 | struct _GtkFileChooserDialogClass | |
47838 | { | |
47839 | GtkDialogClass parent_class; | |
47840 | }; | |
47841 | ||
47842 | struct _GtkFileChooserDialog | |
47843 | { | |
47844 | GtkDialog parent_instance; | |
47845 | ||
47846 | GtkFileChooserDialogPrivate *priv; | |
47847 | }; | |
47848 | ||
47849 | GType gtk_file_chooser_dialog_get_type (void) __attribute__((__const__)); | |
47850 | GtkWidget *gtk_file_chooser_dialog_new (const gchar *title, | |
47851 | GtkWindow *parent, | |
47852 | GtkFileChooserAction action, | |
47853 | const gchar *first_button_text, | |
47854 | ...) ; | |
47855 | GtkWidget *gtk_file_chooser_dialog_new_with_backend (const gchar *title, | |
47856 | GtkWindow *parent, | |
47857 | GtkFileChooserAction action, | |
47858 | const gchar *backend, | |
47859 | const gchar *first_button_text, | |
47860 | ...) ; | |
47861 | ||
47862 | ||
47863 | # 83 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47864 | # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooserwidget.h" 1 | |
47865 | # 22 "/usr/include/gtk-2.0/gtk/gtkfilechooserwidget.h" | |
47866 | #define __GTK_FILE_CHOOSER_WIDGET_H__ | |
47867 | ||
47868 | ||
47869 | ||
47870 | ||
47871 | ||
47872 | ||
47873 | #define GTK_TYPE_FILE_CHOOSER_WIDGET (gtk_file_chooser_widget_get_type ()) | |
47874 | #define GTK_FILE_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidget)) | |
47875 | #define GTK_FILE_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass)) | |
47876 | #define GTK_IS_FILE_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET)) | |
47877 | #define GTK_IS_FILE_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET)) | |
47878 | #define GTK_FILE_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass)) | |
47879 | ||
47880 | typedef struct _GtkFileChooserWidget GtkFileChooserWidget; | |
47881 | typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass; | |
47882 | ||
47883 | typedef struct _GtkFileChooserWidgetPrivate GtkFileChooserWidgetPrivate; | |
47884 | ||
47885 | struct _GtkFileChooserWidgetClass | |
47886 | { | |
47887 | GtkVBoxClass parent_class; | |
47888 | }; | |
47889 | ||
47890 | struct _GtkFileChooserWidget | |
47891 | { | |
47892 | GtkVBox parent_instance; | |
47893 | ||
47894 | GtkFileChooserWidgetPrivate *priv; | |
47895 | }; | |
47896 | ||
47897 | GType gtk_file_chooser_widget_get_type (void) __attribute__((__const__)); | |
47898 | GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action); | |
47899 | GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action, | |
47900 | const gchar *backend); | |
47901 | ||
47902 | # 84 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47903 | # 1 "/usr/include/gtk-2.0/gtk/gtkfontbutton.h" 1 | |
47904 | # 28 "/usr/include/gtk-2.0/gtk/gtkfontbutton.h" | |
47905 | #define __GTK_FONT_BUTTON_H__ | |
47906 | ||
47907 | ||
47908 | ||
47909 | ||
47910 | ||
47911 | ||
47912 | ||
47913 | ||
47914 | ||
47915 | #define GTK_TYPE_FONT_BUTTON (gtk_font_button_get_type ()) | |
47916 | #define GTK_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButton)) | |
47917 | #define GTK_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_BUTTON, GtkFontButtonClass)) | |
47918 | #define GTK_IS_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_BUTTON)) | |
47919 | #define GTK_IS_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_BUTTON)) | |
47920 | #define GTK_FONT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButtonClass)) | |
47921 | ||
47922 | typedef struct _GtkFontButton GtkFontButton; | |
47923 | typedef struct _GtkFontButtonClass GtkFontButtonClass; | |
47924 | typedef struct _GtkFontButtonPrivate GtkFontButtonPrivate; | |
47925 | ||
47926 | struct _GtkFontButton { | |
47927 | GtkButton button; | |
47928 | ||
47929 | ||
47930 | GtkFontButtonPrivate *priv; | |
47931 | }; | |
47932 | ||
47933 | struct _GtkFontButtonClass { | |
47934 | GtkButtonClass parent_class; | |
47935 | ||
47936 | ||
47937 | void (* font_set) (GtkFontButton *gfp); | |
47938 | ||
47939 | ||
47940 | void (*_gtk_reserved1) (void); | |
47941 | void (*_gtk_reserved2) (void); | |
47942 | void (*_gtk_reserved3) (void); | |
47943 | void (*_gtk_reserved4) (void); | |
47944 | }; | |
47945 | ||
47946 | ||
47947 | GType gtk_font_button_get_type (void) __attribute__((__const__)); | |
47948 | GtkWidget *gtk_font_button_new (void); | |
47949 | GtkWidget *gtk_font_button_new_with_font (const gchar *fontname); | |
47950 | ||
47951 | const gchar *gtk_font_button_get_title (GtkFontButton *font_button); | |
47952 | void gtk_font_button_set_title (GtkFontButton *font_button, | |
47953 | const gchar *title); | |
47954 | gboolean gtk_font_button_get_use_font (GtkFontButton *font_button); | |
47955 | void gtk_font_button_set_use_font (GtkFontButton *font_button, | |
47956 | gboolean use_font); | |
47957 | gboolean gtk_font_button_get_use_size (GtkFontButton *font_button); | |
47958 | void gtk_font_button_set_use_size (GtkFontButton *font_button, | |
47959 | gboolean use_size); | |
47960 | const gchar* gtk_font_button_get_font_name (GtkFontButton *font_button); | |
47961 | gboolean gtk_font_button_set_font_name (GtkFontButton *font_button, | |
47962 | const gchar *fontname); | |
47963 | gboolean gtk_font_button_get_show_style (GtkFontButton *font_button); | |
47964 | void gtk_font_button_set_show_style (GtkFontButton *font_button, | |
47965 | gboolean show_style); | |
47966 | gboolean gtk_font_button_get_show_size (GtkFontButton *font_button); | |
47967 | void gtk_font_button_set_show_size (GtkFontButton *font_button, | |
47968 | gboolean show_size); | |
47969 | ||
47970 | ||
47971 | # 85 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
47972 | # 1 "/usr/include/gtk-2.0/gtk/gtkfontsel.h" 1 | |
47973 | # 32 "/usr/include/gtk-2.0/gtk/gtkfontsel.h" | |
47974 | #define __GTK_FONTSEL_H__ | |
47975 | ||
47976 | ||
47977 | ||
47978 | ||
47979 | ||
47980 | ||
47981 | ||
47982 | ||
47983 | #define GTK_TYPE_FONT_SELECTION (gtk_font_selection_get_type ()) | |
47984 | #define GTK_FONT_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_SELECTION, GtkFontSelection)) | |
47985 | #define GTK_FONT_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_SELECTION, GtkFontSelectionClass)) | |
47986 | #define GTK_IS_FONT_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_SELECTION)) | |
47987 | #define GTK_IS_FONT_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_SELECTION)) | |
47988 | #define GTK_FONT_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_SELECTION, GtkFontSelectionClass)) | |
47989 | ||
47990 | ||
47991 | #define GTK_TYPE_FONT_SELECTION_DIALOG (gtk_font_selection_dialog_get_type ()) | |
47992 | #define GTK_FONT_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialog)) | |
47993 | #define GTK_FONT_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialogClass)) | |
47994 | #define GTK_IS_FONT_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_SELECTION_DIALOG)) | |
47995 | #define GTK_IS_FONT_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_SELECTION_DIALOG)) | |
47996 | #define GTK_FONT_SELECTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialogClass)) | |
47997 | ||
47998 | ||
47999 | typedef struct _GtkFontSelection GtkFontSelection; | |
48000 | typedef struct _GtkFontSelectionClass GtkFontSelectionClass; | |
48001 | ||
48002 | typedef struct _GtkFontSelectionDialog GtkFontSelectionDialog; | |
48003 | typedef struct _GtkFontSelectionDialogClass GtkFontSelectionDialogClass; | |
48004 | ||
48005 | struct _GtkFontSelection | |
48006 | { | |
48007 | GtkVBox parent_instance; | |
48008 | ||
48009 | GtkWidget *font_entry; | |
48010 | GtkWidget *family_list; | |
48011 | GtkWidget *font_style_entry; | |
48012 | GtkWidget *face_list; | |
48013 | GtkWidget *size_entry; | |
48014 | GtkWidget *size_list; | |
48015 | GtkWidget *pixels_button; | |
48016 | GtkWidget *points_button; | |
48017 | GtkWidget *filter_button; | |
48018 | GtkWidget *preview_entry; | |
48019 | ||
48020 | PangoFontFamily *family; | |
48021 | PangoFontFace *face; | |
48022 | ||
48023 | gint size; | |
48024 | ||
48025 | GdkFont *font; | |
48026 | ||
48027 | ||
48028 | }; | |
48029 | ||
48030 | struct _GtkFontSelectionClass | |
48031 | { | |
48032 | GtkVBoxClass parent_class; | |
48033 | ||
48034 | ||
48035 | void (*_gtk_reserved1) (void); | |
48036 | void (*_gtk_reserved2) (void); | |
48037 | void (*_gtk_reserved3) (void); | |
48038 | void (*_gtk_reserved4) (void); | |
48039 | }; | |
48040 | ||
48041 | ||
48042 | struct _GtkFontSelectionDialog | |
48043 | { | |
48044 | GtkDialog parent_instance; | |
48045 | ||
48046 | ||
48047 | GtkWidget *fontsel; | |
48048 | ||
48049 | GtkWidget *main_vbox; | |
48050 | GtkWidget *action_area; | |
48051 | ||
48052 | GtkWidget *ok_button; | |
48053 | GtkWidget *apply_button; | |
48054 | GtkWidget *cancel_button; | |
48055 | ||
48056 | ||
48057 | ||
48058 | ||
48059 | ||
48060 | ||
48061 | gint dialog_width; | |
48062 | gboolean auto_resize; | |
48063 | }; | |
48064 | ||
48065 | struct _GtkFontSelectionDialogClass | |
48066 | { | |
48067 | GtkDialogClass parent_class; | |
48068 | ||
48069 | ||
48070 | void (*_gtk_reserved1) (void); | |
48071 | void (*_gtk_reserved2) (void); | |
48072 | void (*_gtk_reserved3) (void); | |
48073 | void (*_gtk_reserved4) (void); | |
48074 | }; | |
48075 | # 141 "/usr/include/gtk-2.0/gtk/gtkfontsel.h" | |
48076 | GType gtk_font_selection_get_type (void) __attribute__((__const__)); | |
48077 | GtkWidget* gtk_font_selection_new (void); | |
48078 | gchar* gtk_font_selection_get_font_name (GtkFontSelection *fontsel); | |
48079 | ||
48080 | ||
48081 | GdkFont* gtk_font_selection_get_font (GtkFontSelection *fontsel); | |
48082 | ||
48083 | ||
48084 | gboolean gtk_font_selection_set_font_name (GtkFontSelection *fontsel, | |
48085 | const gchar *fontname); | |
48086 | const gchar* gtk_font_selection_get_preview_text (GtkFontSelection *fontsel); | |
48087 | void gtk_font_selection_set_preview_text (GtkFontSelection *fontsel, | |
48088 | const gchar *text); | |
48089 | ||
48090 | ||
48091 | ||
48092 | ||
48093 | ||
48094 | ||
48095 | ||
48096 | GType gtk_font_selection_dialog_get_type (void) __attribute__((__const__)); | |
48097 | GtkWidget* gtk_font_selection_dialog_new (const gchar *title); | |
48098 | ||
48099 | ||
48100 | ||
48101 | ||
48102 | ||
48103 | ||
48104 | gchar* gtk_font_selection_dialog_get_font_name (GtkFontSelectionDialog *fsd); | |
48105 | ||
48106 | ||
48107 | ||
48108 | ||
48109 | ||
48110 | GdkFont* gtk_font_selection_dialog_get_font (GtkFontSelectionDialog *fsd); | |
48111 | ||
48112 | ||
48113 | ||
48114 | ||
48115 | ||
48116 | ||
48117 | gboolean gtk_font_selection_dialog_set_font_name (GtkFontSelectionDialog *fsd, | |
48118 | const gchar *fontname); | |
48119 | ||
48120 | ||
48121 | ||
48122 | const gchar* gtk_font_selection_dialog_get_preview_text (GtkFontSelectionDialog *fsd); | |
48123 | ||
48124 | ||
48125 | ||
48126 | void gtk_font_selection_dialog_set_preview_text (GtkFontSelectionDialog *fsd, | |
48127 | const gchar *text); | |
48128 | ||
48129 | ||
48130 | ||
48131 | # 86 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48132 | ||
48133 | # 1 "/usr/include/gtk-2.0/gtk/gtkgamma.h" 1 | |
48134 | # 38 "/usr/include/gtk-2.0/gtk/gtkgamma.h" | |
48135 | #define __GTK_GAMMA_CURVE_H__ | |
48136 | ||
48137 | ||
48138 | ||
48139 | ||
48140 | ||
48141 | ||
48142 | ||
48143 | ||
48144 | #define GTK_TYPE_GAMMA_CURVE (gtk_gamma_curve_get_type ()) | |
48145 | #define GTK_GAMMA_CURVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_GAMMA_CURVE, GtkGammaCurve)) | |
48146 | #define GTK_GAMMA_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_GAMMA_CURVE, GtkGammaCurveClass)) | |
48147 | #define GTK_IS_GAMMA_CURVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_GAMMA_CURVE)) | |
48148 | #define GTK_IS_GAMMA_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_GAMMA_CURVE)) | |
48149 | #define GTK_GAMMA_CURVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_GAMMA_CURVE, GtkGammaCurveClass)) | |
48150 | ||
48151 | typedef struct _GtkGammaCurve GtkGammaCurve; | |
48152 | typedef struct _GtkGammaCurveClass GtkGammaCurveClass; | |
48153 | ||
48154 | ||
48155 | struct _GtkGammaCurve | |
48156 | { | |
48157 | GtkVBox vbox; | |
48158 | ||
48159 | GtkWidget *table; | |
48160 | GtkWidget *curve; | |
48161 | GtkWidget *button[5]; | |
48162 | ||
48163 | gfloat gamma; | |
48164 | GtkWidget *gamma_dialog; | |
48165 | GtkWidget *gamma_text; | |
48166 | }; | |
48167 | ||
48168 | struct _GtkGammaCurveClass | |
48169 | { | |
48170 | GtkVBoxClass parent_class; | |
48171 | ||
48172 | ||
48173 | void (*_gtk_reserved1) (void); | |
48174 | void (*_gtk_reserved2) (void); | |
48175 | void (*_gtk_reserved3) (void); | |
48176 | void (*_gtk_reserved4) (void); | |
48177 | }; | |
48178 | ||
48179 | ||
48180 | GType gtk_gamma_curve_get_type (void) __attribute__((__const__)); | |
48181 | GtkWidget* gtk_gamma_curve_new (void); | |
48182 | ||
48183 | ||
48184 | ||
48185 | # 88 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48186 | # 1 "/usr/include/gtk-2.0/gtk/gtkgc.h" 1 | |
48187 | # 28 "/usr/include/gtk-2.0/gtk/gtkgc.h" | |
48188 | #define __GTK_GC_H__ | |
48189 | ||
48190 | ||
48191 | ||
48192 | ||
48193 | ||
48194 | ||
48195 | ||
48196 | GdkGC* gtk_gc_get (gint depth, | |
48197 | GdkColormap *colormap, | |
48198 | GdkGCValues *values, | |
48199 | GdkGCValuesMask values_mask); | |
48200 | void gtk_gc_release (GdkGC *gc); | |
48201 | ||
48202 | ||
48203 | ||
48204 | # 89 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48205 | # 1 "/usr/include/gtk-2.0/gtk/gtkhandlebox.h" 1 | |
48206 | # 34 "/usr/include/gtk-2.0/gtk/gtkhandlebox.h" | |
48207 | #define __GTK_HANDLE_BOX_H__ | |
48208 | ||
48209 | ||
48210 | ||
48211 | ||
48212 | ||
48213 | ||
48214 | ||
48215 | ||
48216 | #define GTK_TYPE_HANDLE_BOX (gtk_handle_box_get_type ()) | |
48217 | #define GTK_HANDLE_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HANDLE_BOX, GtkHandleBox)) | |
48218 | #define GTK_HANDLE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HANDLE_BOX, GtkHandleBoxClass)) | |
48219 | #define GTK_IS_HANDLE_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HANDLE_BOX)) | |
48220 | #define GTK_IS_HANDLE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HANDLE_BOX)) | |
48221 | #define GTK_HANDLE_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HANDLE_BOX, GtkHandleBoxClass)) | |
48222 | ||
48223 | ||
48224 | typedef struct _GtkHandleBox GtkHandleBox; | |
48225 | typedef struct _GtkHandleBoxClass GtkHandleBoxClass; | |
48226 | ||
48227 | struct _GtkHandleBox | |
48228 | { | |
48229 | GtkBin bin; | |
48230 | ||
48231 | GdkWindow *bin_window; | |
48232 | GdkWindow *float_window; | |
48233 | GtkShadowType shadow_type; | |
48234 | guint handle_position : 2; | |
48235 | guint float_window_mapped : 1; | |
48236 | guint child_detached : 1; | |
48237 | guint in_drag : 1; | |
48238 | guint shrink_on_detach : 1; | |
48239 | ||
48240 | signed int snap_edge : 3; | |
48241 | ||
48242 | ||
48243 | ||
48244 | gint deskoff_x, deskoff_y; | |
48245 | ||
48246 | GtkAllocation attach_allocation; | |
48247 | GtkAllocation float_allocation; | |
48248 | }; | |
48249 | ||
48250 | struct _GtkHandleBoxClass | |
48251 | { | |
48252 | GtkBinClass parent_class; | |
48253 | ||
48254 | void (*child_attached) (GtkHandleBox *handle_box, | |
48255 | GtkWidget *child); | |
48256 | void (*child_detached) (GtkHandleBox *handle_box, | |
48257 | GtkWidget *child); | |
48258 | ||
48259 | ||
48260 | void (*_gtk_reserved1) (void); | |
48261 | void (*_gtk_reserved2) (void); | |
48262 | void (*_gtk_reserved3) (void); | |
48263 | void (*_gtk_reserved4) (void); | |
48264 | }; | |
48265 | ||
48266 | ||
48267 | GType gtk_handle_box_get_type (void) __attribute__((__const__)); | |
48268 | GtkWidget* gtk_handle_box_new (void); | |
48269 | void gtk_handle_box_set_shadow_type (GtkHandleBox *handle_box, | |
48270 | GtkShadowType type); | |
48271 | GtkShadowType gtk_handle_box_get_shadow_type (GtkHandleBox *handle_box); | |
48272 | void gtk_handle_box_set_handle_position (GtkHandleBox *handle_box, | |
48273 | GtkPositionType position); | |
48274 | GtkPositionType gtk_handle_box_get_handle_position(GtkHandleBox *handle_box); | |
48275 | void gtk_handle_box_set_snap_edge (GtkHandleBox *handle_box, | |
48276 | GtkPositionType edge); | |
48277 | GtkPositionType gtk_handle_box_get_snap_edge (GtkHandleBox *handle_box); | |
48278 | ||
48279 | ||
48280 | # 90 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48281 | # 1 "/usr/include/gtk-2.0/gtk/gtkhbbox.h" 1 | |
48282 | # 28 "/usr/include/gtk-2.0/gtk/gtkhbbox.h" | |
48283 | #define __GTK_HBUTTON_BOX_H__ | |
48284 | ||
48285 | ||
48286 | ||
48287 | ||
48288 | ||
48289 | ||
48290 | ||
48291 | #define GTK_TYPE_HBUTTON_BOX (gtk_hbutton_box_get_type ()) | |
48292 | #define GTK_HBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HBUTTON_BOX, GtkHButtonBox)) | |
48293 | #define GTK_HBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBUTTON_BOX, GtkHButtonBoxClass)) | |
48294 | #define GTK_IS_HBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HBUTTON_BOX)) | |
48295 | #define GTK_IS_HBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBUTTON_BOX)) | |
48296 | #define GTK_HBUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HBUTTON_BOX, GtkHButtonBoxClass)) | |
48297 | ||
48298 | ||
48299 | typedef struct _GtkHButtonBox GtkHButtonBox; | |
48300 | typedef struct _GtkHButtonBoxClass GtkHButtonBoxClass; | |
48301 | ||
48302 | struct _GtkHButtonBox | |
48303 | { | |
48304 | GtkButtonBox button_box; | |
48305 | }; | |
48306 | ||
48307 | struct _GtkHButtonBoxClass | |
48308 | { | |
48309 | GtkButtonBoxClass parent_class; | |
48310 | }; | |
48311 | ||
48312 | ||
48313 | GType gtk_hbutton_box_get_type (void) __attribute__((__const__)); | |
48314 | GtkWidget* gtk_hbutton_box_new (void); | |
48315 | ||
48316 | ||
48317 | ||
48318 | ||
48319 | gint gtk_hbutton_box_get_spacing_default (void); | |
48320 | GtkButtonBoxStyle gtk_hbutton_box_get_layout_default (void); | |
48321 | ||
48322 | void gtk_hbutton_box_set_spacing_default (gint spacing); | |
48323 | void gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout); | |
48324 | ||
48325 | ||
48326 | ||
48327 | # 91 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48328 | ||
48329 | # 1 "/usr/include/gtk-2.0/gtk/gtkhpaned.h" 1 | |
48330 | # 28 "/usr/include/gtk-2.0/gtk/gtkhpaned.h" | |
48331 | #define __GTK_HPANED_H__ | |
48332 | ||
48333 | # 1 "/usr/include/gtk-2.0/gtk/gtkpaned.h" 1 | |
48334 | # 29 "/usr/include/gtk-2.0/gtk/gtkpaned.h" | |
48335 | #define __GTK_PANED_H__ | |
48336 | ||
48337 | ||
48338 | ||
48339 | ||
48340 | ||
48341 | #define GTK_TYPE_PANED (gtk_paned_get_type ()) | |
48342 | #define GTK_PANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PANED, GtkPaned)) | |
48343 | #define GTK_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PANED, GtkPanedClass)) | |
48344 | #define GTK_IS_PANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PANED)) | |
48345 | #define GTK_IS_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PANED)) | |
48346 | #define GTK_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PANED, GtkPanedClass)) | |
48347 | ||
48348 | ||
48349 | typedef struct _GtkPaned GtkPaned; | |
48350 | typedef struct _GtkPanedClass GtkPanedClass; | |
48351 | typedef struct _GtkPanedPrivate GtkPanedPrivate; | |
48352 | ||
48353 | struct _GtkPaned | |
48354 | { | |
48355 | GtkContainer container; | |
48356 | ||
48357 | GtkWidget *child1; | |
48358 | GtkWidget *child2; | |
48359 | ||
48360 | GdkWindow *handle; | |
48361 | GdkGC *xor_gc; | |
48362 | GdkCursorType cursor_type; | |
48363 | ||
48364 | ||
48365 | GdkRectangle handle_pos; | |
48366 | ||
48367 | gint child1_size; | |
48368 | gint last_allocation; | |
48369 | gint min_position; | |
48370 | gint max_position; | |
48371 | ||
48372 | guint position_set : 1; | |
48373 | guint in_drag : 1; | |
48374 | guint child1_shrink : 1; | |
48375 | guint child1_resize : 1; | |
48376 | guint child2_shrink : 1; | |
48377 | guint child2_resize : 1; | |
48378 | guint orientation : 1; | |
48379 | guint in_recursion : 1; | |
48380 | guint handle_prelit : 1; | |
48381 | ||
48382 | GtkWidget *last_child1_focus; | |
48383 | GtkWidget *last_child2_focus; | |
48384 | GtkPanedPrivate *priv; | |
48385 | ||
48386 | gint drag_pos; | |
48387 | gint original_position; | |
48388 | }; | |
48389 | ||
48390 | struct _GtkPanedClass | |
48391 | { | |
48392 | GtkContainerClass parent_class; | |
48393 | ||
48394 | gboolean (* cycle_child_focus) (GtkPaned *paned, | |
48395 | gboolean reverse); | |
48396 | gboolean (* toggle_handle_focus) (GtkPaned *paned); | |
48397 | gboolean (* move_handle) (GtkPaned *paned, | |
48398 | GtkScrollType scroll); | |
48399 | gboolean (* cycle_handle_focus) (GtkPaned *paned, | |
48400 | gboolean reverse); | |
48401 | gboolean (* accept_position) (GtkPaned *paned); | |
48402 | gboolean (* cancel_position) (GtkPaned *paned); | |
48403 | ||
48404 | ||
48405 | void (*_gtk_reserved1) (void); | |
48406 | void (*_gtk_reserved2) (void); | |
48407 | void (*_gtk_reserved3) (void); | |
48408 | void (*_gtk_reserved4) (void); | |
48409 | }; | |
48410 | ||
48411 | ||
48412 | GType gtk_paned_get_type (void) __attribute__((__const__)); | |
48413 | void gtk_paned_add1 (GtkPaned *paned, | |
48414 | GtkWidget *child); | |
48415 | void gtk_paned_add2 (GtkPaned *paned, | |
48416 | GtkWidget *child); | |
48417 | void gtk_paned_pack1 (GtkPaned *paned, | |
48418 | GtkWidget *child, | |
48419 | gboolean resize, | |
48420 | gboolean shrink); | |
48421 | void gtk_paned_pack2 (GtkPaned *paned, | |
48422 | GtkWidget *child, | |
48423 | gboolean resize, | |
48424 | gboolean shrink); | |
48425 | gint gtk_paned_get_position (GtkPaned *paned); | |
48426 | void gtk_paned_set_position (GtkPaned *paned, | |
48427 | gint position); | |
48428 | ||
48429 | GtkWidget *gtk_paned_get_child1 (GtkPaned *paned); | |
48430 | GtkWidget *gtk_paned_get_child2 (GtkPaned *paned); | |
48431 | ||
48432 | ||
48433 | ||
48434 | void gtk_paned_compute_position (GtkPaned *paned, | |
48435 | gint allocation, | |
48436 | gint child1_req, | |
48437 | gint child2_req); | |
48438 | ||
48439 | ||
48440 | #define gtk_paned_gutter_size(p,s) (void) 0 | |
48441 | #define gtk_paned_set_gutter_size(p,s) (void) 0 | |
48442 | ||
48443 | ||
48444 | ||
48445 | # 31 "/usr/include/gtk-2.0/gtk/gtkhpaned.h" 2 | |
48446 | ||
48447 | ||
48448 | ||
48449 | #define GTK_TYPE_HPANED (gtk_hpaned_get_type ()) | |
48450 | #define GTK_HPANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HPANED, GtkHPaned)) | |
48451 | #define GTK_HPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HPANED, GtkHPanedClass)) | |
48452 | #define GTK_IS_HPANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HPANED)) | |
48453 | #define GTK_IS_HPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HPANED)) | |
48454 | #define GTK_HPANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HPANED, GtkHPanedClass)) | |
48455 | ||
48456 | ||
48457 | typedef struct _GtkHPaned GtkHPaned; | |
48458 | typedef struct _GtkHPanedClass GtkHPanedClass; | |
48459 | ||
48460 | struct _GtkHPaned | |
48461 | { | |
48462 | GtkPaned paned; | |
48463 | }; | |
48464 | ||
48465 | struct _GtkHPanedClass | |
48466 | { | |
48467 | GtkPanedClass parent_class; | |
48468 | }; | |
48469 | ||
48470 | GType gtk_hpaned_get_type (void) __attribute__((__const__)); | |
48471 | GtkWidget *gtk_hpaned_new (void); | |
48472 | ||
48473 | ||
48474 | # 93 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48475 | # 1 "/usr/include/gtk-2.0/gtk/gtkhruler.h" 1 | |
48476 | # 38 "/usr/include/gtk-2.0/gtk/gtkhruler.h" | |
48477 | #define __GTK_HRULER_H__ | |
48478 | ||
48479 | ||
48480 | ||
48481 | # 1 "/usr/include/gtk-2.0/gtk/gtkruler.h" 1 | |
48482 | # 38 "/usr/include/gtk-2.0/gtk/gtkruler.h" | |
48483 | #define __GTK_RULER_H__ | |
48484 | ||
48485 | ||
48486 | ||
48487 | ||
48488 | ||
48489 | ||
48490 | ||
48491 | ||
48492 | #define GTK_TYPE_RULER (gtk_ruler_get_type ()) | |
48493 | #define GTK_RULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RULER, GtkRuler)) | |
48494 | #define GTK_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RULER, GtkRulerClass)) | |
48495 | #define GTK_IS_RULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RULER)) | |
48496 | #define GTK_IS_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RULER)) | |
48497 | #define GTK_RULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RULER, GtkRulerClass)) | |
48498 | ||
48499 | ||
48500 | typedef struct _GtkRuler GtkRuler; | |
48501 | typedef struct _GtkRulerClass GtkRulerClass; | |
48502 | typedef struct _GtkRulerMetric GtkRulerMetric; | |
48503 | ||
48504 | ||
48505 | ||
48506 | ||
48507 | struct _GtkRuler | |
48508 | { | |
48509 | GtkWidget widget; | |
48510 | ||
48511 | GdkPixmap *backing_store; | |
48512 | GdkGC *non_gr_exp_gc; | |
48513 | GtkRulerMetric *metric; | |
48514 | gint xsrc, ysrc; | |
48515 | gint slider_size; | |
48516 | ||
48517 | ||
48518 | gdouble lower; | |
48519 | ||
48520 | gdouble upper; | |
48521 | ||
48522 | gdouble position; | |
48523 | ||
48524 | gdouble max_size; | |
48525 | }; | |
48526 | ||
48527 | struct _GtkRulerClass | |
48528 | { | |
48529 | GtkWidgetClass parent_class; | |
48530 | ||
48531 | void (* draw_ticks) (GtkRuler *ruler); | |
48532 | void (* draw_pos) (GtkRuler *ruler); | |
48533 | ||
48534 | ||
48535 | void (*_gtk_reserved1) (void); | |
48536 | void (*_gtk_reserved2) (void); | |
48537 | void (*_gtk_reserved3) (void); | |
48538 | void (*_gtk_reserved4) (void); | |
48539 | }; | |
48540 | ||
48541 | struct _GtkRulerMetric | |
48542 | { | |
48543 | gchar *metric_name; | |
48544 | gchar *abbrev; | |
48545 | ||
48546 | ||
48547 | gdouble pixels_per_unit; | |
48548 | gdouble ruler_scale[10]; | |
48549 | gint subdivide[5]; | |
48550 | }; | |
48551 | ||
48552 | ||
48553 | GType gtk_ruler_get_type (void) __attribute__((__const__)); | |
48554 | void gtk_ruler_set_metric (GtkRuler *ruler, | |
48555 | GtkMetricType metric); | |
48556 | void gtk_ruler_set_range (GtkRuler *ruler, | |
48557 | gdouble lower, | |
48558 | gdouble upper, | |
48559 | gdouble position, | |
48560 | gdouble max_size); | |
48561 | void gtk_ruler_draw_ticks (GtkRuler *ruler); | |
48562 | void gtk_ruler_draw_pos (GtkRuler *ruler); | |
48563 | ||
48564 | GtkMetricType gtk_ruler_get_metric (GtkRuler *ruler); | |
48565 | void gtk_ruler_get_range (GtkRuler *ruler, | |
48566 | gdouble *lower, | |
48567 | gdouble *upper, | |
48568 | gdouble *position, | |
48569 | gdouble *max_size); | |
48570 | ||
48571 | ||
48572 | # 43 "/usr/include/gtk-2.0/gtk/gtkhruler.h" 2 | |
48573 | ||
48574 | ||
48575 | ||
48576 | ||
48577 | ||
48578 | #define GTK_TYPE_HRULER (gtk_hruler_get_type ()) | |
48579 | #define GTK_HRULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HRULER, GtkHRuler)) | |
48580 | #define GTK_HRULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HRULER, GtkHRulerClass)) | |
48581 | #define GTK_IS_HRULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HRULER)) | |
48582 | #define GTK_IS_HRULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HRULER)) | |
48583 | #define GTK_HRULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HRULER, GtkHRulerClass)) | |
48584 | ||
48585 | ||
48586 | typedef struct _GtkHRuler GtkHRuler; | |
48587 | typedef struct _GtkHRulerClass GtkHRulerClass; | |
48588 | ||
48589 | struct _GtkHRuler | |
48590 | { | |
48591 | GtkRuler ruler; | |
48592 | }; | |
48593 | ||
48594 | struct _GtkHRulerClass | |
48595 | { | |
48596 | GtkRulerClass parent_class; | |
48597 | }; | |
48598 | ||
48599 | ||
48600 | GType gtk_hruler_get_type (void) __attribute__((__const__)); | |
48601 | GtkWidget* gtk_hruler_new (void); | |
48602 | ||
48603 | ||
48604 | ||
48605 | # 94 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48606 | # 1 "/usr/include/gtk-2.0/gtk/gtkhscale.h" 1 | |
48607 | # 28 "/usr/include/gtk-2.0/gtk/gtkhscale.h" | |
48608 | #define __GTK_HSCALE_H__ | |
48609 | ||
48610 | ||
48611 | ||
48612 | # 1 "/usr/include/gtk-2.0/gtk/gtkscale.h" 1 | |
48613 | # 28 "/usr/include/gtk-2.0/gtk/gtkscale.h" | |
48614 | #define __GTK_SCALE_H__ | |
48615 | ||
48616 | ||
48617 | ||
48618 | ||
48619 | ||
48620 | ||
48621 | ||
48622 | ||
48623 | #define GTK_TYPE_SCALE (gtk_scale_get_type ()) | |
48624 | #define GTK_SCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCALE, GtkScale)) | |
48625 | #define GTK_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCALE, GtkScaleClass)) | |
48626 | #define GTK_IS_SCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCALE)) | |
48627 | #define GTK_IS_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCALE)) | |
48628 | #define GTK_SCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCALE, GtkScaleClass)) | |
48629 | ||
48630 | ||
48631 | typedef struct _GtkScale GtkScale; | |
48632 | typedef struct _GtkScaleClass GtkScaleClass; | |
48633 | ||
48634 | struct _GtkScale | |
48635 | { | |
48636 | GtkRange range; | |
48637 | ||
48638 | gint digits; | |
48639 | guint draw_value : 1; | |
48640 | guint value_pos : 2; | |
48641 | }; | |
48642 | ||
48643 | struct _GtkScaleClass | |
48644 | { | |
48645 | GtkRangeClass parent_class; | |
48646 | ||
48647 | gchar* (* format_value) (GtkScale *scale, | |
48648 | gdouble value); | |
48649 | ||
48650 | void (* draw_value) (GtkScale *scale); | |
48651 | ||
48652 | void (* get_layout_offsets) (GtkScale *scale, | |
48653 | gint *x, | |
48654 | gint *y); | |
48655 | ||
48656 | void (*_gtk_reserved2) (void); | |
48657 | void (*_gtk_reserved3) (void); | |
48658 | void (*_gtk_reserved4) (void); | |
48659 | }; | |
48660 | ||
48661 | GType gtk_scale_get_type (void) __attribute__((__const__)); | |
48662 | ||
48663 | void gtk_scale_set_digits (GtkScale *scale, | |
48664 | gint digits); | |
48665 | gint gtk_scale_get_digits (GtkScale *scale); | |
48666 | void gtk_scale_set_draw_value (GtkScale *scale, | |
48667 | gboolean draw_value); | |
48668 | gboolean gtk_scale_get_draw_value (GtkScale *scale); | |
48669 | void gtk_scale_set_value_pos (GtkScale *scale, | |
48670 | GtkPositionType pos); | |
48671 | GtkPositionType gtk_scale_get_value_pos (GtkScale *scale); | |
48672 | ||
48673 | PangoLayout *gtk_scale_get_layout (GtkScale *scale); | |
48674 | void gtk_scale_get_layout_offsets (GtkScale *scale, | |
48675 | gint *x, | |
48676 | gint *y); | |
48677 | void _gtk_scale_clear_layout (GtkScale *scale); | |
48678 | ||
48679 | void _gtk_scale_get_value_size (GtkScale *scale, | |
48680 | gint *width, | |
48681 | gint *height); | |
48682 | gchar *_gtk_scale_format_value (GtkScale *scale, | |
48683 | gdouble value); | |
48684 | ||
48685 | ||
48686 | ||
48687 | # 33 "/usr/include/gtk-2.0/gtk/gtkhscale.h" 2 | |
48688 | ||
48689 | ||
48690 | ||
48691 | ||
48692 | #define GTK_TYPE_HSCALE (gtk_hscale_get_type ()) | |
48693 | #define GTK_HSCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSCALE, GtkHScale)) | |
48694 | #define GTK_HSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSCALE, GtkHScaleClass)) | |
48695 | #define GTK_IS_HSCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSCALE)) | |
48696 | #define GTK_IS_HSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSCALE)) | |
48697 | #define GTK_HSCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSCALE, GtkHScaleClass)) | |
48698 | ||
48699 | ||
48700 | typedef struct _GtkHScale GtkHScale; | |
48701 | typedef struct _GtkHScaleClass GtkHScaleClass; | |
48702 | ||
48703 | struct _GtkHScale | |
48704 | { | |
48705 | GtkScale scale; | |
48706 | }; | |
48707 | ||
48708 | struct _GtkHScaleClass | |
48709 | { | |
48710 | GtkScaleClass parent_class; | |
48711 | }; | |
48712 | ||
48713 | ||
48714 | GType gtk_hscale_get_type (void) __attribute__((__const__)); | |
48715 | GtkWidget* gtk_hscale_new (GtkAdjustment *adjustment); | |
48716 | GtkWidget* gtk_hscale_new_with_range (gdouble min, | |
48717 | gdouble max, | |
48718 | gdouble step); | |
48719 | ||
48720 | ||
48721 | ||
48722 | # 95 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48723 | ||
48724 | # 1 "/usr/include/gtk-2.0/gtk/gtkhseparator.h" 1 | |
48725 | # 28 "/usr/include/gtk-2.0/gtk/gtkhseparator.h" | |
48726 | #define __GTK_HSEPARATOR_H__ | |
48727 | ||
48728 | ||
48729 | ||
48730 | # 1 "/usr/include/gtk-2.0/gtk/gtkseparator.h" 1 | |
48731 | # 28 "/usr/include/gtk-2.0/gtk/gtkseparator.h" | |
48732 | #define __GTK_SEPARATOR_H__ | |
48733 | ||
48734 | ||
48735 | ||
48736 | ||
48737 | ||
48738 | ||
48739 | ||
48740 | ||
48741 | #define GTK_TYPE_SEPARATOR (gtk_separator_get_type ()) | |
48742 | #define GTK_SEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR, GtkSeparator)) | |
48743 | #define GTK_SEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR, GtkSeparatorClass)) | |
48744 | #define GTK_IS_SEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR)) | |
48745 | #define GTK_IS_SEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR)) | |
48746 | #define GTK_SEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEPARATOR, GtkSeparatorClass)) | |
48747 | ||
48748 | ||
48749 | ||
48750 | typedef struct _GtkSeparator GtkSeparator; | |
48751 | typedef struct _GtkSeparatorClass GtkSeparatorClass; | |
48752 | ||
48753 | struct _GtkSeparator | |
48754 | { | |
48755 | GtkWidget widget; | |
48756 | }; | |
48757 | ||
48758 | struct _GtkSeparatorClass | |
48759 | { | |
48760 | GtkWidgetClass parent_class; | |
48761 | }; | |
48762 | ||
48763 | ||
48764 | GType gtk_separator_get_type (void) __attribute__((__const__)); | |
48765 | ||
48766 | ||
48767 | ||
48768 | # 33 "/usr/include/gtk-2.0/gtk/gtkhseparator.h" 2 | |
48769 | ||
48770 | ||
48771 | ||
48772 | ||
48773 | #define GTK_TYPE_HSEPARATOR (gtk_hseparator_get_type ()) | |
48774 | #define GTK_HSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSEPARATOR, GtkHSeparator)) | |
48775 | #define GTK_HSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSEPARATOR, GtkHSeparatorClass)) | |
48776 | #define GTK_IS_HSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSEPARATOR)) | |
48777 | #define GTK_IS_HSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSEPARATOR)) | |
48778 | #define GTK_HSEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSEPARATOR, GtkHSeparatorClass)) | |
48779 | ||
48780 | ||
48781 | typedef struct _GtkHSeparator GtkHSeparator; | |
48782 | typedef struct _GtkHSeparatorClass GtkHSeparatorClass; | |
48783 | ||
48784 | struct _GtkHSeparator | |
48785 | { | |
48786 | GtkSeparator separator; | |
48787 | }; | |
48788 | ||
48789 | struct _GtkHSeparatorClass | |
48790 | { | |
48791 | GtkSeparatorClass parent_class; | |
48792 | }; | |
48793 | ||
48794 | ||
48795 | GType gtk_hseparator_get_type (void) __attribute__((__const__)); | |
48796 | GtkWidget* gtk_hseparator_new (void); | |
48797 | ||
48798 | ||
48799 | ||
48800 | # 97 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48801 | # 1 "/usr/include/gtk-2.0/gtk/gtkiconfactory.h" 1 | |
48802 | # 28 "/usr/include/gtk-2.0/gtk/gtkiconfactory.h" | |
48803 | #define __GTK_ICON_FACTORY_H__ | |
48804 | ||
48805 | ||
48806 | ||
48807 | ||
48808 | ||
48809 | ||
48810 | typedef struct _GtkIconFactoryClass GtkIconFactoryClass; | |
48811 | ||
48812 | #define GTK_TYPE_ICON_FACTORY (gtk_icon_factory_get_type ()) | |
48813 | #define GTK_ICON_FACTORY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ICON_FACTORY, GtkIconFactory)) | |
48814 | #define GTK_ICON_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_FACTORY, GtkIconFactoryClass)) | |
48815 | #define GTK_IS_ICON_FACTORY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ICON_FACTORY)) | |
48816 | #define GTK_IS_ICON_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_FACTORY)) | |
48817 | #define GTK_ICON_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_FACTORY, GtkIconFactoryClass)) | |
48818 | #define GTK_TYPE_ICON_SET (gtk_icon_set_get_type ()) | |
48819 | #define GTK_TYPE_ICON_SOURCE (gtk_icon_source_get_type ()) | |
48820 | ||
48821 | struct _GtkIconFactory | |
48822 | { | |
48823 | GObject parent_instance; | |
48824 | ||
48825 | GHashTable *icons; | |
48826 | }; | |
48827 | ||
48828 | struct _GtkIconFactoryClass | |
48829 | { | |
48830 | GObjectClass parent_class; | |
48831 | ||
48832 | ||
48833 | void (*_gtk_reserved1) (void); | |
48834 | void (*_gtk_reserved2) (void); | |
48835 | void (*_gtk_reserved3) (void); | |
48836 | void (*_gtk_reserved4) (void); | |
48837 | }; | |
48838 | ||
48839 | ||
48840 | ||
48841 | ||
48842 | ||
48843 | ||
48844 | ||
48845 | GType gtk_icon_factory_get_type (void) __attribute__((__const__)); | |
48846 | GtkIconFactory* gtk_icon_factory_new (void); | |
48847 | void gtk_icon_factory_add (GtkIconFactory *factory, | |
48848 | const gchar *stock_id, | |
48849 | GtkIconSet *icon_set); | |
48850 | GtkIconSet* gtk_icon_factory_lookup (GtkIconFactory *factory, | |
48851 | const gchar *stock_id); | |
48852 | ||
48853 | ||
48854 | ||
48855 | void gtk_icon_factory_add_default (GtkIconFactory *factory); | |
48856 | void gtk_icon_factory_remove_default (GtkIconFactory *factory); | |
48857 | GtkIconSet* gtk_icon_factory_lookup_default (const gchar *stock_id); | |
48858 | # 96 "/usr/include/gtk-2.0/gtk/gtkiconfactory.h" | |
48859 | gboolean gtk_icon_size_lookup (GtkIconSize size, | |
48860 | gint *width, | |
48861 | gint *height); | |
48862 | ||
48863 | gboolean gtk_icon_size_lookup_for_settings (GtkSettings *settings, | |
48864 | GtkIconSize size, | |
48865 | gint *width, | |
48866 | gint *height); | |
48867 | ||
48868 | GtkIconSize gtk_icon_size_register (const gchar *name, | |
48869 | gint width, | |
48870 | gint height); | |
48871 | void gtk_icon_size_register_alias (const gchar *alias, | |
48872 | GtkIconSize target); | |
48873 | GtkIconSize gtk_icon_size_from_name (const gchar *name); | |
48874 | const gchar* gtk_icon_size_get_name (GtkIconSize size); | |
48875 | ||
48876 | ||
48877 | ||
48878 | GType gtk_icon_set_get_type (void) __attribute__((__const__)); | |
48879 | GtkIconSet* gtk_icon_set_new (void); | |
48880 | GtkIconSet* gtk_icon_set_new_from_pixbuf (GdkPixbuf *pixbuf); | |
48881 | ||
48882 | GtkIconSet* gtk_icon_set_ref (GtkIconSet *icon_set); | |
48883 | void gtk_icon_set_unref (GtkIconSet *icon_set); | |
48884 | GtkIconSet* gtk_icon_set_copy (GtkIconSet *icon_set); | |
48885 | ||
48886 | ||
48887 | ||
48888 | ||
48889 | GdkPixbuf* gtk_icon_set_render_icon (GtkIconSet *icon_set, | |
48890 | GtkStyle *style, | |
48891 | GtkTextDirection direction, | |
48892 | GtkStateType state, | |
48893 | GtkIconSize size, | |
48894 | GtkWidget *widget, | |
48895 | const char *detail); | |
48896 | ||
48897 | ||
48898 | void gtk_icon_set_add_source (GtkIconSet *icon_set, | |
48899 | const GtkIconSource *source); | |
48900 | ||
48901 | void gtk_icon_set_get_sizes (GtkIconSet *icon_set, | |
48902 | GtkIconSize **sizes, | |
48903 | gint *n_sizes); | |
48904 | ||
48905 | GType gtk_icon_source_get_type (void) __attribute__((__const__)); | |
48906 | GtkIconSource* gtk_icon_source_new (void); | |
48907 | GtkIconSource* gtk_icon_source_copy (const GtkIconSource *source); | |
48908 | void gtk_icon_source_free (GtkIconSource *source); | |
48909 | ||
48910 | void gtk_icon_source_set_filename (GtkIconSource *source, | |
48911 | const gchar *filename); | |
48912 | void gtk_icon_source_set_icon_name (GtkIconSource *source, | |
48913 | const gchar *icon_name); | |
48914 | void gtk_icon_source_set_pixbuf (GtkIconSource *source, | |
48915 | GdkPixbuf *pixbuf); | |
48916 | ||
48917 | const gchar* gtk_icon_source_get_filename (const GtkIconSource *source); | |
48918 | const gchar* gtk_icon_source_get_icon_name (const GtkIconSource *source); | |
48919 | GdkPixbuf* gtk_icon_source_get_pixbuf (const GtkIconSource *source); | |
48920 | ||
48921 | void gtk_icon_source_set_direction_wildcarded (GtkIconSource *source, | |
48922 | gboolean setting); | |
48923 | void gtk_icon_source_set_state_wildcarded (GtkIconSource *source, | |
48924 | gboolean setting); | |
48925 | void gtk_icon_source_set_size_wildcarded (GtkIconSource *source, | |
48926 | gboolean setting); | |
48927 | gboolean gtk_icon_source_get_size_wildcarded (const GtkIconSource *source); | |
48928 | gboolean gtk_icon_source_get_state_wildcarded (const GtkIconSource *source); | |
48929 | gboolean gtk_icon_source_get_direction_wildcarded (const GtkIconSource *source); | |
48930 | void gtk_icon_source_set_direction (GtkIconSource *source, | |
48931 | GtkTextDirection direction); | |
48932 | void gtk_icon_source_set_state (GtkIconSource *source, | |
48933 | GtkStateType state); | |
48934 | void gtk_icon_source_set_size (GtkIconSource *source, | |
48935 | GtkIconSize size); | |
48936 | GtkTextDirection gtk_icon_source_get_direction (const GtkIconSource *source); | |
48937 | GtkStateType gtk_icon_source_get_state (const GtkIconSource *source); | |
48938 | GtkIconSize gtk_icon_source_get_size (const GtkIconSource *source); | |
48939 | ||
48940 | ||
48941 | ||
48942 | void _gtk_icon_set_invalidate_caches (void); | |
48943 | GSList* _gtk_icon_factory_list_ids (void); | |
48944 | void _gtk_icon_factory_ensure_default_icons (void); | |
48945 | ||
48946 | ||
48947 | # 98 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
48948 | # 1 "/usr/include/gtk-2.0/gtk/gtkicontheme.h" 1 | |
48949 | # 21 "/usr/include/gtk-2.0/gtk/gtkicontheme.h" | |
48950 | #define __GTK_ICON_THEME_H__ | |
48951 | ||
48952 | ||
48953 | ||
48954 | ||
48955 | ||
48956 | ||
48957 | ||
48958 | #define GTK_TYPE_ICON_INFO (gtk_icon_info_get_type ()) | |
48959 | ||
48960 | #define GTK_TYPE_ICON_THEME (gtk_icon_theme_get_type ()) | |
48961 | #define GTK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_THEME, GtkIconTheme)) | |
48962 | #define GTK_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_THEME, GtkIconThemeClass)) | |
48963 | #define GTK_IS_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME)) | |
48964 | #define GTK_IS_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_THEME)) | |
48965 | #define GTK_ICON_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_THEME, GtkIconThemeClass)) | |
48966 | ||
48967 | typedef struct _GtkIconInfo GtkIconInfo; | |
48968 | typedef struct _GtkIconTheme GtkIconTheme; | |
48969 | typedef struct _GtkIconThemeClass GtkIconThemeClass; | |
48970 | typedef struct _GtkIconThemePrivate GtkIconThemePrivate; | |
48971 | ||
48972 | struct _GtkIconTheme | |
48973 | { | |
48974 | ||
48975 | GObject parent_instance; | |
48976 | ||
48977 | GtkIconThemePrivate *priv; | |
48978 | }; | |
48979 | ||
48980 | struct _GtkIconThemeClass | |
48981 | { | |
48982 | GObjectClass parent_class; | |
48983 | ||
48984 | void (* changed) (GtkIconTheme *icon_theme); | |
48985 | }; | |
48986 | # 72 "/usr/include/gtk-2.0/gtk/gtkicontheme.h" | |
48987 | typedef enum | |
48988 | { | |
48989 | GTK_ICON_LOOKUP_NO_SVG = 1 << 0, | |
48990 | GTK_ICON_LOOKUP_FORCE_SVG = 1 << 1, | |
48991 | GTK_ICON_LOOKUP_USE_BUILTIN = 1 << 2 | |
48992 | } GtkIconLookupFlags; | |
48993 | ||
48994 | #define GTK_ICON_THEME_ERROR gtk_icon_theme_error_quark () | |
48995 | # 88 "/usr/include/gtk-2.0/gtk/gtkicontheme.h" | |
48996 | typedef enum { | |
48997 | GTK_ICON_THEME_NOT_FOUND, | |
48998 | GTK_ICON_THEME_FAILED | |
48999 | } GtkIconThemeError; | |
49000 | ||
49001 | GQuark gtk_icon_theme_error_quark (void); | |
49002 | # 104 "/usr/include/gtk-2.0/gtk/gtkicontheme.h" | |
49003 | GType gtk_icon_theme_get_type (void) __attribute__((__const__)); | |
49004 | ||
49005 | GtkIconTheme *gtk_icon_theme_new (void); | |
49006 | GtkIconTheme *gtk_icon_theme_get_default (void); | |
49007 | GtkIconTheme *gtk_icon_theme_get_for_screen (GdkScreen *screen); | |
49008 | void gtk_icon_theme_set_screen (GtkIconTheme *icon_theme, | |
49009 | GdkScreen *screen); | |
49010 | ||
49011 | void gtk_icon_theme_set_search_path (GtkIconTheme *icon_theme, | |
49012 | const gchar *path[], | |
49013 | gint n_elements); | |
49014 | void gtk_icon_theme_get_search_path (GtkIconTheme *icon_theme, | |
49015 | gchar **path[], | |
49016 | gint *n_elements); | |
49017 | void gtk_icon_theme_append_search_path (GtkIconTheme *icon_theme, | |
49018 | const gchar *path); | |
49019 | void gtk_icon_theme_prepend_search_path (GtkIconTheme *icon_theme, | |
49020 | const gchar *path); | |
49021 | ||
49022 | void gtk_icon_theme_set_custom_theme (GtkIconTheme *icon_theme, | |
49023 | const gchar *theme_name); | |
49024 | ||
49025 | gboolean gtk_icon_theme_has_icon (GtkIconTheme *icon_theme, | |
49026 | const gchar *icon_name); | |
49027 | gint *gtk_icon_theme_get_icon_sizes (GtkIconTheme *icon_theme, | |
49028 | const gchar *icon_name); | |
49029 | GtkIconInfo * gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme, | |
49030 | const gchar *icon_name, | |
49031 | gint size, | |
49032 | GtkIconLookupFlags flags); | |
49033 | GdkPixbuf * gtk_icon_theme_load_icon (GtkIconTheme *icon_theme, | |
49034 | const gchar *icon_name, | |
49035 | gint size, | |
49036 | GtkIconLookupFlags flags, | |
49037 | GError **error); | |
49038 | ||
49039 | GList * gtk_icon_theme_list_icons (GtkIconTheme *icon_theme, | |
49040 | const gchar *context); | |
49041 | char * gtk_icon_theme_get_example_icon_name (GtkIconTheme *icon_theme); | |
49042 | ||
49043 | gboolean gtk_icon_theme_rescan_if_needed (GtkIconTheme *icon_theme); | |
49044 | ||
49045 | void gtk_icon_theme_add_builtin_icon (const gchar *icon_name, | |
49046 | gint size, | |
49047 | GdkPixbuf *pixbuf); | |
49048 | ||
49049 | GType gtk_icon_info_get_type (void) __attribute__((__const__)); | |
49050 | GtkIconInfo *gtk_icon_info_copy (GtkIconInfo *icon_info); | |
49051 | void gtk_icon_info_free (GtkIconInfo *icon_info); | |
49052 | ||
49053 | gint gtk_icon_info_get_base_size (GtkIconInfo *icon_info); | |
49054 | const gchar *gtk_icon_info_get_filename (GtkIconInfo *icon_info); | |
49055 | GdkPixbuf * gtk_icon_info_get_builtin_pixbuf (GtkIconInfo *icon_info); | |
49056 | GdkPixbuf * gtk_icon_info_load_icon (GtkIconInfo *icon_info, | |
49057 | GError **error); | |
49058 | ||
49059 | void gtk_icon_info_set_raw_coordinates (GtkIconInfo *icon_info, | |
49060 | gboolean raw_coordinates); | |
49061 | ||
49062 | gboolean gtk_icon_info_get_embedded_rect (GtkIconInfo *icon_info, | |
49063 | GdkRectangle *rectangle); | |
49064 | gboolean gtk_icon_info_get_attach_points (GtkIconInfo *icon_info, | |
49065 | GdkPoint **points, | |
49066 | gint *n_points); | |
49067 | const gchar *gtk_icon_info_get_display_name (GtkIconInfo *icon_info); | |
49068 | ||
49069 | ||
49070 | void _gtk_icon_theme_check_reload (GdkDisplay *display); | |
49071 | ||
49072 | ||
49073 | # 99 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49074 | # 1 "/usr/include/gtk-2.0/gtk/gtkiconview.h" 1 | |
49075 | # 20 "/usr/include/gtk-2.0/gtk/gtkiconview.h" | |
49076 | #define __GTK_ICON_VIEW_H__ | |
49077 | ||
49078 | ||
49079 | ||
49080 | ||
49081 | ||
49082 | ||
49083 | ||
49084 | ||
49085 | #define GTK_TYPE_ICON_VIEW (gtk_icon_view_get_type ()) | |
49086 | #define GTK_ICON_VIEW(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ICON_VIEW, GtkIconView)) | |
49087 | #define GTK_ICON_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_VIEW, GtkIconViewClass)) | |
49088 | #define GTK_IS_ICON_VIEW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ICON_VIEW)) | |
49089 | #define GTK_IS_ICON_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_VIEW)) | |
49090 | #define GTK_ICON_VIEW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_ICON_VIEW, GtkIconViewClass)) | |
49091 | ||
49092 | typedef struct _GtkIconView GtkIconView; | |
49093 | typedef struct _GtkIconViewClass GtkIconViewClass; | |
49094 | typedef struct _GtkIconViewPrivate GtkIconViewPrivate; | |
49095 | ||
49096 | typedef void (* GtkIconViewForeachFunc) (GtkIconView *icon_view, | |
49097 | GtkTreePath *path, | |
49098 | gpointer data); | |
49099 | ||
49100 | typedef enum | |
49101 | { | |
49102 | GTK_ICON_VIEW_NO_DROP, | |
49103 | GTK_ICON_VIEW_DROP_INTO, | |
49104 | GTK_ICON_VIEW_DROP_LEFT, | |
49105 | GTK_ICON_VIEW_DROP_RIGHT, | |
49106 | GTK_ICON_VIEW_DROP_ABOVE, | |
49107 | GTK_ICON_VIEW_DROP_BELOW | |
49108 | } GtkIconViewDropPosition; | |
49109 | ||
49110 | struct _GtkIconView | |
49111 | { | |
49112 | GtkContainer parent; | |
49113 | ||
49114 | GtkIconViewPrivate *priv; | |
49115 | }; | |
49116 | ||
49117 | struct _GtkIconViewClass | |
49118 | { | |
49119 | GtkContainerClass parent_class; | |
49120 | ||
49121 | void (* set_scroll_adjustments) (GtkIconView *icon_view, | |
49122 | GtkAdjustment *hadjustment, | |
49123 | GtkAdjustment *vadjustment); | |
49124 | ||
49125 | void (* item_activated) (GtkIconView *icon_view, | |
49126 | GtkTreePath *path); | |
49127 | void (* selection_changed) (GtkIconView *icon_view); | |
49128 | ||
49129 | ||
49130 | void (* select_all) (GtkIconView *icon_view); | |
49131 | void (* unselect_all) (GtkIconView *icon_view); | |
49132 | void (* select_cursor_item) (GtkIconView *icon_view); | |
49133 | void (* toggle_cursor_item) (GtkIconView *icon_view); | |
49134 | gboolean (* move_cursor) (GtkIconView *icon_view, | |
49135 | GtkMovementStep step, | |
49136 | gint count); | |
49137 | gboolean (* activate_cursor_item) (GtkIconView *icon_view); | |
49138 | }; | |
49139 | ||
49140 | GType gtk_icon_view_get_type (void) __attribute__((__const__)); | |
49141 | GtkWidget * gtk_icon_view_new (void); | |
49142 | GtkWidget * gtk_icon_view_new_with_model (GtkTreeModel *model); | |
49143 | ||
49144 | void gtk_icon_view_set_model (GtkIconView *icon_view, | |
49145 | GtkTreeModel *model); | |
49146 | GtkTreeModel * gtk_icon_view_get_model (GtkIconView *icon_view); | |
49147 | void gtk_icon_view_set_text_column (GtkIconView *icon_view, | |
49148 | gint column); | |
49149 | gint gtk_icon_view_get_text_column (GtkIconView *icon_view); | |
49150 | void gtk_icon_view_set_markup_column (GtkIconView *icon_view, | |
49151 | gint column); | |
49152 | gint gtk_icon_view_get_markup_column (GtkIconView *icon_view); | |
49153 | void gtk_icon_view_set_pixbuf_column (GtkIconView *icon_view, | |
49154 | gint column); | |
49155 | gint gtk_icon_view_get_pixbuf_column (GtkIconView *icon_view); | |
49156 | ||
49157 | void gtk_icon_view_set_orientation (GtkIconView *icon_view, | |
49158 | GtkOrientation orientation); | |
49159 | GtkOrientation gtk_icon_view_get_orientation (GtkIconView *icon_view); | |
49160 | void gtk_icon_view_set_columns (GtkIconView *icon_view, | |
49161 | gint columns); | |
49162 | gint gtk_icon_view_get_columns (GtkIconView *icon_view); | |
49163 | void gtk_icon_view_set_item_width (GtkIconView *icon_view, | |
49164 | gint item_width); | |
49165 | gint gtk_icon_view_get_item_width (GtkIconView *icon_view); | |
49166 | void gtk_icon_view_set_spacing (GtkIconView *icon_view, | |
49167 | gint spacing); | |
49168 | gint gtk_icon_view_get_spacing (GtkIconView *icon_view); | |
49169 | void gtk_icon_view_set_row_spacing (GtkIconView *icon_view, | |
49170 | gint row_spacing); | |
49171 | gint gtk_icon_view_get_row_spacing (GtkIconView *icon_view); | |
49172 | void gtk_icon_view_set_column_spacing (GtkIconView *icon_view, | |
49173 | gint column_spacing); | |
49174 | gint gtk_icon_view_get_column_spacing (GtkIconView *icon_view); | |
49175 | void gtk_icon_view_set_margin (GtkIconView *icon_view, | |
49176 | gint margin); | |
49177 | gint gtk_icon_view_get_margin (GtkIconView *icon_view); | |
49178 | ||
49179 | ||
49180 | GtkTreePath * gtk_icon_view_get_path_at_pos (GtkIconView *icon_view, | |
49181 | gint x, | |
49182 | gint y); | |
49183 | gboolean gtk_icon_view_get_item_at_pos (GtkIconView *icon_view, | |
49184 | gint x, | |
49185 | gint y, | |
49186 | GtkTreePath **path, | |
49187 | GtkCellRenderer **cell); | |
49188 | gboolean gtk_icon_view_get_visible_range (GtkIconView *icon_view, | |
49189 | GtkTreePath **start_path, | |
49190 | GtkTreePath **end_path); | |
49191 | ||
49192 | void gtk_icon_view_selected_foreach (GtkIconView *icon_view, | |
49193 | GtkIconViewForeachFunc func, | |
49194 | gpointer data); | |
49195 | void gtk_icon_view_set_selection_mode (GtkIconView *icon_view, | |
49196 | GtkSelectionMode mode); | |
49197 | GtkSelectionMode gtk_icon_view_get_selection_mode (GtkIconView *icon_view); | |
49198 | void gtk_icon_view_select_path (GtkIconView *icon_view, | |
49199 | GtkTreePath *path); | |
49200 | void gtk_icon_view_unselect_path (GtkIconView *icon_view, | |
49201 | GtkTreePath *path); | |
49202 | gboolean gtk_icon_view_path_is_selected (GtkIconView *icon_view, | |
49203 | GtkTreePath *path); | |
49204 | GList *gtk_icon_view_get_selected_items (GtkIconView *icon_view); | |
49205 | void gtk_icon_view_select_all (GtkIconView *icon_view); | |
49206 | void gtk_icon_view_unselect_all (GtkIconView *icon_view); | |
49207 | void gtk_icon_view_item_activated (GtkIconView *icon_view, | |
49208 | GtkTreePath *path); | |
49209 | void gtk_icon_view_set_cursor (GtkIconView *icon_view, | |
49210 | GtkTreePath *path, | |
49211 | GtkCellRenderer *cell, | |
49212 | gboolean start_editing); | |
49213 | gboolean gtk_icon_view_get_cursor (GtkIconView *icon_view, | |
49214 | GtkTreePath **path, | |
49215 | GtkCellRenderer **cell); | |
49216 | void gtk_icon_view_scroll_to_path (GtkIconView *icon_view, | |
49217 | GtkTreePath *path, | |
49218 | gboolean use_align, | |
49219 | gfloat row_align, | |
49220 | gfloat col_align); | |
49221 | ||
49222 | ||
49223 | void gtk_icon_view_enable_model_drag_source (GtkIconView *icon_view, | |
49224 | GdkModifierType start_button_mask, | |
49225 | const GtkTargetEntry *targets, | |
49226 | gint n_targets, | |
49227 | GdkDragAction actions); | |
49228 | void gtk_icon_view_enable_model_drag_dest (GtkIconView *icon_view, | |
49229 | const GtkTargetEntry *targets, | |
49230 | gint n_targets, | |
49231 | GdkDragAction actions); | |
49232 | void gtk_icon_view_unset_model_drag_source (GtkIconView *icon_view); | |
49233 | void gtk_icon_view_unset_model_drag_dest (GtkIconView *icon_view); | |
49234 | void gtk_icon_view_set_reorderable (GtkIconView *icon_view, | |
49235 | gboolean reorderable); | |
49236 | gboolean gtk_icon_view_get_reorderable (GtkIconView *icon_view); | |
49237 | ||
49238 | ||
49239 | ||
49240 | void gtk_icon_view_set_drag_dest_item (GtkIconView *icon_view, | |
49241 | GtkTreePath *path, | |
49242 | GtkIconViewDropPosition pos); | |
49243 | void gtk_icon_view_get_drag_dest_item (GtkIconView *icon_view, | |
49244 | GtkTreePath **path, | |
49245 | GtkIconViewDropPosition *pos); | |
49246 | gboolean gtk_icon_view_get_dest_item_at_pos (GtkIconView *icon_view, | |
49247 | gint drag_x, | |
49248 | gint drag_y, | |
49249 | GtkTreePath **path, | |
49250 | GtkIconViewDropPosition *pos); | |
49251 | GdkPixmap *gtk_icon_view_create_drag_icon (GtkIconView *icon_view, | |
49252 | GtkTreePath *path); | |
49253 | ||
49254 | ||
49255 | ||
49256 | # 100 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49257 | ||
49258 | # 1 "/usr/include/gtk-2.0/gtk/gtkimagemenuitem.h" 1 | |
49259 | # 28 "/usr/include/gtk-2.0/gtk/gtkimagemenuitem.h" | |
49260 | #define __GTK_IMAGE_MENU_ITEM_H__ | |
49261 | ||
49262 | ||
49263 | ||
49264 | ||
49265 | ||
49266 | ||
49267 | ||
49268 | #define GTK_TYPE_IMAGE_MENU_ITEM (gtk_image_menu_item_get_type ()) | |
49269 | #define GTK_IMAGE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItem)) | |
49270 | #define GTK_IMAGE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItemClass)) | |
49271 | #define GTK_IS_IMAGE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE_MENU_ITEM)) | |
49272 | #define GTK_IS_IMAGE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE_MENU_ITEM)) | |
49273 | #define GTK_IMAGE_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItemClass)) | |
49274 | ||
49275 | ||
49276 | typedef struct _GtkImageMenuItem GtkImageMenuItem; | |
49277 | typedef struct _GtkImageMenuItemClass GtkImageMenuItemClass; | |
49278 | ||
49279 | struct _GtkImageMenuItem | |
49280 | { | |
49281 | GtkMenuItem menu_item; | |
49282 | ||
49283 | ||
49284 | GtkWidget *image; | |
49285 | }; | |
49286 | ||
49287 | struct _GtkImageMenuItemClass | |
49288 | { | |
49289 | GtkMenuItemClass parent_class; | |
49290 | }; | |
49291 | ||
49292 | ||
49293 | GType gtk_image_menu_item_get_type (void) __attribute__((__const__)); | |
49294 | GtkWidget* gtk_image_menu_item_new (void); | |
49295 | GtkWidget* gtk_image_menu_item_new_with_label (const gchar *label); | |
49296 | GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar *label); | |
49297 | GtkWidget* gtk_image_menu_item_new_from_stock (const gchar *stock_id, | |
49298 | GtkAccelGroup *accel_group); | |
49299 | void gtk_image_menu_item_set_image (GtkImageMenuItem *image_menu_item, | |
49300 | GtkWidget *image); | |
49301 | GtkWidget* gtk_image_menu_item_get_image (GtkImageMenuItem *image_menu_item); | |
49302 | ||
49303 | ||
49304 | # 102 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49305 | ||
49306 | # 1 "/usr/include/gtk-2.0/gtk/gtkimcontextsimple.h" 1 | |
49307 | # 21 "/usr/include/gtk-2.0/gtk/gtkimcontextsimple.h" | |
49308 | #define __GTK_IM_CONTEXT_SIMPLE_H__ | |
49309 | ||
49310 | ||
49311 | ||
49312 | ||
49313 | ||
49314 | ||
49315 | ||
49316 | #define GTK_TYPE_IM_CONTEXT_SIMPLE (gtk_im_context_simple_get_type ()) | |
49317 | #define GTK_IM_CONTEXT_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimple)) | |
49318 | #define GTK_IM_CONTEXT_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimpleClass)) | |
49319 | #define GTK_IS_IM_CONTEXT_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE)) | |
49320 | #define GTK_IS_IM_CONTEXT_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT_SIMPLE)) | |
49321 | #define GTK_IM_CONTEXT_SIMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimpleClass)) | |
49322 | ||
49323 | ||
49324 | typedef struct _GtkIMContextSimple GtkIMContextSimple; | |
49325 | typedef struct _GtkIMContextSimpleClass GtkIMContextSimpleClass; | |
49326 | ||
49327 | #define GTK_MAX_COMPOSE_LEN 7 | |
49328 | ||
49329 | struct _GtkIMContextSimple | |
49330 | { | |
49331 | GtkIMContext object; | |
49332 | ||
49333 | GSList *tables; | |
49334 | ||
49335 | guint compose_buffer[7 + 1]; | |
49336 | gunichar tentative_match; | |
49337 | gint tentative_match_len; | |
49338 | ||
49339 | guint in_hex_sequence : 1; | |
49340 | }; | |
49341 | ||
49342 | struct _GtkIMContextSimpleClass | |
49343 | { | |
49344 | GtkIMContextClass parent_class; | |
49345 | }; | |
49346 | ||
49347 | GType gtk_im_context_simple_get_type (void) __attribute__((__const__)); | |
49348 | GtkIMContext *gtk_im_context_simple_new (void); | |
49349 | ||
49350 | void gtk_im_context_simple_add_table (GtkIMContextSimple *context_simple, | |
49351 | guint16 *data, | |
49352 | gint max_seq_len, | |
49353 | gint n_seqs); | |
49354 | ||
49355 | ||
49356 | ||
49357 | # 104 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49358 | # 1 "/usr/include/gtk-2.0/gtk/gtkimmulticontext.h" 1 | |
49359 | # 21 "/usr/include/gtk-2.0/gtk/gtkimmulticontext.h" | |
49360 | #define __GTK_IM_MULTICONTEXT_H__ | |
49361 | ||
49362 | ||
49363 | ||
49364 | ||
49365 | ||
49366 | ||
49367 | #define GTK_TYPE_IM_MULTICONTEXT (gtk_im_multicontext_get_type ()) | |
49368 | #define GTK_IM_MULTICONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontext)) | |
49369 | #define GTK_IM_MULTICONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontextClass)) | |
49370 | #define GTK_IS_IM_MULTICONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_MULTICONTEXT)) | |
49371 | #define GTK_IS_IM_MULTICONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_MULTICONTEXT)) | |
49372 | #define GTK_IM_MULTICONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontextClass)) | |
49373 | ||
49374 | ||
49375 | typedef struct _GtkIMMulticontext GtkIMMulticontext; | |
49376 | typedef struct _GtkIMMulticontextClass GtkIMMulticontextClass; | |
49377 | typedef struct _GtkIMMulticontextPrivate GtkIMMulticontextPrivate; | |
49378 | ||
49379 | struct _GtkIMMulticontext | |
49380 | { | |
49381 | GtkIMContext object; | |
49382 | ||
49383 | GtkIMContext *slave; | |
49384 | ||
49385 | GtkIMMulticontextPrivate *priv; | |
49386 | ||
49387 | const gchar *context_id; | |
49388 | }; | |
49389 | ||
49390 | struct _GtkIMMulticontextClass | |
49391 | { | |
49392 | GtkIMContextClass parent_class; | |
49393 | ||
49394 | ||
49395 | void (*_gtk_reserved1) (void); | |
49396 | void (*_gtk_reserved2) (void); | |
49397 | void (*_gtk_reserved3) (void); | |
49398 | void (*_gtk_reserved4) (void); | |
49399 | }; | |
49400 | ||
49401 | GType gtk_im_multicontext_get_type (void) __attribute__((__const__)); | |
49402 | GtkIMContext *gtk_im_multicontext_new (void); | |
49403 | ||
49404 | void gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context, | |
49405 | GtkMenuShell *menushell); | |
49406 | ||
49407 | ||
49408 | # 105 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49409 | # 1 "/usr/include/gtk-2.0/gtk/gtkinputdialog.h" 1 | |
49410 | # 38 "/usr/include/gtk-2.0/gtk/gtkinputdialog.h" | |
49411 | #define __GTK_INPUTDIALOG_H__ | |
49412 | ||
49413 | ||
49414 | ||
49415 | ||
49416 | ||
49417 | ||
49418 | ||
49419 | ||
49420 | #define GTK_TYPE_INPUT_DIALOG (gtk_input_dialog_get_type ()) | |
49421 | #define GTK_INPUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_INPUT_DIALOG, GtkInputDialog)) | |
49422 | #define GTK_INPUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_INPUT_DIALOG, GtkInputDialogClass)) | |
49423 | #define GTK_IS_INPUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_INPUT_DIALOG)) | |
49424 | #define GTK_IS_INPUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INPUT_DIALOG)) | |
49425 | #define GTK_INPUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_INPUT_DIALOG, GtkInputDialogClass)) | |
49426 | ||
49427 | ||
49428 | typedef struct _GtkInputDialog GtkInputDialog; | |
49429 | typedef struct _GtkInputDialogClass GtkInputDialogClass; | |
49430 | ||
49431 | struct _GtkInputDialog | |
49432 | { | |
49433 | GtkDialog dialog; | |
49434 | ||
49435 | GtkWidget *axis_list; | |
49436 | GtkWidget *axis_listbox; | |
49437 | GtkWidget *mode_optionmenu; | |
49438 | ||
49439 | GtkWidget *close_button; | |
49440 | GtkWidget *save_button; | |
49441 | ||
49442 | GtkWidget *axis_items[GDK_AXIS_LAST]; | |
49443 | GdkDevice *current_device; | |
49444 | ||
49445 | GtkWidget *keys_list; | |
49446 | GtkWidget *keys_listbox; | |
49447 | }; | |
49448 | ||
49449 | struct _GtkInputDialogClass | |
49450 | { | |
49451 | GtkDialogClass parent_class; | |
49452 | ||
49453 | void (* enable_device) (GtkInputDialog *inputd, | |
49454 | GdkDevice *device); | |
49455 | void (* disable_device) (GtkInputDialog *inputd, | |
49456 | GdkDevice *device); | |
49457 | ||
49458 | ||
49459 | void (*_gtk_reserved1) (void); | |
49460 | void (*_gtk_reserved2) (void); | |
49461 | void (*_gtk_reserved3) (void); | |
49462 | void (*_gtk_reserved4) (void); | |
49463 | }; | |
49464 | ||
49465 | ||
49466 | GType gtk_input_dialog_get_type (void) __attribute__((__const__)); | |
49467 | GtkWidget* gtk_input_dialog_new (void); | |
49468 | ||
49469 | ||
49470 | ||
49471 | # 106 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49472 | # 1 "/usr/include/gtk-2.0/gtk/gtkinvisible.h" 1 | |
49473 | # 28 "/usr/include/gtk-2.0/gtk/gtkinvisible.h" | |
49474 | #define __GTK_INVISIBLE_H__ | |
49475 | ||
49476 | ||
49477 | ||
49478 | ||
49479 | ||
49480 | #define GTK_TYPE_INVISIBLE (gtk_invisible_get_type ()) | |
49481 | #define GTK_INVISIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_INVISIBLE, GtkInvisible)) | |
49482 | #define GTK_INVISIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_INVISIBLE, GtkInvisibleClass)) | |
49483 | #define GTK_IS_INVISIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_INVISIBLE)) | |
49484 | #define GTK_IS_INVISIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INVISIBLE)) | |
49485 | #define GTK_INVISIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_INVISIBLE, GtkInvisibleClass)) | |
49486 | ||
49487 | ||
49488 | typedef struct _GtkInvisible GtkInvisible; | |
49489 | typedef struct _GtkInvisibleClass GtkInvisibleClass; | |
49490 | ||
49491 | struct _GtkInvisible | |
49492 | { | |
49493 | GtkWidget widget; | |
49494 | gboolean has_user_ref_count; | |
49495 | GdkScreen *screen; | |
49496 | }; | |
49497 | ||
49498 | struct _GtkInvisibleClass | |
49499 | { | |
49500 | GtkWidgetClass parent_class; | |
49501 | ||
49502 | ||
49503 | void (*_gtk_reserved1) (void); | |
49504 | void (*_gtk_reserved2) (void); | |
49505 | void (*_gtk_reserved3) (void); | |
49506 | void (*_gtk_reserved4) (void); | |
49507 | }; | |
49508 | ||
49509 | GType gtk_invisible_get_type (void) __attribute__((__const__)); | |
49510 | ||
49511 | GtkWidget* gtk_invisible_new (void); | |
49512 | GtkWidget* gtk_invisible_new_for_screen (GdkScreen *screen); | |
49513 | void gtk_invisible_set_screen (GtkInvisible *invisible, | |
49514 | GdkScreen *screen); | |
49515 | GdkScreen* gtk_invisible_get_screen (GtkInvisible *invisible); | |
49516 | ||
49517 | ||
49518 | # 107 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49519 | ||
49520 | ||
49521 | ||
49522 | # 1 "/usr/include/gtk-2.0/gtk/gtklayout.h" 1 | |
49523 | # 32 "/usr/include/gtk-2.0/gtk/gtklayout.h" | |
49524 | #define __GTK_LAYOUT_H__ | |
49525 | ||
49526 | ||
49527 | ||
49528 | ||
49529 | ||
49530 | ||
49531 | ||
49532 | #define GTK_TYPE_LAYOUT (gtk_layout_get_type ()) | |
49533 | #define GTK_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LAYOUT, GtkLayout)) | |
49534 | #define GTK_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LAYOUT, GtkLayoutClass)) | |
49535 | #define GTK_IS_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LAYOUT)) | |
49536 | #define GTK_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LAYOUT)) | |
49537 | #define GTK_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LAYOUT, GtkLayoutClass)) | |
49538 | ||
49539 | ||
49540 | typedef struct _GtkLayout GtkLayout; | |
49541 | typedef struct _GtkLayoutClass GtkLayoutClass; | |
49542 | ||
49543 | struct _GtkLayout | |
49544 | { | |
49545 | GtkContainer container; | |
49546 | ||
49547 | GList *children; | |
49548 | ||
49549 | guint width; | |
49550 | guint height; | |
49551 | ||
49552 | GtkAdjustment *hadjustment; | |
49553 | GtkAdjustment *vadjustment; | |
49554 | ||
49555 | ||
49556 | GdkWindow *bin_window; | |
49557 | ||
49558 | ||
49559 | GdkVisibilityState visibility; | |
49560 | gint scroll_x; | |
49561 | gint scroll_y; | |
49562 | ||
49563 | guint freeze_count; | |
49564 | }; | |
49565 | ||
49566 | struct _GtkLayoutClass | |
49567 | { | |
49568 | GtkContainerClass parent_class; | |
49569 | ||
49570 | void (*set_scroll_adjustments) (GtkLayout *layout, | |
49571 | GtkAdjustment *hadjustment, | |
49572 | GtkAdjustment *vadjustment); | |
49573 | ||
49574 | ||
49575 | void (*_gtk_reserved1) (void); | |
49576 | void (*_gtk_reserved2) (void); | |
49577 | void (*_gtk_reserved3) (void); | |
49578 | void (*_gtk_reserved4) (void); | |
49579 | }; | |
49580 | ||
49581 | GType gtk_layout_get_type (void) __attribute__((__const__)); | |
49582 | GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment, | |
49583 | GtkAdjustment *vadjustment); | |
49584 | void gtk_layout_put (GtkLayout *layout, | |
49585 | GtkWidget *child_widget, | |
49586 | gint x, | |
49587 | gint y); | |
49588 | ||
49589 | void gtk_layout_move (GtkLayout *layout, | |
49590 | GtkWidget *child_widget, | |
49591 | gint x, | |
49592 | gint y); | |
49593 | ||
49594 | void gtk_layout_set_size (GtkLayout *layout, | |
49595 | guint width, | |
49596 | guint height); | |
49597 | void gtk_layout_get_size (GtkLayout *layout, | |
49598 | guint *width, | |
49599 | guint *height); | |
49600 | ||
49601 | GtkAdjustment* gtk_layout_get_hadjustment (GtkLayout *layout); | |
49602 | GtkAdjustment* gtk_layout_get_vadjustment (GtkLayout *layout); | |
49603 | void gtk_layout_set_hadjustment (GtkLayout *layout, | |
49604 | GtkAdjustment *adjustment); | |
49605 | void gtk_layout_set_vadjustment (GtkLayout *layout, | |
49606 | GtkAdjustment *adjustment); | |
49607 | # 126 "/usr/include/gtk-2.0/gtk/gtklayout.h" | |
49608 | void gtk_layout_freeze (GtkLayout *layout); | |
49609 | void gtk_layout_thaw (GtkLayout *layout); | |
49610 | ||
49611 | ||
49612 | ||
49613 | # 111 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49614 | # 1 "/usr/include/gtk-2.0/gtk/gtklist.h" 1 | |
49615 | # 30 "/usr/include/gtk-2.0/gtk/gtklist.h" | |
49616 | #define __GTK_LIST_H__ | |
49617 | ||
49618 | ||
49619 | ||
49620 | ||
49621 | ||
49622 | # 1 "/usr/include/gtk-2.0/gtk/gtklistitem.h" 1 | |
49623 | # 30 "/usr/include/gtk-2.0/gtk/gtklistitem.h" | |
49624 | #define __GTK_LIST_ITEM_H__ | |
49625 | ||
49626 | ||
49627 | ||
49628 | ||
49629 | ||
49630 | ||
49631 | ||
49632 | ||
49633 | ||
49634 | #define GTK_TYPE_LIST_ITEM (gtk_list_item_get_type ()) | |
49635 | #define GTK_LIST_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LIST_ITEM, GtkListItem)) | |
49636 | #define GTK_LIST_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST_ITEM, GtkListItemClass)) | |
49637 | #define GTK_IS_LIST_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LIST_ITEM)) | |
49638 | #define GTK_IS_LIST_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST_ITEM)) | |
49639 | #define GTK_LIST_ITEM_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_LIST_ITEM, GtkListItemClass)) | |
49640 | ||
49641 | ||
49642 | typedef struct _GtkListItem GtkListItem; | |
49643 | typedef struct _GtkListItemClass GtkListItemClass; | |
49644 | ||
49645 | struct _GtkListItem | |
49646 | { | |
49647 | GtkItem item; | |
49648 | }; | |
49649 | ||
49650 | struct _GtkListItemClass | |
49651 | { | |
49652 | GtkItemClass parent_class; | |
49653 | ||
49654 | void (*toggle_focus_row) (GtkListItem *list_item); | |
49655 | void (*select_all) (GtkListItem *list_item); | |
49656 | void (*unselect_all) (GtkListItem *list_item); | |
49657 | void (*undo_selection) (GtkListItem *list_item); | |
49658 | void (*start_selection) (GtkListItem *list_item); | |
49659 | void (*end_selection) (GtkListItem *list_item); | |
49660 | void (*extend_selection) (GtkListItem *list_item, | |
49661 | GtkScrollType scroll_type, | |
49662 | gfloat position, | |
49663 | gboolean auto_start_selection); | |
49664 | void (*scroll_horizontal) (GtkListItem *list_item, | |
49665 | GtkScrollType scroll_type, | |
49666 | gfloat position); | |
49667 | void (*scroll_vertical) (GtkListItem *list_item, | |
49668 | GtkScrollType scroll_type, | |
49669 | gfloat position); | |
49670 | void (*toggle_add_mode) (GtkListItem *list_item); | |
49671 | }; | |
49672 | ||
49673 | ||
49674 | GtkType gtk_list_item_get_type (void) __attribute__((__const__)); | |
49675 | GtkWidget* gtk_list_item_new (void); | |
49676 | GtkWidget* gtk_list_item_new_with_label (const gchar *label); | |
49677 | void gtk_list_item_select (GtkListItem *list_item); | |
49678 | void gtk_list_item_deselect (GtkListItem *list_item); | |
49679 | ||
49680 | ||
49681 | ||
49682 | ||
49683 | # 37 "/usr/include/gtk-2.0/gtk/gtklist.h" 2 | |
49684 | ||
49685 | ||
49686 | ||
49687 | #define GTK_TYPE_LIST (gtk_list_get_type ()) | |
49688 | #define GTK_LIST(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LIST, GtkList)) | |
49689 | #define GTK_LIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST, GtkListClass)) | |
49690 | #define GTK_IS_LIST(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LIST)) | |
49691 | #define GTK_IS_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST)) | |
49692 | #define GTK_LIST_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_LIST, GtkListClass)) | |
49693 | ||
49694 | ||
49695 | typedef struct _GtkList GtkList; | |
49696 | typedef struct _GtkListClass GtkListClass; | |
49697 | ||
49698 | struct _GtkList | |
49699 | { | |
49700 | GtkContainer container; | |
49701 | ||
49702 | GList *children; | |
49703 | GList *selection; | |
49704 | ||
49705 | GList *undo_selection; | |
49706 | GList *undo_unselection; | |
49707 | ||
49708 | GtkWidget *last_focus_child; | |
49709 | GtkWidget *undo_focus_child; | |
49710 | ||
49711 | guint htimer; | |
49712 | guint vtimer; | |
49713 | ||
49714 | gint anchor; | |
49715 | gint drag_pos; | |
49716 | GtkStateType anchor_state; | |
49717 | ||
49718 | guint selection_mode : 2; | |
49719 | guint drag_selection:1; | |
49720 | guint add_mode:1; | |
49721 | }; | |
49722 | ||
49723 | struct _GtkListClass | |
49724 | { | |
49725 | GtkContainerClass parent_class; | |
49726 | ||
49727 | void (* selection_changed) (GtkList *list); | |
49728 | void (* select_child) (GtkList *list, | |
49729 | GtkWidget *child); | |
49730 | void (* unselect_child) (GtkList *list, | |
49731 | GtkWidget *child); | |
49732 | }; | |
49733 | ||
49734 | ||
49735 | GtkType gtk_list_get_type (void) __attribute__((__const__)); | |
49736 | GtkWidget* gtk_list_new (void); | |
49737 | void gtk_list_insert_items (GtkList *list, | |
49738 | GList *items, | |
49739 | gint position); | |
49740 | void gtk_list_append_items (GtkList *list, | |
49741 | GList *items); | |
49742 | void gtk_list_prepend_items (GtkList *list, | |
49743 | GList *items); | |
49744 | void gtk_list_remove_items (GtkList *list, | |
49745 | GList *items); | |
49746 | void gtk_list_remove_items_no_unref (GtkList *list, | |
49747 | GList *items); | |
49748 | void gtk_list_clear_items (GtkList *list, | |
49749 | gint start, | |
49750 | gint end); | |
49751 | void gtk_list_select_item (GtkList *list, | |
49752 | gint item); | |
49753 | void gtk_list_unselect_item (GtkList *list, | |
49754 | gint item); | |
49755 | void gtk_list_select_child (GtkList *list, | |
49756 | GtkWidget *child); | |
49757 | void gtk_list_unselect_child (GtkList *list, | |
49758 | GtkWidget *child); | |
49759 | gint gtk_list_child_position (GtkList *list, | |
49760 | GtkWidget *child); | |
49761 | void gtk_list_set_selection_mode (GtkList *list, | |
49762 | GtkSelectionMode mode); | |
49763 | ||
49764 | void gtk_list_extend_selection (GtkList *list, | |
49765 | GtkScrollType scroll_type, | |
49766 | gfloat position, | |
49767 | gboolean auto_start_selection); | |
49768 | void gtk_list_start_selection (GtkList *list); | |
49769 | void gtk_list_end_selection (GtkList *list); | |
49770 | void gtk_list_select_all (GtkList *list); | |
49771 | void gtk_list_unselect_all (GtkList *list); | |
49772 | void gtk_list_scroll_horizontal (GtkList *list, | |
49773 | GtkScrollType scroll_type, | |
49774 | gfloat position); | |
49775 | void gtk_list_scroll_vertical (GtkList *list, | |
49776 | GtkScrollType scroll_type, | |
49777 | gfloat position); | |
49778 | void gtk_list_toggle_add_mode (GtkList *list); | |
49779 | void gtk_list_toggle_focus_row (GtkList *list); | |
49780 | void gtk_list_toggle_row (GtkList *list, | |
49781 | GtkWidget *item); | |
49782 | void gtk_list_undo_selection (GtkList *list); | |
49783 | void gtk_list_end_drag_selection (GtkList *list); | |
49784 | ||
49785 | ||
49786 | # 112 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49787 | # 1 "/usr/include/gtk-2.0/gtk/gtklistitem.h" 1 | |
49788 | # 113 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49789 | ||
49790 | # 1 "/usr/include/gtk-2.0/gtk/gtkmain.h" 1 | |
49791 | # 28 "/usr/include/gtk-2.0/gtk/gtkmain.h" | |
49792 | #define __GTK_MAIN_H__ | |
49793 | # 38 "/usr/include/gtk-2.0/gtk/gtkmain.h" | |
49794 | ||
49795 | ||
49796 | ||
49797 | ||
49798 | #define GTK_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 10) | |
49799 | ||
49800 | ||
49801 | ||
49802 | ||
49803 | #define GTK_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20) | |
49804 | ||
49805 | ||
49806 | ||
49807 | #define GTK_PRIORITY_HIGH G_PRIORITY_HIGH | |
49808 | #define GTK_PRIORITY_INTERNAL GTK_PRIORITY_REDRAW | |
49809 | #define GTK_PRIORITY_DEFAULT G_PRIORITY_DEFAULT_IDLE | |
49810 | #define GTK_PRIORITY_LOW G_PRIORITY_LOW | |
49811 | ||
49812 | ||
49813 | ||
49814 | typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget, | |
49815 | GdkEventKey *event, | |
49816 | gpointer func_data); | |
49817 | # 71 "/usr/include/gtk-2.0/gtk/gtkmain.h" | |
49818 | #define GTKMAIN_C_VAR extern | |
49819 | ||
49820 | ||
49821 | extern const guint gtk_major_version; | |
49822 | extern const guint gtk_minor_version; | |
49823 | extern const guint gtk_micro_version; | |
49824 | extern const guint gtk_binary_age; | |
49825 | extern const guint gtk_interface_age; | |
49826 | gchar* gtk_check_version (guint required_major, | |
49827 | guint required_minor, | |
49828 | guint required_micro); | |
49829 | ||
49830 | ||
49831 | ||
49832 | ||
49833 | ||
49834 | gboolean gtk_parse_args (int *argc, | |
49835 | char ***argv); | |
49836 | ||
49837 | void gtk_init (int *argc, | |
49838 | char ***argv); | |
49839 | ||
49840 | gboolean gtk_init_check (int *argc, | |
49841 | char ***argv); | |
49842 | ||
49843 | gboolean gtk_init_with_args (int *argc, | |
49844 | char ***argv, | |
49845 | char *parameter_string, | |
49846 | GOptionEntry *entries, | |
49847 | char *translation_domain, | |
49848 | GError **error); | |
49849 | ||
49850 | GOptionGroup *gtk_get_option_group (gboolean open_default_display); | |
49851 | # 127 "/usr/include/gtk-2.0/gtk/gtkmain.h" | |
49852 | void gtk_exit (gint error_code); | |
49853 | ||
49854 | ||
49855 | void gtk_disable_setlocale (void); | |
49856 | gchar * gtk_set_locale (void); | |
49857 | PangoLanguage *gtk_get_default_language (void); | |
49858 | gboolean gtk_events_pending (void); | |
49859 | ||
49860 | ||
49861 | ||
49862 | ||
49863 | ||
49864 | void gtk_main_do_event (GdkEvent *event); | |
49865 | ||
49866 | void gtk_main (void); | |
49867 | guint gtk_main_level (void); | |
49868 | void gtk_main_quit (void); | |
49869 | gboolean gtk_main_iteration (void); | |
49870 | ||
49871 | gboolean gtk_main_iteration_do (gboolean blocking); | |
49872 | ||
49873 | gboolean gtk_true (void) __attribute__((__const__)); | |
49874 | gboolean gtk_false (void) __attribute__((__const__)); | |
49875 | ||
49876 | void gtk_grab_add (GtkWidget *widget); | |
49877 | GtkWidget* gtk_grab_get_current (void); | |
49878 | void gtk_grab_remove (GtkWidget *widget); | |
49879 | ||
49880 | void gtk_init_add (GtkFunction function, | |
49881 | gpointer data); | |
49882 | void gtk_quit_add_destroy (guint main_level, | |
49883 | GtkObject *object); | |
49884 | guint gtk_quit_add (guint main_level, | |
49885 | GtkFunction function, | |
49886 | gpointer data); | |
49887 | guint gtk_quit_add_full (guint main_level, | |
49888 | GtkFunction function, | |
49889 | GtkCallbackMarshal marshal, | |
49890 | gpointer data, | |
49891 | GtkDestroyNotify destroy); | |
49892 | void gtk_quit_remove (guint quit_handler_id); | |
49893 | void gtk_quit_remove_by_data (gpointer data); | |
49894 | ||
49895 | guint gtk_timeout_add (guint32 interval, | |
49896 | GtkFunction function, | |
49897 | gpointer data); | |
49898 | guint gtk_timeout_add_full (guint32 interval, | |
49899 | GtkFunction function, | |
49900 | GtkCallbackMarshal marshal, | |
49901 | gpointer data, | |
49902 | GtkDestroyNotify destroy); | |
49903 | void gtk_timeout_remove (guint timeout_handler_id); | |
49904 | ||
49905 | guint gtk_idle_add (GtkFunction function, | |
49906 | gpointer data); | |
49907 | guint gtk_idle_add_priority (gint priority, | |
49908 | GtkFunction function, | |
49909 | gpointer data); | |
49910 | guint gtk_idle_add_full (gint priority, | |
49911 | GtkFunction function, | |
49912 | GtkCallbackMarshal marshal, | |
49913 | gpointer data, | |
49914 | GtkDestroyNotify destroy); | |
49915 | void gtk_idle_remove (guint idle_handler_id); | |
49916 | void gtk_idle_remove_by_data (gpointer data); | |
49917 | guint gtk_input_add_full (gint source, | |
49918 | GdkInputCondition condition, | |
49919 | GdkInputFunction function, | |
49920 | GtkCallbackMarshal marshal, | |
49921 | gpointer data, | |
49922 | GtkDestroyNotify destroy); | |
49923 | void gtk_input_remove (guint input_handler_id); | |
49924 | ||
49925 | ||
49926 | guint gtk_key_snooper_install (GtkKeySnoopFunc snooper, | |
49927 | gpointer func_data); | |
49928 | void gtk_key_snooper_remove (guint snooper_handler_id); | |
49929 | ||
49930 | GdkEvent* gtk_get_current_event (void); | |
49931 | guint32 gtk_get_current_event_time (void); | |
49932 | gboolean gtk_get_current_event_state (GdkModifierType *state); | |
49933 | ||
49934 | GtkWidget* gtk_get_event_widget (GdkEvent *event); | |
49935 | ||
49936 | ||
49937 | ||
49938 | ||
49939 | void gtk_propagate_event (GtkWidget *widget, | |
49940 | GdkEvent *event); | |
49941 | ||
49942 | gboolean _gtk_boolean_handled_accumulator (GSignalInvocationHint *ihint, | |
49943 | GValue *return_accu, | |
49944 | const GValue *handler_return, | |
49945 | gpointer dummy); | |
49946 | ||
49947 | gchar *_gtk_get_lc_ctype (void); | |
49948 | ||
49949 | ||
49950 | # 115 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
49951 | ||
49952 | # 1 "/usr/include/gtk-2.0/gtk/gtkmenubar.h" 1 | |
49953 | # 28 "/usr/include/gtk-2.0/gtk/gtkmenubar.h" | |
49954 | #define __GTK_MENU_BAR_H__ | |
49955 | ||
49956 | ||
49957 | ||
49958 | ||
49959 | ||
49960 | ||
49961 | ||
49962 | ||
49963 | ||
49964 | #define GTK_TYPE_MENU_BAR (gtk_menu_bar_get_type ()) | |
49965 | #define GTK_MENU_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_BAR, GtkMenuBar)) | |
49966 | #define GTK_MENU_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_BAR, GtkMenuBarClass)) | |
49967 | #define GTK_IS_MENU_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_BAR)) | |
49968 | #define GTK_IS_MENU_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_BAR)) | |
49969 | #define GTK_MENU_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_BAR, GtkMenuBarClass)) | |
49970 | ||
49971 | typedef struct _GtkMenuBar GtkMenuBar; | |
49972 | typedef struct _GtkMenuBarClass GtkMenuBarClass; | |
49973 | ||
49974 | struct _GtkMenuBar | |
49975 | { | |
49976 | GtkMenuShell menu_shell; | |
49977 | }; | |
49978 | ||
49979 | struct _GtkMenuBarClass | |
49980 | { | |
49981 | GtkMenuShellClass parent_class; | |
49982 | ||
49983 | ||
49984 | void (*_gtk_reserved1) (void); | |
49985 | void (*_gtk_reserved2) (void); | |
49986 | void (*_gtk_reserved3) (void); | |
49987 | void (*_gtk_reserved4) (void); | |
49988 | }; | |
49989 | ||
49990 | ||
49991 | GType gtk_menu_bar_get_type (void) __attribute__((__const__)); | |
49992 | GtkWidget* gtk_menu_bar_new (void); | |
49993 | ||
49994 | GtkPackDirection gtk_menu_bar_get_pack_direction (GtkMenuBar *menubar); | |
49995 | void gtk_menu_bar_set_pack_direction (GtkMenuBar *menubar, | |
49996 | GtkPackDirection pack_dir); | |
49997 | GtkPackDirection gtk_menu_bar_get_child_pack_direction (GtkMenuBar *menubar); | |
49998 | void gtk_menu_bar_set_child_pack_direction (GtkMenuBar *menubar, | |
49999 | GtkPackDirection child_pack_dir); | |
50000 | ||
50001 | ||
50002 | #define gtk_menu_bar_append(menu,child) gtk_menu_shell_append ((GtkMenuShell *)(menu),(child)) | |
50003 | #define gtk_menu_bar_prepend(menu,child) gtk_menu_shell_prepend ((GtkMenuShell *)(menu),(child)) | |
50004 | #define gtk_menu_bar_insert(menu,child,pos) gtk_menu_shell_insert ((GtkMenuShell *)(menu),(child),(pos)) | |
50005 | ||
50006 | ||
50007 | ||
50008 | void _gtk_menu_bar_cycle_focus (GtkMenuBar *menubar, | |
50009 | GtkDirectionType dir); | |
50010 | ||
50011 | ||
50012 | ||
50013 | # 117 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
50014 | ||
50015 | ||
50016 | # 1 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h" 1 | |
50017 | # 23 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h" | |
50018 | #define __GTK_MENU_TOOL_BUTTON_H__ | |
50019 | ||
50020 | # 1 "/usr/include/gtk-2.0/gtk/gtkmenu.h" 1 | |
50021 | # 26 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h" 2 | |
50022 | # 1 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" 1 | |
50023 | # 24 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" | |
50024 | #define __GTK_TOOL_BUTTON_H__ | |
50025 | ||
50026 | # 1 "/usr/include/gtk-2.0/gtk/gtktoolitem.h" 1 | |
50027 | # 24 "/usr/include/gtk-2.0/gtk/gtktoolitem.h" | |
50028 | #define __GTK_TOOL_ITEM_H__ | |
50029 | ||
50030 | ||
50031 | # 1 "/usr/include/gtk-2.0/gtk/gtktooltips.h" 1 | |
50032 | # 28 "/usr/include/gtk-2.0/gtk/gtktooltips.h" | |
50033 | #define __GTK_TOOLTIPS_H__ | |
50034 | ||
50035 | ||
50036 | ||
50037 | ||
50038 | ||
50039 | ||
50040 | ||
50041 | #define GTK_TYPE_TOOLTIPS (gtk_tooltips_get_type ()) | |
50042 | #define GTK_TOOLTIPS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLTIPS, GtkTooltips)) | |
50043 | #define GTK_TOOLTIPS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOLTIPS, GtkTooltipsClass)) | |
50044 | #define GTK_IS_TOOLTIPS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLTIPS)) | |
50045 | #define GTK_IS_TOOLTIPS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOLTIPS)) | |
50046 | #define GTK_TOOLTIPS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOLTIPS, GtkTooltipsClass)) | |
50047 | ||
50048 | ||
50049 | typedef struct _GtkTooltips GtkTooltips; | |
50050 | typedef struct _GtkTooltipsClass GtkTooltipsClass; | |
50051 | typedef struct _GtkTooltipsData GtkTooltipsData; | |
50052 | ||
50053 | struct _GtkTooltipsData | |
50054 | { | |
50055 | GtkTooltips *tooltips; | |
50056 | GtkWidget *widget; | |
50057 | gchar *tip_text; | |
50058 | gchar *tip_private; | |
50059 | }; | |
50060 | ||
50061 | struct _GtkTooltips | |
50062 | { | |
50063 | GtkObject parent_instance; | |
50064 | ||
50065 | GtkWidget *tip_window; | |
50066 | GtkWidget *tip_label; | |
50067 | GtkTooltipsData *active_tips_data; | |
50068 | GList *tips_data_list; | |
50069 | ||
50070 | guint delay : 30; | |
50071 | guint enabled : 1; | |
50072 | guint have_grab : 1; | |
50073 | guint use_sticky_delay : 1; | |
50074 | gint timer_tag; | |
50075 | GTimeVal last_popdown; | |
50076 | }; | |
50077 | ||
50078 | struct _GtkTooltipsClass | |
50079 | { | |
50080 | GtkObjectClass parent_class; | |
50081 | ||
50082 | ||
50083 | void (*_gtk_reserved1) (void); | |
50084 | void (*_gtk_reserved2) (void); | |
50085 | void (*_gtk_reserved3) (void); | |
50086 | void (*_gtk_reserved4) (void); | |
50087 | }; | |
50088 | ||
50089 | GType gtk_tooltips_get_type (void) __attribute__((__const__)); | |
50090 | GtkTooltips* gtk_tooltips_new (void); | |
50091 | ||
50092 | void gtk_tooltips_enable (GtkTooltips *tooltips); | |
50093 | void gtk_tooltips_disable (GtkTooltips *tooltips); | |
50094 | ||
50095 | void gtk_tooltips_set_delay (GtkTooltips *tooltips, | |
50096 | guint delay); | |
50097 | ||
50098 | void gtk_tooltips_set_tip (GtkTooltips *tooltips, | |
50099 | GtkWidget *widget, | |
50100 | const gchar *tip_text, | |
50101 | const gchar *tip_private); | |
50102 | GtkTooltipsData* gtk_tooltips_data_get (GtkWidget *widget); | |
50103 | void gtk_tooltips_force_window (GtkTooltips *tooltips); | |
50104 | ||
50105 | ||
50106 | void _gtk_tooltips_toggle_keyboard_mode (GtkWidget *widget); | |
50107 | ||
50108 | gboolean gtk_tooltips_get_info_from_tip_window (GtkWindow *tip_window, | |
50109 | GtkTooltips **tooltips, | |
50110 | GtkWidget **current_widget); | |
50111 | ||
50112 | ||
50113 | # 28 "/usr/include/gtk-2.0/gtk/gtktoolitem.h" 2 | |
50114 | ||
50115 | ||
50116 | ||
50117 | ||
50118 | #define GTK_TYPE_TOOL_ITEM (gtk_tool_item_get_type ()) | |
50119 | #define GTK_TOOL_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_TOOL_ITEM, GtkToolItem)) | |
50120 | #define GTK_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOL_ITEM, GtkToolItemClass)) | |
50121 | #define GTK_IS_TOOL_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_TOOL_ITEM)) | |
50122 | #define GTK_IS_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOL_ITEM)) | |
50123 | #define GTK_TOOL_ITEM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GTK_TYPE_TOOL_ITEM, GtkToolItemClass)) | |
50124 | ||
50125 | typedef struct _GtkToolItem GtkToolItem; | |
50126 | typedef struct _GtkToolItemClass GtkToolItemClass; | |
50127 | typedef struct _GtkToolItemPrivate GtkToolItemPrivate; | |
50128 | ||
50129 | struct _GtkToolItem | |
50130 | { | |
50131 | GtkBin parent; | |
50132 | ||
50133 | ||
50134 | GtkToolItemPrivate *priv; | |
50135 | }; | |
50136 | ||
50137 | struct _GtkToolItemClass | |
50138 | { | |
50139 | GtkBinClass parent_class; | |
50140 | ||
50141 | ||
50142 | gboolean (* create_menu_proxy) (GtkToolItem *tool_item); | |
50143 | void (* toolbar_reconfigured) (GtkToolItem *tool_item); | |
50144 | gboolean (* set_tooltip) (GtkToolItem *tool_item, | |
50145 | GtkTooltips *tooltips, | |
50146 | const gchar *tip_text, | |
50147 | const gchar *tip_private); | |
50148 | ||
50149 | ||
50150 | void (* _gtk_reserved1) (void); | |
50151 | void (* _gtk_reserved2) (void); | |
50152 | void (* _gtk_reserved3) (void); | |
50153 | void (* _gtk_reserved4) (void); | |
50154 | }; | |
50155 | ||
50156 | GType gtk_tool_item_get_type (void) __attribute__((__const__)); | |
50157 | GtkToolItem *gtk_tool_item_new (void); | |
50158 | ||
50159 | void gtk_tool_item_set_homogeneous (GtkToolItem *tool_item, | |
50160 | gboolean homogeneous); | |
50161 | gboolean gtk_tool_item_get_homogeneous (GtkToolItem *tool_item); | |
50162 | ||
50163 | void gtk_tool_item_set_expand (GtkToolItem *tool_item, | |
50164 | gboolean expand); | |
50165 | gboolean gtk_tool_item_get_expand (GtkToolItem *tool_item); | |
50166 | ||
50167 | void gtk_tool_item_set_tooltip (GtkToolItem *tool_item, | |
50168 | GtkTooltips *tooltips, | |
50169 | const gchar *tip_text, | |
50170 | const gchar *tip_private); | |
50171 | ||
50172 | void gtk_tool_item_set_use_drag_window (GtkToolItem *toolitem, | |
50173 | gboolean use_drag_window); | |
50174 | gboolean gtk_tool_item_get_use_drag_window (GtkToolItem *toolitem); | |
50175 | ||
50176 | void gtk_tool_item_set_visible_horizontal (GtkToolItem *toolitem, | |
50177 | gboolean visible_horizontal); | |
50178 | gboolean gtk_tool_item_get_visible_horizontal (GtkToolItem *toolitem); | |
50179 | ||
50180 | void gtk_tool_item_set_visible_vertical (GtkToolItem *toolitem, | |
50181 | gboolean visible_vertical); | |
50182 | gboolean gtk_tool_item_get_visible_vertical (GtkToolItem *toolitem); | |
50183 | ||
50184 | gboolean gtk_tool_item_get_is_important (GtkToolItem *tool_item); | |
50185 | void gtk_tool_item_set_is_important (GtkToolItem *tool_item, | |
50186 | gboolean is_important); | |
50187 | ||
50188 | GtkIconSize gtk_tool_item_get_icon_size (GtkToolItem *tool_item); | |
50189 | GtkOrientation gtk_tool_item_get_orientation (GtkToolItem *tool_item); | |
50190 | GtkToolbarStyle gtk_tool_item_get_toolbar_style (GtkToolItem *tool_item); | |
50191 | GtkReliefStyle gtk_tool_item_get_relief_style (GtkToolItem *tool_item); | |
50192 | ||
50193 | GtkWidget * gtk_tool_item_retrieve_proxy_menu_item (GtkToolItem *tool_item); | |
50194 | GtkWidget * gtk_tool_item_get_proxy_menu_item (GtkToolItem *tool_item, | |
50195 | const gchar *menu_item_id); | |
50196 | void gtk_tool_item_set_proxy_menu_item (GtkToolItem *tool_item, | |
50197 | const gchar *menu_item_id, | |
50198 | GtkWidget *menu_item); | |
50199 | void gtk_tool_item_rebuild_menu (GtkToolItem *tool_item); | |
50200 | ||
50201 | ||
50202 | void _gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item); | |
50203 | ||
50204 | ||
50205 | # 27 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" 2 | |
50206 | ||
50207 | ||
50208 | ||
50209 | #define GTK_TYPE_TOOL_BUTTON (gtk_tool_button_get_type ()) | |
50210 | #define GTK_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButton)) | |
50211 | #define GTK_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOL_BUTTON, GtkToolButtonClass)) | |
50212 | #define GTK_IS_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOL_BUTTON)) | |
50213 | #define GTK_IS_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOL_BUTTON)) | |
50214 | #define GTK_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButtonClass)) | |
50215 | ||
50216 | typedef struct _GtkToolButton GtkToolButton; | |
50217 | typedef struct _GtkToolButtonClass GtkToolButtonClass; | |
50218 | typedef struct _GtkToolButtonPrivate GtkToolButtonPrivate; | |
50219 | ||
50220 | struct _GtkToolButton | |
50221 | { | |
50222 | GtkToolItem parent; | |
50223 | ||
50224 | ||
50225 | GtkToolButtonPrivate *priv; | |
50226 | }; | |
50227 | ||
50228 | struct _GtkToolButtonClass | |
50229 | { | |
50230 | GtkToolItemClass parent_class; | |
50231 | ||
50232 | GType button_type; | |
50233 | ||
50234 | ||
50235 | void (* clicked) (GtkToolButton *tool_item); | |
50236 | ||
50237 | ||
50238 | void (* _gtk_reserved1) (void); | |
50239 | void (* _gtk_reserved2) (void); | |
50240 | void (* _gtk_reserved3) (void); | |
50241 | void (* _gtk_reserved4) (void); | |
50242 | }; | |
50243 | ||
50244 | GType gtk_tool_button_get_type (void) __attribute__((__const__)); | |
50245 | GtkToolItem *gtk_tool_button_new (GtkWidget *icon_widget, | |
50246 | const gchar *label); | |
50247 | GtkToolItem *gtk_tool_button_new_from_stock (const gchar *stock_id); | |
50248 | ||
50249 | void gtk_tool_button_set_label (GtkToolButton *button, | |
50250 | const gchar *label); | |
50251 | const gchar *gtk_tool_button_get_label (GtkToolButton *button); | |
50252 | void gtk_tool_button_set_use_underline (GtkToolButton *button, | |
50253 | gboolean use_underline); | |
50254 | gboolean gtk_tool_button_get_use_underline (GtkToolButton *button); | |
50255 | void gtk_tool_button_set_stock_id (GtkToolButton *button, | |
50256 | const gchar *stock_id); | |
50257 | const gchar *gtk_tool_button_get_stock_id (GtkToolButton *button); | |
50258 | void gtk_tool_button_set_icon_name (GtkToolButton *button, | |
50259 | const gchar *icon_name); | |
50260 | const gchar *gtk_tool_button_get_icon_name (GtkToolButton *button); | |
50261 | void gtk_tool_button_set_icon_widget (GtkToolButton *button, | |
50262 | GtkWidget *icon_widget); | |
50263 | GtkWidget * gtk_tool_button_get_icon_widget (GtkToolButton *button); | |
50264 | void gtk_tool_button_set_label_widget (GtkToolButton *button, | |
50265 | GtkWidget *label_widget); | |
50266 | GtkWidget * gtk_tool_button_get_label_widget (GtkToolButton *button); | |
50267 | ||
50268 | ||
50269 | ||
50270 | GtkWidget *_gtk_tool_button_get_button (GtkToolButton *button); | |
50271 | ||
50272 | ||
50273 | # 27 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h" 2 | |
50274 | ||
50275 | ||
50276 | ||
50277 | #define GTK_TYPE_MENU_TOOL_BUTTON (gtk_menu_tool_button_get_type ()) | |
50278 | #define GTK_MENU_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButton)) | |
50279 | #define GTK_MENU_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonClass)) | |
50280 | #define GTK_IS_MENU_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_MENU_TOOL_BUTTON)) | |
50281 | #define GTK_IS_MENU_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_MENU_TOOL_BUTTON)) | |
50282 | #define GTK_MENU_TOOL_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonClass)) | |
50283 | ||
50284 | typedef struct _GtkMenuToolButtonClass GtkMenuToolButtonClass; | |
50285 | typedef struct _GtkMenuToolButton GtkMenuToolButton; | |
50286 | typedef struct _GtkMenuToolButtonPrivate GtkMenuToolButtonPrivate; | |
50287 | ||
50288 | struct _GtkMenuToolButton | |
50289 | { | |
50290 | GtkToolButton parent; | |
50291 | ||
50292 | ||
50293 | GtkMenuToolButtonPrivate *priv; | |
50294 | }; | |
50295 | ||
50296 | struct _GtkMenuToolButtonClass | |
50297 | { | |
50298 | GtkToolButtonClass parent_class; | |
50299 | ||
50300 | void (*show_menu) (GtkMenuToolButton *button); | |
50301 | ||
50302 | ||
50303 | void (*_gtk_reserved1) (void); | |
50304 | void (*_gtk_reserved2) (void); | |
50305 | void (*_gtk_reserved3) (void); | |
50306 | void (*_gtk_reserved4) (void); | |
50307 | }; | |
50308 | ||
50309 | GType gtk_menu_tool_button_get_type (void) __attribute__((__const__)); | |
50310 | GtkToolItem *gtk_menu_tool_button_new (GtkWidget *icon_widget, | |
50311 | const gchar *label); | |
50312 | GtkToolItem *gtk_menu_tool_button_new_from_stock (const gchar *stock_id); | |
50313 | ||
50314 | void gtk_menu_tool_button_set_menu (GtkMenuToolButton *button, | |
50315 | GtkWidget *menu); | |
50316 | GtkWidget *gtk_menu_tool_button_get_menu (GtkMenuToolButton *button); | |
50317 | ||
50318 | void gtk_menu_tool_button_set_arrow_tooltip (GtkMenuToolButton *button, | |
50319 | GtkTooltips *tooltips, | |
50320 | const gchar *tip_text, | |
50321 | const gchar *tip_private); | |
50322 | ||
50323 | ||
50324 | # 120 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
50325 | # 1 "/usr/include/gtk-2.0/gtk/gtkmessagedialog.h" 1 | |
50326 | # 29 "/usr/include/gtk-2.0/gtk/gtkmessagedialog.h" | |
50327 | #define __GTK_MESSAGE_DIALOG_H__ | |
50328 | ||
50329 | ||
50330 | ||
50331 | ||
50332 | ||
50333 | typedef enum | |
50334 | { | |
50335 | GTK_MESSAGE_INFO, | |
50336 | GTK_MESSAGE_WARNING, | |
50337 | GTK_MESSAGE_QUESTION, | |
50338 | GTK_MESSAGE_ERROR | |
50339 | } GtkMessageType; | |
50340 | ||
50341 | typedef enum | |
50342 | { | |
50343 | GTK_BUTTONS_NONE, | |
50344 | GTK_BUTTONS_OK, | |
50345 | GTK_BUTTONS_CLOSE, | |
50346 | GTK_BUTTONS_CANCEL, | |
50347 | GTK_BUTTONS_YES_NO, | |
50348 | GTK_BUTTONS_OK_CANCEL | |
50349 | } GtkButtonsType; | |
50350 | ||
50351 | #define GTK_TYPE_MESSAGE_DIALOG (gtk_message_dialog_get_type ()) | |
50352 | #define GTK_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialog)) | |
50353 | #define GTK_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass)) | |
50354 | #define GTK_IS_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MESSAGE_DIALOG)) | |
50355 | #define GTK_IS_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MESSAGE_DIALOG)) | |
50356 | #define GTK_MESSAGE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass)) | |
50357 | ||
50358 | typedef struct _GtkMessageDialog GtkMessageDialog; | |
50359 | typedef struct _GtkMessageDialogClass GtkMessageDialogClass; | |
50360 | ||
50361 | struct _GtkMessageDialog | |
50362 | { | |
50363 | ||
50364 | ||
50365 | GtkDialog parent_instance; | |
50366 | ||
50367 | GtkWidget *image; | |
50368 | GtkWidget *label; | |
50369 | }; | |
50370 | ||
50371 | struct _GtkMessageDialogClass | |
50372 | { | |
50373 | GtkDialogClass parent_class; | |
50374 | ||
50375 | ||
50376 | void (*_gtk_reserved1) (void); | |
50377 | void (*_gtk_reserved2) (void); | |
50378 | void (*_gtk_reserved3) (void); | |
50379 | void (*_gtk_reserved4) (void); | |
50380 | }; | |
50381 | ||
50382 | GType gtk_message_dialog_get_type (void) __attribute__((__const__)); | |
50383 | ||
50384 | GtkWidget* gtk_message_dialog_new (GtkWindow *parent, | |
50385 | GtkDialogFlags flags, | |
50386 | GtkMessageType type, | |
50387 | GtkButtonsType buttons, | |
50388 | const gchar *message_format, | |
50389 | ...) __attribute__((__format__ (__printf__, 5, 6))); | |
50390 | ||
50391 | GtkWidget* gtk_message_dialog_new_with_markup (GtkWindow *parent, | |
50392 | GtkDialogFlags flags, | |
50393 | GtkMessageType type, | |
50394 | GtkButtonsType buttons, | |
50395 | const gchar *message_format, | |
50396 | ...) __attribute__((__format__ (__printf__, 5, 6))); | |
50397 | ||
50398 | void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog, | |
50399 | const gchar *str); | |
50400 | ||
50401 | void gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog, | |
50402 | const gchar *message_format, | |
50403 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
50404 | ||
50405 | void gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog, | |
50406 | const gchar *message_format, | |
50407 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
50408 | ||
50409 | ||
50410 | # 121 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
50411 | ||
50412 | # 1 "/usr/include/gtk-2.0/gtk/gtkmodules.h" 1 | |
50413 | # 22 "/usr/include/gtk-2.0/gtk/gtkmodules.h" | |
50414 | #define __GTK_MODULES_H__ | |
50415 | ||
50416 | ||
50417 | ||
50418 | ||
50419 | ||
50420 | ||
50421 | ||
50422 | ||
50423 | ||
50424 | gchar * _gtk_find_module (const gchar *name, | |
50425 | const gchar *type); | |
50426 | gchar **_gtk_get_module_path (const gchar *type); | |
50427 | ||
50428 | void _gtk_modules_init (gint *argc, | |
50429 | gchar ***argv, | |
50430 | const gchar *gtk_modules_args); | |
50431 | void _gtk_modules_settings_changed (GtkSettings *settings, | |
50432 | const gchar *modules); | |
50433 | ||
50434 | typedef void (*GtkModuleInitFunc) (gint *argc, | |
50435 | gchar ***argv); | |
50436 | typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display); | |
50437 | ||
50438 | ||
50439 | ||
50440 | # 123 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
50441 | # 1 "/usr/include/gtk-2.0/gtk/gtknotebook.h" 1 | |
50442 | # 28 "/usr/include/gtk-2.0/gtk/gtknotebook.h" | |
50443 | #define __GTK_NOTEBOOK_H__ | |
50444 | ||
50445 | ||
50446 | ||
50447 | ||
50448 | ||
50449 | ||
50450 | ||
50451 | #define GTK_TYPE_NOTEBOOK (gtk_notebook_get_type ()) | |
50452 | #define GTK_NOTEBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_NOTEBOOK, GtkNotebook)) | |
50453 | #define GTK_NOTEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_NOTEBOOK, GtkNotebookClass)) | |
50454 | #define GTK_IS_NOTEBOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_NOTEBOOK)) | |
50455 | #define GTK_IS_NOTEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_NOTEBOOK)) | |
50456 | #define GTK_NOTEBOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_NOTEBOOK, GtkNotebookClass)) | |
50457 | ||
50458 | ||
50459 | typedef enum | |
50460 | { | |
50461 | GTK_NOTEBOOK_TAB_FIRST, | |
50462 | GTK_NOTEBOOK_TAB_LAST | |
50463 | } GtkNotebookTab; | |
50464 | ||
50465 | typedef struct _GtkNotebook GtkNotebook; | |
50466 | typedef struct _GtkNotebookClass GtkNotebookClass; | |
50467 | typedef struct _GtkNotebookPage GtkNotebookPage; | |
50468 | ||
50469 | struct _GtkNotebook | |
50470 | { | |
50471 | GtkContainer container; | |
50472 | ||
50473 | GtkNotebookPage *cur_page; | |
50474 | GList *children; | |
50475 | GList *first_tab; | |
50476 | GList *focus_tab; | |
50477 | ||
50478 | GtkWidget *menu; | |
50479 | GdkWindow *event_window; | |
50480 | ||
50481 | guint32 timer; | |
50482 | ||
50483 | guint16 tab_hborder; | |
50484 | guint16 tab_vborder; | |
50485 | ||
50486 | guint show_tabs : 1; | |
50487 | guint homogeneous : 1; | |
50488 | guint show_border : 1; | |
50489 | guint tab_pos : 2; | |
50490 | guint scrollable : 1; | |
50491 | guint in_child : 3; | |
50492 | guint click_child : 3; | |
50493 | guint button : 2; | |
50494 | guint need_timer : 1; | |
50495 | guint child_has_focus : 1; | |
50496 | guint have_visible_child : 1; | |
50497 | guint focus_out : 1; | |
50498 | ||
50499 | guint has_before_previous : 1; | |
50500 | guint has_before_next : 1; | |
50501 | guint has_after_previous : 1; | |
50502 | guint has_after_next : 1; | |
50503 | }; | |
50504 | ||
50505 | struct _GtkNotebookClass | |
50506 | { | |
50507 | GtkContainerClass parent_class; | |
50508 | ||
50509 | void (* switch_page) (GtkNotebook *notebook, | |
50510 | GtkNotebookPage *page, | |
50511 | guint page_num); | |
50512 | ||
50513 | ||
50514 | gboolean (* select_page) (GtkNotebook *notebook, | |
50515 | gboolean move_focus); | |
50516 | gboolean (* focus_tab) (GtkNotebook *notebook, | |
50517 | GtkNotebookTab type); | |
50518 | void (* change_current_page) (GtkNotebook *notebook, | |
50519 | gint offset); | |
50520 | void (* move_focus_out) (GtkNotebook *notebook, | |
50521 | GtkDirectionType direction); | |
50522 | ||
50523 | ||
50524 | void (*_gtk_reserved1) (void); | |
50525 | void (*_gtk_reserved2) (void); | |
50526 | void (*_gtk_reserved3) (void); | |
50527 | void (*_gtk_reserved4) (void); | |
50528 | }; | |
50529 | ||
50530 | ||
50531 | ||
50532 | ||
50533 | ||
50534 | GType gtk_notebook_get_type (void) __attribute__((__const__)); | |
50535 | GtkWidget * gtk_notebook_new (void); | |
50536 | gint gtk_notebook_append_page (GtkNotebook *notebook, | |
50537 | GtkWidget *child, | |
50538 | GtkWidget *tab_label); | |
50539 | gint gtk_notebook_append_page_menu (GtkNotebook *notebook, | |
50540 | GtkWidget *child, | |
50541 | GtkWidget *tab_label, | |
50542 | GtkWidget *menu_label); | |
50543 | gint gtk_notebook_prepend_page (GtkNotebook *notebook, | |
50544 | GtkWidget *child, | |
50545 | GtkWidget *tab_label); | |
50546 | gint gtk_notebook_prepend_page_menu (GtkNotebook *notebook, | |
50547 | GtkWidget *child, | |
50548 | GtkWidget *tab_label, | |
50549 | GtkWidget *menu_label); | |
50550 | gint gtk_notebook_insert_page (GtkNotebook *notebook, | |
50551 | GtkWidget *child, | |
50552 | GtkWidget *tab_label, | |
50553 | gint position); | |
50554 | gint gtk_notebook_insert_page_menu (GtkNotebook *notebook, | |
50555 | GtkWidget *child, | |
50556 | GtkWidget *tab_label, | |
50557 | GtkWidget *menu_label, | |
50558 | gint position); | |
50559 | void gtk_notebook_remove_page (GtkNotebook *notebook, | |
50560 | gint page_num); | |
50561 | ||
50562 | ||
50563 | ||
50564 | ||
50565 | ||
50566 | gint gtk_notebook_get_current_page (GtkNotebook *notebook); | |
50567 | GtkWidget* gtk_notebook_get_nth_page (GtkNotebook *notebook, | |
50568 | gint page_num); | |
50569 | gint gtk_notebook_get_n_pages (GtkNotebook *notebook); | |
50570 | gint gtk_notebook_page_num (GtkNotebook *notebook, | |
50571 | GtkWidget *child); | |
50572 | void gtk_notebook_set_current_page (GtkNotebook *notebook, | |
50573 | gint page_num); | |
50574 | void gtk_notebook_next_page (GtkNotebook *notebook); | |
50575 | void gtk_notebook_prev_page (GtkNotebook *notebook); | |
50576 | ||
50577 | ||
50578 | ||
50579 | ||
50580 | ||
50581 | void gtk_notebook_set_show_border (GtkNotebook *notebook, | |
50582 | gboolean show_border); | |
50583 | gboolean gtk_notebook_get_show_border (GtkNotebook *notebook); | |
50584 | void gtk_notebook_set_show_tabs (GtkNotebook *notebook, | |
50585 | gboolean show_tabs); | |
50586 | gboolean gtk_notebook_get_show_tabs (GtkNotebook *notebook); | |
50587 | void gtk_notebook_set_tab_pos (GtkNotebook *notebook, | |
50588 | GtkPositionType pos); | |
50589 | GtkPositionType gtk_notebook_get_tab_pos (GtkNotebook *notebook); | |
50590 | ||
50591 | ||
50592 | void gtk_notebook_set_homogeneous_tabs (GtkNotebook *notebook, | |
50593 | gboolean homogeneous); | |
50594 | void gtk_notebook_set_tab_border (GtkNotebook *notebook, | |
50595 | guint border_width); | |
50596 | void gtk_notebook_set_tab_hborder (GtkNotebook *notebook, | |
50597 | guint tab_hborder); | |
50598 | void gtk_notebook_set_tab_vborder (GtkNotebook *notebook, | |
50599 | guint tab_vborder); | |
50600 | ||
50601 | ||
50602 | void gtk_notebook_set_scrollable (GtkNotebook *notebook, | |
50603 | gboolean scrollable); | |
50604 | gboolean gtk_notebook_get_scrollable (GtkNotebook *notebook); | |
50605 | ||
50606 | ||
50607 | ||
50608 | ||
50609 | ||
50610 | void gtk_notebook_popup_enable (GtkNotebook *notebook); | |
50611 | void gtk_notebook_popup_disable (GtkNotebook *notebook); | |
50612 | ||
50613 | ||
50614 | ||
50615 | ||
50616 | ||
50617 | GtkWidget * gtk_notebook_get_tab_label (GtkNotebook *notebook, | |
50618 | GtkWidget *child); | |
50619 | void gtk_notebook_set_tab_label (GtkNotebook *notebook, | |
50620 | GtkWidget *child, | |
50621 | GtkWidget *tab_label); | |
50622 | void gtk_notebook_set_tab_label_text (GtkNotebook *notebook, | |
50623 | GtkWidget *child, | |
50624 | const gchar *tab_text); | |
50625 | const gchar *gtk_notebook_get_tab_label_text (GtkNotebook *notebook, | |
50626 | GtkWidget *child); | |
50627 | GtkWidget * gtk_notebook_get_menu_label (GtkNotebook *notebook, | |
50628 | GtkWidget *child); | |
50629 | void gtk_notebook_set_menu_label (GtkNotebook *notebook, | |
50630 | GtkWidget *child, | |
50631 | GtkWidget *menu_label); | |
50632 | void gtk_notebook_set_menu_label_text (GtkNotebook *notebook, | |
50633 | GtkWidget *child, | |
50634 | const gchar *menu_text); | |
50635 | const gchar *gtk_notebook_get_menu_label_text (GtkNotebook *notebook, | |
50636 | GtkWidget *child); | |
50637 | void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook, | |
50638 | GtkWidget *child, | |
50639 | gboolean *expand, | |
50640 | gboolean *fill, | |
50641 | GtkPackType *pack_type); | |
50642 | void gtk_notebook_set_tab_label_packing (GtkNotebook *notebook, | |
50643 | GtkWidget *child, | |
50644 | gboolean expand, | |
50645 | gboolean fill, | |
50646 | GtkPackType pack_type); | |
50647 | void gtk_notebook_reorder_child (GtkNotebook *notebook, | |
50648 | GtkWidget *child, | |
50649 | gint position); | |
50650 | ||
50651 | ||
50652 | #define gtk_notebook_current_page gtk_notebook_get_current_page | |
50653 | #define gtk_notebook_set_page gtk_notebook_set_current_page | |
50654 | ||
50655 | ||
50656 | ||
50657 | # 124 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
50658 | ||
50659 | # 1 "/usr/include/gtk-2.0/gtk/gtkoldeditable.h" 1 | |
50660 | # 30 "/usr/include/gtk-2.0/gtk/gtkoldeditable.h" | |
50661 | #define __GTK_OLD_EDITABLE_H__ | |
50662 | ||
50663 | ||
50664 | ||
50665 | ||
50666 | ||
50667 | ||
50668 | ||
50669 | ||
50670 | #define GTK_TYPE_OLD_EDITABLE (gtk_old_editable_get_type ()) | |
50671 | #define GTK_OLD_EDITABLE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_OLD_EDITABLE, GtkOldEditable)) | |
50672 | #define GTK_OLD_EDITABLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_OLD_EDITABLE, GtkOldEditableClass)) | |
50673 | #define GTK_IS_OLD_EDITABLE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_OLD_EDITABLE)) | |
50674 | #define GTK_IS_OLD_EDITABLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OLD_EDITABLE)) | |
50675 | #define GTK_OLD_EDITABLE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_OLD_EDITABLE, GtkOldEditableClass)) | |
50676 | ||
50677 | ||
50678 | typedef struct _GtkOldEditable GtkOldEditable; | |
50679 | typedef struct _GtkOldEditableClass GtkOldEditableClass; | |
50680 | ||
50681 | typedef void (*GtkTextFunction) (GtkOldEditable *editable, guint32 time_); | |
50682 | ||
50683 | struct _GtkOldEditable | |
50684 | { | |
50685 | GtkWidget widget; | |
50686 | ||
50687 | ||
50688 | guint current_pos; | |
50689 | ||
50690 | guint selection_start_pos; | |
50691 | guint selection_end_pos; | |
50692 | guint has_selection : 1; | |
50693 | ||
50694 | ||
50695 | guint editable : 1; | |
50696 | guint visible : 1; | |
50697 | ||
50698 | gchar *clipboard_text; | |
50699 | }; | |
50700 | ||
50701 | struct _GtkOldEditableClass | |
50702 | { | |
50703 | GtkWidgetClass parent_class; | |
50704 | ||
50705 | ||
50706 | void (* activate) (GtkOldEditable *editable); | |
50707 | void (* set_editable) (GtkOldEditable *editable, | |
50708 | gboolean is_editable); | |
50709 | void (* move_cursor) (GtkOldEditable *editable, | |
50710 | gint x, | |
50711 | gint y); | |
50712 | void (* move_word) (GtkOldEditable *editable, | |
50713 | gint n); | |
50714 | void (* move_page) (GtkOldEditable *editable, | |
50715 | gint x, | |
50716 | gint y); | |
50717 | void (* move_to_row) (GtkOldEditable *editable, | |
50718 | gint row); | |
50719 | void (* move_to_column) (GtkOldEditable *editable, | |
50720 | gint row); | |
50721 | void (* kill_char) (GtkOldEditable *editable, | |
50722 | gint direction); | |
50723 | void (* kill_word) (GtkOldEditable *editable, | |
50724 | gint direction); | |
50725 | void (* kill_line) (GtkOldEditable *editable, | |
50726 | gint direction); | |
50727 | void (* cut_clipboard) (GtkOldEditable *editable); | |
50728 | void (* copy_clipboard) (GtkOldEditable *editable); | |
50729 | void (* paste_clipboard) (GtkOldEditable *editable); | |
50730 | ||
50731 | ||
50732 | ||
50733 | ||
50734 | ||
50735 | ||
50736 | void (* update_text) (GtkOldEditable *editable, | |
50737 | gint start_pos, | |
50738 | gint end_pos); | |
50739 | gchar* (* get_chars) (GtkOldEditable *editable, | |
50740 | gint start_pos, | |
50741 | gint end_pos); | |
50742 | void (* set_selection)(GtkOldEditable *editable, | |
50743 | gint start_pos, | |
50744 | gint end_pos); | |
50745 | void (* set_position) (GtkOldEditable *editable, | |
50746 | gint position); | |
50747 | }; | |
50748 | ||
50749 | GtkType gtk_old_editable_get_type (void) __attribute__((__const__)); | |
50750 | void gtk_old_editable_claim_selection (GtkOldEditable *old_editable, | |
50751 | gboolean claim, | |
50752 | guint32 time_); | |
50753 | void gtk_old_editable_changed (GtkOldEditable *old_editable); | |
50754 | ||
50755 | ||
50756 | # 126 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
50757 | # 1 "/usr/include/gtk-2.0/gtk/gtkoptionmenu.h" 1 | |
50758 | # 30 "/usr/include/gtk-2.0/gtk/gtkoptionmenu.h" | |
50759 | #define __GTK_OPTION_MENU_H__ | |
50760 | ||
50761 | ||
50762 | ||
50763 | ||
50764 | ||
50765 | ||
50766 | ||
50767 | ||
50768 | #define GTK_TYPE_OPTION_MENU (gtk_option_menu_get_type ()) | |
50769 | #define GTK_OPTION_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_OPTION_MENU, GtkOptionMenu)) | |
50770 | #define GTK_OPTION_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_OPTION_MENU, GtkOptionMenuClass)) | |
50771 | #define GTK_IS_OPTION_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_OPTION_MENU)) | |
50772 | #define GTK_IS_OPTION_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OPTION_MENU)) | |
50773 | #define GTK_OPTION_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_OPTION_MENU, GtkOptionMenuClass)) | |
50774 | ||
50775 | ||
50776 | typedef struct _GtkOptionMenu GtkOptionMenu; | |
50777 | typedef struct _GtkOptionMenuClass GtkOptionMenuClass; | |
50778 | ||
50779 | struct _GtkOptionMenu | |
50780 | { | |
50781 | GtkButton button; | |
50782 | ||
50783 | GtkWidget *menu; | |
50784 | GtkWidget *menu_item; | |
50785 | ||
50786 | guint16 width; | |
50787 | guint16 height; | |
50788 | }; | |
50789 | ||
50790 | struct _GtkOptionMenuClass | |
50791 | { | |
50792 | GtkButtonClass parent_class; | |
50793 | ||
50794 | void (*changed) (GtkOptionMenu *option_menu); | |
50795 | ||
50796 | ||
50797 | void (*_gtk_reserved1) (void); | |
50798 | void (*_gtk_reserved2) (void); | |
50799 | void (*_gtk_reserved3) (void); | |
50800 | void (*_gtk_reserved4) (void); | |
50801 | }; | |
50802 | ||
50803 | ||
50804 | GType gtk_option_menu_get_type (void) __attribute__((__const__)); | |
50805 | GtkWidget* gtk_option_menu_new (void); | |
50806 | GtkWidget* gtk_option_menu_get_menu (GtkOptionMenu *option_menu); | |
50807 | void gtk_option_menu_set_menu (GtkOptionMenu *option_menu, | |
50808 | GtkWidget *menu); | |
50809 | void gtk_option_menu_remove_menu (GtkOptionMenu *option_menu); | |
50810 | gint gtk_option_menu_get_history (GtkOptionMenu *option_menu); | |
50811 | void gtk_option_menu_set_history (GtkOptionMenu *option_menu, | |
50812 | guint index_); | |
50813 | ||
50814 | ||
50815 | ||
50816 | # 127 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
50817 | ||
50818 | # 1 "/usr/include/gtk-2.0/gtk/gtkpixmap.h" 1 | |
50819 | # 30 "/usr/include/gtk-2.0/gtk/gtkpixmap.h" | |
50820 | #define __GTK_PIXMAP_H__ | |
50821 | ||
50822 | ||
50823 | ||
50824 | ||
50825 | ||
50826 | ||
50827 | ||
50828 | ||
50829 | #define GTK_TYPE_PIXMAP (gtk_pixmap_get_type ()) | |
50830 | #define GTK_PIXMAP(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PIXMAP, GtkPixmap)) | |
50831 | #define GTK_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PIXMAP, GtkPixmapClass)) | |
50832 | #define GTK_IS_PIXMAP(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PIXMAP)) | |
50833 | #define GTK_IS_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PIXMAP)) | |
50834 | #define GTK_PIXMAP_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PIXMAP, GtkPixmapClass)) | |
50835 | ||
50836 | ||
50837 | typedef struct _GtkPixmap GtkPixmap; | |
50838 | typedef struct _GtkPixmapClass GtkPixmapClass; | |
50839 | ||
50840 | struct _GtkPixmap | |
50841 | { | |
50842 | GtkMisc misc; | |
50843 | ||
50844 | GdkPixmap *pixmap; | |
50845 | GdkBitmap *mask; | |
50846 | ||
50847 | GdkPixmap *pixmap_insensitive; | |
50848 | guint build_insensitive : 1; | |
50849 | }; | |
50850 | ||
50851 | struct _GtkPixmapClass | |
50852 | { | |
50853 | GtkMiscClass parent_class; | |
50854 | }; | |
50855 | ||
50856 | ||
50857 | GtkType gtk_pixmap_get_type (void) __attribute__((__const__)); | |
50858 | GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap, | |
50859 | GdkBitmap *mask); | |
50860 | void gtk_pixmap_set (GtkPixmap *pixmap, | |
50861 | GdkPixmap *val, | |
50862 | GdkBitmap *mask); | |
50863 | void gtk_pixmap_get (GtkPixmap *pixmap, | |
50864 | GdkPixmap **val, | |
50865 | GdkBitmap **mask); | |
50866 | ||
50867 | void gtk_pixmap_set_build_insensitive (GtkPixmap *pixmap, | |
50868 | gboolean build); | |
50869 | ||
50870 | ||
50871 | ||
50872 | # 129 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
50873 | # 1 "/usr/include/gtk-2.0/gtk/gtkplug.h" 1 | |
50874 | # 27 "/usr/include/gtk-2.0/gtk/gtkplug.h" | |
50875 | #define __GTK_PLUG_H__ | |
50876 | ||
50877 | ||
50878 | ||
50879 | # 1 "/usr/include/gtk-2.0/gtk/gtksocket.h" 1 | |
50880 | # 27 "/usr/include/gtk-2.0/gtk/gtksocket.h" | |
50881 | #define __GTK_SOCKET_H__ | |
50882 | ||
50883 | ||
50884 | ||
50885 | ||
50886 | ||
50887 | #define GTK_TYPE_SOCKET (gtk_socket_get_type ()) | |
50888 | #define GTK_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SOCKET, GtkSocket)) | |
50889 | #define GTK_SOCKET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SOCKET, GtkSocketClass)) | |
50890 | #define GTK_IS_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SOCKET)) | |
50891 | #define GTK_IS_SOCKET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SOCKET)) | |
50892 | #define GTK_SOCKET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SOCKET, GtkSocketClass)) | |
50893 | ||
50894 | ||
50895 | typedef struct _GtkSocket GtkSocket; | |
50896 | typedef struct _GtkSocketClass GtkSocketClass; | |
50897 | ||
50898 | struct _GtkSocket | |
50899 | { | |
50900 | GtkContainer container; | |
50901 | ||
50902 | guint16 request_width; | |
50903 | guint16 request_height; | |
50904 | guint16 current_width; | |
50905 | guint16 current_height; | |
50906 | ||
50907 | GdkWindow *plug_window; | |
50908 | GtkWidget *plug_widget; | |
50909 | ||
50910 | gshort xembed_version; | |
50911 | guint same_app : 1; | |
50912 | guint focus_in : 1; | |
50913 | guint have_size : 1; | |
50914 | guint need_map : 1; | |
50915 | guint is_mapped : 1; | |
50916 | guint active : 1; | |
50917 | ||
50918 | GtkAccelGroup *accel_group; | |
50919 | GtkWidget *toplevel; | |
50920 | }; | |
50921 | ||
50922 | struct _GtkSocketClass | |
50923 | { | |
50924 | GtkContainerClass parent_class; | |
50925 | ||
50926 | void (*plug_added) (GtkSocket *socket_); | |
50927 | gboolean (*plug_removed) (GtkSocket *socket_); | |
50928 | ||
50929 | ||
50930 | void (*_gtk_reserved1) (void); | |
50931 | void (*_gtk_reserved2) (void); | |
50932 | void (*_gtk_reserved3) (void); | |
50933 | void (*_gtk_reserved4) (void); | |
50934 | }; | |
50935 | ||
50936 | ||
50937 | GType gtk_socket_get_type (void) __attribute__((__const__)); | |
50938 | GtkWidget* gtk_socket_new (void); | |
50939 | ||
50940 | void gtk_socket_add_id (GtkSocket *socket_, | |
50941 | GdkNativeWindow window_id); | |
50942 | GdkNativeWindow gtk_socket_get_id (GtkSocket *socket_); | |
50943 | ||
50944 | ||
50945 | void gtk_socket_steal (GtkSocket *socket_, | |
50946 | GdkNativeWindow wid); | |
50947 | ||
50948 | ||
50949 | ||
50950 | # 32 "/usr/include/gtk-2.0/gtk/gtkplug.h" 2 | |
50951 | ||
50952 | ||
50953 | ||
50954 | ||
50955 | ||
50956 | #define GTK_TYPE_PLUG (gtk_plug_get_type ()) | |
50957 | #define GTK_PLUG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PLUG, GtkPlug)) | |
50958 | #define GTK_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PLUG, GtkPlugClass)) | |
50959 | #define GTK_IS_PLUG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PLUG)) | |
50960 | #define GTK_IS_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PLUG)) | |
50961 | #define GTK_PLUG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PLUG, GtkPlugClass)) | |
50962 | ||
50963 | ||
50964 | typedef struct _GtkPlug GtkPlug; | |
50965 | typedef struct _GtkPlugClass GtkPlugClass; | |
50966 | ||
50967 | ||
50968 | struct _GtkPlug | |
50969 | { | |
50970 | GtkWindow window; | |
50971 | ||
50972 | GdkWindow *socket_window; | |
50973 | GtkWidget *modality_window; | |
50974 | GtkWindowGroup *modality_group; | |
50975 | GHashTable *grabbed_keys; | |
50976 | ||
50977 | guint same_app : 1; | |
50978 | }; | |
50979 | ||
50980 | struct _GtkPlugClass | |
50981 | { | |
50982 | GtkWindowClass parent_class; | |
50983 | ||
50984 | void (*embedded) (GtkPlug *plug); | |
50985 | ||
50986 | ||
50987 | void (*_gtk_reserved1) (void); | |
50988 | void (*_gtk_reserved2) (void); | |
50989 | void (*_gtk_reserved3) (void); | |
50990 | void (*_gtk_reserved4) (void); | |
50991 | }; | |
50992 | ||
50993 | ||
50994 | GType gtk_plug_get_type (void) __attribute__((__const__)); | |
50995 | ||
50996 | ||
50997 | void gtk_plug_construct (GtkPlug *plug, | |
50998 | GdkNativeWindow socket_id); | |
50999 | GtkWidget* gtk_plug_new (GdkNativeWindow socket_id); | |
51000 | ||
51001 | ||
51002 | void gtk_plug_construct_for_display (GtkPlug *plug, | |
51003 | GdkDisplay *display, | |
51004 | GdkNativeWindow socket_id); | |
51005 | GtkWidget* gtk_plug_new_for_display (GdkDisplay *display, | |
51006 | GdkNativeWindow socket_id); | |
51007 | ||
51008 | GdkNativeWindow gtk_plug_get_id (GtkPlug *plug); | |
51009 | ||
51010 | void _gtk_plug_add_to_socket (GtkPlug *plug, | |
51011 | GtkSocket *socket_); | |
51012 | void _gtk_plug_remove_from_socket (GtkPlug *plug, | |
51013 | GtkSocket *socket_); | |
51014 | ||
51015 | ||
51016 | # 130 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51017 | # 1 "/usr/include/gtk-2.0/gtk/gtkpreview.h" 1 | |
51018 | # 30 "/usr/include/gtk-2.0/gtk/gtkpreview.h" | |
51019 | #define __GTK_PREVIEW_H__ | |
51020 | ||
51021 | ||
51022 | ||
51023 | ||
51024 | ||
51025 | ||
51026 | ||
51027 | #define GTK_TYPE_PREVIEW (gtk_preview_get_type ()) | |
51028 | #define GTK_PREVIEW(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PREVIEW, GtkPreview)) | |
51029 | #define GTK_PREVIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PREVIEW, GtkPreviewClass)) | |
51030 | #define GTK_IS_PREVIEW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PREVIEW)) | |
51031 | #define GTK_IS_PREVIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PREVIEW)) | |
51032 | #define GTK_PREVIEW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PREVIEW, GtkPreviewClass)) | |
51033 | ||
51034 | ||
51035 | typedef struct _GtkPreview GtkPreview; | |
51036 | typedef struct _GtkPreviewInfo GtkPreviewInfo; | |
51037 | typedef union _GtkDitherInfo GtkDitherInfo; | |
51038 | typedef struct _GtkPreviewClass GtkPreviewClass; | |
51039 | ||
51040 | struct _GtkPreview | |
51041 | { | |
51042 | GtkWidget widget; | |
51043 | ||
51044 | guchar *buffer; | |
51045 | guint16 buffer_width; | |
51046 | guint16 buffer_height; | |
51047 | ||
51048 | guint16 bpp; | |
51049 | guint16 rowstride; | |
51050 | ||
51051 | GdkRgbDither dither; | |
51052 | ||
51053 | guint type : 1; | |
51054 | guint expand : 1; | |
51055 | }; | |
51056 | ||
51057 | struct _GtkPreviewInfo | |
51058 | { | |
51059 | guchar *lookup; | |
51060 | ||
51061 | gdouble gamma; | |
51062 | }; | |
51063 | ||
51064 | union _GtkDitherInfo | |
51065 | { | |
51066 | gushort s[2]; | |
51067 | guchar c[4]; | |
51068 | }; | |
51069 | ||
51070 | struct _GtkPreviewClass | |
51071 | { | |
51072 | GtkWidgetClass parent_class; | |
51073 | ||
51074 | GtkPreviewInfo info; | |
51075 | ||
51076 | }; | |
51077 | ||
51078 | ||
51079 | GtkType gtk_preview_get_type (void) __attribute__((__const__)); | |
51080 | void gtk_preview_uninit (void); | |
51081 | GtkWidget* gtk_preview_new (GtkPreviewType type); | |
51082 | void gtk_preview_size (GtkPreview *preview, | |
51083 | gint width, | |
51084 | gint height); | |
51085 | void gtk_preview_put (GtkPreview *preview, | |
51086 | GdkWindow *window, | |
51087 | GdkGC *gc, | |
51088 | gint srcx, | |
51089 | gint srcy, | |
51090 | gint destx, | |
51091 | gint desty, | |
51092 | gint width, | |
51093 | gint height); | |
51094 | void gtk_preview_draw_row (GtkPreview *preview, | |
51095 | guchar *data, | |
51096 | gint x, | |
51097 | gint y, | |
51098 | gint w); | |
51099 | void gtk_preview_set_expand (GtkPreview *preview, | |
51100 | gboolean expand); | |
51101 | ||
51102 | void gtk_preview_set_gamma (double gamma_); | |
51103 | void gtk_preview_set_color_cube (guint nred_shades, | |
51104 | guint ngreen_shades, | |
51105 | guint nblue_shades, | |
51106 | guint ngray_shades); | |
51107 | void gtk_preview_set_install_cmap (gint install_cmap); | |
51108 | void gtk_preview_set_reserved (gint nreserved); | |
51109 | void gtk_preview_set_dither (GtkPreview *preview, | |
51110 | GdkRgbDither dither); | |
51111 | ||
51112 | GdkVisual* gtk_preview_get_visual (void); | |
51113 | GdkColormap* gtk_preview_get_cmap (void); | |
51114 | ||
51115 | GtkPreviewInfo* gtk_preview_get_info (void); | |
51116 | ||
51117 | ||
51118 | ||
51119 | ||
51120 | ||
51121 | ||
51122 | void gtk_preview_reset (void); | |
51123 | ||
51124 | ||
51125 | ||
51126 | # 131 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51127 | # 1 "/usr/include/gtk-2.0/gtk/gtkprogress.h" 1 | |
51128 | # 28 "/usr/include/gtk-2.0/gtk/gtkprogress.h" | |
51129 | #define __GTK_PROGRESS_H__ | |
51130 | ||
51131 | ||
51132 | ||
51133 | ||
51134 | ||
51135 | ||
51136 | ||
51137 | ||
51138 | ||
51139 | ||
51140 | ||
51141 | #define GTK_TYPE_PROGRESS (gtk_progress_get_type ()) | |
51142 | #define GTK_PROGRESS(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PROGRESS, GtkProgress)) | |
51143 | #define GTK_PROGRESS_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PROGRESS, GtkProgressClass)) | |
51144 | #define GTK_IS_PROGRESS(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PROGRESS)) | |
51145 | #define GTK_IS_PROGRESS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PROGRESS)) | |
51146 | #define GTK_PROGRESS_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PROGRESS, GtkProgressClass)) | |
51147 | ||
51148 | ||
51149 | ||
51150 | typedef struct _GtkProgress GtkProgress; | |
51151 | typedef struct _GtkProgressClass GtkProgressClass; | |
51152 | ||
51153 | ||
51154 | struct _GtkProgress | |
51155 | { | |
51156 | GtkWidget widget; | |
51157 | ||
51158 | GtkAdjustment *adjustment; | |
51159 | GdkPixmap *offscreen_pixmap; | |
51160 | gchar *format; | |
51161 | gfloat x_align; | |
51162 | gfloat y_align; | |
51163 | ||
51164 | guint show_text : 1; | |
51165 | guint activity_mode : 1; | |
51166 | guint use_text_format : 1; | |
51167 | }; | |
51168 | ||
51169 | struct _GtkProgressClass | |
51170 | { | |
51171 | GtkWidgetClass parent_class; | |
51172 | ||
51173 | void (* paint) (GtkProgress *progress); | |
51174 | void (* update) (GtkProgress *progress); | |
51175 | void (* act_mode_enter) (GtkProgress *progress); | |
51176 | ||
51177 | ||
51178 | void (*_gtk_reserved1) (void); | |
51179 | void (*_gtk_reserved2) (void); | |
51180 | void (*_gtk_reserved3) (void); | |
51181 | void (*_gtk_reserved4) (void); | |
51182 | }; | |
51183 | ||
51184 | ||
51185 | ||
51186 | ||
51187 | ||
51188 | ||
51189 | ||
51190 | GType gtk_progress_get_type (void) __attribute__((__const__)); | |
51191 | void gtk_progress_set_show_text (GtkProgress *progress, | |
51192 | gboolean show_text); | |
51193 | void gtk_progress_set_text_alignment (GtkProgress *progress, | |
51194 | gfloat x_align, | |
51195 | gfloat y_align); | |
51196 | void gtk_progress_set_format_string (GtkProgress *progress, | |
51197 | const gchar *format); | |
51198 | void gtk_progress_set_adjustment (GtkProgress *progress, | |
51199 | GtkAdjustment *adjustment); | |
51200 | void gtk_progress_configure (GtkProgress *progress, | |
51201 | gdouble value, | |
51202 | gdouble min, | |
51203 | gdouble max); | |
51204 | void gtk_progress_set_percentage (GtkProgress *progress, | |
51205 | gdouble percentage); | |
51206 | void gtk_progress_set_value (GtkProgress *progress, | |
51207 | gdouble value); | |
51208 | gdouble gtk_progress_get_value (GtkProgress *progress); | |
51209 | void gtk_progress_set_activity_mode (GtkProgress *progress, | |
51210 | gboolean activity_mode); | |
51211 | gchar* gtk_progress_get_current_text (GtkProgress *progress); | |
51212 | gchar* gtk_progress_get_text_from_value (GtkProgress *progress, | |
51213 | gdouble value); | |
51214 | gdouble gtk_progress_get_current_percentage (GtkProgress *progress); | |
51215 | gdouble gtk_progress_get_percentage_from_value (GtkProgress *progress, | |
51216 | gdouble value); | |
51217 | ||
51218 | ||
51219 | ||
51220 | ||
51221 | # 132 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51222 | # 1 "/usr/include/gtk-2.0/gtk/gtkprogressbar.h" 1 | |
51223 | # 28 "/usr/include/gtk-2.0/gtk/gtkprogressbar.h" | |
51224 | #define __GTK_PROGRESS_BAR_H__ | |
51225 | ||
51226 | ||
51227 | ||
51228 | ||
51229 | ||
51230 | ||
51231 | ||
51232 | ||
51233 | #define GTK_TYPE_PROGRESS_BAR (gtk_progress_bar_get_type ()) | |
51234 | #define GTK_PROGRESS_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PROGRESS_BAR, GtkProgressBar)) | |
51235 | #define GTK_PROGRESS_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PROGRESS_BAR, GtkProgressBarClass)) | |
51236 | #define GTK_IS_PROGRESS_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PROGRESS_BAR)) | |
51237 | #define GTK_IS_PROGRESS_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PROGRESS_BAR)) | |
51238 | #define GTK_PROGRESS_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PROGRESS_BAR, GtkProgressBarClass)) | |
51239 | ||
51240 | ||
51241 | typedef struct _GtkProgressBar GtkProgressBar; | |
51242 | typedef struct _GtkProgressBarClass GtkProgressBarClass; | |
51243 | ||
51244 | typedef enum | |
51245 | { | |
51246 | GTK_PROGRESS_CONTINUOUS, | |
51247 | GTK_PROGRESS_DISCRETE | |
51248 | } GtkProgressBarStyle; | |
51249 | ||
51250 | typedef enum | |
51251 | { | |
51252 | GTK_PROGRESS_LEFT_TO_RIGHT, | |
51253 | GTK_PROGRESS_RIGHT_TO_LEFT, | |
51254 | GTK_PROGRESS_BOTTOM_TO_TOP, | |
51255 | GTK_PROGRESS_TOP_TO_BOTTOM | |
51256 | } GtkProgressBarOrientation; | |
51257 | ||
51258 | struct _GtkProgressBar | |
51259 | { | |
51260 | GtkProgress progress; | |
51261 | ||
51262 | GtkProgressBarStyle bar_style; | |
51263 | GtkProgressBarOrientation orientation; | |
51264 | ||
51265 | guint blocks; | |
51266 | gint in_block; | |
51267 | ||
51268 | gint activity_pos; | |
51269 | guint activity_step; | |
51270 | guint activity_blocks; | |
51271 | ||
51272 | gdouble pulse_fraction; | |
51273 | ||
51274 | guint activity_dir : 1; | |
51275 | guint ellipsize : 3; | |
51276 | }; | |
51277 | ||
51278 | struct _GtkProgressBarClass | |
51279 | { | |
51280 | GtkProgressClass parent_class; | |
51281 | ||
51282 | ||
51283 | void (*_gtk_reserved1) (void); | |
51284 | void (*_gtk_reserved2) (void); | |
51285 | void (*_gtk_reserved3) (void); | |
51286 | void (*_gtk_reserved4) (void); | |
51287 | }; | |
51288 | ||
51289 | ||
51290 | GType gtk_progress_bar_get_type (void) __attribute__((__const__)); | |
51291 | GtkWidget* gtk_progress_bar_new (void); | |
51292 | # 124 "/usr/include/gtk-2.0/gtk/gtkprogressbar.h" | |
51293 | void gtk_progress_bar_pulse (GtkProgressBar *pbar); | |
51294 | void gtk_progress_bar_set_text (GtkProgressBar *pbar, | |
51295 | const gchar *text); | |
51296 | void gtk_progress_bar_set_fraction (GtkProgressBar *pbar, | |
51297 | gdouble fraction); | |
51298 | ||
51299 | void gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar, | |
51300 | gdouble fraction); | |
51301 | void gtk_progress_bar_set_orientation (GtkProgressBar *pbar, | |
51302 | GtkProgressBarOrientation orientation); | |
51303 | ||
51304 | const gchar* gtk_progress_bar_get_text (GtkProgressBar *pbar); | |
51305 | gdouble gtk_progress_bar_get_fraction (GtkProgressBar *pbar); | |
51306 | gdouble gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar); | |
51307 | ||
51308 | GtkProgressBarOrientation gtk_progress_bar_get_orientation (GtkProgressBar *pbar); | |
51309 | void gtk_progress_bar_set_ellipsize (GtkProgressBar *pbar, | |
51310 | PangoEllipsizeMode mode); | |
51311 | PangoEllipsizeMode gtk_progress_bar_get_ellipsize (GtkProgressBar *pbar); | |
51312 | ||
51313 | ||
51314 | ||
51315 | ||
51316 | ||
51317 | GtkWidget* gtk_progress_bar_new_with_adjustment (GtkAdjustment *adjustment); | |
51318 | void gtk_progress_bar_set_bar_style (GtkProgressBar *pbar, | |
51319 | GtkProgressBarStyle style); | |
51320 | void gtk_progress_bar_set_discrete_blocks (GtkProgressBar *pbar, | |
51321 | guint blocks); | |
51322 | ||
51323 | ||
51324 | ||
51325 | ||
51326 | void gtk_progress_bar_set_activity_step (GtkProgressBar *pbar, | |
51327 | guint step); | |
51328 | void gtk_progress_bar_set_activity_blocks (GtkProgressBar *pbar, | |
51329 | guint blocks); | |
51330 | void gtk_progress_bar_update (GtkProgressBar *pbar, | |
51331 | gdouble percentage); | |
51332 | ||
51333 | ||
51334 | ||
51335 | ||
51336 | # 133 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51337 | # 1 "/usr/include/gtk-2.0/gtk/gtkradioaction.h" 1 | |
51338 | # 31 "/usr/include/gtk-2.0/gtk/gtkradioaction.h" | |
51339 | #define __GTK_RADIO_ACTION_H__ | |
51340 | ||
51341 | # 1 "/usr/include/gtk-2.0/gtk/gtktoggleaction.h" 1 | |
51342 | # 31 "/usr/include/gtk-2.0/gtk/gtktoggleaction.h" | |
51343 | #define __GTK_TOGGLE_ACTION_H__ | |
51344 | ||
51345 | ||
51346 | ||
51347 | ||
51348 | ||
51349 | #define GTK_TYPE_TOGGLE_ACTION (gtk_toggle_action_get_type ()) | |
51350 | #define GTK_TOGGLE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_ACTION, GtkToggleAction)) | |
51351 | #define GTK_TOGGLE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_ACTION, GtkToggleActionClass)) | |
51352 | #define GTK_IS_TOGGLE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_ACTION)) | |
51353 | #define GTK_IS_TOGGLE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_ACTION)) | |
51354 | #define GTK_TOGGLE_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOGGLE_ACTION, GtkToggleActionClass)) | |
51355 | ||
51356 | typedef struct _GtkToggleAction GtkToggleAction; | |
51357 | typedef struct _GtkToggleActionPrivate GtkToggleActionPrivate; | |
51358 | typedef struct _GtkToggleActionClass GtkToggleActionClass; | |
51359 | ||
51360 | struct _GtkToggleAction | |
51361 | { | |
51362 | GtkAction parent; | |
51363 | ||
51364 | ||
51365 | ||
51366 | GtkToggleActionPrivate *private_data; | |
51367 | }; | |
51368 | ||
51369 | struct _GtkToggleActionClass | |
51370 | { | |
51371 | GtkActionClass parent_class; | |
51372 | ||
51373 | void (* toggled) (GtkToggleAction *action); | |
51374 | ||
51375 | ||
51376 | void (*_gtk_reserved1) (void); | |
51377 | void (*_gtk_reserved2) (void); | |
51378 | void (*_gtk_reserved3) (void); | |
51379 | void (*_gtk_reserved4) (void); | |
51380 | }; | |
51381 | ||
51382 | GType gtk_toggle_action_get_type (void) __attribute__((__const__)); | |
51383 | GtkToggleAction *gtk_toggle_action_new (const gchar *name, | |
51384 | const gchar *label, | |
51385 | const gchar *tooltip, | |
51386 | const gchar *stock_id); | |
51387 | void gtk_toggle_action_toggled (GtkToggleAction *action); | |
51388 | void gtk_toggle_action_set_active (GtkToggleAction *action, | |
51389 | gboolean is_active); | |
51390 | gboolean gtk_toggle_action_get_active (GtkToggleAction *action); | |
51391 | void gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action, | |
51392 | gboolean draw_as_radio); | |
51393 | gboolean gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action); | |
51394 | ||
51395 | ||
51396 | ||
51397 | # 34 "/usr/include/gtk-2.0/gtk/gtkradioaction.h" 2 | |
51398 | ||
51399 | ||
51400 | ||
51401 | #define GTK_TYPE_RADIO_ACTION (gtk_radio_action_get_type ()) | |
51402 | #define GTK_RADIO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_ACTION, GtkRadioAction)) | |
51403 | #define GTK_RADIO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_ACTION, GtkRadioActionClass)) | |
51404 | #define GTK_IS_RADIO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_ACTION)) | |
51405 | #define GTK_IS_RADIO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_ACTION)) | |
51406 | #define GTK_RADIO_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_RADIO_ACTION, GtkRadioActionClass)) | |
51407 | ||
51408 | typedef struct _GtkRadioAction GtkRadioAction; | |
51409 | typedef struct _GtkRadioActionPrivate GtkRadioActionPrivate; | |
51410 | typedef struct _GtkRadioActionClass GtkRadioActionClass; | |
51411 | ||
51412 | struct _GtkRadioAction | |
51413 | { | |
51414 | GtkToggleAction parent; | |
51415 | ||
51416 | ||
51417 | ||
51418 | GtkRadioActionPrivate *private_data; | |
51419 | }; | |
51420 | ||
51421 | struct _GtkRadioActionClass | |
51422 | { | |
51423 | GtkToggleActionClass parent_class; | |
51424 | ||
51425 | void (* changed) (GtkRadioAction *action, GtkRadioAction *current); | |
51426 | ||
51427 | ||
51428 | void (*_gtk_reserved1) (void); | |
51429 | void (*_gtk_reserved2) (void); | |
51430 | void (*_gtk_reserved3) (void); | |
51431 | void (*_gtk_reserved4) (void); | |
51432 | }; | |
51433 | ||
51434 | GType gtk_radio_action_get_type (void) __attribute__((__const__)); | |
51435 | GtkRadioAction *gtk_radio_action_new (const gchar *name, | |
51436 | const gchar *label, | |
51437 | const gchar *tooltip, | |
51438 | const gchar *stock_id, | |
51439 | gint value); | |
51440 | GSList *gtk_radio_action_get_group (GtkRadioAction *action); | |
51441 | void gtk_radio_action_set_group (GtkRadioAction *action, | |
51442 | GSList *group); | |
51443 | gint gtk_radio_action_get_current_value (GtkRadioAction *action); | |
51444 | ||
51445 | ||
51446 | ||
51447 | # 134 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51448 | # 1 "/usr/include/gtk-2.0/gtk/gtkradiobutton.h" 1 | |
51449 | # 28 "/usr/include/gtk-2.0/gtk/gtkradiobutton.h" | |
51450 | #define __GTK_RADIO_BUTTON_H__ | |
51451 | ||
51452 | ||
51453 | ||
51454 | ||
51455 | ||
51456 | ||
51457 | ||
51458 | ||
51459 | #define GTK_TYPE_RADIO_BUTTON (gtk_radio_button_get_type ()) | |
51460 | #define GTK_RADIO_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButton)) | |
51461 | #define GTK_RADIO_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_BUTTON, GtkRadioButtonClass)) | |
51462 | #define GTK_IS_RADIO_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_BUTTON)) | |
51463 | #define GTK_IS_RADIO_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_BUTTON)) | |
51464 | #define GTK_RADIO_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButtonClass)) | |
51465 | ||
51466 | ||
51467 | typedef struct _GtkRadioButton GtkRadioButton; | |
51468 | typedef struct _GtkRadioButtonClass GtkRadioButtonClass; | |
51469 | ||
51470 | struct _GtkRadioButton | |
51471 | { | |
51472 | GtkCheckButton check_button; | |
51473 | ||
51474 | GSList *group; | |
51475 | }; | |
51476 | ||
51477 | struct _GtkRadioButtonClass | |
51478 | { | |
51479 | GtkCheckButtonClass parent_class; | |
51480 | ||
51481 | ||
51482 | void (*group_changed) (GtkRadioButton *radio_button); | |
51483 | ||
51484 | ||
51485 | void (*_gtk_reserved2) (void); | |
51486 | void (*_gtk_reserved3) (void); | |
51487 | void (*_gtk_reserved4) (void); | |
51488 | }; | |
51489 | ||
51490 | ||
51491 | GType gtk_radio_button_get_type (void) __attribute__((__const__)); | |
51492 | ||
51493 | GtkWidget* gtk_radio_button_new (GSList *group); | |
51494 | GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *group); | |
51495 | GtkWidget* gtk_radio_button_new_with_label (GSList *group, | |
51496 | const gchar *label); | |
51497 | GtkWidget* gtk_radio_button_new_with_label_from_widget (GtkRadioButton *group, | |
51498 | const gchar *label); | |
51499 | GtkWidget* gtk_radio_button_new_with_mnemonic (GSList *group, | |
51500 | const gchar *label); | |
51501 | GtkWidget* gtk_radio_button_new_with_mnemonic_from_widget (GtkRadioButton *group, | |
51502 | const gchar *label); | |
51503 | GSList* gtk_radio_button_get_group (GtkRadioButton *radio_button); | |
51504 | void gtk_radio_button_set_group (GtkRadioButton *radio_button, | |
51505 | GSList *group); | |
51506 | ||
51507 | ||
51508 | #define gtk_radio_button_group gtk_radio_button_get_group | |
51509 | ||
51510 | ||
51511 | ||
51512 | # 135 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51513 | # 1 "/usr/include/gtk-2.0/gtk/gtkradiomenuitem.h" 1 | |
51514 | # 28 "/usr/include/gtk-2.0/gtk/gtkradiomenuitem.h" | |
51515 | #define __GTK_RADIO_MENU_ITEM_H__ | |
51516 | ||
51517 | ||
51518 | ||
51519 | ||
51520 | ||
51521 | ||
51522 | ||
51523 | #define GTK_TYPE_RADIO_MENU_ITEM (gtk_radio_menu_item_get_type ()) | |
51524 | #define GTK_RADIO_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem)) | |
51525 | #define GTK_RADIO_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItemClass)) | |
51526 | #define GTK_IS_RADIO_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_MENU_ITEM)) | |
51527 | #define GTK_IS_RADIO_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_MENU_ITEM)) | |
51528 | #define GTK_RADIO_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItemClass)) | |
51529 | ||
51530 | ||
51531 | typedef struct _GtkRadioMenuItem GtkRadioMenuItem; | |
51532 | typedef struct _GtkRadioMenuItemClass GtkRadioMenuItemClass; | |
51533 | ||
51534 | struct _GtkRadioMenuItem | |
51535 | { | |
51536 | GtkCheckMenuItem check_menu_item; | |
51537 | ||
51538 | GSList *group; | |
51539 | }; | |
51540 | ||
51541 | struct _GtkRadioMenuItemClass | |
51542 | { | |
51543 | GtkCheckMenuItemClass parent_class; | |
51544 | ||
51545 | ||
51546 | void (*group_changed) (GtkRadioMenuItem *radio_menu_item); | |
51547 | ||
51548 | ||
51549 | void (*_gtk_reserved2) (void); | |
51550 | void (*_gtk_reserved3) (void); | |
51551 | void (*_gtk_reserved4) (void); | |
51552 | }; | |
51553 | ||
51554 | ||
51555 | GType gtk_radio_menu_item_get_type (void) __attribute__((__const__)); | |
51556 | ||
51557 | GtkWidget* gtk_radio_menu_item_new (GSList *group); | |
51558 | GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group, | |
51559 | const gchar *label); | |
51560 | GtkWidget* gtk_radio_menu_item_new_with_mnemonic (GSList *group, | |
51561 | const gchar *label); | |
51562 | GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group); | |
51563 | GtkWidget *gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group, | |
51564 | const gchar *label); | |
51565 | GtkWidget *gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group, | |
51566 | const gchar *label); | |
51567 | GSList* gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item); | |
51568 | void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item, | |
51569 | GSList *group); | |
51570 | ||
51571 | ||
51572 | #define gtk_radio_menu_item_group gtk_radio_menu_item_get_group | |
51573 | ||
51574 | ||
51575 | ||
51576 | # 136 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51577 | # 1 "/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h" 1 | |
51578 | # 24 "/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h" | |
51579 | #define __GTK_RADIO_TOOL_BUTTON_H__ | |
51580 | ||
51581 | # 1 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h" 1 | |
51582 | # 24 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h" | |
51583 | #define __GTK_TOGGLE_TOOL_BUTTON_H__ | |
51584 | ||
51585 | # 1 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" 1 | |
51586 | # 27 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h" 2 | |
51587 | ||
51588 | ||
51589 | ||
51590 | #define GTK_TYPE_TOGGLE_TOOL_BUTTON (gtk_toggle_tool_button_get_type ()) | |
51591 | #define GTK_TOGGLE_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButton)) | |
51592 | #define GTK_TOGGLE_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButtonClass)) | |
51593 | #define GTK_IS_TOGGLE_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON)) | |
51594 | #define GTK_IS_TOGGLE_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_TOOL_BUTTON)) | |
51595 | #define GTK_TOGGLE_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButtonClass)) | |
51596 | ||
51597 | typedef struct _GtkToggleToolButton GtkToggleToolButton; | |
51598 | typedef struct _GtkToggleToolButtonClass GtkToggleToolButtonClass; | |
51599 | typedef struct _GtkToggleToolButtonPrivate GtkToggleToolButtonPrivate; | |
51600 | ||
51601 | struct _GtkToggleToolButton | |
51602 | { | |
51603 | GtkToolButton parent; | |
51604 | ||
51605 | ||
51606 | GtkToggleToolButtonPrivate *priv; | |
51607 | }; | |
51608 | ||
51609 | struct _GtkToggleToolButtonClass | |
51610 | { | |
51611 | GtkToolButtonClass parent_class; | |
51612 | ||
51613 | ||
51614 | void (* toggled) (GtkToggleToolButton *button); | |
51615 | ||
51616 | ||
51617 | void (* _gtk_reserved1) (void); | |
51618 | void (* _gtk_reserved2) (void); | |
51619 | void (* _gtk_reserved3) (void); | |
51620 | void (* _gtk_reserved4) (void); | |
51621 | }; | |
51622 | ||
51623 | GType gtk_toggle_tool_button_get_type (void) __attribute__((__const__)); | |
51624 | GtkToolItem *gtk_toggle_tool_button_new (void); | |
51625 | GtkToolItem *gtk_toggle_tool_button_new_from_stock (const gchar *stock_id); | |
51626 | ||
51627 | void gtk_toggle_tool_button_set_active (GtkToggleToolButton *button, | |
51628 | gboolean is_active); | |
51629 | gboolean gtk_toggle_tool_button_get_active (GtkToggleToolButton *button); | |
51630 | ||
51631 | ||
51632 | # 27 "/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h" 2 | |
51633 | ||
51634 | ||
51635 | ||
51636 | #define GTK_TYPE_RADIO_TOOL_BUTTON (gtk_radio_tool_button_get_type ()) | |
51637 | #define GTK_RADIO_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButton)) | |
51638 | #define GTK_RADIO_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButtonClass)) | |
51639 | #define GTK_IS_RADIO_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_TOOL_BUTTON)) | |
51640 | #define GTK_IS_RADIO_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_TOOL_BUTTON)) | |
51641 | #define GTK_RADIO_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButtonClass)) | |
51642 | ||
51643 | typedef struct _GtkRadioToolButton GtkRadioToolButton; | |
51644 | typedef struct _GtkRadioToolButtonClass GtkRadioToolButtonClass; | |
51645 | ||
51646 | struct _GtkRadioToolButton | |
51647 | { | |
51648 | GtkToggleToolButton parent; | |
51649 | }; | |
51650 | ||
51651 | struct _GtkRadioToolButtonClass | |
51652 | { | |
51653 | GtkToggleToolButtonClass parent_class; | |
51654 | ||
51655 | ||
51656 | void (* _gtk_reserved1) (void); | |
51657 | void (* _gtk_reserved2) (void); | |
51658 | void (* _gtk_reserved3) (void); | |
51659 | void (* _gtk_reserved4) (void); | |
51660 | }; | |
51661 | ||
51662 | GType gtk_radio_tool_button_get_type (void) __attribute__((__const__)); | |
51663 | ||
51664 | GtkToolItem *gtk_radio_tool_button_new (GSList *group); | |
51665 | GtkToolItem *gtk_radio_tool_button_new_from_stock (GSList *group, | |
51666 | const gchar *stock_id); | |
51667 | GtkToolItem *gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group); | |
51668 | GtkToolItem *gtk_radio_tool_button_new_with_stock_from_widget (GtkRadioToolButton *group, | |
51669 | const gchar *stock_id); | |
51670 | GSList * gtk_radio_tool_button_get_group (GtkRadioToolButton *button); | |
51671 | void gtk_radio_tool_button_set_group (GtkRadioToolButton *button, | |
51672 | GSList *group); | |
51673 | ||
51674 | ||
51675 | # 137 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51676 | ||
51677 | ||
51678 | ||
51679 | ||
51680 | ||
51681 | # 1 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h" 1 | |
51682 | # 28 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h" | |
51683 | #define __GTK_SCROLLED_WINDOW_H__ | |
51684 | ||
51685 | ||
51686 | ||
51687 | ||
51688 | ||
51689 | # 1 "/usr/include/gtk-2.0/gtk/gtkviewport.h" 1 | |
51690 | # 28 "/usr/include/gtk-2.0/gtk/gtkviewport.h" | |
51691 | #define __GTK_VIEWPORT_H__ | |
51692 | ||
51693 | ||
51694 | ||
51695 | ||
51696 | ||
51697 | ||
51698 | ||
51699 | ||
51700 | ||
51701 | ||
51702 | #define GTK_TYPE_VIEWPORT (gtk_viewport_get_type ()) | |
51703 | #define GTK_VIEWPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VIEWPORT, GtkViewport)) | |
51704 | #define GTK_VIEWPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VIEWPORT, GtkViewportClass)) | |
51705 | #define GTK_IS_VIEWPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VIEWPORT)) | |
51706 | #define GTK_IS_VIEWPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VIEWPORT)) | |
51707 | #define GTK_VIEWPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VIEWPORT, GtkViewportClass)) | |
51708 | ||
51709 | ||
51710 | typedef struct _GtkViewport GtkViewport; | |
51711 | typedef struct _GtkViewportClass GtkViewportClass; | |
51712 | ||
51713 | struct _GtkViewport | |
51714 | { | |
51715 | GtkBin bin; | |
51716 | ||
51717 | GtkShadowType shadow_type; | |
51718 | GdkWindow *view_window; | |
51719 | GdkWindow *bin_window; | |
51720 | GtkAdjustment *hadjustment; | |
51721 | GtkAdjustment *vadjustment; | |
51722 | }; | |
51723 | ||
51724 | struct _GtkViewportClass | |
51725 | { | |
51726 | GtkBinClass parent_class; | |
51727 | ||
51728 | void (*set_scroll_adjustments) (GtkViewport *viewport, | |
51729 | GtkAdjustment *hadjustment, | |
51730 | GtkAdjustment *vadjustment); | |
51731 | }; | |
51732 | ||
51733 | ||
51734 | GType gtk_viewport_get_type (void) __attribute__((__const__)); | |
51735 | GtkWidget* gtk_viewport_new (GtkAdjustment *hadjustment, | |
51736 | GtkAdjustment *vadjustment); | |
51737 | GtkAdjustment* gtk_viewport_get_hadjustment (GtkViewport *viewport); | |
51738 | GtkAdjustment* gtk_viewport_get_vadjustment (GtkViewport *viewport); | |
51739 | void gtk_viewport_set_hadjustment (GtkViewport *viewport, | |
51740 | GtkAdjustment *adjustment); | |
51741 | void gtk_viewport_set_vadjustment (GtkViewport *viewport, | |
51742 | GtkAdjustment *adjustment); | |
51743 | void gtk_viewport_set_shadow_type (GtkViewport *viewport, | |
51744 | GtkShadowType type); | |
51745 | GtkShadowType gtk_viewport_get_shadow_type (GtkViewport *viewport); | |
51746 | ||
51747 | ||
51748 | ||
51749 | # 35 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h" 2 | |
51750 | ||
51751 | ||
51752 | ||
51753 | ||
51754 | ||
51755 | #define GTK_TYPE_SCROLLED_WINDOW (gtk_scrolled_window_get_type ()) | |
51756 | #define GTK_SCROLLED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindow)) | |
51757 | #define GTK_SCROLLED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass)) | |
51758 | #define GTK_IS_SCROLLED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCROLLED_WINDOW)) | |
51759 | #define GTK_IS_SCROLLED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLED_WINDOW)) | |
51760 | #define GTK_SCROLLED_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass)) | |
51761 | ||
51762 | ||
51763 | ||
51764 | typedef struct _GtkScrolledWindow GtkScrolledWindow; | |
51765 | typedef struct _GtkScrolledWindowClass GtkScrolledWindowClass; | |
51766 | ||
51767 | struct _GtkScrolledWindow | |
51768 | { | |
51769 | GtkBin container; | |
51770 | ||
51771 | ||
51772 | GtkWidget *hscrollbar; | |
51773 | GtkWidget *vscrollbar; | |
51774 | ||
51775 | ||
51776 | guint hscrollbar_policy : 2; | |
51777 | guint vscrollbar_policy : 2; | |
51778 | guint hscrollbar_visible : 1; | |
51779 | guint vscrollbar_visible : 1; | |
51780 | guint window_placement : 2; | |
51781 | guint focus_out : 1; | |
51782 | ||
51783 | guint16 shadow_type; | |
51784 | }; | |
51785 | ||
51786 | struct _GtkScrolledWindowClass | |
51787 | { | |
51788 | GtkBinClass parent_class; | |
51789 | ||
51790 | gint scrollbar_spacing; | |
51791 | # 84 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h" | |
51792 | void (*scroll_child) (GtkScrolledWindow *scrolled_window, | |
51793 | GtkScrollType scroll, | |
51794 | gboolean horizontal); | |
51795 | ||
51796 | void (* move_focus_out) (GtkScrolledWindow *scrolled_window, | |
51797 | GtkDirectionType direction); | |
51798 | ||
51799 | ||
51800 | void (*_gtk_reserved1) (void); | |
51801 | void (*_gtk_reserved2) (void); | |
51802 | void (*_gtk_reserved3) (void); | |
51803 | void (*_gtk_reserved4) (void); | |
51804 | }; | |
51805 | ||
51806 | ||
51807 | GType gtk_scrolled_window_get_type (void) __attribute__((__const__)); | |
51808 | GtkWidget* gtk_scrolled_window_new (GtkAdjustment *hadjustment, | |
51809 | GtkAdjustment *vadjustment); | |
51810 | void gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window, | |
51811 | GtkAdjustment *hadjustment); | |
51812 | void gtk_scrolled_window_set_vadjustment (GtkScrolledWindow *scrolled_window, | |
51813 | GtkAdjustment *vadjustment); | |
51814 | GtkAdjustment* gtk_scrolled_window_get_hadjustment (GtkScrolledWindow *scrolled_window); | |
51815 | GtkAdjustment* gtk_scrolled_window_get_vadjustment (GtkScrolledWindow *scrolled_window); | |
51816 | GtkWidget* gtk_scrolled_window_get_hscrollbar (GtkScrolledWindow *scrolled_window); | |
51817 | GtkWidget* gtk_scrolled_window_get_vscrollbar (GtkScrolledWindow *scrolled_window); | |
51818 | void gtk_scrolled_window_set_policy (GtkScrolledWindow *scrolled_window, | |
51819 | GtkPolicyType hscrollbar_policy, | |
51820 | GtkPolicyType vscrollbar_policy); | |
51821 | void gtk_scrolled_window_get_policy (GtkScrolledWindow *scrolled_window, | |
51822 | GtkPolicyType *hscrollbar_policy, | |
51823 | GtkPolicyType *vscrollbar_policy); | |
51824 | void gtk_scrolled_window_set_placement (GtkScrolledWindow *scrolled_window, | |
51825 | GtkCornerType window_placement); | |
51826 | GtkCornerType gtk_scrolled_window_get_placement (GtkScrolledWindow *scrolled_window); | |
51827 | void gtk_scrolled_window_set_shadow_type (GtkScrolledWindow *scrolled_window, | |
51828 | GtkShadowType type); | |
51829 | GtkShadowType gtk_scrolled_window_get_shadow_type (GtkScrolledWindow *scrolled_window); | |
51830 | void gtk_scrolled_window_add_with_viewport (GtkScrolledWindow *scrolled_window, | |
51831 | GtkWidget *child); | |
51832 | ||
51833 | gint _gtk_scrolled_window_get_scrollbar_spacing (GtkScrolledWindow *scrolled_window); | |
51834 | ||
51835 | ||
51836 | ||
51837 | # 143 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51838 | ||
51839 | ||
51840 | # 1 "/usr/include/gtk-2.0/gtk/gtkseparatormenuitem.h" 1 | |
51841 | # 28 "/usr/include/gtk-2.0/gtk/gtkseparatormenuitem.h" | |
51842 | #define __GTK_SEPARATOR_MENU_ITEM_H__ | |
51843 | ||
51844 | ||
51845 | ||
51846 | ||
51847 | ||
51848 | ||
51849 | ||
51850 | #define GTK_TYPE_SEPARATOR_MENU_ITEM (gtk_separator_menu_item_get_type ()) | |
51851 | #define GTK_SEPARATOR_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItem)) | |
51852 | #define GTK_SEPARATOR_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItemClass)) | |
51853 | #define GTK_IS_SEPARATOR_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM)) | |
51854 | #define GTK_IS_SEPARATOR_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR_MENU_ITEM)) | |
51855 | #define GTK_SEPARATOR_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItemClass)) | |
51856 | ||
51857 | ||
51858 | typedef struct _GtkSeparatorMenuItem GtkSeparatorMenuItem; | |
51859 | typedef struct _GtkSeparatorMenuItemClass GtkSeparatorMenuItemClass; | |
51860 | ||
51861 | struct _GtkSeparatorMenuItem | |
51862 | { | |
51863 | GtkMenuItem menu_item; | |
51864 | }; | |
51865 | ||
51866 | struct _GtkSeparatorMenuItemClass | |
51867 | { | |
51868 | GtkMenuItemClass parent_class; | |
51869 | }; | |
51870 | ||
51871 | ||
51872 | GType gtk_separator_menu_item_get_type (void) __attribute__((__const__)); | |
51873 | GtkWidget* gtk_separator_menu_item_new (void); | |
51874 | ||
51875 | ||
51876 | ||
51877 | # 146 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51878 | # 1 "/usr/include/gtk-2.0/gtk/gtkseparatortoolitem.h" 1 | |
51879 | # 23 "/usr/include/gtk-2.0/gtk/gtkseparatortoolitem.h" | |
51880 | #define __GTK_SEPARATOR_TOOL_ITEM_H__ | |
51881 | ||
51882 | ||
51883 | ||
51884 | ||
51885 | ||
51886 | #define GTK_TYPE_SEPARATOR_TOOL_ITEM (gtk_separator_tool_item_get_type ()) | |
51887 | #define GTK_SEPARATOR_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItem)) | |
51888 | #define GTK_SEPARATOR_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemClass)) | |
51889 | #define GTK_IS_SEPARATOR_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM)) | |
51890 | #define GTK_IS_SEPARATOR_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR_TOOL_ITEM)) | |
51891 | #define GTK_SEPARATOR_TOOL_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemClass)) | |
51892 | ||
51893 | typedef struct _GtkSeparatorToolItem GtkSeparatorToolItem; | |
51894 | typedef struct _GtkSeparatorToolItemClass GtkSeparatorToolItemClass; | |
51895 | typedef struct _GtkSeparatorToolItemPrivate GtkSeparatorToolItemPrivate; | |
51896 | ||
51897 | struct _GtkSeparatorToolItem | |
51898 | { | |
51899 | GtkToolItem parent; | |
51900 | ||
51901 | ||
51902 | GtkSeparatorToolItemPrivate *priv; | |
51903 | }; | |
51904 | ||
51905 | struct _GtkSeparatorToolItemClass | |
51906 | { | |
51907 | GtkToolItemClass parent_class; | |
51908 | ||
51909 | ||
51910 | void (* _gtk_reserved1) (void); | |
51911 | void (* _gtk_reserved2) (void); | |
51912 | void (* _gtk_reserved3) (void); | |
51913 | void (* _gtk_reserved4) (void); | |
51914 | }; | |
51915 | ||
51916 | GType gtk_separator_tool_item_get_type (void) __attribute__((__const__)); | |
51917 | GtkToolItem *gtk_separator_tool_item_new (void); | |
51918 | ||
51919 | gboolean gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item); | |
51920 | void gtk_separator_tool_item_set_draw (GtkSeparatorToolItem *item, | |
51921 | gboolean draw); | |
51922 | ||
51923 | ||
51924 | # 147 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
51925 | ||
51926 | ||
51927 | # 1 "/usr/include/gtk-2.0/gtk/gtksizegroup.h" 1 | |
51928 | # 22 "/usr/include/gtk-2.0/gtk/gtksizegroup.h" | |
51929 | #define __GTK_SIZE_GROUP_H__ | |
51930 | ||
51931 | ||
51932 | ||
51933 | ||
51934 | ||
51935 | #define GTK_TYPE_SIZE_GROUP (gtk_size_group_get_type ()) | |
51936 | #define GTK_SIZE_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SIZE_GROUP, GtkSizeGroup)) | |
51937 | #define GTK_SIZE_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SIZE_GROUP, GtkSizeGroupClass)) | |
51938 | #define GTK_IS_SIZE_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SIZE_GROUP)) | |
51939 | #define GTK_IS_SIZE_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SIZE_GROUP)) | |
51940 | #define GTK_SIZE_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SIZE_GROUP, GtkSizeGroupClass)) | |
51941 | ||
51942 | ||
51943 | typedef struct _GtkSizeGroup GtkSizeGroup; | |
51944 | typedef struct _GtkSizeGroupClass GtkSizeGroupClass; | |
51945 | ||
51946 | struct _GtkSizeGroup | |
51947 | { | |
51948 | GObject parent_instance; | |
51949 | ||
51950 | GSList *widgets; | |
51951 | ||
51952 | guint8 mode; | |
51953 | ||
51954 | guint have_width : 1; | |
51955 | guint have_height : 1; | |
51956 | guint ignore_hidden : 1; | |
51957 | ||
51958 | GtkRequisition requisition; | |
51959 | }; | |
51960 | ||
51961 | struct _GtkSizeGroupClass | |
51962 | { | |
51963 | GObjectClass parent_class; | |
51964 | ||
51965 | ||
51966 | void (*_gtk_reserved1) (void); | |
51967 | void (*_gtk_reserved2) (void); | |
51968 | void (*_gtk_reserved3) (void); | |
51969 | void (*_gtk_reserved4) (void); | |
51970 | }; | |
51971 | # 75 "/usr/include/gtk-2.0/gtk/gtksizegroup.h" | |
51972 | typedef enum { | |
51973 | GTK_SIZE_GROUP_NONE, | |
51974 | GTK_SIZE_GROUP_HORIZONTAL, | |
51975 | GTK_SIZE_GROUP_VERTICAL, | |
51976 | GTK_SIZE_GROUP_BOTH | |
51977 | } GtkSizeGroupMode; | |
51978 | ||
51979 | GType gtk_size_group_get_type (void) __attribute__((__const__)); | |
51980 | ||
51981 | GtkSizeGroup * gtk_size_group_new (GtkSizeGroupMode mode); | |
51982 | void gtk_size_group_set_mode (GtkSizeGroup *size_group, | |
51983 | GtkSizeGroupMode mode); | |
51984 | GtkSizeGroupMode gtk_size_group_get_mode (GtkSizeGroup *size_group); | |
51985 | void gtk_size_group_set_ignore_hidden (GtkSizeGroup *size_group, | |
51986 | gboolean ignore_hidden); | |
51987 | gboolean gtk_size_group_get_ignore_hidden (GtkSizeGroup *size_group); | |
51988 | void gtk_size_group_add_widget (GtkSizeGroup *size_group, | |
51989 | GtkWidget *widget); | |
51990 | void gtk_size_group_remove_widget (GtkSizeGroup *size_group, | |
51991 | GtkWidget *widget); | |
51992 | ||
51993 | ||
51994 | void _gtk_size_group_get_child_requisition (GtkWidget *widget, | |
51995 | GtkRequisition *requisition); | |
51996 | void _gtk_size_group_compute_requisition (GtkWidget *widget, | |
51997 | GtkRequisition *requisition); | |
51998 | void _gtk_size_group_queue_resize (GtkWidget *widget); | |
51999 | ||
52000 | ||
52001 | # 150 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
52002 | ||
52003 | # 1 "/usr/include/gtk-2.0/gtk/gtkspinbutton.h" 1 | |
52004 | # 31 "/usr/include/gtk-2.0/gtk/gtkspinbutton.h" | |
52005 | #define __GTK_SPIN_BUTTON_H__ | |
52006 | ||
52007 | ||
52008 | ||
52009 | ||
52010 | ||
52011 | ||
52012 | ||
52013 | ||
52014 | ||
52015 | #define GTK_TYPE_SPIN_BUTTON (gtk_spin_button_get_type ()) | |
52016 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | |
52017 | #define GTK_SPIN_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass)) | |
52018 | #define GTK_IS_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPIN_BUTTON)) | |
52019 | #define GTK_IS_SPIN_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SPIN_BUTTON)) | |
52020 | #define GTK_SPIN_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass)) | |
52021 | ||
52022 | #define GTK_INPUT_ERROR -1 | |
52023 | ||
52024 | typedef enum | |
52025 | { | |
52026 | GTK_UPDATE_ALWAYS, | |
52027 | GTK_UPDATE_IF_VALID | |
52028 | } GtkSpinButtonUpdatePolicy; | |
52029 | ||
52030 | typedef enum | |
52031 | { | |
52032 | GTK_SPIN_STEP_FORWARD, | |
52033 | GTK_SPIN_STEP_BACKWARD, | |
52034 | GTK_SPIN_PAGE_FORWARD, | |
52035 | GTK_SPIN_PAGE_BACKWARD, | |
52036 | GTK_SPIN_HOME, | |
52037 | GTK_SPIN_END, | |
52038 | GTK_SPIN_USER_DEFINED | |
52039 | } GtkSpinType; | |
52040 | ||
52041 | ||
52042 | typedef struct _GtkSpinButton GtkSpinButton; | |
52043 | typedef struct _GtkSpinButtonClass GtkSpinButtonClass; | |
52044 | ||
52045 | ||
52046 | struct _GtkSpinButton | |
52047 | { | |
52048 | GtkEntry entry; | |
52049 | ||
52050 | GtkAdjustment *adjustment; | |
52051 | ||
52052 | GdkWindow *panel; | |
52053 | ||
52054 | guint32 timer; | |
52055 | ||
52056 | gdouble climb_rate; | |
52057 | gdouble timer_step; | |
52058 | ||
52059 | GtkSpinButtonUpdatePolicy update_policy; | |
52060 | ||
52061 | guint in_child : 2; | |
52062 | guint click_child : 2; | |
52063 | guint button : 2; | |
52064 | guint need_timer : 1; | |
52065 | guint timer_calls : 3; | |
52066 | guint digits : 10; | |
52067 | guint numeric : 1; | |
52068 | guint wrap : 1; | |
52069 | guint snap_to_ticks : 1; | |
52070 | }; | |
52071 | ||
52072 | struct _GtkSpinButtonClass | |
52073 | { | |
52074 | GtkEntryClass parent_class; | |
52075 | ||
52076 | gint (*input) (GtkSpinButton *spin_button, | |
52077 | gdouble *new_value); | |
52078 | gint (*output) (GtkSpinButton *spin_button); | |
52079 | void (*value_changed) (GtkSpinButton *spin_button); | |
52080 | ||
52081 | ||
52082 | void (*change_value) (GtkSpinButton *spin_button, | |
52083 | GtkScrollType scroll); | |
52084 | ||
52085 | ||
52086 | void (*_gtk_reserved1) (void); | |
52087 | void (*_gtk_reserved2) (void); | |
52088 | void (*_gtk_reserved3) (void); | |
52089 | void (*_gtk_reserved4) (void); | |
52090 | }; | |
52091 | ||
52092 | ||
52093 | GType gtk_spin_button_get_type (void) __attribute__((__const__)); | |
52094 | ||
52095 | void gtk_spin_button_configure (GtkSpinButton *spin_button, | |
52096 | GtkAdjustment *adjustment, | |
52097 | gdouble climb_rate, | |
52098 | guint digits); | |
52099 | ||
52100 | GtkWidget* gtk_spin_button_new (GtkAdjustment *adjustment, | |
52101 | gdouble climb_rate, | |
52102 | guint digits); | |
52103 | ||
52104 | GtkWidget* gtk_spin_button_new_with_range (gdouble min, | |
52105 | gdouble max, | |
52106 | gdouble step); | |
52107 | ||
52108 | void gtk_spin_button_set_adjustment (GtkSpinButton *spin_button, | |
52109 | GtkAdjustment *adjustment); | |
52110 | ||
52111 | GtkAdjustment* gtk_spin_button_get_adjustment (GtkSpinButton *spin_button); | |
52112 | ||
52113 | void gtk_spin_button_set_digits (GtkSpinButton *spin_button, | |
52114 | guint digits); | |
52115 | guint gtk_spin_button_get_digits (GtkSpinButton *spin_button); | |
52116 | ||
52117 | void gtk_spin_button_set_increments (GtkSpinButton *spin_button, | |
52118 | gdouble step, | |
52119 | gdouble page); | |
52120 | void gtk_spin_button_get_increments (GtkSpinButton *spin_button, | |
52121 | gdouble *step, | |
52122 | gdouble *page); | |
52123 | ||
52124 | void gtk_spin_button_set_range (GtkSpinButton *spin_button, | |
52125 | gdouble min, | |
52126 | gdouble max); | |
52127 | void gtk_spin_button_get_range (GtkSpinButton *spin_button, | |
52128 | gdouble *min, | |
52129 | gdouble *max); | |
52130 | ||
52131 | gdouble gtk_spin_button_get_value (GtkSpinButton *spin_button); | |
52132 | ||
52133 | gint gtk_spin_button_get_value_as_int (GtkSpinButton *spin_button); | |
52134 | ||
52135 | void gtk_spin_button_set_value (GtkSpinButton *spin_button, | |
52136 | gdouble value); | |
52137 | ||
52138 | void gtk_spin_button_set_update_policy (GtkSpinButton *spin_button, | |
52139 | GtkSpinButtonUpdatePolicy policy); | |
52140 | GtkSpinButtonUpdatePolicy gtk_spin_button_get_update_policy (GtkSpinButton *spin_button); | |
52141 | ||
52142 | void gtk_spin_button_set_numeric (GtkSpinButton *spin_button, | |
52143 | gboolean numeric); | |
52144 | gboolean gtk_spin_button_get_numeric (GtkSpinButton *spin_button); | |
52145 | ||
52146 | void gtk_spin_button_spin (GtkSpinButton *spin_button, | |
52147 | GtkSpinType direction, | |
52148 | gdouble increment); | |
52149 | ||
52150 | void gtk_spin_button_set_wrap (GtkSpinButton *spin_button, | |
52151 | gboolean wrap); | |
52152 | gboolean gtk_spin_button_get_wrap (GtkSpinButton *spin_button); | |
52153 | ||
52154 | void gtk_spin_button_set_snap_to_ticks (GtkSpinButton *spin_button, | |
52155 | gboolean snap_to_ticks); | |
52156 | gboolean gtk_spin_button_get_snap_to_ticks (GtkSpinButton *spin_button); | |
52157 | void gtk_spin_button_update (GtkSpinButton *spin_button); | |
52158 | ||
52159 | ||
52160 | ||
52161 | #define gtk_spin_button_get_value_as_float gtk_spin_button_get_value | |
52162 | ||
52163 | ||
52164 | ||
52165 | # 152 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
52166 | # 1 "/usr/include/gtk-2.0/gtk/gtkstatusbar.h" 1 | |
52167 | # 29 "/usr/include/gtk-2.0/gtk/gtkstatusbar.h" | |
52168 | #define __GTK_STATUSBAR_H__ | |
52169 | ||
52170 | ||
52171 | ||
52172 | ||
52173 | ||
52174 | #define GTK_TYPE_STATUSBAR (gtk_statusbar_get_type ()) | |
52175 | #define GTK_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STATUSBAR, GtkStatusbar)) | |
52176 | #define GTK_STATUSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STATUSBAR, GtkStatusbarClass)) | |
52177 | #define GTK_IS_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_STATUSBAR)) | |
52178 | #define GTK_IS_STATUSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STATUSBAR)) | |
52179 | #define GTK_STATUSBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STATUSBAR, GtkStatusbarClass)) | |
52180 | ||
52181 | ||
52182 | typedef struct _GtkStatusbar GtkStatusbar; | |
52183 | typedef struct _GtkStatusbarClass GtkStatusbarClass; | |
52184 | ||
52185 | struct _GtkStatusbar | |
52186 | { | |
52187 | GtkHBox parent_widget; | |
52188 | ||
52189 | GtkWidget *frame; | |
52190 | GtkWidget *label; | |
52191 | ||
52192 | GSList *messages; | |
52193 | GSList *keys; | |
52194 | ||
52195 | guint seq_context_id; | |
52196 | guint seq_message_id; | |
52197 | ||
52198 | GdkWindow *grip_window; | |
52199 | ||
52200 | guint has_resize_grip : 1; | |
52201 | }; | |
52202 | ||
52203 | struct _GtkStatusbarClass | |
52204 | { | |
52205 | GtkHBoxClass parent_class; | |
52206 | ||
52207 | gpointer messages_mem_chunk; | |
52208 | ||
52209 | void (*text_pushed) (GtkStatusbar *statusbar, | |
52210 | guint context_id, | |
52211 | const gchar *text); | |
52212 | void (*text_popped) (GtkStatusbar *statusbar, | |
52213 | guint context_id, | |
52214 | const gchar *text); | |
52215 | ||
52216 | ||
52217 | void (*_gtk_reserved1) (void); | |
52218 | void (*_gtk_reserved2) (void); | |
52219 | void (*_gtk_reserved3) (void); | |
52220 | void (*_gtk_reserved4) (void); | |
52221 | }; | |
52222 | ||
52223 | ||
52224 | GType gtk_statusbar_get_type (void) __attribute__((__const__)); | |
52225 | GtkWidget* gtk_statusbar_new (void); | |
52226 | ||
52227 | ||
52228 | ||
52229 | guint gtk_statusbar_get_context_id (GtkStatusbar *statusbar, | |
52230 | const gchar *context_description); | |
52231 | ||
52232 | guint gtk_statusbar_push (GtkStatusbar *statusbar, | |
52233 | guint context_id, | |
52234 | const gchar *text); | |
52235 | void gtk_statusbar_pop (GtkStatusbar *statusbar, | |
52236 | guint context_id); | |
52237 | void gtk_statusbar_remove (GtkStatusbar *statusbar, | |
52238 | guint context_id, | |
52239 | guint message_id); | |
52240 | ||
52241 | void gtk_statusbar_set_has_resize_grip (GtkStatusbar *statusbar, | |
52242 | gboolean setting); | |
52243 | gboolean gtk_statusbar_get_has_resize_grip (GtkStatusbar *statusbar); | |
52244 | ||
52245 | ||
52246 | # 153 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
52247 | # 1 "/usr/include/gtk-2.0/gtk/gtkstock.h" 1 | |
52248 | # 28 "/usr/include/gtk-2.0/gtk/gtkstock.h" | |
52249 | #define __GTK_STOCK_H__ | |
52250 | ||
52251 | ||
52252 | ||
52253 | ||
52254 | ||
52255 | ||
52256 | ||
52257 | typedef struct _GtkStockItem GtkStockItem; | |
52258 | ||
52259 | struct _GtkStockItem | |
52260 | { | |
52261 | gchar *stock_id; | |
52262 | gchar *label; | |
52263 | GdkModifierType modifier; | |
52264 | guint keyval; | |
52265 | gchar *translation_domain; | |
52266 | }; | |
52267 | ||
52268 | void gtk_stock_add (const GtkStockItem *items, | |
52269 | guint n_items); | |
52270 | void gtk_stock_add_static (const GtkStockItem *items, | |
52271 | guint n_items); | |
52272 | gboolean gtk_stock_lookup (const gchar *stock_id, | |
52273 | GtkStockItem *item); | |
52274 | ||
52275 | ||
52276 | ||
52277 | ||
52278 | GSList* gtk_stock_list_ids (void); | |
52279 | ||
52280 | GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item); | |
52281 | void gtk_stock_item_free (GtkStockItem *item); | |
52282 | ||
52283 | void gtk_stock_set_translate_func (const gchar *domain, | |
52284 | GtkTranslateFunc func, | |
52285 | gpointer data, | |
52286 | GtkDestroyNotify notify); | |
52287 | ||
52288 | ||
52289 | #define GTK_STOCK_DIALOG_AUTHENTICATION "gtk-dialog-authentication" | |
52290 | ||
52291 | #define GTK_STOCK_DIALOG_INFO "gtk-dialog-info" | |
52292 | #define GTK_STOCK_DIALOG_WARNING "gtk-dialog-warning" | |
52293 | #define GTK_STOCK_DIALOG_ERROR "gtk-dialog-error" | |
52294 | #define GTK_STOCK_DIALOG_QUESTION "gtk-dialog-question" | |
52295 | ||
52296 | #define GTK_STOCK_DND "gtk-dnd" | |
52297 | #define GTK_STOCK_DND_MULTIPLE "gtk-dnd-multiple" | |
52298 | ||
52299 | #define GTK_STOCK_ABOUT "gtk-about" | |
52300 | #define GTK_STOCK_ADD "gtk-add" | |
52301 | #define GTK_STOCK_APPLY "gtk-apply" | |
52302 | #define GTK_STOCK_BOLD "gtk-bold" | |
52303 | #define GTK_STOCK_CANCEL "gtk-cancel" | |
52304 | #define GTK_STOCK_CDROM "gtk-cdrom" | |
52305 | #define GTK_STOCK_CLEAR "gtk-clear" | |
52306 | #define GTK_STOCK_CLOSE "gtk-close" | |
52307 | #define GTK_STOCK_COLOR_PICKER "gtk-color-picker" | |
52308 | #define GTK_STOCK_CONVERT "gtk-convert" | |
52309 | #define GTK_STOCK_CONNECT "gtk-connect" | |
52310 | #define GTK_STOCK_COPY "gtk-copy" | |
52311 | #define GTK_STOCK_CUT "gtk-cut" | |
52312 | #define GTK_STOCK_DELETE "gtk-delete" | |
52313 | #define GTK_STOCK_DIRECTORY "gtk-directory" | |
52314 | #define GTK_STOCK_DISCONNECT "gtk-disconnect" | |
52315 | #define GTK_STOCK_EDIT "gtk-edit" | |
52316 | #define GTK_STOCK_EXECUTE "gtk-execute" | |
52317 | #define GTK_STOCK_FILE "gtk-file" | |
52318 | #define GTK_STOCK_FIND "gtk-find" | |
52319 | #define GTK_STOCK_FIND_AND_REPLACE "gtk-find-and-replace" | |
52320 | #define GTK_STOCK_FLOPPY "gtk-floppy" | |
52321 | #define GTK_STOCK_FULLSCREEN "gtk-fullscreen" | |
52322 | #define GTK_STOCK_GOTO_BOTTOM "gtk-goto-bottom" | |
52323 | #define GTK_STOCK_GOTO_FIRST "gtk-goto-first" | |
52324 | #define GTK_STOCK_GOTO_LAST "gtk-goto-last" | |
52325 | #define GTK_STOCK_GOTO_TOP "gtk-goto-top" | |
52326 | #define GTK_STOCK_GO_BACK "gtk-go-back" | |
52327 | #define GTK_STOCK_GO_DOWN "gtk-go-down" | |
52328 | #define GTK_STOCK_GO_FORWARD "gtk-go-forward" | |
52329 | #define GTK_STOCK_GO_UP "gtk-go-up" | |
52330 | #define GTK_STOCK_HARDDISK "gtk-harddisk" | |
52331 | #define GTK_STOCK_HELP "gtk-help" | |
52332 | #define GTK_STOCK_HOME "gtk-home" | |
52333 | #define GTK_STOCK_INDEX "gtk-index" | |
52334 | #define GTK_STOCK_INDENT "gtk-indent" | |
52335 | #define GTK_STOCK_INFO "gtk-info" | |
52336 | #define GTK_STOCK_UNINDENT "gtk-unindent" | |
52337 | #define GTK_STOCK_ITALIC "gtk-italic" | |
52338 | #define GTK_STOCK_JUMP_TO "gtk-jump-to" | |
52339 | #define GTK_STOCK_JUSTIFY_CENTER "gtk-justify-center" | |
52340 | #define GTK_STOCK_JUSTIFY_FILL "gtk-justify-fill" | |
52341 | #define GTK_STOCK_JUSTIFY_LEFT "gtk-justify-left" | |
52342 | #define GTK_STOCK_JUSTIFY_RIGHT "gtk-justify-right" | |
52343 | #define GTK_STOCK_LEAVE_FULLSCREEN "gtk-leave-fullscreen" | |
52344 | #define GTK_STOCK_MISSING_IMAGE "gtk-missing-image" | |
52345 | #define GTK_STOCK_MEDIA_FORWARD "gtk-media-forward" | |
52346 | #define GTK_STOCK_MEDIA_NEXT "gtk-media-next" | |
52347 | #define GTK_STOCK_MEDIA_PAUSE "gtk-media-pause" | |
52348 | #define GTK_STOCK_MEDIA_PLAY "gtk-media-play" | |
52349 | #define GTK_STOCK_MEDIA_PREVIOUS "gtk-media-previous" | |
52350 | #define GTK_STOCK_MEDIA_RECORD "gtk-media-record" | |
52351 | #define GTK_STOCK_MEDIA_REWIND "gtk-media-rewind" | |
52352 | #define GTK_STOCK_MEDIA_STOP "gtk-media-stop" | |
52353 | #define GTK_STOCK_NETWORK "gtk-network" | |
52354 | #define GTK_STOCK_NEW "gtk-new" | |
52355 | #define GTK_STOCK_NO "gtk-no" | |
52356 | #define GTK_STOCK_OK "gtk-ok" | |
52357 | #define GTK_STOCK_OPEN "gtk-open" | |
52358 | #define GTK_STOCK_PASTE "gtk-paste" | |
52359 | #define GTK_STOCK_PREFERENCES "gtk-preferences" | |
52360 | #define GTK_STOCK_PRINT "gtk-print" | |
52361 | #define GTK_STOCK_PRINT_PREVIEW "gtk-print-preview" | |
52362 | #define GTK_STOCK_PROPERTIES "gtk-properties" | |
52363 | #define GTK_STOCK_QUIT "gtk-quit" | |
52364 | #define GTK_STOCK_REDO "gtk-redo" | |
52365 | #define GTK_STOCK_REFRESH "gtk-refresh" | |
52366 | #define GTK_STOCK_REMOVE "gtk-remove" | |
52367 | #define GTK_STOCK_REVERT_TO_SAVED "gtk-revert-to-saved" | |
52368 | #define GTK_STOCK_SAVE "gtk-save" | |
52369 | #define GTK_STOCK_SAVE_AS "gtk-save-as" | |
52370 | #define GTK_STOCK_SELECT_COLOR "gtk-select-color" | |
52371 | #define GTK_STOCK_SELECT_FONT "gtk-select-font" | |
52372 | #define GTK_STOCK_SORT_ASCENDING "gtk-sort-ascending" | |
52373 | #define GTK_STOCK_SORT_DESCENDING "gtk-sort-descending" | |
52374 | #define GTK_STOCK_SPELL_CHECK "gtk-spell-check" | |
52375 | #define GTK_STOCK_STOP "gtk-stop" | |
52376 | #define GTK_STOCK_STRIKETHROUGH "gtk-strikethrough" | |
52377 | #define GTK_STOCK_UNDELETE "gtk-undelete" | |
52378 | #define GTK_STOCK_UNDERLINE "gtk-underline" | |
52379 | #define GTK_STOCK_UNDO "gtk-undo" | |
52380 | #define GTK_STOCK_YES "gtk-yes" | |
52381 | #define GTK_STOCK_ZOOM_100 "gtk-zoom-100" | |
52382 | #define GTK_STOCK_ZOOM_FIT "gtk-zoom-fit" | |
52383 | #define GTK_STOCK_ZOOM_IN "gtk-zoom-in" | |
52384 | #define GTK_STOCK_ZOOM_OUT "gtk-zoom-out" | |
52385 | ||
52386 | ||
52387 | # 154 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
52388 | ||
52389 | # 1 "/usr/include/gtk-2.0/gtk/gtktable.h" 1 | |
52390 | # 28 "/usr/include/gtk-2.0/gtk/gtktable.h" | |
52391 | #define __GTK_TABLE_H__ | |
52392 | ||
52393 | ||
52394 | ||
52395 | ||
52396 | ||
52397 | ||
52398 | ||
52399 | ||
52400 | #define GTK_TYPE_TABLE (gtk_table_get_type ()) | |
52401 | #define GTK_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TABLE, GtkTable)) | |
52402 | #define GTK_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TABLE, GtkTableClass)) | |
52403 | #define GTK_IS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TABLE)) | |
52404 | #define GTK_IS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TABLE)) | |
52405 | #define GTK_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TABLE, GtkTableClass)) | |
52406 | ||
52407 | ||
52408 | typedef struct _GtkTable GtkTable; | |
52409 | typedef struct _GtkTableClass GtkTableClass; | |
52410 | typedef struct _GtkTableChild GtkTableChild; | |
52411 | typedef struct _GtkTableRowCol GtkTableRowCol; | |
52412 | ||
52413 | struct _GtkTable | |
52414 | { | |
52415 | GtkContainer container; | |
52416 | ||
52417 | GList *children; | |
52418 | GtkTableRowCol *rows; | |
52419 | GtkTableRowCol *cols; | |
52420 | guint16 nrows; | |
52421 | guint16 ncols; | |
52422 | guint16 column_spacing; | |
52423 | guint16 row_spacing; | |
52424 | guint homogeneous : 1; | |
52425 | }; | |
52426 | ||
52427 | struct _GtkTableClass | |
52428 | { | |
52429 | GtkContainerClass parent_class; | |
52430 | }; | |
52431 | ||
52432 | struct _GtkTableChild | |
52433 | { | |
52434 | GtkWidget *widget; | |
52435 | guint16 left_attach; | |
52436 | guint16 right_attach; | |
52437 | guint16 top_attach; | |
52438 | guint16 bottom_attach; | |
52439 | guint16 xpadding; | |
52440 | guint16 ypadding; | |
52441 | guint xexpand : 1; | |
52442 | guint yexpand : 1; | |
52443 | guint xshrink : 1; | |
52444 | guint yshrink : 1; | |
52445 | guint xfill : 1; | |
52446 | guint yfill : 1; | |
52447 | }; | |
52448 | ||
52449 | struct _GtkTableRowCol | |
52450 | { | |
52451 | guint16 requisition; | |
52452 | guint16 allocation; | |
52453 | guint16 spacing; | |
52454 | guint need_expand : 1; | |
52455 | guint need_shrink : 1; | |
52456 | guint expand : 1; | |
52457 | guint shrink : 1; | |
52458 | guint empty : 1; | |
52459 | }; | |
52460 | ||
52461 | ||
52462 | GType gtk_table_get_type (void) __attribute__((__const__)); | |
52463 | GtkWidget* gtk_table_new (guint rows, | |
52464 | guint columns, | |
52465 | gboolean homogeneous); | |
52466 | void gtk_table_resize (GtkTable *table, | |
52467 | guint rows, | |
52468 | guint columns); | |
52469 | void gtk_table_attach (GtkTable *table, | |
52470 | GtkWidget *child, | |
52471 | guint left_attach, | |
52472 | guint right_attach, | |
52473 | guint top_attach, | |
52474 | guint bottom_attach, | |
52475 | GtkAttachOptions xoptions, | |
52476 | GtkAttachOptions yoptions, | |
52477 | guint xpadding, | |
52478 | guint ypadding); | |
52479 | void gtk_table_attach_defaults (GtkTable *table, | |
52480 | GtkWidget *widget, | |
52481 | guint left_attach, | |
52482 | guint right_attach, | |
52483 | guint top_attach, | |
52484 | guint bottom_attach); | |
52485 | void gtk_table_set_row_spacing (GtkTable *table, | |
52486 | guint row, | |
52487 | guint spacing); | |
52488 | guint gtk_table_get_row_spacing (GtkTable *table, | |
52489 | guint row); | |
52490 | void gtk_table_set_col_spacing (GtkTable *table, | |
52491 | guint column, | |
52492 | guint spacing); | |
52493 | guint gtk_table_get_col_spacing (GtkTable *table, | |
52494 | guint column); | |
52495 | void gtk_table_set_row_spacings (GtkTable *table, | |
52496 | guint spacing); | |
52497 | guint gtk_table_get_default_row_spacing (GtkTable *table); | |
52498 | void gtk_table_set_col_spacings (GtkTable *table, | |
52499 | guint spacing); | |
52500 | guint gtk_table_get_default_col_spacing (GtkTable *table); | |
52501 | void gtk_table_set_homogeneous (GtkTable *table, | |
52502 | gboolean homogeneous); | |
52503 | gboolean gtk_table_get_homogeneous (GtkTable *table); | |
52504 | ||
52505 | ||
52506 | ||
52507 | # 156 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
52508 | # 1 "/usr/include/gtk-2.0/gtk/gtktearoffmenuitem.h" 1 | |
52509 | # 28 "/usr/include/gtk-2.0/gtk/gtktearoffmenuitem.h" | |
52510 | #define __GTK_TEAROFF_MENU_ITEM_H__ | |
52511 | ||
52512 | ||
52513 | ||
52514 | ||
52515 | ||
52516 | ||
52517 | ||
52518 | #define GTK_TYPE_TEAROFF_MENU_ITEM (gtk_tearoff_menu_item_get_type ()) | |
52519 | #define GTK_TEAROFF_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItem)) | |
52520 | #define GTK_TEAROFF_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItemClass)) | |
52521 | #define GTK_IS_TEAROFF_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEAROFF_MENU_ITEM)) | |
52522 | #define GTK_IS_TEAROFF_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEAROFF_MENU_ITEM)) | |
52523 | #define GTK_TEAROFF_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItemClass)) | |
52524 | ||
52525 | ||
52526 | typedef struct _GtkTearoffMenuItem GtkTearoffMenuItem; | |
52527 | typedef struct _GtkTearoffMenuItemClass GtkTearoffMenuItemClass; | |
52528 | ||
52529 | struct _GtkTearoffMenuItem | |
52530 | { | |
52531 | GtkMenuItem menu_item; | |
52532 | ||
52533 | guint torn_off : 1; | |
52534 | }; | |
52535 | ||
52536 | struct _GtkTearoffMenuItemClass | |
52537 | { | |
52538 | GtkMenuItemClass parent_class; | |
52539 | ||
52540 | ||
52541 | void (*_gtk_reserved1) (void); | |
52542 | void (*_gtk_reserved2) (void); | |
52543 | void (*_gtk_reserved3) (void); | |
52544 | void (*_gtk_reserved4) (void); | |
52545 | }; | |
52546 | ||
52547 | ||
52548 | GType gtk_tearoff_menu_item_get_type (void) __attribute__((__const__)); | |
52549 | GtkWidget* gtk_tearoff_menu_item_new (void); | |
52550 | ||
52551 | ||
52552 | # 157 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
52553 | # 1 "/usr/include/gtk-2.0/gtk/gtktext.h" 1 | |
52554 | # 158 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
52555 | # 1 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" 1 | |
52556 | # 28 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" | |
52557 | #define __GTK_TEXT_BUFFER_H__ | |
52558 | ||
52559 | ||
52560 | ||
52561 | # 1 "/usr/include/gtk-2.0/gtk/gtktexttagtable.h" 1 | |
52562 | # 28 "/usr/include/gtk-2.0/gtk/gtktexttagtable.h" | |
52563 | #define __GTK_TEXT_TAG_TABLE_H__ | |
52564 | ||
52565 | # 1 "/usr/include/gtk-2.0/gtk/gtktexttag.h" 1 | |
52566 | # 51 "/usr/include/gtk-2.0/gtk/gtktexttag.h" | |
52567 | #define __GTK_TEXT_TAG_H__ | |
52568 | # 60 "/usr/include/gtk-2.0/gtk/gtktexttag.h" | |
52569 | ||
52570 | ||
52571 | typedef struct _GtkTextIter GtkTextIter; | |
52572 | typedef struct _GtkTextTagTable GtkTextTagTable; | |
52573 | ||
52574 | typedef struct _GtkTextAttributes GtkTextAttributes; | |
52575 | ||
52576 | #define GTK_TYPE_TEXT_TAG (gtk_text_tag_get_type ()) | |
52577 | #define GTK_TEXT_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_TAG, GtkTextTag)) | |
52578 | #define GTK_TEXT_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_TAG, GtkTextTagClass)) | |
52579 | #define GTK_IS_TEXT_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_TAG)) | |
52580 | #define GTK_IS_TEXT_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_TAG)) | |
52581 | #define GTK_TEXT_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_TAG, GtkTextTagClass)) | |
52582 | ||
52583 | #define GTK_TYPE_TEXT_ATTRIBUTES (gtk_text_attributes_get_type ()) | |
52584 | ||
52585 | typedef struct _GtkTextTag GtkTextTag; | |
52586 | typedef struct _GtkTextTagClass GtkTextTagClass; | |
52587 | ||
52588 | struct _GtkTextTag | |
52589 | { | |
52590 | GObject parent_instance; | |
52591 | ||
52592 | GtkTextTagTable *table; | |
52593 | ||
52594 | char *name; | |
52595 | ||
52596 | ||
52597 | ||
52598 | int priority; | |
52599 | # 101 "/usr/include/gtk-2.0/gtk/gtktexttag.h" | |
52600 | GtkTextAttributes *values; | |
52601 | ||
52602 | ||
52603 | ||
52604 | ||
52605 | guint bg_color_set : 1; | |
52606 | guint bg_stipple_set : 1; | |
52607 | guint fg_color_set : 1; | |
52608 | guint scale_set : 1; | |
52609 | guint fg_stipple_set : 1; | |
52610 | guint justification_set : 1; | |
52611 | guint left_margin_set : 1; | |
52612 | guint indent_set : 1; | |
52613 | guint rise_set : 1; | |
52614 | guint strikethrough_set : 1; | |
52615 | guint right_margin_set : 1; | |
52616 | guint pixels_above_lines_set : 1; | |
52617 | guint pixels_below_lines_set : 1; | |
52618 | guint pixels_inside_wrap_set : 1; | |
52619 | guint tabs_set : 1; | |
52620 | guint underline_set : 1; | |
52621 | guint wrap_mode_set : 1; | |
52622 | guint bg_full_height_set : 1; | |
52623 | guint invisible_set : 1; | |
52624 | guint editable_set : 1; | |
52625 | guint language_set : 1; | |
52626 | guint pg_bg_color_set : 1; | |
52627 | guint pad1 : 1; | |
52628 | guint pad2 : 1; | |
52629 | }; | |
52630 | ||
52631 | struct _GtkTextTagClass | |
52632 | { | |
52633 | GObjectClass parent_class; | |
52634 | ||
52635 | gboolean (* event) (GtkTextTag *tag, | |
52636 | GObject *event_object, | |
52637 | GdkEvent *event, | |
52638 | const GtkTextIter *iter); | |
52639 | ||
52640 | ||
52641 | void (*_gtk_reserved1) (void); | |
52642 | void (*_gtk_reserved2) (void); | |
52643 | void (*_gtk_reserved3) (void); | |
52644 | void (*_gtk_reserved4) (void); | |
52645 | }; | |
52646 | ||
52647 | GType gtk_text_tag_get_type (void) __attribute__((__const__)); | |
52648 | GtkTextTag *gtk_text_tag_new (const gchar *name); | |
52649 | gint gtk_text_tag_get_priority (GtkTextTag *tag); | |
52650 | void gtk_text_tag_set_priority (GtkTextTag *tag, | |
52651 | gint priority); | |
52652 | gboolean gtk_text_tag_event (GtkTextTag *tag, | |
52653 | GObject *event_object, | |
52654 | GdkEvent *event, | |
52655 | const GtkTextIter *iter); | |
52656 | ||
52657 | ||
52658 | ||
52659 | ||
52660 | ||
52661 | typedef struct _GtkTextAppearance GtkTextAppearance; | |
52662 | ||
52663 | struct _GtkTextAppearance | |
52664 | { | |
52665 | ||
52666 | GdkColor bg_color; | |
52667 | GdkColor fg_color; | |
52668 | GdkBitmap *bg_stipple; | |
52669 | GdkBitmap *fg_stipple; | |
52670 | ||
52671 | ||
52672 | gint rise; | |
52673 | ||
52674 | ||
52675 | ||
52676 | ||
52677 | ||
52678 | gpointer padding1; | |
52679 | ||
52680 | ||
52681 | guint underline : 4; | |
52682 | guint strikethrough : 1; | |
52683 | ||
52684 | ||
52685 | ||
52686 | ||
52687 | ||
52688 | ||
52689 | guint draw_bg : 1; | |
52690 | ||
52691 | ||
52692 | ||
52693 | ||
52694 | ||
52695 | guint inside_selection : 1; | |
52696 | guint is_text : 1; | |
52697 | ||
52698 | ||
52699 | guint pad1 : 1; | |
52700 | guint pad2 : 1; | |
52701 | guint pad3 : 1; | |
52702 | guint pad4 : 1; | |
52703 | }; | |
52704 | ||
52705 | struct _GtkTextAttributes | |
52706 | { | |
52707 | ||
52708 | guint refcount; | |
52709 | ||
52710 | ||
52711 | GtkTextAppearance appearance; | |
52712 | ||
52713 | GtkJustification justification; | |
52714 | GtkTextDirection direction; | |
52715 | ||
52716 | ||
52717 | PangoFontDescription *font; | |
52718 | ||
52719 | gdouble font_scale; | |
52720 | ||
52721 | gint left_margin; | |
52722 | ||
52723 | gint indent; | |
52724 | ||
52725 | gint right_margin; | |
52726 | ||
52727 | gint pixels_above_lines; | |
52728 | ||
52729 | gint pixels_below_lines; | |
52730 | ||
52731 | gint pixels_inside_wrap; | |
52732 | ||
52733 | PangoTabArray *tabs; | |
52734 | ||
52735 | GtkWrapMode wrap_mode; | |
52736 | ||
52737 | ||
52738 | ||
52739 | ||
52740 | PangoLanguage *language; | |
52741 | ||
52742 | ||
52743 | GdkColor *pg_bg_color; | |
52744 | ||
52745 | ||
52746 | ||
52747 | guint invisible : 1; | |
52748 | ||
52749 | ||
52750 | ||
52751 | ||
52752 | guint bg_full_height : 1; | |
52753 | ||
52754 | ||
52755 | guint editable : 1; | |
52756 | ||
52757 | ||
52758 | guint realized : 1; | |
52759 | ||
52760 | ||
52761 | guint pad1 : 1; | |
52762 | guint pad2 : 1; | |
52763 | guint pad3 : 1; | |
52764 | guint pad4 : 1; | |
52765 | }; | |
52766 | ||
52767 | GtkTextAttributes* gtk_text_attributes_new (void); | |
52768 | GtkTextAttributes* gtk_text_attributes_copy (GtkTextAttributes *src); | |
52769 | void gtk_text_attributes_copy_values (GtkTextAttributes *src, | |
52770 | GtkTextAttributes *dest); | |
52771 | void gtk_text_attributes_unref (GtkTextAttributes *values); | |
52772 | GtkTextAttributes* gtk_text_attributes_ref (GtkTextAttributes *values); | |
52773 | ||
52774 | GType gtk_text_attributes_get_type (void) __attribute__((__const__)); | |
52775 | ||
52776 | ||
52777 | ||
52778 | # 31 "/usr/include/gtk-2.0/gtk/gtktexttagtable.h" 2 | |
52779 | ||
52780 | ||
52781 | ||
52782 | ||
52783 | ||
52784 | typedef void (* GtkTextTagTableForeach) (GtkTextTag *tag, gpointer data); | |
52785 | ||
52786 | #define GTK_TYPE_TEXT_TAG_TABLE (gtk_text_tag_table_get_type ()) | |
52787 | #define GTK_TEXT_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTable)) | |
52788 | #define GTK_TEXT_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTableClass)) | |
52789 | #define GTK_IS_TEXT_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_TAG_TABLE)) | |
52790 | #define GTK_IS_TEXT_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_TAG_TABLE)) | |
52791 | #define GTK_TEXT_TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTableClass)) | |
52792 | ||
52793 | typedef struct _GtkTextTagTableClass GtkTextTagTableClass; | |
52794 | ||
52795 | struct _GtkTextTagTable | |
52796 | { | |
52797 | GObject parent_instance; | |
52798 | ||
52799 | GHashTable *hash; | |
52800 | GSList *anonymous; | |
52801 | gint anon_count; | |
52802 | ||
52803 | GSList *buffers; | |
52804 | }; | |
52805 | ||
52806 | struct _GtkTextTagTableClass | |
52807 | { | |
52808 | GObjectClass parent_class; | |
52809 | ||
52810 | void (* tag_changed) (GtkTextTagTable *table, GtkTextTag *tag, gboolean size_changed); | |
52811 | void (* tag_added) (GtkTextTagTable *table, GtkTextTag *tag); | |
52812 | void (* tag_removed) (GtkTextTagTable *table, GtkTextTag *tag); | |
52813 | ||
52814 | ||
52815 | void (*_gtk_reserved1) (void); | |
52816 | void (*_gtk_reserved2) (void); | |
52817 | void (*_gtk_reserved3) (void); | |
52818 | void (*_gtk_reserved4) (void); | |
52819 | }; | |
52820 | ||
52821 | GType gtk_text_tag_table_get_type (void) __attribute__((__const__)); | |
52822 | ||
52823 | GtkTextTagTable *gtk_text_tag_table_new (void); | |
52824 | void gtk_text_tag_table_add (GtkTextTagTable *table, | |
52825 | GtkTextTag *tag); | |
52826 | void gtk_text_tag_table_remove (GtkTextTagTable *table, | |
52827 | GtkTextTag *tag); | |
52828 | GtkTextTag *gtk_text_tag_table_lookup (GtkTextTagTable *table, | |
52829 | const gchar *name); | |
52830 | void gtk_text_tag_table_foreach (GtkTextTagTable *table, | |
52831 | GtkTextTagTableForeach func, | |
52832 | gpointer data); | |
52833 | gint gtk_text_tag_table_get_size (GtkTextTagTable *table); | |
52834 | ||
52835 | ||
52836 | ||
52837 | ||
52838 | ||
52839 | void _gtk_text_tag_table_add_buffer (GtkTextTagTable *table, | |
52840 | gpointer buffer); | |
52841 | void _gtk_text_tag_table_remove_buffer (GtkTextTagTable *table, | |
52842 | gpointer buffer); | |
52843 | ||
52844 | ||
52845 | # 33 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" 2 | |
52846 | # 1 "/usr/include/gtk-2.0/gtk/gtktextiter.h" 1 | |
52847 | # 28 "/usr/include/gtk-2.0/gtk/gtktextiter.h" | |
52848 | #define __GTK_TEXT_ITER_H__ | |
52849 | ||
52850 | ||
52851 | # 1 "/usr/include/gtk-2.0/gtk/gtktextchild.h" 1 | |
52852 | # 28 "/usr/include/gtk-2.0/gtk/gtktextchild.h" | |
52853 | #define __GTK_TEXT_CHILD_H__ | |
52854 | ||
52855 | ||
52856 | ||
52857 | ||
52858 | ||
52859 | ||
52860 | ||
52861 | ||
52862 | ||
52863 | ||
52864 | ||
52865 | typedef struct _GtkTextChildAnchor GtkTextChildAnchor; | |
52866 | typedef struct _GtkTextChildAnchorClass GtkTextChildAnchorClass; | |
52867 | ||
52868 | #define GTK_TYPE_TEXT_CHILD_ANCHOR (gtk_text_child_anchor_get_type ()) | |
52869 | #define GTK_TEXT_CHILD_ANCHOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchor)) | |
52870 | #define GTK_TEXT_CHILD_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchorClass)) | |
52871 | #define GTK_IS_TEXT_CHILD_ANCHOR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_TEXT_CHILD_ANCHOR)) | |
52872 | #define GTK_IS_TEXT_CHILD_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_CHILD_ANCHOR)) | |
52873 | #define GTK_TEXT_CHILD_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchorClass)) | |
52874 | ||
52875 | struct _GtkTextChildAnchor | |
52876 | { | |
52877 | GObject parent_instance; | |
52878 | ||
52879 | gpointer segment; | |
52880 | }; | |
52881 | ||
52882 | struct _GtkTextChildAnchorClass | |
52883 | { | |
52884 | GObjectClass parent_class; | |
52885 | ||
52886 | ||
52887 | void (*_gtk_reserved1) (void); | |
52888 | void (*_gtk_reserved2) (void); | |
52889 | void (*_gtk_reserved3) (void); | |
52890 | void (*_gtk_reserved4) (void); | |
52891 | }; | |
52892 | ||
52893 | GType gtk_text_child_anchor_get_type (void) __attribute__((__const__)); | |
52894 | ||
52895 | GtkTextChildAnchor* gtk_text_child_anchor_new (void); | |
52896 | ||
52897 | GList* gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor); | |
52898 | gboolean gtk_text_child_anchor_get_deleted (GtkTextChildAnchor *anchor); | |
52899 | ||
52900 | ||
52901 | # 32 "/usr/include/gtk-2.0/gtk/gtktextiter.h" 2 | |
52902 | ||
52903 | ||
52904 | ||
52905 | typedef enum { | |
52906 | GTK_TEXT_SEARCH_VISIBLE_ONLY = 1 << 0, | |
52907 | GTK_TEXT_SEARCH_TEXT_ONLY = 1 << 1 | |
52908 | ||
52909 | } GtkTextSearchFlags; | |
52910 | ||
52911 | ||
52912 | ||
52913 | ||
52914 | ||
52915 | ||
52916 | ||
52917 | typedef struct _GtkTextBuffer GtkTextBuffer; | |
52918 | ||
52919 | #define GTK_TYPE_TEXT_ITER (gtk_text_iter_get_type ()) | |
52920 | ||
52921 | struct _GtkTextIter { | |
52922 | ||
52923 | ||
52924 | ||
52925 | ||
52926 | ||
52927 | gpointer dummy1; | |
52928 | gpointer dummy2; | |
52929 | gint dummy3; | |
52930 | gint dummy4; | |
52931 | gint dummy5; | |
52932 | gint dummy6; | |
52933 | gint dummy7; | |
52934 | gint dummy8; | |
52935 | gpointer dummy9; | |
52936 | gpointer dummy10; | |
52937 | gint dummy11; | |
52938 | gint dummy12; | |
52939 | ||
52940 | gint dummy13; | |
52941 | gpointer dummy14; | |
52942 | }; | |
52943 | ||
52944 | ||
52945 | ||
52946 | ||
52947 | GtkTextBuffer *gtk_text_iter_get_buffer (const GtkTextIter *iter); | |
52948 | ||
52949 | ||
52950 | ||
52951 | ||
52952 | ||
52953 | GtkTextIter *gtk_text_iter_copy (const GtkTextIter *iter); | |
52954 | void gtk_text_iter_free (GtkTextIter *iter); | |
52955 | ||
52956 | GType gtk_text_iter_get_type (void) __attribute__((__const__)); | |
52957 | ||
52958 | ||
52959 | ||
52960 | ||
52961 | ||
52962 | gint gtk_text_iter_get_offset (const GtkTextIter *iter); | |
52963 | gint gtk_text_iter_get_line (const GtkTextIter *iter); | |
52964 | gint gtk_text_iter_get_line_offset (const GtkTextIter *iter); | |
52965 | gint gtk_text_iter_get_line_index (const GtkTextIter *iter); | |
52966 | ||
52967 | gint gtk_text_iter_get_visible_line_offset (const GtkTextIter *iter); | |
52968 | gint gtk_text_iter_get_visible_line_index (const GtkTextIter *iter); | |
52969 | ||
52970 | ||
52971 | ||
52972 | ||
52973 | ||
52974 | gunichar gtk_text_iter_get_char (const GtkTextIter *iter); | |
52975 | ||
52976 | ||
52977 | ||
52978 | ||
52979 | gchar *gtk_text_iter_get_slice (const GtkTextIter *start, | |
52980 | const GtkTextIter *end); | |
52981 | ||
52982 | ||
52983 | gchar *gtk_text_iter_get_text (const GtkTextIter *start, | |
52984 | const GtkTextIter *end); | |
52985 | ||
52986 | gchar *gtk_text_iter_get_visible_slice (const GtkTextIter *start, | |
52987 | const GtkTextIter *end); | |
52988 | gchar *gtk_text_iter_get_visible_text (const GtkTextIter *start, | |
52989 | const GtkTextIter *end); | |
52990 | ||
52991 | GdkPixbuf* gtk_text_iter_get_pixbuf (const GtkTextIter *iter); | |
52992 | GSList * gtk_text_iter_get_marks (const GtkTextIter *iter); | |
52993 | ||
52994 | GtkTextChildAnchor* gtk_text_iter_get_child_anchor (const GtkTextIter *iter); | |
52995 | ||
52996 | ||
52997 | ||
52998 | ||
52999 | GSList *gtk_text_iter_get_toggled_tags (const GtkTextIter *iter, | |
53000 | gboolean toggled_on); | |
53001 | ||
53002 | gboolean gtk_text_iter_begins_tag (const GtkTextIter *iter, | |
53003 | GtkTextTag *tag); | |
53004 | ||
53005 | gboolean gtk_text_iter_ends_tag (const GtkTextIter *iter, | |
53006 | GtkTextTag *tag); | |
53007 | ||
53008 | gboolean gtk_text_iter_toggles_tag (const GtkTextIter *iter, | |
53009 | GtkTextTag *tag); | |
53010 | ||
53011 | gboolean gtk_text_iter_has_tag (const GtkTextIter *iter, | |
53012 | GtkTextTag *tag); | |
53013 | GSList *gtk_text_iter_get_tags (const GtkTextIter *iter); | |
53014 | ||
53015 | gboolean gtk_text_iter_editable (const GtkTextIter *iter, | |
53016 | gboolean default_setting); | |
53017 | gboolean gtk_text_iter_can_insert (const GtkTextIter *iter, | |
53018 | gboolean default_editability); | |
53019 | ||
53020 | gboolean gtk_text_iter_starts_word (const GtkTextIter *iter); | |
53021 | gboolean gtk_text_iter_ends_word (const GtkTextIter *iter); | |
53022 | gboolean gtk_text_iter_inside_word (const GtkTextIter *iter); | |
53023 | gboolean gtk_text_iter_starts_sentence (const GtkTextIter *iter); | |
53024 | gboolean gtk_text_iter_ends_sentence (const GtkTextIter *iter); | |
53025 | gboolean gtk_text_iter_inside_sentence (const GtkTextIter *iter); | |
53026 | gboolean gtk_text_iter_starts_line (const GtkTextIter *iter); | |
53027 | gboolean gtk_text_iter_ends_line (const GtkTextIter *iter); | |
53028 | gboolean gtk_text_iter_is_cursor_position (const GtkTextIter *iter); | |
53029 | ||
53030 | gint gtk_text_iter_get_chars_in_line (const GtkTextIter *iter); | |
53031 | gint gtk_text_iter_get_bytes_in_line (const GtkTextIter *iter); | |
53032 | ||
53033 | gboolean gtk_text_iter_get_attributes (const GtkTextIter *iter, | |
53034 | GtkTextAttributes *values); | |
53035 | PangoLanguage* gtk_text_iter_get_language (const GtkTextIter *iter); | |
53036 | gboolean gtk_text_iter_is_end (const GtkTextIter *iter); | |
53037 | gboolean gtk_text_iter_is_start (const GtkTextIter *iter); | |
53038 | ||
53039 | ||
53040 | ||
53041 | ||
53042 | ||
53043 | gboolean gtk_text_iter_forward_char (GtkTextIter *iter); | |
53044 | gboolean gtk_text_iter_backward_char (GtkTextIter *iter); | |
53045 | gboolean gtk_text_iter_forward_chars (GtkTextIter *iter, | |
53046 | gint count); | |
53047 | gboolean gtk_text_iter_backward_chars (GtkTextIter *iter, | |
53048 | gint count); | |
53049 | gboolean gtk_text_iter_forward_line (GtkTextIter *iter); | |
53050 | gboolean gtk_text_iter_backward_line (GtkTextIter *iter); | |
53051 | gboolean gtk_text_iter_forward_lines (GtkTextIter *iter, | |
53052 | gint count); | |
53053 | gboolean gtk_text_iter_backward_lines (GtkTextIter *iter, | |
53054 | gint count); | |
53055 | gboolean gtk_text_iter_forward_word_end (GtkTextIter *iter); | |
53056 | gboolean gtk_text_iter_backward_word_start (GtkTextIter *iter); | |
53057 | gboolean gtk_text_iter_forward_word_ends (GtkTextIter *iter, | |
53058 | gint count); | |
53059 | gboolean gtk_text_iter_backward_word_starts (GtkTextIter *iter, | |
53060 | gint count); | |
53061 | ||
53062 | gboolean gtk_text_iter_forward_visible_line (GtkTextIter *iter); | |
53063 | gboolean gtk_text_iter_backward_visible_line (GtkTextIter *iter); | |
53064 | gboolean gtk_text_iter_forward_visible_lines (GtkTextIter *iter, | |
53065 | gint count); | |
53066 | gboolean gtk_text_iter_backward_visible_lines (GtkTextIter *iter, | |
53067 | gint count); | |
53068 | ||
53069 | gboolean gtk_text_iter_forward_visible_word_end (GtkTextIter *iter); | |
53070 | gboolean gtk_text_iter_backward_visible_word_start (GtkTextIter *iter); | |
53071 | gboolean gtk_text_iter_forward_visible_word_ends (GtkTextIter *iter, | |
53072 | gint count); | |
53073 | gboolean gtk_text_iter_backward_visible_word_starts (GtkTextIter *iter, | |
53074 | gint count); | |
53075 | ||
53076 | gboolean gtk_text_iter_forward_sentence_end (GtkTextIter *iter); | |
53077 | gboolean gtk_text_iter_backward_sentence_start (GtkTextIter *iter); | |
53078 | gboolean gtk_text_iter_forward_sentence_ends (GtkTextIter *iter, | |
53079 | gint count); | |
53080 | gboolean gtk_text_iter_backward_sentence_starts (GtkTextIter *iter, | |
53081 | gint count); | |
53082 | ||
53083 | ||
53084 | ||
53085 | ||
53086 | ||
53087 | gboolean gtk_text_iter_forward_cursor_position (GtkTextIter *iter); | |
53088 | gboolean gtk_text_iter_backward_cursor_position (GtkTextIter *iter); | |
53089 | gboolean gtk_text_iter_forward_cursor_positions (GtkTextIter *iter, | |
53090 | gint count); | |
53091 | gboolean gtk_text_iter_backward_cursor_positions (GtkTextIter *iter, | |
53092 | gint count); | |
53093 | ||
53094 | gboolean gtk_text_iter_forward_visible_cursor_position (GtkTextIter *iter); | |
53095 | gboolean gtk_text_iter_backward_visible_cursor_position (GtkTextIter *iter); | |
53096 | gboolean gtk_text_iter_forward_visible_cursor_positions (GtkTextIter *iter, | |
53097 | gint count); | |
53098 | gboolean gtk_text_iter_backward_visible_cursor_positions (GtkTextIter *iter, | |
53099 | gint count); | |
53100 | ||
53101 | ||
53102 | void gtk_text_iter_set_offset (GtkTextIter *iter, | |
53103 | gint char_offset); | |
53104 | void gtk_text_iter_set_line (GtkTextIter *iter, | |
53105 | gint line_number); | |
53106 | void gtk_text_iter_set_line_offset (GtkTextIter *iter, | |
53107 | gint char_on_line); | |
53108 | void gtk_text_iter_set_line_index (GtkTextIter *iter, | |
53109 | gint byte_on_line); | |
53110 | void gtk_text_iter_forward_to_end (GtkTextIter *iter); | |
53111 | gboolean gtk_text_iter_forward_to_line_end (GtkTextIter *iter); | |
53112 | ||
53113 | void gtk_text_iter_set_visible_line_offset (GtkTextIter *iter, | |
53114 | gint char_on_line); | |
53115 | void gtk_text_iter_set_visible_line_index (GtkTextIter *iter, | |
53116 | gint byte_on_line); | |
53117 | ||
53118 | ||
53119 | ||
53120 | ||
53121 | ||
53122 | gboolean gtk_text_iter_forward_to_tag_toggle (GtkTextIter *iter, | |
53123 | GtkTextTag *tag); | |
53124 | ||
53125 | gboolean gtk_text_iter_backward_to_tag_toggle (GtkTextIter *iter, | |
53126 | GtkTextTag *tag); | |
53127 | ||
53128 | typedef gboolean (* GtkTextCharPredicate) (gunichar ch, gpointer user_data); | |
53129 | ||
53130 | gboolean gtk_text_iter_forward_find_char (GtkTextIter *iter, | |
53131 | GtkTextCharPredicate pred, | |
53132 | gpointer user_data, | |
53133 | const GtkTextIter *limit); | |
53134 | gboolean gtk_text_iter_backward_find_char (GtkTextIter *iter, | |
53135 | GtkTextCharPredicate pred, | |
53136 | gpointer user_data, | |
53137 | const GtkTextIter *limit); | |
53138 | ||
53139 | gboolean gtk_text_iter_forward_search (const GtkTextIter *iter, | |
53140 | const gchar *str, | |
53141 | GtkTextSearchFlags flags, | |
53142 | GtkTextIter *match_start, | |
53143 | GtkTextIter *match_end, | |
53144 | const GtkTextIter *limit); | |
53145 | ||
53146 | gboolean gtk_text_iter_backward_search (const GtkTextIter *iter, | |
53147 | const gchar *str, | |
53148 | GtkTextSearchFlags flags, | |
53149 | GtkTextIter *match_start, | |
53150 | GtkTextIter *match_end, | |
53151 | const GtkTextIter *limit); | |
53152 | ||
53153 | ||
53154 | ||
53155 | ||
53156 | ||
53157 | gboolean gtk_text_iter_equal (const GtkTextIter *lhs, | |
53158 | const GtkTextIter *rhs); | |
53159 | gint gtk_text_iter_compare (const GtkTextIter *lhs, | |
53160 | const GtkTextIter *rhs); | |
53161 | gboolean gtk_text_iter_in_range (const GtkTextIter *iter, | |
53162 | const GtkTextIter *start, | |
53163 | const GtkTextIter *end); | |
53164 | ||
53165 | ||
53166 | void gtk_text_iter_order (GtkTextIter *first, | |
53167 | GtkTextIter *second); | |
53168 | ||
53169 | ||
53170 | # 34 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" 2 | |
53171 | # 1 "/usr/include/gtk-2.0/gtk/gtktextmark.h" 1 | |
53172 | # 51 "/usr/include/gtk-2.0/gtk/gtktextmark.h" | |
53173 | #define __GTK_TEXT_MARK_H__ | |
53174 | ||
53175 | ||
53176 | ||
53177 | ||
53178 | ||
53179 | typedef struct _GtkTextMark GtkTextMark; | |
53180 | typedef struct _GtkTextMarkClass GtkTextMarkClass; | |
53181 | ||
53182 | #define GTK_TYPE_TEXT_MARK (gtk_text_mark_get_type ()) | |
53183 | #define GTK_TEXT_MARK(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_TEXT_MARK, GtkTextMark)) | |
53184 | #define GTK_TEXT_MARK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_MARK, GtkTextMarkClass)) | |
53185 | #define GTK_IS_TEXT_MARK(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_TEXT_MARK)) | |
53186 | #define GTK_IS_TEXT_MARK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_MARK)) | |
53187 | #define GTK_TEXT_MARK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_MARK, GtkTextMarkClass)) | |
53188 | ||
53189 | struct _GtkTextMark | |
53190 | { | |
53191 | GObject parent_instance; | |
53192 | ||
53193 | gpointer segment; | |
53194 | }; | |
53195 | ||
53196 | struct _GtkTextMarkClass | |
53197 | { | |
53198 | GObjectClass parent_class; | |
53199 | ||
53200 | ||
53201 | void (*_gtk_reserved1) (void); | |
53202 | void (*_gtk_reserved2) (void); | |
53203 | void (*_gtk_reserved3) (void); | |
53204 | void (*_gtk_reserved4) (void); | |
53205 | }; | |
53206 | ||
53207 | GType gtk_text_mark_get_type (void) __attribute__((__const__)); | |
53208 | ||
53209 | void gtk_text_mark_set_visible (GtkTextMark *mark, | |
53210 | gboolean setting); | |
53211 | gboolean gtk_text_mark_get_visible (GtkTextMark *mark); | |
53212 | ||
53213 | const gchar* gtk_text_mark_get_name (GtkTextMark *mark); | |
53214 | gboolean gtk_text_mark_get_deleted (GtkTextMark *mark); | |
53215 | GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark); | |
53216 | gboolean gtk_text_mark_get_left_gravity (GtkTextMark *mark); | |
53217 | ||
53218 | ||
53219 | # 35 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" 2 | |
53220 | ||
53221 | ||
53222 | ||
53223 | ||
53224 | ||
53225 | ||
53226 | ||
53227 | ||
53228 | ||
53229 | typedef struct _GtkTextBTree GtkTextBTree; | |
53230 | ||
53231 | typedef struct _GtkTextLogAttrCache GtkTextLogAttrCache; | |
53232 | ||
53233 | #define GTK_TYPE_TEXT_BUFFER (gtk_text_buffer_get_type ()) | |
53234 | #define GTK_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBuffer)) | |
53235 | #define GTK_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass)) | |
53236 | #define GTK_IS_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_BUFFER)) | |
53237 | #define GTK_IS_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_BUFFER)) | |
53238 | #define GTK_TEXT_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass)) | |
53239 | ||
53240 | typedef struct _GtkTextBufferClass GtkTextBufferClass; | |
53241 | ||
53242 | struct _GtkTextBuffer | |
53243 | { | |
53244 | GObject parent_instance; | |
53245 | ||
53246 | GtkTextTagTable *tag_table; | |
53247 | GtkTextBTree *btree; | |
53248 | ||
53249 | GSList *clipboard_contents_buffers; | |
53250 | GSList *selection_clipboards; | |
53251 | ||
53252 | GtkTextLogAttrCache *log_attr_cache; | |
53253 | ||
53254 | guint user_action_count; | |
53255 | ||
53256 | ||
53257 | guint modified : 1; | |
53258 | }; | |
53259 | ||
53260 | struct _GtkTextBufferClass | |
53261 | { | |
53262 | GObjectClass parent_class; | |
53263 | ||
53264 | void (* insert_text) (GtkTextBuffer *buffer, | |
53265 | GtkTextIter *pos, | |
53266 | const gchar *text, | |
53267 | gint length); | |
53268 | ||
53269 | void (* insert_pixbuf) (GtkTextBuffer *buffer, | |
53270 | GtkTextIter *pos, | |
53271 | GdkPixbuf *pixbuf); | |
53272 | ||
53273 | void (* insert_child_anchor) (GtkTextBuffer *buffer, | |
53274 | GtkTextIter *pos, | |
53275 | GtkTextChildAnchor *anchor); | |
53276 | ||
53277 | void (* delete_range) (GtkTextBuffer *buffer, | |
53278 | GtkTextIter *start, | |
53279 | GtkTextIter *end); | |
53280 | ||
53281 | ||
53282 | ||
53283 | ||
53284 | void (* changed) (GtkTextBuffer *buffer); | |
53285 | ||
53286 | ||
53287 | ||
53288 | void (* modified_changed) (GtkTextBuffer *buffer); | |
53289 | ||
53290 | ||
53291 | void (* mark_set) (GtkTextBuffer *buffer, | |
53292 | const GtkTextIter *location, | |
53293 | GtkTextMark *mark); | |
53294 | ||
53295 | void (* mark_deleted) (GtkTextBuffer *buffer, | |
53296 | GtkTextMark *mark); | |
53297 | ||
53298 | void (* apply_tag) (GtkTextBuffer *buffer, | |
53299 | GtkTextTag *tag, | |
53300 | const GtkTextIter *start_char, | |
53301 | const GtkTextIter *end_char); | |
53302 | ||
53303 | void (* remove_tag) (GtkTextBuffer *buffer, | |
53304 | GtkTextTag *tag, | |
53305 | const GtkTextIter *start_char, | |
53306 | const GtkTextIter *end_char); | |
53307 | ||
53308 | ||
53309 | void (* begin_user_action) (GtkTextBuffer *buffer); | |
53310 | void (* end_user_action) (GtkTextBuffer *buffer); | |
53311 | ||
53312 | ||
53313 | void (*_gtk_reserved1) (void); | |
53314 | void (*_gtk_reserved2) (void); | |
53315 | void (*_gtk_reserved3) (void); | |
53316 | void (*_gtk_reserved4) (void); | |
53317 | void (*_gtk_reserved5) (void); | |
53318 | void (*_gtk_reserved6) (void); | |
53319 | }; | |
53320 | ||
53321 | GType gtk_text_buffer_get_type (void) __attribute__((__const__)); | |
53322 | ||
53323 | ||
53324 | ||
53325 | ||
53326 | GtkTextBuffer *gtk_text_buffer_new (GtkTextTagTable *table); | |
53327 | gint gtk_text_buffer_get_line_count (GtkTextBuffer *buffer); | |
53328 | gint gtk_text_buffer_get_char_count (GtkTextBuffer *buffer); | |
53329 | ||
53330 | ||
53331 | GtkTextTagTable* gtk_text_buffer_get_tag_table (GtkTextBuffer *buffer); | |
53332 | ||
53333 | ||
53334 | void gtk_text_buffer_set_text (GtkTextBuffer *buffer, | |
53335 | const gchar *text, | |
53336 | gint len); | |
53337 | ||
53338 | ||
53339 | void gtk_text_buffer_insert (GtkTextBuffer *buffer, | |
53340 | GtkTextIter *iter, | |
53341 | const gchar *text, | |
53342 | gint len); | |
53343 | void gtk_text_buffer_insert_at_cursor (GtkTextBuffer *buffer, | |
53344 | const gchar *text, | |
53345 | gint len); | |
53346 | ||
53347 | gboolean gtk_text_buffer_insert_interactive (GtkTextBuffer *buffer, | |
53348 | GtkTextIter *iter, | |
53349 | const gchar *text, | |
53350 | gint len, | |
53351 | gboolean default_editable); | |
53352 | gboolean gtk_text_buffer_insert_interactive_at_cursor (GtkTextBuffer *buffer, | |
53353 | const gchar *text, | |
53354 | gint len, | |
53355 | gboolean default_editable); | |
53356 | ||
53357 | void gtk_text_buffer_insert_range (GtkTextBuffer *buffer, | |
53358 | GtkTextIter *iter, | |
53359 | const GtkTextIter *start, | |
53360 | const GtkTextIter *end); | |
53361 | gboolean gtk_text_buffer_insert_range_interactive (GtkTextBuffer *buffer, | |
53362 | GtkTextIter *iter, | |
53363 | const GtkTextIter *start, | |
53364 | const GtkTextIter *end, | |
53365 | gboolean default_editable); | |
53366 | ||
53367 | void gtk_text_buffer_insert_with_tags (GtkTextBuffer *buffer, | |
53368 | GtkTextIter *iter, | |
53369 | const gchar *text, | |
53370 | gint len, | |
53371 | GtkTextTag *first_tag, | |
53372 | ...) ; | |
53373 | ||
53374 | void gtk_text_buffer_insert_with_tags_by_name (GtkTextBuffer *buffer, | |
53375 | GtkTextIter *iter, | |
53376 | const gchar *text, | |
53377 | gint len, | |
53378 | const gchar *first_tag_name, | |
53379 | ...) ; | |
53380 | ||
53381 | ||
53382 | void gtk_text_buffer_delete (GtkTextBuffer *buffer, | |
53383 | GtkTextIter *start, | |
53384 | GtkTextIter *end); | |
53385 | gboolean gtk_text_buffer_delete_interactive (GtkTextBuffer *buffer, | |
53386 | GtkTextIter *start_iter, | |
53387 | GtkTextIter *end_iter, | |
53388 | gboolean default_editable); | |
53389 | gboolean gtk_text_buffer_backspace (GtkTextBuffer *buffer, | |
53390 | GtkTextIter *iter, | |
53391 | gboolean interactive, | |
53392 | gboolean default_editable); | |
53393 | ||
53394 | ||
53395 | gchar *gtk_text_buffer_get_text (GtkTextBuffer *buffer, | |
53396 | const GtkTextIter *start, | |
53397 | const GtkTextIter *end, | |
53398 | gboolean include_hidden_chars); | |
53399 | ||
53400 | gchar *gtk_text_buffer_get_slice (GtkTextBuffer *buffer, | |
53401 | const GtkTextIter *start, | |
53402 | const GtkTextIter *end, | |
53403 | gboolean include_hidden_chars); | |
53404 | ||
53405 | ||
53406 | void gtk_text_buffer_insert_pixbuf (GtkTextBuffer *buffer, | |
53407 | GtkTextIter *iter, | |
53408 | GdkPixbuf *pixbuf); | |
53409 | ||
53410 | ||
53411 | void gtk_text_buffer_insert_child_anchor (GtkTextBuffer *buffer, | |
53412 | GtkTextIter *iter, | |
53413 | GtkTextChildAnchor *anchor); | |
53414 | ||
53415 | ||
53416 | GtkTextChildAnchor *gtk_text_buffer_create_child_anchor (GtkTextBuffer *buffer, | |
53417 | GtkTextIter *iter); | |
53418 | ||
53419 | ||
53420 | GtkTextMark *gtk_text_buffer_create_mark (GtkTextBuffer *buffer, | |
53421 | const gchar *mark_name, | |
53422 | const GtkTextIter *where, | |
53423 | gboolean left_gravity); | |
53424 | void gtk_text_buffer_move_mark (GtkTextBuffer *buffer, | |
53425 | GtkTextMark *mark, | |
53426 | const GtkTextIter *where); | |
53427 | void gtk_text_buffer_delete_mark (GtkTextBuffer *buffer, | |
53428 | GtkTextMark *mark); | |
53429 | GtkTextMark* gtk_text_buffer_get_mark (GtkTextBuffer *buffer, | |
53430 | const gchar *name); | |
53431 | ||
53432 | void gtk_text_buffer_move_mark_by_name (GtkTextBuffer *buffer, | |
53433 | const gchar *name, | |
53434 | const GtkTextIter *where); | |
53435 | void gtk_text_buffer_delete_mark_by_name (GtkTextBuffer *buffer, | |
53436 | const gchar *name); | |
53437 | ||
53438 | GtkTextMark* gtk_text_buffer_get_insert (GtkTextBuffer *buffer); | |
53439 | GtkTextMark* gtk_text_buffer_get_selection_bound (GtkTextBuffer *buffer); | |
53440 | ||
53441 | ||
53442 | void gtk_text_buffer_place_cursor (GtkTextBuffer *buffer, | |
53443 | const GtkTextIter *where); | |
53444 | void gtk_text_buffer_select_range (GtkTextBuffer *buffer, | |
53445 | const GtkTextIter *ins, | |
53446 | const GtkTextIter *bound); | |
53447 | ||
53448 | ||
53449 | ||
53450 | ||
53451 | void gtk_text_buffer_apply_tag (GtkTextBuffer *buffer, | |
53452 | GtkTextTag *tag, | |
53453 | const GtkTextIter *start, | |
53454 | const GtkTextIter *end); | |
53455 | void gtk_text_buffer_remove_tag (GtkTextBuffer *buffer, | |
53456 | GtkTextTag *tag, | |
53457 | const GtkTextIter *start, | |
53458 | const GtkTextIter *end); | |
53459 | void gtk_text_buffer_apply_tag_by_name (GtkTextBuffer *buffer, | |
53460 | const gchar *name, | |
53461 | const GtkTextIter *start, | |
53462 | const GtkTextIter *end); | |
53463 | void gtk_text_buffer_remove_tag_by_name (GtkTextBuffer *buffer, | |
53464 | const gchar *name, | |
53465 | const GtkTextIter *start, | |
53466 | const GtkTextIter *end); | |
53467 | void gtk_text_buffer_remove_all_tags (GtkTextBuffer *buffer, | |
53468 | const GtkTextIter *start, | |
53469 | const GtkTextIter *end); | |
53470 | ||
53471 | ||
53472 | ||
53473 | ||
53474 | ||
53475 | GtkTextTag *gtk_text_buffer_create_tag (GtkTextBuffer *buffer, | |
53476 | const gchar *tag_name, | |
53477 | const gchar *first_property_name, | |
53478 | ...); | |
53479 | ||
53480 | ||
53481 | ||
53482 | ||
53483 | void gtk_text_buffer_get_iter_at_line_offset (GtkTextBuffer *buffer, | |
53484 | GtkTextIter *iter, | |
53485 | gint line_number, | |
53486 | gint char_offset); | |
53487 | void gtk_text_buffer_get_iter_at_line_index (GtkTextBuffer *buffer, | |
53488 | GtkTextIter *iter, | |
53489 | gint line_number, | |
53490 | gint byte_index); | |
53491 | void gtk_text_buffer_get_iter_at_offset (GtkTextBuffer *buffer, | |
53492 | GtkTextIter *iter, | |
53493 | gint char_offset); | |
53494 | void gtk_text_buffer_get_iter_at_line (GtkTextBuffer *buffer, | |
53495 | GtkTextIter *iter, | |
53496 | gint line_number); | |
53497 | void gtk_text_buffer_get_start_iter (GtkTextBuffer *buffer, | |
53498 | GtkTextIter *iter); | |
53499 | void gtk_text_buffer_get_end_iter (GtkTextBuffer *buffer, | |
53500 | GtkTextIter *iter); | |
53501 | void gtk_text_buffer_get_bounds (GtkTextBuffer *buffer, | |
53502 | GtkTextIter *start, | |
53503 | GtkTextIter *end); | |
53504 | void gtk_text_buffer_get_iter_at_mark (GtkTextBuffer *buffer, | |
53505 | GtkTextIter *iter, | |
53506 | GtkTextMark *mark); | |
53507 | ||
53508 | void gtk_text_buffer_get_iter_at_child_anchor (GtkTextBuffer *buffer, | |
53509 | GtkTextIter *iter, | |
53510 | GtkTextChildAnchor *anchor); | |
53511 | # 336 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" | |
53512 | gboolean gtk_text_buffer_get_modified (GtkTextBuffer *buffer); | |
53513 | void gtk_text_buffer_set_modified (GtkTextBuffer *buffer, | |
53514 | gboolean setting); | |
53515 | ||
53516 | void gtk_text_buffer_add_selection_clipboard (GtkTextBuffer *buffer, | |
53517 | GtkClipboard *clipboard); | |
53518 | void gtk_text_buffer_remove_selection_clipboard (GtkTextBuffer *buffer, | |
53519 | GtkClipboard *clipboard); | |
53520 | ||
53521 | void gtk_text_buffer_cut_clipboard (GtkTextBuffer *buffer, | |
53522 | GtkClipboard *clipboard, | |
53523 | gboolean default_editable); | |
53524 | void gtk_text_buffer_copy_clipboard (GtkTextBuffer *buffer, | |
53525 | GtkClipboard *clipboard); | |
53526 | void gtk_text_buffer_paste_clipboard (GtkTextBuffer *buffer, | |
53527 | GtkClipboard *clipboard, | |
53528 | GtkTextIter *override_location, | |
53529 | gboolean default_editable); | |
53530 | ||
53531 | gboolean gtk_text_buffer_get_selection_bounds (GtkTextBuffer *buffer, | |
53532 | GtkTextIter *start, | |
53533 | GtkTextIter *end); | |
53534 | gboolean gtk_text_buffer_delete_selection (GtkTextBuffer *buffer, | |
53535 | gboolean interactive, | |
53536 | gboolean default_editable); | |
53537 | ||
53538 | ||
53539 | void gtk_text_buffer_begin_user_action (GtkTextBuffer *buffer); | |
53540 | void gtk_text_buffer_end_user_action (GtkTextBuffer *buffer); | |
53541 | ||
53542 | ||
53543 | void _gtk_text_buffer_spew (GtkTextBuffer *buffer); | |
53544 | ||
53545 | GtkTextBTree* _gtk_text_buffer_get_btree (GtkTextBuffer *buffer); | |
53546 | ||
53547 | const PangoLogAttr* _gtk_text_buffer_get_line_log_attrs (GtkTextBuffer *buffer, | |
53548 | const GtkTextIter *anywhere_in_line, | |
53549 | gint *char_len); | |
53550 | ||
53551 | void _gtk_text_buffer_notify_will_remove_tag (GtkTextBuffer *buffer, | |
53552 | GtkTextTag *tag); | |
53553 | ||
53554 | ||
53555 | # 159 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
53556 | # 1 "/usr/include/gtk-2.0/gtk/gtktextview.h" 1 | |
53557 | # 28 "/usr/include/gtk-2.0/gtk/gtktextview.h" | |
53558 | #define __GTK_TEXT_VIEW_H__ | |
53559 | ||
53560 | ||
53561 | ||
53562 | ||
53563 | ||
53564 | ||
53565 | ||
53566 | ||
53567 | #define GTK_TYPE_TEXT_VIEW (gtk_text_view_get_type ()) | |
53568 | #define GTK_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_VIEW, GtkTextView)) | |
53569 | #define GTK_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_VIEW, GtkTextViewClass)) | |
53570 | #define GTK_IS_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_VIEW)) | |
53571 | #define GTK_IS_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_VIEW)) | |
53572 | #define GTK_TEXT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_VIEW, GtkTextViewClass)) | |
53573 | ||
53574 | typedef enum | |
53575 | { | |
53576 | GTK_TEXT_WINDOW_PRIVATE, | |
53577 | GTK_TEXT_WINDOW_WIDGET, | |
53578 | GTK_TEXT_WINDOW_TEXT, | |
53579 | GTK_TEXT_WINDOW_LEFT, | |
53580 | GTK_TEXT_WINDOW_RIGHT, | |
53581 | GTK_TEXT_WINDOW_TOP, | |
53582 | GTK_TEXT_WINDOW_BOTTOM | |
53583 | } GtkTextWindowType; | |
53584 | ||
53585 | #define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5) | |
53586 | ||
53587 | typedef struct _GtkTextView GtkTextView; | |
53588 | typedef struct _GtkTextViewClass GtkTextViewClass; | |
53589 | ||
53590 | ||
53591 | typedef struct _GtkTextWindow GtkTextWindow; | |
53592 | typedef struct _GtkTextPendingScroll GtkTextPendingScroll; | |
53593 | ||
53594 | struct _GtkTextView | |
53595 | { | |
53596 | GtkContainer parent_instance; | |
53597 | ||
53598 | struct _GtkTextLayout *layout; | |
53599 | GtkTextBuffer *buffer; | |
53600 | ||
53601 | guint selection_drag_handler; | |
53602 | guint scroll_timeout; | |
53603 | ||
53604 | ||
53605 | gint pixels_above_lines; | |
53606 | gint pixels_below_lines; | |
53607 | gint pixels_inside_wrap; | |
53608 | GtkWrapMode wrap_mode; | |
53609 | GtkJustification justify; | |
53610 | gint left_margin; | |
53611 | gint right_margin; | |
53612 | gint indent; | |
53613 | PangoTabArray *tabs; | |
53614 | guint editable : 1; | |
53615 | ||
53616 | ||
53617 | ||
53618 | guint overwrite_mode : 1; | |
53619 | guint cursor_visible : 1; | |
53620 | ||
53621 | ||
53622 | guint need_im_reset : 1; | |
53623 | ||
53624 | guint accepts_tab : 1; | |
53625 | ||
53626 | guint width_changed : 1; | |
53627 | ||
53628 | ||
53629 | ||
53630 | ||
53631 | guint onscreen_validated : 1; | |
53632 | ||
53633 | guint mouse_cursor_obscured : 1; | |
53634 | ||
53635 | GtkTextWindow *text_window; | |
53636 | GtkTextWindow *left_window; | |
53637 | GtkTextWindow *right_window; | |
53638 | GtkTextWindow *top_window; | |
53639 | GtkTextWindow *bottom_window; | |
53640 | ||
53641 | GtkAdjustment *hadjustment; | |
53642 | GtkAdjustment *vadjustment; | |
53643 | ||
53644 | gint xoffset; | |
53645 | gint yoffset; | |
53646 | gint width; | |
53647 | gint height; | |
53648 | # 128 "/usr/include/gtk-2.0/gtk/gtktextview.h" | |
53649 | gint virtual_cursor_x; | |
53650 | gint virtual_cursor_y; | |
53651 | ||
53652 | GtkTextMark *first_para_mark; | |
53653 | gint first_para_pixels; | |
53654 | ||
53655 | GtkTextMark *dnd_mark; | |
53656 | guint blink_timeout; | |
53657 | ||
53658 | guint first_validate_idle; | |
53659 | guint incremental_validate_idle; | |
53660 | ||
53661 | GtkIMContext *im_context; | |
53662 | GtkWidget *popup_menu; | |
53663 | ||
53664 | gint drag_start_x; | |
53665 | gint drag_start_y; | |
53666 | ||
53667 | GSList *children; | |
53668 | ||
53669 | GtkTextPendingScroll *pending_scroll; | |
53670 | ||
53671 | gint pending_place_cursor_button; | |
53672 | }; | |
53673 | ||
53674 | struct _GtkTextViewClass | |
53675 | { | |
53676 | GtkContainerClass parent_class; | |
53677 | ||
53678 | void (* set_scroll_adjustments) (GtkTextView *text_view, | |
53679 | GtkAdjustment *hadjustment, | |
53680 | GtkAdjustment *vadjustment); | |
53681 | ||
53682 | void (* populate_popup) (GtkTextView *text_view, | |
53683 | GtkMenu *menu); | |
53684 | ||
53685 | ||
53686 | ||
53687 | ||
53688 | void (* move_cursor) (GtkTextView *text_view, | |
53689 | GtkMovementStep step, | |
53690 | gint count, | |
53691 | gboolean extend_selection); | |
53692 | ||
53693 | ||
53694 | ||
53695 | ||
53696 | ||
53697 | void (* page_horizontally) (GtkTextView *text_view, | |
53698 | gint count, | |
53699 | gboolean extend_selection); | |
53700 | ||
53701 | ||
53702 | void (* set_anchor) (GtkTextView *text_view); | |
53703 | ||
53704 | ||
53705 | void (* insert_at_cursor) (GtkTextView *text_view, | |
53706 | const gchar *str); | |
53707 | void (* delete_from_cursor) (GtkTextView *text_view, | |
53708 | GtkDeleteType type, | |
53709 | gint count); | |
53710 | void (* backspace) (GtkTextView *text_view); | |
53711 | ||
53712 | ||
53713 | void (* cut_clipboard) (GtkTextView *text_view); | |
53714 | void (* copy_clipboard) (GtkTextView *text_view); | |
53715 | void (* paste_clipboard) (GtkTextView *text_view); | |
53716 | ||
53717 | void (* toggle_overwrite) (GtkTextView *text_view); | |
53718 | ||
53719 | ||
53720 | void (* move_focus) (GtkTextView *text_view, | |
53721 | GtkDirectionType direction); | |
53722 | ||
53723 | ||
53724 | ||
53725 | void (*_gtk_reserved1) (void); | |
53726 | void (*_gtk_reserved2) (void); | |
53727 | void (*_gtk_reserved3) (void); | |
53728 | void (*_gtk_reserved4) (void); | |
53729 | void (*_gtk_reserved5) (void); | |
53730 | void (*_gtk_reserved6) (void); | |
53731 | void (*_gtk_reserved7) (void); | |
53732 | }; | |
53733 | ||
53734 | GType gtk_text_view_get_type (void) __attribute__((__const__)); | |
53735 | GtkWidget * gtk_text_view_new (void); | |
53736 | GtkWidget * gtk_text_view_new_with_buffer (GtkTextBuffer *buffer); | |
53737 | void gtk_text_view_set_buffer (GtkTextView *text_view, | |
53738 | GtkTextBuffer *buffer); | |
53739 | GtkTextBuffer *gtk_text_view_get_buffer (GtkTextView *text_view); | |
53740 | gboolean gtk_text_view_scroll_to_iter (GtkTextView *text_view, | |
53741 | GtkTextIter *iter, | |
53742 | gdouble within_margin, | |
53743 | gboolean use_align, | |
53744 | gdouble xalign, | |
53745 | gdouble yalign); | |
53746 | void gtk_text_view_scroll_to_mark (GtkTextView *text_view, | |
53747 | GtkTextMark *mark, | |
53748 | gdouble within_margin, | |
53749 | gboolean use_align, | |
53750 | gdouble xalign, | |
53751 | gdouble yalign); | |
53752 | void gtk_text_view_scroll_mark_onscreen (GtkTextView *text_view, | |
53753 | GtkTextMark *mark); | |
53754 | gboolean gtk_text_view_move_mark_onscreen (GtkTextView *text_view, | |
53755 | GtkTextMark *mark); | |
53756 | gboolean gtk_text_view_place_cursor_onscreen (GtkTextView *text_view); | |
53757 | ||
53758 | void gtk_text_view_get_visible_rect (GtkTextView *text_view, | |
53759 | GdkRectangle *visible_rect); | |
53760 | void gtk_text_view_set_cursor_visible (GtkTextView *text_view, | |
53761 | gboolean setting); | |
53762 | gboolean gtk_text_view_get_cursor_visible (GtkTextView *text_view); | |
53763 | ||
53764 | void gtk_text_view_get_iter_location (GtkTextView *text_view, | |
53765 | const GtkTextIter *iter, | |
53766 | GdkRectangle *location); | |
53767 | void gtk_text_view_get_iter_at_location (GtkTextView *text_view, | |
53768 | GtkTextIter *iter, | |
53769 | gint x, | |
53770 | gint y); | |
53771 | void gtk_text_view_get_iter_at_position (GtkTextView *text_view, | |
53772 | GtkTextIter *iter, | |
53773 | gint *trailing, | |
53774 | gint x, | |
53775 | gint y); | |
53776 | void gtk_text_view_get_line_yrange (GtkTextView *text_view, | |
53777 | const GtkTextIter *iter, | |
53778 | gint *y, | |
53779 | gint *height); | |
53780 | ||
53781 | void gtk_text_view_get_line_at_y (GtkTextView *text_view, | |
53782 | GtkTextIter *target_iter, | |
53783 | gint y, | |
53784 | gint *line_top); | |
53785 | ||
53786 | void gtk_text_view_buffer_to_window_coords (GtkTextView *text_view, | |
53787 | GtkTextWindowType win, | |
53788 | gint buffer_x, | |
53789 | gint buffer_y, | |
53790 | gint *window_x, | |
53791 | gint *window_y); | |
53792 | void gtk_text_view_window_to_buffer_coords (GtkTextView *text_view, | |
53793 | GtkTextWindowType win, | |
53794 | gint window_x, | |
53795 | gint window_y, | |
53796 | gint *buffer_x, | |
53797 | gint *buffer_y); | |
53798 | ||
53799 | GdkWindow* gtk_text_view_get_window (GtkTextView *text_view, | |
53800 | GtkTextWindowType win); | |
53801 | GtkTextWindowType gtk_text_view_get_window_type (GtkTextView *text_view, | |
53802 | GdkWindow *window); | |
53803 | ||
53804 | void gtk_text_view_set_border_window_size (GtkTextView *text_view, | |
53805 | GtkTextWindowType type, | |
53806 | gint size); | |
53807 | gint gtk_text_view_get_border_window_size (GtkTextView *text_view, | |
53808 | GtkTextWindowType type); | |
53809 | ||
53810 | gboolean gtk_text_view_forward_display_line (GtkTextView *text_view, | |
53811 | GtkTextIter *iter); | |
53812 | gboolean gtk_text_view_backward_display_line (GtkTextView *text_view, | |
53813 | GtkTextIter *iter); | |
53814 | gboolean gtk_text_view_forward_display_line_end (GtkTextView *text_view, | |
53815 | GtkTextIter *iter); | |
53816 | gboolean gtk_text_view_backward_display_line_start (GtkTextView *text_view, | |
53817 | GtkTextIter *iter); | |
53818 | gboolean gtk_text_view_starts_display_line (GtkTextView *text_view, | |
53819 | const GtkTextIter *iter); | |
53820 | gboolean gtk_text_view_move_visually (GtkTextView *text_view, | |
53821 | GtkTextIter *iter, | |
53822 | gint count); | |
53823 | ||
53824 | ||
53825 | void gtk_text_view_add_child_at_anchor (GtkTextView *text_view, | |
53826 | GtkWidget *child, | |
53827 | GtkTextChildAnchor *anchor); | |
53828 | ||
53829 | void gtk_text_view_add_child_in_window (GtkTextView *text_view, | |
53830 | GtkWidget *child, | |
53831 | GtkTextWindowType which_window, | |
53832 | ||
53833 | gint xpos, | |
53834 | gint ypos); | |
53835 | ||
53836 | void gtk_text_view_move_child (GtkTextView *text_view, | |
53837 | GtkWidget *child, | |
53838 | ||
53839 | gint xpos, | |
53840 | gint ypos); | |
53841 | ||
53842 | ||
53843 | ||
53844 | void gtk_text_view_set_wrap_mode (GtkTextView *text_view, | |
53845 | GtkWrapMode wrap_mode); | |
53846 | GtkWrapMode gtk_text_view_get_wrap_mode (GtkTextView *text_view); | |
53847 | void gtk_text_view_set_editable (GtkTextView *text_view, | |
53848 | gboolean setting); | |
53849 | gboolean gtk_text_view_get_editable (GtkTextView *text_view); | |
53850 | void gtk_text_view_set_overwrite (GtkTextView *text_view, | |
53851 | gboolean overwrite); | |
53852 | gboolean gtk_text_view_get_overwrite (GtkTextView *text_view); | |
53853 | void gtk_text_view_set_accepts_tab (GtkTextView *text_view, | |
53854 | gboolean accepts_tab); | |
53855 | gboolean gtk_text_view_get_accepts_tab (GtkTextView *text_view); | |
53856 | void gtk_text_view_set_pixels_above_lines (GtkTextView *text_view, | |
53857 | gint pixels_above_lines); | |
53858 | gint gtk_text_view_get_pixels_above_lines (GtkTextView *text_view); | |
53859 | void gtk_text_view_set_pixels_below_lines (GtkTextView *text_view, | |
53860 | gint pixels_below_lines); | |
53861 | gint gtk_text_view_get_pixels_below_lines (GtkTextView *text_view); | |
53862 | void gtk_text_view_set_pixels_inside_wrap (GtkTextView *text_view, | |
53863 | gint pixels_inside_wrap); | |
53864 | gint gtk_text_view_get_pixels_inside_wrap (GtkTextView *text_view); | |
53865 | void gtk_text_view_set_justification (GtkTextView *text_view, | |
53866 | GtkJustification justification); | |
53867 | GtkJustification gtk_text_view_get_justification (GtkTextView *text_view); | |
53868 | void gtk_text_view_set_left_margin (GtkTextView *text_view, | |
53869 | gint left_margin); | |
53870 | gint gtk_text_view_get_left_margin (GtkTextView *text_view); | |
53871 | void gtk_text_view_set_right_margin (GtkTextView *text_view, | |
53872 | gint right_margin); | |
53873 | gint gtk_text_view_get_right_margin (GtkTextView *text_view); | |
53874 | void gtk_text_view_set_indent (GtkTextView *text_view, | |
53875 | gint indent); | |
53876 | gint gtk_text_view_get_indent (GtkTextView *text_view); | |
53877 | void gtk_text_view_set_tabs (GtkTextView *text_view, | |
53878 | PangoTabArray *tabs); | |
53879 | PangoTabArray* gtk_text_view_get_tabs (GtkTextView *text_view); | |
53880 | ||
53881 | ||
53882 | GtkTextAttributes* gtk_text_view_get_default_attributes (GtkTextView *text_view); | |
53883 | ||
53884 | ||
53885 | # 160 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
53886 | # 1 "/usr/include/gtk-2.0/gtk/gtktipsquery.h" 1 | |
53887 | # 33 "/usr/include/gtk-2.0/gtk/gtktipsquery.h" | |
53888 | #define __GTK_TIPS_QUERY_H__ | |
53889 | ||
53890 | ||
53891 | ||
53892 | ||
53893 | ||
53894 | ||
53895 | ||
53896 | ||
53897 | #define GTK_TYPE_TIPS_QUERY (gtk_tips_query_get_type ()) | |
53898 | #define GTK_TIPS_QUERY(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TIPS_QUERY, GtkTipsQuery)) | |
53899 | #define GTK_TIPS_QUERY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TIPS_QUERY, GtkTipsQueryClass)) | |
53900 | #define GTK_IS_TIPS_QUERY(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TIPS_QUERY)) | |
53901 | #define GTK_IS_TIPS_QUERY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TIPS_QUERY)) | |
53902 | #define GTK_TIPS_QUERY_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_TIPS_QUERY, GtkTipsQueryClass)) | |
53903 | ||
53904 | ||
53905 | ||
53906 | typedef struct _GtkTipsQuery GtkTipsQuery; | |
53907 | typedef struct _GtkTipsQueryClass GtkTipsQueryClass; | |
53908 | ||
53909 | ||
53910 | ||
53911 | struct _GtkTipsQuery | |
53912 | { | |
53913 | GtkLabel label; | |
53914 | ||
53915 | guint emit_always : 1; | |
53916 | guint in_query : 1; | |
53917 | gchar *label_inactive; | |
53918 | gchar *label_no_tip; | |
53919 | ||
53920 | GtkWidget *caller; | |
53921 | GtkWidget *last_crossed; | |
53922 | ||
53923 | GdkCursor *query_cursor; | |
53924 | }; | |
53925 | ||
53926 | struct _GtkTipsQueryClass | |
53927 | { | |
53928 | GtkLabelClass parent_class; | |
53929 | ||
53930 | void (*start_query) (GtkTipsQuery *tips_query); | |
53931 | void (*stop_query) (GtkTipsQuery *tips_query); | |
53932 | void (*widget_entered) (GtkTipsQuery *tips_query, | |
53933 | GtkWidget *widget, | |
53934 | const gchar *tip_text, | |
53935 | const gchar *tip_private); | |
53936 | gint (*widget_selected) (GtkTipsQuery *tips_query, | |
53937 | GtkWidget *widget, | |
53938 | const gchar *tip_text, | |
53939 | const gchar *tip_private, | |
53940 | GdkEventButton *event); | |
53941 | ||
53942 | ||
53943 | void (*_gtk_reserved1) (void); | |
53944 | void (*_gtk_reserved2) (void); | |
53945 | void (*_gtk_reserved3) (void); | |
53946 | void (*_gtk_reserved4) (void); | |
53947 | }; | |
53948 | ||
53949 | ||
53950 | ||
53951 | GtkType gtk_tips_query_get_type (void) __attribute__((__const__)); | |
53952 | GtkWidget* gtk_tips_query_new (void); | |
53953 | void gtk_tips_query_start_query (GtkTipsQuery *tips_query); | |
53954 | void gtk_tips_query_stop_query (GtkTipsQuery *tips_query); | |
53955 | void gtk_tips_query_set_caller (GtkTipsQuery *tips_query, | |
53956 | GtkWidget *caller); | |
53957 | void gtk_tips_query_set_labels (GtkTipsQuery *tips_query, | |
53958 | const gchar *label_inactive, | |
53959 | const gchar *label_no_tip); | |
53960 | ||
53961 | ||
53962 | # 161 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
53963 | ||
53964 | ||
53965 | # 1 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h" 1 | |
53966 | # 164 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
53967 | # 1 "/usr/include/gtk-2.0/gtk/gtktoolbar.h" 1 | |
53968 | # 33 "/usr/include/gtk-2.0/gtk/gtktoolbar.h" | |
53969 | #define __GTK_TOOLBAR_H__ | |
53970 | # 45 "/usr/include/gtk-2.0/gtk/gtktoolbar.h" | |
53971 | # 1 "/usr/include/gtk-2.0/gtk/gtkpixmap.h" 1 | |
53972 | # 46 "/usr/include/gtk-2.0/gtk/gtktoolbar.h" 2 | |
53973 | ||
53974 | ||
53975 | ||
53976 | ||
53977 | ||
53978 | ||
53979 | #define GTK_TYPE_TOOLBAR (gtk_toolbar_get_type ()) | |
53980 | #define GTK_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLBAR, GtkToolbar)) | |
53981 | #define GTK_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOLBAR, GtkToolbarClass)) | |
53982 | #define GTK_IS_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLBAR)) | |
53983 | #define GTK_IS_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOLBAR)) | |
53984 | #define GTK_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOLBAR, GtkToolbarClass)) | |
53985 | ||
53986 | ||
53987 | typedef enum | |
53988 | { | |
53989 | GTK_TOOLBAR_CHILD_SPACE, | |
53990 | GTK_TOOLBAR_CHILD_BUTTON, | |
53991 | GTK_TOOLBAR_CHILD_TOGGLEBUTTON, | |
53992 | GTK_TOOLBAR_CHILD_RADIOBUTTON, | |
53993 | GTK_TOOLBAR_CHILD_WIDGET | |
53994 | } GtkToolbarChildType; | |
53995 | ||
53996 | typedef struct _GtkToolbarChild GtkToolbarChild; | |
53997 | ||
53998 | struct _GtkToolbarChild | |
53999 | { | |
54000 | GtkToolbarChildType type; | |
54001 | GtkWidget *widget; | |
54002 | GtkWidget *icon; | |
54003 | GtkWidget *label; | |
54004 | }; | |
54005 | ||
54006 | ||
54007 | ||
54008 | typedef enum | |
54009 | { | |
54010 | GTK_TOOLBAR_SPACE_EMPTY, | |
54011 | GTK_TOOLBAR_SPACE_LINE | |
54012 | } GtkToolbarSpaceStyle; | |
54013 | ||
54014 | typedef struct _GtkToolbar GtkToolbar; | |
54015 | typedef struct _GtkToolbarClass GtkToolbarClass; | |
54016 | typedef struct _GtkToolbarPrivate GtkToolbarPrivate; | |
54017 | ||
54018 | struct _GtkToolbar | |
54019 | { | |
54020 | GtkContainer container; | |
54021 | ||
54022 | ||
54023 | gint num_children; | |
54024 | GList *children; | |
54025 | GtkOrientation orientation; | |
54026 | GtkToolbarStyle style; | |
54027 | GtkIconSize icon_size; | |
54028 | ||
54029 | GtkTooltips *tooltips; | |
54030 | ||
54031 | ||
54032 | gint button_maxw; | |
54033 | gint button_maxh; | |
54034 | ||
54035 | guint _gtk_reserved1; | |
54036 | guint _gtk_reserved2; | |
54037 | ||
54038 | guint style_set : 1; | |
54039 | guint icon_size_set : 1; | |
54040 | }; | |
54041 | ||
54042 | struct _GtkToolbarClass | |
54043 | { | |
54044 | GtkContainerClass parent_class; | |
54045 | ||
54046 | ||
54047 | void (* orientation_changed) (GtkToolbar *toolbar, | |
54048 | GtkOrientation orientation); | |
54049 | void (* style_changed) (GtkToolbar *toolbar, | |
54050 | GtkToolbarStyle style); | |
54051 | gboolean (* popup_context_menu) (GtkToolbar *toolbar, | |
54052 | gint x, | |
54053 | gint y, | |
54054 | gint button_number); | |
54055 | ||
54056 | ||
54057 | void (*_gtk_reserved1) (void); | |
54058 | void (*_gtk_reserved2) (void); | |
54059 | void (*_gtk_reserved3) (void); | |
54060 | }; | |
54061 | ||
54062 | GType gtk_toolbar_get_type (void) __attribute__((__const__)); | |
54063 | GtkWidget* gtk_toolbar_new (void); | |
54064 | void gtk_toolbar_insert (GtkToolbar *toolbar, | |
54065 | GtkToolItem *item, | |
54066 | gint pos); | |
54067 | gint gtk_toolbar_get_item_index (GtkToolbar *toolbar, | |
54068 | GtkToolItem *item); | |
54069 | gint gtk_toolbar_get_n_items (GtkToolbar *toolbar); | |
54070 | GtkToolItem * gtk_toolbar_get_nth_item (GtkToolbar *toolbar, | |
54071 | gint n); | |
54072 | gboolean gtk_toolbar_get_show_arrow (GtkToolbar *toolbar); | |
54073 | void gtk_toolbar_set_show_arrow (GtkToolbar *toolbar, | |
54074 | gboolean show_arrow); | |
54075 | GtkOrientation gtk_toolbar_get_orientation (GtkToolbar *toolbar); | |
54076 | void gtk_toolbar_set_orientation (GtkToolbar *toolbar, | |
54077 | GtkOrientation orientation); | |
54078 | gboolean gtk_toolbar_get_tooltips (GtkToolbar *toolbar); | |
54079 | void gtk_toolbar_set_tooltips (GtkToolbar *toolbar, | |
54080 | gboolean enable); | |
54081 | GtkToolbarStyle gtk_toolbar_get_style (GtkToolbar *toolbar); | |
54082 | void gtk_toolbar_set_style (GtkToolbar *toolbar, | |
54083 | GtkToolbarStyle style); | |
54084 | void gtk_toolbar_unset_style (GtkToolbar *toolbar); | |
54085 | GtkIconSize gtk_toolbar_get_icon_size (GtkToolbar *toolbar); | |
54086 | GtkReliefStyle gtk_toolbar_get_relief_style (GtkToolbar *toolbar); | |
54087 | gint gtk_toolbar_get_drop_index (GtkToolbar *toolbar, | |
54088 | gint x, | |
54089 | gint y); | |
54090 | void gtk_toolbar_set_drop_highlight_item (GtkToolbar *toolbar, | |
54091 | GtkToolItem *tool_item, | |
54092 | gint index_); | |
54093 | ||
54094 | ||
54095 | gchar * _gtk_toolbar_elide_underscores (const gchar *original); | |
54096 | void _gtk_toolbar_paint_space_line (GtkWidget *widget, | |
54097 | GtkToolbar *toolbar, | |
54098 | GdkRectangle *area, | |
54099 | GtkAllocation *allocation); | |
54100 | gint _gtk_toolbar_get_default_space_size (void); | |
54101 | void _gtk_toolbar_rebuild_menu (GtkToolbar *toolbar); | |
54102 | ||
54103 | ||
54104 | ||
54105 | ||
54106 | void gtk_toolbar_set_icon_size (GtkToolbar *toolbar, | |
54107 | GtkIconSize icon_size); | |
54108 | void gtk_toolbar_unset_icon_size (GtkToolbar *toolbar); | |
54109 | ||
54110 | ||
54111 | GtkWidget* gtk_toolbar_append_item (GtkToolbar *toolbar, | |
54112 | const char *text, | |
54113 | const char *tooltip_text, | |
54114 | const char *tooltip_private_text, | |
54115 | GtkWidget *icon, | |
54116 | GtkSignalFunc callback, | |
54117 | gpointer user_data); | |
54118 | GtkWidget* gtk_toolbar_prepend_item (GtkToolbar *toolbar, | |
54119 | const char *text, | |
54120 | const char *tooltip_text, | |
54121 | const char *tooltip_private_text, | |
54122 | GtkWidget *icon, | |
54123 | GtkSignalFunc callback, | |
54124 | gpointer user_data); | |
54125 | GtkWidget* gtk_toolbar_insert_item (GtkToolbar *toolbar, | |
54126 | const char *text, | |
54127 | const char *tooltip_text, | |
54128 | const char *tooltip_private_text, | |
54129 | GtkWidget *icon, | |
54130 | GtkSignalFunc callback, | |
54131 | gpointer user_data, | |
54132 | gint position); | |
54133 | ||
54134 | ||
54135 | GtkWidget* gtk_toolbar_insert_stock (GtkToolbar *toolbar, | |
54136 | const gchar *stock_id, | |
54137 | const char *tooltip_text, | |
54138 | const char *tooltip_private_text, | |
54139 | GtkSignalFunc callback, | |
54140 | gpointer user_data, | |
54141 | gint position); | |
54142 | ||
54143 | ||
54144 | void gtk_toolbar_append_space (GtkToolbar *toolbar); | |
54145 | void gtk_toolbar_prepend_space (GtkToolbar *toolbar); | |
54146 | void gtk_toolbar_insert_space (GtkToolbar *toolbar, | |
54147 | gint position); | |
54148 | void gtk_toolbar_remove_space (GtkToolbar *toolbar, | |
54149 | gint position); | |
54150 | ||
54151 | GtkWidget* gtk_toolbar_append_element (GtkToolbar *toolbar, | |
54152 | GtkToolbarChildType type, | |
54153 | GtkWidget *widget, | |
54154 | const char *text, | |
54155 | const char *tooltip_text, | |
54156 | const char *tooltip_private_text, | |
54157 | GtkWidget *icon, | |
54158 | GtkSignalFunc callback, | |
54159 | gpointer user_data); | |
54160 | ||
54161 | GtkWidget* gtk_toolbar_prepend_element (GtkToolbar *toolbar, | |
54162 | GtkToolbarChildType type, | |
54163 | GtkWidget *widget, | |
54164 | const char *text, | |
54165 | const char *tooltip_text, | |
54166 | const char *tooltip_private_text, | |
54167 | GtkWidget *icon, | |
54168 | GtkSignalFunc callback, | |
54169 | gpointer user_data); | |
54170 | ||
54171 | GtkWidget* gtk_toolbar_insert_element (GtkToolbar *toolbar, | |
54172 | GtkToolbarChildType type, | |
54173 | GtkWidget *widget, | |
54174 | const char *text, | |
54175 | const char *tooltip_text, | |
54176 | const char *tooltip_private_text, | |
54177 | GtkWidget *icon, | |
54178 | GtkSignalFunc callback, | |
54179 | gpointer user_data, | |
54180 | gint position); | |
54181 | ||
54182 | ||
54183 | void gtk_toolbar_append_widget (GtkToolbar *toolbar, | |
54184 | GtkWidget *widget, | |
54185 | const char *tooltip_text, | |
54186 | const char *tooltip_private_text); | |
54187 | void gtk_toolbar_prepend_widget (GtkToolbar *toolbar, | |
54188 | GtkWidget *widget, | |
54189 | const char *tooltip_text, | |
54190 | const char *tooltip_private_text); | |
54191 | void gtk_toolbar_insert_widget (GtkToolbar *toolbar, | |
54192 | GtkWidget *widget, | |
54193 | const char *tooltip_text, | |
54194 | const char *tooltip_private_text, | |
54195 | gint position); | |
54196 | ||
54197 | ||
54198 | ||
54199 | ||
54200 | ||
54201 | # 165 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54202 | # 1 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" 1 | |
54203 | # 166 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54204 | # 1 "/usr/include/gtk-2.0/gtk/gtktoolitem.h" 1 | |
54205 | # 167 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54206 | ||
54207 | # 1 "/usr/include/gtk-2.0/gtk/gtktree.h" 1 | |
54208 | # 169 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54209 | # 1 "/usr/include/gtk-2.0/gtk/gtktreednd.h" 1 | |
54210 | # 21 "/usr/include/gtk-2.0/gtk/gtktreednd.h" | |
54211 | #define __GTK_TREE_DND_H__ | |
54212 | ||
54213 | ||
54214 | ||
54215 | ||
54216 | ||
54217 | ||
54218 | #define GTK_TYPE_TREE_DRAG_SOURCE (gtk_tree_drag_source_get_type ()) | |
54219 | #define GTK_TREE_DRAG_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_DRAG_SOURCE, GtkTreeDragSource)) | |
54220 | #define GTK_IS_TREE_DRAG_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_DRAG_SOURCE)) | |
54221 | #define GTK_TREE_DRAG_SOURCE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_DRAG_SOURCE, GtkTreeDragSourceIface)) | |
54222 | ||
54223 | typedef struct _GtkTreeDragSource GtkTreeDragSource; | |
54224 | typedef struct _GtkTreeDragSourceIface GtkTreeDragSourceIface; | |
54225 | ||
54226 | struct _GtkTreeDragSourceIface | |
54227 | { | |
54228 | GTypeInterface g_iface; | |
54229 | ||
54230 | ||
54231 | ||
54232 | gboolean (* row_draggable) (GtkTreeDragSource *drag_source, | |
54233 | GtkTreePath *path); | |
54234 | ||
54235 | gboolean (* drag_data_get) (GtkTreeDragSource *drag_source, | |
54236 | GtkTreePath *path, | |
54237 | GtkSelectionData *selection_data); | |
54238 | ||
54239 | gboolean (* drag_data_delete) (GtkTreeDragSource *drag_source, | |
54240 | GtkTreePath *path); | |
54241 | }; | |
54242 | ||
54243 | GType gtk_tree_drag_source_get_type (void) __attribute__((__const__)); | |
54244 | ||
54245 | ||
54246 | gboolean gtk_tree_drag_source_row_draggable (GtkTreeDragSource *drag_source, | |
54247 | GtkTreePath *path); | |
54248 | ||
54249 | ||
54250 | gboolean gtk_tree_drag_source_drag_data_delete (GtkTreeDragSource *drag_source, | |
54251 | GtkTreePath *path); | |
54252 | ||
54253 | ||
54254 | ||
54255 | ||
54256 | gboolean gtk_tree_drag_source_drag_data_get (GtkTreeDragSource *drag_source, | |
54257 | GtkTreePath *path, | |
54258 | GtkSelectionData *selection_data); | |
54259 | ||
54260 | #define GTK_TYPE_TREE_DRAG_DEST (gtk_tree_drag_dest_get_type ()) | |
54261 | #define GTK_TREE_DRAG_DEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_DRAG_DEST, GtkTreeDragDest)) | |
54262 | #define GTK_IS_TREE_DRAG_DEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_DRAG_DEST)) | |
54263 | #define GTK_TREE_DRAG_DEST_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_DRAG_DEST, GtkTreeDragDestIface)) | |
54264 | ||
54265 | typedef struct _GtkTreeDragDest GtkTreeDragDest; | |
54266 | typedef struct _GtkTreeDragDestIface GtkTreeDragDestIface; | |
54267 | ||
54268 | struct _GtkTreeDragDestIface | |
54269 | { | |
54270 | GTypeInterface g_iface; | |
54271 | ||
54272 | ||
54273 | ||
54274 | gboolean (* drag_data_received) (GtkTreeDragDest *drag_dest, | |
54275 | GtkTreePath *dest, | |
54276 | GtkSelectionData *selection_data); | |
54277 | ||
54278 | gboolean (* row_drop_possible) (GtkTreeDragDest *drag_dest, | |
54279 | GtkTreePath *dest_path, | |
54280 | GtkSelectionData *selection_data); | |
54281 | }; | |
54282 | ||
54283 | GType gtk_tree_drag_dest_get_type (void) __attribute__((__const__)); | |
54284 | ||
54285 | ||
54286 | ||
54287 | ||
54288 | gboolean gtk_tree_drag_dest_drag_data_received (GtkTreeDragDest *drag_dest, | |
54289 | GtkTreePath *dest, | |
54290 | GtkSelectionData *selection_data); | |
54291 | ||
54292 | ||
54293 | ||
54294 | gboolean gtk_tree_drag_dest_row_drop_possible (GtkTreeDragDest *drag_dest, | |
54295 | GtkTreePath *dest_path, | |
54296 | GtkSelectionData *selection_data); | |
54297 | ||
54298 | ||
54299 | ||
54300 | ||
54301 | ||
54302 | gboolean gtk_tree_set_row_drag_data (GtkSelectionData *selection_data, | |
54303 | GtkTreeModel *tree_model, | |
54304 | GtkTreePath *path); | |
54305 | gboolean gtk_tree_get_row_drag_data (GtkSelectionData *selection_data, | |
54306 | GtkTreeModel **tree_model, | |
54307 | GtkTreePath **path); | |
54308 | ||
54309 | ||
54310 | # 170 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54311 | # 1 "/usr/include/gtk-2.0/gtk/gtktreeitem.h" 1 | |
54312 | # 171 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54313 | ||
54314 | ||
54315 | # 1 "/usr/include/gtk-2.0/gtk/gtktreemodelsort.h" 1 | |
54316 | # 21 "/usr/include/gtk-2.0/gtk/gtktreemodelsort.h" | |
54317 | #define __GTK_TREE_MODEL_SORT_H__ | |
54318 | ||
54319 | ||
54320 | ||
54321 | ||
54322 | ||
54323 | ||
54324 | #define GTK_TYPE_TREE_MODEL_SORT (gtk_tree_model_sort_get_type ()) | |
54325 | #define GTK_TREE_MODEL_SORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSort)) | |
54326 | #define GTK_TREE_MODEL_SORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSortClass)) | |
54327 | #define GTK_IS_TREE_MODEL_SORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL_SORT)) | |
54328 | #define GTK_IS_TREE_MODEL_SORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_MODEL_SORT)) | |
54329 | #define GTK_TREE_MODEL_SORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSortClass)) | |
54330 | ||
54331 | typedef struct _GtkTreeModelSort GtkTreeModelSort; | |
54332 | typedef struct _GtkTreeModelSortClass GtkTreeModelSortClass; | |
54333 | ||
54334 | struct _GtkTreeModelSort | |
54335 | { | |
54336 | GObject parent; | |
54337 | ||
54338 | ||
54339 | gpointer root; | |
54340 | gint stamp; | |
54341 | guint child_flags; | |
54342 | GtkTreeModel *child_model; | |
54343 | gint zero_ref_count; | |
54344 | ||
54345 | ||
54346 | GList *sort_list; | |
54347 | gint sort_column_id; | |
54348 | GtkSortType order; | |
54349 | ||
54350 | ||
54351 | GtkTreeIterCompareFunc default_sort_func; | |
54352 | gpointer default_sort_data; | |
54353 | GtkDestroyNotify default_sort_destroy; | |
54354 | ||
54355 | ||
54356 | guint changed_id; | |
54357 | guint inserted_id; | |
54358 | guint has_child_toggled_id; | |
54359 | guint deleted_id; | |
54360 | guint reordered_id; | |
54361 | }; | |
54362 | ||
54363 | struct _GtkTreeModelSortClass | |
54364 | { | |
54365 | GObjectClass parent_class; | |
54366 | ||
54367 | ||
54368 | void (*_gtk_reserved1) (void); | |
54369 | void (*_gtk_reserved2) (void); | |
54370 | void (*_gtk_reserved3) (void); | |
54371 | void (*_gtk_reserved4) (void); | |
54372 | }; | |
54373 | ||
54374 | ||
54375 | GType gtk_tree_model_sort_get_type (void) __attribute__((__const__)); | |
54376 | GtkTreeModel *gtk_tree_model_sort_new_with_model (GtkTreeModel *child_model); | |
54377 | ||
54378 | GtkTreeModel *gtk_tree_model_sort_get_model (GtkTreeModelSort *tree_model); | |
54379 | GtkTreePath *gtk_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_model_sort, | |
54380 | GtkTreePath *child_path); | |
54381 | void gtk_tree_model_sort_convert_child_iter_to_iter (GtkTreeModelSort *tree_model_sort, | |
54382 | GtkTreeIter *sort_iter, | |
54383 | GtkTreeIter *child_iter); | |
54384 | GtkTreePath *gtk_tree_model_sort_convert_path_to_child_path (GtkTreeModelSort *tree_model_sort, | |
54385 | GtkTreePath *sorted_path); | |
54386 | void gtk_tree_model_sort_convert_iter_to_child_iter (GtkTreeModelSort *tree_model_sort, | |
54387 | GtkTreeIter *child_iter, | |
54388 | GtkTreeIter *sorted_iter); | |
54389 | void gtk_tree_model_sort_reset_default_sort_func (GtkTreeModelSort *tree_model_sort); | |
54390 | void gtk_tree_model_sort_clear_cache (GtkTreeModelSort *tree_model_sort); | |
54391 | gboolean gtk_tree_model_sort_iter_is_valid (GtkTreeModelSort *tree_model_sort, | |
54392 | GtkTreeIter *iter); | |
54393 | ||
54394 | ||
54395 | ||
54396 | # 174 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54397 | # 1 "/usr/include/gtk-2.0/gtk/gtktreeselection.h" 1 | |
54398 | # 21 "/usr/include/gtk-2.0/gtk/gtktreeselection.h" | |
54399 | #define __GTK_TREE_SELECTION_H__ | |
54400 | ||
54401 | ||
54402 | ||
54403 | ||
54404 | ||
54405 | ||
54406 | ||
54407 | ||
54408 | #define GTK_TYPE_TREE_SELECTION (gtk_tree_selection_get_type ()) | |
54409 | #define GTK_TREE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_SELECTION, GtkTreeSelection)) | |
54410 | #define GTK_TREE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_SELECTION, GtkTreeSelectionClass)) | |
54411 | #define GTK_IS_TREE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_SELECTION)) | |
54412 | #define GTK_IS_TREE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_SELECTION)) | |
54413 | #define GTK_TREE_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_SELECTION, GtkTreeSelectionClass)) | |
54414 | ||
54415 | typedef gboolean (* GtkTreeSelectionFunc) (GtkTreeSelection *selection, | |
54416 | GtkTreeModel *model, | |
54417 | GtkTreePath *path, | |
54418 | gboolean path_currently_selected, | |
54419 | gpointer data); | |
54420 | typedef void (* GtkTreeSelectionForeachFunc) (GtkTreeModel *model, | |
54421 | GtkTreePath *path, | |
54422 | GtkTreeIter *iter, | |
54423 | gpointer data); | |
54424 | ||
54425 | struct _GtkTreeSelection | |
54426 | { | |
54427 | GObject parent; | |
54428 | ||
54429 | ||
54430 | ||
54431 | GtkTreeView *tree_view; | |
54432 | GtkSelectionMode type; | |
54433 | GtkTreeSelectionFunc user_func; | |
54434 | gpointer user_data; | |
54435 | GtkDestroyNotify destroy; | |
54436 | }; | |
54437 | ||
54438 | struct _GtkTreeSelectionClass | |
54439 | { | |
54440 | GObjectClass parent_class; | |
54441 | ||
54442 | void (* changed) (GtkTreeSelection *selection); | |
54443 | ||
54444 | ||
54445 | void (*_gtk_reserved1) (void); | |
54446 | void (*_gtk_reserved2) (void); | |
54447 | void (*_gtk_reserved3) (void); | |
54448 | void (*_gtk_reserved4) (void); | |
54449 | }; | |
54450 | ||
54451 | ||
54452 | GType gtk_tree_selection_get_type (void) __attribute__((__const__)); | |
54453 | ||
54454 | void gtk_tree_selection_set_mode (GtkTreeSelection *selection, | |
54455 | GtkSelectionMode type); | |
54456 | GtkSelectionMode gtk_tree_selection_get_mode (GtkTreeSelection *selection); | |
54457 | void gtk_tree_selection_set_select_function (GtkTreeSelection *selection, | |
54458 | GtkTreeSelectionFunc func, | |
54459 | gpointer data, | |
54460 | GtkDestroyNotify destroy); | |
54461 | gpointer gtk_tree_selection_get_user_data (GtkTreeSelection *selection); | |
54462 | GtkTreeView* gtk_tree_selection_get_tree_view (GtkTreeSelection *selection); | |
54463 | ||
54464 | ||
54465 | ||
54466 | gboolean gtk_tree_selection_get_selected (GtkTreeSelection *selection, | |
54467 | GtkTreeModel **model, | |
54468 | GtkTreeIter *iter); | |
54469 | GList * gtk_tree_selection_get_selected_rows (GtkTreeSelection *selection, | |
54470 | GtkTreeModel **model); | |
54471 | gint gtk_tree_selection_count_selected_rows (GtkTreeSelection *selection); | |
54472 | void gtk_tree_selection_selected_foreach (GtkTreeSelection *selection, | |
54473 | GtkTreeSelectionForeachFunc func, | |
54474 | gpointer data); | |
54475 | void gtk_tree_selection_select_path (GtkTreeSelection *selection, | |
54476 | GtkTreePath *path); | |
54477 | void gtk_tree_selection_unselect_path (GtkTreeSelection *selection, | |
54478 | GtkTreePath *path); | |
54479 | void gtk_tree_selection_select_iter (GtkTreeSelection *selection, | |
54480 | GtkTreeIter *iter); | |
54481 | void gtk_tree_selection_unselect_iter (GtkTreeSelection *selection, | |
54482 | GtkTreeIter *iter); | |
54483 | gboolean gtk_tree_selection_path_is_selected (GtkTreeSelection *selection, | |
54484 | GtkTreePath *path); | |
54485 | gboolean gtk_tree_selection_iter_is_selected (GtkTreeSelection *selection, | |
54486 | GtkTreeIter *iter); | |
54487 | void gtk_tree_selection_select_all (GtkTreeSelection *selection); | |
54488 | void gtk_tree_selection_unselect_all (GtkTreeSelection *selection); | |
54489 | void gtk_tree_selection_select_range (GtkTreeSelection *selection, | |
54490 | GtkTreePath *start_path, | |
54491 | GtkTreePath *end_path); | |
54492 | void gtk_tree_selection_unselect_range (GtkTreeSelection *selection, | |
54493 | GtkTreePath *start_path, | |
54494 | GtkTreePath *end_path); | |
54495 | ||
54496 | ||
54497 | ||
54498 | # 175 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54499 | # 1 "/usr/include/gtk-2.0/gtk/gtktreestore.h" 1 | |
54500 | # 21 "/usr/include/gtk-2.0/gtk/gtktreestore.h" | |
54501 | #define __GTK_TREE_STORE_H__ | |
54502 | ||
54503 | ||
54504 | ||
54505 | ||
54506 | ||
54507 | ||
54508 | ||
54509 | ||
54510 | ||
54511 | #define GTK_TYPE_TREE_STORE (gtk_tree_store_get_type ()) | |
54512 | #define GTK_TREE_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_STORE, GtkTreeStore)) | |
54513 | #define GTK_TREE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_STORE, GtkTreeStoreClass)) | |
54514 | #define GTK_IS_TREE_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_STORE)) | |
54515 | #define GTK_IS_TREE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_STORE)) | |
54516 | #define GTK_TREE_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_STORE, GtkTreeStoreClass)) | |
54517 | ||
54518 | typedef struct _GtkTreeStore GtkTreeStore; | |
54519 | typedef struct _GtkTreeStoreClass GtkTreeStoreClass; | |
54520 | ||
54521 | struct _GtkTreeStore | |
54522 | { | |
54523 | GObject parent; | |
54524 | ||
54525 | gint stamp; | |
54526 | gpointer root; | |
54527 | gpointer last; | |
54528 | gint n_columns; | |
54529 | gint sort_column_id; | |
54530 | GList *sort_list; | |
54531 | GtkSortType order; | |
54532 | GType *column_headers; | |
54533 | GtkTreeIterCompareFunc default_sort_func; | |
54534 | gpointer default_sort_data; | |
54535 | GtkDestroyNotify default_sort_destroy; | |
54536 | guint columns_dirty : 1; | |
54537 | }; | |
54538 | ||
54539 | struct _GtkTreeStoreClass | |
54540 | { | |
54541 | GObjectClass parent_class; | |
54542 | ||
54543 | ||
54544 | void (*_gtk_reserved1) (void); | |
54545 | void (*_gtk_reserved2) (void); | |
54546 | void (*_gtk_reserved3) (void); | |
54547 | void (*_gtk_reserved4) (void); | |
54548 | }; | |
54549 | ||
54550 | ||
54551 | GType gtk_tree_store_get_type (void) __attribute__((__const__)); | |
54552 | GtkTreeStore *gtk_tree_store_new (gint n_columns, | |
54553 | ...); | |
54554 | GtkTreeStore *gtk_tree_store_newv (gint n_columns, | |
54555 | GType *types); | |
54556 | void gtk_tree_store_set_column_types (GtkTreeStore *tree_store, | |
54557 | gint n_columns, | |
54558 | GType *types); | |
54559 | ||
54560 | ||
54561 | ||
54562 | void gtk_tree_store_set_value (GtkTreeStore *tree_store, | |
54563 | GtkTreeIter *iter, | |
54564 | gint column, | |
54565 | GValue *value); | |
54566 | void gtk_tree_store_set (GtkTreeStore *tree_store, | |
54567 | GtkTreeIter *iter, | |
54568 | ...); | |
54569 | void gtk_tree_store_set_valist (GtkTreeStore *tree_store, | |
54570 | GtkTreeIter *iter, | |
54571 | va_list var_args); | |
54572 | gboolean gtk_tree_store_remove (GtkTreeStore *tree_store, | |
54573 | GtkTreeIter *iter); | |
54574 | void gtk_tree_store_insert (GtkTreeStore *tree_store, | |
54575 | GtkTreeIter *iter, | |
54576 | GtkTreeIter *parent, | |
54577 | gint position); | |
54578 | void gtk_tree_store_insert_before (GtkTreeStore *tree_store, | |
54579 | GtkTreeIter *iter, | |
54580 | GtkTreeIter *parent, | |
54581 | GtkTreeIter *sibling); | |
54582 | void gtk_tree_store_insert_after (GtkTreeStore *tree_store, | |
54583 | GtkTreeIter *iter, | |
54584 | GtkTreeIter *parent, | |
54585 | GtkTreeIter *sibling); | |
54586 | void gtk_tree_store_prepend (GtkTreeStore *tree_store, | |
54587 | GtkTreeIter *iter, | |
54588 | GtkTreeIter *parent); | |
54589 | void gtk_tree_store_append (GtkTreeStore *tree_store, | |
54590 | GtkTreeIter *iter, | |
54591 | GtkTreeIter *parent); | |
54592 | gboolean gtk_tree_store_is_ancestor (GtkTreeStore *tree_store, | |
54593 | GtkTreeIter *iter, | |
54594 | GtkTreeIter *descendant); | |
54595 | gint gtk_tree_store_iter_depth (GtkTreeStore *tree_store, | |
54596 | GtkTreeIter *iter); | |
54597 | void gtk_tree_store_clear (GtkTreeStore *tree_store); | |
54598 | gboolean gtk_tree_store_iter_is_valid (GtkTreeStore *tree_store, | |
54599 | GtkTreeIter *iter); | |
54600 | void gtk_tree_store_reorder (GtkTreeStore *tree_store, | |
54601 | GtkTreeIter *parent, | |
54602 | gint *new_order); | |
54603 | void gtk_tree_store_swap (GtkTreeStore *tree_store, | |
54604 | GtkTreeIter *a, | |
54605 | GtkTreeIter *b); | |
54606 | void gtk_tree_store_move_before (GtkTreeStore *tree_store, | |
54607 | GtkTreeIter *iter, | |
54608 | GtkTreeIter *position); | |
54609 | void gtk_tree_store_move_after (GtkTreeStore *tree_store, | |
54610 | GtkTreeIter *iter, | |
54611 | GtkTreeIter *position); | |
54612 | ||
54613 | ||
54614 | ||
54615 | # 176 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54616 | ||
54617 | ||
54618 | ||
54619 | # 1 "/usr/include/gtk-2.0/gtk/gtkuimanager.h" 1 | |
54620 | # 31 "/usr/include/gtk-2.0/gtk/gtkuimanager.h" | |
54621 | #define __GTK_UI_MANAGER_H__ | |
54622 | # 41 "/usr/include/gtk-2.0/gtk/gtkuimanager.h" | |
54623 | ||
54624 | ||
54625 | #define GTK_TYPE_UI_MANAGER (gtk_ui_manager_get_type ()) | |
54626 | #define GTK_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_UI_MANAGER, GtkUIManager)) | |
54627 | #define GTK_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_UI_MANAGER, GtkUIManagerClass)) | |
54628 | #define GTK_IS_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_UI_MANAGER)) | |
54629 | #define GTK_IS_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_UI_MANAGER)) | |
54630 | #define GTK_UI_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_UI_MANAGER, GtkUIManagerClass)) | |
54631 | ||
54632 | typedef struct _GtkUIManager GtkUIManager; | |
54633 | typedef struct _GtkUIManagerClass GtkUIManagerClass; | |
54634 | typedef struct _GtkUIManagerPrivate GtkUIManagerPrivate; | |
54635 | ||
54636 | ||
54637 | struct _GtkUIManager { | |
54638 | GObject parent; | |
54639 | ||
54640 | ||
54641 | ||
54642 | GtkUIManagerPrivate *private_data; | |
54643 | }; | |
54644 | ||
54645 | struct _GtkUIManagerClass { | |
54646 | GObjectClass parent_class; | |
54647 | ||
54648 | ||
54649 | void (* add_widget) (GtkUIManager *merge, | |
54650 | GtkWidget *widget); | |
54651 | void (* actions_changed) (GtkUIManager *merge); | |
54652 | void (* connect_proxy) (GtkUIManager *merge, | |
54653 | GtkAction *action, | |
54654 | GtkWidget *proxy); | |
54655 | void (* disconnect_proxy) (GtkUIManager *merge, | |
54656 | GtkAction *action, | |
54657 | GtkWidget *proxy); | |
54658 | void (* pre_activate) (GtkUIManager *merge, | |
54659 | GtkAction *action); | |
54660 | void (* post_activate) (GtkUIManager *merge, | |
54661 | GtkAction *action); | |
54662 | ||
54663 | ||
54664 | GtkWidget * (* get_widget) (GtkUIManager *manager, | |
54665 | const gchar *path); | |
54666 | GtkAction * (* get_action) (GtkUIManager *manager, | |
54667 | const gchar *path); | |
54668 | ||
54669 | ||
54670 | void (*_gtk_reserved1) (void); | |
54671 | void (*_gtk_reserved2) (void); | |
54672 | }; | |
54673 | ||
54674 | typedef enum { | |
54675 | GTK_UI_MANAGER_AUTO = 0, | |
54676 | GTK_UI_MANAGER_MENUBAR = 1 << 0, | |
54677 | GTK_UI_MANAGER_MENU = 1 << 1, | |
54678 | GTK_UI_MANAGER_TOOLBAR = 1 << 2, | |
54679 | GTK_UI_MANAGER_PLACEHOLDER = 1 << 3, | |
54680 | GTK_UI_MANAGER_POPUP = 1 << 4, | |
54681 | GTK_UI_MANAGER_MENUITEM = 1 << 5, | |
54682 | GTK_UI_MANAGER_TOOLITEM = 1 << 6, | |
54683 | GTK_UI_MANAGER_SEPARATOR = 1 << 7, | |
54684 | GTK_UI_MANAGER_ACCELERATOR = 1 << 8 | |
54685 | } GtkUIManagerItemType; | |
54686 | ||
54687 | ||
54688 | ||
54689 | ||
54690 | ||
54691 | ||
54692 | GType gtk_ui_manager_get_type (void) __attribute__((__const__)); | |
54693 | GtkUIManager *gtk_ui_manager_new (void); | |
54694 | void gtk_ui_manager_set_add_tearoffs (GtkUIManager *self, | |
54695 | gboolean add_tearoffs); | |
54696 | gboolean gtk_ui_manager_get_add_tearoffs (GtkUIManager *self); | |
54697 | void gtk_ui_manager_insert_action_group (GtkUIManager *self, | |
54698 | GtkActionGroup *action_group, | |
54699 | gint pos); | |
54700 | void gtk_ui_manager_remove_action_group (GtkUIManager *self, | |
54701 | GtkActionGroup *action_group); | |
54702 | GList *gtk_ui_manager_get_action_groups (GtkUIManager *self); | |
54703 | GtkAccelGroup *gtk_ui_manager_get_accel_group (GtkUIManager *self); | |
54704 | GtkWidget *gtk_ui_manager_get_widget (GtkUIManager *self, | |
54705 | const gchar *path); | |
54706 | GSList *gtk_ui_manager_get_toplevels (GtkUIManager *self, | |
54707 | GtkUIManagerItemType types); | |
54708 | GtkAction *gtk_ui_manager_get_action (GtkUIManager *self, | |
54709 | const gchar *path); | |
54710 | guint gtk_ui_manager_add_ui_from_string (GtkUIManager *self, | |
54711 | const gchar *buffer, | |
54712 | gssize length, | |
54713 | GError **error); | |
54714 | guint gtk_ui_manager_add_ui_from_file (GtkUIManager *self, | |
54715 | const gchar *filename, | |
54716 | GError **error); | |
54717 | void gtk_ui_manager_add_ui (GtkUIManager *self, | |
54718 | guint merge_id, | |
54719 | const gchar *path, | |
54720 | const gchar *name, | |
54721 | const gchar *action, | |
54722 | GtkUIManagerItemType type, | |
54723 | gboolean top); | |
54724 | void gtk_ui_manager_remove_ui (GtkUIManager *self, | |
54725 | guint merge_id); | |
54726 | gchar *gtk_ui_manager_get_ui (GtkUIManager *self); | |
54727 | void gtk_ui_manager_ensure_update (GtkUIManager *self); | |
54728 | guint gtk_ui_manager_new_merge_id (GtkUIManager *self); | |
54729 | ||
54730 | ||
54731 | # 180 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54732 | # 1 "/usr/include/gtk-2.0/gtk/gtkvbbox.h" 1 | |
54733 | # 28 "/usr/include/gtk-2.0/gtk/gtkvbbox.h" | |
54734 | #define __GTK_VBUTTON_BOX_H__ | |
54735 | ||
54736 | ||
54737 | ||
54738 | ||
54739 | ||
54740 | ||
54741 | ||
54742 | ||
54743 | #define GTK_TYPE_VBUTTON_BOX (gtk_vbutton_box_get_type ()) | |
54744 | #define GTK_VBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBUTTON_BOX, GtkVButtonBox)) | |
54745 | #define GTK_VBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBUTTON_BOX, GtkVButtonBoxClass)) | |
54746 | #define GTK_IS_VBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VBUTTON_BOX)) | |
54747 | #define GTK_IS_VBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBUTTON_BOX)) | |
54748 | #define GTK_VBUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VBUTTON_BOX, GtkVButtonBoxClass)) | |
54749 | ||
54750 | ||
54751 | typedef struct _GtkVButtonBox GtkVButtonBox; | |
54752 | typedef struct _GtkVButtonBoxClass GtkVButtonBoxClass; | |
54753 | ||
54754 | struct _GtkVButtonBox | |
54755 | { | |
54756 | GtkButtonBox button_box; | |
54757 | }; | |
54758 | ||
54759 | struct _GtkVButtonBoxClass | |
54760 | { | |
54761 | GtkButtonBoxClass parent_class; | |
54762 | }; | |
54763 | ||
54764 | ||
54765 | GType gtk_vbutton_box_get_type (void) __attribute__((__const__)); | |
54766 | GtkWidget *gtk_vbutton_box_new (void); | |
54767 | ||
54768 | ||
54769 | ||
54770 | ||
54771 | gint gtk_vbutton_box_get_spacing_default (void); | |
54772 | void gtk_vbutton_box_set_spacing_default (gint spacing); | |
54773 | ||
54774 | GtkButtonBoxStyle gtk_vbutton_box_get_layout_default (void); | |
54775 | void gtk_vbutton_box_set_layout_default (GtkButtonBoxStyle layout); | |
54776 | ||
54777 | ||
54778 | ||
54779 | ||
54780 | # 181 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54781 | ||
54782 | # 1 "/usr/include/gtk-2.0/gtk/gtkversion.h" 1 | |
54783 | # 28 "/usr/include/gtk-2.0/gtk/gtkversion.h" | |
54784 | #define __GTK_VERSION_H__ | |
54785 | ||
54786 | ||
54787 | ||
54788 | #define GTK_MAJOR_VERSION (2) | |
54789 | #define GTK_MINOR_VERSION (8) | |
54790 | #define GTK_MICRO_VERSION (19) | |
54791 | #define GTK_BINARY_AGE (819) | |
54792 | #define GTK_INTERFACE_AGE (19) | |
54793 | ||
54794 | ||
54795 | ||
54796 | ||
54797 | #define GTK_CHECK_VERSION(major,minor,micro) (GTK_MAJOR_VERSION > (major) || (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && GTK_MICRO_VERSION >= (micro))) | |
54798 | # 183 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54799 | ||
54800 | # 1 "/usr/include/gtk-2.0/gtk/gtkvpaned.h" 1 | |
54801 | # 28 "/usr/include/gtk-2.0/gtk/gtkvpaned.h" | |
54802 | #define __GTK_VPANED_H__ | |
54803 | ||
54804 | ||
54805 | ||
54806 | ||
54807 | ||
54808 | ||
54809 | ||
54810 | #define GTK_TYPE_VPANED (gtk_vpaned_get_type ()) | |
54811 | #define GTK_VPANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VPANED, GtkVPaned)) | |
54812 | #define GTK_VPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VPANED, GtkVPanedClass)) | |
54813 | #define GTK_IS_VPANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VPANED)) | |
54814 | #define GTK_IS_VPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VPANED)) | |
54815 | #define GTK_VPANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VPANED, GtkVPanedClass)) | |
54816 | ||
54817 | ||
54818 | typedef struct _GtkVPaned GtkVPaned; | |
54819 | typedef struct _GtkVPanedClass GtkVPanedClass; | |
54820 | ||
54821 | struct _GtkVPaned | |
54822 | { | |
54823 | GtkPaned paned; | |
54824 | }; | |
54825 | ||
54826 | struct _GtkVPanedClass | |
54827 | { | |
54828 | GtkPanedClass parent_class; | |
54829 | }; | |
54830 | ||
54831 | GType gtk_vpaned_get_type (void) __attribute__((__const__)); | |
54832 | GtkWidget *gtk_vpaned_new (void); | |
54833 | ||
54834 | ||
54835 | ||
54836 | # 185 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54837 | # 1 "/usr/include/gtk-2.0/gtk/gtkvruler.h" 1 | |
54838 | # 38 "/usr/include/gtk-2.0/gtk/gtkvruler.h" | |
54839 | #define __GTK_VRULER_H__ | |
54840 | ||
54841 | ||
54842 | ||
54843 | ||
54844 | ||
54845 | ||
54846 | ||
54847 | ||
54848 | ||
54849 | #define GTK_TYPE_VRULER (gtk_vruler_get_type ()) | |
54850 | #define GTK_VRULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VRULER, GtkVRuler)) | |
54851 | #define GTK_VRULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VRULER, GtkVRulerClass)) | |
54852 | #define GTK_IS_VRULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VRULER)) | |
54853 | #define GTK_IS_VRULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VRULER)) | |
54854 | #define GTK_VRULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VRULER, GtkVRulerClass)) | |
54855 | ||
54856 | ||
54857 | typedef struct _GtkVRuler GtkVRuler; | |
54858 | typedef struct _GtkVRulerClass GtkVRulerClass; | |
54859 | ||
54860 | struct _GtkVRuler | |
54861 | { | |
54862 | GtkRuler ruler; | |
54863 | }; | |
54864 | ||
54865 | struct _GtkVRulerClass | |
54866 | { | |
54867 | GtkRulerClass parent_class; | |
54868 | }; | |
54869 | ||
54870 | ||
54871 | GType gtk_vruler_get_type (void) __attribute__((__const__)); | |
54872 | GtkWidget* gtk_vruler_new (void); | |
54873 | ||
54874 | ||
54875 | ||
54876 | # 186 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54877 | # 1 "/usr/include/gtk-2.0/gtk/gtkvscale.h" 1 | |
54878 | # 28 "/usr/include/gtk-2.0/gtk/gtkvscale.h" | |
54879 | #define __GTK_VSCALE_H__ | |
54880 | ||
54881 | ||
54882 | ||
54883 | ||
54884 | ||
54885 | ||
54886 | ||
54887 | ||
54888 | ||
54889 | #define GTK_TYPE_VSCALE (gtk_vscale_get_type ()) | |
54890 | #define GTK_VSCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSCALE, GtkVScale)) | |
54891 | #define GTK_VSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCALE, GtkVScaleClass)) | |
54892 | #define GTK_IS_VSCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSCALE)) | |
54893 | #define GTK_IS_VSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCALE)) | |
54894 | #define GTK_VSCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSCALE, GtkVScaleClass)) | |
54895 | ||
54896 | ||
54897 | typedef struct _GtkVScale GtkVScale; | |
54898 | typedef struct _GtkVScaleClass GtkVScaleClass; | |
54899 | ||
54900 | struct _GtkVScale | |
54901 | { | |
54902 | GtkScale scale; | |
54903 | }; | |
54904 | ||
54905 | struct _GtkVScaleClass | |
54906 | { | |
54907 | GtkScaleClass parent_class; | |
54908 | }; | |
54909 | ||
54910 | ||
54911 | GType gtk_vscale_get_type (void) __attribute__((__const__)); | |
54912 | GtkWidget* gtk_vscale_new (GtkAdjustment *adjustment); | |
54913 | GtkWidget* gtk_vscale_new_with_range (gdouble min, | |
54914 | gdouble max, | |
54915 | gdouble step); | |
54916 | ||
54917 | ||
54918 | ||
54919 | # 187 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54920 | ||
54921 | # 1 "/usr/include/gtk-2.0/gtk/gtkvseparator.h" 1 | |
54922 | # 28 "/usr/include/gtk-2.0/gtk/gtkvseparator.h" | |
54923 | #define __GTK_VSEPARATOR_H__ | |
54924 | ||
54925 | ||
54926 | ||
54927 | ||
54928 | ||
54929 | ||
54930 | ||
54931 | ||
54932 | ||
54933 | #define GTK_TYPE_VSEPARATOR (gtk_vseparator_get_type ()) | |
54934 | #define GTK_VSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSEPARATOR, GtkVSeparator)) | |
54935 | #define GTK_VSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSEPARATOR, GtkVSeparatorClass)) | |
54936 | #define GTK_IS_VSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSEPARATOR)) | |
54937 | #define GTK_IS_VSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSEPARATOR)) | |
54938 | #define GTK_VSEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSEPARATOR, GtkVSeparatorClass)) | |
54939 | ||
54940 | ||
54941 | typedef struct _GtkVSeparator GtkVSeparator; | |
54942 | typedef struct _GtkVSeparatorClass GtkVSeparatorClass; | |
54943 | ||
54944 | struct _GtkVSeparator | |
54945 | { | |
54946 | GtkSeparator separator; | |
54947 | }; | |
54948 | ||
54949 | struct _GtkVSeparatorClass | |
54950 | { | |
54951 | GtkSeparatorClass parent_class; | |
54952 | }; | |
54953 | ||
54954 | ||
54955 | GType gtk_vseparator_get_type (void) __attribute__((__const__)); | |
54956 | GtkWidget* gtk_vseparator_new (void); | |
54957 | ||
54958 | ||
54959 | ||
54960 | # 189 "/usr/include/gtk-2.0/gtk/gtk.h" 2 | |
54961 | # 53 "gconf.c" 2 | |
54962 | ||
54963 | # 1 "/usr/include/gtk-2.0/gdk/gdkkeysyms.h" 1 | |
54964 | # 28 "/usr/include/gtk-2.0/gdk/gdkkeysyms.h" | |
54965 | #define __GDK_KEYSYMS_H__ | |
54966 | ||
54967 | ||
54968 | #define GDK_VoidSymbol 0xFFFFFF | |
54969 | #define GDK_BackSpace 0xFF08 | |
54970 | #define GDK_Tab 0xFF09 | |
54971 | #define GDK_Linefeed 0xFF0A | |
54972 | #define GDK_Clear 0xFF0B | |
54973 | #define GDK_Return 0xFF0D | |
54974 | #define GDK_Pause 0xFF13 | |
54975 | #define GDK_Scroll_Lock 0xFF14 | |
54976 | #define GDK_Sys_Req 0xFF15 | |
54977 | #define GDK_Escape 0xFF1B | |
54978 | #define GDK_Delete 0xFFFF | |
54979 | #define GDK_Multi_key 0xFF20 | |
54980 | #define GDK_Codeinput 0xFF37 | |
54981 | #define GDK_SingleCandidate 0xFF3C | |
54982 | #define GDK_MultipleCandidate 0xFF3D | |
54983 | #define GDK_PreviousCandidate 0xFF3E | |
54984 | #define GDK_Kanji 0xFF21 | |
54985 | #define GDK_Muhenkan 0xFF22 | |
54986 | #define GDK_Henkan_Mode 0xFF23 | |
54987 | #define GDK_Henkan 0xFF23 | |
54988 | #define GDK_Romaji 0xFF24 | |
54989 | #define GDK_Hiragana 0xFF25 | |
54990 | #define GDK_Katakana 0xFF26 | |
54991 | #define GDK_Hiragana_Katakana 0xFF27 | |
54992 | #define GDK_Zenkaku 0xFF28 | |
54993 | #define GDK_Hankaku 0xFF29 | |
54994 | #define GDK_Zenkaku_Hankaku 0xFF2A | |
54995 | #define GDK_Touroku 0xFF2B | |
54996 | #define GDK_Massyo 0xFF2C | |
54997 | #define GDK_Kana_Lock 0xFF2D | |
54998 | #define GDK_Kana_Shift 0xFF2E | |
54999 | #define GDK_Eisu_Shift 0xFF2F | |
55000 | #define GDK_Eisu_toggle 0xFF30 | |
55001 | #define GDK_Kanji_Bangou 0xFF37 | |
55002 | #define GDK_Zen_Koho 0xFF3D | |
55003 | #define GDK_Mae_Koho 0xFF3E | |
55004 | #define GDK_Home 0xFF50 | |
55005 | #define GDK_Left 0xFF51 | |
55006 | #define GDK_Up 0xFF52 | |
55007 | #define GDK_Right 0xFF53 | |
55008 | #define GDK_Down 0xFF54 | |
55009 | #define GDK_Prior 0xFF55 | |
55010 | #define GDK_Page_Up 0xFF55 | |
55011 | #define GDK_Next 0xFF56 | |
55012 | #define GDK_Page_Down 0xFF56 | |
55013 | #define GDK_End 0xFF57 | |
55014 | #define GDK_Begin 0xFF58 | |
55015 | #define GDK_Select 0xFF60 | |
55016 | #define GDK_Print 0xFF61 | |
55017 | #define GDK_Execute 0xFF62 | |
55018 | #define GDK_Insert 0xFF63 | |
55019 | #define GDK_Undo 0xFF65 | |
55020 | #define GDK_Redo 0xFF66 | |
55021 | #define GDK_Menu 0xFF67 | |
55022 | #define GDK_Find 0xFF68 | |
55023 | #define GDK_Cancel 0xFF69 | |
55024 | #define GDK_Help 0xFF6A | |
55025 | #define GDK_Break 0xFF6B | |
55026 | #define GDK_Mode_switch 0xFF7E | |
55027 | #define GDK_script_switch 0xFF7E | |
55028 | #define GDK_Num_Lock 0xFF7F | |
55029 | #define GDK_KP_Space 0xFF80 | |
55030 | #define GDK_KP_Tab 0xFF89 | |
55031 | #define GDK_KP_Enter 0xFF8D | |
55032 | #define GDK_KP_F1 0xFF91 | |
55033 | #define GDK_KP_F2 0xFF92 | |
55034 | #define GDK_KP_F3 0xFF93 | |
55035 | #define GDK_KP_F4 0xFF94 | |
55036 | #define GDK_KP_Home 0xFF95 | |
55037 | #define GDK_KP_Left 0xFF96 | |
55038 | #define GDK_KP_Up 0xFF97 | |
55039 | #define GDK_KP_Right 0xFF98 | |
55040 | #define GDK_KP_Down 0xFF99 | |
55041 | #define GDK_KP_Prior 0xFF9A | |
55042 | #define GDK_KP_Page_Up 0xFF9A | |
55043 | #define GDK_KP_Next 0xFF9B | |
55044 | #define GDK_KP_Page_Down 0xFF9B | |
55045 | #define GDK_KP_End 0xFF9C | |
55046 | #define GDK_KP_Begin 0xFF9D | |
55047 | #define GDK_KP_Insert 0xFF9E | |
55048 | #define GDK_KP_Delete 0xFF9F | |
55049 | #define GDK_KP_Equal 0xFFBD | |
55050 | #define GDK_KP_Multiply 0xFFAA | |
55051 | #define GDK_KP_Add 0xFFAB | |
55052 | #define GDK_KP_Separator 0xFFAC | |
55053 | #define GDK_KP_Subtract 0xFFAD | |
55054 | #define GDK_KP_Decimal 0xFFAE | |
55055 | #define GDK_KP_Divide 0xFFAF | |
55056 | #define GDK_KP_0 0xFFB0 | |
55057 | #define GDK_KP_1 0xFFB1 | |
55058 | #define GDK_KP_2 0xFFB2 | |
55059 | #define GDK_KP_3 0xFFB3 | |
55060 | #define GDK_KP_4 0xFFB4 | |
55061 | #define GDK_KP_5 0xFFB5 | |
55062 | #define GDK_KP_6 0xFFB6 | |
55063 | #define GDK_KP_7 0xFFB7 | |
55064 | #define GDK_KP_8 0xFFB8 | |
55065 | #define GDK_KP_9 0xFFB9 | |
55066 | #define GDK_F1 0xFFBE | |
55067 | #define GDK_F2 0xFFBF | |
55068 | #define GDK_F3 0xFFC0 | |
55069 | #define GDK_F4 0xFFC1 | |
55070 | #define GDK_F5 0xFFC2 | |
55071 | #define GDK_F6 0xFFC3 | |
55072 | #define GDK_F7 0xFFC4 | |
55073 | #define GDK_F8 0xFFC5 | |
55074 | #define GDK_F9 0xFFC6 | |
55075 | #define GDK_F10 0xFFC7 | |
55076 | #define GDK_F11 0xFFC8 | |
55077 | #define GDK_L1 0xFFC8 | |
55078 | #define GDK_F12 0xFFC9 | |
55079 | #define GDK_L2 0xFFC9 | |
55080 | #define GDK_F13 0xFFCA | |
55081 | #define GDK_L3 0xFFCA | |
55082 | #define GDK_F14 0xFFCB | |
55083 | #define GDK_L4 0xFFCB | |
55084 | #define GDK_F15 0xFFCC | |
55085 | #define GDK_L5 0xFFCC | |
55086 | #define GDK_F16 0xFFCD | |
55087 | #define GDK_L6 0xFFCD | |
55088 | #define GDK_F17 0xFFCE | |
55089 | #define GDK_L7 0xFFCE | |
55090 | #define GDK_F18 0xFFCF | |
55091 | #define GDK_L8 0xFFCF | |
55092 | #define GDK_F19 0xFFD0 | |
55093 | #define GDK_L9 0xFFD0 | |
55094 | #define GDK_F20 0xFFD1 | |
55095 | #define GDK_L10 0xFFD1 | |
55096 | #define GDK_F21 0xFFD2 | |
55097 | #define GDK_R1 0xFFD2 | |
55098 | #define GDK_F22 0xFFD3 | |
55099 | #define GDK_R2 0xFFD3 | |
55100 | #define GDK_F23 0xFFD4 | |
55101 | #define GDK_R3 0xFFD4 | |
55102 | #define GDK_F24 0xFFD5 | |
55103 | #define GDK_R4 0xFFD5 | |
55104 | #define GDK_F25 0xFFD6 | |
55105 | #define GDK_R5 0xFFD6 | |
55106 | #define GDK_F26 0xFFD7 | |
55107 | #define GDK_R6 0xFFD7 | |
55108 | #define GDK_F27 0xFFD8 | |
55109 | #define GDK_R7 0xFFD8 | |
55110 | #define GDK_F28 0xFFD9 | |
55111 | #define GDK_R8 0xFFD9 | |
55112 | #define GDK_F29 0xFFDA | |
55113 | #define GDK_R9 0xFFDA | |
55114 | #define GDK_F30 0xFFDB | |
55115 | #define GDK_R10 0xFFDB | |
55116 | #define GDK_F31 0xFFDC | |
55117 | #define GDK_R11 0xFFDC | |
55118 | #define GDK_F32 0xFFDD | |
55119 | #define GDK_R12 0xFFDD | |
55120 | #define GDK_F33 0xFFDE | |
55121 | #define GDK_R13 0xFFDE | |
55122 | #define GDK_F34 0xFFDF | |
55123 | #define GDK_R14 0xFFDF | |
55124 | #define GDK_F35 0xFFE0 | |
55125 | #define GDK_R15 0xFFE0 | |
55126 | #define GDK_Shift_L 0xFFE1 | |
55127 | #define GDK_Shift_R 0xFFE2 | |
55128 | #define GDK_Control_L 0xFFE3 | |
55129 | #define GDK_Control_R 0xFFE4 | |
55130 | #define GDK_Caps_Lock 0xFFE5 | |
55131 | #define GDK_Shift_Lock 0xFFE6 | |
55132 | #define GDK_Meta_L 0xFFE7 | |
55133 | #define GDK_Meta_R 0xFFE8 | |
55134 | #define GDK_Alt_L 0xFFE9 | |
55135 | #define GDK_Alt_R 0xFFEA | |
55136 | #define GDK_Super_L 0xFFEB | |
55137 | #define GDK_Super_R 0xFFEC | |
55138 | #define GDK_Hyper_L 0xFFED | |
55139 | #define GDK_Hyper_R 0xFFEE | |
55140 | #define GDK_ISO_Lock 0xFE01 | |
55141 | #define GDK_ISO_Level2_Latch 0xFE02 | |
55142 | #define GDK_ISO_Level3_Shift 0xFE03 | |
55143 | #define GDK_ISO_Level3_Latch 0xFE04 | |
55144 | #define GDK_ISO_Level3_Lock 0xFE05 | |
55145 | #define GDK_ISO_Group_Shift 0xFF7E | |
55146 | #define GDK_ISO_Group_Latch 0xFE06 | |
55147 | #define GDK_ISO_Group_Lock 0xFE07 | |
55148 | #define GDK_ISO_Next_Group 0xFE08 | |
55149 | #define GDK_ISO_Next_Group_Lock 0xFE09 | |
55150 | #define GDK_ISO_Prev_Group 0xFE0A | |
55151 | #define GDK_ISO_Prev_Group_Lock 0xFE0B | |
55152 | #define GDK_ISO_First_Group 0xFE0C | |
55153 | #define GDK_ISO_First_Group_Lock 0xFE0D | |
55154 | #define GDK_ISO_Last_Group 0xFE0E | |
55155 | #define GDK_ISO_Last_Group_Lock 0xFE0F | |
55156 | #define GDK_ISO_Left_Tab 0xFE20 | |
55157 | #define GDK_ISO_Move_Line_Up 0xFE21 | |
55158 | #define GDK_ISO_Move_Line_Down 0xFE22 | |
55159 | #define GDK_ISO_Partial_Line_Up 0xFE23 | |
55160 | #define GDK_ISO_Partial_Line_Down 0xFE24 | |
55161 | #define GDK_ISO_Partial_Space_Left 0xFE25 | |
55162 | #define GDK_ISO_Partial_Space_Right 0xFE26 | |
55163 | #define GDK_ISO_Set_Margin_Left 0xFE27 | |
55164 | #define GDK_ISO_Set_Margin_Right 0xFE28 | |
55165 | #define GDK_ISO_Release_Margin_Left 0xFE29 | |
55166 | #define GDK_ISO_Release_Margin_Right 0xFE2A | |
55167 | #define GDK_ISO_Release_Both_Margins 0xFE2B | |
55168 | #define GDK_ISO_Fast_Cursor_Left 0xFE2C | |
55169 | #define GDK_ISO_Fast_Cursor_Right 0xFE2D | |
55170 | #define GDK_ISO_Fast_Cursor_Up 0xFE2E | |
55171 | #define GDK_ISO_Fast_Cursor_Down 0xFE2F | |
55172 | #define GDK_ISO_Continuous_Underline 0xFE30 | |
55173 | #define GDK_ISO_Discontinuous_Underline 0xFE31 | |
55174 | #define GDK_ISO_Emphasize 0xFE32 | |
55175 | #define GDK_ISO_Center_Object 0xFE33 | |
55176 | #define GDK_ISO_Enter 0xFE34 | |
55177 | #define GDK_dead_grave 0xFE50 | |
55178 | #define GDK_dead_acute 0xFE51 | |
55179 | #define GDK_dead_circumflex 0xFE52 | |
55180 | #define GDK_dead_tilde 0xFE53 | |
55181 | #define GDK_dead_macron 0xFE54 | |
55182 | #define GDK_dead_breve 0xFE55 | |
55183 | #define GDK_dead_abovedot 0xFE56 | |
55184 | #define GDK_dead_diaeresis 0xFE57 | |
55185 | #define GDK_dead_abovering 0xFE58 | |
55186 | #define GDK_dead_doubleacute 0xFE59 | |
55187 | #define GDK_dead_caron 0xFE5A | |
55188 | #define GDK_dead_cedilla 0xFE5B | |
55189 | #define GDK_dead_ogonek 0xFE5C | |
55190 | #define GDK_dead_iota 0xFE5D | |
55191 | #define GDK_dead_voiced_sound 0xFE5E | |
55192 | #define GDK_dead_semivoiced_sound 0xFE5F | |
55193 | #define GDK_dead_belowdot 0xFE60 | |
55194 | #define GDK_dead_hook 0xFE61 | |
55195 | #define GDK_dead_horn 0xFE62 | |
55196 | #define GDK_First_Virtual_Screen 0xFED0 | |
55197 | #define GDK_Prev_Virtual_Screen 0xFED1 | |
55198 | #define GDK_Next_Virtual_Screen 0xFED2 | |
55199 | #define GDK_Last_Virtual_Screen 0xFED4 | |
55200 | #define GDK_Terminate_Server 0xFED5 | |
55201 | #define GDK_AccessX_Enable 0xFE70 | |
55202 | #define GDK_AccessX_Feedback_Enable 0xFE71 | |
55203 | #define GDK_RepeatKeys_Enable 0xFE72 | |
55204 | #define GDK_SlowKeys_Enable 0xFE73 | |
55205 | #define GDK_BounceKeys_Enable 0xFE74 | |
55206 | #define GDK_StickyKeys_Enable 0xFE75 | |
55207 | #define GDK_MouseKeys_Enable 0xFE76 | |
55208 | #define GDK_MouseKeys_Accel_Enable 0xFE77 | |
55209 | #define GDK_Overlay1_Enable 0xFE78 | |
55210 | #define GDK_Overlay2_Enable 0xFE79 | |
55211 | #define GDK_AudibleBell_Enable 0xFE7A | |
55212 | #define GDK_Pointer_Left 0xFEE0 | |
55213 | #define GDK_Pointer_Right 0xFEE1 | |
55214 | #define GDK_Pointer_Up 0xFEE2 | |
55215 | #define GDK_Pointer_Down 0xFEE3 | |
55216 | #define GDK_Pointer_UpLeft 0xFEE4 | |
55217 | #define GDK_Pointer_UpRight 0xFEE5 | |
55218 | #define GDK_Pointer_DownLeft 0xFEE6 | |
55219 | #define GDK_Pointer_DownRight 0xFEE7 | |
55220 | #define GDK_Pointer_Button_Dflt 0xFEE8 | |
55221 | #define GDK_Pointer_Button1 0xFEE9 | |
55222 | #define GDK_Pointer_Button2 0xFEEA | |
55223 | #define GDK_Pointer_Button3 0xFEEB | |
55224 | #define GDK_Pointer_Button4 0xFEEC | |
55225 | #define GDK_Pointer_Button5 0xFEED | |
55226 | #define GDK_Pointer_DblClick_Dflt 0xFEEE | |
55227 | #define GDK_Pointer_DblClick1 0xFEEF | |
55228 | #define GDK_Pointer_DblClick2 0xFEF0 | |
55229 | #define GDK_Pointer_DblClick3 0xFEF1 | |
55230 | #define GDK_Pointer_DblClick4 0xFEF2 | |
55231 | #define GDK_Pointer_DblClick5 0xFEF3 | |
55232 | #define GDK_Pointer_Drag_Dflt 0xFEF4 | |
55233 | #define GDK_Pointer_Drag1 0xFEF5 | |
55234 | #define GDK_Pointer_Drag2 0xFEF6 | |
55235 | #define GDK_Pointer_Drag3 0xFEF7 | |
55236 | #define GDK_Pointer_Drag4 0xFEF8 | |
55237 | #define GDK_Pointer_Drag5 0xFEFD | |
55238 | #define GDK_Pointer_EnableKeys 0xFEF9 | |
55239 | #define GDK_Pointer_Accelerate 0xFEFA | |
55240 | #define GDK_Pointer_DfltBtnNext 0xFEFB | |
55241 | #define GDK_Pointer_DfltBtnPrev 0xFEFC | |
55242 | #define GDK_3270_Duplicate 0xFD01 | |
55243 | #define GDK_3270_FieldMark 0xFD02 | |
55244 | #define GDK_3270_Right2 0xFD03 | |
55245 | #define GDK_3270_Left2 0xFD04 | |
55246 | #define GDK_3270_BackTab 0xFD05 | |
55247 | #define GDK_3270_EraseEOF 0xFD06 | |
55248 | #define GDK_3270_EraseInput 0xFD07 | |
55249 | #define GDK_3270_Reset 0xFD08 | |
55250 | #define GDK_3270_Quit 0xFD09 | |
55251 | #define GDK_3270_PA1 0xFD0A | |
55252 | #define GDK_3270_PA2 0xFD0B | |
55253 | #define GDK_3270_PA3 0xFD0C | |
55254 | #define GDK_3270_Test 0xFD0D | |
55255 | #define GDK_3270_Attn 0xFD0E | |
55256 | #define GDK_3270_CursorBlink 0xFD0F | |
55257 | #define GDK_3270_AltCursor 0xFD10 | |
55258 | #define GDK_3270_KeyClick 0xFD11 | |
55259 | #define GDK_3270_Jump 0xFD12 | |
55260 | #define GDK_3270_Ident 0xFD13 | |
55261 | #define GDK_3270_Rule 0xFD14 | |
55262 | #define GDK_3270_Copy 0xFD15 | |
55263 | #define GDK_3270_Play 0xFD16 | |
55264 | #define GDK_3270_Setup 0xFD17 | |
55265 | #define GDK_3270_Record 0xFD18 | |
55266 | #define GDK_3270_ChangeScreen 0xFD19 | |
55267 | #define GDK_3270_DeleteWord 0xFD1A | |
55268 | #define GDK_3270_ExSelect 0xFD1B | |
55269 | #define GDK_3270_CursorSelect 0xFD1C | |
55270 | #define GDK_3270_PrintScreen 0xFD1D | |
55271 | #define GDK_3270_Enter 0xFD1E | |
55272 | #define GDK_space 0x020 | |
55273 | #define GDK_exclam 0x021 | |
55274 | #define GDK_quotedbl 0x022 | |
55275 | #define GDK_numbersign 0x023 | |
55276 | #define GDK_dollar 0x024 | |
55277 | #define GDK_percent 0x025 | |
55278 | #define GDK_ampersand 0x026 | |
55279 | #define GDK_apostrophe 0x027 | |
55280 | #define GDK_quoteright 0x027 | |
55281 | #define GDK_parenleft 0x028 | |
55282 | #define GDK_parenright 0x029 | |
55283 | #define GDK_asterisk 0x02a | |
55284 | #define GDK_plus 0x02b | |
55285 | #define GDK_comma 0x02c | |
55286 | #define GDK_minus 0x02d | |
55287 | #define GDK_period 0x02e | |
55288 | #define GDK_slash 0x02f | |
55289 | #define GDK_0 0x030 | |
55290 | #define GDK_1 0x031 | |
55291 | #define GDK_2 0x032 | |
55292 | #define GDK_3 0x033 | |
55293 | #define GDK_4 0x034 | |
55294 | #define GDK_5 0x035 | |
55295 | #define GDK_6 0x036 | |
55296 | #define GDK_7 0x037 | |
55297 | #define GDK_8 0x038 | |
55298 | #define GDK_9 0x039 | |
55299 | #define GDK_colon 0x03a | |
55300 | #define GDK_semicolon 0x03b | |
55301 | #define GDK_less 0x03c | |
55302 | #define GDK_equal 0x03d | |
55303 | #define GDK_greater 0x03e | |
55304 | #define GDK_question 0x03f | |
55305 | #define GDK_at 0x040 | |
55306 | #define GDK_A 0x041 | |
55307 | #define GDK_B 0x042 | |
55308 | #define GDK_C 0x043 | |
55309 | #define GDK_D 0x044 | |
55310 | #define GDK_E 0x045 | |
55311 | #define GDK_F 0x046 | |
55312 | #define GDK_G 0x047 | |
55313 | #define GDK_H 0x048 | |
55314 | #define GDK_I 0x049 | |
55315 | #define GDK_J 0x04a | |
55316 | #define GDK_K 0x04b | |
55317 | #define GDK_L 0x04c | |
55318 | #define GDK_M 0x04d | |
55319 | #define GDK_N 0x04e | |
55320 | #define GDK_O 0x04f | |
55321 | #define GDK_P 0x050 | |
55322 | #define GDK_Q 0x051 | |
55323 | #define GDK_R 0x052 | |
55324 | #define GDK_S 0x053 | |
55325 | #define GDK_T 0x054 | |
55326 | #define GDK_U 0x055 | |
55327 | #define GDK_V 0x056 | |
55328 | #define GDK_W 0x057 | |
55329 | #define GDK_X 0x058 | |
55330 | #define GDK_Y 0x059 | |
55331 | #define GDK_Z 0x05a | |
55332 | #define GDK_bracketleft 0x05b | |
55333 | #define GDK_backslash 0x05c | |
55334 | #define GDK_bracketright 0x05d | |
55335 | #define GDK_asciicircum 0x05e | |
55336 | #define GDK_underscore 0x05f | |
55337 | #define GDK_grave 0x060 | |
55338 | #define GDK_quoteleft 0x060 | |
55339 | #define GDK_a 0x061 | |
55340 | #define GDK_b 0x062 | |
55341 | #define GDK_c 0x063 | |
55342 | #define GDK_d 0x064 | |
55343 | #define GDK_e 0x065 | |
55344 | #define GDK_f 0x066 | |
55345 | #define GDK_g 0x067 | |
55346 | #define GDK_h 0x068 | |
55347 | #define GDK_i 0x069 | |
55348 | #define GDK_j 0x06a | |
55349 | #define GDK_k 0x06b | |
55350 | #define GDK_l 0x06c | |
55351 | #define GDK_m 0x06d | |
55352 | #define GDK_n 0x06e | |
55353 | #define GDK_o 0x06f | |
55354 | #define GDK_p 0x070 | |
55355 | #define GDK_q 0x071 | |
55356 | #define GDK_r 0x072 | |
55357 | #define GDK_s 0x073 | |
55358 | #define GDK_t 0x074 | |
55359 | #define GDK_u 0x075 | |
55360 | #define GDK_v 0x076 | |
55361 | #define GDK_w 0x077 | |
55362 | #define GDK_x 0x078 | |
55363 | #define GDK_y 0x079 | |
55364 | #define GDK_z 0x07a | |
55365 | #define GDK_braceleft 0x07b | |
55366 | #define GDK_bar 0x07c | |
55367 | #define GDK_braceright 0x07d | |
55368 | #define GDK_asciitilde 0x07e | |
55369 | #define GDK_nobreakspace 0x0a0 | |
55370 | #define GDK_exclamdown 0x0a1 | |
55371 | #define GDK_cent 0x0a2 | |
55372 | #define GDK_sterling 0x0a3 | |
55373 | #define GDK_currency 0x0a4 | |
55374 | #define GDK_yen 0x0a5 | |
55375 | #define GDK_brokenbar 0x0a6 | |
55376 | #define GDK_section 0x0a7 | |
55377 | #define GDK_diaeresis 0x0a8 | |
55378 | #define GDK_copyright 0x0a9 | |
55379 | #define GDK_ordfeminine 0x0aa | |
55380 | #define GDK_guillemotleft 0x0ab | |
55381 | #define GDK_notsign 0x0ac | |
55382 | #define GDK_hyphen 0x0ad | |
55383 | #define GDK_registered 0x0ae | |
55384 | #define GDK_macron 0x0af | |
55385 | #define GDK_degree 0x0b0 | |
55386 | #define GDK_plusminus 0x0b1 | |
55387 | #define GDK_twosuperior 0x0b2 | |
55388 | #define GDK_threesuperior 0x0b3 | |
55389 | #define GDK_acute 0x0b4 | |
55390 | #define GDK_mu 0x0b5 | |
55391 | #define GDK_paragraph 0x0b6 | |
55392 | #define GDK_periodcentered 0x0b7 | |
55393 | #define GDK_cedilla 0x0b8 | |
55394 | #define GDK_onesuperior 0x0b9 | |
55395 | #define GDK_masculine 0x0ba | |
55396 | #define GDK_guillemotright 0x0bb | |
55397 | #define GDK_onequarter 0x0bc | |
55398 | #define GDK_onehalf 0x0bd | |
55399 | #define GDK_threequarters 0x0be | |
55400 | #define GDK_questiondown 0x0bf | |
55401 | #define GDK_Agrave 0x0c0 | |
55402 | #define GDK_Aacute 0x0c1 | |
55403 | #define GDK_Acircumflex 0x0c2 | |
55404 | #define GDK_Atilde 0x0c3 | |
55405 | #define GDK_Adiaeresis 0x0c4 | |
55406 | #define GDK_Aring 0x0c5 | |
55407 | #define GDK_AE 0x0c6 | |
55408 | #define GDK_Ccedilla 0x0c7 | |
55409 | #define GDK_Egrave 0x0c8 | |
55410 | #define GDK_Eacute 0x0c9 | |
55411 | #define GDK_Ecircumflex 0x0ca | |
55412 | #define GDK_Ediaeresis 0x0cb | |
55413 | #define GDK_Igrave 0x0cc | |
55414 | #define GDK_Iacute 0x0cd | |
55415 | #define GDK_Icircumflex 0x0ce | |
55416 | #define GDK_Idiaeresis 0x0cf | |
55417 | #define GDK_ETH 0x0d0 | |
55418 | #define GDK_Eth 0x0d0 | |
55419 | #define GDK_Ntilde 0x0d1 | |
55420 | #define GDK_Ograve 0x0d2 | |
55421 | #define GDK_Oacute 0x0d3 | |
55422 | #define GDK_Ocircumflex 0x0d4 | |
55423 | #define GDK_Otilde 0x0d5 | |
55424 | #define GDK_Odiaeresis 0x0d6 | |
55425 | #define GDK_multiply 0x0d7 | |
55426 | #define GDK_Ooblique 0x0d8 | |
55427 | #define GDK_Ugrave 0x0d9 | |
55428 | #define GDK_Uacute 0x0da | |
55429 | #define GDK_Ucircumflex 0x0db | |
55430 | #define GDK_Udiaeresis 0x0dc | |
55431 | #define GDK_Yacute 0x0dd | |
55432 | #define GDK_THORN 0x0de | |
55433 | #define GDK_Thorn 0x0de | |
55434 | #define GDK_ssharp 0x0df | |
55435 | #define GDK_agrave 0x0e0 | |
55436 | #define GDK_aacute 0x0e1 | |
55437 | #define GDK_acircumflex 0x0e2 | |
55438 | #define GDK_atilde 0x0e3 | |
55439 | #define GDK_adiaeresis 0x0e4 | |
55440 | #define GDK_aring 0x0e5 | |
55441 | #define GDK_ae 0x0e6 | |
55442 | #define GDK_ccedilla 0x0e7 | |
55443 | #define GDK_egrave 0x0e8 | |
55444 | #define GDK_eacute 0x0e9 | |
55445 | #define GDK_ecircumflex 0x0ea | |
55446 | #define GDK_ediaeresis 0x0eb | |
55447 | #define GDK_igrave 0x0ec | |
55448 | #define GDK_iacute 0x0ed | |
55449 | #define GDK_icircumflex 0x0ee | |
55450 | #define GDK_idiaeresis 0x0ef | |
55451 | #define GDK_eth 0x0f0 | |
55452 | #define GDK_ntilde 0x0f1 | |
55453 | #define GDK_ograve 0x0f2 | |
55454 | #define GDK_oacute 0x0f3 | |
55455 | #define GDK_ocircumflex 0x0f4 | |
55456 | #define GDK_otilde 0x0f5 | |
55457 | #define GDK_odiaeresis 0x0f6 | |
55458 | #define GDK_division 0x0f7 | |
55459 | #define GDK_oslash 0x0f8 | |
55460 | #define GDK_ugrave 0x0f9 | |
55461 | #define GDK_uacute 0x0fa | |
55462 | #define GDK_ucircumflex 0x0fb | |
55463 | #define GDK_udiaeresis 0x0fc | |
55464 | #define GDK_yacute 0x0fd | |
55465 | #define GDK_thorn 0x0fe | |
55466 | #define GDK_ydiaeresis 0x0ff | |
55467 | #define GDK_Aogonek 0x1a1 | |
55468 | #define GDK_breve 0x1a2 | |
55469 | #define GDK_Lstroke 0x1a3 | |
55470 | #define GDK_Lcaron 0x1a5 | |
55471 | #define GDK_Sacute 0x1a6 | |
55472 | #define GDK_Scaron 0x1a9 | |
55473 | #define GDK_Scedilla 0x1aa | |
55474 | #define GDK_Tcaron 0x1ab | |
55475 | #define GDK_Zacute 0x1ac | |
55476 | #define GDK_Zcaron 0x1ae | |
55477 | #define GDK_Zabovedot 0x1af | |
55478 | #define GDK_aogonek 0x1b1 | |
55479 | #define GDK_ogonek 0x1b2 | |
55480 | #define GDK_lstroke 0x1b3 | |
55481 | #define GDK_lcaron 0x1b5 | |
55482 | #define GDK_sacute 0x1b6 | |
55483 | #define GDK_caron 0x1b7 | |
55484 | #define GDK_scaron 0x1b9 | |
55485 | #define GDK_scedilla 0x1ba | |
55486 | #define GDK_tcaron 0x1bb | |
55487 | #define GDK_zacute 0x1bc | |
55488 | #define GDK_doubleacute 0x1bd | |
55489 | #define GDK_zcaron 0x1be | |
55490 | #define GDK_zabovedot 0x1bf | |
55491 | #define GDK_Racute 0x1c0 | |
55492 | #define GDK_Abreve 0x1c3 | |
55493 | #define GDK_Lacute 0x1c5 | |
55494 | #define GDK_Cacute 0x1c6 | |
55495 | #define GDK_Ccaron 0x1c8 | |
55496 | #define GDK_Eogonek 0x1ca | |
55497 | #define GDK_Ecaron 0x1cc | |
55498 | #define GDK_Dcaron 0x1cf | |
55499 | #define GDK_Dstroke 0x1d0 | |
55500 | #define GDK_Nacute 0x1d1 | |
55501 | #define GDK_Ncaron 0x1d2 | |
55502 | #define GDK_Odoubleacute 0x1d5 | |
55503 | #define GDK_Rcaron 0x1d8 | |
55504 | #define GDK_Uring 0x1d9 | |
55505 | #define GDK_Udoubleacute 0x1db | |
55506 | #define GDK_Tcedilla 0x1de | |
55507 | #define GDK_racute 0x1e0 | |
55508 | #define GDK_abreve 0x1e3 | |
55509 | #define GDK_lacute 0x1e5 | |
55510 | #define GDK_cacute 0x1e6 | |
55511 | #define GDK_ccaron 0x1e8 | |
55512 | #define GDK_eogonek 0x1ea | |
55513 | #define GDK_ecaron 0x1ec | |
55514 | #define GDK_dcaron 0x1ef | |
55515 | #define GDK_dstroke 0x1f0 | |
55516 | #define GDK_nacute 0x1f1 | |
55517 | #define GDK_ncaron 0x1f2 | |
55518 | #define GDK_odoubleacute 0x1f5 | |
55519 | #define GDK_udoubleacute 0x1fb | |
55520 | #define GDK_rcaron 0x1f8 | |
55521 | #define GDK_uring 0x1f9 | |
55522 | #define GDK_tcedilla 0x1fe | |
55523 | #define GDK_abovedot 0x1ff | |
55524 | #define GDK_Hstroke 0x2a1 | |
55525 | #define GDK_Hcircumflex 0x2a6 | |
55526 | #define GDK_Iabovedot 0x2a9 | |
55527 | #define GDK_Gbreve 0x2ab | |
55528 | #define GDK_Jcircumflex 0x2ac | |
55529 | #define GDK_hstroke 0x2b1 | |
55530 | #define GDK_hcircumflex 0x2b6 | |
55531 | #define GDK_idotless 0x2b9 | |
55532 | #define GDK_gbreve 0x2bb | |
55533 | #define GDK_jcircumflex 0x2bc | |
55534 | #define GDK_Cabovedot 0x2c5 | |
55535 | #define GDK_Ccircumflex 0x2c6 | |
55536 | #define GDK_Gabovedot 0x2d5 | |
55537 | #define GDK_Gcircumflex 0x2d8 | |
55538 | #define GDK_Ubreve 0x2dd | |
55539 | #define GDK_Scircumflex 0x2de | |
55540 | #define GDK_cabovedot 0x2e5 | |
55541 | #define GDK_ccircumflex 0x2e6 | |
55542 | #define GDK_gabovedot 0x2f5 | |
55543 | #define GDK_gcircumflex 0x2f8 | |
55544 | #define GDK_ubreve 0x2fd | |
55545 | #define GDK_scircumflex 0x2fe | |
55546 | #define GDK_kra 0x3a2 | |
55547 | #define GDK_kappa 0x3a2 | |
55548 | #define GDK_Rcedilla 0x3a3 | |
55549 | #define GDK_Itilde 0x3a5 | |
55550 | #define GDK_Lcedilla 0x3a6 | |
55551 | #define GDK_Emacron 0x3aa | |
55552 | #define GDK_Gcedilla 0x3ab | |
55553 | #define GDK_Tslash 0x3ac | |
55554 | #define GDK_rcedilla 0x3b3 | |
55555 | #define GDK_itilde 0x3b5 | |
55556 | #define GDK_lcedilla 0x3b6 | |
55557 | #define GDK_emacron 0x3ba | |
55558 | #define GDK_gcedilla 0x3bb | |
55559 | #define GDK_tslash 0x3bc | |
55560 | #define GDK_ENG 0x3bd | |
55561 | #define GDK_eng 0x3bf | |
55562 | #define GDK_Amacron 0x3c0 | |
55563 | #define GDK_Iogonek 0x3c7 | |
55564 | #define GDK_Eabovedot 0x3cc | |
55565 | #define GDK_Imacron 0x3cf | |
55566 | #define GDK_Ncedilla 0x3d1 | |
55567 | #define GDK_Omacron 0x3d2 | |
55568 | #define GDK_Kcedilla 0x3d3 | |
55569 | #define GDK_Uogonek 0x3d9 | |
55570 | #define GDK_Utilde 0x3dd | |
55571 | #define GDK_Umacron 0x3de | |
55572 | #define GDK_amacron 0x3e0 | |
55573 | #define GDK_iogonek 0x3e7 | |
55574 | #define GDK_eabovedot 0x3ec | |
55575 | #define GDK_imacron 0x3ef | |
55576 | #define GDK_ncedilla 0x3f1 | |
55577 | #define GDK_omacron 0x3f2 | |
55578 | #define GDK_kcedilla 0x3f3 | |
55579 | #define GDK_uogonek 0x3f9 | |
55580 | #define GDK_utilde 0x3fd | |
55581 | #define GDK_umacron 0x3fe | |
55582 | #define GDK_OE 0x13bc | |
55583 | #define GDK_oe 0x13bd | |
55584 | #define GDK_Ydiaeresis 0x13be | |
55585 | #define GDK_overline 0x47e | |
55586 | #define GDK_kana_fullstop 0x4a1 | |
55587 | #define GDK_kana_openingbracket 0x4a2 | |
55588 | #define GDK_kana_closingbracket 0x4a3 | |
55589 | #define GDK_kana_comma 0x4a4 | |
55590 | #define GDK_kana_conjunctive 0x4a5 | |
55591 | #define GDK_kana_middledot 0x4a5 | |
55592 | #define GDK_kana_WO 0x4a6 | |
55593 | #define GDK_kana_a 0x4a7 | |
55594 | #define GDK_kana_i 0x4a8 | |
55595 | #define GDK_kana_u 0x4a9 | |
55596 | #define GDK_kana_e 0x4aa | |
55597 | #define GDK_kana_o 0x4ab | |
55598 | #define GDK_kana_ya 0x4ac | |
55599 | #define GDK_kana_yu 0x4ad | |
55600 | #define GDK_kana_yo 0x4ae | |
55601 | #define GDK_kana_tsu 0x4af | |
55602 | #define GDK_kana_tu 0x4af | |
55603 | #define GDK_prolongedsound 0x4b0 | |
55604 | #define GDK_kana_A 0x4b1 | |
55605 | #define GDK_kana_I 0x4b2 | |
55606 | #define GDK_kana_U 0x4b3 | |
55607 | #define GDK_kana_E 0x4b4 | |
55608 | #define GDK_kana_O 0x4b5 | |
55609 | #define GDK_kana_KA 0x4b6 | |
55610 | #define GDK_kana_KI 0x4b7 | |
55611 | #define GDK_kana_KU 0x4b8 | |
55612 | #define GDK_kana_KE 0x4b9 | |
55613 | #define GDK_kana_KO 0x4ba | |
55614 | #define GDK_kana_SA 0x4bb | |
55615 | #define GDK_kana_SHI 0x4bc | |
55616 | #define GDK_kana_SU 0x4bd | |
55617 | #define GDK_kana_SE 0x4be | |
55618 | #define GDK_kana_SO 0x4bf | |
55619 | #define GDK_kana_TA 0x4c0 | |
55620 | #define GDK_kana_CHI 0x4c1 | |
55621 | #define GDK_kana_TI 0x4c1 | |
55622 | #define GDK_kana_TSU 0x4c2 | |
55623 | #define GDK_kana_TU 0x4c2 | |
55624 | #define GDK_kana_TE 0x4c3 | |
55625 | #define GDK_kana_TO 0x4c4 | |
55626 | #define GDK_kana_NA 0x4c5 | |
55627 | #define GDK_kana_NI 0x4c6 | |
55628 | #define GDK_kana_NU 0x4c7 | |
55629 | #define GDK_kana_NE 0x4c8 | |
55630 | #define GDK_kana_NO 0x4c9 | |
55631 | #define GDK_kana_HA 0x4ca | |
55632 | #define GDK_kana_HI 0x4cb | |
55633 | #define GDK_kana_FU 0x4cc | |
55634 | #define GDK_kana_HU 0x4cc | |
55635 | #define GDK_kana_HE 0x4cd | |
55636 | #define GDK_kana_HO 0x4ce | |
55637 | #define GDK_kana_MA 0x4cf | |
55638 | #define GDK_kana_MI 0x4d0 | |
55639 | #define GDK_kana_MU 0x4d1 | |
55640 | #define GDK_kana_ME 0x4d2 | |
55641 | #define GDK_kana_MO 0x4d3 | |
55642 | #define GDK_kana_YA 0x4d4 | |
55643 | #define GDK_kana_YU 0x4d5 | |
55644 | #define GDK_kana_YO 0x4d6 | |
55645 | #define GDK_kana_RA 0x4d7 | |
55646 | #define GDK_kana_RI 0x4d8 | |
55647 | #define GDK_kana_RU 0x4d9 | |
55648 | #define GDK_kana_RE 0x4da | |
55649 | #define GDK_kana_RO 0x4db | |
55650 | #define GDK_kana_WA 0x4dc | |
55651 | #define GDK_kana_N 0x4dd | |
55652 | #define GDK_voicedsound 0x4de | |
55653 | #define GDK_semivoicedsound 0x4df | |
55654 | #define GDK_kana_switch 0xFF7E | |
55655 | #define GDK_Arabic_comma 0x5ac | |
55656 | #define GDK_Arabic_semicolon 0x5bb | |
55657 | #define GDK_Arabic_question_mark 0x5bf | |
55658 | #define GDK_Arabic_hamza 0x5c1 | |
55659 | #define GDK_Arabic_maddaonalef 0x5c2 | |
55660 | #define GDK_Arabic_hamzaonalef 0x5c3 | |
55661 | #define GDK_Arabic_hamzaonwaw 0x5c4 | |
55662 | #define GDK_Arabic_hamzaunderalef 0x5c5 | |
55663 | #define GDK_Arabic_hamzaonyeh 0x5c6 | |
55664 | #define GDK_Arabic_alef 0x5c7 | |
55665 | #define GDK_Arabic_beh 0x5c8 | |
55666 | #define GDK_Arabic_tehmarbuta 0x5c9 | |
55667 | #define GDK_Arabic_teh 0x5ca | |
55668 | #define GDK_Arabic_theh 0x5cb | |
55669 | #define GDK_Arabic_jeem 0x5cc | |
55670 | #define GDK_Arabic_hah 0x5cd | |
55671 | #define GDK_Arabic_khah 0x5ce | |
55672 | #define GDK_Arabic_dal 0x5cf | |
55673 | #define GDK_Arabic_thal 0x5d0 | |
55674 | #define GDK_Arabic_ra 0x5d1 | |
55675 | #define GDK_Arabic_zain 0x5d2 | |
55676 | #define GDK_Arabic_seen 0x5d3 | |
55677 | #define GDK_Arabic_sheen 0x5d4 | |
55678 | #define GDK_Arabic_sad 0x5d5 | |
55679 | #define GDK_Arabic_dad 0x5d6 | |
55680 | #define GDK_Arabic_tah 0x5d7 | |
55681 | #define GDK_Arabic_zah 0x5d8 | |
55682 | #define GDK_Arabic_ain 0x5d9 | |
55683 | #define GDK_Arabic_ghain 0x5da | |
55684 | #define GDK_Arabic_tatweel 0x5e0 | |
55685 | #define GDK_Arabic_feh 0x5e1 | |
55686 | #define GDK_Arabic_qaf 0x5e2 | |
55687 | #define GDK_Arabic_kaf 0x5e3 | |
55688 | #define GDK_Arabic_lam 0x5e4 | |
55689 | #define GDK_Arabic_meem 0x5e5 | |
55690 | #define GDK_Arabic_noon 0x5e6 | |
55691 | #define GDK_Arabic_ha 0x5e7 | |
55692 | #define GDK_Arabic_heh 0x5e7 | |
55693 | #define GDK_Arabic_waw 0x5e8 | |
55694 | #define GDK_Arabic_alefmaksura 0x5e9 | |
55695 | #define GDK_Arabic_yeh 0x5ea | |
55696 | #define GDK_Arabic_fathatan 0x5eb | |
55697 | #define GDK_Arabic_dammatan 0x5ec | |
55698 | #define GDK_Arabic_kasratan 0x5ed | |
55699 | #define GDK_Arabic_fatha 0x5ee | |
55700 | #define GDK_Arabic_damma 0x5ef | |
55701 | #define GDK_Arabic_kasra 0x5f0 | |
55702 | #define GDK_Arabic_shadda 0x5f1 | |
55703 | #define GDK_Arabic_sukun 0x5f2 | |
55704 | #define GDK_Arabic_switch 0xFF7E | |
55705 | #define GDK_Serbian_dje 0x6a1 | |
55706 | #define GDK_Macedonia_gje 0x6a2 | |
55707 | #define GDK_Cyrillic_io 0x6a3 | |
55708 | #define GDK_Ukrainian_ie 0x6a4 | |
55709 | #define GDK_Ukranian_je 0x6a4 | |
55710 | #define GDK_Macedonia_dse 0x6a5 | |
55711 | #define GDK_Ukrainian_i 0x6a6 | |
55712 | #define GDK_Ukranian_i 0x6a6 | |
55713 | #define GDK_Ukrainian_yi 0x6a7 | |
55714 | #define GDK_Ukranian_yi 0x6a7 | |
55715 | #define GDK_Cyrillic_je 0x6a8 | |
55716 | #define GDK_Serbian_je 0x6a8 | |
55717 | #define GDK_Cyrillic_lje 0x6a9 | |
55718 | #define GDK_Serbian_lje 0x6a9 | |
55719 | #define GDK_Cyrillic_nje 0x6aa | |
55720 | #define GDK_Serbian_nje 0x6aa | |
55721 | #define GDK_Serbian_tshe 0x6ab | |
55722 | #define GDK_Macedonia_kje 0x6ac | |
55723 | #define GDK_Ukrainian_ghe_with_upturn 0x6ad | |
55724 | #define GDK_Byelorussian_shortu 0x6ae | |
55725 | #define GDK_Cyrillic_dzhe 0x6af | |
55726 | #define GDK_Serbian_dze 0x6af | |
55727 | #define GDK_numerosign 0x6b0 | |
55728 | #define GDK_Serbian_DJE 0x6b1 | |
55729 | #define GDK_Macedonia_GJE 0x6b2 | |
55730 | #define GDK_Cyrillic_IO 0x6b3 | |
55731 | #define GDK_Ukrainian_IE 0x6b4 | |
55732 | #define GDK_Ukranian_JE 0x6b4 | |
55733 | #define GDK_Macedonia_DSE 0x6b5 | |
55734 | #define GDK_Ukrainian_I 0x6b6 | |
55735 | #define GDK_Ukranian_I 0x6b6 | |
55736 | #define GDK_Ukrainian_YI 0x6b7 | |
55737 | #define GDK_Ukranian_YI 0x6b7 | |
55738 | #define GDK_Cyrillic_JE 0x6b8 | |
55739 | #define GDK_Serbian_JE 0x6b8 | |
55740 | #define GDK_Cyrillic_LJE 0x6b9 | |
55741 | #define GDK_Serbian_LJE 0x6b9 | |
55742 | #define GDK_Cyrillic_NJE 0x6ba | |
55743 | #define GDK_Serbian_NJE 0x6ba | |
55744 | #define GDK_Serbian_TSHE 0x6bb | |
55745 | #define GDK_Macedonia_KJE 0x6bc | |
55746 | #define GDK_Ukrainian_GHE_WITH_UPTURN 0x6bd | |
55747 | #define GDK_Byelorussian_SHORTU 0x6be | |
55748 | #define GDK_Cyrillic_DZHE 0x6bf | |
55749 | #define GDK_Serbian_DZE 0x6bf | |
55750 | #define GDK_Cyrillic_yu 0x6c0 | |
55751 | #define GDK_Cyrillic_a 0x6c1 | |
55752 | #define GDK_Cyrillic_be 0x6c2 | |
55753 | #define GDK_Cyrillic_tse 0x6c3 | |
55754 | #define GDK_Cyrillic_de 0x6c4 | |
55755 | #define GDK_Cyrillic_ie 0x6c5 | |
55756 | #define GDK_Cyrillic_ef 0x6c6 | |
55757 | #define GDK_Cyrillic_ghe 0x6c7 | |
55758 | #define GDK_Cyrillic_ha 0x6c8 | |
55759 | #define GDK_Cyrillic_i 0x6c9 | |
55760 | #define GDK_Cyrillic_shorti 0x6ca | |
55761 | #define GDK_Cyrillic_ka 0x6cb | |
55762 | #define GDK_Cyrillic_el 0x6cc | |
55763 | #define GDK_Cyrillic_em 0x6cd | |
55764 | #define GDK_Cyrillic_en 0x6ce | |
55765 | #define GDK_Cyrillic_o 0x6cf | |
55766 | #define GDK_Cyrillic_pe 0x6d0 | |
55767 | #define GDK_Cyrillic_ya 0x6d1 | |
55768 | #define GDK_Cyrillic_er 0x6d2 | |
55769 | #define GDK_Cyrillic_es 0x6d3 | |
55770 | #define GDK_Cyrillic_te 0x6d4 | |
55771 | #define GDK_Cyrillic_u 0x6d5 | |
55772 | #define GDK_Cyrillic_zhe 0x6d6 | |
55773 | #define GDK_Cyrillic_ve 0x6d7 | |
55774 | #define GDK_Cyrillic_softsign 0x6d8 | |
55775 | #define GDK_Cyrillic_yeru 0x6d9 | |
55776 | #define GDK_Cyrillic_ze 0x6da | |
55777 | #define GDK_Cyrillic_sha 0x6db | |
55778 | #define GDK_Cyrillic_e 0x6dc | |
55779 | #define GDK_Cyrillic_shcha 0x6dd | |
55780 | #define GDK_Cyrillic_che 0x6de | |
55781 | #define GDK_Cyrillic_hardsign 0x6df | |
55782 | #define GDK_Cyrillic_YU 0x6e0 | |
55783 | #define GDK_Cyrillic_A 0x6e1 | |
55784 | #define GDK_Cyrillic_BE 0x6e2 | |
55785 | #define GDK_Cyrillic_TSE 0x6e3 | |
55786 | #define GDK_Cyrillic_DE 0x6e4 | |
55787 | #define GDK_Cyrillic_IE 0x6e5 | |
55788 | #define GDK_Cyrillic_EF 0x6e6 | |
55789 | #define GDK_Cyrillic_GHE 0x6e7 | |
55790 | #define GDK_Cyrillic_HA 0x6e8 | |
55791 | #define GDK_Cyrillic_I 0x6e9 | |
55792 | #define GDK_Cyrillic_SHORTI 0x6ea | |
55793 | #define GDK_Cyrillic_KA 0x6eb | |
55794 | #define GDK_Cyrillic_EL 0x6ec | |
55795 | #define GDK_Cyrillic_EM 0x6ed | |
55796 | #define GDK_Cyrillic_EN 0x6ee | |
55797 | #define GDK_Cyrillic_O 0x6ef | |
55798 | #define GDK_Cyrillic_PE 0x6f0 | |
55799 | #define GDK_Cyrillic_YA 0x6f1 | |
55800 | #define GDK_Cyrillic_ER 0x6f2 | |
55801 | #define GDK_Cyrillic_ES 0x6f3 | |
55802 | #define GDK_Cyrillic_TE 0x6f4 | |
55803 | #define GDK_Cyrillic_U 0x6f5 | |
55804 | #define GDK_Cyrillic_ZHE 0x6f6 | |
55805 | #define GDK_Cyrillic_VE 0x6f7 | |
55806 | #define GDK_Cyrillic_SOFTSIGN 0x6f8 | |
55807 | #define GDK_Cyrillic_YERU 0x6f9 | |
55808 | #define GDK_Cyrillic_ZE 0x6fa | |
55809 | #define GDK_Cyrillic_SHA 0x6fb | |
55810 | #define GDK_Cyrillic_E 0x6fc | |
55811 | #define GDK_Cyrillic_SHCHA 0x6fd | |
55812 | #define GDK_Cyrillic_CHE 0x6fe | |
55813 | #define GDK_Cyrillic_HARDSIGN 0x6ff | |
55814 | #define GDK_Greek_ALPHAaccent 0x7a1 | |
55815 | #define GDK_Greek_EPSILONaccent 0x7a2 | |
55816 | #define GDK_Greek_ETAaccent 0x7a3 | |
55817 | #define GDK_Greek_IOTAaccent 0x7a4 | |
55818 | #define GDK_Greek_IOTAdieresis 0x7a5 | |
55819 | #define GDK_Greek_IOTAdiaeresis GDK_Greek_IOTAdieresis | |
55820 | #define GDK_Greek_OMICRONaccent 0x7a7 | |
55821 | #define GDK_Greek_UPSILONaccent 0x7a8 | |
55822 | #define GDK_Greek_UPSILONdieresis 0x7a9 | |
55823 | #define GDK_Greek_OMEGAaccent 0x7ab | |
55824 | #define GDK_Greek_accentdieresis 0x7ae | |
55825 | #define GDK_Greek_horizbar 0x7af | |
55826 | #define GDK_Greek_alphaaccent 0x7b1 | |
55827 | #define GDK_Greek_epsilonaccent 0x7b2 | |
55828 | #define GDK_Greek_etaaccent 0x7b3 | |
55829 | #define GDK_Greek_iotaaccent 0x7b4 | |
55830 | #define GDK_Greek_iotadieresis 0x7b5 | |
55831 | #define GDK_Greek_iotaaccentdieresis 0x7b6 | |
55832 | #define GDK_Greek_omicronaccent 0x7b7 | |
55833 | #define GDK_Greek_upsilonaccent 0x7b8 | |
55834 | #define GDK_Greek_upsilondieresis 0x7b9 | |
55835 | #define GDK_Greek_upsilonaccentdieresis 0x7ba | |
55836 | #define GDK_Greek_omegaaccent 0x7bb | |
55837 | #define GDK_Greek_ALPHA 0x7c1 | |
55838 | #define GDK_Greek_BETA 0x7c2 | |
55839 | #define GDK_Greek_GAMMA 0x7c3 | |
55840 | #define GDK_Greek_DELTA 0x7c4 | |
55841 | #define GDK_Greek_EPSILON 0x7c5 | |
55842 | #define GDK_Greek_ZETA 0x7c6 | |
55843 | #define GDK_Greek_ETA 0x7c7 | |
55844 | #define GDK_Greek_THETA 0x7c8 | |
55845 | #define GDK_Greek_IOTA 0x7c9 | |
55846 | #define GDK_Greek_KAPPA 0x7ca | |
55847 | #define GDK_Greek_LAMDA 0x7cb | |
55848 | #define GDK_Greek_LAMBDA 0x7cb | |
55849 | #define GDK_Greek_MU 0x7cc | |
55850 | #define GDK_Greek_NU 0x7cd | |
55851 | #define GDK_Greek_XI 0x7ce | |
55852 | #define GDK_Greek_OMICRON 0x7cf | |
55853 | #define GDK_Greek_PI 0x7d0 | |
55854 | #define GDK_Greek_RHO 0x7d1 | |
55855 | #define GDK_Greek_SIGMA 0x7d2 | |
55856 | #define GDK_Greek_TAU 0x7d4 | |
55857 | #define GDK_Greek_UPSILON 0x7d5 | |
55858 | #define GDK_Greek_PHI 0x7d6 | |
55859 | #define GDK_Greek_CHI 0x7d7 | |
55860 | #define GDK_Greek_PSI 0x7d8 | |
55861 | #define GDK_Greek_OMEGA 0x7d9 | |
55862 | #define GDK_Greek_alpha 0x7e1 | |
55863 | #define GDK_Greek_beta 0x7e2 | |
55864 | #define GDK_Greek_gamma 0x7e3 | |
55865 | #define GDK_Greek_delta 0x7e4 | |
55866 | #define GDK_Greek_epsilon 0x7e5 | |
55867 | #define GDK_Greek_zeta 0x7e6 | |
55868 | #define GDK_Greek_eta 0x7e7 | |
55869 | #define GDK_Greek_theta 0x7e8 | |
55870 | #define GDK_Greek_iota 0x7e9 | |
55871 | #define GDK_Greek_kappa 0x7ea | |
55872 | #define GDK_Greek_lamda 0x7eb | |
55873 | #define GDK_Greek_lambda 0x7eb | |
55874 | #define GDK_Greek_mu 0x7ec | |
55875 | #define GDK_Greek_nu 0x7ed | |
55876 | #define GDK_Greek_xi 0x7ee | |
55877 | #define GDK_Greek_omicron 0x7ef | |
55878 | #define GDK_Greek_pi 0x7f0 | |
55879 | #define GDK_Greek_rho 0x7f1 | |
55880 | #define GDK_Greek_sigma 0x7f2 | |
55881 | #define GDK_Greek_finalsmallsigma 0x7f3 | |
55882 | #define GDK_Greek_tau 0x7f4 | |
55883 | #define GDK_Greek_upsilon 0x7f5 | |
55884 | #define GDK_Greek_phi 0x7f6 | |
55885 | #define GDK_Greek_chi 0x7f7 | |
55886 | #define GDK_Greek_psi 0x7f8 | |
55887 | #define GDK_Greek_omega 0x7f9 | |
55888 | #define GDK_Greek_switch 0xFF7E | |
55889 | #define GDK_leftradical 0x8a1 | |
55890 | #define GDK_topleftradical 0x8a2 | |
55891 | #define GDK_horizconnector 0x8a3 | |
55892 | #define GDK_topintegral 0x8a4 | |
55893 | #define GDK_botintegral 0x8a5 | |
55894 | #define GDK_vertconnector 0x8a6 | |
55895 | #define GDK_topleftsqbracket 0x8a7 | |
55896 | #define GDK_botleftsqbracket 0x8a8 | |
55897 | #define GDK_toprightsqbracket 0x8a9 | |
55898 | #define GDK_botrightsqbracket 0x8aa | |
55899 | #define GDK_topleftparens 0x8ab | |
55900 | #define GDK_botleftparens 0x8ac | |
55901 | #define GDK_toprightparens 0x8ad | |
55902 | #define GDK_botrightparens 0x8ae | |
55903 | #define GDK_leftmiddlecurlybrace 0x8af | |
55904 | #define GDK_rightmiddlecurlybrace 0x8b0 | |
55905 | #define GDK_topleftsummation 0x8b1 | |
55906 | #define GDK_botleftsummation 0x8b2 | |
55907 | #define GDK_topvertsummationconnector 0x8b3 | |
55908 | #define GDK_botvertsummationconnector 0x8b4 | |
55909 | #define GDK_toprightsummation 0x8b5 | |
55910 | #define GDK_botrightsummation 0x8b6 | |
55911 | #define GDK_rightmiddlesummation 0x8b7 | |
55912 | #define GDK_lessthanequal 0x8bc | |
55913 | #define GDK_notequal 0x8bd | |
55914 | #define GDK_greaterthanequal 0x8be | |
55915 | #define GDK_integral 0x8bf | |
55916 | #define GDK_therefore 0x8c0 | |
55917 | #define GDK_variation 0x8c1 | |
55918 | #define GDK_infinity 0x8c2 | |
55919 | #define GDK_nabla 0x8c5 | |
55920 | #define GDK_approximate 0x8c8 | |
55921 | #define GDK_similarequal 0x8c9 | |
55922 | #define GDK_ifonlyif 0x8cd | |
55923 | #define GDK_implies 0x8ce | |
55924 | #define GDK_identical 0x8cf | |
55925 | #define GDK_radical 0x8d6 | |
55926 | #define GDK_includedin 0x8da | |
55927 | #define GDK_includes 0x8db | |
55928 | #define GDK_intersection 0x8dc | |
55929 | #define GDK_union 0x8dd | |
55930 | #define GDK_logicaland 0x8de | |
55931 | #define GDK_logicalor 0x8df | |
55932 | #define GDK_partialderivative 0x8ef | |
55933 | #define GDK_function 0x8f6 | |
55934 | #define GDK_leftarrow 0x8fb | |
55935 | #define GDK_uparrow 0x8fc | |
55936 | #define GDK_rightarrow 0x8fd | |
55937 | #define GDK_downarrow 0x8fe | |
55938 | #define GDK_blank 0x9df | |
55939 | #define GDK_soliddiamond 0x9e0 | |
55940 | #define GDK_checkerboard 0x9e1 | |
55941 | #define GDK_ht 0x9e2 | |
55942 | #define GDK_ff 0x9e3 | |
55943 | #define GDK_cr 0x9e4 | |
55944 | #define GDK_lf 0x9e5 | |
55945 | #define GDK_nl 0x9e8 | |
55946 | #define GDK_vt 0x9e9 | |
55947 | #define GDK_lowrightcorner 0x9ea | |
55948 | #define GDK_uprightcorner 0x9eb | |
55949 | #define GDK_upleftcorner 0x9ec | |
55950 | #define GDK_lowleftcorner 0x9ed | |
55951 | #define GDK_crossinglines 0x9ee | |
55952 | #define GDK_horizlinescan1 0x9ef | |
55953 | #define GDK_horizlinescan3 0x9f0 | |
55954 | #define GDK_horizlinescan5 0x9f1 | |
55955 | #define GDK_horizlinescan7 0x9f2 | |
55956 | #define GDK_horizlinescan9 0x9f3 | |
55957 | #define GDK_leftt 0x9f4 | |
55958 | #define GDK_rightt 0x9f5 | |
55959 | #define GDK_bott 0x9f6 | |
55960 | #define GDK_topt 0x9f7 | |
55961 | #define GDK_vertbar 0x9f8 | |
55962 | #define GDK_emspace 0xaa1 | |
55963 | #define GDK_enspace 0xaa2 | |
55964 | #define GDK_em3space 0xaa3 | |
55965 | #define GDK_em4space 0xaa4 | |
55966 | #define GDK_digitspace 0xaa5 | |
55967 | #define GDK_punctspace 0xaa6 | |
55968 | #define GDK_thinspace 0xaa7 | |
55969 | #define GDK_hairspace 0xaa8 | |
55970 | #define GDK_emdash 0xaa9 | |
55971 | #define GDK_endash 0xaaa | |
55972 | #define GDK_signifblank 0xaac | |
55973 | #define GDK_ellipsis 0xaae | |
55974 | #define GDK_doubbaselinedot 0xaaf | |
55975 | #define GDK_onethird 0xab0 | |
55976 | #define GDK_twothirds 0xab1 | |
55977 | #define GDK_onefifth 0xab2 | |
55978 | #define GDK_twofifths 0xab3 | |
55979 | #define GDK_threefifths 0xab4 | |
55980 | #define GDK_fourfifths 0xab5 | |
55981 | #define GDK_onesixth 0xab6 | |
55982 | #define GDK_fivesixths 0xab7 | |
55983 | #define GDK_careof 0xab8 | |
55984 | #define GDK_figdash 0xabb | |
55985 | #define GDK_leftanglebracket 0xabc | |
55986 | #define GDK_decimalpoint 0xabd | |
55987 | #define GDK_rightanglebracket 0xabe | |
55988 | #define GDK_marker 0xabf | |
55989 | #define GDK_oneeighth 0xac3 | |
55990 | #define GDK_threeeighths 0xac4 | |
55991 | #define GDK_fiveeighths 0xac5 | |
55992 | #define GDK_seveneighths 0xac6 | |
55993 | #define GDK_trademark 0xac9 | |
55994 | #define GDK_signaturemark 0xaca | |
55995 | #define GDK_trademarkincircle 0xacb | |
55996 | #define GDK_leftopentriangle 0xacc | |
55997 | #define GDK_rightopentriangle 0xacd | |
55998 | #define GDK_emopencircle 0xace | |
55999 | #define GDK_emopenrectangle 0xacf | |
56000 | #define GDK_leftsinglequotemark 0xad0 | |
56001 | #define GDK_rightsinglequotemark 0xad1 | |
56002 | #define GDK_leftdoublequotemark 0xad2 | |
56003 | #define GDK_rightdoublequotemark 0xad3 | |
56004 | #define GDK_prescription 0xad4 | |
56005 | #define GDK_minutes 0xad6 | |
56006 | #define GDK_seconds 0xad7 | |
56007 | #define GDK_latincross 0xad9 | |
56008 | #define GDK_hexagram 0xada | |
56009 | #define GDK_filledrectbullet 0xadb | |
56010 | #define GDK_filledlefttribullet 0xadc | |
56011 | #define GDK_filledrighttribullet 0xadd | |
56012 | #define GDK_emfilledcircle 0xade | |
56013 | #define GDK_emfilledrect 0xadf | |
56014 | #define GDK_enopencircbullet 0xae0 | |
56015 | #define GDK_enopensquarebullet 0xae1 | |
56016 | #define GDK_openrectbullet 0xae2 | |
56017 | #define GDK_opentribulletup 0xae3 | |
56018 | #define GDK_opentribulletdown 0xae4 | |
56019 | #define GDK_openstar 0xae5 | |
56020 | #define GDK_enfilledcircbullet 0xae6 | |
56021 | #define GDK_enfilledsqbullet 0xae7 | |
56022 | #define GDK_filledtribulletup 0xae8 | |
56023 | #define GDK_filledtribulletdown 0xae9 | |
56024 | #define GDK_leftpointer 0xaea | |
56025 | #define GDK_rightpointer 0xaeb | |
56026 | #define GDK_club 0xaec | |
56027 | #define GDK_diamond 0xaed | |
56028 | #define GDK_heart 0xaee | |
56029 | #define GDK_maltesecross 0xaf0 | |
56030 | #define GDK_dagger 0xaf1 | |
56031 | #define GDK_doubledagger 0xaf2 | |
56032 | #define GDK_checkmark 0xaf3 | |
56033 | #define GDK_ballotcross 0xaf4 | |
56034 | #define GDK_musicalsharp 0xaf5 | |
56035 | #define GDK_musicalflat 0xaf6 | |
56036 | #define GDK_malesymbol 0xaf7 | |
56037 | #define GDK_femalesymbol 0xaf8 | |
56038 | #define GDK_telephone 0xaf9 | |
56039 | #define GDK_telephonerecorder 0xafa | |
56040 | #define GDK_phonographcopyright 0xafb | |
56041 | #define GDK_caret 0xafc | |
56042 | #define GDK_singlelowquotemark 0xafd | |
56043 | #define GDK_doublelowquotemark 0xafe | |
56044 | #define GDK_cursor 0xaff | |
56045 | #define GDK_leftcaret 0xba3 | |
56046 | #define GDK_rightcaret 0xba6 | |
56047 | #define GDK_downcaret 0xba8 | |
56048 | #define GDK_upcaret 0xba9 | |
56049 | #define GDK_overbar 0xbc0 | |
56050 | #define GDK_downtack 0xbc2 | |
56051 | #define GDK_upshoe 0xbc3 | |
56052 | #define GDK_downstile 0xbc4 | |
56053 | #define GDK_underbar 0xbc6 | |
56054 | #define GDK_jot 0xbca | |
56055 | #define GDK_quad 0xbcc | |
56056 | #define GDK_uptack 0xbce | |
56057 | #define GDK_circle 0xbcf | |
56058 | #define GDK_upstile 0xbd3 | |
56059 | #define GDK_downshoe 0xbd6 | |
56060 | #define GDK_rightshoe 0xbd8 | |
56061 | #define GDK_leftshoe 0xbda | |
56062 | #define GDK_lefttack 0xbdc | |
56063 | #define GDK_righttack 0xbfc | |
56064 | #define GDK_hebrew_doublelowline 0xcdf | |
56065 | #define GDK_hebrew_aleph 0xce0 | |
56066 | #define GDK_hebrew_bet 0xce1 | |
56067 | #define GDK_hebrew_beth 0xce1 | |
56068 | #define GDK_hebrew_gimel 0xce2 | |
56069 | #define GDK_hebrew_gimmel 0xce2 | |
56070 | #define GDK_hebrew_dalet 0xce3 | |
56071 | #define GDK_hebrew_daleth 0xce3 | |
56072 | #define GDK_hebrew_he 0xce4 | |
56073 | #define GDK_hebrew_waw 0xce5 | |
56074 | #define GDK_hebrew_zain 0xce6 | |
56075 | #define GDK_hebrew_zayin 0xce6 | |
56076 | #define GDK_hebrew_chet 0xce7 | |
56077 | #define GDK_hebrew_het 0xce7 | |
56078 | #define GDK_hebrew_tet 0xce8 | |
56079 | #define GDK_hebrew_teth 0xce8 | |
56080 | #define GDK_hebrew_yod 0xce9 | |
56081 | #define GDK_hebrew_finalkaph 0xcea | |
56082 | #define GDK_hebrew_kaph 0xceb | |
56083 | #define GDK_hebrew_lamed 0xcec | |
56084 | #define GDK_hebrew_finalmem 0xced | |
56085 | #define GDK_hebrew_mem 0xcee | |
56086 | #define GDK_hebrew_finalnun 0xcef | |
56087 | #define GDK_hebrew_nun 0xcf0 | |
56088 | #define GDK_hebrew_samech 0xcf1 | |
56089 | #define GDK_hebrew_samekh 0xcf1 | |
56090 | #define GDK_hebrew_ayin 0xcf2 | |
56091 | #define GDK_hebrew_finalpe 0xcf3 | |
56092 | #define GDK_hebrew_pe 0xcf4 | |
56093 | #define GDK_hebrew_finalzade 0xcf5 | |
56094 | #define GDK_hebrew_finalzadi 0xcf5 | |
56095 | #define GDK_hebrew_zade 0xcf6 | |
56096 | #define GDK_hebrew_zadi 0xcf6 | |
56097 | #define GDK_hebrew_qoph 0xcf7 | |
56098 | #define GDK_hebrew_kuf 0xcf7 | |
56099 | #define GDK_hebrew_resh 0xcf8 | |
56100 | #define GDK_hebrew_shin 0xcf9 | |
56101 | #define GDK_hebrew_taw 0xcfa | |
56102 | #define GDK_hebrew_taf 0xcfa | |
56103 | #define GDK_Hebrew_switch 0xFF7E | |
56104 | #define GDK_Thai_kokai 0xda1 | |
56105 | #define GDK_Thai_khokhai 0xda2 | |
56106 | #define GDK_Thai_khokhuat 0xda3 | |
56107 | #define GDK_Thai_khokhwai 0xda4 | |
56108 | #define GDK_Thai_khokhon 0xda5 | |
56109 | #define GDK_Thai_khorakhang 0xda6 | |
56110 | #define GDK_Thai_ngongu 0xda7 | |
56111 | #define GDK_Thai_chochan 0xda8 | |
56112 | #define GDK_Thai_choching 0xda9 | |
56113 | #define GDK_Thai_chochang 0xdaa | |
56114 | #define GDK_Thai_soso 0xdab | |
56115 | #define GDK_Thai_chochoe 0xdac | |
56116 | #define GDK_Thai_yoying 0xdad | |
56117 | #define GDK_Thai_dochada 0xdae | |
56118 | #define GDK_Thai_topatak 0xdaf | |
56119 | #define GDK_Thai_thothan 0xdb0 | |
56120 | #define GDK_Thai_thonangmontho 0xdb1 | |
56121 | #define GDK_Thai_thophuthao 0xdb2 | |
56122 | #define GDK_Thai_nonen 0xdb3 | |
56123 | #define GDK_Thai_dodek 0xdb4 | |
56124 | #define GDK_Thai_totao 0xdb5 | |
56125 | #define GDK_Thai_thothung 0xdb6 | |
56126 | #define GDK_Thai_thothahan 0xdb7 | |
56127 | #define GDK_Thai_thothong 0xdb8 | |
56128 | #define GDK_Thai_nonu 0xdb9 | |
56129 | #define GDK_Thai_bobaimai 0xdba | |
56130 | #define GDK_Thai_popla 0xdbb | |
56131 | #define GDK_Thai_phophung 0xdbc | |
56132 | #define GDK_Thai_fofa 0xdbd | |
56133 | #define GDK_Thai_phophan 0xdbe | |
56134 | #define GDK_Thai_fofan 0xdbf | |
56135 | #define GDK_Thai_phosamphao 0xdc0 | |
56136 | #define GDK_Thai_moma 0xdc1 | |
56137 | #define GDK_Thai_yoyak 0xdc2 | |
56138 | #define GDK_Thai_rorua 0xdc3 | |
56139 | #define GDK_Thai_ru 0xdc4 | |
56140 | #define GDK_Thai_loling 0xdc5 | |
56141 | #define GDK_Thai_lu 0xdc6 | |
56142 | #define GDK_Thai_wowaen 0xdc7 | |
56143 | #define GDK_Thai_sosala 0xdc8 | |
56144 | #define GDK_Thai_sorusi 0xdc9 | |
56145 | #define GDK_Thai_sosua 0xdca | |
56146 | #define GDK_Thai_hohip 0xdcb | |
56147 | #define GDK_Thai_lochula 0xdcc | |
56148 | #define GDK_Thai_oang 0xdcd | |
56149 | #define GDK_Thai_honokhuk 0xdce | |
56150 | #define GDK_Thai_paiyannoi 0xdcf | |
56151 | #define GDK_Thai_saraa 0xdd0 | |
56152 | #define GDK_Thai_maihanakat 0xdd1 | |
56153 | #define GDK_Thai_saraaa 0xdd2 | |
56154 | #define GDK_Thai_saraam 0xdd3 | |
56155 | #define GDK_Thai_sarai 0xdd4 | |
56156 | #define GDK_Thai_saraii 0xdd5 | |
56157 | #define GDK_Thai_saraue 0xdd6 | |
56158 | #define GDK_Thai_sarauee 0xdd7 | |
56159 | #define GDK_Thai_sarau 0xdd8 | |
56160 | #define GDK_Thai_sarauu 0xdd9 | |
56161 | #define GDK_Thai_phinthu 0xdda | |
56162 | #define GDK_Thai_maihanakat_maitho 0xdde | |
56163 | #define GDK_Thai_baht 0xddf | |
56164 | #define GDK_Thai_sarae 0xde0 | |
56165 | #define GDK_Thai_saraae 0xde1 | |
56166 | #define GDK_Thai_sarao 0xde2 | |
56167 | #define GDK_Thai_saraaimaimuan 0xde3 | |
56168 | #define GDK_Thai_saraaimaimalai 0xde4 | |
56169 | #define GDK_Thai_lakkhangyao 0xde5 | |
56170 | #define GDK_Thai_maiyamok 0xde6 | |
56171 | #define GDK_Thai_maitaikhu 0xde7 | |
56172 | #define GDK_Thai_maiek 0xde8 | |
56173 | #define GDK_Thai_maitho 0xde9 | |
56174 | #define GDK_Thai_maitri 0xdea | |
56175 | #define GDK_Thai_maichattawa 0xdeb | |
56176 | #define GDK_Thai_thanthakhat 0xdec | |
56177 | #define GDK_Thai_nikhahit 0xded | |
56178 | #define GDK_Thai_leksun 0xdf0 | |
56179 | #define GDK_Thai_leknung 0xdf1 | |
56180 | #define GDK_Thai_leksong 0xdf2 | |
56181 | #define GDK_Thai_leksam 0xdf3 | |
56182 | #define GDK_Thai_leksi 0xdf4 | |
56183 | #define GDK_Thai_lekha 0xdf5 | |
56184 | #define GDK_Thai_lekhok 0xdf6 | |
56185 | #define GDK_Thai_lekchet 0xdf7 | |
56186 | #define GDK_Thai_lekpaet 0xdf8 | |
56187 | #define GDK_Thai_lekkao 0xdf9 | |
56188 | #define GDK_Hangul 0xff31 | |
56189 | #define GDK_Hangul_Start 0xff32 | |
56190 | #define GDK_Hangul_End 0xff33 | |
56191 | #define GDK_Hangul_Hanja 0xff34 | |
56192 | #define GDK_Hangul_Jamo 0xff35 | |
56193 | #define GDK_Hangul_Romaja 0xff36 | |
56194 | #define GDK_Hangul_Codeinput 0xff37 | |
56195 | #define GDK_Hangul_Jeonja 0xff38 | |
56196 | #define GDK_Hangul_Banja 0xff39 | |
56197 | #define GDK_Hangul_PreHanja 0xff3a | |
56198 | #define GDK_Hangul_PostHanja 0xff3b | |
56199 | #define GDK_Hangul_SingleCandidate 0xff3c | |
56200 | #define GDK_Hangul_MultipleCandidate 0xff3d | |
56201 | #define GDK_Hangul_PreviousCandidate 0xff3e | |
56202 | #define GDK_Hangul_Special 0xff3f | |
56203 | #define GDK_Hangul_switch 0xFF7E | |
56204 | #define GDK_Hangul_Kiyeog 0xea1 | |
56205 | #define GDK_Hangul_SsangKiyeog 0xea2 | |
56206 | #define GDK_Hangul_KiyeogSios 0xea3 | |
56207 | #define GDK_Hangul_Nieun 0xea4 | |
56208 | #define GDK_Hangul_NieunJieuj 0xea5 | |
56209 | #define GDK_Hangul_NieunHieuh 0xea6 | |
56210 | #define GDK_Hangul_Dikeud 0xea7 | |
56211 | #define GDK_Hangul_SsangDikeud 0xea8 | |
56212 | #define GDK_Hangul_Rieul 0xea9 | |
56213 | #define GDK_Hangul_RieulKiyeog 0xeaa | |
56214 | #define GDK_Hangul_RieulMieum 0xeab | |
56215 | #define GDK_Hangul_RieulPieub 0xeac | |
56216 | #define GDK_Hangul_RieulSios 0xead | |
56217 | #define GDK_Hangul_RieulTieut 0xeae | |
56218 | #define GDK_Hangul_RieulPhieuf 0xeaf | |
56219 | #define GDK_Hangul_RieulHieuh 0xeb0 | |
56220 | #define GDK_Hangul_Mieum 0xeb1 | |
56221 | #define GDK_Hangul_Pieub 0xeb2 | |
56222 | #define GDK_Hangul_SsangPieub 0xeb3 | |
56223 | #define GDK_Hangul_PieubSios 0xeb4 | |
56224 | #define GDK_Hangul_Sios 0xeb5 | |
56225 | #define GDK_Hangul_SsangSios 0xeb6 | |
56226 | #define GDK_Hangul_Ieung 0xeb7 | |
56227 | #define GDK_Hangul_Jieuj 0xeb8 | |
56228 | #define GDK_Hangul_SsangJieuj 0xeb9 | |
56229 | #define GDK_Hangul_Cieuc 0xeba | |
56230 | #define GDK_Hangul_Khieuq 0xebb | |
56231 | #define GDK_Hangul_Tieut 0xebc | |
56232 | #define GDK_Hangul_Phieuf 0xebd | |
56233 | #define GDK_Hangul_Hieuh 0xebe | |
56234 | #define GDK_Hangul_A 0xebf | |
56235 | #define GDK_Hangul_AE 0xec0 | |
56236 | #define GDK_Hangul_YA 0xec1 | |
56237 | #define GDK_Hangul_YAE 0xec2 | |
56238 | #define GDK_Hangul_EO 0xec3 | |
56239 | #define GDK_Hangul_E 0xec4 | |
56240 | #define GDK_Hangul_YEO 0xec5 | |
56241 | #define GDK_Hangul_YE 0xec6 | |
56242 | #define GDK_Hangul_O 0xec7 | |
56243 | #define GDK_Hangul_WA 0xec8 | |
56244 | #define GDK_Hangul_WAE 0xec9 | |
56245 | #define GDK_Hangul_OE 0xeca | |
56246 | #define GDK_Hangul_YO 0xecb | |
56247 | #define GDK_Hangul_U 0xecc | |
56248 | #define GDK_Hangul_WEO 0xecd | |
56249 | #define GDK_Hangul_WE 0xece | |
56250 | #define GDK_Hangul_WI 0xecf | |
56251 | #define GDK_Hangul_YU 0xed0 | |
56252 | #define GDK_Hangul_EU 0xed1 | |
56253 | #define GDK_Hangul_YI 0xed2 | |
56254 | #define GDK_Hangul_I 0xed3 | |
56255 | #define GDK_Hangul_J_Kiyeog 0xed4 | |
56256 | #define GDK_Hangul_J_SsangKiyeog 0xed5 | |
56257 | #define GDK_Hangul_J_KiyeogSios 0xed6 | |
56258 | #define GDK_Hangul_J_Nieun 0xed7 | |
56259 | #define GDK_Hangul_J_NieunJieuj 0xed8 | |
56260 | #define GDK_Hangul_J_NieunHieuh 0xed9 | |
56261 | #define GDK_Hangul_J_Dikeud 0xeda | |
56262 | #define GDK_Hangul_J_Rieul 0xedb | |
56263 | #define GDK_Hangul_J_RieulKiyeog 0xedc | |
56264 | #define GDK_Hangul_J_RieulMieum 0xedd | |
56265 | #define GDK_Hangul_J_RieulPieub 0xede | |
56266 | #define GDK_Hangul_J_RieulSios 0xedf | |
56267 | #define GDK_Hangul_J_RieulTieut 0xee0 | |
56268 | #define GDK_Hangul_J_RieulPhieuf 0xee1 | |
56269 | #define GDK_Hangul_J_RieulHieuh 0xee2 | |
56270 | #define GDK_Hangul_J_Mieum 0xee3 | |
56271 | #define GDK_Hangul_J_Pieub 0xee4 | |
56272 | #define GDK_Hangul_J_PieubSios 0xee5 | |
56273 | #define GDK_Hangul_J_Sios 0xee6 | |
56274 | #define GDK_Hangul_J_SsangSios 0xee7 | |
56275 | #define GDK_Hangul_J_Ieung 0xee8 | |
56276 | #define GDK_Hangul_J_Jieuj 0xee9 | |
56277 | #define GDK_Hangul_J_Cieuc 0xeea | |
56278 | #define GDK_Hangul_J_Khieuq 0xeeb | |
56279 | #define GDK_Hangul_J_Tieut 0xeec | |
56280 | #define GDK_Hangul_J_Phieuf 0xeed | |
56281 | #define GDK_Hangul_J_Hieuh 0xeee | |
56282 | #define GDK_Hangul_RieulYeorinHieuh 0xeef | |
56283 | #define GDK_Hangul_SunkyeongeumMieum 0xef0 | |
56284 | #define GDK_Hangul_SunkyeongeumPieub 0xef1 | |
56285 | #define GDK_Hangul_PanSios 0xef2 | |
56286 | #define GDK_Hangul_KkogjiDalrinIeung 0xef3 | |
56287 | #define GDK_Hangul_SunkyeongeumPhieuf 0xef4 | |
56288 | #define GDK_Hangul_YeorinHieuh 0xef5 | |
56289 | #define GDK_Hangul_AraeA 0xef6 | |
56290 | #define GDK_Hangul_AraeAE 0xef7 | |
56291 | #define GDK_Hangul_J_PanSios 0xef8 | |
56292 | #define GDK_Hangul_J_KkogjiDalrinIeung 0xef9 | |
56293 | #define GDK_Hangul_J_YeorinHieuh 0xefa | |
56294 | #define GDK_Korean_Won 0xeff | |
56295 | #define GDK_EcuSign 0x20a0 | |
56296 | #define GDK_ColonSign 0x20a1 | |
56297 | #define GDK_CruzeiroSign 0x20a2 | |
56298 | #define GDK_FFrancSign 0x20a3 | |
56299 | #define GDK_LiraSign 0x20a4 | |
56300 | #define GDK_MillSign 0x20a5 | |
56301 | #define GDK_NairaSign 0x20a6 | |
56302 | #define GDK_PesetaSign 0x20a7 | |
56303 | #define GDK_RupeeSign 0x20a8 | |
56304 | #define GDK_WonSign 0x20a9 | |
56305 | #define GDK_NewSheqelSign 0x20aa | |
56306 | #define GDK_DongSign 0x20ab | |
56307 | #define GDK_EuroSign 0x20ac | |
56308 | # 55 "gconf.c" 2 | |
56309 | ||
56310 | # 1 "gconf_interface.h" 1 | |
56311 | ||
56312 | ||
56313 | ||
56314 | ||
56315 | GtkWidget *create_main_wnd (void); | |
56316 | # 57 "gconf.c" 2 | |
56317 | # 1 "gconf_support.h" 1 | |
56318 | ||
56319 | ||
56320 | ||
56321 | ||
56322 | ||
56323 | # 1 "../../config.h" 1 | |
56324 | ||
56325 | ||
56326 | ||
56327 | #define _GNU_SOURCE 1 | |
56328 | ||
56329 | ||
56330 | ||
56331 | ||
56332 | ||
56333 | #define CURSES_LOC <ncurses.h> | |
56334 | ||
56335 | ||
56336 | ||
56337 | ||
56338 | ||
56339 | #define DATADIR "/usr/share/GNUnet/" | |
56340 | # 26 "../../config.h" | |
56341 | #define HAVE_ARGZ_APPEND 1 | |
56342 | ||
56343 | ||
56344 | #define HAVE_ARGZ_CREATE_SEP 1 | |
56345 | ||
56346 | ||
56347 | #define HAVE_ARGZ_H 1 | |
56348 | ||
56349 | ||
56350 | #define HAVE_ARGZ_INSERT 1 | |
56351 | ||
56352 | ||
56353 | #define HAVE_ARGZ_NEXT 1 | |
56354 | ||
56355 | ||
56356 | #define HAVE_ARGZ_STRINGIFY 1 | |
56357 | ||
56358 | ||
56359 | #define HAVE_ARPA_INET_H 1 | |
56360 | ||
56361 | ||
56362 | #define HAVE_ASSERT_H 1 | |
56363 | ||
56364 | ||
56365 | #define HAVE_ATOLL 1 | |
56366 | # 59 "../../config.h" | |
56367 | #define HAVE_CLOSEDIR 1 | |
56368 | ||
56369 | ||
56370 | #define HAVE_CTYPE_H 1 | |
56371 | ||
56372 | ||
56373 | #define HAVE_CURSES 1 | |
56374 | ||
56375 | ||
56376 | ||
56377 | ||
56378 | ||
56379 | ||
56380 | ||
56381 | #define HAVE_DIRENT_H 1 | |
56382 | # 82 "../../config.h" | |
56383 | #define HAVE_DLERROR 1 | |
56384 | ||
56385 | ||
56386 | #define HAVE_DLFCN_H 1 | |
56387 | # 94 "../../config.h" | |
56388 | #define HAVE_DUP2 1 | |
56389 | ||
56390 | ||
56391 | ||
56392 | ||
56393 | ||
56394 | #define HAVE_ERRNO_H 1 | |
56395 | ||
56396 | ||
56397 | #define HAVE_ERROR_T 1 | |
56398 | ||
56399 | ||
56400 | #define HAVE_EXTRACTOR_H 1 | |
56401 | ||
56402 | ||
56403 | #define HAVE_FCNTL_H 1 | |
56404 | ||
56405 | ||
56406 | #define HAVE_FDATASYNC 1 | |
56407 | ||
56408 | ||
56409 | #define HAVE_FLOOR 1 | |
56410 | ||
56411 | ||
56412 | #define HAVE_FORK 1 | |
56413 | ||
56414 | ||
56415 | #define HAVE_FSEEKO 1 | |
56416 | ||
56417 | ||
56418 | #define HAVE_FTRUNCATE 1 | |
56419 | ||
56420 | ||
56421 | #define HAVE_GETCWD 1 | |
56422 | ||
56423 | ||
56424 | #define HAVE_GETHOSTBYNAME 1 | |
56425 | ||
56426 | ||
56427 | #define HAVE_GETHOSTNAME 1 | |
56428 | ||
56429 | ||
56430 | #define HAVE_GETLOADAVG 1 | |
56431 | ||
56432 | ||
56433 | #define HAVE_GETRUSAGE 1 | |
56434 | ||
56435 | ||
56436 | ||
56437 | ||
56438 | ||
56439 | #define HAVE_GETTIMEOFDAY 1 | |
56440 | ||
56441 | ||
56442 | #define HAVE_GMP_H 1 | |
56443 | ||
56444 | ||
56445 | #define HAVE_GMTIME 1 | |
56446 | ||
56447 | ||
56448 | #define HAVE_GMTIME_R 1 | |
56449 | ||
56450 | ||
56451 | #define HAVE_GTK 1 | |
56452 | # 166 "../../config.h" | |
56453 | #define HAVE_INTTYPES_H 1 | |
56454 | # 175 "../../config.h" | |
56455 | #define HAVE_LANGINFO_H 1 | |
56456 | ||
56457 | ||
56458 | #define HAVE_LIBDL 1 | |
56459 | ||
56460 | ||
56461 | #define HAVE_LIBGMP 1 | |
56462 | ||
56463 | ||
56464 | ||
56465 | ||
56466 | ||
56467 | #define HAVE_LIBINTL_H 1 | |
56468 | # 196 "../../config.h" | |
56469 | #define HAVE_LIBM 1 | |
56470 | ||
56471 | ||
56472 | #define HAVE_LIBNCURSES 1 | |
56473 | ||
56474 | ||
56475 | #define HAVE_LIBNSL 1 | |
56476 | # 214 "../../config.h" | |
56477 | #define HAVE_LIBZ 1 | |
56478 | ||
56479 | ||
56480 | #define HAVE_LIMITS_H 1 | |
56481 | ||
56482 | ||
56483 | #define HAVE_LOCALE_H 1 | |
56484 | ||
56485 | ||
56486 | ||
56487 | ||
56488 | ||
56489 | #define HAVE_MALLOC_H 1 | |
56490 | ||
56491 | ||
56492 | #define HAVE_MATH_H 1 | |
56493 | ||
56494 | ||
56495 | #define HAVE_MEMCPY 1 | |
56496 | ||
56497 | ||
56498 | #define HAVE_MEMMOVE 1 | |
56499 | ||
56500 | ||
56501 | #define HAVE_MEMORY_H 1 | |
56502 | ||
56503 | ||
56504 | #define HAVE_MEMSET 1 | |
56505 | ||
56506 | ||
56507 | #define HAVE_MKDIR 1 | |
56508 | ||
56509 | ||
56510 | #define HAVE_MKFIFO 1 | |
56511 | ||
56512 | ||
56513 | #define HAVE_MKTIME 1 | |
56514 | ||
56515 | ||
56516 | #define HAVE_MYSQL_MYSQL_H 1 | |
56517 | ||
56518 | ||
56519 | ||
56520 | ||
56521 | ||
56522 | #define HAVE_NETDB_H 1 | |
56523 | ||
56524 | ||
56525 | #define HAVE_NETINET_IN_H 1 | |
56526 | ||
56527 | ||
56528 | ||
56529 | ||
56530 | ||
56531 | #define HAVE_OFF_T 1 | |
56532 | ||
56533 | ||
56534 | #define HAVE_OPENDIR 1 | |
56535 | ||
56536 | ||
56537 | #define HAVE_PRELOADED_SYMBOLS 1 | |
56538 | ||
56539 | ||
56540 | #define HAVE_PTHREAD_H 1 | |
56541 | ||
56542 | ||
56543 | #define HAVE_RAND 1 | |
56544 | ||
56545 | ||
56546 | #define HAVE_READDIR 1 | |
56547 | ||
56548 | ||
56549 | ||
56550 | ||
56551 | ||
56552 | #define HAVE_RMDIR 1 | |
56553 | ||
56554 | ||
56555 | #define HAVE_SELECT 1 | |
56556 | ||
56557 | ||
56558 | #define HAVE_SETLOCALE 1 | |
56559 | ||
56560 | ||
56561 | ||
56562 | ||
56563 | ||
56564 | #define HAVE_SIGSET_T 1 | |
56565 | ||
56566 | ||
56567 | #define HAVE_SIZE_T 1 | |
56568 | ||
56569 | ||
56570 | #define HAVE_SOCKET 1 | |
56571 | ||
56572 | ||
56573 | ||
56574 | ||
56575 | ||
56576 | #define HAVE_STAT64 1 | |
56577 | ||
56578 | ||
56579 | ||
56580 | ||
56581 | ||
56582 | ||
56583 | #define HAVE_STDINT_H 1 | |
56584 | ||
56585 | ||
56586 | #define HAVE_STDIO_H 1 | |
56587 | ||
56588 | ||
56589 | #define HAVE_STDLIB_H 1 | |
56590 | ||
56591 | ||
56592 | #define HAVE_STRCASECMP 1 | |
56593 | ||
56594 | ||
56595 | #define HAVE_STRCHR 1 | |
56596 | ||
56597 | ||
56598 | #define HAVE_STRCMP 1 | |
56599 | ||
56600 | ||
56601 | #define HAVE_STRDUP 1 | |
56602 | ||
56603 | ||
56604 | #define HAVE_STRERROR 1 | |
56605 | ||
56606 | ||
56607 | #define HAVE_STRFTIME 1 | |
56608 | ||
56609 | ||
56610 | #define HAVE_STRINGS_H 1 | |
56611 | ||
56612 | ||
56613 | #define HAVE_STRING_H 1 | |
56614 | # 359 "../../config.h" | |
56615 | #define HAVE_STRNCASECMP 1 | |
56616 | ||
56617 | ||
56618 | #define HAVE_STRRCHR 1 | |
56619 | ||
56620 | ||
56621 | #define HAVE_STRSTR 1 | |
56622 | ||
56623 | ||
56624 | #define HAVE_STRTOL 1 | |
56625 | # 378 "../../config.h" | |
56626 | #define HAVE_SYS_FILE_H 1 | |
56627 | ||
56628 | ||
56629 | #define HAVE_SYS_IOCTL_H 1 | |
56630 | ||
56631 | ||
56632 | #define HAVE_SYS_MOUNT_H 1 | |
56633 | ||
56634 | ||
56635 | ||
56636 | ||
56637 | ||
56638 | ||
56639 | #define HAVE_SYS_PARAM_H 1 | |
56640 | ||
56641 | ||
56642 | #define HAVE_SYS_SELECT_H 1 | |
56643 | ||
56644 | ||
56645 | #define HAVE_SYS_SOCKET_H 1 | |
56646 | ||
56647 | ||
56648 | #define HAVE_SYS_STATVFS_H 1 | |
56649 | ||
56650 | ||
56651 | #define HAVE_SYS_STAT_H 1 | |
56652 | ||
56653 | ||
56654 | #define HAVE_SYS_SYSINFO_H 1 | |
56655 | ||
56656 | ||
56657 | #define HAVE_SYS_TIME_H 1 | |
56658 | ||
56659 | ||
56660 | #define HAVE_SYS_TYPES_H 1 | |
56661 | ||
56662 | ||
56663 | #define HAVE_SYS_VFS_H 1 | |
56664 | ||
56665 | ||
56666 | #define HAVE_SYS_WAIT_H 1 | |
56667 | ||
56668 | ||
56669 | #define HAVE_UNAME 1 | |
56670 | ||
56671 | ||
56672 | #define HAVE_UNISTD_H 1 | |
56673 | ||
56674 | ||
56675 | #define HAVE_VFORK 1 | |
56676 | ||
56677 | ||
56678 | ||
56679 | ||
56680 | ||
56681 | #define HAVE_VPRINTF 1 | |
56682 | ||
56683 | ||
56684 | #define HAVE_WORKING_FORK 1 | |
56685 | ||
56686 | ||
56687 | #define HAVE_WORKING_VFORK 1 | |
56688 | ||
56689 | ||
56690 | #define LINUX 1 | |
56691 | ||
56692 | ||
56693 | #define LOCALEDIR "/usr/share/locale/" | |
56694 | ||
56695 | ||
56696 | ||
56697 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
56698 | ||
56699 | ||
56700 | ||
56701 | ||
56702 | ||
56703 | ||
56704 | #define LTDL_OBJDIR ".libs/" | |
56705 | ||
56706 | ||
56707 | ||
56708 | #define LTDL_SHLIBPATH_VAR "LD_LIBRARY_PATH" | |
56709 | ||
56710 | ||
56711 | #define LTDL_SHLIB_EXT ".so" | |
56712 | ||
56713 | ||
56714 | #define LTDL_SYSSEARCHPATH "/lib:/usr/lib:/usr/local/lib://usr//lib/opengl/xorg-x11/lib:/usr/i686-pc-linux-gnu/lib:/usr/lib/gcc/i686-pc-linux-gnu/3.4.6:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6:/usr/lib/gcc/i686-pc-linux-gnu/4.1.1:/usr/lib/nspr:/usr/lib/nss:/usr/lib:/usr/lib/openmotif-2.2:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/native_threads/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/client/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/server/:/usr/lib/qt4:/usr/kde/3.5/lib:/usr/qt/3/lib:/usr/kde/3.4/lib:/usr/kde/3.3/lib:/usr/games/lib:/usr/lib/jahshaka:/usr/lib/fltk-1.1:/usr/lib/octave-2.1.72" | |
56715 | # 487 "../../config.h" | |
56716 | #define PACKAGE "GNUnet" | |
56717 | ||
56718 | ||
56719 | #define PACKAGE_BUGREPORT "bug-gnunet@gnu.org" | |
56720 | ||
56721 | ||
56722 | #define PACKAGE_NAME "GNUnet" | |
56723 | ||
56724 | ||
56725 | #define PACKAGE_STRING "GNUnet 0.7.0d" | |
56726 | ||
56727 | ||
56728 | #define PACKAGE_TARNAME "gnunet" | |
56729 | ||
56730 | ||
56731 | #define PACKAGE_VERSION "0.7.0d" | |
56732 | ||
56733 | ||
56734 | #define RETSIGTYPE void | |
56735 | ||
56736 | ||
56737 | #define SELECT_TYPE_ARG1 int | |
56738 | ||
56739 | ||
56740 | #define SELECT_TYPE_ARG234 (fd_set *) | |
56741 | ||
56742 | ||
56743 | #define SELECT_TYPE_ARG5 (struct timeval *) | |
56744 | # 523 "../../config.h" | |
56745 | #define STDC_HEADERS 1 | |
56746 | ||
56747 | ||
56748 | #define TIME_WITH_SYS_TIME 1 | |
56749 | ||
56750 | ||
56751 | ||
56752 | ||
56753 | ||
56754 | #define USE_IPV6 1 | |
56755 | ||
56756 | ||
56757 | #define VERSION "0.7.0d" | |
56758 | ||
56759 | ||
56760 | ||
56761 | ||
56762 | ||
56763 | #define _FILE_OFFSET_BITS 64 | |
56764 | # 7 "gconf_support.h" 2 | |
56765 | # 15 "gconf_support.h" | |
56766 | # 1 "/usr/include/libintl.h" 1 3 4 | |
56767 | # 22 "/usr/include/libintl.h" 3 4 | |
56768 | #define _LIBINTL_H 1 | |
56769 | ||
56770 | ||
56771 | ||
56772 | ||
56773 | ||
56774 | #define __USE_GNU_GETTEXT 1 | |
56775 | ||
56776 | ||
56777 | ||
56778 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 1 : -1) | |
56779 | ||
56780 | ||
56781 | ||
56782 | ||
56783 | ||
56784 | ||
56785 | ||
56786 | extern char *((const char *) (__const char *__msgid)) | |
56787 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (1))); | |
56788 | ||
56789 | ||
56790 | ||
56791 | extern char *((const char *) (__const char *__msgid)) | |
56792 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); | |
56793 | extern char *__dgettext (__const char *__domainname, __const char *__msgid) | |
56794 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); | |
56795 | ||
56796 | ||
56797 | ||
56798 | extern char *((const char *) (__const char *__msgid)) | |
56799 | ||
56800 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); | |
56801 | extern char *__dcgettext (__const char *__domainname, | |
56802 | __const char *__msgid, int __category) | |
56803 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); | |
56804 | ||
56805 | ||
56806 | ||
56807 | ||
56808 | extern char *((unsigned long int __n) == 1 ? (const char *) (__const char *__msgid1) : (const char *) (__const char *__msgid2)) | |
56809 | ||
56810 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2))); | |
56811 | ||
56812 | ||
56813 | ||
56814 | extern char *((unsigned long int __n) == 1 ? (const char *) (__const char *__msgid1) : (const char *) (__const char *__msgid2)) | |
56815 | ||
56816 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); | |
56817 | ||
56818 | ||
56819 | ||
56820 | extern char *((unsigned long int __n) == 1 ? (const char *) (__const char *__msgid1) : (const char *) (__const char *__msgid2)) | |
56821 | ||
56822 | ||
56823 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); | |
56824 | ||
56825 | ||
56826 | ||
56827 | ||
56828 | ||
56829 | extern char * __attribute__ ((__nothrow__)); | |
56830 | ||
56831 | ||
56832 | ||
56833 | extern char * __attribute__ ((__nothrow__)); | |
56834 | ||
56835 | ||
56836 | ||
56837 | ||
56838 | extern char *((const char *) (__const char *__codeset)) __attribute__ ((__nothrow__)); | |
56839 | ||
56840 | ||
56841 | ||
56842 | ||
56843 | ||
56844 | ||
56845 | ||
56846 | #define __need_NULL | |
56847 | # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4 | |
56848 | # 162 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
56849 | #undef __need_ptrdiff_t | |
56850 | # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
56851 | #undef __need_size_t | |
56852 | # 344 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
56853 | #undef __need_wchar_t | |
56854 | # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4 | |
56855 | #undef NULL | |
56856 | ||
56857 | ||
56858 | ||
56859 | ||
56860 | #define NULL ((void *)0) | |
56861 | ||
56862 | ||
56863 | ||
56864 | ||
56865 | ||
56866 | #undef __need_NULL | |
56867 | ||
56868 | ||
56869 | ||
56870 | ||
56871 | ||
56872 | #define offsetof(TYPE,MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | |
56873 | # 102 "/usr/include/libintl.h" 2 3 4 | |
56874 | # 110 "/usr/include/libintl.h" 3 4 | |
56875 | #define gettext(msgid) dgettext (NULL, msgid) | |
56876 | ||
56877 | #define dgettext(domainname,msgid) dcgettext (domainname, msgid, LC_MESSAGES) | |
56878 | ||
56879 | ||
56880 | #define ngettext(msgid1,msgid2,n) dngettext (NULL, msgid1, msgid2, n) | |
56881 | ||
56882 | #define dngettext(domainname,msgid1,msgid2,n) dcngettext (domainname, msgid1, msgid2, n, LC_MESSAGES) | |
56883 | ||
56884 | ||
56885 | ||
56886 | ||
56887 |