]> sigrok.org Git - libsigrokflow.git/blobdiff - include/libsigrokflow/libsigrokflow.hpp
tests/init: Multiple Srf::init() calls should throw.
[libsigrokflow.git] / include / libsigrokflow / libsigrokflow.hpp
index 5e8f48346793209a1ad32b61bdaffb71d0d08d9a..c13e1c65203b96215e0a7c5c14ad740eff575311 100644 (file)
 #ifndef LIBSIGROKFLOW_LIBSIGROKFLOW_HPP
 #define LIBSIGROKFLOW_LIBSIGROKFLOW_HPP
 
+/* Temporary workaround, will be dropped later. */
+#define HAVE_LIBSIGROKCXX 1
+#define HAVE_LIBSIGROKDECODE 1
+
 #include <gstreamermm.h>
 #include <gstreamermm/private/element_p.h>
 #include <gstreamermm/private/basesink_p.h>
+#ifdef HAVE_LIBSIGROKCXX
 #include <libsigrokcxx/libsigrokcxx.hpp>
+#endif
+#ifdef HAVE_LIBSIGROKDECODE
 #include <libsigrokdecode/libsigrokdecode.h>
+#endif
 
 namespace Srf
 {
@@ -62,6 +70,7 @@ protected:
         explicit CaptureDevice(GstElement *gobj);
 };
 
+#ifdef HAVE_LIBSIGROKCXX
 class LegacyCaptureDevice :
         public CaptureDevice
 {
@@ -168,7 +177,9 @@ private:
         shared_ptr<sigrok::Output> _libsigrok_output;
         map<string, Glib::VariantBase> _options;
 };
+#endif
 
+#ifdef HAVE_LIBSIGROKDECODE
 class LegacyDecoder :
         public Sink
 {
@@ -201,6 +212,7 @@ private:
         uint64_t _abs_ss;
         uint64_t _unitsize;
 };
+#endif
 
 }
 #endif