summaryrefslogtreecommitdiff
path: root/src/main.c
blob: 4fbfe41dbc4835d2057b57d8bf1e585481ca41a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdlib.h>

#include "include/xdbms.h"

int main(int argc, char **argv) {
	if (argc == 1)
		exit(1);
	char *filename = argv[1];
	if (xdb_init(filename))
		exit(1);
	// TODO: make decoder be able to decode empty tags
	xdb_stmt("<get>all</get>");
	xdb_close();
	exit(0);
}