Subversion Repositories planix.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/* Copyright (C) 1997, 1998, 1999 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: icontext.h,v 1.5 2002/06/16 04:47:10 lpd Exp $ */
18
/* Externally visible context state */
19
/* Requires iref.h, stdio_.h */
20
 
21
#ifndef icontext_INCLUDED
22
#  define icontext_INCLUDED
23
 
24
#include "gsstype.h"		/* for extern_st */
25
#include "icstate.h"
26
 
27
/* Declare the GC descriptor for context states. */
28
extern_st(st_context_state);
29
 
30
/*
31
 * Define the procedure for resetting user parameters when switching
32
 * contexts. This is defined in either zusparam.c or inouparm.c.
33
 */
34
extern int set_user_params(i_ctx_t *i_ctx_p, const ref * paramdict);
35
 
36
/* Allocate the state of a context, always in local VM. */
37
/* If *ppcst == 0, allocate the state object as well. */
38
int context_state_alloc(gs_context_state_t ** ppcst,
39
			const ref *psystem_dict,
40
			const gs_dual_memory_t * dmem);
41
 
42
/* Load the state of the interpreter from a context. */
43
/* The argument is not const because caches may be updated. */
44
int context_state_load(gs_context_state_t *);
45
 
46
/* Store the state of the interpreter into a context. */
47
int context_state_store(gs_context_state_t *);
48
 
49
/* Free the contents of the state of a context, always to its local VM. */
50
/* Return a mask of which of its VMs, if any, we freed. */
51
int context_state_free(gs_context_state_t *);
52
 
53
#endif /* icontext_INCLUDED */