aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-base.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-18 19:17:04 +0100
committerMattias Andrée <maandree@kth.se>2016-12-18 19:17:04 +0100
commit62a03f15989cf0b53e40fb9c37e65e13b4c64105 (patch)
tree6b726399b937a2173930c63f36de543c646928b7 /src/cg-base.h
parentm (diff)
downloadcg-tools-62a03f15989cf0b53e40fb9c37e65e13b4c64105.tar.gz
cg-tools-62a03f15989cf0b53e40fb9c37e65e13b4c64105.tar.bz2
cg-tools-62a03f15989cf0b53e40fb9c37e65e13b4c64105.tar.xz
cg-base: Add NO_DEFAULT_PRIORITY
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/cg-base.h')
-rw-r--r--src/cg-base.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cg-base.h b/src/cg-base.h
index 713c9df..5ab23a9 100644
--- a/src/cg-base.h
+++ b/src/cg-base.h
@@ -17,6 +17,16 @@
*/
#include <libcoopgamma.h>
+#include <inttypes.h>
+
+
+
+/**
+ * Value of `default_priority` that indicates
+ * that there is no default priority
+ */
+#define NO_DEFAULT_PRIORITY INT64_MAX
+
/**
@@ -49,7 +59,8 @@ typedef struct filter_update
* The filter to update
*
* `.filter.crtc`, `.filter.class`, and
- * `.filter.priority`, `.filter.depth`
+ * `.filter.priority` (unless `default_priority`
+ * is `NO_DEFAULT_PRIORITY`), `.filter.depth`
* are preconfigured, and `.filter.ramps`
* is preinitialised and preset to an
* identity ramp