summaryrefslogtreecommitdiff
path: root/irmp/irmp-main-sharedlib.h
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-07-17 23:04:34 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-07-18 15:48:50 +0200
commit8c3291c74998bddac4b355d2ffbaf94e22bad3a7 (patch)
tree4bfaac9d36777cddd650d963c7be40f741037171 /irmp/irmp-main-sharedlib.h
parente8e8bec61ce9b855c078e2ca1de55f648af5204a (diff)
downloadlibsigrokdecode-8c3291c74998bddac4b355d2ffbaf94e22bad3a7.tar.gz
libsigrokdecode-8c3291c74998bddac4b355d2ffbaf94e22bad3a7.zip
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.
Diffstat (limited to 'irmp/irmp-main-sharedlib.h')
-rw-r--r--irmp/irmp-main-sharedlib.h1
1 files changed, 1 insertions, 0 deletions
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.