shithub: neoventi

ref: 0a0dc432673d0c5f0902b0d053e08c8fe41a0eea
dir: /main.c/

View raw version
#include <u.h>
#include <libc.h>
#include <bio.h>
#include "neoventi.h"

void
parseargs(int argc, char **argv)
{
	USED(argv);
	if(argc != 1)
		sysfatal("TODO: arg parsing");
}

static void
init(void)
{
	initarenas();
	initindex();
}

static void
validate(void)
{
	fprint(2, "TODO: validate initial state");
}

void
main(int argc, char **argv)
{
	parseargs(argc, argv);
	print("Initializing neoventi build 3... ");
	init();
	validate();
	print("initialized, launching server.\n");
	serve("tcp!127.1!14011");
}