diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-14 15:21:37 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-14 15:21:37 +0200 |
commit | f101b728d9315f430d900df1e4afbb2da4da8252 (patch) | |
tree | 1b7164a23bac978f4d56529ca311b704b19b7477 /blaze822.h | |
parent | 13eefbba7234ad1596e6d308d41846daa9d31594 (diff) | |
download | mblaze-f101b728d9315f430d900df1e4afbb2da4da8252.tar.gz mblaze-f101b728d9315f430d900df1e4afbb2da4da8252.tar.xz mblaze-f101b728d9315f430d900df1e4afbb2da4da8252.zip |
blaze822: add mmap-based mail reader
Diffstat (limited to 'blaze822.h')
-rw-r--r-- | blaze822.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blaze822.h b/blaze822.h index a969aaa..7626ca2 100644 --- a/blaze822.h +++ b/blaze822.h @@ -6,7 +6,8 @@ struct message; // blaze822.c struct message *blaze822(char *file); // just header -struct message *blaze822_file(char *file); // header + body +struct message *blaze822_file(char *file); // header + body (read(2)) +struct message *blaze822_mmap(char *file); // header + body (mmap(2)) struct message *blaze822_mem(char *buf, size_t len); // header + body char *blaze822_hdr_(struct message *mesg, const char *hdr, size_t len); |