From 8c3291c74998bddac4b355d2ffbaf94e22bad3a7 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Fri, 17 Jul 2020 23:04:34 +0200 Subject: ir_irmp: add support for button "release" flag Recent upstream IRMP core versions introduced a "release" flag in addition to the "repeat" flag. Prepare the decoder to present these flags when libraries should pass them in results. The flags' being orthogonal slightly complicates the logic which constructs annotation texts. Do provide text variants for all previously supported zoom levels, yet try to keep the implementation as simple as possible: Match list lengths for simplified folding. Always print the flags field even if none of the flags is active (kind of was done before this change as well, just not visible). This approach easily accepts more flags as needed in future versions. --- irmp/irmp-main-sharedlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'irmp/irmp-main-sharedlib.h') diff --git a/irmp/irmp-main-sharedlib.h b/irmp/irmp-main-sharedlib.h index 05e7b53..94065f3 100644 --- a/irmp/irmp-main-sharedlib.h +++ b/irmp/irmp-main-sharedlib.h @@ -46,6 +46,7 @@ struct irmp_result_data { }; #define IRMP_DATA_FLAG_REPETITION (1 << 0) +#define IRMP_DATA_FLAG_RELEASE (1 << 1) /** * @brief Query the IRMP library's configured sample rate. -- cgit v1.2.3-70-g09d2