filename | src/dreamcast.h |
changeset | 30:89b30313d757 |
prev | 26:ad258e3daaa5 |
next | 144:7f0714e89aaa |
author | nkeynes |
date | Tue Jan 10 13:58:35 2006 +0000 (18 years ago) |
permissions | -rw-r--r-- |
last change | Force redisasm when switching cpus Handle emits when gui hasn't been created yet (dump to stderr) |
view | annotate | diff | log | raw |
1 /**
2 * $Id: dreamcast.h,v 1.8 2005-12-25 05:56:55 nkeynes Exp $
3 *
4 * Public interface for dreamcast.c -
5 * Central switchboard for the system. This pulls all the individual modules
6 * together into some kind of coherent structure. This is also where you'd
7 * add Naomi support, if I ever get a board to play with...
8 *
9 * Copyright (c) 2005 Nathan Keynes.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 */
22 #ifndef dreamcast_H
23 #define dreamcast_H 1
25 #include <stdio.h>
26 #include <glib/gtypes.h>
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
32 #define DEFAULT_TIMESLICE_LENGTH 1000000 /* nanoseconds */
34 void dreamcast_init(void);
35 void dreamcast_reset(void);
36 void dreamcast_run(void);
37 void dreamcast_stop(void);
39 void dreamcast_load_config( const gchar *filename );
40 void dreamcast_save_config( const gchar *filename );
42 int dreamcast_save_state( const gchar *filename );
43 int dreamcast_load_state( const gchar *filename );
45 #ifdef __cplusplus
46 }
47 #endif
49 #endif /* !dreamcast_H */
.