From 9c932e49a7516570b6c1ff9863595d495e3a3212 Mon Sep 17 00:00:00 2001 From: wrmr Date: Tue, 5 Nov 2024 23:04:49 -0500 Subject: doc_add_link --- doc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc.h') 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 -- cgit 1.4.1-2-gfad0