diff scid/theme.h @ 29:695637f1d8a7

scid: first index page in javascript
author David Demelier <markand@malikania.fr>
date Thu, 04 Aug 2022 14:13:58 +0200
parents 4c16bb25e4f1
children 43333d18e4b8
line wrap: on
line diff
--- a/scid/theme.h	Thu Aug 04 06:09:54 2022 +0200
+++ b/scid/theme.h	Thu Aug 04 14:13:58 2022 +0200
@@ -1,6 +1,10 @@
 #ifndef SCID_THEME_H
 #define SCID_THEME_H
 
+#include <jansson.h>
+
+#include "pageutil.h"
+
 struct theme;
 
 struct theme *
@@ -10,7 +14,10 @@
 theme_path(struct theme *t, const char *filename);
 
 char *
-theme_render_index(struct theme *t, const char *json);
+theme_page_index(struct theme *t, json_t *);
+
+char *
+theme_page_status(struct theme *t, enum khttp status);
 
 void
 theme_free(struct theme *t);