Patch dbus-binding-tool

Jeroen T. Vermeulen jtv at xs4all.nl
Thu Aug 24 21:48:08 PDT 2006


On Thu, August 24, 2006 21:03, keith preston wrote:

> I didn't know that this style of casting was obsolete.  My basic problem
> is
> that the file that the binding tools generated can not be included in a
> c++
> file because the code it generates is not c++ compliant.   This can be
> fixed
> in two way.   Either add the cast to make the code compile under c++ or
> have
> the binding tools generate two files.  A .c file that contains the code
> and
> a .h file that just include the prototypes and can be included in a c++
> file.

AFAICS the time to rely on backwards compabitility between C++ and C is
pretty much past...  Although in g++ at least you can get away with some
C-isms in functions and declarations that are extern "C".


Jeroen




More information about the dbus mailing list