diff options
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 |
commit | 3ad977b41c6e4ef30c2f4f316b909b742ffc04aa (patch) | |
tree | 0b3c7a5263817709bc31c19e02f9fbc19b63de82 /include/utils | |
parent | 06d96020c35dac2bf1651cb8bd4cfced911f1142 (diff) | |
download | frameworks_base-3ad977b41c6e4ef30c2f4f316b909b742ffc04aa.zip frameworks_base-3ad977b41c6e4ef30c2f4f316b909b742ffc04aa.tar.gz frameworks_base-3ad977b41c6e4ef30c2f4f316b909b742ffc04aa.tar.bz2 |
Add some C++ code to do raw files for backup
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/backup_helpers.h | 15 |
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 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 |