summary refs log tree commit diff
path: root/concat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-06-11 19:05:54 -0400
committerJune McEnroe <june@causal.agency>2021-06-11 19:05:54 -0400
commit64003835f0446d05b5a53a527e29d5634a9b80be (patch)
treed47e729ed753a8d2c4e7ae5a50953ffc309c3196 /concat.c
parentGenerate arbitrary search pages and feeds (diff)
downloadbubger-64003835f0446d05b5a53a527e29d5634a9b80be.tar.gz
bubger-64003835f0446d05b5a53a527e29d5634a9b80be.zip
Generate navigation for search pages
Diffstat (limited to '')
-rw-r--r--concat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/concat.c b/concat.c
index 2b1c619..800a7a2 100644
--- a/concat.c
+++ b/concat.c
@@ -264,7 +264,8 @@ static int sortCompare(const void *_a, const void *_b) {
 size_t concatSearchEntries = 20;
 
 void concatSearch(
-	const char *name, struct List threads, const struct Envelope *envelopes
+	const char *name, struct List threads, const struct Envelope *envelopes,
+	char *searches[const], size_t len
 ) {
 	char *path = searchPath(name, "atom");
 	FILE *file = fopen(path, "w");
@@ -316,7 +317,7 @@ void concatSearch(
 		if (error) err(EX_IOERR, "%s", path);
 	}
 
-	error = htmlSearchOpen(file, name);
+	error = htmlSearchOpen(file, name, searches, len);
 	if (error) err(EX_IOERR, "%s", path);
 
 	for (size_t i = threads.len - 1; i < threads.len; --i) {