diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-03-09 14:21:21 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-03-09 14:21:21 +0200 |
commit | 6f8dbc73eb3e595934751f5b33c7f61a902e946a (patch) | |
tree | 763b029dac24d869e68b43d9a547297bd675d80b /generator/nanopb.proto | |
parent | e1b8a555f30d77a3c0094cf3678666b38f4b4bd3 (diff) |
Add simple support for separate options file.
Update issue 12
Still needs documentation.
Diffstat (limited to 'generator/nanopb.proto')
-rw-r--r-- | generator/nanopb.proto | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generator/nanopb.proto b/generator/nanopb.proto index 40662522..7b73c7b3 100644 --- a/generator/nanopb.proto +++ b/generator/nanopb.proto @@ -16,6 +16,9 @@ enum FieldType { FT_IGNORE = 3; // Ignore the field completely. } +// This is the inner options message, which basically defines options for +// a field. When it is used in message or file scope, it applies to all +// fields. message NanoPBOptions { // Allocated size for 'bytes' and 'string' fields. optional int32 max_size = 1; @@ -33,6 +36,9 @@ message NanoPBOptions { optional bool packed_struct = 5 [default = false]; } +// Extensions to protoc 'Descriptor' type in order to define options +// inside a .proto file. +// // Protocol Buffers extension number registry // -------------------------------- // Project: Nanopb |