Release 940301
[wine/gsoc-2012-control.git] / include / prototypes.h
blobd8a319588b800a3d8ee66d82798e189655225f42
1 /* $Id: prototypes.h,v 1.3 1993/07/04 04:04:21 root Exp root $
2 */
3 /*
4 * Copyright Robert J. Amstadt, 1993
5 */
6 #ifndef PROTOTYPES_H
7 #define PROTOTYPES_H
9 #include <sys/types.h>
11 #include "neexe.h"
12 #include "segmem.h"
13 #include "wine.h"
14 #include "int21.h"
16 #ifndef WINELIB
17 extern struct segment_descriptor_s *
18 CreateSelectors(struct w_files *);
20 extern void PrintFileHeader(struct ne_header_s *ne_header);
21 extern void PrintSegmentTable(struct ne_segment_table_entry_s *seg_table,
22 int nentries);
23 extern void PrintRelocationTable(char *exe_ptr,
24 struct ne_segment_table_entry_s *seg_entry_p,
25 int segment);
26 extern int FixupSegment(struct w_files * wpnt, int segment_num);
27 extern struct dll_table_entry_s *FindDLLTable(char *dll_name);
28 extern unsigned int GetEntryPointFromOrdinal(struct w_files * wpnt,
29 int ordinal);
31 extern struct segment_descriptor_s *GetNextSegment(unsigned int flags,
32 unsigned int limit);
33 extern struct segment_descriptor_s *CreateNewSegments(int code_flag,
34 int read_only,
35 int length,
36 int n_segments);
37 extern struct mz_header_s *CurrentMZHeader;
38 extern struct ne_header_s *CurrentNEHeader;
39 extern int CurrentNEFile;
40 extern do_int1A(struct sigcontext_struct * context);
41 extern do_int21(struct sigcontext_struct * context);
43 extern void GetUnixDirName(char *rootdir, char *name);
44 extern char *GetDirectUnixFileName(char *dosfilename);
45 extern char *GetUnixFileName(char *dosfilename);
47 extern char *FindFile(char *buffer, int buflen, char *rootname, char **extensions, char *path);
48 extern char *WineIniFileName(void);
49 extern char *WinIniFileName(void);
50 extern struct dosdirent *DOS_opendir(char *dosdirname);
51 extern struct dosdirent *DOS_readdir(struct dosdirent *de);
52 extern void DOS_closedir(struct dosdirent *de);
54 #endif /* WINELIB */
56 #endif /* PROTOTYPES_H */