Search
lxdream.org :: lxdream/src/dreamcast.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.h
changeset 23:1ec3acd0594d
prev19:9da7a8e38f9d
next26:ad258e3daaa5
author nkeynes
date Fri Dec 23 11:44:55 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Start of "real" time slices, general structure in place now
file annotate diff log raw
nkeynes@2
     1
nkeynes@2
     2
#ifndef dreamcast_H
nkeynes@2
     3
#define dreamcast_H 1
nkeynes@2
     4
nkeynes@15
     5
#include <stdlib.h>
nkeynes@15
     6
#include <stdio.h>
nkeynes@18
     7
#include <glib/gtypes.h>
nkeynes@15
     8
nkeynes@15
     9
#ifdef __cplusplus
nkeynes@15
    10
extern "C" {
nkeynes@15
    11
#endif
nkeynes@15
    12
nkeynes@23
    13
#define DREAMCAST_SAVE_MAGIC "%!-DreamOn!Save\0"
nkeynes@23
    14
#define DREAMCAST_SAVE_VERSION 0x00010000
nkeynes@23
    15
nkeynes@23
    16
#define TIMESLICE_LENGTH 1000 /* microseconds */
nkeynes@23
    17
nkeynes@23
    18
#define STATE_RUNNING 1
nkeynes@23
    19
#define STATE_STOPPING 2
nkeynes@23
    20
#define STATE_STOPPED 3 
nkeynes@23
    21
nkeynes@2
    22
void dreamcast_init(void);
nkeynes@2
    23
void dreamcast_reset(void);
nkeynes@23
    24
void dreamcast_run(void);
nkeynes@2
    25
void dreamcast_stop(void);
nkeynes@2
    26
nkeynes@18
    27
int dreamcast_save_state( const gchar *filename );
nkeynes@18
    28
int dreamcast_load_state( const gchar *filename );
nkeynes@18
    29
nkeynes@18
    30
int open_file( gchar *filename );
nkeynes@19
    31
int load_bin_file( gchar *filename );
nkeynes@15
    32
nkeynes@15
    33
#ifdef __cplusplus
nkeynes@15
    34
}
nkeynes@15
    35
#endif
nkeynes@15
    36
nkeynes@2
    37
#endif /* !dream_machine_H */
.