tinywebd
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libtinyweb/src/tinyweb.h Sat Apr 18 22:47:57 2015 +0300 1.3 @@ -0,0 +1,16 @@ 1.4 +#ifndef TINYWEB_H_ 1.5 +#define TINYWEB_H_ 1.6 + 1.7 +void tw_set_port(int port); 1.8 +int tw_set_root(const char *path); 1.9 +int tw_set_logfile(const char *fname); 1.10 + 1.11 +int tw_start(void); 1.12 +int tw_stop(void); 1.13 + 1.14 +int tw_get_sockets(int *socks); 1.15 +int tw_get_maxfd(void); 1.16 +int tw_handle_socket(int s); 1.17 + 1.18 + 1.19 +#endif /* TINYWEB_H_ */