xref: /plan9/sys/src/cmd/gs/src/gslib.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1995, 1996 Aladdin Enterprises.  All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: gslib.h,v 1.6 2004/08/04 19:36:12 stefan Exp $ */
18 /* Library initialization and finalization interface */
19 /* Requires stdio.h, gsmemory.h */
20 
21 #ifndef gslib_INCLUDED
22 #  define gslib_INCLUDED
23 
24 /*
25  * Initialize the library.  gs_lib_init does all of the initialization,
26  * using the C heap for initial allocation; if a client wants the library to
27  * use a different default allocator during initialization, it should call
28  * gs_lib_init0 and then gs_lib_init1.
29  */
30 int gs_lib_init(FILE * debug_out);
31 gs_memory_t *gs_lib_init0(FILE * debug_out);
32 int gs_lib_init1(gs_memory_t *);
33 
34 /* Clean up after execution. */
35 void gs_lib_finit(int exit_status, int code, gs_memory_t *);
36 
37 #endif /* gslib_INCLUDED */
38