Welcome to mirror list, hosted at ThFree Co, Russian Federation.

message.proto « cxx_callback_datatype « tests - github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 605f289e34d055dbe4c000a5d7d8c3256ccc4db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
syntax = "proto3";

import "nanopb.proto";

option(nanopb_fileopt).include = '<vector>';

message SubMessage {
  sint32 actual_value = 1;
}

message TestMessage {
  // Instead of std::vector<SubMessage> callback handles wrapping/unwrapping of the int.
  repeated SubMessage submessages = 1 [(nanopb).callback_datatype = "std::vector<int>"];
}