From 62a03f15989cf0b53e40fb9c37e65e13b4c64105 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Dec 2016 19:17:04 +0100 Subject: cg-base: Add NO_DEFAULT_PRIORITY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-base.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/cg-base.h') 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 +#include + + + +/** + * 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 -- cgit v1.2.3-70-g09d2