Commit Graph
10 Commits
Author SHA1 Message Date
Petteri Aimonen 20f94940eb Add option for including extra files from .pb.h 2019-12-19 11:21:58 +02:00
Petteri Aimonen 4f4213c541 network_server example: Detect count=0 in read_callback() (#421)
Previously the example code would falsely detect EOF condition if
called with count = 0.
2019-08-22 11:25:41 +03:00
Petteri Aimonen 87319f6a76 Allow specifying a per-message callback.
This allows callbacks to be combined with oneofs and pointer fields (#175)
2019-01-25 18:56:34 +02:00
Petteri Aimonen e21e78c67c Add pb_en/decode_nullterminated() (part of #278)
Nanopb has traditionally supported messages to be terminated with a zero tag.
However, this is not really standard protobuf behaviour, so it makes sense
to separate it into a different function. Because it is a breaking change,
it will happen in 0.4.0 release. But I add the functions here early so that
new code can start using them now.

Also changed the network_server example to use en/decode_delimited(), which
is the more common protobuf method of simple message framing.
2017-09-16 13:40:57 +03:00
Petteri Aimonen b03be4fa4d Add syntax specification to .proto files (issue #167)
Eliminates a warning on protoc 3.0.
2015-09-20 14:29:39 +03:00
Petteri Aimonen eaa3c7b157 Cleanup and comment the code of network_server example.
Update issue 123
Status: FixedInGit
2014-07-20 14:44:41 +03:00
Petteri Aimonen 4546bb92dc Fix Makefiles for the examples
The default rules for make were being selected before our own rules
and the .pb.c was not being built.
2014-01-01 11:20:54 +02:00
Petteri Aimonen 45c1a32e50 Rework the Makefiles to be compatible with binary packages. 2013-12-29 20:26:57 +02:00
Petteri Aimonen ef31774cd9 Moving files around
Renamed READMEs to README.txt to be more friendly for Windows users.
2013-12-29 20:26:57 +02:00
Petteri Aimonen f47410ea4b Move examples into subfolders, add READMEs 2013-09-13 12:59:31 +03:00