From 28b0136ea4dcd045f0422d16a25b7d82b0d2aaee Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Mon, 29 Oct 2012 18:20:15 +0200 Subject: Improve .proto options parsing. Options can now be defined on command line, file, message or in field scope. Update issue 12 Status: Started --- generator/nanopb.proto | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'generator/nanopb.proto') diff --git a/generator/nanopb.proto b/generator/nanopb.proto index 2610cd5..a377f63 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; } -- cgit 1.2.3-korg