diff options
author | wrmr | 2024-11-05 23:04:49 -0500 |
---|---|---|
committer | wrmr | 2024-11-05 23:04:49 -0500 |
commit | 9c932e49a7516570b6c1ff9863595d495e3a3212 (patch) | |
tree | cfd5205bd322da368699c47de59c16737ea7da24 /doc.h | |
parent | 9ee9d3c7dec6090316d21c2eed40992372ac3efa (diff) |
doc_add_link
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 |