summaryrefslogtreecommitdiff
path: root/src/hal.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
committerrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
commit24c4d5b06d231785db01500360c26815d8fe4d15 (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/hal.h
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/hal.h')
-rw-r--r--src/hal.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/hal.h b/src/hal.h
index dc8ba321e..ed6564e7d 100644
--- a/src/hal.h
+++ b/src/hal.h
@@ -5,26 +5,26 @@
#ifndef HAL_H
#define HAL_H
-typedef struct {
+struct HalCommonDriver {
const char *(*start)(const char * const *parm);
void (*stop)();
-} HalCommonDriver;
+};
-typedef struct {
+struct HalVideoDriver {
const char *(*start)(const char * const *parm);
void (*stop)();
void (*make_dirty)(int left, int top, int width, int height);
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)();
-} HalSoundDriver;
+};
-typedef struct {
+struct HalMusicDriver {
const char *(*start)(const char * const *parm);
void (*stop)();
@@ -32,7 +32,7 @@ typedef struct {
void (*stop_song)();
bool (*is_song_playing)();
void (*set_volume)(byte vol);
-} HalMusicDriver;
+};
extern HalMusicDriver *_music_driver;
extern HalSoundDriver *_sound_driver;