I have the following .proto file:
message Cluster {
required int32 id = 1;
repeated int32 xaxis = 2;
}
message ClusterArray {
repeated Cluster clusters = 1;
}
I have created a function in "function_callback.h" to handle and then encode values in encode_callbacks.c for the " int32 id "
I am really confused on how to implement the REPEATED INT32 XAXIS as If I use the same function in function_callbacks.h it gives error that I cannot assign an array to pb_callbacks_t type.
I cannot define the size of it in .proto file as I dont know the size so I have to use callbacks.
Can someone help me in this regard ?? Looking forward to responses !
Hi Petteri,I was trying to assign a single item just to check if it works.What I want is 3 repeated fields i.e.repeated int32 xaxis;repeated int32 yaxis;repeated int32 zaxis;and they all would have unlimited values or number of values that I cannot fix with a maximum count. So, how will the nested callbacks work, could you point me towards or give me an example ?Thank you !