aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index 2de3c9b..e4924d8 100644
--- a/main.c
+++ b/main.c
@@ -35,6 +35,7 @@
#include <microhttpd.h>
#include "config.h"
+#include "index.h"
static char *index_format_template = NULL;
@@ -119,6 +120,14 @@ int main() {
return 1;
}
+ /* begin indexing */
+ if (index_init() < 0)
+ return 1;
+
+ index_t index = index_new(INIT_MAP_CAPACITY, root);
+
+ printf("[index] indexed\n");
+
while (1) {
sleep(1000);
}