Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ void wrap_kbs_destroy(kbitset_t *bs)
{
kbs_destroy(bs);
}

int64_t wrap_bgzf_tell(BGZF *fp) {
return bgzf_tell(fp);
}
8 changes: 8 additions & 0 deletions wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "htslib/htslib/faidx.h"
#include "htslib/htslib/thread_pool.h"

#include <stdint.h>

// The following functions have to be wrapped here because they are inline in htslib.

/**
Expand All @@ -34,3 +36,9 @@ void wrap_kbs_insert(kbitset_t *bs, int i);
* <div rustbindgen replaces="kbs_destroy"></div>
*/
void wrap_kbs_destroy(kbitset_t *bs);


/**
* <div rustbindgen replaces="bgzf_tell"></div>
*/
int64_t wrap_bgzf_tell(BGZF *fp);
Loading