/* Events that are passed to plugin */
typedef enum {
- bEventJobStart = 1,
- bEventJobEnd = 2,
- bEventStartBackupJob = 3,
- bEventEndBackupJob = 4,
- bEventStartRestoreJob = 5,
- bEventEndRestoreJob = 6,
- bEventStartVerifyJob = 7,
- bEventEndVerifyJob = 8,
- bEventBackupCommand = 9,
- bEventRestoreCommand = 10,
- bEventLevel = 11,
- bEventSince = 12,
- bEventCancelCommand = 13,
- bEventInitializeVSS = 14,
- bEventPrepareVSS = 15,
+ bEventJobStart = 1,
+ bEventJobEnd = 2,
+ bEventStartBackupJob = 3,
+ bEventEndBackupJob = 4,
+ bEventStartRestoreJob = 5,
+ bEventEndRestoreJob = 6,
+ bEventStartVerifyJob = 7,
+ bEventEndVerifyJob = 8,
+ bEventBackupCommand = 9,
+ bEventRestoreCommand = 10,
+ bEventLevel = 11,
+ bEventSince = 12,
+ bEventCancelCommand = 13,
+ bEventVssBackupAddComponents = 14,
+ bEventVssRestoreLoadComponentMetadata = 15,
+ bEventVssRestoreSetComponentsSelected = 16,
} bEventType;
typedef struct s_bEvent {
/* START VSS ON WIN32 */
if (jcr->VSS) {
if (g_pVSSClient->InitializeForBackup(jcr)) {
- generate_plugin_event(jcr, bEventInitializeVSS);
+ generate_plugin_event(jcr, bEventVssBackupAddComponents);
/* tell vss which drives to snapshot */
char szWinDriveLetters[27];
if (get_win32_driveletters(jcr->ff, szWinDriveLetters)) {
switch (init_type)
{
case VSS_INIT_RESTORE_AFTER_INIT:
- generate_plugin_event(jcr, bEventInitializeVSS);
+ generate_plugin_event(jcr, bEventVssRestoreLoadComponentMetadata);
return true;
case VSS_INIT_RESTORE_AFTER_GATHER:
- generate_plugin_event(jcr, bEventPrepareVSS);
+ generate_plugin_event(jcr, bEventVssRestoreSetComponentsSelected);
return true;
default:
return false;