From: Martin Ling Date: Sun, 30 Dec 2018 01:26:35 +0000 (+0100) Subject: Add base class constructors. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4b7d782a6365ea90d9b7859e86e28d41aa7e31c7;p=libsigrokflow.git Add base class constructors. --- diff --git a/src/main.cpp b/src/main.cpp index c611157..5ee4f42 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,6 +37,21 @@ void init() "0.01", "GPLv3+", "sigrok", "libsigrokflow", "http://sigrok.org"); } +GstBlock::GstBlock(GstElement *gobj) : + Gst::Element(gobj) +{ +} + +Device::Device(GstElement *gobj) : + GstBlock(gobj) +{ +} + +CaptureDevice::CaptureDevice(GstElement *gobj) : + Device(gobj) +{ +} + void LegacyCaptureDevice::class_init(Gst::ElementClass *klass) { klass->set_metadata("sigrok legacy capture device",