GNOME Bugzilla – Bug 658976
gdbus-codegen(1)'s C namespace option needs to support Ugly_Case
Last modified: 2011-09-16 20:03:37 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 >
Fixed on branch master and glib-2-30 including a test case - the test program now uses "--c-namespace Foo_iGen"