X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fmain.cpp;h=080ef64376e5fe69d66dcbfc5402f909cb6debc1;hb=1060e9b5f80cde2c6b6cb18ded1fdbe0862c7796;hp=db3de8fad347ba9cc16eb339c1ef8db19944579e;hpb=92d521e768ce580d32f9ea7154d69a935222e48c;p=libsigrokflow.git diff --git a/src/main.cpp b/src/main.cpp index db3de8f..080ef64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,6 +33,7 @@ using namespace std::placeholders; void init() { +#ifdef HAVE_LIBSIGROKCXX Gst::Plugin::register_static(GST_VERSION_MAJOR, GST_VERSION_MINOR, "sigrok_legacy_capture_device", "Wrapper for capture devices using legacy libsigrok APIs", @@ -48,6 +49,7 @@ void init() "Wrapper for outputs using legacy libsigrok APIs", sigc::ptr_fun(&LegacyOutput::register_element), "0.01", "GPL", "sigrok", "libsigrokflow", "http://sigrok.org"); +#endif Gst::Plugin::register_static(GST_VERSION_MAJOR, GST_VERSION_MINOR, "sigrok_legacy_decoder", "Wrapper for protocol decoders using legacy libsigrokdecode APIs", @@ -70,6 +72,7 @@ CaptureDevice::CaptureDevice(GstElement *gobj) : { } +#ifdef HAVE_LIBSIGROKCXX void LegacyCaptureDevice::class_init(Gst::ElementClass *klass) { klass->set_metadata("sigrok legacy capture device", @@ -345,6 +348,7 @@ bool LegacyOutput::stop_vfunc() cout << result; return true; } +#endif void LegacyDecoder::class_init(Gst::ElementClass *klass) {