aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_disk_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r--src/include/gnunet_disk_lib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index 3805039fc..df5d3ba21 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -654,6 +654,22 @@ GNUNET_DISK_directory_scan (const char *dir_name,
654 GNUNET_FileNameCallback callback, 654 GNUNET_FileNameCallback callback,
655 void *callback_cls); 655 void *callback_cls);
656 656
657/**
658 * Find all files matching a glob pattern.
659 *
660 * Currently, the glob_pattern only supports asterisks in the last
661 * path component.
662 *
663 * @param glob_patterb the glob pattern to search for
664 * @param callback the method to call for each file
665 * @param callback_cls closure for @a callback
666 * @return the number of files found, -1 on error
667 */
668int
669GNUNET_DISK_glob (const char *glob_pattern,
670 GNUNET_FileNameCallback callback,
671 void *callback_cls);
672
657 673
658/** 674/**
659 * Create the directory structure for storing 675 * Create the directory structure for storing