aboutsummaryrefslogtreecommitdiff
path: root/index.h
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2025-12-02 00:00:12 +0100
committerarf20 <aruizfernandez05@gmail.com>2025-12-02 00:00:12 +0100
commitf982fb95044581435e31c765487b45d5ee963519 (patch)
tree5bc5a4e47612959e00464d0f77bc622a841770d3 /index.h
parent262c4593ac6df668ed4d4d899c68a256fb237214 (diff)
downloadarfnet2-search-f982fb95044581435e31c765487b45d5ee963519.tar.gz
arfnet2-search-f982fb95044581435e31c765487b45d5ee963519.zip
search actually working :D
Diffstat (limited to 'index.h')
-rw-r--r--index.h3
1 files changed, 2 insertions, 1 deletions
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 */