projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20001128-1-src
[rocksndiamonds.git]
/
src
/
system.h
diff --git
a/src/system.h
b/src/system.h
index f7cb3984c02194f2306faf003be643ee2780c6de..0e84953a407dad736dc1d4f5885a9a164bb82619 100644
(file)
--- a/
src/system.h
+++ b/
src/system.h
@@
-15,15
+15,9
@@
#ifndef SYSTEM_H
#define SYSTEM_H
#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
#include "msdos.h"
#endif
@@
-34,7
+28,7
@@
#endif
#endif
-/*
system-wide
contant definitions */
+/* contant definitions */
#define DEFAULT_DEPTH 0
#define DEFAULT_DEPTH 0
@@
-42,12
+36,24
@@
#define FULLSCREEN_AVAILABLE TRUE
#define FULLSCREEN_AVAILABLE TRUE
-/*
system-wide
type definitions */
+/* type definitions */
typedef int (*EventFilter)(const Event *);
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);
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 PendingEvent(void);
inline void NextEvent(Event *event);
inline Key GetEventKey(KeyEvent *, boolean);
+inline boolean CheckCloseWindowEvent(ClientMessageEvent *);
#endif /* SYSTEM_H */
#endif /* SYSTEM_H */