Search
lxdream.org :: lxdream/src/dream.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 2:42349f6ea216
prev1:eea311cfd33e
next9:2784c7660165
author nkeynes
date Sat Aug 21 06:15:49 2004 +0000 (16 years ago)
permissions -rw-r--r--
last change Commit changes into cvs
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@2
     7
#include <stdint.h>
nkeynes@2
     8
nkeynes@1
     9
#ifdef __cplusplus
nkeynes@1
    10
extern "C" {
nkeynes@1
    11
#if 0
nkeynes@1
    12
}
nkeynes@1
    13
#endif
nkeynes@1
    14
#endif
nkeynes@1
    15
nkeynes@1
    16
#define EMIT_FATAL 0
nkeynes@1
    17
#define EMIT_ERR 1
nkeynes@1
    18
#define EMIT_WARN 2
nkeynes@1
    19
#define EMIT_INFO 3
nkeynes@1
    20
#define EMIT_DEBUG 4
nkeynes@1
    21
#define EMIT_TRACE 5
nkeynes@1
    22
nkeynes@1
    23
#ifndef MODULE_ID
nkeynes@1
    24
#define MODULE_ID 0
nkeynes@1
    25
#endif
nkeynes@1
    26
nkeynes@1
    27
void emit( int level, int source, char *msg, ... );
nkeynes@1
    28
nkeynes@1
    29
#define FATAL( ... ) emit( EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    30
#define ERROR( ... ) emit( EMIT_ERR, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    31
#define WARN( ... ) emit( EMIT_WARN, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    32
#define INFO( ... ) emit( EMIT_INFO, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    33
#define DEBUG( ... ) emit( EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    34
#define TRACE( ... ) emit( EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
nkeynes@1
    35
nkeynes@1
    36
#define BIOS_PATH "../bios"
nkeynes@1
    37
nkeynes@1
    38
#ifdef __cplusplus
nkeynes@1
    39
}
nkeynes@1
    40
#endif
nkeynes@1
    41
#endif
.