[gstreamer-bugs] [Bug 518934] Facilitating wrapping of GstTagList by glibmm

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Feb 26 16:11:46 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=518934

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #3 from José Alburquerque  2008-02-27 00:11 UTC -------
Thanks for your attention.  I will definitely pay attention to appropriately
submitting patches when I do.  I'll elaborate below as to why I'm requesting
this change:

To generate the C++ API, we run source files (*.hg and *.ccg) files through a
glibmm script called gmmproc which then generates the *.h and *.cc files for
the wrapper library.  In this case, the source files TagList.hg and TagList.ccg
are processed to produce TagList.h and TagList.cc.

Presently, gmmproc assumes that structs are declared in the header files as
"typedef struct _ExampleStructure ExampleStructure" and thus in this case it
inserts the following lines at the top of the generated header files:

#ifndef DOXYGEN_SHOULD_SKIP_THIS
extern "C" { typedef struct _GstTagList GstTagList; }
#endif

This produces a type mismatch compilation error.  gmmproc has been pre-written
and it is really a fine helper and I don't see how it can be changed to work on
a case by case basis so I thought that this change might be easy to do for
gstreamer.

To get a sense of what I'm explaining please see the Unable to predeclare
structs in the Problems in C API section
(http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/aphs06.html) of
Appendix H (http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/aph.html) of
the Programming with gtkmm online book
(http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html).

If this is acceptable, it would be a great help in this gstreamermm wrapping
process of your fine software.  Many C++ programmers will benefit and be
thankful. :-)

With your permission, I'm also attaching a more appropriate patch.  I hope I've
answered your questions.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=518934.




More information about the Gstreamer-bugs mailing list