X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Foutput.c;h=0a9e7f880689bee89308cd9e30dd4e8b9075fce7;hb=9380ec2f05e67518b1b23057749df3684a0cf05e;hp=04f3054cf1deafeb7674e2fda07adc5c7a926fbb;hpb=81b3ce374c3b6d48e5ed321ac7a871ce4248a0bb;p=libsigrok.git diff --git a/src/output/output.c b/src/output/output.c index 04f3054c..0a9e7f88 100644 --- a/src/output/output.c +++ b/src/output/output.c @@ -18,7 +18,7 @@ */ #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" /** @cond PRIVATE */ @@ -156,6 +156,18 @@ SR_API const char *const *sr_output_extensions_get( return omod->exts; } +/* + * Checks whether a given flag is set. + * + * @see sr_output_flag + * @since 0.4.0 + */ +SR_API gboolean sr_output_test_flag(const struct sr_output_module *omod, + uint64_t flag) +{ + return (flag & omod->flags); +} + /** * Return the output module with the specified ID, or NULL if no module * with that id is found.