]> granicus.if.org Git - icinga2/commitdiff
Add script constants for the DbCat* filter categories.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 30 Oct 2013 08:09:44 +0000 (09:09 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 30 Oct 2013 09:20:00 +0000 (10:20 +0100)
Refs #4782

itl/constants.conf
lib/db_ido/dbquery.h

index c082cacc5ba31c75f2d2d4168c7784b2f9f2a172..2897655193535fd0bee9dbca22eba031701d28de 100644 (file)
@@ -62,3 +62,22 @@ set DomainPrivCommand = (1<<2)
 
 set DomainPrivReadOnly = (DomainPrivRead)
 set DomainPrivReadWrite = (DomainPrivRead | DomainPrivCheckResult | DomainPrivCommand)
+
+/*
+ * IDO filter categories
+ */
+set DbCatConfig = (1 << 0)
+set DbCatState = (1 << 1)
+set DbCatAcknowledgement = (1 << 2)
+set DbCatComment = (1 << 3)
+set DbCatDowntime = (1 << 4)
+set DbCatEventHandler = (1 << 5)
+set DbCatExternalCommand = (1 << 6)
+set DbCatFlapping = (1 << 7)
+set DbCatCheck = (1 << 8)
+set DbCatLog = (1 << 9)
+set DbCatNotification = (1 << 10)
+set DbCatProgramStatus = (1 << 11)
+set DbCatRetention = (1 << 12)
+set DbCatStateHistory = (1 << 13)
+
index 4dac7535794567c733c1c5f21dd80123ac5d7b75..bea545f02966e429ff6642d481248aad65a1f759 100644 (file)
@@ -34,23 +34,23 @@ enum DbQueryType
 
 enum DbQueryCategory
 {
-       DbCatInvalid,
+       DbCatInvalid = -1,
 
-       DbCatConfig,
-       DbCatState,
+       DbCatConfig = (1 << 0),
+       DbCatState = (1 << 1),
 
-       DbCatAcknowledgement,
-       DbCatComment,
-       DbCatDowntime,
-       DbCatEventHandler,
-       DbCatExternalCommand,
-       DbCatFlapping,
-       DbCatCheck,
-       DbCatLog,
-       DbCatNotification,
-       DbCatProgramStatus,
-       DbCatRetention,
-       DbCatStateHistory
+       DbCatAcknowledgement = (1 << 2),
+       DbCatComment = (1 << 3),
+       DbCatDowntime = (1 << 4),
+       DbCatEventHandler = (1 << 5),
+       DbCatExternalCommand = (1 << 6),
+       DbCatFlapping = (1 << 7),
+       DbCatCheck = (1 << 8),
+       DbCatLog = (1 << 9),
+       DbCatNotification = (1 << 10),
+       DbCatProgramStatus = (1 << 11),
+       DbCatRetention = (1 << 12),
+       DbCatStateHistory = (1 << 13)
 };
 
 class DbObject;