comparison osdep/getch2.h @ 30668:46e7233f1faa

Properly declare get_term_charset() instead of forward declaring it.
author diego
date Mon, 22 Feb 2010 15:34:56 +0000
parents 8134ffd057d7
children 44837471a711
comparison
equal deleted inserted replaced
30667:6ca16928b1cc 30668:46e7233f1faa
22 */ 22 */
23 23
24 #ifndef MPLAYER_GETCH2_H 24 #ifndef MPLAYER_GETCH2_H
25 #define MPLAYER_GETCH2_H 25 #define MPLAYER_GETCH2_H
26 26
27 #include "config.h"
28
27 /* Screen size. Initialized by load_termcap() and get_screen_size() */ 29 /* Screen size. Initialized by load_termcap() and get_screen_size() */
28 extern int screen_width; 30 extern int screen_width;
29 extern int screen_height; 31 extern int screen_height;
30 32
31 /* Termcap code to erase to end of line */ 33 /* Termcap code to erase to end of line */
42 void getch2_disable(void); 44 void getch2_disable(void);
43 45
44 /* Read a character or a special key code (see keycodes.h) */ 46 /* Read a character or a special key code (see keycodes.h) */
45 void getch2(void); 47 void getch2(void);
46 48
49 #ifdef CONFIG_ICONV
50 /**
51 * \brief gets the name of the system's terminal character set
52 * \return a malloced string indicating the system charset
53 *
54 * Be warned that this function on many systems is in no way thread-safe
55 * since it modifies global data
56 */
57 char *get_term_charset(void);
58 #endif
59
47 /* slave cmd function for Windows and OS/2 */ 60 /* slave cmd function for Windows and OS/2 */
48 int mp_input_slave_cmd_func(int fd,char* dest,int size); 61 int mp_input_slave_cmd_func(int fd,char* dest,int size);
49 62
50 #if defined(__MINGW32__) || defined(__OS2__) 63 #if defined(__MINGW32__) || defined(__OS2__)
51 #define USE_SELECT 0 64 #define USE_SELECT 0