X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bgzf.h;h=68375b4e07f523ebe6c6b2efdb50b2951977695a;hb=3ddb3942053df00fdae714e77cbc2f5618db617e;hp=ca5e7ab08b53723491b18534a48e03b7188fbba7;hpb=34c418836df8a03e0eb5243b9240f55abab5bd08;p=samtools.git diff --git a/bgzf.h b/bgzf.h index ca5e7ab..68375b4 100644 --- a/bgzf.h +++ b/bgzf.h @@ -16,6 +16,9 @@ #include #include #include +#ifdef _USE_KNETFILE +#include "knetfile.h" +#endif //typedef int8_t bool; @@ -23,7 +26,14 @@ typedef struct { int file_descriptor; char open_mode; // 'r' or 'w' 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;