about summary refs log tree commit diff
path: root/server.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server.h b/server.h
index eee5419..4a18ef0 100644
--- a/server.h
+++ b/server.h
@@ -90,6 +90,7 @@ enum kcgi_err contextsPage(struct kreq *req);
 extern int eventsGap;
 extern int eventsOverlap;
 extern int eventsLimit;
+extern const char *EventsTopicQuery;
 extern const char *EventsAfterQuery;
 extern const char *EventsBeforeQuery;
 extern const char *SearchQuery;
@@ -102,6 +103,7 @@ extern struct Statements {
 	sqlite3_stmt *networks;
 	sqlite3_stmt *contexts;
 	sqlite3_stmt *contextsMOTD;
+	sqlite3_stmt *eventsTopic;
 	sqlite3_stmt *eventsAfter;
 	sqlite3_stmt *eventsBefore;
 	sqlite3_stmt *search;
@@ -118,6 +120,7 @@ static inline void dbPrepareAll(void) {
 	dbPrepare(&stmt.networks, NetworksQuery);
 	dbPrepare(&stmt.contexts, ContextsQuery);
 	dbPrepare(&stmt.contextsMOTD, ContextsMOTDQuery);
+	dbPrepare(&stmt.eventsTopic, EventsTopicQuery);
 	dbPrepare(&stmt.eventsAfter, EventsAfterQuery);
 	dbPrepare(&stmt.eventsBefore, EventsBeforeQuery);
 	dbPrepare(&stmt.search, SearchQuery);
@@ -127,6 +130,7 @@ static inline void dbClose(void) {
 	sqlite3_finalize(stmt.networks);
 	sqlite3_finalize(stmt.contexts);
 	sqlite3_finalize(stmt.contextsMOTD);
+	sqlite3_finalize(stmt.eventsTopic);
 	sqlite3_finalize(stmt.eventsAfter);
 	sqlite3_finalize(stmt.eventsBefore);
 	sqlite3_finalize(stmt.search);