chiark / gitweb /
Initial revision
[ssr] / StraySrc / SDLS / cdll / h / readdef
1 /*
2  * readdef.h
3  *
4  * Read DLL Binder definition files
5  *
6  * © 1994-1998 Straylight
7  */
8
9 /*----- Licensing note ----------------------------------------------------*
10  *
11  * This file is part of Straylight's Dynamic Linking System (SDLS)
12  *
13  * SDLS is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2, or (at your option)
16  * any later version.
17  *
18  * SDLS is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with SDLS.  If not, write to the Free Software Foundation,
25  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26  */
27
28 #ifndef __readdef_h
29 #define __readdef_h
30
31 #ifndef __hashtable_h
32   #include "hashtable.h"
33 #endif
34
35 enum
36 {
37   rd_name=1,
38   rd_version=2,
39   rd_cright=4
40 };
41
42 enum
43 {
44   rdFlag_shortEntry=1,
45   rdFlag_noNames=2
46 };
47
48 typedef struct
49 {
50   hashtable sym;
51   hashtable vsym;
52   hashtable obj;
53   int version;
54   char name[256];
55   char *dllpath;
56   char copyright[256];
57   int errored;
58   int apptbl;
59   unsigned flags;
60 }
61 readdef_info;
62
63 int cistrcmp(const char *s1,const char *s2);
64 int readdef(char *file,readdef_info *info);
65
66 #endif