--- a/src/hal.h Mon Mar 19 09:33:17 2007 +0000
+++ b/src/hal.h Mon Mar 19 12:38:16 2007 +0000
@@ -5,34 +5,34 @@
#ifndef HAL_H
#define HAL_H
-typedef struct {
+struct HalCommonDriver {
const char *(*start)(const char * const *parm);
- void (*stop)(void);
-} HalCommonDriver;
+ void (*stop)();
+};
-typedef struct {
+struct HalVideoDriver {
const char *(*start)(const char * const *parm);
- void (*stop)(void);
+ void (*stop)();
void (*make_dirty)(int left, int top, int width, int height);
- void (*main_loop)(void);
+ void (*main_loop)();
bool (*change_resolution)(int w, int h);
void (*toggle_fullscreen)(bool fullscreen);
-} HalVideoDriver;
+};
-typedef struct {
+struct HalSoundDriver {
const char *(*start)(const char * const *parm);
- void (*stop)(void);
-} HalSoundDriver;
+ void (*stop)();
+};
-typedef struct {
+struct HalMusicDriver {
const char *(*start)(const char * const *parm);
- void (*stop)(void);
+ void (*stop)();
void (*play_song)(const char *filename);
- void (*stop_song)(void);
- bool (*is_song_playing)(void);
+ void (*stop_song)();
+ bool (*is_song_playing)();
void (*set_volume)(byte vol);
-} HalMusicDriver;
+};
extern HalMusicDriver *_music_driver;
extern HalSoundDriver *_sound_driver;