gnomemm r1345 - in gstreamermm/trunk: . gstreamer/src
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1345 - in gstreamermm/trunk: . gstreamer/src
- Date: Tue, 12 Feb 2008 03:16:08 +0000 (GMT)
Author: jaalburqu
Date: Tue Feb 12 03:16:07 2008
New Revision: 1345
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1345&view=rev
Log:
2008-02-11 Josà Alburquerque <jaalburqu svn gnome org>
* gstreamer/src/pluginfeature.ccg:
* gstreamer/src/pluginfeature.hg: Reworked TypeNameData to include
necessary fields for type_name_filter() method; Wrote out
type_name_filter() to convert from TypeNameData to GstTypeNameData
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/gstreamer/src/pluginfeature.ccg
gstreamermm/trunk/gstreamer/src/pluginfeature.hg
Modified: gstreamermm/trunk/gstreamer/src/pluginfeature.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/pluginfeature.ccg (original)
+++ gstreamermm/trunk/gstreamer/src/pluginfeature.ccg Tue Feb 12 03:16:07 2008
@@ -19,3 +19,15 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+namespace Gst
+{
+
+bool PluginFeature::type_name_filter(const TypeNameData& data) const
+{
+ GstTypeNameData gst_data = { data.name.c_str(), data.type};
+
+ return gst_plugin_feature_type_name_filter(const_cast<GstPluginFeature*>(gobj()), (GstTypeNameData*)(&data));
+
+}
+
+} //namespace Gst
Modified: gstreamermm/trunk/gstreamer/src/pluginfeature.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/pluginfeature.hg (original)
+++ gstreamermm/trunk/gstreamer/src/pluginfeature.hg Tue Feb 12 03:16:07 2008
@@ -28,9 +28,10 @@
namespace Gst
{
-class TypeNameData
+struct TypeNameData
{
- _CLASS_GENERIC(TypeNameData, GstTypeNameData)
+ Glib::ustring name;
+ GType type;
};
/** This is a base class for anything that can be added to a Plugin.
@@ -46,7 +47,8 @@
*/
typedef sigc::slot< bool, const Glib::RefPtr<PluginFeature>& > SlotFeatureFilter;
- _WRAP_METHOD(bool type_name_filter(const TypeNameData& data) const, gst_plugin_feature_type_name_filter)
+ bool type_name_filter(const TypeNameData& data) const;
+
_WRAP_METHOD(void set_rank(guint rank), gst_plugin_feature_set_rank)
_WRAP_METHOD(void set_name(const Glib::ustring& name), gst_plugin_feature_set_name)
_WRAP_METHOD(guint get_rank() const, gst_plugin_feature_get_rank)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]