]> git.ipfire.org Git - thirdparty/cups.git/blob - pstoraster/icontext.h
Import cups.org releases
[thirdparty/cups.git] / pstoraster / icontext.h
1 /* Copyright (C) 1997, 1998 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 /* Externally visible context state */
27 /* Requires iref.h, stdio_.h */
28
29 #ifndef icontext_INCLUDED
30 # define icontext_INCLUDED
31
32 #include "gsstruct.h" /* for extern_st */
33 #include "icstate.h"
34
35 /* Declare the GC descriptor for context states. */
36 extern_st(st_context_state);
37
38 /*
39 * Define the procedure for resetting user parameters when switching
40 * contexts. This is defined in either zusparam.c or inouparm.c.
41 */
42 extern int set_user_params(P1(const ref * paramdict));
43
44 /* Allocate the state of a context, always in local VM. */
45 /* If *ppcst == 0, allocate the state object as well. */
46 int context_state_alloc(P2(gs_context_state_t ** ppcst,
47 const gs_dual_memory_t * dmem));
48
49 /* Load the state of the interpreter from a context. */
50 int context_state_load(P1(const gs_context_state_t *));
51
52 /* Store the state of the interpreter into a context. */
53 int context_state_store(P1(gs_context_state_t *));
54
55 /* Free the contents of the state of a context, always to its local VM. */
56 /* Return a mask of which of its VMs, if any, we freed. */
57 int context_state_free(P1(gs_context_state_t *));
58
59 #endif /* icontext_INCLUDED */