]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/classes.cpp
Introduce OutputFlag
[libsigrok.git] / bindings / cxx / classes.cpp
index 357c9d6f3cbccac46f24a7d1c74025c525b40324..f8a0231497c599480be06565c735650b3e612453 100644 (file)
@@ -1573,6 +1573,11 @@ shared_ptr<Output> OutputFormat::create_output(string filename,
                Output::Deleter());
 }
 
+bool OutputFormat::test_flag(const OutputFlag *flag)
+{
+       return sr_output_test_flag(_structure, flag->id());
+}
+
 Output::Output(shared_ptr<OutputFormat> format,
                shared_ptr<Device> device, map<string, Glib::VariantBase> options) :
        UserOwned(sr_output_new(format->_structure,