/* gstreamermm - a C++ wrapper for gstreamer * * Copyright 2008-2016 The gstreamermm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include _DEFS(gstreamermm,gst) namespace Gst { _WRAP_ENUM(Rank, GstRank) /** A base class for anything that can be added to a Gst::Plugin. * * Last reviewed on 2016-06-06 (1.8.0) */ class PluginFeature : public Object { _CLASS_GOBJECT(PluginFeature, GstPluginFeature, GST_PLUGIN_FEATURE, Object, GstObject) public: /** For example, * bool on_filter(const Glib::RefPtr& feature);. * The filter function should return true if the feature is a match, false * otherwise. */ typedef sigc::slot< bool, const Glib::RefPtr& > SlotFilter; _WRAP_METHOD(void set_rank(guint rank), gst_plugin_feature_set_rank) _WRAP_METHOD(guint get_rank() const, gst_plugin_feature_get_rank) _WRAP_METHOD(Glib::RefPtr load(), gst_plugin_feature_load) _WRAP_METHOD(Glib::RefPtr get_plugin() const, gst_plugin_feature_get_plugin) _WRAP_METHOD(Glib::ustring get_plugin_name() const, gst_plugin_feature_get_plugin_name) // Don't wrap gst_plugin_feature_list_free because Glib::ListHandle<> handles // list freeing already. _IGNORE(gst_plugin_feature_list_free) _WRAP_METHOD(bool check_version(guint min_major, guint min_minor, guint min_micro) const, gst_plugin_feature_check_version) }; } // namespace Gst