After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 658976 - gdbus-codegen(1)'s C namespace option needs to support Ugly_Case
gdbus-codegen(1)'s C namespace option needs to support Ugly_Case
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gdbus
unspecified
Other Linux
: Normal normal
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-09-13 18:25 UTC by David Zeuthen (not reading bugmail)
Modified: 2011-09-16 20:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Zeuthen (not reading bugmail) 2011-09-13 18:25:16 UTC
On Tue, 2011-09-13 at 14:20 -0400, Matthew Barnes wrote:
On Tue, 2011-09-13 at 14:02 -0400, David Zeuthen wrote:
> > Algorithms are not enough, for example we need to be able to handle
> > things like iSCSIInitiator map to iscsi_initiator. Anyway, the idea in
> > gdbus-codegen(1), as per the man page (search for Ugly_Case),
> > 
> >  http://developer.gnome.org/gio/unstable/gdbus-codegen.html
> > 
> > is that you should be able to use
> > 
> >  --c-namespace E_Source_Registry
> > 
> > and get e.g. e_source_registry_xyz_get_type() and
> > E_SOURCE_REGISTRY_TYPE_XYZ
> > 
> > It could be this doesn't yet work for --c-namespace and only for
> > annotations. If so, please open a bug and we'll fix it (in the mean time
> > you can use the org.gtk.GDBus.C.Name annotation I think).
> 
> "--c-namespace E_Source_Registry" produced:
> 
>    E_Source_Registry
>    E__SOURCE__REGISTRY
>    e__source__registry
>
Comment 1 David Zeuthen (not reading bugmail) 2011-09-16 20:03:37 UTC
Fixed on branch master and glib-2-30 including a test case - the test program now uses "--c-namespace Foo_iGen"