27 lines
1.2 KiB
Protocol Buffer
27 lines
1.2 KiB
Protocol Buffer
// Custom options for defining:
|
|
// - Maximum size of string/bytes
|
|
// - Maximum number of elements in array
|
|
//
|
|
// These are used by nanopb to generate statically allocable structures
|
|
// for memory-limited environments.
|
|
|
|
import "google/protobuf/descriptor.proto";
|
|
|
|
message NanoPBOptions {
|
|
optional int32 max_size = 1;
|
|
optional int32 max_count = 2;
|
|
}
|
|
|
|
// Protocol Buffers extension number registry
|
|
// --------------------------------
|
|
// Project: Nanopb
|
|
// Contact: Petteri Aimonen <jpa@kapsi.fi>
|
|
// Web site: http://kapsi.fi/~jpa/nanopb
|
|
// Extensions: 1010 (all types)
|
|
// --------------------------------
|
|
|
|
extend google.protobuf.FieldOptions {
|
|
optional NanoPBOptions nanopb = 1010;
|
|
}
|
|
|