Verify build with protobuf-3.0.0, fix problems.
[apps/agl-service-can-low-level.git] / generator / proto / nanopb.proto
index 2ea011f..0716be4 100644 (file)
@@ -5,7 +5,8 @@
 // These are used by nanopb to generate statically allocable structures
 // for memory-limited environments.
 
-import "descriptor.proto";
+syntax = "proto2";
+import "google/protobuf/descriptor.proto";
 
 option java_package = "fi.kapsi.koti.jpa.nanopb";
 
@@ -37,6 +38,9 @@ message NanoPBOptions {
   // Note: this cannot be used on CPUs that break on unaligned
   // accesses to variables.
   optional bool packed_struct = 5 [default = false];
+  
+  // Skip this message
+  optional bool skip_message = 6 [default = false];
 }
 
 // Extensions to protoc 'Descriptor' type in order to define options