]>
diplodocus.org Git - nmh/blob - h/crawl_folders.h
3 * crawl_folders.h -- crawl folder hierarchy
6 #define CRAWL_NUMFOLDERS 100
8 /* Callbacks return TRUE crawl_folders should crawl the children of `folder'.
9 * Callbacks need not duplicate folder, as crawl_folders does not free it. */
10 typedef boolean (crawl_callback_t
)(char *folder
, void *baton
);
12 /* Crawl the folder hierarchy rooted at the relative path `dir'. For each
13 * folder, pass `callback' the folder name (as a path relative to the current
14 * directory) and `baton'; the callback may direct crawl_folders not to crawl
15 * its children; see above. */
16 void crawl_folders (char *dir
, crawl_callback_t
*callback
, void *baton
);