summary refs log tree commit diff
path: root/blaze822.h
diff options
context:
space:
mode:
Diffstat (limited to 'blaze822.h')
-rw-r--r--blaze822.h19
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 *));