Search
lxdream.org :: lxdream/src/dream.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 9:2784c7660165
prev2:42349f6ea216
next26:ad258e3daaa5
author nkeynes
date Mon Dec 12 10:37:41 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Use cpu-specific is_valid_page function
file annotate diff log raw
1.1 --- a/src/dream.h Sat Aug 21 06:15:49 2004 +0000
1.2 +++ b/src/dream.h Mon Dec 12 10:37:41 2005 +0000
1.3 @@ -4,7 +4,9 @@
1.4 #ifndef dream_H
1.5 #define dream_H 1
1.6
1.7 +#include <stdlib.h>
1.8 #include <stdint.h>
1.9 +#include <string.h>
1.10
1.11 #ifdef __cplusplus
1.12 extern "C" {
1.13 @@ -24,14 +26,14 @@
1.14 #define MODULE_ID 0
1.15 #endif
1.16
1.17 -void emit( int level, int source, char *msg, ... );
1.18 +void emit( void *, int level, int source, char *msg, ... );
1.19
1.20 -#define FATAL( ... ) emit( EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
1.21 -#define ERROR( ... ) emit( EMIT_ERR, MODULE_ID, __VA_ARGS__ )
1.22 -#define WARN( ... ) emit( EMIT_WARN, MODULE_ID, __VA_ARGS__ )
1.23 -#define INFO( ... ) emit( EMIT_INFO, MODULE_ID, __VA_ARGS__ )
1.24 -#define DEBUG( ... ) emit( EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
1.25 -#define TRACE( ... ) emit( EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
1.26 +#define FATAL( ... ) emit( NULL, EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
1.27 +#define ERROR( ... ) emit( NULL, EMIT_ERR, MODULE_ID, __VA_ARGS__ )
1.28 +#define WARN( ... ) emit( NULL, EMIT_WARN, MODULE_ID, __VA_ARGS__ )
1.29 +#define INFO( ... ) emit( NULL, EMIT_INFO, MODULE_ID, __VA_ARGS__ )
1.30 +#define DEBUG( ... ) emit( NULL, EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
1.31 +#define TRACE( ... ) emit( NULL, EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
1.32
1.33 #define BIOS_PATH "../bios"
1.34
.