]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Add JCR::use_client() to determine if a Job uses a Client
authorEric Bollengier <eric@baculasystems.com>
Fri, 17 Mar 2023 15:15:09 +0000 (16:15 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 2 May 2023 07:07:18 +0000 (09:07 +0200)
bacula/src/jcr.h

index 0832cda343cc47bc24e41478b2efaa803edf7701..53038cf5871a72e66aa0dab40b9dab9ab12802ba 100644 (file)
@@ -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);
    };