X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Funix.h;h=909b3d49ec2a5c87d0b504822b064791d3150798;hb=06434ffc713ff60f7631b48e0b1463fcfc92684b;hp=384789aa1acf090c0fcbca89d0f003d275537751;hpb=1b3eb3e20d216fdd0a37e37a818e4b074f1d08ba;p=PuTTY.git diff --git a/unix/unix.h b/unix/unix.h index 384789aa..909b3d49 100644 --- a/unix/unix.h +++ b/unix/unix.h @@ -45,8 +45,8 @@ extern Backend pty_backend; /* Simple wraparound timer function */ unsigned long getticks(void); /* based on gettimeofday(2) */ #define GETTICKCOUNT getticks -#define TICKSPERSEC 1000000 /* gettimeofday returns microseconds */ -#define CURSORBLINK 450000 /* no standard way to set this */ +#define TICKSPERSEC 1000 /* we choose to use milliseconds */ +#define CURSORBLINK 450 /* no standard way to set this */ #define WCHAR wchar_t #define BYTE unsigned char @@ -60,7 +60,8 @@ long get_windowid(void *frontend); void *get_window(void *frontend); /* void * to avoid depending on gtk.h */ /* Things pterm.c needs from gtkdlg.c */ -int do_config_box(const char *title, Config *cfg, int midsession); +int do_config_box(const char *title, Config *cfg, + int midsession, int protcfginfo); void fatal_message_box(void *window, char *msg); void about_box(void *window); void *eventlogstuff_new(void); @@ -111,8 +112,9 @@ void unix_setup_config_box(struct controlbox *b, int midsession, void *window); #define strnicmp strncasecmp #define stricmp strcasecmp -/* BSD-semantics version of signal() */ +/* BSD-semantics version of signal(), and another helpful function */ void (*putty_signal(int sig, void (*func)(int)))(int); +void block_signal(int sig, int block_it); /* * Exports from unicode.c.