GNOME Bugzilla – Bug 575870
Modifying _GET_TYPE_FUNC() macro to handle types like GtkFOOBar correctly.
Last modified: 2009-03-19 00:30:01 UTC
Would it be possible to modify _GET_TYPE_FUNC() in base.m4 so that it handles types like GtkFOOBar properly? This would help when tcp[1] plug-ins are added to gstreamermm because when wrapping their associated enum GstTCPProtocol[2], the get_type() function is not produced correctly. Suggested patch follows. Thanks. [1] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-plugin-tcp.html [2] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-multifdsink.html#GstTCPProtocol
Created attachment 130913 [details] [review] _GET_TYPE_FUNC() macro modification
The patch would also allow the URIType enum in gstreamermm's urihandler.hg to be wrapped instead of being hand-written.
This is very useful. Please commit.
Applied to glibmm branches 2-12, 2-14, 2-16 and 2-18 and to trunk (glibmm-2-12 is still used in debian stable so I included that branch just to be sure).