aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_disk_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-09 16:38:26 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-09 16:38:26 +0000
commitc4829724c001815fd57fc2f1d44c7815602196ec (patch)
treeeb858a95c13b89337676eba57f4bab394a9ec3e7 /src/include/gnunet_disk_lib.h
parent7bbfa7f0bc69be2754e747a57fe5474d8bcdb9ec (diff)
downloadgnunet-c4829724c001815fd57fc2f1d44c7815602196ec.tar.gz
gnunet-c4829724c001815fd57fc2f1d44c7815602196ec.zip
LRN: make disk iterator start return GNUNET_SYSERR if run on empty directory
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r--src/include/gnunet_disk_lib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index 19c1328bd..fc2f01704 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -565,8 +565,10 @@ GNUNET_DISK_directory_iterator_next (struct GNUNET_DISK_DirectoryIterator *iter,
565 * @param dirName the name of the directory 565 * @param dirName the name of the directory
566 * @param callback the method to call for each file 566 * @param callback the method to call for each file
567 * @param callback_cls closure for callback 567 * @param callback_cls closure for callback
568 * @return GNUNET_YES if directory is not empty and @callback
569 * will be called later, GNUNET_NO otherwise, GNUNET_SYSERR on error.
568 */ 570 */
569void 571int
570GNUNET_DISK_directory_iterator_start (enum GNUNET_SCHEDULER_Priority prio, 572GNUNET_DISK_directory_iterator_start (enum GNUNET_SCHEDULER_Priority prio,
571 const char *dirName, 573 const char *dirName,
572 GNUNET_DISK_DirectoryIteratorCallback 574 GNUNET_DISK_DirectoryIteratorCallback