html_special(): move va_end() call outside the switch and make variables
[elinks.git] / src / osdep / osdep.h
blob5c4384b567656c2e0b235b251d1d61cb30598360
2 #ifndef EL__OSDEP_OSDEP_H
3 #define EL__OSDEP_OSDEP_H
5 #include "osdep/beos/beos.h"
6 #include "osdep/os2/os2.h"
7 #include "osdep/riscos/riscos.h"
8 #include "osdep/unix/unix.h"
9 #include "osdep/win32/win32.h"
11 int get_system_env(void);
12 int get_e(unsigned char *env);
13 int is_xterm(void);
14 int is_twterm(void);
15 void get_terminal_size(int, int *, int *);
16 void handle_terminal_resize(int, void (*)(void));
17 void unhandle_terminal_resize(int);
18 void set_bin(int);
19 int c_pipe(int *);
20 int get_input_handle(void);
21 int get_output_handle(void);
22 int get_ctl_handle(void);
23 void want_draw(void);
24 void done_draw(void);
25 void init_osdep(void);
26 void terminate_osdep(void);
27 void *handle_mouse(int, void (*)(void *, unsigned char *, int), void *);
28 void unhandle_mouse(void *);
29 void suspend_mouse(void *);
30 void resume_mouse(void *);
31 int start_thread(void (*)(void *, int), void *, int);
32 unsigned char *get_clipboard_text(void);
33 void set_clipboard_text(unsigned char *);
34 void set_window_title(unsigned char *);
35 unsigned char *get_window_title(void);
36 void block_stdin(void);
37 void unblock_stdin(void);
38 int exe(unsigned char *);
39 int resize_window(int, int, int, int);
40 int can_resize_window(int);
41 int can_open_os_shell(int);
42 void set_highpri(void);
44 #ifdef USE_OPEN_PREALLOC
45 int open_prealloc(char *, int, int, off_t);
46 void prealloc_truncate(int, off_t);
47 #else
48 static inline void prealloc_truncate(int x, int y) { }
49 #endif
51 unsigned char *get_system_str(int);
53 int set_nonblocking_fd(int);
54 int set_blocking_fd(int);
55 void set_ip_tos_throughput(int socket);
57 unsigned char *get_cwd(void);
58 void set_cwd(unsigned char *);
60 unsigned char *get_shell(void);
62 #ifdef HAVE_TERMIOS_H
63 #include <termios.h>
64 #endif
66 /* We define own cfmakeraw() wrapper because cfmakeraw() is broken on AIX,
67 * thus we fix it right away. We can also emulate cfmakeraw() if it is not
68 * available at all. Face it, we are just cool. */
69 void elinks_cfmakeraw(struct termios *t);
71 #endif