summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-26 12:04:13 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-26 12:04:13 +0100
commit0db8836cb63f60799ac7b4c5222ba9e12ca5659c (patch)
treeda5189263bae7a4ed6de98ee513cd5be4631b59e /inc
parentec91a4cc4decd1ffd8ba2f3d0139239b0a0dd022 (diff)
downloadabrt-0db8836cb63f60799ac7b4c5222ba9e12ca5659c.tar.gz
abrt-0db8836cb63f60799ac7b4c5222ba9e12ca5659c.tar.xz
abrt-0db8836cb63f60799ac7b4c5222ba9e12ca5659c.zip
hookCCpp: check total dump dir size and delete the largest/oldest one
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'inc')
-rw-r--r--inc/abrtlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/abrtlib.h b/inc/abrtlib.h
index 257f5571..0c1595a1 100644
--- a/inc/abrtlib.h
+++ b/inc/abrtlib.h
@@ -208,6 +208,11 @@ bool string_to_bool(const char *s);
std::string ssprintf(const char *format, ...);
std::string get_home_dir(int uid);
std::string concat_path_file(const char *path, const char *filename);
+double get_dirsize(const char *pPath);
+double get_dirsize_find_largest_dir(
+ const char *pPath,
+ std::string *worst_dir = NULL,
+ const char *excluded = NULL);
template <class T>
std::string