Report compressed size of data written in a backup as well as uncompressed.
[cumulus.git] / sha1.h
diff --git a/sha1.h b/sha1.h
index b4d4305..890cf22 100644 (file)
--- a/sha1.h
+++ b/sha1.h
@@ -1,7 +1,7 @@
 /* Declarations of functions and data types used for SHA1 sum
    library functions.
    Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
-   Copyright (C) 2006 Michael Vrable
+   Copyright (C) 2006-2007 Michael Vrable
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
@@ -23,6 +23,8 @@
 # include <stdio.h>
 # include <stdint.h>
 
+#include <string>
+
 typedef uint32_t md5_uint32;
 
 /* Structure to save state of computation between the single steps.  */
@@ -86,8 +88,10 @@ public:
     ~SHA1Checksum();
 
     void process(const void *data, size_t len);
+    bool process_file(const char *filename);
     const uint8_t *checksum();
     size_t checksum_size() const { return 20; }
+    std::string checksum_str();
 };
 
 #endif