comparison 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
comparison
equal deleted inserted replaced
28:4c16bb25e4f1 29:695637f1d8a7
1 #ifndef SCID_THEME_H 1 #ifndef SCID_THEME_H
2 #define SCID_THEME_H 2 #define SCID_THEME_H
3
4 #include <jansson.h>
5
6 #include "pageutil.h"
3 7
4 struct theme; 8 struct theme;
5 9
6 struct theme * 10 struct theme *
7 theme_open(const char *directory); 11 theme_open(const char *directory);
8 12
9 const char * 13 const char *
10 theme_path(struct theme *t, const char *filename); 14 theme_path(struct theme *t, const char *filename);
11 15
12 char * 16 char *
13 theme_render_index(struct theme *t, const char *json); 17 theme_page_index(struct theme *t, json_t *);
18
19 char *
20 theme_page_status(struct theme *t, enum khttp status);
14 21
15 void 22 void
16 theme_free(struct theme *t); 23 theme_free(struct theme *t);
17 24
18 #endif /* !SCID_THEME_H */ 25 #endif /* !SCID_THEME_H */