00001 #ifndef PHSTREAM_H_ 00002 #define PHSTREAM_H_ 00003 #include <stdio.h> 00004 00005 00013 typedef struct RStream* rstream; 00014 typedef struct GRStream* grstream; 00016 rstream makeRStream(); 00018 void clearRStream(rstream rs); 00020 void destroyRStream(rstream rs); 00021 00023 grstream makeGRStream(); 00025 void clearGRStream(grstream grs); 00027 void destroyGRStream(grstream grs); 00028 00030 FILE* openRStreamRead(rstream rs); 00032 FILE* openRStreamWrite(rstream rs); 00033 00035 FILE* openGRStreamRead(grstream grs, const char* named); 00037 FILE* openGRStreamWrite(grstream grs, const char* named); 00038 00040 void attachRStream(grstream grs, rstream rs); 00041 #endif