summaryrefslogtreecommitdiffstats
path: root/generator/proto/nanopb.proto
diff options
context:
space:
mode:
Diffstat (limited to 'generator/proto/nanopb.proto')
-rw-r--r--generator/proto/nanopb.proto5
1 files changed, 4 insertions, 1 deletions
diff --git a/generator/proto/nanopb.proto b/generator/proto/nanopb.proto
index 7d39e1c3..e4c1da79 100644
--- a/generator/proto/nanopb.proto
+++ b/generator/proto/nanopb.proto
@@ -16,7 +16,7 @@ enum FieldType {
FT_POINTER = 4; // Always generate a dynamically allocated field.
FT_STATIC = 2; // Generate a static field or raise an exception if not possible.
FT_IGNORE = 3; // Ignore the field completely.
- FT_INLINE = 5; // Always generate an inline array of fixed size.
+ FT_INLINE = 5; // Legacy option, use the separate 'fixed_length' option instead
}
enum IntSize {
@@ -77,6 +77,9 @@ message NanoPBOptions {
// Generate an enum->string mapping function (can take up lots of space).
optional bool enum_to_string = 13 [default = false];
+
+ // Generate bytes arrays with fixed length
+ optional bool fixed_length = 15 [default = false];
}
// Extensions to protoc 'Descriptor' type in order to define options