diff options
Diffstat (limited to 'doc.h')
-rw-r--r-- | doc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc.h b/doc.h index 01a8235..ea9a521 100644 --- a/doc.h +++ b/doc.h @@ -20,6 +20,7 @@ enum doc_type { struct doc { buf_t txt, lnk; size_t latest; + unsigned short linkc; }; void doc_init(struct doc *); @@ -34,4 +35,6 @@ 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); +unsigned short doc_add_link(struct doc *d, const char *url); + #endif |