diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-02-22 09:38:32 +0100 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-18 15:31:49 +0200 |
commit | 2a295b87d7f7f9fc8121b9ff61dd3ea430aa5567 (patch) | |
tree | e78b8304271f594e699c6fd25b2257b913f99eaa /irmp/irmp-main-sharedlib.c | |
parent | 19a0121b2c45d880dab2362d59e1426a5b287a26 (diff) | |
download | libsigrokdecode-2a295b87d7f7f9fc8121b9ff61dd3ea430aa5567.tar.gz libsigrokdecode-2a295b87d7f7f9fc8121b9ff61dd3ea430aa5567.zip |
irmp: silence core logic ANALYZE output from the shared library
Workaround the default verbosity level of the IRMP core logic for
PC library build configurations. Silence the ANALYZE related output.
Diffstat (limited to 'irmp/irmp-main-sharedlib.c')
-rw-r--r-- | irmp/irmp-main-sharedlib.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/irmp/irmp-main-sharedlib.c b/irmp/irmp-main-sharedlib.c index baa65c9..570df95 100644 --- a/irmp/irmp-main-sharedlib.c +++ b/irmp/irmp-main-sharedlib.c @@ -111,6 +111,19 @@ IRMP_DLLEXPORT void irmp_reset_state(void) s_startBitSample = 0; s_curSample = 0; s_end_sample = 0; + + /* + * TODO This is not the most appropriate location to control the + * core logic's verbosity. But out of the public set of library + * routines this call is closest to some initialization routine. + * The query for compile time parameter values is optional, the + * state reset is not. Multiple verbosity setup activities in + * the same program lifetime won't harm. This HACK is clearly + * preferrable over more fiddling with core logic innards, or + * the introduction of yet another DLL routine. + */ + silent = 1; + verbose = 0; } IRMP_DLLEXPORT int irmp_add_one_sample(int sample) |