summaryrefslogtreecommitdiff
path: root/base/gp.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/gp.h')
-rw-r--r--base/gp.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/base/gp.h b/base/gp.h
index b58206b5..33a35ccc 100644
--- a/base/gp.h
+++ b/base/gp.h
@@ -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 */