IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 30, 2006, 2:00:11 PM (20 years ago)
Author:
magnier
Message:

added psPipe, psIOBuffer, added to detselect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmDetrendDB.h

    r7589 r7770  
    1414*  @author EAM, IfA
    1515*
    16 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    17 *  @date $Date: 2006-06-17 01:50:43 $
     16*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     17*  @date $Date: 2006-07-01 00:00:11 $
    1818*
    1919*  Copyright 2004-2005 Institute for Astronomy, University of Hawaii
     
    6666char *pmDetrendFile (char *detID, char *classID);
    6767
     68// move these to pslib??
     69typedef struct
     70{
     71    int stdin;
     72    int stdout;
     73    int stderr;
     74}
     75psPipe;
     76
     77typedef struct
     78{
     79    char *data;
     80    int nAlloc;    // current size of allocated buffer
     81    int nReset;    // size to set buffer after flush
     82    int nBlock;    // number of bytes to try to read at a time
     83    int n;    // current size of filled data
     84}
     85psIOBuffer;
     86
     87// psIOBuffer functions
     88psIOBuffer *psIOBufferAlloc (int nBuffer);
     89bool psIOBufferFlush (psIOBuffer *buffer);
     90int psIOBufferRead (psIOBuffer *buffer, int fd);
     91int psIOBufferReadEmpty (psIOBuffer *buffer, int maxRetries, int fd);
     92
     93// psPipe functions
     94psPipe *psPipeAlloc ();
     95psPipe *psPipeOpen (char *command);
     96bool psPipeClose (psPipe *pipe);
     97
    6898# endif
Note: See TracChangeset for help on using the changeset viewer.