tinywebd

annotate libtinyweb/src/tinyweb.h @ 10:0dd50a23f3dd

separated all the tinyweb functionality out as a library
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 18 Apr 2015 22:47:57 +0300
parents src/tinyweb.h@5ec50ca0d071
children b13fda5c01bc
rev   line source
nuclear@7 1 #ifndef TINYWEB_H_
nuclear@7 2 #define TINYWEB_H_
nuclear@7 3
nuclear@7 4 void tw_set_port(int port);
nuclear@7 5 int tw_set_root(const char *path);
nuclear@7 6 int tw_set_logfile(const char *fname);
nuclear@7 7
nuclear@7 8 int tw_start(void);
nuclear@7 9 int tw_stop(void);
nuclear@7 10
nuclear@7 11 int tw_get_sockets(int *socks);
nuclear@7 12 int tw_get_maxfd(void);
nuclear@7 13 int tw_handle_socket(int s);
nuclear@7 14
nuclear@7 15
nuclear@7 16 #endif /* TINYWEB_H_ */