initial import
[ICEs.git] / 137376 / ice.ii.2
1 struct __attribute__((visibility("default"))) QShared {
2 };
3 class __attribute__((visibility("default"))) QGArray {
4 };
5 template<class type> class QMemArray : public QGArray {
6 };
7 extern "C" {
8 typedef unsigned int size_t;
9 }
10 namespace std {
11 }
12 extern "C" {
13 typedef struct { int quot; int rem; }
14 div_t;
15 extern "C" { typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; __extension__ typedef signed long long int __int64_t; __extension__ typedef unsigned long long int __uint64_t; __extension__ typedef long long int __quad_t; __extension__ typedef unsigned long long int __u_quad_t; __extension__ typedef __u_quad_t __dev_t; __extension__ typedef unsigned int __uid_t; __extension__ typedef unsigned int __gid_t; __extension__ typedef unsigned long int __ino_t; __extension__ typedef __u_quad_t __ino64_t; __extension__ typedef unsigned int __mode_t; __extension__ typedef unsigned int __nlink_t; __extension__ typedef long int __off_t; __extension__ typedef __quad_t __off64_t; __extension__ typedef int __pid_t; __extension__ typedef struct { int __val[2]; } __fsid_t; __extension__ typedef long int __clock_t; __extension__ typedef unsigned long int __rlim_t; __extension__ typedef __u_quad_t __rlim64_t; __extension__ typedef unsigned int __id_t; __extension__ typedef long int __time_t; __extension__ typedef unsigned int __useconds_t; __extension__ typedef long int __suseconds_t; __extension__ typedef int __daddr_t; __extension__ typedef long int __swblk_t; __extension__ typedef int __key_t; __extension__ typedef int __clockid_t; __extension__ typedef int __timer_t; __extension__ typedef long int __blksize_t; __extension__ typedef long int __blkcnt_t; __extension__ typedef __quad_t __blkcnt64_t; __extension__ typedef unsigned long int __fsblkcnt_t; __extension__ typedef __u_quad_t __fsblkcnt64_t; __extension__ typedef unsigned long int __fsfilcnt_t; __extension__ typedef __u_quad_t __fsfilcnt64_t; __extension__ typedef int __ssize_t; typedef __off64_t __loff_t; typedef __quad_t *__qaddr_t; typedef char *__caddr_t; __extension__ typedef int __intptr_t; __extension__ typedef unsigned int __socklen_t; 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; struct __sched_param { int __sched_priority; }; typedef int __atomic_lock_t; struct _pthread_fastlock { long int __status; __atomic_lock_t __spinlock; }; typedef struct _pthread_descr_struct *_pthread_descr; typedef struct __pthread_attr_s { int __detachstate; int __schedpolicy; struct __sched_param __schedparam; int __inheritsched; int __scope; size_t __guardsize; int __stackaddr_set; void *__stackaddr; size_t __stacksize; } pthread_attr_t; __extension__ typedef long long __pthread_cond_align_t; typedef struct { struct _pthread_fastlock __c_lock; _pthread_descr __c_waiting; char __padding[48 - sizeof (struct _pthread_fastlock) - sizeof (_pthread_descr) - sizeof (__pthread_cond_align_t)]; __pthread_cond_align_t __align; } pthread_cond_t; typedef struct { int __dummy; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef struct { int __m_reserved; int __m_count; _pthread_descr __m_owner; int __m_kind; struct _pthread_fastlock __m_lock; } pthread_mutex_t; typedef struct { int __mutexkind; } pthread_mutexattr_t; typedef int pthread_once_t; typedef struct _pthread_rwlock_t { struct _pthread_fastlock __rw_lock; int __rw_readers; _pthread_descr __rw_writer; _pthread_descr __rw_read_waiting; _pthread_descr __rw_write_waiting; int __rw_kind; int __rw_pshared; } pthread_rwlock_t; typedef struct { int __lockkind; int __pshared; } pthread_rwlockattr_t; typedef volatile int pthread_spinlock_t; typedef struct { struct _pthread_fastlock __ba_lock; int __ba_required; int __ba_present; _pthread_descr __ba_waiting; } pthread_barrier_t; typedef struct { int __pshared; } pthread_barrierattr_t; typedef unsigned long int pthread_t; }
16 typedef unsigned int wint_t;
17 typedef struct { int __count; union { wint_t __wch; char __wchb[4]; } __value; }
18 __mbstate_t;
19 typedef struct { __off_t __pos; __mbstate_t __state; }
20 _G_fpos_t;
21 struct __gconv_step_data { unsigned char *__outbuf; unsigned char *__outbufend; int __flags; int __invocation_counter; int __internal_use; __mbstate_t *__statep; __mbstate_t __state; struct __gconv_trans_data *__trans; };
22 typedef struct __gconv_info { size_t __nsteps; struct __gconv_step *__steps; __extension__ struct __gconv_step_data __data []; }
23 _G_iconv_t;
24 }
25 extern "C" {
26 }
27 typedef unsigned char uint8_t;
28 typedef unsigned short int uint16_t;
29 typedef unsigned int uint32_t;
30 __extension__ typedef unsigned long long int uint64_t;
31 struct __attribute__((visibility("default"))) QStringData : public QShared {
32 };
33 class __attribute__((visibility("default"))) Qt {
34 };
35 template <class T> class QValueListPrivate : public QShared {
36 };
37 class __attribute__((visibility("default"))) QEvent: public Qt {
38 };
39 class __attribute__((visibility("default"))) QMoveEvent : public QEvent {
40 };
41 class __attribute__((visibility("default"))) QObject: public Qt {
42 };
43 class __attribute__((visibility("default"))) QPaintDevice {
44 };
45 class __attribute__((visibility("default"))) QPtrCollection {
46 };
47 class __attribute__((visibility("default"))) QGList : public QPtrCollection {
48 };
49 template<class type> class QPtrList : public QGList {
50 };
51 class __attribute__((visibility("default"))) QStrList : public QPtrList<char> {
52 };
53 class __attribute__((visibility("default"))) QColorGroup {
54 };
55 class __attribute__((visibility("default"))) QWidget : public QObject, public QPaintDevice {
56 };
57 class __attribute__((visibility("default"))) QTimer : public QObject {
58 };
59 class __attribute__((visibility("default"))) QThread : public Qt {
60 };
61 class __attribute__((visibility("default"))) QTime {
62 public: QTime() { ds=0; }
63 QTime addMSecs( int ms ) const;
64 uint ds;
65 };
66 extern "C" {
67 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) ; }
68 }
69 typedef struct _XExtData {
70 }
71 XCrossingEvent;
72 typedef struct {
73 }
74 XOMFontInfo;
75 class PostFilterParameter : public QObject {
76 };
77 class KXineWidget : public QWidget, private QThread {
78 QTime getLengthInfo();
79 static QTime msToTime(int msec);
80 xine_stream_t* m_xineStream;
81 };
82 QTime KXineWidget::getLengthInfo() {
83 int pos, time, length;
84 bool ok = xine_get_pos_length(m_xineStream, &pos, &time, &length);
85 if ( (ok) && (length > 0) ) { return msToTime(length); }
86 }
87 QTime KXineWidget::msToTime(int msec) {
88 QTime t;
89 t = t.addMSecs(msec);
90 return t;
91 }