From 622ec3cadbda926e02af594d2ff7e89d33833b36 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 25 Apr 2020 12:43:11 -0700 Subject: chore: prepare for refactoring to allow for fastq --- include/libbio.h | 3 ++- include/libn.h | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/libbio.h b/include/libbio.h index 4c93656..40ff2f9 100644 --- a/include/libbio.h +++ b/include/libbio.h @@ -40,5 +40,6 @@ typedef struct bio·Seq byte *q; } bio·Seq; -bio·FastaReader *bio·newfastareader(io·Reader stream, void *s, mem·Allocator heap, void *h); +bio·FastaReader *bio·openfasta(io·Reader stream, void *s, mem·Allocator heap, void *h); error bio·readfasta(bio·FastaReader *rdr, bio·Seq *seq); +error bio·closefasta(bio·FastaReader *rdr); diff --git a/include/libn.h b/include/libn.h index 99e4fdb..bfeae3e 100644 --- a/include/libn.h +++ b/include/libn.h @@ -117,9 +117,9 @@ typedef struct stat io·Stat; enum SeekPos { - seek·CUR = SEEK_CUR, - seek·SET = SEEK_SET, - seek·END = SEEK_END + seek·cur = SEEK_CUR, + seek·set = SEEK_SET, + seek·end = SEEK_END }; Stream *io·open(byte *name, byte *mode); @@ -134,7 +134,7 @@ error io·putbyte(Stream *s, byte c); int io·putstring(Stream *s, string str); int io·write(Stream *s, int sz, int n, void *buf); int io·flush(Stream *s); -int io·seek(Stream *s, long off, enum SeekPos origin); +int io·seek(Stream *s, long off, enum SeekPos whence); /* generic I/O interfaces */ -- cgit v1.2.1