From 3ad977b41c6e4ef30c2f4f316b909b742ffc04aa Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Tue, 5 May 2009 11:50:51 -0700 Subject: Add some C++ code to do raw files for backup --- include/utils/backup_helpers.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/utils/backup_helpers.h (limited to 'include') diff --git a/include/utils/backup_helpers.h b/include/utils/backup_helpers.h new file mode 100644 index 0000000..f70444d --- /dev/null +++ b/include/utils/backup_helpers.h @@ -0,0 +1,15 @@ +#ifndef _UTILS_BACKUP_HELPERS_H +#define _UTILS_BACKUP_HELPERS_H + +int back_up_files(int oldSnapshotFD, int newSnapshotFD, int oldDataStream, + char const* fileBase, char const* const* files, int fileCount); + +#define TEST_BACKUP_HELPERS 1 + +#if TEST_BACKUP_HELPERS +int backup_helper_test_empty(); +int backup_helper_test_four(); +int backup_helper_test_files(); +#endif + +#endif // _UTILS_BACKUP_HELPERS_H -- cgit v1.1