[gstreamermm] Added Gst::Plugin::add_dependency() methods.
- From: José Alburquerque <jaalburqu src gnome org>
- To: svn-commits-list gnome org
- Subject: [gstreamermm] Added Gst::Plugin::add_dependency() methods.
- Date: Wed, 22 Jul 2009 17:38:37 +0000 (UTC)
commit 75584364b9f30d89ec19d6cf71c6554da62d7d62
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Wed Jul 22 13:29:30 2009 -0400
Added Gst::Plugin::add_dependency() methods.
ChangeLog | 6 ++++++
gstreamer/src/plugin.hg | 13 +++++++++++++
tools/m4/convert_gst.m4 | 2 ++
3 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5d14ec7..31d80bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-22 José Alburquerque <jaalburqu svn gnome org>
+
+ * gstreamer/src/plugin.hg:
+ * tools/m4/convert_gst.m4: Added Gst::Plugin::add_dependency()
+ methods.
+
2009-07-16 José Alburquerque <jaalburqu svn gnome org>
* gstreamer/src/message.ccg:
diff --git a/gstreamer/src/plugin.hg b/gstreamer/src/plugin.hg
index 8bc60ab..e9393f9 100644
--- a/gstreamer/src/plugin.hg
+++ b/gstreamer/src/plugin.hg
@@ -25,6 +25,8 @@ _DEFS(gstreamermm,gst)
namespace Gst
{
+_WRAP_ENUM(PluginDependencyFlags, GstPluginDependencyFlags)
+
/** The plugin loading errors
*
* - MODULE - The plugin could not be loaded
@@ -85,6 +87,7 @@ public:
_WRAP_METHOD(Glib::ustring get_source() const, gst_plugin_get_source)
_WRAP_METHOD(Glib::ustring get_version() const, gst_plugin_get_version)
+ //TODO: Use Glib::Module instead of GModule if possible:
_WRAP_METHOD(GModule* get_module(), gst_plugin_get_module)
_WRAP_METHOD(const GModule* get_module() const, gst_plugin_get_module, constversion)
@@ -113,6 +116,16 @@ public:
//gst_plugin_name_filter is a C API convenience function which tells if a
//plugin has a given name so ignore it.
_IGNORE(gst_plugin_name_filter)
+
+ _WRAP_METHOD(void add_dependency(const Glib::StringArrayHandle& env_vars,
+ const Glib::StringArrayHandle& paths,
+ const Glib::StringArrayHandle& names,
+ Gst::PluginDependencyFlags flags), gst_plugin_add_dependency)
+
+ _WRAP_METHOD(void add_dependency(const Glib::ustring& env_vars,
+ const Glib::ustring& paths,
+ const Glib::ustring& names,
+ Gst::PluginDependencyFlags flags), gst_plugin_add_dependency_simple)
};
} // namespace Gst
diff --git a/tools/m4/convert_gst.m4 b/tools/m4/convert_gst.m4
index 8c4d0db..f778cec 100644
--- a/tools/m4/convert_gst.m4
+++ b/tools/m4/convert_gst.m4
@@ -20,6 +20,7 @@ _CONV_ENUM(Gst,MixerFlags)
_CONV_ENUM(Gst,PadDirection)
_CONV_ENUM(Gst,PadLinkReturn)
_CONV_ENUM(Gst,PadPresence)
+_CONV_ENUM(Gst,PluginDependencyFlags)
_CONV_ENUM(Gst,QueryType)
_CONV_ENUM(Gst,SeekFlags)
_CONV_ENUM(Gst,SeekType)
@@ -207,6 +208,7 @@ _CONVERSION(`const va_list&',`va_list',`const_cast<va_list&>($3)')
_CONVERSION(`GQuark',`Glib::QueryQuark',`Glib::QueryQuark($3)')
_CONVERSION(`const Glib::QueryQuark&',`GQuark',`$3')
_CONVERSION(`Glib::StaticRecMutex&',`GStaticRecMutex*',`$3.gobj()')
+_CONVERSION(`const Glib::StringArrayHandle&',`const gchar**',`const_cast<const char**>($3.data())')
_CONVERSION(`const Glib::ValueArray&',`GValueArray*',`const_cast<GValueArray*>($3.gobj())')
#String Conversions
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]