]> sigrok.org Git - libsigrok.git/blobdiff - src/output/output.c
Build: Set local include directories in Makefile.am
[libsigrok.git] / src / output / output.c
index 04f3054cf1deafeb7674e2fda07adc5c7a926fbb..0a9e7f880689bee89308cd9e30dd4e8b9075fce7 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #include <string.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #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.