Search
lxdream.org :: lxdream/src/dream.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 1:eea311cfd33e
next2:42349f6ea216
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (15 years ago)
permissions -rw-r--r--
last change This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/dream.h Sat Mar 13 00:03:32 2004 +0000
1.3 @@ -0,0 +1,39 @@
1.4 +/*
1.5 + * Application-wide declarations
1.6 + */
1.7 +#ifndef dream_H
1.8 +#define dream_H 1
1.9 +
1.10 +#ifdef __cplusplus
1.11 +extern "C" {
1.12 +#if 0
1.13 +}
1.14 +#endif
1.15 +#endif
1.16 +
1.17 +#define EMIT_FATAL 0
1.18 +#define EMIT_ERR 1
1.19 +#define EMIT_WARN 2
1.20 +#define EMIT_INFO 3
1.21 +#define EMIT_DEBUG 4
1.22 +#define EMIT_TRACE 5
1.23 +
1.24 +#ifndef MODULE_ID
1.25 +#define MODULE_ID 0
1.26 +#endif
1.27 +
1.28 +void emit( int level, int source, char *msg, ... );
1.29 +
1.30 +#define FATAL( ... ) emit( EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
1.31 +#define ERROR( ... ) emit( EMIT_ERR, MODULE_ID, __VA_ARGS__ )
1.32 +#define WARN( ... ) emit( EMIT_WARN, MODULE_ID, __VA_ARGS__ )
1.33 +#define INFO( ... ) emit( EMIT_INFO, MODULE_ID, __VA_ARGS__ )
1.34 +#define DEBUG( ... ) emit( EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
1.35 +#define TRACE( ... ) emit( EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
1.36 +
1.37 +#define BIOS_PATH "../bios"
1.38 +
1.39 +#ifdef __cplusplus
1.40 +}
1.41 +#endif
1.42 +#endif
.