From f982fb95044581435e31c765487b45d5ee963519 Mon Sep 17 00:00:00 2001 From: arf20 Date: Tue, 2 Dec 2025 00:00:12 +0100 Subject: search actually working :D --- index.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'index.h') diff --git a/index.h b/index.h index d31fd9b..187de94 100644 --- a/index.h +++ b/index.h @@ -33,7 +33,7 @@ typedef enum { } lookup_type_t; typedef struct { - char *name; + const char *name, *path; struct stat stat; const char *mime; } node_data_t; @@ -50,6 +50,7 @@ void index_deinit(); index_t index_new(size_t icapacity, const char *root, int examine); results_t *index_lookup(index_t index, lookup_type_t type, const char *query); void index_destroy(index_t index); +void results_destroy(results_t *results); #endif /* _INDEX_H */ -- cgit v1.2.3