From fc585649dfd4597f37e1cd089a12fb23500faa17 Mon Sep 17 00:00:00 2001 From: James Harper Date: Fri, 2 Apr 2010 19:12:48 +0200 Subject: [PATCH] Apply James' rename events patch --- bacula/src/filed/fd_plugins.h | 31 ++++++++++++++++--------------- bacula/src/filed/job.c | 6 +++--- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/bacula/src/filed/fd_plugins.h b/bacula/src/filed/fd_plugins.h index 94ebe828b6..5a57ccd20d 100644 --- a/bacula/src/filed/fd_plugins.h +++ b/bacula/src/filed/fd_plugins.h @@ -156,21 +156,22 @@ typedef enum { /* 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 { diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 82f6801cde..20f8fb0313 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1597,7 +1597,7 @@ static int backup_cmd(JCR *jcr) /* 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)) { @@ -1794,10 +1794,10 @@ static bool vss_restore_init_callback(JCR *jcr, int init_type) 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; -- 2.39.5