f7f27309 |
1 | #ifndef PUTTY_UNIX_H |
2 | #define PUTTY_UNIX_H |
3 | |
4 | typedef void *Context; /* FIXME: probably needs changing */ |
5 | |
1709795f |
6 | extern Backend pty_backend; |
7 | |
f7f27309 |
8 | /* Simple wraparound timer function */ |
9 | unsigned long getticks(void); /* based on gettimeofday(2) */ |
10 | #define GETTICKCOUNT getticks |
11 | #define TICKSPERSEC 1000000 /* gettimeofday returns microseconds */ |
12 | #define CURSORBLINK 400000 /* FIXME: need right way to do this */ |
13 | |
14 | #define WCHAR wchar_t |
15 | #define BYTE unsigned char |
16 | |
1709795f |
17 | int is_dbcs_leadbyte(int codepage, char byte); |
18 | int mb_to_wc(int codepage, int flags, char *mbstr, int mblen, |
19 | wchar_t *wcstr, int wclen); |
20 | void init_ucs(void); |
f7f27309 |
21 | |
22 | #define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */ |
23 | |
24 | #endif |