Don't define MZ_SUPPORTED on non-i386 platforms.
[wine] / include / dosexe.h
1 /*
2  * DOS EXE loader
3  *
4  * Copyright 1998 Ove Kåven
5  */
6
7 #ifndef __WINE_DOSEXE_H
8 #define __WINE_DOSEXE_H
9
10 #include <sys/types.h>
11 #include "windows.h"
12 #include "winnt.h"
13 #include "sig_context.h"
14 #include "wintypes.h"
15
16 typedef struct _DOSTASK {
17  LPVOID img;
18  unsigned img_ofs;
19  WORD psp_seg,load_seg;
20  WORD init_cs,init_ip,init_ss,init_sp;
21  WORD xms_seg;
22  WORD dpmi_seg,dpmi_sel,dpmi_flag;
23  DWORD wrap_ofs,call_ofs;
24  WORD system_timer;
25  HMODULE16 hModule;
26  char mm_name[128];
27  int mm_fd;
28  int read_pipe,write_pipe;
29  pid_t task;
30 } DOSTASK, *LPDOSTASK;
31
32 #if defined(linux) && defined(__i386__)
33
34 #define MZ_SUPPORTED
35
36 struct _NE_MODULE;
37
38 extern int MZ_InitTask( LPDOSTASK lpDosTask );
39 extern int MZ_InitMemory( LPDOSTASK lpDosTask, struct _NE_MODULE *pModule );
40 extern void MZ_KillModule( LPDOSTASK lpDosTask );
41 extern LPDOSTASK MZ_AllocDPMITask( HMODULE16 hModule );
42
43 #endif /* linux-i386 */
44
45 #define V86_FLAG 0x00020000
46
47 extern void (*ctx_debug_call)( int, CONTEXT* );
48 extern BOOL32 (*instr_emu_call)( SIGCONTEXT* );
49
50 extern void MZ_Tick( WORD handle );
51
52 extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
53                                      LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
54 extern int DOSVM_Enter( PCONTEXT context );
55
56 #endif /* __WINE_DOSEXE_H */