home *** CD-ROM | disk | FTP | other *** search
- #ifndef __WINv9t9_h__
- #define __WINv9t9_h__
-
- #if __cplusplus
- #include "winheaders.mch++"
- //#include "winheaders.pch++"
- #else
- #include "winheaders.mch"
- //#include "winheaders.pch"
- #endif
-
- #include "16bit.h"
- #include "log.h"
- #include "centry.h"
-
- extern int TM_Ticked;
- extern UINT timer; /* my timer */
- extern HACCEL hAccelerators;
- #define FAIL(x) do { MessageBox((HWND)NULL,x,"D'oh!",MB_OK); v9t9_term(1); } while (0)
-
- extern HINSTANCE myHInst, myHPreInst; // startup params for video modules
- extern int mynCmdShow;
-
- LRESULT CALLBACK KeyboardMessageHandler(HWND hWnd, UINT messg, WPARAM wParam, LPARAM lParam );
-
- //extern BYTE win_keymap[]; /* map of keys */
-
- //BOOL win_registerWindowClasses(HINSTANCE hInst, HINSTANCE hPreInst);
- //BOOL win_createWindows(HINSTANCE hInst, int nCmdShow);
-
- void win_StatusLine(int which, char *text);
-
- void initlog(void);
- void termlog(void);
-
- //void win_ShutDown(void);
- void win_video_switchmodes(void);
- //void win_video_complete_redraw(void);
-
- int win_command(HWND hWnd, WORD cmd);
-
- /////
-
- void
- win32_system_pause(void);
-
- void
- win32_system_log(u32 srcflags, const char *text);
-
- //void
- //win32_system_statusline(int line, const char *text);
- void
- win32_system_getcommands(void);
-
- void
- win32_system_report_status(status_item item, va_list va);
-
- void
- win32_system_execution_paused(bool paused);
-
- void
- win32_system_debugger_enabled(bool enabled);
-
- int
- win32_system_init(void);
-
- int
- win32_system_loop(void);
-
- /* handlers for GTK frontend */
-
- int
- GTK_system_init(void);
-
- int
- GTK_system_loop(void);
-
- //void
- //GTK_system_getcommands(void);
-
- void
- GTK_system_log(u32 srcflags, const char *text);
-
- //void
- //GTK_system_statusline(int line, const char *text);
-
- int
- win32_gtk_system_loop(void);
-
-
- //#if defined(WIN32_KEYBOARD) && defined(WIN32_VIDEO)
- #define HAS_DRAWDIB 1
- #define HAS_DDRAW 1
- //#endif
-
- //#if defined(GTK_KEYBOARD) && defined(GTK_VIDEO)
- #define HAS_GTK 1
- //#endif
-
- enum {
- FE_UNKNOWN,
- #if HAS_DRAWDIB
- FE_DRAWDIB,
- #endif
- #if HAS_DDRAW
- FE_DDRAW,
- #endif
- #if HAS_GTK
- FE_GTK,
- #endif
- };
-
- extern int win_frontend;
-
- #include "cexit.h"
-
- #endif
-