Search
lxdream.org :: lxdream/src/dream.h
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
nkeynes@1
     1
/*
nkeynes@1
     2
 * Application-wide declarations
nkeynes@1
     3
 */
nkeynes@1
     4
#ifndef dream_H
nkeynes@1
     5
#define dream_H 1
nkeynes@1
     6
nkeynes@1
     7
#ifdef __cplusplus
nkeynes@1
     8
extern "C" {
nkeynes@1
     9
#if 0
nkeynes@1
    10
}
nkeynes@1
    11
#endif
nkeynes@1
    12
#endif
nkeynes@1
    13
nkeynes@1
    14
#define EMIT_FATAL 0
nkeynes@1
    15
#define EMIT_ERR 1
nkeynes@1
    16
#define EMIT_WARN 2
nkeynes@1
    17
#define EMIT_INFO 3
nkeynes@1
    18
#define EMIT_DEBUG 4
nkeynes@1
    19
#define EMIT_TRACE 5
nkeynes@1
    20
nkeynes@1
    21
#ifndef MODULE_ID
nkeynes@1
    22
#define MODULE_ID 0
nkeynes@1
    23
#endif
nkeynes@1
    24
nkeynes@1
    25
void emit( int level, int source, char *msg, ... );
nkeynes@1
    26
nkeynes@1
    27
#define FATAL( ... ) emit( EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    28
#define ERROR( ... ) emit( EMIT_ERR, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    29
#define WARN( ... ) emit( EMIT_WARN, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    30
#define INFO( ... ) emit( EMIT_INFO, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    31
#define DEBUG( ... ) emit( EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    32
#define TRACE( ... ) emit( EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    33
nkeynes@1
    34
#define BIOS_PATH "../bios"
nkeynes@1
    35
nkeynes@1
    36
#ifdef __cplusplus
nkeynes@1
    37
}
nkeynes@1
    38
#endif
nkeynes@1
    39
#endif
.