Index: trunk/ppImage/src/ppImagePhotom.c
===================================================================
--- trunk/ppImage/src/ppImagePhotom.c	(revision 7522)
+++ trunk/ppImage/src/ppImagePhotom.c	(revision 7581)
@@ -29,8 +29,8 @@
 	// mode is 'REFERENCE' to prevent double frees of the fpa
 	pmFPAfile *output = psMetadataLookupPtr (&status, config->files, "PPIMAGE.OUTPUT");
-	input = pmFPAfileDefine (config->files, config->camera, output->fpa, "PSPHOT.INPUT");
+	input = pmFPAfileDefineInput (config->files, config->camera, output->fpa, "PSPHOT.INPUT");
 	input->mode = PM_FPA_MODE_REFERENCE;
 
-	pmFPAfileDefine (config->files, config->camera, input->fpa, "PSPHOT.OUTPUT");
+	pmFPAfileDefineOutput (config->files, config->camera, input->fpa, "PSPHOT.OUTPUT");
 
 	// supply the output name (from cmd-line) to all output (WRITE) files
@@ -62,9 +62,9 @@
 	psLogMsg ("ppImagePhot", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
 	if (! cell->process || ! cell->file_exists) { continue; }
-	pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
+	pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
 
 	// process each of the readouts
 	while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
-	    pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
+	    pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
 	    if (! readout->data_exists) { continue; }
 
@@ -72,7 +72,7 @@
 	    psphotReadout (config, view);
 
-	    pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
+	    pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
 	}
-	pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
+	pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
     }
 
