]> sigrok.org Git - libsigrokflow.git/blobdiff - include/libsigrokflow/libsigrokflow.hpp
Fix implementation of LegacyInput.
[libsigrokflow.git] / include / libsigrokflow / libsigrokflow.hpp
index e084e35cc39afd857a2841ae3ad668d7c794413d..8f188248749e6bcf6693d22b5409650349e872c9 100644 (file)
@@ -117,15 +117,13 @@ public:
                shared_ptr<sigrok::InputFormat> format,
                map<string, Glib::VariantBase> options = map<string, Glib::VariantBase>());
 
-       /* Start function (not an override). */
-       bool start_vfunc();
-
        /* Chain function (not an override). */
        Gst::FlowReturn chain(const Glib::RefPtr<Gst::Pad> &pad,
                        const Glib::RefPtr<Gst::Buffer> &buf);
 
-       /* Stop function (not an override). */
-       bool stop_vfunc();
+       /* Event function (not an override). */
+       bool event(const Glib::RefPtr<Gst::Pad> &pad,
+                       Glib::RefPtr<Gst::Event> &event);
 
        /* Gst class init. */
        static void class_init(Gst::ElementClass<LegacyInput> *klass);
@@ -155,7 +153,6 @@ public:
        /* Create from libsigrok output object. */
        static Glib::RefPtr<LegacyOutput> create(
                shared_ptr<sigrok::OutputFormat> libsigrok_output_format,
-               shared_ptr<sigrok::Device> libsigrok_device,
                map<string, Glib::VariantBase> options = map<string, Glib::VariantBase>());
 
        /* Override start. */