[Vala] cname in vapigen metadata



Is there a way to use the cname CCode attribute in vapigen's metadata file?
I've tried it on a bunch of different elements (classes, methods, signals)
and it doesn't seem to work. Also, there are no instances of it being used
in the git tree for the bindings [1].

If this isn't supported then maybe there is another way to do what I need.
I'm working on generating a binding for a library that has a namespace
collision between a signal and a method. Ideally, you would handle this by
just changing the vala name of the signal or method with vapigen's metadata
file. But vapigen actually doesn't let you do that, instead it just fails
and says there is a namespace collision. So now I have to change the name of
the signal by hand in the .gi file and then change the emitted C name in the
vapi. Is there a better way to do this?

[1] http://git.gnome.org/browse/vala/tree/vapi/packages


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]