X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/blobdiff_plain/712ecaa057b431ab141bb9864096d6fa49d6c581..bb013b1f71556b8943793990a84d0e9b80e28004:/trie.h diff --git a/trie.h b/trie.h index ea24ef8..e27885f 100644 --- a/trie.h +++ b/trie.h @@ -66,6 +66,14 @@ void trie_fake_dir_atimes(void *t); */ /* + * Check the magic numbers at the start of the file. This should also + * verify that the file was built on a platform whose structure layout + * matches that of the agedu reading it. Returns nonzero on successful + * match, zero on mismatch. + */ +int trie_check_magic(const void *t); + +/* * Return the path separator character in use in the trie. */ char trie_pathsep(const void *t);