diff options
Diffstat (limited to 'doc.h')
-rw-r--r-- | doc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc.h b/doc.h index 496b631..972134b 100644 --- a/doc.h +++ b/doc.h @@ -30,4 +30,8 @@ void doc_add_line(struct doc *, const char *); void doc_add_text(struct doc *, const char *); void doc_add_textn(struct doc *, const char *, size_t); +struct doc_line *doc_line_at(struct doc *d, size_t ofs); +int doc_line_prev(struct doc *d, size_t *ofs); +int doc_line_next(struct doc *d, size_t *ofs); + #endif |