| Revision 2945,
1.0 KB
checked in by chris, 13 months ago
(diff) |
|
Major refactoring to make lib/backupclient depend on lib/backupstore rather
than the other way around. This is needed to allow clients to have all the
code that they'd need to implement local backups (using the Local protocol)
in subsequent commits.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // -------------------------------------------------------------------------- |
|---|
| 2 | // |
|---|
| 3 | // File |
|---|
| 4 | // Name: BackupStoreObjectMagic.h |
|---|
| 5 | // Purpose: Magic values for the start of objects in the backup store |
|---|
| 6 | // Created: 19/11/03 |
|---|
| 7 | // |
|---|
| 8 | // -------------------------------------------------------------------------- |
|---|
| 9 | |
|---|
| 10 | #ifndef BACKUPSTOREOBJECTMAGIC__H |
|---|
| 11 | #define BACKUPSTOREOBJECTMAGIC__H |
|---|
| 12 | |
|---|
| 13 | // Each of these values is the first 4 bytes of the object file. |
|---|
| 14 | // Remember to swap from network to host byte order. |
|---|
| 15 | |
|---|
| 16 | // Magic value for file streams |
|---|
| 17 | #define OBJECTMAGIC_FILE_MAGIC_VALUE_V1 0x66696C65 |
|---|
| 18 | // Do not use v0 in any new code! |
|---|
| 19 | #define OBJECTMAGIC_FILE_MAGIC_VALUE_V0 0x46494C45 |
|---|
| 20 | |
|---|
| 21 | // Magic for the block index at the file stream -- used to |
|---|
| 22 | // ensure streams are reordered as expected |
|---|
| 23 | #define OBJECTMAGIC_FILE_BLOCKS_MAGIC_VALUE_V1 0x62696478 |
|---|
| 24 | // Do not use v0 in any new code! |
|---|
| 25 | #define OBJECTMAGIC_FILE_BLOCKS_MAGIC_VALUE_V0 0x46426C6B |
|---|
| 26 | |
|---|
| 27 | // Magic value for directory streams |
|---|
| 28 | #define OBJECTMAGIC_DIR_MAGIC_VALUE 0x4449525F |
|---|
| 29 | |
|---|
| 30 | #endif // BACKUPSTOREOBJECTMAGIC__H |
|---|
| 31 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.