Put the main() and wmain() routines for CLI programs into a separate file.
[metze/wireshark/wip.git] / cli_main.h
1 /*
2  * Declaration of the real main routine, for all CLI programs where the
3  * main routine should get UTF-8 arguments on Windows.  In those programs,
4  * in the file that defines the main routine, include this header and define
5  * the main routine as real_main() rather than main(), and build those
6  * programs with cli_main.c and link with the object file.
7  *
8  * This is used in software licensed under the GPLv2, and its license MUST
9  * be compatible with that license.
10  *
11  * This is used in software licensed under the Apache 2.0 license, and its
12  * license MUST be compatible with that license.
13  *
14  * For that purpose, we use the MIT (X11) license.
15  *
16  * SPDX-License-Identifier: MIT
17  */
18
19 extern int real_main(int argc, char *argv[]);