X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmisc.h;h=2e979a09480c326f622fa31e6afaf1794b5079f2;hb=d7d97176a88ee47f893055480c76b9c05a253d05;hp=8b483c520871c4a239a8409858c00588a1526fec;hpb=e557b2b5d9951a4e692fd4e32a5cf45c84252c64;p=rocksndiamonds.git diff --git a/src/misc.h b/src/misc.h index 8b483c52..2e979a09 100644 --- a/src/misc.h +++ b/src/misc.h @@ -23,13 +23,14 @@ #define ERR_RETURN 0 #define ERR_EXIT 1 -#define ERR_EXITHELP 2 +#define ERR_EXIT_HELP 2 +#define ERR_EXIT_SOUNDSERVER 3 void InitCounter(void); unsigned long Counter(void); void Delay(unsigned long); -BOOL FrameReached(unsigned long *, unsigned long); -BOOL DelayReached(unsigned long *, unsigned long); +boolean FrameReached(unsigned long *, unsigned long); +boolean DelayReached(unsigned long *, unsigned long); void WaitUntilDelayReached(unsigned long *, unsigned long); char *int2str(int, int); unsigned int SimpleRND(unsigned int); @@ -39,5 +40,11 @@ char *GetLoginName(void); void MarkTileDirty(int, int); void GetOptions(char **); void Error(int, char *, ...); +void *checked_malloc(unsigned long); +char *getKeyNameFromKeySym(KeySym); +char *getX11KeyNameFromKeySym(KeySym); +KeySym getKeySymFromX11KeyName(char *); +char *getJoyNameFromJoySymbol(int); +int getJoySymbolFromJoyName(char *); #endif