X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/blobdiff_plain/05b0f827bf0178896f9484fe093fb0d99fa67ba2..c1065ef6db11830ffb544b5ffabe6af3e59688f6:/trie.h diff --git a/trie.h b/trie.h index 6a6d7ed..ea24ef8 100644 --- a/trie.h +++ b/trie.h @@ -91,6 +91,11 @@ unsigned long trie_before(const void *t, const char *pathname); void trie_getpath(const void *t, unsigned long n, char *buf); /* + * Return the trie_file * for the nth entry in the trie. + */ +const struct trie_file *trie_getfile(const void *t, unsigned long n); + +/* * Return the total number of entries in the whole trie. */ unsigned long trie_count(const void *t); @@ -110,6 +115,7 @@ unsigned long trie_count(const void *t); typedef struct triewalk triewalk; triewalk *triewalk_new(const void *t); const struct trie_file *triewalk_next(triewalk *tw, char *buf); +void triewalk_rebase(triewalk *tw, const void *t); void triewalk_free(triewalk *tw); /* ----------------------------------------------------------------------