nanopb.proto: add msgid message-level option
authorMichael Haberler <git@mah.priv.at>
Sun, 22 Mar 2015 01:17:30 +0000 (02:17 +0100)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 22 Mar 2015 09:06:59 +0000 (11:06 +0200)
generator/proto/nanopb.proto

index a1b2493..3f2ed8e 100644 (file)
@@ -56,6 +56,9 @@ message NanoPBOptions {
 
   // Generate oneof fields as normal optional fields instead of union.
   optional bool no_unions = 8 [default = false];
+
+  // integer type tag for a message
+  optional uint32 msgid = 9;
 }
 
 // Extensions to protoc 'Descriptor' type in order to define options