diff options
| author | arf20 <aruizfernandez05@gmail.com> | 2025-11-30 05:11:02 +0100 |
|---|---|---|
| committer | arf20 <aruizfernandez05@gmail.com> | 2025-11-30 05:11:02 +0100 |
| commit | b1430f0f2d76859eafda9fc6098c3b4876501471 (patch) | |
| tree | 467c0fc17fa40bf0eda18b830de54fc596add268 /main.c | |
| parent | ae9b7722e93111a8ee67e5b9b3a791df7b94c765 (diff) | |
| download | arfnet2-search-b1430f0f2d76859eafda9fc6098c3b4876501471.tar.gz arfnet2-search-b1430f0f2d76859eafda9fc6098c3b4876501471.zip | |
file indexing, stat, hash map tree insert
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); } |
