summaryrefslogtreecommitdiffstats
path: root/generator/nanopb.proto
blob: 813d5b7385470d2130e68a248542b4b5dff174e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;
}

extend google.protobuf.FieldOptions {
    optional NanoPBOptions nanopb = 52001;
}