X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fsystem.h;h=0e84953a407dad736dc1d4f5885a9a164bb82619;hb=1150bdce04915bf329bd816307fb2507eba80e15;hp=f7cb3984c02194f2306faf003be643ee2780c6de;hpb=69c2342c24b734fcbcd7c5ab2acfb2b3837f5c5a;p=rocksndiamonds.git diff --git a/src/system.h b/src/system.h index f7cb3984..0e84953a 100644 --- a/src/system.h +++ b/src/system.h @@ -15,15 +15,9 @@ #ifndef SYSTEM_H #define SYSTEM_H -#if defined(MSDOS) -#define PLATFORM_MSDOS -#elif defined(WIN32) -#define PLATFORM_WIN32 -#else -#define PLATFORM_UNIX -#endif +#include "platform.h" -#if defined(MSDOS) +#if defined(PLATFORM_MSDOS) #include "msdos.h" #endif @@ -34,7 +28,7 @@ #endif -/* system-wide contant definitions */ +/* contant definitions */ #define DEFAULT_DEPTH 0 @@ -42,12 +36,24 @@ #define FULLSCREEN_AVAILABLE TRUE -/* system-wide type definitions */ +/* type definitions */ typedef int (*EventFilter)(const Event *); -/* system-wide function definitions */ +/* structure definitions */ + +struct SystemInfo +{ + boolean audio_available; + boolean audio_loops_available; + int audio_process_id; + int audio_process_pipe[2]; + int audio_fd; +}; + + +/* function definitions */ inline void InitBufferedDisplay(DrawBuffer *, DrawWindow *); inline int GetDisplayDepth(void); @@ -73,5 +79,6 @@ inline void InitEventFilter(EventFilter); inline boolean PendingEvent(void); inline void NextEvent(Event *event); inline Key GetEventKey(KeyEvent *, boolean); +inline boolean CheckCloseWindowEvent(ClientMessageEvent *); #endif /* SYSTEM_H */