xref: /phasta/phSolver/common/phio_posix.h (revision ab645d527a403248f92b1511f47c35aaadb4947d)
1064bab1dSCameron Smith #ifndef PHSOLVER_PHIO_POSIX_H
2064bab1dSCameron Smith #define PHSOLVER_PHIO_POSIX_H
3064bab1dSCameron Smith typedef struct phio_file* phio_fp;
4*ab645d52SCameron Smith void posix_openfile(
5*ab645d52SCameron Smith     const char filename[],
6*ab645d52SCameron Smith     phio_fp fileDescriptor);
7*ab645d52SCameron Smith void posix_closefile(
8*ab645d52SCameron Smith     phio_fp fileDescriptor);
9064bab1dSCameron Smith void posix_readheader(
10064bab1dSCameron Smith     int* fileDescriptor,
11064bab1dSCameron Smith     const  char keyphrase[],
12064bab1dSCameron Smith     void* valueArray,
13064bab1dSCameron Smith     int*  nItems,
14064bab1dSCameron Smith     const char  datatype[],
15064bab1dSCameron Smith     const char  iotype[] );
16064bab1dSCameron Smith void posix_writeheader(
17064bab1dSCameron Smith     const int* fileDescriptor,
18064bab1dSCameron Smith     const char keyphrase[],
19064bab1dSCameron Smith     const void* valueArray,
20064bab1dSCameron Smith     const int* nItems,
21064bab1dSCameron Smith     const int* ndataItems,
22064bab1dSCameron Smith     const char datatype[],
23064bab1dSCameron Smith     const char iotype[] );
24064bab1dSCameron Smith void posix_readdatablock(
25064bab1dSCameron Smith     int* fileDescriptor,
26064bab1dSCameron Smith     const  char keyphrase[],
27064bab1dSCameron Smith     void* valueArray,
28064bab1dSCameron Smith     int*  nItems,
29064bab1dSCameron Smith     const char  datatype[],
30064bab1dSCameron Smith     const char  iotype[] );
31064bab1dSCameron Smith void posix_writedatablock(
32064bab1dSCameron Smith     const int* fileDescriptor,
33064bab1dSCameron Smith     const char keyphrase[],
34064bab1dSCameron Smith     const void* valueArray,
35064bab1dSCameron Smith     const int* nItems,
36064bab1dSCameron Smith     const char datatype[],
37064bab1dSCameron Smith     const char iotype[]);
38064bab1dSCameron Smith #endif
39