#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();
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
/* void pysam_dump_glf( glf1_t * g, bam_maqcns_t * c ); */
+// return size of auxilliary type
+// int bam_aux_type2size(int x);
+
#endif