Debian Codegraph @

mingw-w64-tools/genidl/src/genidl_cfg.h

raw
1 /*
2 genidl - Generate interface defintion language listing from a
3 Portable Executable.
4 Copyright (C) 2009-2016 mingw-w64 project
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef _GENIDL_H
21 #define _GENIDL_H
22
23 #ifdef _WIN32
24 #include <windows.h>
25 #endif
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <string.h>
29 #include <malloc.h>
30 #include <memory.h>
31 #include <stdarg.h>
32 #include <stdint.h>
33
34 #if 0
35 typedef unsigned long long uint64_t;
36 typedef signed long long int64_t;
37 typedef unsigned int uint32_t;
38 typedef signed int int32_t;
39 typedef unsigned short uint16_t;
40 typedef signed short int16_t;
41 #endif
42
43 typedef struct sCfgAlias {
44 struct sCfgAlias *next;
45 char name[1];
46 } sCfgAlias;
47
48 typedef struct sCfgItem {
49 struct sCfgItem *next;
50 char *type;
51 char name[1];
52 } sCfgItem;
53
54 typedef struct sCfgLib {
55 struct sCfgLib *next;
56 sCfgAlias *alias;
57 sCfgItem *item;
58 char name[1];
59 } sCfgLib;
60
61 int genidl_read_config (const char *fname);
62 int genidl_save_config_fp (FILE *fp);
63 int genidl_save_config (const char *fname);
64 int genidl_ismodified_config (void);
65
66 int genidl_add_lib (const char *lib);
67 int genidl_add_lib_alias (const char *lib, const char *alias);
68 int genidl_add_lib_item (const char *lib, const char *name, const char *typ);
69 int genidl_del_lib_item (const char *lib);
70 const char *genidl_find_type (const char *lib, const char *name);
71
72 char *genidl_strlwr (char *s);
73
74 #endif