summaryrefslogtreecommitdiffstats
path: root/example
AgeCommit message (Collapse)AuthorFilesLines
2013-07-06Switch the example project to use the new .options filePetteri Aimonen2-11/+16
2013-04-02Change the callback function to use void**.Petteri Aimonen2-3/+3
NOTE: This change breaks backwards-compatibility by default. If you have old callback functions, you can define PB_OLD_CALLBACK_STYLE to retain the old behaviour. If you want to convert your old callbacks to new signature, you need to do the following: 1) Change decode callback argument to void **arg and encode callback argument to void * const *arg. 2) Change any reference to arg into *arg. The rationale for making the new behaviour the default is that it simplifies the common case of "allocate some memory in decode callback". Update issue 69 Status: FixedInGit
2012-10-18Remove the "buf = NULL" => skip requirement from pb_istream_t callbacks.Petteri Aimonen1-9/+0
Rationale: it's easy to implement the callback wrong. Doing so introduces io errors when unknown fields are present in the input. If code is not tested with unknown fields, these bugs can remain hidden for long time. Added a special case for the memory buffer stream, where it gives a small speed benefit. Added testcase for skipping fields with test_decode2 implementation. Update issue 37 Status: FixedInGit
2012-08-24Implement error messages in the decoder side.Petteri Aimonen2-2/+2
Update issue 7 Status: Started
2012-05-19Fix 64-bitness warnings in the example.Petteri Aimonen2-5/+5
Fixes issues 9 and 10.
2012-03-01Refactoring the field encoder interface.Petteri Aimonen1-1/+1
Replaced the confusing pb_enc_* functions with new pb_encode_* functions that have a cleaner interface. Updated documentation. Got rid of the endian_copy stuff in pb_encode.c, instead using C casts to do it automatically. This makes the code safer and also reduces binary size by about 5%. Fixes Issue 6.
2011-08-23Changed autogenerated file naming from foo.c to foo.pb.cPetteri Aimonen3-5/+8
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@965 e3a754e5-d11d-0410-8d38-ebb782a927b9
2011-08-22example clientPetteri Aimonen5-26/+182
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@958 e3a754e5-d11d-0410-8d38-ebb782a927b9
2011-08-17ExamplePetteri Aimonen3-0/+186
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@957 e3a754e5-d11d-0410-8d38-ebb782a927b9