Index: trunk/psModules/src/detrend/pmDetrendDB.h
===================================================================
--- trunk/psModules/src/detrend/pmDetrendDB.h	(revision 7589)
+++ trunk/psModules/src/detrend/pmDetrendDB.h	(revision 7770)
@@ -14,6 +14,6 @@
 *  @author EAM, IfA
 *
-*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-06-17 01:50:43 $
+*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-07-01 00:00:11 $
 *
 *  Copyright 2004-2005 Institute for Astronomy, University of Hawaii
@@ -66,3 +66,33 @@
 char *pmDetrendFile (char *detID, char *classID);
 
+// move these to pslib??
+typedef struct
+{
+    int stdin;
+    int stdout;
+    int stderr;
+}
+psPipe;
+
+typedef struct
+{
+    char *data;
+    int nAlloc;    // current size of allocated buffer
+    int nReset;    // size to set buffer after flush
+    int nBlock;    // number of bytes to try to read at a time
+    int n;    // current size of filled data
+}
+psIOBuffer;
+
+// psIOBuffer functions
+psIOBuffer *psIOBufferAlloc (int nBuffer);
+bool psIOBufferFlush (psIOBuffer *buffer);
+int psIOBufferRead (psIOBuffer *buffer, int fd);
+int psIOBufferReadEmpty (psIOBuffer *buffer, int maxRetries, int fd);
+
+// psPipe functions
+psPipe *psPipeAlloc ();
+psPipe *psPipeOpen (char *command);
+bool psPipeClose (psPipe *pipe);
+
 # endif
