X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bgzf.h;h=68375b4e07f523ebe6c6b2efdb50b2951977695a;hb=3ddb3942053df00fdae714e77cbc2f5618db617e;hp=4ed5c2996001ab74a501e84ded93abf2c426bfa7;hpb=f93dae0d03856955f9424e8b2aaf261304ca647e;p=samtools.git diff --git a/bgzf.h b/bgzf.h index 4ed5c29..68375b4 100644 --- a/bgzf.h +++ b/bgzf.h @@ -9,22 +9,31 @@ * or functionality. */ -#ifndef __BCGZ_H +#ifndef __BGZF_H #define __BGZF_H #include #include -#include "zlib.h" #include -//#include "zutil.h" +#include +#ifdef _USE_KNETFILE +#include "knetfile.h" +#endif //typedef int8_t bool; typedef struct { int file_descriptor; char open_mode; // 'r' or 'w' - bool owned_file; + bool owned_file, is_uncompressed; +#ifdef _USE_KNETFILE + union { + knetFile *fpr; + FILE *fpw; + } x; +#else FILE* file; +#endif int uncompressed_block_size; int compressed_block_size; void* uncompressed_block;