diff options
Diffstat (limited to 'generator/nanopb.proto')
-rw-r--r-- | generator/nanopb.proto | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/generator/nanopb.proto b/generator/nanopb.proto index a377f63b..e7bea139 100644 --- a/generator/nanopb.proto +++ b/generator/nanopb.proto @@ -7,9 +7,16 @@ import "google/protobuf/descriptor.proto"; +enum FieldType { + FT_DEFAULT = 0; // Automatically decide field type, generate static field if possible. + FT_CALLBACK = 1; // Always generate a callback field. + FT_STATIC = 2; // Generate a static field or raise an exception if not possible. +} + message NanoPBOptions { optional int32 max_size = 1; optional int32 max_count = 2; + optional FieldType type = 3 [default = FT_DEFAULT]; } // Protocol Buffers extension number registry |