Closed valpackett closed 5 years ago
One solution to this could be to call the proxy classes *Proxy (UPowerProxy in this case).
I wonder if it also makes sense to append a Stub suffix to the stub class. Then there would be no name clashes between namespaces generated from interface names and it would be possible to include _proxy.h and _stub.h in the same compilation unit.
(Use case for including _proxy.h and _stub.h would be e.g. when a service exposes an interface that clients must implement and pass instances of for calling back. As in NetworkManager's SecretAgent and ConnMan's Agent interfaces.)
Breaks API of course, but the name clashes are annoying. :(
If I try to include interfaces named like
A.B
andA.B.C
at the same time, theB
is defined as both a class and a namespace :(For now I'm using
--cpp-namespace
as a workaround, but I wonder if a better solution is possible…