X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=pysam.git;a=blobdiff_plain;f=pysam%2Fpysam_util.h;fp=pysam%2Fpysam_util.h;h=90a9378c89b9b75b2b21fe9b4ad722588fb89828;hp=c6184eb756cca0241dc06449b829f4198ebef02a;hb=920cc77ed26707a0d92f9e436121b61d84bde627;hpb=8ab946e230447a6fe686edabc5e3cfa445da1721 diff --git a/pysam/pysam_util.h b/pysam/pysam_util.h index c6184eb..90a9378 100644 --- a/pysam/pysam_util.h +++ b/pysam/pysam_util.h @@ -2,8 +2,18 @@ #define PYSAM_UTIL_H ////////////////////////////////////////////////////////////////// -// set pysam standard error to point to stream -FILE * pysam_set_stderr( FILE * f ); +/*! set pysam standard error to point to file descriptor + + Setting the stderr will close the previous stderr. + */ +FILE * pysam_set_stderr( int fd ); + +////////////////////////////////////////////////////////////////// +/*! set pysam standard error to /dev/null. + + Unsetting the stderr will close the previous stderr. + */ +void pysam_unset_stderr(); ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// @@ -62,4 +72,7 @@ uint32_t pysam_get_unmapped( const bam_index_t *idx, const int tid ); /* void pysam_dump_glf( glf1_t * g, bam_maqcns_t * c ); */ +// return size of auxilliary type +// int bam_aux_type2size(int x); + #endif