aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-25 12:43:11 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-25 12:43:11 -0700
commit622ec3cadbda926e02af594d2ff7e89d33833b36 (patch)
tree3a7b7edba269688bb6c502d9bb8a6eb41cb13ca3 /include
parent50081012e8dcf3c4ee4163526f684afa707c5a98 (diff)
chore: prepare for refactoring to allow for fastq
Diffstat (limited to 'include')
-rw-r--r--include/libbio.h3
-rw-r--r--include/libn.h8
2 files changed, 6 insertions, 5 deletions
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 */