From 6f8dbc73eb3e595934751f5b33c7f61a902e946a Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sat, 9 Mar 2013 14:21:21 +0200 Subject: Add simple support for separate options file. Update issue 12 Still needs documentation. --- generator/nanopb.proto | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'generator/nanopb.proto') diff --git a/generator/nanopb.proto b/generator/nanopb.proto index 4066252..7b73c7b 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 -- cgit 1.2.3-korg