Search
lxdream.org :: lxdream/src/dream.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 30:89b30313d757
prev26:ad258e3daaa5
next31:495e480360d7
author nkeynes
date Sun Dec 25 05:57:00 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Change timeslice to nanoseconds (was microseconds)
Generize single step (now steps through active CPU)
Add lots of header blocks
view annotate diff log raw
     1 /*
     2  * Application-wide declarations
     3  */
     4 #ifndef dream_H
     5 #define dream_H 1
     7 #include <stdlib.h>
     8 #include <stdint.h>
     9 #include <string.h>
    10 #include <glib/gtypes.h>
    12 #ifdef __cplusplus
    13 extern "C" {
    14 #if 0
    15 }
    16 #endif
    17 #endif
    19 #define EMIT_FATAL 0
    20 #define EMIT_ERR 1
    21 #define EMIT_WARN 2
    22 #define EMIT_INFO 3
    23 #define EMIT_DEBUG 4
    24 #define EMIT_TRACE 5
    26 #ifndef MODULE_ID
    27 #define MODULE_ID 0
    28 #endif
    30 void emit( void *, int level, int source, const char *msg, ... );
    32 #define FATAL( ... ) emit( NULL, EMIT_FATAL, MODULE_ID, __VA_ARGS__ )
    33 #define ERROR( ... ) emit( NULL, EMIT_ERR, MODULE_ID, __VA_ARGS__ )
    34 #define WARN( ... ) emit( NULL, EMIT_WARN, MODULE_ID, __VA_ARGS__ )
    35 #define INFO( ... ) emit( NULL, EMIT_INFO, MODULE_ID, __VA_ARGS__ )
    36 #define DEBUG( ... ) emit( NULL, EMIT_DEBUG, MODULE_ID, __VA_ARGS__ )
    37 #define TRACE( ... ) emit( NULL, EMIT_TRACE, MODULE_ID, __VA_ARGS__ )
    39 #define BIOS_PATH "../bios"
    41 #ifdef __cplusplus
    42 }
    43 #endif
    44 #endif
.