Skip to content

Commit

Permalink
SAMtools: using stack buffer for bam1_t
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Aug 4, 2010
1 parent 72f1f51 commit 4dfd489
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/mappings/swig/samtools.i
Expand Up @@ -6,17 +6,20 @@
#include <sam.h>
%}

%include typemaps.i

%typemap(argout) bam1_t *b {
// happy
}
%typemap(in,numinputs=0) bam1_t *b(bam1_t bam1temp) {
$1 = &bam1temp;
}

int samread(samfile_t *fp, bam1_t *b);

/*
int samread(samfile_t *fp, bam1_t *OUTPUT);
%ignore samread;
*/
%include <bam.h>
%include "typemaps.i"
%apply bam1_t *OUTPUT { bam1_t *b };
int samread(samfile_t *fp, bam1_t *b);
/* %include <sam.h> */
%include <sam.h>



0 comments on commit 4dfd489

Please sign in to comment.