aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/server.h
blob: 92ca37d1a48d1d1d90387e749ab21ed3981d6737 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2022 Egor Tensin <Egor.Tensin@gmail.com>
 * This file is part of the "cimple" project.
 * For details, see https://github.com/egor-tensin/cimple.
 * Distributed under the MIT License.
 */

#ifndef __SERVER_H__
#define __SERVER_H__

struct settings {
	const char *port;

	const char *sqlite_path;
};

struct server;

int server_create(struct server **, const struct settings *);
void server_destroy(struct server *);

int server_main(struct server *);

#endif