]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - unix/unix.h
First phase of porting. pterm now compiles and runs under Linux+gtk.
[PuTTY.git] / unix / unix.h
1 #ifndef PUTTY_UNIX_H
2 #define PUTTY_UNIX_H
3
4 typedef void *Context;                 /* FIXME: probably needs changing */
5
6 extern Backend pty_backend;
7
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
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);
21
22 #define DEFAULT_CODEPAGE 0             /* FIXME: no idea how to do this */
23
24 #endif