You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd2/src/angel_server.c

21 lines
345 B
C

#include <lighttpd/angel_base.h>
server* server_new(const gchar *module_dir) {
server *srv = g_slice_new0(server);
/* TODO: handle sinals */
srv->loop = ev_default_loop(0);
log_init(srv);
plugins_init(srv, module_dir);
return srv;
}
void server_free(server* srv) {
plugins_clear(srv);
log_clean(srv);
g_slice_free(server, srv);
}