]> diplodocus.org Git - nmh/blob - sbr/crawl_folders.h
Improve fmttest output
[nmh] / sbr / crawl_folders.h
1 /* crawl_folders.h -- crawl folder hierarchy
2 *
3 * This code is Copyright (c) 2017, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information. */
6
7 #define CRAWL_NUMFOLDERS 100
8
9 /* Callbacks return true crawl_folders should crawl the children of `folder'.
10 * Callbacks need not duplicate folder, as crawl_folders does not free it. */
11 typedef bool (crawl_callback_t)(char *, void *);
12
13 /* Crawl the folder hierarchy rooted at the relative path `dir'. For each
14 * folder, pass `callback' the folder name (as a path relative to the current
15 * directory) and `baton'; the callback may direct crawl_folders not to crawl
16 * its children; see above. */
17 void crawl_folders(char *, crawl_callback_t *, void *);