]> sigrok.org Git - libsigrok.git/blobdiff - src/output/output.c
Introduce OutputFlag
[libsigrok.git] / src / output / output.c
index 04f3054cf1deafeb7674e2fda07adc5c7a926fbb..d06002e3307ca687511352e657e6855cf05c4c90 100644 (file)
@@ -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.