From 7f1b6ff70b97e424ce73314809838c7cd94f3ae7 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 22 Apr 2020 19:51:30 -0700 Subject: feat: interfaces of newick io more general. can now take arbitrary readers/writers --- include/libbio.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/libbio.h') diff --git a/include/libbio.h b/include/libbio.h index 9f54015..3cdab4e 100644 --- a/include/libbio.h +++ b/include/libbio.h @@ -25,16 +25,17 @@ typedef struct bio·Tree } bio·Tree; /* newick i/o */ -bio·Tree bio·readnewick(Stream *file, mem·Allocator heap); -error bio·writenewick(bio·Tree tree, Stream *out); +bio·Tree bio·readnewick(io·Peeker stream, mem·Allocator heap); +error bio·writenewick(bio·Tree tree, io·Putter out); // ----------------------------------------------------------------------- // Sequences +#if 0 typedef struct bio·FastaReader bio·FastaReader; /* fasta/q i/o */ bio·Seq *bio·newfastareader(Stream *file, mem·Allocator heap); bio·Seq *bio·readfasta(bio·FastaParser *p); error bio·writefasta(bio·Seq *seq, Stream *out); - +#endif -- cgit v1.2.1