tLogging functions now "work" properly in the client as well as in the server, … | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 010239fbe0cf8f453f0f09a0af10bb090e977997 | |
parent 7076fbbbd247a10b36adcfdeb665cc36edfdbbd6 | |
Author: Ben Webb <[email protected]> | |
Date: Fri, 24 May 2002 11:34:00 +0000 | |
Logging functions now "work" properly in the client as well as in the server, | |
and are used to report on plugin initialisation status; dopelog now takes | |
one or more flags, LF_SERVER being the only one defined so far. | |
Diffstat: | |
M src/dopewars.h | 7 ++++++- | |
1 file changed, 6 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/src/dopewars.h b/src/dopewars.h | |
t@@ -154,6 +154,10 @@ typedef enum { | |
PEYOTE, SHROOMS, SPEED, WEED | |
} DrugIndex; | |
+typedef enum { | |
+ LF_SERVER = (1 << 0) | |
+} LogFlags; | |
+ | |
struct LOG { | |
gchar *File; | |
gint Level; | |
t@@ -424,7 +428,8 @@ void PrintConfigValue(int GlobalIndex, int StructIndex, | |
gboolean SetConfigValue(int GlobalIndex, int StructIndex, | |
gboolean IndexGiven, GScanner *scanner); | |
gboolean IsCop(Player *Play); | |
-void dopelog(int loglevel, const gchar *format, ...); | |
+void dopelog(const int loglevel, const LogFlags flags, | |
+ const gchar *format, ...); | |
GLogLevelFlags LogMask(void); | |
GString *GetLogString(GLogLevelFlags log_level, const gchar *message); | |
void RestoreConfig(void); |