Hi,
> the fixed-size and max-repeat-count type options are super useful to
> avoid dynamic memory allocation and related problems in touchy
> environments, like a kernel module!
If you want to try it out, I now added preliminary support for separate
options file.
Basically to define options for messages in MyProto.proto, you will
create a text file called MyProto.options. This way there is no need to
add anything nanopb-specific into the .proto file.
The .options file should contain lines like this:
* max_size:16 max_count:5
FunnyMessage.* max_size:32
FunnyMessage.funnyfield field_type:FT_CALLBACK
There is a trivial example with the alltypes.proto, but no documentation
yet. With the generator option -v you can see how the wildcards work out
into per-field options.
--
Petteri