summaryrefslogtreecommitdiffstats
path: root/generator/proto
diff options
context:
space:
mode:
Diffstat (limited to 'generator/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 b8671bbd..9b2f0fbc 100644
--- a/generator/proto/nanopb.proto
+++ b/generator/proto/nanopb.proto
@@ -62,6 +62,9 @@ message NanoPBOptions {
// integer type tag for a message
optional uint32 msgid = 9;
+
+ // decode oneof as anonymous union
+ optional bool anonymous_oneof = 11 [default = false];
}
// Extensions to protoc 'Descriptor' type in order to define options