Search
lxdream.org :: lxdream/src/dream.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 437:2c259474b474
prev435:7a5d71e8560b
next477:9a373f2ff009
author nkeynes
date Thu Oct 11 08:22:03 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add speed meter to main window
Add sunken border around video area
Add debugger menu item
Move logging out to util.c
file annotate diff log raw
1.1 --- a/src/dream.h Wed Oct 10 11:02:04 2007 +0000
1.2 +++ b/src/dream.h Thu Oct 11 08:22:03 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dream.h,v 1.14 2007-10-10 11:02:04 nkeynes Exp $
1.6 + * $Id: dream.h,v 1.15 2007-10-11 08:22:03 nkeynes Exp $
1.7 *
1.8 * Miscellaneous application-wide declarations (mainly logging atm)
1.9 *
1.10 @@ -103,14 +103,14 @@
1.11 #define MODULE unknown_module
1.12 #endif
1.13
1.14 -void emit( void *, int level, const char *source, const char *msg, ... );
1.15 +void log_message( void *, int level, const char *source, const char *msg, ... );
1.16
1.17 -#define FATAL( ... ) emit( NULL, EMIT_FATAL, MODULE.name, __VA_ARGS__ )
1.18 -#define ERROR( ... ) emit( NULL, EMIT_ERR, MODULE.name, __VA_ARGS__ )
1.19 -#define WARN( ... ) emit( NULL, EMIT_WARN, MODULE.name, __VA_ARGS__ )
1.20 -#define INFO( ... ) emit( NULL, EMIT_INFO, MODULE.name, __VA_ARGS__ )
1.21 -#define DEBUG( ... ) emit( NULL, EMIT_DEBUG, MODULE.name, __VA_ARGS__ )
1.22 -#define TRACE( ... ) emit( NULL, EMIT_TRACE, MODULE.name, __VA_ARGS__ )
1.23 +#define FATAL( ... ) log_message( NULL, EMIT_FATAL, MODULE.name, __VA_ARGS__ )
1.24 +#define ERROR( ... ) log_message( NULL, EMIT_ERR, MODULE.name, __VA_ARGS__ )
1.25 +#define WARN( ... ) log_message( NULL, EMIT_WARN, MODULE.name, __VA_ARGS__ )
1.26 +#define INFO( ... ) log_message( NULL, EMIT_INFO, MODULE.name, __VA_ARGS__ )
1.27 +#define DEBUG( ... ) log_message( NULL, EMIT_DEBUG, MODULE.name, __VA_ARGS__ )
1.28 +#define TRACE( ... ) log_message( NULL, EMIT_TRACE, MODULE.name, __VA_ARGS__ )
1.29
1.30 void fwrite_string( const char *s, FILE *f );
1.31 int fread_string( char *s, int maxlen, FILE *f );
.