diff options
Diffstat (limited to 'base/gslibctx.h')
-rw-r--r-- | base/gslibctx.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/base/gslibctx.h b/base/gslibctx.h index 0acb520c..fc211de2 100644 --- a/base/gslibctx.h +++ b/base/gslibctx.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2021 Artifex Software, Inc. +/* Copyright (C) 2001-2022 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -94,6 +94,8 @@ typedef struct gs_callout_list_s { void *handle; } gs_callout_list_t; +typedef struct gs_globals gs_globals; + typedef struct { void *monitor; int refs; @@ -131,12 +133,21 @@ typedef struct { * all builds. */ void *cal_ctx; + void *cms_context; /* Opaque context pointer from underlying CMS in use */ + gs_callout_list_t *callouts; /* Stashed args */ int arg_max; int argc; char **argv; + + /* clist io procs pointers. Indirected through here to allow + * easy build time selection. */ + const void *clist_io_procs_memory; + const void *clist_io_procs_file; + + gs_globals *globals; } gs_lib_ctx_core_t; typedef struct gs_lib_ctx_s @@ -176,7 +187,6 @@ typedef struct gs_lib_ctx_s * and one in the device */ char *profiledir; /* Directory used in searching for ICC profiles */ int profiledir_len; /* length of directory name (allows for Unicode) */ - void *cms_context; /* Opaque context pointer from underlying CMS in use */ gs_fapi_server **fapi_servers; char *default_device_list; int gcsignal; @@ -206,21 +216,13 @@ void gs_lib_ctx_fin( gs_memory_t *mem ); gs_lib_ctx_t *gs_lib_ctx_get_interp_instance( const gs_memory_t *mem ); void *gs_lib_ctx_get_cms_context( const gs_memory_t *mem ); -void gs_lib_ctx_set_cms_context( const gs_memory_t *mem, void *cms_context ); int gs_lib_ctx_get_act_on_uel( const gs_memory_t *mem ); int gs_lib_ctx_register_callout(gs_memory_t *mem, gs_callout_fn, void *arg); void gs_lib_ctx_deregister_callout(gs_memory_t *mem, gs_callout_fn, void *arg); int gs_lib_ctx_callout(gs_memory_t *mem, const char *dev_name, int id, int size, void *data); - - -#ifndef GS_THREADSAFE -/* HACK to get at non garbage collection memory pointer - * - */ -gs_memory_t * gs_lib_ctx_get_non_gc_memory_t(void); -#endif +int gs_lib_ctx_nts_adjust(gs_memory_t *mem, int adjust); int gs_lib_ctx_set_icc_directory(const gs_memory_t *mem_gc, const char* pname, int dir_namelen); |