summaryrefslogtreecommitdiffstats
path: root/generator/proto/nanopb.proto
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-09-12 12:15:27 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-09-12 12:15:27 +0300
commit612a51c608504f59fcd86c74eedac2903f088a0a (patch)
tree6646ab479a95ecc6280696edb3fe5730d0fcd555 /generator/proto/nanopb.proto
parent5497a1dfc91a86965383cdd1652e348345400435 (diff)
Add packed_enum option to generator.
This can be generally useful for saving RAM, but also makes it easier to test for issue #164.
Diffstat (limited to 'generator/proto/nanopb.proto')
-rw-r--r--generator/proto/nanopb.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/proto/nanopb.proto b/generator/proto/nanopb.proto
index 3f2ed8e0..b8671bbd 100644
--- a/generator/proto/nanopb.proto
+++ b/generator/proto/nanopb.proto
@@ -51,6 +51,9 @@ message NanoPBOptions {
// accesses to variables.
optional bool packed_struct = 5 [default = false];
+ // Add 'packed' attribute to generated enums.
+ optional bool packed_enum = 10 [default = false];
+
// Skip this message
optional bool skip_message = 6 [default = false];