summaryrefslogtreecommitdiffstats
path: root/generator/nanopb.proto
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-01-14 17:30:49 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-01-14 17:30:49 +0200
commitd32d3226580baf52f60fb7dee3921d8cc9aab67c (patch)
treea2da002b9aa8db7a67b49ee266fab7619ed769fd /generator/nanopb.proto
parentb9baec6b4c3a04136ea0430109bc7bc1eda12685 (diff)
Add field type FT_IGNORE to generator.
This allows ignoring fields that are unnecessary or too large for an embedded system using nanopb, while allowing them to remain in the .proto for other platforms. Update issue 51 Status: FixedInGit
Diffstat (limited to 'generator/nanopb.proto')
-rw-r--r--generator/nanopb.proto1
1 files changed, 1 insertions, 0 deletions
diff --git a/generator/nanopb.proto b/generator/nanopb.proto
index b9100abd..bc40f290 100644
--- a/generator/nanopb.proto
+++ b/generator/nanopb.proto
@@ -11,6 +11,7 @@ enum FieldType {
FT_DEFAULT = 0; // Automatically decide field type, generate static field if possible.
FT_CALLBACK = 1; // Always generate a callback field.
FT_STATIC = 2; // Generate a static field or raise an exception if not possible.
+ FT_IGNORE = 3; // Ignore the field completely.
}
message NanoPBOptions {