summaryrefslogtreecommitdiff
path: root/src/web.h
blob: 4b7e89f9da61c35f57c367bd2176457b7fbeebfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

struct App {
	char* dbname;
};

void prepare_database(struct App *app);

struct Server {
	struct App *app;

	char *page;
};

int web_begin(struct Server *server, int port);
int web_join(struct Server *server);