view 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 source

#ifndef SCID_THEME_H
#define SCID_THEME_H

#include <jansson.h>

#include "pageutil.h"

struct theme;

struct theme *
theme_open(const char *directory);

const char *
theme_path(struct theme *t, const char *filename);

char *
theme_page_index(struct theme *t, json_t *);

char *
theme_page_status(struct theme *t, enum khttp status);

void
theme_free(struct theme *t);

#endif /* !SCID_THEME_H */