summaryrefslogtreecommitdiffstats
path: root/generator/proto
AgeCommit message (Collapse)AuthorFilesLines
2017-02-22Extend inline / fixed length bytes array support (issue #244)Petteri Aimonen1-1/+4
Adds support for proto3 and POINTER field types to have fixed length bytes arrays. Also changed the .proto option to a separate fixed_length:true, while also supporting the old FT_INLINE option. Restructured the generator and decoder logic to threat the inline bytes fields more like "just another field type".
2017-02-20Add new option max_length for strings (issue #107)Petteri Aimonen1-0/+5
Max_size is the allocated size, so users had to add +1 for the null terminator. Max_length does the +1 automatically in the generator.
2016-11-21nanopb: update generator to emit optional enum->string mapping functionWilliam A. Kennington III1-0/+3
Google-Bug-Id: 28000875 Signed-off-by: William A. Kennington III <wak@google.com> Change-Id: I1bffd39168abe04593588291b0ebbe5199a00138
2016-10-09Add proto3 option to handle singular fieldsBernhard Krämer1-0/+3
2016-08-04Add inline allocation of bytes fieldsTom Roeder1-0/+1
This commit adds a new FT_INLINE allocation type that forces bytes fields to be inlined into the struct. E.g., pb_byte_t my_bytes[32]. This requires max_size for the bytes field. The FT_INLINE type is represented as a new LTYPE: FT_LTYPE_FIXED_LENGTH_BYTES. This commit also updates the documentation with FT_INLINE and FT_LTYPE_FIXED_LENGTH_BYTES. Added an AUTHORS file in apparent order of appearance in the git log history from $(git log --all).
2015-11-10Add option to allow for anonymous unionsBenjamin Kamath1-0/+3
2015-09-12Add packed_enum option to generator.Petteri Aimonen1-0/+3
This can be generally useful for saving RAM, but also makes it easier to test for issue #164.
2015-03-22nanopb.proto: add msgid message-level optionMichael Haberler1-0/+3
2015-01-11New generator options for oneofs: allow skipping or generating as normal ↵Petteri Aimonen1-0/+3
'optional' fields. The behaviour with no_unions:true is the same as of nanopb 0.3.1 and earlier.
2015-01-05Allow using 8/16/32/64 as values in int_size settingPetteri Aimonen1-4/+4
2015-01-04Add int_size option for generator.Petteri Aimonen1-0/+12
This allows overriding the integer field types to e.g. uint8_t for saving RAM. Update issue 139 Status: FixedInGit
2014-12-22Verify build with protobuf-3.0.0, fix problems.Petteri Aimonen3-26/+124
Also updated descriptor.proto from protobuf-3.0.0.
2014-07-20Add skip_message option to generator.Petteri Aimonen1-0/+3
Update issue 121 Status: FixedInGit
2014-02-12Move descriptor.proto to google/protobuf directory where it belongs.Petteri Aimonen4-3/+3
This fixes some interoperability problems when trying to compile nanopb.proto for e.g. the Google's C++ library. Update issue 104 Status: FixedInGit
2013-12-29Add build script for windows packagePetteri Aimonen1-6/+3
2013-12-29Add descriptor.proto to repository to avoid messing with protoc include path.Petteri Aimonen4-4/+624
2013-12-29Move the generator .proto files to a subdir, and get rid of precompiled ↵Petteri Aimonen4-0/+221
versions.