[WIDL] Sync with Wine Staging 2.16. CORE-13762
[reactos.git] / sdk / tools / widl / widl.h
1 /*
2 * IDL Compiler
3 *
4 * Copyright 2002 Ove Kaaven
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library 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 GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21 #ifndef __WIDL_WIDL_H
22 #define __WIDL_WIDL_H
23
24 #include "widltypes.h"
25
26 #include <time.h>
27
28 extern int debuglevel;
29 #define DEBUGLEVEL_NONE 0x0000
30 #define DEBUGLEVEL_CHAT 0x0001
31 #define DEBUGLEVEL_DUMP 0x0002
32 #define DEBUGLEVEL_TRACE 0x0004
33 #define DEBUGLEVEL_PPMSG 0x0008
34 #define DEBUGLEVEL_PPLEX 0x0010
35 #define DEBUGLEVEL_PPTRACE 0x0020
36
37 extern int pedantic;
38 extern int do_everything;
39 extern int do_header;
40 extern int do_typelib;
41 extern int do_old_typelib;
42 extern int do_proxies;
43 extern int do_client;
44 extern int do_server;
45 extern int do_regscript;
46 extern int do_idfile;
47 extern int do_dlldata;
48 extern int old_names;
49 extern int do_win32;
50 extern int do_win64;
51 extern int win32_packing;
52 extern int win64_packing;
53 extern int winrt_mode;
54 extern int use_abi_namespace;
55
56 extern char *input_name;
57 extern char *input_idl_name;
58 extern char *header_name;
59 extern char *header_token;
60 extern char *local_stubs_name;
61 extern char *typelib_name;
62 extern char *dlldata_name;
63 extern char *proxy_name;
64 extern char *proxy_token;
65 extern char *client_name;
66 extern char *client_token;
67 extern char *server_name;
68 extern char *server_token;
69 extern char *regscript_name;
70 extern char *regscript_token;
71 extern const char *prefix_client;
72 extern const char *prefix_server;
73 extern unsigned int pointer_size;
74 extern time_t now;
75
76 extern int line_number;
77 extern int char_number;
78
79 enum stub_mode
80 {
81 MODE_Os, /* inline stubs */
82 MODE_Oi, /* old-style interpreted stubs */
83 MODE_Oif /* new-style fully interpreted stubs */
84 };
85 extern enum stub_mode get_stub_mode(void);
86
87 extern void write_header(const statement_list_t *stmts);
88 extern void write_id_data(const statement_list_t *stmts);
89 extern void write_proxies(const statement_list_t *stmts);
90 extern void write_client(const statement_list_t *stmts);
91 extern void write_server(const statement_list_t *stmts);
92 extern void write_regscript(const statement_list_t *stmts);
93 extern void output_typelib_regscript( const typelib_t *typelib );
94 extern void write_local_stubs(const statement_list_t *stmts);
95 extern void write_dlldata(const statement_list_t *stmts);
96
97 extern void start_cplusplus_guard(FILE *fp);
98 extern void end_cplusplus_guard(FILE *fp);
99
100 #endif