]> diplodocus.org Git - nmh/commitdiff
crawl_folders.h: Base header on implementation.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 15 Nov 2017 23:29:04 +0000 (23:29 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 16 Nov 2017 00:03:51 +0000 (00:03 +0000)
Normally done as part of extracting the new header file from a larger
one, but this file already existed so it had to be moved as one commit
and altered in the next, otherwise git would break its history.

sbr/crawl_folders.h

index f5d29cb88d4490b0aeb4f381811c0be6ac5d17fc..d16401ac4385d618f81f2b5b22c8c698c5714569 100644 (file)
@@ -1,14 +1,17 @@
 /* crawl_folders.h -- crawl folder hierarchy
 /* crawl_folders.h -- crawl folder hierarchy
- */
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information. */
 
 #define CRAWL_NUMFOLDERS 100
 
 /* Callbacks return true crawl_folders should crawl the children of `folder'.
  * Callbacks need not duplicate folder, as crawl_folders does not free it. */
 
 #define CRAWL_NUMFOLDERS 100
 
 /* Callbacks return true crawl_folders should crawl the children of `folder'.
  * Callbacks need not duplicate folder, as crawl_folders does not free it. */
-typedef bool (crawl_callback_t)(char *folder, void *baton);
+typedef bool (crawl_callback_t)(char *, void *);
 
 /* Crawl the folder hierarchy rooted at the relative path `dir'.  For each
  * folder, pass `callback' the folder name (as a path relative to the current
  * directory) and `baton'; the callback may direct crawl_folders not to crawl
  * its children; see above. */
 
 /* Crawl the folder hierarchy rooted at the relative path `dir'.  For each
  * folder, pass `callback' the folder name (as a path relative to the current
  * directory) and `baton'; the callback may direct crawl_folders not to crawl
  * its children; see above. */
-void crawl_folders (char *dir, crawl_callback_t *callback, void *baton);
+void crawl_folders(char *, crawl_callback_t *, void *);