diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-10-29 18:20:15 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-10-29 18:20:15 +0200 |
commit | 28b0136ea4dcd045f0422d16a25b7d82b0d2aaee (patch) | |
tree | 7ec5fd5962a733b53e2bc93ea90618df58e5806f /generator/nanopb.proto | |
parent | 9e0ee92f0a42ce2c5c9d4bf4f1d7d822caf1c561 (diff) |
Improve .proto options parsing.
Options can now be defined on command line, file, message or in field
scope.
Update issue 12
Status: Started
Diffstat (limited to 'generator/nanopb.proto')
-rw-r--r-- | generator/nanopb.proto | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/generator/nanopb.proto b/generator/nanopb.proto index 2610cd5c..a377f63b 100644 --- a/generator/nanopb.proto +++ b/generator/nanopb.proto @@ -20,6 +20,14 @@ message NanoPBOptions { // Extensions: 1010 (all types) // -------------------------------- +extend google.protobuf.FileOptions { + optional NanoPBOptions nanopb_fileopt = 1010; +} + +extend google.protobuf.MessageOptions { + optional NanoPBOptions nanopb_msgopt = 1010; +} + extend google.protobuf.FieldOptions { optional NanoPBOptions nanopb = 1010; } |