]> git.donarmstrong.com Git - samtools.git/blobdiff - bam.h
Release samtools-0.1.5a (for compatibility with Bio::DB::Sam)
[samtools.git] / bam.h
diff --git a/bam.h b/bam.h
index 6316c9b438320dc5df8751f5c1a73ed6c185b6e4..83c03ada21098eda911caabb0e56db3864599e73 100644 (file)
--- a/bam.h
+++ b/bam.h
@@ -41,7 +41,6 @@
  */
 
 #include <stdint.h>
-#include <assert.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
@@ -600,8 +599,9 @@ extern "C" {
          @param  ref_id  the returned chromosome ID
          @param  begin   the returned start coordinate
          @param  end     the returned end coordinate
+         @return         0 on success; -1 on failure
         */
-       void bam_parse_region(bam_header_t *header, const char *str, int *ref_id, int *begin, int *end);
+       int bam_parse_region(bam_header_t *header, const char *str, int *ref_id, int *begin, int *end);
 
        /*!
          @abstract       Retrieve data of a tag
@@ -624,7 +624,7 @@ extern "C" {
 
        void bam_aux_append(bam1_t *b, const char tag[2], char type, int len, uint8_t *data);
 
-       // uint8_t *bam_aux_get_core(bam1_t *b, const char tag[2]); // an alias of bam_aux_get()
+       uint8_t *bam_aux_get_core(bam1_t *b, const char tag[2]); // an alias of bam_aux_get()
 
        /*!  
          @abstract Calculate the rightmost coordinate of an alignment on the