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