diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-18 00:09:23 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-18 00:09:35 +0200 |
commit | 08032f89babab3b5ec792f6aa394a28f95112e11 (patch) | |
tree | 5a91d63a1c9e3c5f8f0db0aa3a83b667426079e4 /blaze822.h | |
parent | 7e17d9d631f9d47e9a03901c97a54649cd3542eb (diff) | |
download | mblaze-08032f89babab3b5ec792f6aa394a28f95112e11.tar.gz mblaze-08032f89babab3b5ec792f6aa394a28f95112e11.tar.xz mblaze-08032f89babab3b5ec792f6aa394a28f95112e11.zip |
seq: import most parts of mseq, make blaze822_loop resolve ranges
Diffstat (limited to 'blaze822.h')
-rw-r--r-- | blaze822.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/blaze822.h b/blaze822.h index 96588a7..06687eb 100644 --- a/blaze822.h +++ b/blaze822.h @@ -24,8 +24,6 @@ char *blaze822_body(struct message *mesg); size_t blaze822_bodylen(struct message *mesg); size_t blaze822_headerlen(struct message *mesg); -int blaze822_loop(int, char **, void (*)(char *)); - // rfc2047.c int blaze822_decode_rfc2047(char *, char *, size_t, char *); @@ -44,3 +42,20 @@ int blaze822_mime_parameter(char *s, char *name, char **starto, char **stopo); char *blaze822_seq_open(char *file); int blaze822_seq_load(char *map); long blaze822_seq_find(char *ref); + + +char *blaze822_seq_cur(); +int blaze822_seq_setcur(char *s); + +struct blaze822_seq_iter { + long lines; + long cur; + long start; + long stop; + + long line; + char *s; +}; + +char *blaze822_seq_next(char *map, char *range, struct blaze822_seq_iter *iter); +int blaze822_loop(int, char **, void (*)(char *)); |