#include <AutopatcherRepositoryInterface.h>
Public Member Functions | |
virtual bool | GetChangelistSinceDate (const char *applicationName, FileList *addedFiles, FileList *deletedFiles, const char *sinceDate, char currentDate[64])=0 |
virtual bool | GetPatches (const char *applicationName, FileList *input, FileList *patchList, char currentDate[64])=0 |
virtual const char * | GetLastError (void) const =0 |
virtual bool AutopatcherRepositoryInterface::GetChangelistSinceDate | ( | const char * | applicationName, | |
FileList * | addedFiles, | |||
FileList * | deletedFiles, | |||
const char * | sinceDate, | |||
char | currentDate[64] | |||
) | [pure virtual] |
Get list of files added and deleted since a certain date. This is used by AutopatcherServer and not usually explicitly called.
[in] | applicationName | A null terminated string identifying the application |
[out] | addedFiles | A list of the current versions of filenames with hashes as their data that were created after sinceData |
[out] | deletedFiles | A list of the current versions of filenames that were deleted after sinceData |
[in] | An | input date, in whatever format your repository uses |
[out] | currentDate | The current server date, in whatever format your repository uses |
Implemented in AutopatcherPostgreRepository, and AutopatcherMySQLRepository.
virtual const char* AutopatcherRepositoryInterface::GetLastError | ( | void | ) | const [pure virtual] |
Implemented in AutopatcherPostgreRepository, and AutopatcherMySQLRepository.
virtual bool AutopatcherRepositoryInterface::GetPatches | ( | const char * | applicationName, | |
FileList * | input, | |||
FileList * | patchList, | |||
char | currentDate[64] | |||
) | [pure virtual] |
Get patches (or files) for every file in input, assuming that input has a hash for each of those files.
[in] | applicationName | A null terminated string identifying the application |
[in] | input | A list of files with SHA1_LENGTH byte hashes to get from the database. |
[out] | patchList | You should return list of files with either the filedata or the patch. This is a subset of input. The context data for each file will be either PC_WRITE_FILE (to just write the file) or PC_HASH_WITH_PATCH (to patch). If PC_HASH_WITH_PATCH, then the file contains a SHA1_LENGTH byte patch followed by the hash. The datalength is patchlength + SHA1_LENGTH |
[out] | currentDate | The current server date, in whatever format your repository uses |
Implemented in AutopatcherPostgreRepository, and AutopatcherMySQLRepository.