rnd-19981108-1
[rocksndiamonds.git] / src / misc.h
index 5c23eb76427069cae31c5f19e175f8d2e095b911..798e61efe0431933151c8a36c9e1afe1bcb4c09a 100644 (file)
 #define NEW_RANDOMIZE          -1
 
 #define ERR_RETURN             0
-#define ERR_EXIT               1
-#define ERR_EXIT_HELP          2
-#define ERR_EXIT_SOUNDSERVER   3
+#define ERR_WARN               (1 << 0)
+#define ERR_EXIT               (1 << 1)
+#define ERR_HELP               (1 << 2)
+#define ERR_SOUNDSERVER                (1 << 3)
+#define ERR_EXIT_HELP          (ERR_EXIT | ERR_HELP)
+#define ERR_EXIT_SOUNDSERVER   (ERR_EXIT | ERR_SOUNDSERVER)
 
 void InitCounter(void);
 unsigned long Counter(void);
@@ -36,11 +39,16 @@ char *int2str(int, int);
 unsigned int SimpleRND(unsigned int);
 unsigned int RND(unsigned int);
 unsigned int InitRND(long);
-char *GetLoginName(void);
+char *getLoginName(void);
+char *getHomeDir(void);
 void MarkTileDirty(int, int);
 void GetOptions(char **);
 void Error(int, char *, ...);
 void *checked_malloc(unsigned long);
-char *getKeySymName(KeySym);
+char *getKeyNameFromKeySym(KeySym);
+char *getX11KeyNameFromKeySym(KeySym);
+KeySym getKeySymFromX11KeyName(char *);
+char *getJoyNameFromJoySymbol(int);
+int getJoySymbolFromJoyName(char *);
 
 #endif