diff options
author | Ben Summers <ben@fluffy.co.uk> | 2005-10-14 08:50:54 +0000 |
---|---|---|
committer | Ben Summers <ben@fluffy.co.uk> | 2005-10-14 08:50:54 +0000 |
commit | 99f8ce096bc5569adbfea1911dbcda24c28d8d8b (patch) | |
tree | 049c302161fea1f2f6223e1e8f3c40d9e8aadc8b /lib/common/TemporaryDirectory.h |
Box Backup 0.09 with a few tweeks
Diffstat (limited to 'lib/common/TemporaryDirectory.h')
-rwxr-xr-x | lib/common/TemporaryDirectory.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/common/TemporaryDirectory.h b/lib/common/TemporaryDirectory.h new file mode 100755 index 00000000..62010f79 --- /dev/null +++ b/lib/common/TemporaryDirectory.h @@ -0,0 +1,26 @@ +// -------------------------------------------------------------------------- +// +// File +// Name: TemporaryDirectory.h +// Purpose: Location of temporary directory +// Created: 2003/10/13 +// +// -------------------------------------------------------------------------- + +#ifndef TEMPORARYDIRECTORY__H +#define TEMPORARYDIRECTORY__H + +#include <string> + +#ifdef PLATFORM_STATIC_TEMP_DIRECTORY_NAME + // Prefix name with Box to avoid clashing with OS API names + inline std::string BoxGetTemporaryDirectoryName() + { + return std::string(PLATFORM_STATIC_TEMP_DIRECTORY_NAME); + } +#else + non-static temporary directory names not supported yet +#endif + +#endif // TEMPORARYDIRECTORY__H + |