summaryrefslogtreecommitdiff
path: root/include/utils
diff options
context:
space:
mode:
author Joe Onorato <joeo@android.com> 2009-05-05 11:50:51 -0700
committer Joe Onorato <joeo@android.com> 2009-05-05 13:45:25 -0700
commit0c4863b2669867cfc76ea9b50ea3f9b1fecfb9a4 (patch)
tree4944927123cae9802b2dc08962144db681a31c83 /include/utils
parent512ec5aae12c9c5c2f0ad64e8b467a33217e835c (diff)
Add some C++ code to do raw files for backup
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/backup_helpers.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/utils/backup_helpers.h b/include/utils/backup_helpers.h
new file mode 100644
index 0000000000..f70444df6d
--- /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