Merge commit 'upstream/0.1.11'
[samtools.git] / sample.h
1 #ifndef BAM_SAMPLE_H
2 #define BAM_SAMPLE_H
3
4 #include "kstring.h"
5
6 typedef struct {
7         int n, m;
8         char **smpl;
9         void *rg2smid, *sm2id;
10 } bam_sample_t;
11
12 bam_sample_t *bam_smpl_init(void);
13 int bam_smpl_add(bam_sample_t *sm, const char *abs, const char *txt);
14 int bam_smpl_rg2smid(const bam_sample_t *sm, const char *fn, const char *rg, kstring_t *str);
15 void bam_smpl_destroy(bam_sample_t *sm);
16
17 #endif