]> git.ipfire.org Git - thirdparty/cups.git/blob - pstoraster/imainarg.h
Import cups.org releases
[thirdparty/cups.git] / pstoraster / imainarg.h
1 /* Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
2
3 This file is part of GNU Ghostscript.
4
5 GNU Ghostscript is distributed in the hope that it will be useful, but
6 WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
7 to anyone for the consequences of using it or for whether it serves any
8 particular purpose or works at all, unless he says so in writing. Refer
9 to the GNU General Public License for full details.
10
11 Everyone is granted permission to copy, modify and redistribute GNU
12 Ghostscript, but only under the conditions described in the GNU General
13 Public License. A copy of this license is supposed to have been given
14 to you along with GNU Ghostscript so you can know your rights and
15 responsibilities. It should be in a file named COPYING. Among other
16 things, the copyright notice and this notice must be preserved on all
17 copies.
18
19 Aladdin Enterprises supports the work of the GNU Project, but is not
20 affiliated with the Free Software Foundation or the GNU Project. GNU
21 Ghostscript, as distributed by Aladdin Enterprises, does not require any
22 GNU software to build or run it.
23 */
24
25 /*$Id$ */
26 /* argv/argc interface to imainarg.c */
27
28 #ifndef imainarg_INCLUDED
29 # define imainarg_INCLUDED
30
31 /* Define an opaque type for an interpreter instance. See imain.h. */
32 #ifndef gs_main_instance_DEFINED
33 # define gs_main_instance_DEFINED
34 typedef struct gs_main_instance_s gs_main_instance;
35
36 #endif
37
38 /*
39 * As a shortcut for very high-level clients, we define a single call
40 * that does the equivalent of command line invocation, passing argc
41 * and argv. This call includes calling init0 through init2.
42 * argv should really be const char *[], but ANSI C requires writable
43 * strings (which, however, it forbids the callee to modify!).
44 */
45 int gs_main_init_with_args(P3(gs_main_instance * minst, int argc,
46 char *argv[]));
47
48 /*
49 * Run the 'start' procedure (after processing the command line).
50 * Note that this procedure exits rather than returning.
51 */
52 void gs_main_run_start(P1(gs_main_instance * minst));
53
54 #endif /* imainarg_INCLUDED */