Commit Graph
4 Commits
Author SHA1 Message Date
Gil e3531eb3c8 Always use the bytes type in nanopb instead of string (#1790)
* use_bytes_for_strings

* Regenerate nanopb sources
2018-09-07 12:14:36 -07:00
Gil e060e7f7c0 Use anonymous unions for oneofs in nanopb (#1789)
* Use anonymous unions for oneofs if they're the only one in a message.

* Regenerate nanopb sources
2018-09-07 11:41:09 -07:00
Gil 13d5c9ebae Enable malloc support in nanopb and mark up dynamic fields (#1788)
* Mark all dynamic and repeated fields as requiring malloc

* Remove nanopb options files

* Don't pass options-file to nanopb_cpp_generator

* Regenerate nanopb sources

No pb_callback_t fields remain

* Enable dynamic allocation support in the nanopb decoder
2018-09-07 11:32:32 -07:00
Gil 8e9f1781e6 Add a protoc plugin for nanopb (#1781)
* Initial nanopb_cpp_generator

* Use custom generator in build_protos.py
2018-09-07 11:19:52 -07:00