aboutsummaryrefslogtreecommitdiffstats
path: root/generator/nanopb.proto
diff options
context:
space:
mode:
Diffstat (limited to 'generator/nanopb.proto')
-rw-r--r--generator/nanopb.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/nanopb.proto b/generator/nanopb.proto
index 94ce7d9c..b9100abd 100644
--- a/generator/nanopb.proto
+++ b/generator/nanopb.proto
@@ -25,6 +25,9 @@ message NanoPBOptions {
// Use long names for enums, i.e. EnumName_EnumValue.
optional bool long_names = 4 [default = true];
+
+ // Add 'packed' attribute to generated structs.
+ optional bool packed_struct = 5 [default = false];
}
// Protocol Buffers extension number registry