Re: [protobuf] Conversion between C structs and google protobufs

2014-10-08 Thread Oliver Jowett
On 8 October 2014 06:51, Konstantin Utkin wrote: > Ugly. And what if I have multiple nesting, arrays? It leads to tons of macro > with huge routine work, and It's simple to convert each C structure > manually. But it is so boring! Maybe anyone has found a better way? If the mapping between your

[protobuf] Conversion between C structs and google protobufs

2014-10-08 Thread Konstantin Utkin
Greetings! As I can see, conversion between C structures and google protobuf classes is a problem that has been avoided for a while. I've searched a bit, and have found only one way by using ugly macro. It looks like; #define ROT_CIP_STRUCTURE_NAME t_rot_channel_init_params #define ROT_CIP_PROT