X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=samtools.git;a=blobdiff_plain;f=razf.h;h=60a0c96457304ec5a728a5dcddb61e1f649e5637;hp=f7e5097687359d02cf5019a642435a25ba781811;hb=cefa18095b2479339b08111936313066ec548657;hpb=b27e00385f41769d03a8cca4dbd71275fc9fa906 diff --git a/razf.h b/razf.h index f7e5097..60a0c96 100644 --- a/razf.h +++ b/razf.h @@ -37,6 +37,10 @@ #include #include "zlib.h" +#ifdef _USE_KNETFILE +#include "knetfile.h" +#endif + #if ZLIB_VERNUM < 0x1221 #define _RZ_READONLY struct _gz_header_s; @@ -76,7 +80,14 @@ typedef struct RandomAccessZFile { char mode; /* 'w' : write mode; 'r' : read mode */ int file_type; /* plain file or rz file, razf_read support plain file as input too, in this case, razf_read work as buffered fread */ +#ifdef _USE_KNETFILE + union { + knetFile *fpr; + int fpw; + } x; +#else int filedes; /* the file descriptor */ +#endif z_stream *stream; ZBlockIndex *index; int64_t in, out, end, src_end;