gnomemm r2153 - in gstreamermm/trunk: . gstreamer/src
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r2153 - in gstreamermm/trunk: . gstreamer/src
- Date: Mon, 13 Apr 2009 02:00:40 +0000 (UTC)
Author: jaalburqu
Date: Mon Apr 13 02:00:40 2009
New Revision: 2153
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2153&view=rev
Log:
2009-04-12 Josà Alburquerque <jaalburqu svn gnome org>
* gstreamer/src/gst_vfuncs.defs:
* gstreamer/src/urihandler.hg: Wrapped URIHandler's vfuncs. Four
vfuncs don't appear to be wrappable because they don't include a
GstURIHandler parameter in the C Interface declarations. I left them
as a TODO to be taken care of when the rest of the API's vfuncs are
wrapped (we can come back to this a little later).
* gstreamer/src/navigation.hg: Included docs (from C API docs) for
send_event_vfunc().
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/gstreamer/src/gst_vfuncs.defs
gstreamermm/trunk/gstreamer/src/navigation.hg
gstreamermm/trunk/gstreamer/src/urihandler.hg
Modified: gstreamermm/trunk/gstreamer/src/gst_vfuncs.defs
==============================================================================
--- gstreamermm/trunk/gstreamer/src/gst_vfuncs.defs (original)
+++ gstreamermm/trunk/gstreamer/src/gst_vfuncs.defs Mon Apr 13 02:00:40 2009
@@ -332,6 +332,21 @@
)
)
+; GstURIHandler
+
+(define-vfunc get_uri
+ (of-object "GstURIHandler")
+ (return-type "const-gchar*")
+)
+
+(define-vfunc set_uri
+ (of-object "GstURIHandler")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "uri")
+ )
+)
+
; GstBaseSrc
(define-vfunc get_caps
Modified: gstreamermm/trunk/gstreamer/src/navigation.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/navigation.hg (original)
+++ gstreamermm/trunk/gstreamer/src/navigation.hg Mon Apr 13 02:00:40 2009
@@ -41,6 +41,8 @@
_WRAP_METHOD(void send_mouse_event(const Glib::ustring& event, int button, double x, double y), gst_navigation_send_mouse_event)
#ifdef GLIBMM_VFUNCS_ENABLED
+ /** Called when an event has been sent to the Gst::Navigation.
+ */
virtual void send_event_vfunc(Gst::Structure& structure);
#endif //GLIBMM_VFUNCS_ENABLED
Modified: gstreamermm/trunk/gstreamer/src/urihandler.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/urihandler.hg (original)
+++ gstreamermm/trunk/gstreamer/src/urihandler.hg Mon Apr 13 02:00:40 2009
@@ -69,7 +69,22 @@
*/
_WRAP_SIGNAL(void new_uri(const Glib::ustring& uri), "new-uri")
- //TODO: Wrap vfuncs.
+#m4 _CONVERSION(`Glib::ustring', `const gchar*', `($3).c_str()')
+
+ /** Virtual method which should be implemented to return the URI currently
+ * handled by the element.
+ */
+ _WRAP_VFUNC(Glib::ustring get_uri() const, "get_uri")
+
+ /** Virtual method which should be implemented to set a new URI.
+ */
+ _WRAP_VFUNC(bool set_uri(const Glib::ustring& uri), "set_uri)
+
+ //TODO: The GstURIHandler vfuncs get_type(), get_protocols(), get_type_full()
+ //and get_protocols_full() don't have a GstURIHandler as an argument declared
+ //in the Interface structure so those seem impossible to wrap because the C++
+ //callback would have no way of knowing which object's virtual function
+ //should be called.
};
} // namespace Gst
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]