summaryrefslogtreecommitdiff
path: root/src/generic/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic/util/util.h')
-rw-r--r--src/generic/util/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/generic/util/util.h b/src/generic/util/util.h
index b12e5de7..965e3f10 100644
--- a/src/generic/util/util.h
+++ b/src/generic/util/util.h
@@ -29,6 +29,7 @@
/** \file util.h
*/
+struct timeval;
struct tm;
/** \brief Backslash-escape anything in the given string that is not a
@@ -94,6 +95,10 @@ namespace aptitude
{
namespace util
{
+ /** \brief Return the difference between two timevals as a timeval. */
+ struct timeval subtract_timevals(const struct timeval &a,
+ const struct timeval &b);
+
/** Remove the given file/directory and all its children. Behaves
* like rm -fr.
*