Ignore:
Timestamp:
02/02/2012 22:20:29 (4 months ago)
Author:
chris
Message:

Force all options to be present to BackupClientRestore?(), to fix
misinterpretation of char * arguments as bools. Use macros to
simplify test code. Test that locations not present when bbackupd
started will be detected and backed up if subsequently created.

Location:
box/trunk/lib/backupclient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/backupclient/BackupClientRestore.cpp

    r3002 r3082  
    842842// -------------------------------------------------------------------------- 
    843843int BackupClientRestore(BackupProtocolClient &rConnection, 
    844         int64_t DirectoryID, const char *RemoteDirectoryName, 
    845         const char *LocalDirectoryName, bool PrintDots, bool RestoreDeleted, 
     844        int64_t DirectoryID, const std::string& RemoteDirectoryName, 
     845        const std::string& LocalDirectoryName, bool PrintDots, bool RestoreDeleted, 
    846846        bool UndeleteAfterRestoreDeleted, bool Resume, 
    847847        bool ContinueAfterErrors) 
  • box/trunk/lib/backupclient/BackupClientRestore.h

    r2828 r3082  
    2525int BackupClientRestore(BackupProtocolClient &rConnection, 
    2626        int64_t DirectoryID, 
    27         const char *RemoteDirectoryName, 
    28         const char *LocalDirectoryName, 
    29         bool PrintDots = false, 
    30         bool RestoreDeleted = false, 
    31         bool UndeleteAfterRestoreDeleted = false, 
    32         bool Resume = false, 
    33         bool ContinueAfterErrors = false); 
     27        const std::string& RemoteDirectoryName, 
     28        const std::string& LocalDirectoryName, 
     29        bool PrintDots, 
     30        bool RestoreDeleted, 
     31        bool UndeleteAfterRestoreDeleted, 
     32        bool Resume, 
     33        bool ContinueAfterErrors); 
    3434 
    3535#endif // BACKUPSCLIENTRESTORE__H 
Note: See TracChangeset for help on using the changeset viewer.