diff options
Diffstat (limited to 'base/gp.h')
-rw-r--r-- | base/gp.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -23,6 +23,8 @@ #include "stat_.h" #include "gstypes.h" #include "gscdefs.h" /* for gs_serialnumber */ +#include "globals.h" + /* * This file defines the interface to ***ALL*** platform-specific routines, * with the exception of the thread/synchronization interface (gpsync.h) @@ -704,4 +706,17 @@ gp_validate_path(const gs_memory_t *mem, const char *path, const char *mode); +/* + * Fetch a pointer to the globals structure. This is cleverly synchronised + * so that the first call to this function is guaranteed to return a safely + * (and atomically) initialised structure. + * + * Platforms that can't perform this synchronisation just return NULL. + */ +struct gs_globals *gp_get_globals(void); + +void gp_set_debug_mem_ptr(gs_memory_t *mem); + +gs_memory_t *gp_get_debug_mem_ptr(void); + #endif /* gp_INCLUDED */ |