diff options
author | Florian Dold <florian@dold.me> | 2021-07-28 14:31:38 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-07-28 15:27:39 +0200 |
commit | 7615d46b09275383bd244a0ef1d94b3a77559b88 (patch) | |
tree | f6452173470ae80b186a4ee6da24d1d88d5033f2 /src/include/gnunet_disk_lib.h | |
parent | 391794a460140192b3466765ebc63797cea44000 (diff) | |
download | gnunet-7615d46b09275383bd244a0ef1d94b3a77559b88.tar.gz gnunet-7615d46b09275383bd244a0ef1d94b3a77559b88.zip |
implement config inline globbing
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 16 |
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 | */ | ||
668 | int | ||
669 | GNUNET_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 |