From: Eric Bollengier Date: Fri, 17 Mar 2023 15:15:09 +0000 (+0100) Subject: Add JCR::use_client() to determine if a Job uses a Client X-Git-Tag: Release-13.0.3~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38e6e1e27659a42cebabf5e234b5293e4e0751b6;p=thirdparty%2Fbacula.git Add JCR::use_client() to determine if a Job uses a Client --- diff --git a/bacula/src/jcr.h b/bacula/src/jcr.h index 0832cda34..53038cf58 100644 --- a/bacula/src/jcr.h +++ b/bacula/src/jcr.h @@ -217,6 +217,16 @@ public: int32_t getJobType() const { return m_JobType; }; int32_t getJobLevel() const { return m_JobLevel; }; int32_t getJobStatus() const { return JobStatus; }; + bool use_client() const { + switch (m_JobType) { + case JT_BACKUP: + case JT_RESTORE: + case JT_VERIFY: + return true; + default: + return false; + } + }; bool no_client_used() const { return (m_JobLevel == L_VIRTUAL_FULL); };