/external/nanopb-c/tests/site_scons/site_tools/ |
D | nanopb.py | 2 Scons Builder for nanopb .proto definitions. 4 This tool will locate the nanopb generator and use it to generate .pb.c and 12 # Link nanopb core to the program 14 myprog = env.Program(["myprog.c", myproto, "$NANOPB/pb_encode.c", "$NANOPB/pb_decode.c"]) 18 Normally, this script is used in the test environment of nanopb and it locates 19 the nanopb generator by a relative path. If this script is used in another 20 application, the path to nanopb root directory has to be defined: 22 env.SetDefault(NANOPB = "path/to/nanopb") 28 env.SetDefault(PROTOCFLAGS = "--plugin=protoc-gen-nanopb=path/to/protoc-gen-nanopb") 41 '''Find the path to nanopb root directory.''' [all …]
|
/external/grpc-grpc/third_party/nanopb/tests/site_scons/site_tools/ |
D | nanopb.py | 2 Scons Builder for nanopb .proto definitions. 4 This tool will locate the nanopb generator and use it to generate .pb.c and 12 # Link nanopb core to the program 14 myprog = env.Program(["myprog.c", myproto, "$NANOPB/pb_encode.c", "$NANOPB/pb_decode.c"]) 18 Normally, this script is used in the test environment of nanopb and it locates 19 the nanopb generator by a relative path. If this script is used in another 20 application, the path to nanopb root directory has to be defined: 22 env.SetDefault(NANOPB = "path/to/nanopb") 28 env.SetDefault(PROTOCFLAGS = "--plugin=protoc-gen-nanopb=path/to/protoc-gen-nanopb") 41 '''Find the path to nanopb root directory.''' [all …]
|
/external/grpc-grpc/third_party/nanopb/ |
D | README.md | 1 Nanopb - Protocol Buffers for Embedded Systems 4 [![Build Status](https://travis-ci.org/nanopb/nanopb.svg?branch=master)](https://travis-ci.org/nano… 6 Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is 10 * **Homepage:** http://kapsi.fi/~jpa/nanopb/ 11 * **Documentation:** http://kapsi.fi/~jpa/nanopb/docs/ 12 * **Downloads:** http://kapsi.fi/~jpa/nanopb/download/ 13 * **Forum:** https://groups.google.com/forum/#!forum/nanopb 17 Using the nanopb library 19 To use the nanopb library, you need to do two things: 21 1. Compile your .proto files for nanopb, using protoc. [all …]
|
D | CHANGELOG.txt | 1 nanopb-0.3.6 (2016-06-19) 10 nanopb-0.3.5 (2016-02-13) 25 nanopb-0.3.4 (2015-09-26) 34 nanopb-0.3.3 (2015-04-10) 48 nanopb-0.3.2 (2015-01-24) 59 nanopb-0.3.1 (2014-09-11) 67 nanopb-0.3.0 (2014-08-26) 69 http://koti.kapsi.fi/~jpa/nanopb/docs/migration.html 79 nanopb-0.2.9 (2014-08-09) 92 nanopb-0.2.8 (2014-05-20) [all …]
|
/external/nanopb-c/ |
D | README.md | 1 Nanopb - Protocol Buffers for Embedded Systems 4 [![Build Status](https://travis-ci.org/nanopb/nanopb.svg?branch=master)](https://travis-ci.org/nano… 6 Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is 10 * **Homepage:** https://jpa.kapsi.fi/nanopb/ 11 * **Documentation:** https://jpa.kapsi.fi/nanopb/docs/ 12 * **Downloads:** https://jpa.kapsi.fi/nanopb/download/ 13 * **Forum:** https://groups.google.com/forum/#!forum/nanopb 17 Using the nanopb library 19 To use the nanopb library, you need to do two things: 21 1. Compile your .proto files for nanopb, using protoc. [all …]
|
D | CHANGELOG.txt | 1 nanopb-0.3.9.1 (2017-04-xx) 15 nanopb-0.3.9 (2017-09-23) 31 nanopb-0.3.8 (2017-03-05) 50 nanopb-0.3.7 (2016-10-30) 57 Add bazel BUILD file for nanopb (#209) 62 nanopb-0.3.6 (2016-06-19) 71 nanopb-0.3.5 (2016-02-13) 86 nanopb-0.3.4 (2015-09-26) 95 nanopb-0.3.3 (2015-04-10) 109 nanopb-0.3.2 (2015-01-24) [all …]
|
D | CMakeLists.txt | 3 project(nanopb C) project 5 set(nanopb_VERSION_STRING nanopb-0.3.9.1) 7 string(REPLACE "nanopb-" "" nanopb_VERSION ${nanopb_VERSION_STRING}) 34 set(CMAKE_INSTALL_CMAKEDIR "lib/cmake/nanopb") 38 set(generator_protos nanopb plugin) 65 add_library(protobuf-nanopb STATIC 74 target_include_directories(protobuf-nanopb INTERFACE 78 configure_file(extra/nanopb-config-version.cmake.in 79 nanopb-config-version.cmake @ONLY) 81 install(TARGETS protobuf-nanopb EXPORT nanopb-targets [all …]
|
/external/grpc-grpc/third_party/nanopb/tests/intsizes/ |
D | intsizes.proto | 1 /* Test the integer size overriding in nanopb options. 11 import 'nanopb.proto'; 14 required int32 req_int8 = 1 [(nanopb).int_size = IS_8]; 15 required uint32 req_uint8 = 2 [(nanopb).int_size = IS_8]; 16 required sint32 req_sint8 = 3 [(nanopb).int_size = IS_8]; 17 required int32 req_int16 = 4 [(nanopb).int_size = IS_16]; 18 required uint32 req_uint16 = 5 [(nanopb).int_size = IS_16]; 19 required sint32 req_sint16 = 6 [(nanopb).int_size = IS_16]; 20 required int32 req_int32 = 7 [(nanopb).int_size = IS_32]; 21 required uint32 req_uint32 = 8 [(nanopb).int_size = IS_32]; [all …]
|
/external/nanopb-c/tests/intsizes/ |
D | intsizes.proto | 1 /* Test the integer size overriding in nanopb options. 11 import 'nanopb.proto'; 14 required int32 req_int8 = 1 [(nanopb).int_size = IS_8]; 15 required uint32 req_uint8 = 2 [(nanopb).int_size = IS_8]; 16 required sint32 req_sint8 = 3 [(nanopb).int_size = IS_8]; 17 required int32 req_int16 = 4 [(nanopb).int_size = IS_16]; 18 required uint32 req_uint16 = 5 [(nanopb).int_size = IS_16]; 19 required sint32 req_sint16 = 6 [(nanopb).int_size = IS_16]; 20 required int32 req_int32 = 7 [(nanopb).int_size = IS_32]; 21 required uint32 req_uint32 = 8 [(nanopb).int_size = IS_32]; [all …]
|
/external/nanopb-c/tests/mem_release/ |
D | mem_release.proto | 2 import "nanopb.proto"; 6 optional string dynamic_str = 1 [(nanopb).type = FT_POINTER]; 7 repeated string dynamic_str_arr = 2 [(nanopb).type = FT_POINTER]; 8 repeated SubMessage dynamic_submsg = 3 [(nanopb).type = FT_POINTER]; 13 required SubMessage static_req_submsg = 1 [(nanopb).type = FT_STATIC]; 14 optional SubMessage dynamic_submsg = 2 [(nanopb).type = FT_POINTER]; 15 optional SubMessage static_opt_submsg = 3 [(nanopb).type = FT_STATIC]; 16 repeated SubMessage static_rep_submsg = 4 [(nanopb).type = FT_STATIC, (nanopb).max_count=2]; 22 optional SubMessage dynamic_ext = 100 [(nanopb).type = FT_POINTER]; 23 optional SubMessage static_ext = 101 [(nanopb).type = FT_STATIC];
|
/external/grpc-grpc/third_party/nanopb/tests/mem_release/ |
D | mem_release.proto | 2 import "nanopb.proto"; 6 optional string dynamic_str = 1 [(nanopb).type = FT_POINTER]; 7 repeated string dynamic_str_arr = 2 [(nanopb).type = FT_POINTER]; 8 repeated SubMessage dynamic_submsg = 3 [(nanopb).type = FT_POINTER]; 13 required SubMessage static_req_submsg = 1 [(nanopb).type = FT_STATIC]; 14 optional SubMessage dynamic_submsg = 2 [(nanopb).type = FT_POINTER]; 15 optional SubMessage static_opt_submsg = 3 [(nanopb).type = FT_STATIC]; 16 repeated SubMessage static_rep_submsg = 4 [(nanopb).type = FT_STATIC, (nanopb).max_count=2]; 22 optional SubMessage dynamic_ext = 100 [(nanopb).type = FT_POINTER]; 23 optional SubMessage static_ext = 101 [(nanopb).type = FT_STATIC];
|
/external/nanopb-c/tests/fixed_count/ |
D | fixed_count.proto | 1 /* Test nanopb fixed count option. */ 5 import "nanopb.proto"; 9 repeated int32 data = 1 [(nanopb).max_count = 3, (nanopb).fixed_count = true]; 14 repeated Message1 data = 1 [(nanopb).max_count = 2, (nanopb).fixed_count = true]; 19 repeated Message2 data1 = 1 [(nanopb).max_count = 2, (nanopb).fixed_count = true]; 20 repeated Message2 data2 = 2 [(nanopb).max_count = 2, (nanopb).fixed_count = true];
|
/external/nanopb-c/docs/ |
D | concepts.rst | 2 Nanopb: Basic concepts 7 The things outlined here are the underlying concepts of the nanopb design. 17 Compiling .proto files for nanopb 19 Nanopb uses the Google's protoc compiler to parse the .proto file, and then a 51 Nanopb uses streams for accessing the data in encoded format. 150 2) If there is a special option *(nanopb).max_size* specified in the .proto file, string maps to nu… 151 3) If *(nanopb).fixed_length* is set to *true* and *(nanopb).max_size* is also set, then bytes map … 152 4) If there is a special option *(nanopb).max_count* specified on a repeated field, it maps to an a… 153 5) If *(nanopb).fixed_count* is set to *true* and *(nanopb).max_count* is also set, the field for t… 159 required string name = 1 [(nanopb).max_size = 40]; char name[40]; [all …]
|
D | migration.rst | 2 Nanopb: Migration from older versions 7 This document details all the breaking changes that have been made to nanopb 14 Nanopb-0.3.9.1, 0.4.0 (2018-xx-xx) 20 **Rationale:** Previously nanopb didn't properly decode special character 30 Nanopb-0.3.8 (2017-03-05) 55 **Required actions:** Regenerate *.pb.c/.pb.h* files with new nanopb version if 58 Nanopb-0.3.5 (2016-02-13) 64 do not define *uint8_t*. Nanopb previously didn't support these platforms. 76 Nanopb-0.3.2 (2015-01-24) 81 **Rationale:** Previously nanopb did not support the *oneof* construct in [all …]
|
/external/grpc-grpc/third_party/nanopb/docs/ |
D | migration.rst | 2 Nanopb: Migration from older versions 7 This document details all the breaking changes that have been made to nanopb 14 Nanopb-0.3.5 (2016-02-13) 20 do not define *uint8_t*. Nanopb previously didn't support these platforms. 32 Nanopb-0.3.2 (2015-01-24) 37 **Rationale:** Previously nanopb did not support the *oneof* construct in 51 Nanopb-0.3.0 (2014-08-26) 73 **Rationale:** Often nanopb is used with small arrays, such as 255 items or 76 *PB_FIELD_32BIT* which tell nanopb what is the maximum size of arrays in use. 93 **Rationale:** Some names in nanopb core were badly chosen and conflicted with [all …]
|
D | concepts.rst | 2 Nanopb: Basic concepts 7 The things outlined here are the underlying concepts of the nanopb design. 17 Compiling .proto files for nanopb 19 Nanopb uses the Google's protoc compiler to parse the .proto file, and then a 51 Nanopb uses streams for accessing the data in encoded format. 150 2) If there is a special option *(nanopb).max_size* specified in the .proto file, string maps to nu… 151 3) If *(nanopb).type* is set to *FT_INLINE* and *(nanopb).max_size* is also set, then bytes map to … 152 3) If there is a special option *(nanopb).max_count* specified on a repeated field, it maps to an a… 158 required string name = 1 [(nanopb).max_size = 40]; char name[40]; 159 repeated string name = 1 [(nanopb).max_size = 40]; pb_callback_t name; [all …]
|
/external/nanopb-c/tests/common/ |
D | unittestproto.proto | 3 import 'nanopb.proto'; 6 repeated int32 data = 1 [(nanopb).max_count = 10]; 10 repeated float data = 1 [(nanopb).max_count = 10]; 14 required string data = 1 [(nanopb).max_size = 10]; 18 required bytes data = 1 [(nanopb).max_size = 16]; 23 // Nanopb does not care about the actual defined data type for callback 41 repeated string rep_str = 1 [(nanopb).type = FT_POINTER];
|
/external/grpc-grpc/third_party/nanopb/tests/common/ |
D | unittestproto.proto | 3 import 'nanopb.proto'; 6 repeated int32 data = 1 [(nanopb).max_count = 10]; 10 repeated float data = 1 [(nanopb).max_count = 10]; 14 required string data = 1 [(nanopb).max_size = 10]; 18 required bytes data = 1 [(nanopb).max_size = 16]; 23 // Nanopb does not care about the actual defined data type for callback 41 repeated string rep_str = 1 [(nanopb).type = FT_POINTER];
|
/external/nanopb-c/extra/ |
D | nanopb.mk | 2 # .pb.c and .pb.h files out of .proto, as well the path to nanopb core. 4 # Path to the nanopb root directory 7 # Files for the nanopb core 28 PROTOC_OPTS = --plugin=protoc-gen-nanopb=$(NANOPB_DIR)/generator/protoc-gen-nanopb.bat 30 PROTOC_OPTS = --plugin=protoc-gen-nanopb=$(NANOPB_DIR)/generator/protoc-gen-nanopb
|
D | FindNanopb.cmake | 2 # the nanopb library. 15 # NANOPB_OPTIONS - List of options passed to nanopb. 20 # nanopb but rather their directories. 28 # NANOPB_FOUND - Found the nanopb library (source&header files, generator tool, protoc compiler t… 33 # NANOPB_GENERATOR_SOURCE_DIR - The nanopb generator source 52 # set(NANOPB_SRC_ROOT_FOLDER "/path/to/nanopb") 54 # find_package( Nanopb REQUIRED ) 149 set(GENERATOR_PATH ${CMAKE_BINARY_DIR}/nanopb/generator) 152 set(NANOPB_GENERATOR_PLUGIN ${GENERATOR_PATH}/protoc-gen-nanopb) 156 ${GENERATOR_CORE_DIR}/nanopb.proto [all …]
|
/external/grpc-grpc/third_party/nanopb/extra/ |
D | nanopb.mk | 2 # .pb.c and .pb.h files out of .proto, as well the path to nanopb core. 4 # Path to the nanopb root directory 7 # Files for the nanopb core 28 PROTOC_OPTS = --plugin=protoc-gen-nanopb=$(NANOPB_DIR)/generator/protoc-gen-nanopb.bat 30 PROTOC_OPTS = --plugin=protoc-gen-nanopb=$(NANOPB_DIR)/generator/protoc-gen-nanopb
|
/external/nanopb-c/tests/inline/ |
D | inline.proto | 1 /* Test nanopb option parsing. 7 import "nanopb.proto"; 11 required bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 32]; 16 optional bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 64];
|
/external/grpc-grpc/third_party/nanopb/tests/inline/ |
D | inline.proto | 1 /* Test nanopb option parsing. 7 import "nanopb.proto"; 11 required bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 32]; 16 optional bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 64];
|
/external/nanopb-c/tests/regression/issue_322/ |
D | defaults.proto | 2 import 'nanopb.proto'; 5 …optional bytes b1 = 1 [default = "\xDE\xAD\x00\xBE\xEF", (nanopb).max_size = 5, (nanopb).fixed_len… 6 optional bytes b2 = 2 [default = "\xDE\xAD\x00\xBE\xEF", (nanopb).max_size = 5]; 7 optional bytes b3 = 3 [default = "\xDE\xAD\000\xBE\xEF", (nanopb).max_size = 15]; 8 optional string s1 = 4 [default = "äö", (nanopb).max_size = 8];
|
/external/nanopb-c/examples/cmake_simple/ |
D | README.txt | 1 Nanopb example "simple" using CMake 4 This example is the same as the simple nanopb example but built using CMake. 11 nanopb/examples/cmake_simple$ mkdir build 12 nanopb/examples/cmake_simple$ cd build/ 13 nanopb/examples/cmake_simple/build$ cmake .. 14 nanopb/examples/cmake_simple/build$ make
|