1# BAREOS - Backup Archiving REcovery Open Sourced 2# 3# Copyright (C) 2013-2014 Bareos GmbH & Co. KG 4# 5# This program is Free Software; you can redistribute it and/or 6# modify it under the terms of version three of the GNU Affero General Public 7# License as published by the Free Software Foundation, which is 8# listed in the file LICENSE. 9# 10# This program is distributed in the hope that it will be useful, but 11# WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13# Affero General Public License for more details. 14# 15# You should have received a copy of the GNU Affero General Public License 16# along with this program; if not, write to the Free Software 17# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18# 02110-1301, USA. 19# 20# Author: Marco van Wieringen 21# 22bJobMessageType = dict( 23 M_ABORT=1, 24 M_DEBUG=2, 25 M_FATAL=3, 26 M_ERROR=4, 27 M_WARNING=5, 28 M_INFO=6, 29 M_SAVED=7, 30 M_NOTSAVED=8, 31 M_SKIPPED=9, 32 M_MOUNT=10, 33 M_ERROR_TERM=11, 34 M_TERM=12, 35 M_RESTORED=13, 36 M_SECURITY=14, 37 M_ALERT=15, 38 M_VOLMGMT=16 39) 40 41bsdrVariable = dict( 42 bsdVarJob=1, 43 bsdVarLevel=2, 44 bsdVarType=3, 45 bsdVarJobId=4, 46 bsdVarClient=5, 47 bsdVarPool=6, 48 bsdVarPoolType=7, 49 bsdVarStorage=8, 50 bsdVarMediaType=9, 51 bsdVarJobName=10, 52 bsdVarJobStatus=11, 53 bsdVarVolumeName=12, 54 bsdVarJobErrors=13, 55 bsdVarJobFiles=14, 56 bsdVarJobBytes=15, 57 bsdVarCompatible=16, 58 bsdVarPluginDir=17 59) 60 61bsdwVariable = dict( 62 bsdwVarJobReport=1, 63 bsdwVarVolumeName=2, 64 bsdwVarPriority=3, 65 bsdwVarJobLevel=4 66) 67 68bRCs = dict( 69 bRC_OK=0, 70 bRC_Stop=1, 71 bRC_Error=2, 72 bRC_More=3, 73 bRC_Term=4, 74 bRC_Seen=5, 75 bRC_Core=6, 76 bRC_Skip=7, 77 bRC_Cancel=8 78) 79 80bsdEventType = dict( 81 bsdEventJobStart=1, 82 bsdEventJobEnd=2, 83 bsdEventDeviceInit=3, 84 bsdEventDeviceMount=4, 85 bsdEventVolumeLoad=5, 86 bsdEventDeviceReserve=6, 87 bsdEventDeviceOpen=7, 88 bsdEventLabelRead=8, 89 bsdEventLabelVerified=9, 90 bsdEventLabelWrite=10, 91 bsdEventDeviceClose=11, 92 bsdEventVolumeUnload=12, 93 bsdEventDeviceUnmount=13, 94 bsdEventReadError=14, 95 bsdEventWriteError=15, 96 bsdEventDriveStatus=16, 97 bsdEventVolumeStatus=17, 98 bsdEventSetupRecordTranslation=18, 99 bsdEventReadRecordTranslation=19, 100 bsdEventWriteRecordTranslation=20, 101 bsdEventDeviceRelease=21, 102 bsdEventNewPluginOptions=22, 103 bsdEventChangerLock=23, 104 bsdEventChangerUnlock=24 105) 106