* test/runtest, test/tests/inc/test-deb359167,
[mmh] / h / crawl_folders.h
1
2 /*
3  * crawl_folders.h -- crawl folder hierarchy
4  *
5  * $Id$
6  */
7
8 #define CRAWL_NUMFOLDERS 100
9
10 /* Callbacks return TRUE crawl_folders should crawl the children of `folder'.
11  * Callbacks need not duplicate folder, as crawl_folders does not free it. */
12 typedef boolean (crawl_callback_t)(char *folder, void *baton);
13
14 /* Crawl the folder hierarchy rooted at the relative path `dir'.  For each
15  * folder, pass `callback' the folder name (as a path relative to the current
16  * directory) and `baton'; the callback may direct crawl_folders not to crawl
17  * its children; see above. */
18 void crawl_folders (char *dir, crawl_callback_t *callback, void *baton);