initial import
[ICEs.git] / 136309 / ice.ii.3
1 typedef unsigned uint;
2 struct __attribute__((visibility("default"))) QShared {
3 };
4 class __attribute__((visibility("default"))) QGArray {
5 };
6 template<class type> class QMemArray : public QGArray {
7 };
8 extern "C" {
9 typedef unsigned int size_t;
10 typedef struct __locale_struct { struct locale_data *__locales[13]; const unsigned short int *__ctype_b; const int *__ctype_tolower; const int *__ctype_toupper; const char *__names[13]; }
11 *__locale_t;
12 }
13 __attribute__((visibility("default"))) inline int qstrcmp( const char *str1, const char *str2 ) {
14 }
15 typedef QMemArray<char> QByteArray;
16 class __attribute__((visibility("default"))) QCString : public QByteArray {
17 };
18 class __attribute__((visibility("default"))) QChar {
19 }
20 ;
21 struct __attribute__((visibility("default"))) QStringData : public QShared {
22 };
23 class __attribute__((visibility("default"))) QString {
24 };
25 class QColor;
26 class __attribute__((visibility("default"))) Qt {
27 public: static const QColor & color0;
28 enum BrushStyle { NoBrush, SolidPattern, Dense1Pattern, Dense2Pattern, Dense3Pattern, Dense4Pattern, Dense5Pattern, Dense6Pattern, Dense7Pattern, HorPattern, VerPattern, CrossPattern, BDiagPattern, FDiagPattern, DiagCrossPattern, CustomPattern=24 };
29 };
30 class QPixmap;
31 typedef struct _XRegion *Region;
32 class __attribute__((visibility("default"))) QPoint {
33 };
34 class __attribute__((visibility("default"))) QSize {
35 };
36 class __attribute__((visibility("default"))) QRect {
37 };
38 struct QRegionPrivate;
39 class __attribute__((visibility("default"))) QRegion {
40 struct QRegionData : public QShared { Region rgn; void *xrectangles; QRegionPrivate *region; bool is_null; }
41 *data;
42 };
43 class __attribute__((visibility("default"))) QIODevice {
44 };
45 template <class T1, class T2> struct QPair {
46 };
47 extern "C" {
48 typedef unsigned char __u_char;
49 typedef unsigned short int __u_short;
50 typedef unsigned int __u_int;
51 typedef unsigned long int __u_long;
52 __extension__ typedef long long int __quad_t;
53 __extension__ typedef unsigned long long int __u_quad_t;
54 __extension__ typedef __u_quad_t __dev_t;
55 __extension__ typedef unsigned int __uid_t;
56 __extension__ typedef unsigned int __gid_t;
57 __extension__ typedef unsigned long int __ino_t;
58 __extension__ typedef __u_quad_t __ino64_t;
59 __extension__ typedef unsigned int __mode_t;
60 __extension__ typedef unsigned int __nlink_t;
61 __extension__ typedef long int __off_t;
62 __extension__ typedef __quad_t __off64_t;
63 __extension__ typedef int __pid_t;
64 __extension__ typedef struct { int __val[2]; }
65 __fsid_t;
66 __extension__ typedef long int __clock_t;
67 __extension__ typedef unsigned int __id_t;
68 __extension__ typedef long int __time_t;
69 __extension__ typedef unsigned int __useconds_t;
70 __extension__ typedef long int __suseconds_t;
71 __extension__ typedef int __daddr_t;
72 __extension__ typedef int __key_t;
73 __extension__ typedef int __clockid_t;
74 __extension__ typedef void * __timer_t;
75 __extension__ typedef long int __blksize_t;
76 __extension__ typedef long int __blkcnt_t;
77 __extension__ typedef __quad_t __blkcnt64_t;
78 __extension__ typedef unsigned long int __fsblkcnt_t;
79 __extension__ typedef __u_quad_t __fsblkcnt64_t;
80 __extension__ typedef unsigned long int __fsfilcnt_t;
81 __extension__ typedef __u_quad_t __fsfilcnt64_t;
82 __extension__ typedef int __ssize_t;
83 typedef __off64_t __loff_t;
84 typedef char *__caddr_t;
85 }
86 template <class T> class QValueListNode {
87 };
88 template<class T> class QValueListIterator {
89 };
90 template<class T> class QValueListConstIterator {
91 };
92 template <class T> class QValueListPrivate : public QShared {
93 };
94 template <class T> class QValueList {
95 };
96 class __attribute__((visibility("default"))) QMimeSource {
97 };
98 class __attribute__((visibility("default"))) QEvent: public Qt {
99 };
100 class __attribute__((visibility("default"))) QWheelEvent : public QEvent {
101 };
102 class __attribute__((visibility("default"))) QTabletEvent : public QEvent {
103 };
104 class __attribute__((visibility("default"))) QMoveEvent : public QEvent {
105 };
106 class __attribute__((visibility("default"))) QDropEvent : public QEvent, public QMimeSource {
107 };
108 class __attribute__((visibility("default"))) QDragMoveEvent : public QDropEvent {
109 };
110 class __attribute__((visibility("default"))) QDragEnterEvent : public QDragMoveEvent {
111 };
112 class __attribute__((visibility("default"))) QObject: public Qt {
113 };
114 union QPDevCmdParam {
115 };
116 class __attribute__((visibility("default"))) QPaintDevice {
117 };
118 class __attribute__((visibility("default"))) QPtrCollection {
119 };
120 class __attribute__((visibility("default"))) QLNode {
121 };
122 class __attribute__((visibility("default"))) QGList : public QPtrCollection {
123 };
124 class __attribute__((visibility("default"))) QGListStdIterator {
125 };
126 template<class type> class QPtrListStdIterator : public QGListStdIterator {
127 };
128 template<class type> class QPtrList : public QGList {
129 };
130 class __attribute__((visibility("default"))) QColor {
131 static enum ColorModel { d8, d32 }
132 d;
133 };
134 class __attribute__((visibility("default"))) QBrush: public Qt {
135 struct QBrushData : public QShared { BrushStyle style; QColor color; QPixmap *pixmap; }
136 *data;
137 };
138 class __attribute__((visibility("default"))) QColorGroup {
139 };
140 class __attribute__((visibility("default"))) QPalette {
141 struct QPalData : public QShared { QColorGroup disabled; QColorGroup active; int ser_no; QColorGroup inactive; }
142 *data;
143 };
144 class __attribute__((visibility("default"))) QFont {
145 };
146 class __attribute__((visibility("default"))) QSizePolicy {
147 };
148 class __attribute__((visibility("default"))) QWidget : public QObject, public QPaintDevice {
149 };
150 class __attribute__((visibility("default"))) QThread : public Qt {
151 };
152 class __attribute__((visibility("default"))) QTime {
153 public: QTime() { ds=0; }
154 QTime addMSecs( int ms ) const;
155 uint ds;
156 };
157 extern "C" {
158 extern "C" { union wait { int w_status; struct { unsigned int __w_termsig:7; unsigned int __w_coredump:1; unsigned int __w_retcode:8; unsigned int:16; } __wait_terminated; struct { unsigned int __w_stopval:8; unsigned int __w_stopsig:8; unsigned int:16; } __wait_stopped; }; typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; __extension__ typedef struct { long long int quot; long long int rem; } lldiv_t; extern size_t __ctype_get_mb_cur_max (void) throw () ; extern double atof (__const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern int atoi (__const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern long int atol (__const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int atoll (__const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern double strtod (__const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ; extern float strtof (__const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ; extern long double strtold (__const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ; extern long int strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; extern unsigned long int strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtoull (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; extern long int strtol_l (__const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; extern unsigned long int strtoul_l (__const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; __extension__ extern long long int strtoll_l (__const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; __extension__ extern unsigned long long int strtoull_l (__const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; extern double strtod_l (__const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))) ; extern float strtof_l (__const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))) ; extern long double strtold_l (__const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))) ; extern double __strtod_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern float __strtof_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern long double __strtold_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern long int __strtol_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int __strtoll_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int __strtoull_internal (__const char * __restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern __inline double strtod (__const char *__restrict __nptr, char **__restrict __endptr) throw () { return __strtod_internal (__nptr, __endptr, 0); } extern __inline long int strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () { return __strtol_internal (__nptr, __endptr, __base, 0); } extern __inline unsigned long int strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () { return __strtoul_internal (__nptr, __endptr, __base, 0); } extern __inline float strtof (__const char *__restrict __nptr, char **__restrict __endptr) throw () { return __strtof_internal (__nptr, __endptr, 0); } extern __inline long double strtold (__const char *__restrict __nptr, char **__restrict __endptr) throw () { return __strtold_internal (__nptr, __endptr, 0); } __extension__ extern __inline long long int strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () { return __strtoll_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline unsigned long long int strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () { return __strtoull_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline long long int strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () { return __strtoll_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline unsigned long long int strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base) throw () { return __strtoull_internal (__nptr, __endptr, __base, 0); } extern __inline double atof (__const char *__nptr) throw () { return strtod (__nptr, (char **) __null); } extern __inline int atoi (__const char *__nptr) throw () { return (int) strtol (__nptr, (char **) __null, 10); } extern __inline long int atol (__const char *__nptr) throw () { return strtol (__nptr, (char **) __null, 10); } __extension__ extern __inline long long int atoll (__const char *__nptr) throw () { return strtoll (__nptr, (char **) __null, 10); } extern char *l64a (long int __n) throw () ; extern long int a64l (__const char *__s) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern "C" { typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino_t ino_t; typedef __ino64_t ino64_t; typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; typedef __off64_t off64_t; typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; typedef __clock_t clock_t; typedef __time_t time_t; typedef __clockid_t clockid_t; typedef __timer_t timer_t; typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; typedef int int8_t __attribute__ ((__mode__ (__QI__))); typedef int int16_t __attribute__ ((__mode__ (__HI__))); typedef int int32_t __attribute__ ((__mode__ (__SI__))); typedef int int64_t __attribute__ ((__mode__ (__DI__))); typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); typedef int register_t __attribute__ ((__mode__ (__word__))); typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; typedef __sigset_t sigset_t; struct timespec { __time_t tv_sec; long int tv_nsec; }; struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; typedef long int __fd_mask; typedef struct { __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; extern "C" { extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); extern int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask); } __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) throw (); __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) throw (); __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw (); __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) throw () { return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); } __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) throw () { return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); } __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw () { return ((__minor & 0xff) | ((__major & 0xfff) << 8) | (((unsigned long long int) (__minor & ~0xff)) << 12) | (((unsigned long long int) (__major & ~0xfff)) << 32)); } typedef __blksize_t blksize_t; typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; typedef __blkcnt64_t blkcnt64_t; typedef __fsblkcnt64_t fsblkcnt64_t; typedef __fsfilcnt64_t fsfilcnt64_t; typedef unsigned long int pthread_t; typedef union { char __size[36]; long int __align; } pthread_attr_t; typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; int __kind; unsigned int __nusers; __extension__ union { int __spins; __pthread_slist_t __list; }; } __data; char __size[24]; long int __align; } pthread_mutex_t; typedef union { char __size[4]; long int __align; } pthread_mutexattr_t; typedef union { struct { int __lock; unsigned int __futex; __extension__ unsigned long long int __total_seq; __extension__ unsigned long long int __wakeup_seq; __extension__ unsigned long long int __woken_seq; void *__mutex; unsigned int __nwaiters; unsigned int __broadcast_seq; } __data; char __size[48]; __extension__ long long int __align; } pthread_cond_t; typedef union { char __size[4]; long int __align; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef int pthread_once_t; typedef union { struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr_writers_queued; unsigned int __flags; int __writer; } __data; char __size[32]; long int __align; } pthread_rwlock_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; typedef volatile int pthread_spinlock_t; typedef union { char __size[20]; long int __align; } pthread_barrier_t; typedef union { char __size[4]; int __align; } pthread_barrierattr_t; } extern long int random (void) throw (); extern void srandom (unsigned int __seed) throw (); extern char *initstate (unsigned int __seed, char *__statebuf, size_t __statelen) throw () __attribute__ ((__nonnull__ (2))); extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1))); struct random_data { int32_t *fptr; int32_t *rptr; int32_t *state; int rand_type; int rand_deg; int rand_sep; int32_t *end_ptr; }; extern int random_r (struct random_data *__restrict __buf, int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int srandom_r (unsigned int __seed, struct random_data *__buf) throw () __attribute__ ((__nonnull__ (2))); extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, size_t __statelen, struct random_data *__restrict __buf) throw () __attribute__ ((__nonnull__ (2, 4))); extern int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); extern int rand (void) throw (); extern void srand (unsigned int __seed) throw (); extern int rand_r (unsigned int *__seed) throw (); extern double drand48 (void) throw (); extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); extern long int lrand48 (void) throw (); extern long int nrand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); extern long int mrand48 (void) throw (); extern long int jrand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); extern void srand48 (long int __seedval) throw (); extern unsigned short int *seed48 (unsigned short int __seed16v[3]) throw () __attribute__ ((__nonnull__ (1))); extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1))); struct drand48_data { unsigned short int __x[3]; unsigned short int __old_x[3]; unsigned short int __c; unsigned short int __init; unsigned long long int __a; }; extern int drand48_r (struct drand48_data *__restrict __buffer, double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int erand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int lrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int nrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int mrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int jrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int srand48_r (long int __seedval, struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (2))); extern int seed48_r (unsigned short int __seed16v[3], struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2))); extern int lcong48_r (unsigned short int __param[7], struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2))); extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) ; extern void *calloc (size_t __nmemb, size_t __size) throw () __attribute__ ((__malloc__)) ; extern void *realloc (void *__ptr, size_t __size) throw () __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern void free (void *__ptr) throw (); extern void cfree (void *__ptr) throw (); extern "C" { extern void *alloca (size_t __size) throw (); } extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) ; extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) throw () __attribute__ ((__nonnull__ (1))) ; extern void abort (void) throw () __attribute__ ((__noreturn__)); extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1))); extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) throw () __attribute__ ((__nonnull__ (1))); extern void exit (int __status) throw () __attribute__ ((__noreturn__)); extern void _Exit (int __status) throw () __attribute__ ((__noreturn__)); extern char *getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ; extern char *__secure_getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ; extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1))); extern int setenv (__const char *__name, __const char *__value, int __replace) throw () __attribute__ ((__nonnull__ (2))); extern int unsetenv (__const char *__name) throw (); extern int clearenv (void) throw (); extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ; extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ; extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ; extern int system (__const char *__command) ; extern char *canonicalize_file_name (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ; extern char *realpath (__const char *__restrict __name, char *__restrict __resolved) throw () ; typedef int (*__compar_fn_t) (__const void *, __const void *); typedef __compar_fn_t comparison_fn_t; extern void *bsearch (__const void *__key, __const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 2, 5))) ; extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); extern int abs (int __x) throw () __attribute__ ((__const__)) ; extern long int labs (long int __x) throw () __attribute__ ((__const__)) ; __extension__ extern long long int llabs (long long int __x) throw () __attribute__ ((__const__)) ; extern div_t div (int __numer, int __denom) throw () __attribute__ ((__const__)) ; extern ldiv_t ldiv (long int __numer, long int __denom) throw () __attribute__ ((__const__)) ; __extension__ extern lldiv_t lldiv (long long int __numer, long long int __denom) throw () __attribute__ ((__const__)) ; extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ; extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ; extern char *gcvt (double __value, int __ndigit, char *__buf) throw () __attribute__ ((__nonnull__ (3))) ; extern char *qecvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ; extern char *qfcvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ; extern char *qgcvt (long double __value, int __ndigit, char *__buf) throw () __attribute__ ((__nonnull__ (3))) ; extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); extern int qecvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); extern int qfcvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); extern int mblen (__const char *__s, size_t __n) throw () ; extern int mbtowc (wchar_t *__restrict __pwc, __const char *__restrict __s, size_t __n) throw () ; extern int wctomb (char *__s, wchar_t __wchar) throw () ; extern size_t mbstowcs (wchar_t *__restrict __pwcs, __const char *__restrict __s, size_t __n) throw (); extern size_t wcstombs (char *__restrict __s, __const wchar_t *__restrict __pwcs, size_t __n) throw (); extern int rpmatch (__const char *__response) throw () __attribute__ ((__nonnull__ (1))) ; extern int getsubopt (char **__restrict __optionp, char *__const *__restrict __tokens, char **__restrict __valuep) throw () __attribute__ ((__nonnull__ (1, 2, 3))) ; extern void setkey (__const char *__key) throw () __attribute__ ((__nonnull__ (1))); extern int posix_openpt (int __oflag) ; extern int grantpt (int __fd) throw (); extern int unlockpt (int __fd) throw (); extern char *ptsname (int __fd) throw () ; extern int ptsname_r (int __fd, char *__buf, size_t __buflen) throw () __attribute__ ((__nonnull__ (2))); extern int getpt (void); extern int getloadavg (double __loadavg[], int __nelem) throw () __attribute__ ((__nonnull__ (1))); }
159 typedef unsigned char uint8_t;
160 typedef unsigned short int uint16_t;
161 typedef unsigned int uint32_t;
162 __extension__ typedef unsigned long long int uint64_t;
163 extern "C" { extern "C" { typedef struct xine_s xine_t; typedef struct xine_stream_s xine_stream_t; typedef struct xine_audio_port_s xine_audio_port_t; typedef struct xine_video_port_s xine_video_port_t; typedef xine_audio_port_t xine_ao_driver_t; typedef xine_video_port_t xine_vo_driver_t; const char *xine_get_version_string (void); void xine_get_version (int *major, int *minor, int *sub); int xine_check_version (int major, int minor, int sub) ; xine_t *xine_new (void); void xine_init (xine_t *self); xine_audio_port_t *xine_open_audio_driver (xine_t *self, const char *id, void *data); xine_video_port_t *xine_open_video_driver (xine_t *self, const char *id, int visual, void *data); void xine_close_audio_driver (xine_t *self, xine_audio_port_t *driver); void xine_close_video_driver (xine_t *self, xine_video_port_t *driver); void xine_exit (xine_t *self); xine_stream_t *xine_stream_new (xine_t *self, xine_audio_port_t *ao, xine_video_port_t *vo); int xine_stream_master_slave(xine_stream_t *master, xine_stream_t *slave, int affection); int xine_open (xine_stream_t *stream, const char *mrl); int xine_play (xine_stream_t *stream, int start_pos, int start_time); int xine_trick_mode (xine_stream_t *stream, int mode, int value); void xine_stop (xine_stream_t *stream); void xine_close (xine_stream_t *stream); int xine_eject (xine_stream_t *stream); void xine_dispose (xine_stream_t *stream); void xine_engine_set_param(xine_t *self, int param, int value); int xine_engine_get_param(xine_t *self, int param); void xine_set_param (xine_stream_t *stream, int param, int value); int xine_get_param (xine_stream_t *stream, int param); int xine_get_current_frame (xine_stream_t *stream, int *width, int *height, int *ratio_code, int *format, uint8_t *img); int64_t xine_get_current_vpts(xine_stream_t *stream); typedef struct xine_post_s xine_post_t; struct xine_post_s { xine_audio_port_t **audio_input; xine_video_port_t **video_input; int type; }; xine_post_t *xine_post_init(xine_t *xine, const char *name, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); const char *const *xine_list_post_plugins(xine_t *xine); const char *const *xine_list_post_plugins_typed(xine_t *xine, int type); typedef struct xine_post_in_s xine_post_in_t; typedef struct xine_post_out_s xine_post_out_t; struct xine_post_in_s { const char *name; int type; void *data; }; struct xine_post_out_s { const char *name; int type; void *data; int (*rewire) (xine_post_out_t *self, void *data); }; const char *const *xine_post_list_inputs(xine_post_t *self); const char *const *xine_post_list_outputs(xine_post_t *self); xine_post_in_t *xine_post_input(xine_post_t *self, const char *name); xine_post_out_t *xine_post_output(xine_post_t *self, const char *name); int xine_post_wire(xine_post_out_t *source, xine_post_in_t *target); int xine_post_wire_video_port(xine_post_out_t *source, xine_video_port_t *vo); int xine_post_wire_audio_port(xine_post_out_t *source, xine_audio_port_t *ao); xine_post_out_t * xine_get_video_source(xine_stream_t *stream); xine_post_out_t * xine_get_audio_source(xine_stream_t *stream); void xine_post_dispose(xine_t *xine, xine_post_t *self); typedef struct { int type; char *name; int size; int offset; char **enum_values; double range_min; double range_max; int readonly; char *description; } xine_post_api_parameter_t; typedef struct { int struct_size; xine_post_api_parameter_t *parameter; } xine_post_api_descr_t; typedef struct { int (*set_parameters) (xine_post_t *self, void *params); int (*get_parameters) (xine_post_t *self, void *params); xine_post_api_descr_t * (*get_param_descr) (void); char * (*get_help) (void); } xine_post_api_t; int xine_get_log_section_count(xine_t *self); const char *const *xine_get_log_names(xine_t *self); void xine_log (xine_t *self, int buf, const char *format, ...) __attribute__ ((__format__(printf, 3, 4))); const char *const *xine_get_log (xine_t *self, int buf); typedef void (*xine_log_cb_t) (void *user_data, int section); void xine_register_log_cb (xine_t *self, xine_log_cb_t cb, void *user_data); int xine_get_error (xine_stream_t *stream); int xine_get_status (xine_stream_t *stream); int xine_get_audio_lang (xine_stream_t *stream, int channel, char *lang); int xine_get_spu_lang (xine_stream_t *stream, int channel, char *lang); int xine_get_pos_length (xine_stream_t *stream, int *pos_stream, int *pos_time, int *length_time); uint32_t xine_get_stream_info (xine_stream_t *stream, int info); const char *xine_get_meta_info (xine_stream_t *stream, int info); typedef struct { char *origin; char *mrl; char *link; uint32_t type; off_t size; } xine_mrl_t; const char *const *xine_get_browsable_input_plugin_ids (xine_t *self) ; xine_mrl_t **xine_get_browse_mrls (xine_t *self, const char *plugin_id, const char *start_mrl, int *num_mrls); const char *const *xine_get_autoplay_input_plugin_ids (xine_t *self); char **xine_get_autoplay_mrls (xine_t *self, const char *plugin_id, int *num_mrls); char *xine_get_file_extensions (xine_t *self); char *xine_get_mime_types (xine_t *self); char *xine_get_demux_for_mime_type (xine_t *self, const char *mime_type); const char *xine_get_input_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_demux_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_spu_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_audio_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_video_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_audio_driver_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_video_driver_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_post_plugin_description (xine_t *self, const char *plugin_id); const char *const *xine_list_audio_output_plugins (xine_t *self) ; const char *const *xine_list_video_output_plugins (xine_t *self) ; const char *const *xine_list_demuxer_plugins(xine_t *self); const char *const *xine_list_input_plugins(xine_t *self); const char *const *xine_list_spu_plugins(xine_t *self); const char *const *xine_list_audio_decoder_plugins(xine_t *self); const char *const *xine_list_video_decoder_plugins(xine_t *self); void xine_plugins_garbage_collector(xine_t *self); int xine_gui_send_vo_data (xine_stream_t *self, int type, void *data); int xine_port_send_gui_data (xine_video_port_t *vo, int type, void *data); typedef struct { int x,y,w,h; } x11_rectangle_t; typedef struct { void *display; int screen; unsigned long d; void *user_data; void (*dest_size_cb) (void *user_data, int video_width, int video_height, double video_pixel_aspect, int *dest_width, int *dest_height, double *dest_pixel_aspect); void (*frame_output_cb) (void *user_data, int video_width, int video_height, double video_pixel_aspect, int *dest_x, int *dest_y, int *dest_width, int *dest_height, double *dest_pixel_aspect, int *win_x, int *win_y); } x11_visual_t; typedef struct { void (*frame_output_cb) (void *user_data, int video_width, int video_height, double video_pixel_aspect, int *dest_x, int *dest_y, int *dest_width, int *dest_height, double *dest_pixel_aspect, int *win_x, int *win_y); void *user_data; } fb_visual_t; struct xine_health_check_s { int status; const char* cdrom_dev; const char* dvd_dev; char* msg; char* title; char* explanation; }; typedef struct xine_health_check_s xine_health_check_t; xine_health_check_t* xine_health_check(xine_health_check_t*, int check_num); typedef struct xine_cfg_entry_s xine_cfg_entry_t; typedef void (*xine_config_cb_t) (void *user_data, xine_cfg_entry_t *entry); struct xine_cfg_entry_s { const char *key; int type; char *unknown_value; char *str_value; char *str_default; char *str_sticky; int num_value; int num_default; int range_min; int range_max; char **enum_values; const char *description; const char *help; int exp_level; xine_config_cb_t callback; void *callback_data; }; const char *xine_config_register_string (xine_t *self, const char *key, const char *def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_register_range (xine_t *self, const char *key, int def_value, int min, int max, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_register_enum (xine_t *self, const char *key, int def_value, char **values, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_register_num (xine_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_register_bool (xine_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_get_first_entry (xine_t *self, xine_cfg_entry_t *entry); int xine_config_get_next_entry (xine_t *self, xine_cfg_entry_t *entry); int xine_config_lookup_entry (xine_t *self, const char *key, xine_cfg_entry_t *entry); void xine_config_update_entry (xine_t *self, const xine_cfg_entry_t *entry); void xine_config_load (xine_t *self, const char *cfg_filename); void xine_config_save (xine_t *self, const char *cfg_filename); void xine_config_reset (xine_t *self); typedef struct { int type; xine_stream_t *stream; void *data; int data_length; struct timeval tv; } xine_event_t; typedef struct { xine_event_t event; uint8_t button; uint16_t x,y; } xine_input_data_t; typedef struct { int num_buttons; int str_len; char str[256]; } xine_ui_data_t; typedef struct { xine_ui_data_t compatibility; int type; int explanation; int num_parameters; int parameters; char messages[1]; } xine_ui_message_data_t; typedef struct { int width; int height; int aspect; int pan_scan; } xine_format_change_data_t; typedef struct { int left; int right; int mute; } xine_audio_level_data_t; typedef struct { const char *description; int percent; } xine_progress_data_t; typedef struct { int alternative; char mrl[1]; } xine_mrl_reference_data_t; typedef struct { int alternative; uint32_t start_time, duration; uint32_t spare[20]; const char mrl[1]; } xine_mrl_reference_data_ext_t; typedef struct { int input; int channel; int radio; uint32_t frequency; uint32_t transmission; uint32_t framerate_numerator; uint32_t framerate_denominator; uint32_t framelines; uint64_t standard_id; uint32_t colorstandard; uint32_t colorsubcarrier; int frame_width; int frame_height; uint32_t spare[20]; int32_t session_id; } xine_set_v4l2_data_t; typedef struct { int bitrate_vbr; int bitrate_mean; int bitrate_peak; int gop_size; int gop_closure; int b_frames; int aspect_ratio; uint32_t spare[20]; } xine_set_mpeg_data_t; typedef struct { int direction; int32_t button; } xine_spu_button_t; typedef struct { int skipped_frames; int skipped_threshold; int discarded_frames; int discarded_threshold; } xine_dropped_frames_t; typedef struct xine_event_queue_s xine_event_queue_t; xine_event_queue_t *xine_event_new_queue (xine_stream_t *stream); void xine_event_dispose_queue (xine_event_queue_t *queue); xine_event_t *xine_event_get (xine_event_queue_t *queue); xine_event_t *xine_event_wait (xine_event_queue_t *queue); void xine_event_free (xine_event_t *event); typedef void (*xine_event_listener_cb_t) (void *user_data, const xine_event_t *event); void xine_event_create_listener_thread (xine_event_queue_t *queue, xine_event_listener_cb_t callback, void *user_data); void xine_event_send (xine_stream_t *stream, const xine_event_t *event); typedef struct xine_osd_s xine_osd_t; xine_osd_t *xine_osd_new (xine_stream_t *self, int x, int y, int width, int height); uint32_t xine_osd_get_capabilities (xine_osd_t *self); void xine_osd_draw_point (xine_osd_t *self, int x, int y, int color); void xine_osd_draw_line (xine_osd_t *self, int x1, int y1, int x2, int y2, int color); void xine_osd_draw_rect (xine_osd_t *self, int x1, int y1, int x2, int y2, int color, int filled ); void xine_osd_draw_text (xine_osd_t *self, int x1, int y1, const char *text, int color_base); void xine_osd_draw_bitmap (xine_osd_t *self, uint8_t *bitmap, int x1, int y1, int width, int height, uint8_t *palette_map); void xine_osd_get_text_size (xine_osd_t *self, const char *text, int *width, int *height); int xine_osd_set_font (xine_osd_t *self, const char *fontname, int size); void xine_osd_set_encoding(xine_osd_t *self, const char *encoding); void xine_osd_set_position (xine_osd_t *self, int x, int y); void xine_osd_show (xine_osd_t *self, int64_t vpts); void xine_osd_show_unscaled (xine_osd_t *self, int64_t vpts); void xine_osd_hide (xine_osd_t *self, int64_t vpts); void xine_osd_clear (xine_osd_t *self); void xine_osd_set_text_palette (xine_osd_t *self, int palette_number, int color_base ); void xine_osd_get_palette (xine_osd_t *self, uint32_t *color, uint8_t *trans); void xine_osd_set_palette (xine_osd_t *self, const uint32_t *const color, const uint8_t *const trans ); void xine_osd_free (xine_osd_t *self); typedef enum { XINE_TVSYSTEM_PAL = 0, XINE_TVSYSTEM_NTSC } xine_tvsystem; int xine_tvmode_init (xine_t *self); int xine_tvmode_use(xine_t *self, int use_tvmode); void xine_tvmode_set_tvsystem(xine_t *self, xine_tvsystem system); int xine_tvmode_switch (xine_t *self, int type, int width, int height, double fps); void xine_tvmode_size (xine_t *self, int *width, int *height, double *pixelratio, double *fps); void xine_tvmode_exit (xine_t *self); } typedef struct cfg_entry_s cfg_entry_t; typedef struct config_values_s config_values_t; struct cfg_entry_s { cfg_entry_t *next; config_values_t *config; char *key; int type; char *unknown_value; char *str_value; char *str_default; int num_value; int num_default; int range_min; int range_max; char **enum_values; char *description; char *help; int exp_level; xine_config_cb_t callback; void *callback_data; }; struct config_values_s { char* (*register_string) (config_values_t *self, const char *key, const char *def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int (*register_range) (config_values_t *self, const char *key, int def_value, int min, int max, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int (*register_enum) (config_values_t *self, const char *key, int def_value, char **values, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int (*register_num) (config_values_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int (*register_bool) (config_values_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); void (*update_num) (config_values_t *self, const char *key, int value); void (*update_string) (config_values_t *self, const char *key, const char *value); int (*parse_enum) (const char *str, char **values); cfg_entry_t* (*lookup_entry) (config_values_t *self, const char *key); void (*unregister_callback) (config_values_t *self, const char *key); void (*dispose) (config_values_t *self); cfg_entry_t *first, *last, *cur; pthread_mutex_t config_lock; int current_version; }; config_values_t *_x_config_init (void); int _x_config_change_opt(config_values_t *config, const char *opt) ; }
164 void xine_usec_sleep(unsigned usec);
165 }
166 class PostFilterParameter : public QObject {
167 };
168 class PostFilter : public QObject {
169 };
170 class KXineWidget : public QWidget, private QThread {
171 QTime getLengthInfo();
172 static QTime msToTime(int msec);
173 xine_stream_t* m_xineStream;
174 };
175 QTime KXineWidget::getLengthInfo() {
176 int pos, time, length;
177 int t = 0, ret = 0;
178 while(((ret = xine_get_pos_length(m_xineStream, &pos, &time, &length)) == 0) && (++t < 5)) xine_usec_sleep(100000);
179 if ( (ret != 0) && (length > 0) ) { return msToTime(length); }
180 }
181 QTime KXineWidget::msToTime(int msec) {
182 QTime t;
183 t = t.addMSecs(msec);
184 return t;
185 }