Commit 28f4ff76 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

pipe.h format

parent c3170054
...@@ -35,14 +35,15 @@ ...@@ -35,14 +35,15 @@
#if defined(HAVE_LIBPTHREAD) #if defined(HAVE_LIBPTHREAD)
struct pipe_s { struct pipe_s
bool EOP; {
bool usedata; bool EOP;
short hasdata; bool usedata;
int nrecs; short hasdata;
int varID, levelID; int nrecs;
int recIDr, recIDw, tsIDr, tsIDw; int varID, levelID;
int nmiss; int recIDr, recIDw, tsIDr, tsIDw;
int nmiss;
double *data; double *data;
pstream_t *pstreamptr_in; pstream_t *pstreamptr_in;
/* unsigned long */ off_t nvals; /* unsigned long */ off_t nvals;
...@@ -55,23 +56,23 @@ struct pipe_s { ...@@ -55,23 +56,23 @@ struct pipe_s {
typedef struct pipe_s pipe_t; typedef struct pipe_s pipe_t;
pipe_t *pipeNew(void); pipe_t *pipeNew(void);
void pipeDelete(pipe_t *pipe); void pipeDelete(pipe_t *pipe);
void pipeDebug(int debug); void pipeDebug(int debug);
void pipeDefVlist(pstream_t *pstreamptr, int vlistID); void pipeDefVlist(pstream_t *pstreamptr, int vlistID);
int pipeInqVlist(pstream_t *pstreamptr); int pipeInqVlist(pstream_t *pstreamptr);
void pipeDefTimestep(pstream_t *pstreamptr, int tsID); void pipeDefTimestep(pstream_t *pstreamptr, int tsID);
int pipeInqTimestep(pstream_t *pstreamptr, int tsID); int pipeInqTimestep(pstream_t *pstreamptr, int tsID);
void pipeDefRecord(pstream_t *pstreamptr, int varID, int levelID); void pipeDefRecord(pstream_t *pstreamptr, int varID, int levelID);
int pipeInqRecord(pstream_t *pstreamptr, int *varID, int *levelID); int pipeInqRecord(pstream_t *pstreamptr, int *varID, int *levelID);
void pipeReadRecord(pstream_t *pstreamptr, double *data, int *nmiss); void pipeReadRecord(pstream_t *pstreamptr, double *data, int *nmiss);
void pipeWriteRecord(pstream_t *pstreamptr, double *data, int nmiss); void pipeWriteRecord(pstream_t *pstreamptr, double *data, int nmiss);
void pipeCopyRecord(pstream_t *pstreamptr_dest, pstream_t *pstreamptr_src); void pipeCopyRecord(pstream_t *pstreamptr_dest, pstream_t *pstreamptr_src);
#endif #endif
#endif /* PIPE_H */ #endif /* PIPE_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment