xref: /phasta/phSolver/common/phio_posix.h (revision 16223cb9c3f88b34f2cb94151b5cf5ffc1aac5e2)
1 #ifndef PHSOLVER_PHIO_POSIX_H
2 #define PHSOLVER_PHIO_POSIX_H
3 typedef struct phio_file* phio_fp;
4 void posix_readheader(
5     int* fileDescriptor,
6     const  char keyphrase[],
7     void* valueArray,
8     int*  nItems,
9     const char  datatype[],
10     const char  iotype[] );
11 void posix_writeheader(
12     const int* fileDescriptor,
13     const char keyphrase[],
14     const void* valueArray,
15     const int* nItems,
16     const int* ndataItems,
17     const char datatype[],
18     const char iotype[] );
19 void posix_readdatablock(
20     int* fileDescriptor,
21     const  char keyphrase[],
22     void* valueArray,
23     int*  nItems,
24     const char  datatype[],
25     const char  iotype[] );
26 void posix_writedatablock(
27     const int* fileDescriptor,
28     const char keyphrase[],
29     const void* valueArray,
30     const int* nItems,
31     const char datatype[],
32     const char iotype[]);
33 void posix_openfile_read(
34     const char filename[],
35     phio_fp* fileDescriptor);
36 void posix_openfile_write(
37     const char filename[],
38     phio_fp* fileDescriptor);
39 void posix_closefile_read(phio_fp fileDescriptor);
40 void posix_closefile_write(phio_fp fileDescriptor);
41 #endif
42