Index: trunk/psphot/src/psphotOutput.c
===================================================================
--- trunk/psphot/src/psphotOutput.c	(revision 37590)
+++ trunk/psphot/src/psphotOutput.c	(revision 42842)
@@ -1,3 +1,13 @@
 # include "psphotInternal.h"
+
+pmConfig *staticConfig = NULL;
+
+void psphotSaveConfig (pmConfig *config) {
+  staticConfig = config;
+}
+
+pmConfig *psphotGetConfig () {
+  return staticConfig;
+}
 
 // convert filerule to filerule.NUM and look up in the config->arguments metadata
