Home
last modified time | relevance | path

Searched refs:nanopb (Results 1 – 25 of 42) sorted by relevance

12

/external/nanopb-c/
DCHANGELOG.txt1 nanopb-0.2.7 (2014-04-07)
9 nanopb-0.2.6 (2014-02-15)
17 nanopb-0.2.5 (2014-01-01)
24 nanopb-0.2.4 (2013-11-07)
33 nanopb-0.2.3 (2013-09-18)
42 nanopb-0.2.2 (2013-08-18)
51 nanopb-0.2.1 (2013-04-14)
56 Add support for defining the nanopb options in a separate file (issue 12)
68 nanopb-0.2.0 (2013-03-02)
81 nanopb-0.1.9 (2013-02-13)
[all …]
DREADME.txt5 Homepage: http://kapsi.fi/~jpa/nanopb/
10 Using the nanopb library
12 To use the nanopb library, you need to do two things:
14 1) Compile your .proto files for nanopb, using protoc.
26 The nanopb generator is implemented as a plugin for the Google's own protoc
31 If you have downloaded a binary package for nanopb (either Windows, Linux or
42 protoc, you need to manually give the path to nanopb generator:
44 protoc --plugin=protoc-gen-nanopb=nanopb/generator/protoc-gen-nanopb ...
50 If you want to perform further development of the nanopb core, or to verify
DREADME.android1 URL: http://koti.kapsi.fi/jpa/nanopb/
4 Description: "nanopb-c: A plugin for Google Protobuf compiler that generates C code"
10 LOCAL_PROTOC_OPTIMIZE_TYPE := nanopb-c
12 Then look at http://koti.kapsi.fi/jpa/nanopb/ Documentation for how to use nanopb-c.
DREADME.version1 URL: http://koti.kapsi.fi/~jpa/nanopb/download/nanopb-0.2.8.tar.gz
/external/nanopb-c/tests/common/
Dperson.proto1 import "nanopb.proto";
4 required string name = 1 [(nanopb).max_size = 40];
6 optional string email = 3 [(nanopb).max_size = 40];
15 required string number = 1 [(nanopb).max_size = 40];
19 repeated PhoneNumber phone = 4 [(nanopb).max_count = 5];
Dunittestproto.proto1 import 'nanopb.proto';
4 repeated int32 data = 1 [(nanopb).max_count = 10];
8 repeated float data = 1 [(nanopb).max_count = 10];
12 required string data = 1 [(nanopb).max_size = 10];
16 required bytes data = 1 [(nanopb).max_size = 16];
/external/nanopb-c/extra/
Dnanopb.mk28 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
DFindNanopb.cmake2 # the nanopb library.
6 # NANOPB_SRC_ROOT_FOLDER - Path to nanopb source folder
25 # NANOPB_FOUND - Found the nanopb library (source&header files, generator tool, protoc compiler t…
29 # NANOPB_GENERATOR_EXECUTABLE - The nanopb generator
44 # set(NANOPB_SRC_ROOT_FOLDER "/path/to/nanopb")
153 COMMENT "Running nanopb generator on ${FIL_WE}.pb"
182 # Find nanopb source files
210 # Find nanopb generator
213 DOC "nanopb generator"
/external/nanopb-c/tests/options/
Doptions.proto1 /* Test nanopb option parsing.
5 import "nanopb.proto";
25 required string fieldsize = 1 [(nanopb).max_size = 40];
31 required int32 int32_callback = 1 [(nanopb).type = FT_CALLBACK];
71 optional int32 field2 = 2 [(nanopb).type = FT_IGNORE];
/external/nanopb-c/examples/network_server/
DREADME.txt4 This example demonstrates the use of nanopb to communicate over network
11 user@host:~/nanopb/examples/network_server$ make # Build the example
20 user@host:~/nanopb/examples/network_server$ ./server & # Start the server on background
23 petteri@oddish:~/nanopb/examples/network_server$ ./client /bin # Request the server to list /bin
46 fileproto.options contains the nanopb-specific options for the protocol file. This
49 common.c/h contains functions that allow nanopb to read and write directly from
DMakefile2 include ../../extra/nanopb.mk
/external/nanopb-c/generator/
Dprotoc-gen-nanopb.bat5 :: protoc --plugin=nanopb=..../protoc-gen-nanopb.bat --nanopb_out=dir foo.proto
7 :: Note that if you use the binary package of nanopb, the protoc
/external/nanopb-c/tools/
Dmake_linux_package.sh22 cp $DEST/generator/nanopb_generator.py $DEST/generator/protoc-gen-nanopb.py
25 ( cd $DEST/generator; bbfreeze nanopb_generator.py protoc-gen-nanopb.py )
29 rm $DEST/generator/protoc-gen-nanopb.py
Dmake_windows_package.sh23 cp $DEST/generator/nanopb_generator.py $DEST/generator/protoc-gen-nanopb.py
26 ( cd $DEST/generator; bbfreeze nanopb_generator.py protoc-gen-nanopb.py )
30 rm $DEST/generator/protoc-gen-nanopb.py
/external/nanopb-c/generator/proto/
Dnanopb.proto5 // These are used by nanopb to generate statically allocable structures
10 option java_package = "fi.kapsi.koti.jpa.nanopb";
49 // Web site: http://kapsi.fi/~jpa/nanopb
66 optional NanoPBOptions nanopb = 1010; field
Dnanopb_pb2.py80 nanopb = descriptor.FieldDescriptor( variable
160 nanopb.message_type = _NANOPBOPTIONS
161 google.protobuf.descriptor_pb2.FieldOptions.RegisterExtension(nanopb)
/external/nanopb-c/tests/message_sizes/
Dmessages2.proto1 import 'nanopb.proto';
6 required bytes data = 2 [(nanopb).max_size = 128];
/external/nanopb-c/tests/alltypes/
DSConscript10 # Test the round-trip from nanopb encoder to nanopb decoder
14 # Re-encode the data using protoc, and check that the results from nanopb
/external/nanopb-c/docs/
Dconcepts.rst7 The things outlined here are the underlying concepts of the nanopb design.
17 Compiling .proto files for nanopb
150 2) If there is a special option *(nanopb).max_size* specified in the .proto file, string maps to nu…
151 3) If there is a special option *(nanopb).max_count* specified on a repeated field, it maps to an a…
157 required string name = 1 [(nanopb).max_size = 40]; char name[40];
158 repeated string name = 1 [(nanopb).max_size = 40]; pb_callback_t name;
159 repeated string name = 1 [(nanopb).max_size = 40, (nanopb).max_count = 5]; | size_t name_count;
161 required bytes data = 1 [(nanopb).max_size = 40]; | typedef struct {
171nanopb runtime doesn't know how much of the structure size is padding. Therefore it uses the whole…
175 When a field has dynamic length, nanopb cannot statically allocate storage for it. Instead, it allo…
[all …]
Dsecurity.rst18 Where nanopb plays a part is preventing the attacker from running arbitrary
42 (Beginning with nanopb-0.2.4, in earlier versions the field sizes are partially unchecked.)
65 Even if the nanopb library is free of any security issues, there are still
/external/nanopb-c/tests/
DMakefile18 lcov --base-directory . --directory build/ --gcov-tool gcov-4.6 -c -o build/coverage/nanopb.info
21 genhtml -o build/coverage build/coverage/nanopb.info
DSConstruct17 env = Environment(ENV = os.environ, tools = ['default', 'nanopb'])
28 # Path to the files shared by tests, and to the nanopb core.
31 # Path for finding nanopb.proto
121 # More strict checks on the nanopb core
/external/nanopb-c/examples/using_union_messages/
DREADME.txt10 with minimal memory usage. Usually, nanopb would allocate space to store
14 By using some of the lower level nanopb APIs, we can manually generate the
DMakefile2 include ../../extra/nanopb.mk
/external/nanopb-c/tests/encode_unittests/
DSConscript1 # Build and run the stand-alone unit tests for the nanopb encoder part.

12