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