Skip to content

Commit

Permalink
Fixup pxd definitions for tbx_t struct
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher authored and brentp committed Jan 19, 2024
1 parent 61690b4 commit 5d5c6bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cyvcf2/cyvcf2.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,14 @@ cdef extern from "htslib/hts.h":
void hts_idx_destroy(hts_idx_t *idx);

cdef extern from "htslib/tbx.h":
ctypedef struct tbx_conf_t:
pass

# Expose details of tbx_t so that we can access the idx field
ctypedef struct tbx_t:
hts_idx_t *idx;
tbx_conf_t conf
hts_idx_t *idx
void *dict

tbx_t *tbx_index_load(const char *fn);
tbx_t *tbx_index_load2(const char *fn, const char *fnidx);
Expand Down

0 comments on commit 5d5c6bd

Please sign in to comment.