]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.3-21 (286)
authorHeng Li <lh3@live.co.uk>
Thu, 14 May 2009 14:23:13 +0000 (14:23 +0000)
committerHeng Li <lh3@live.co.uk>
Thu, 14 May 2009 14:23:13 +0000 (14:23 +0000)
 * declare bam_aux_get_core() in bam.h

bam.h
bam_aux.c
bamtk.c

diff --git a/bam.h b/bam.h
index 163dc893e192d6eaa9ebfcc3b3b8614d142ca211..eb4a375bdc236d9954ef69975f101ea07741fac4 100644 (file)
--- a/bam.h
+++ b/bam.h
@@ -592,6 +592,7 @@ extern "C" {
        void bam_parse_region(bam_header_t *header, const char *str, int *ref_id, int *begin, int *end);
 
        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(bam1_t *b, const char tag[2]);
        int32_t bam_aux2i(const uint8_t *s);
        float bam_aux2f(const uint8_t *s);
index 2fa9ac2e83a7a00e2e83a523fe687448e3c4255e..98690487a517497976e0cfe0ac40e5c0dc2d932a 100644 (file)
--- a/bam_aux.c
+++ b/bam_aux.c
@@ -18,6 +18,11 @@ void bam_aux_append(bam1_t *b, const char tag[2], char type, int len, uint8_t *d
        memcpy(b->data + ori_len + 3, data, len);
 }
 
+uint8_t *bam_aux_get_core(bam1_t *b, const char tag[2])
+{
+       return bam_aux_get(b, tag);
+}
+
 uint8_t *bam_aux_get(bam1_t *b, const char tag[2])
 {
        uint8_t *s;
diff --git a/bamtk.c b/bamtk.c
index d17cf855d3ee452c07a242d3206f4800817bc0c2..5ee0924aef93249d0cc56bb2057fe1f7d8aa2ed9 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -3,7 +3,7 @@
 #include "bam.h"
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.3-20 (r276)"
+#define PACKAGE_VERSION "0.1.3-21 (r286)"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);