diff options
Diffstat (limited to 'generator/proto/nanopb.proto')
-rw-r--r-- | generator/proto/nanopb.proto | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/generator/proto/nanopb.proto b/generator/proto/nanopb.proto index 0c05a2b..95a57c4 100644 --- a/generator/proto/nanopb.proto +++ b/generator/proto/nanopb.proto @@ -27,6 +27,12 @@ enum IntSize { IS_64 = 64; } +enum TypenameMangling { + M_NONE = 0; // Default, no typename mangling + M_STRIP_PACKAGE = 1; // Strip current package name + M_FLATTEN = 2; // Only use last path component +} + // This is the inner options message, which basically defines options for // a field. When it is used in message or file scope, it applies to all // fields. @@ -83,6 +89,9 @@ message NanoPBOptions { // Generate repeated field with fixed count optional bool fixed_count = 16 [default = false]; + + // Mangle long names + optional TypenameMangling mangle_names = 17 [default = M_NONE]; } // Extensions to protoc 'Descriptor' type in order to define options |