summaryrefslogtreecommitdiffabout
path: root/libmu_cpp/folder.cc
authorSergey Poznyakoff <gray@gnu.org>2019-03-26 19:41:09 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-03-26 19:41:09 (GMT)
commit60c5545ba8a5c9f4038b5587c96c19b80f538831 (patch) (side-by-side diff)
tree13ecd0d40286e43a37934b0ddd07c1e898fb4d75 /libmu_cpp/folder.cc
parent5b69ce81ec29afeea0e67bd8b0f0b193a7b0c022 (diff)
downloadmailutils-60c5545ba8a5c9f4038b5587c96c19b80f538831.tar.gz
mailutils-60c5545ba8a5c9f4038b5587c96c19b80f538831.tar.bz2
Consistently use the term 'depth' when referring to directory nesting depth
* include/mailutils/folder.h (mu_list_response): Rename 'level' to 'depth'. All uses updated.
Diffstat (limited to 'libmu_cpp/folder.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--libmu_cpp/folder.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmu_cpp/folder.cc b/libmu_cpp/folder.cc
index ebc7401..cf6857f 100644
--- a/libmu_cpp/folder.cc
+++ b/libmu_cpp/folder.cc
@@ -82,12 +82,12 @@ Folder :: close ()
List&
Folder :: list (const std::string& dirname, void* pattern,
- size_t max_level = 0)
+ size_t max_depth = 0)
{
mu_list_t c_list;
int status = mu_folder_list (folder, dirname.c_str (), pattern,
- max_level, &c_list);
+ max_depth, &c_list);
if (status)
throw Exception ("Folder::list", status);
@@ -96,13 +96,13 @@ Folder :: list (const std::string& dirname, void* pattern,
List&
Folder :: enumerate (const std::string& name, void* pattern,
- int flags, size_t max_level,
+ int flags, size_t max_depth,
mu_folder_enumerate_fp enumfun, void* enumdata)
{
mu_list_t c_list;
int status = mu_folder_enumerate (folder, name.c_str (), pattern,
- flags, max_level, &c_list,
+ flags, max_depth, &c_list,
enumfun, enumdata);
if (status)
throw Exception ("Folder::enumerate", status);

Return to:

Send suggestions and report system problems to the System administrator.