diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-03-26 21:41:09 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-03-26 21:41:09 +0200 |
commit | 60c5545ba8a5c9f4038b5587c96c19b80f538831 (patch) | |
tree | 13ecd0d40286e43a37934b0ddd07c1e898fb4d75 /libmu_cpp/folder.cc | |
parent | 5b69ce81ec29afeea0e67bd8b0f0b193a7b0c022 (diff) | |
download | mailutils-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')
-rw-r--r-- | libmu_cpp/folder.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmu_cpp/folder.cc b/libmu_cpp/folder.cc index ebc7401f8..cf6857fbb 100644 --- a/libmu_cpp/folder.cc +++ b/libmu_cpp/folder.cc | |||
@@ -82,12 +82,12 @@ Folder :: close () | |||
82 | 82 | ||
83 | List& | 83 | List& |
84 | Folder :: list (const std::string& dirname, void* pattern, | 84 | Folder :: list (const std::string& dirname, void* pattern, |
85 | size_t max_level = 0) | 85 | size_t max_depth = 0) |
86 | { | 86 | { |
87 | mu_list_t c_list; | 87 | mu_list_t c_list; |
88 | 88 | ||
89 | int status = mu_folder_list (folder, dirname.c_str (), pattern, | 89 | int status = mu_folder_list (folder, dirname.c_str (), pattern, |
90 | max_level, &c_list); | 90 | max_depth, &c_list); |
91 | if (status) | 91 | if (status) |
92 | throw Exception ("Folder::list", status); | 92 | throw Exception ("Folder::list", status); |
93 | 93 | ||
@@ -96,13 +96,13 @@ Folder :: list (const std::string& dirname, void* pattern, | |||
96 | 96 | ||
97 | List& | 97 | List& |
98 | Folder :: enumerate (const std::string& name, void* pattern, | 98 | Folder :: enumerate (const std::string& name, void* pattern, |
99 | int flags, size_t max_level, | 99 | int flags, size_t max_depth, |
100 | mu_folder_enumerate_fp enumfun, void* enumdata) | 100 | mu_folder_enumerate_fp enumfun, void* enumdata) |
101 | { | 101 | { |
102 | mu_list_t c_list; | 102 | mu_list_t c_list; |
103 | 103 | ||
104 | int status = mu_folder_enumerate (folder, name.c_str (), pattern, | 104 | int status = mu_folder_enumerate (folder, name.c_str (), pattern, |
105 | flags, max_level, &c_list, | 105 | flags, max_depth, &c_list, |
106 | enumfun, enumdata); | 106 | enumfun, enumdata); |
107 | if (status) | 107 | if (status) |
108 | throw Exception ("Folder::enumerate", status); | 108 | throw Exception ("Folder::enumerate", status); |