summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index f4046535..e129cbee 100644
--- a/utils.h
+++ b/utils.h
@@ -193,6 +193,11 @@ bool GetFilesystemSizeFromFD(int fd,
int* out_block_count,
int* out_block_size);
+
+// Returns a human-readable string with the file format based on magic constants
+// on the header of the file.
+std::string GetFileFormat(const std::string& path);
+
// Returns the string representation of the given UTC time.
// such as "11/14/2011 14:05:30 GMT".
std::string ToString(const base::Time utc_time);