Change the callback function to use void**.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Tue, 2 Apr 2013 16:55:21 +0000 (19:55 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Tue, 2 Apr 2013 16:55:21 +0000 (19:55 +0300)
commit214b0eae8aa011fa8b3e8a3dcc784f8d423aeffb
tree8cdebc1ab067bca01d47eefcc9dcf43ce50048db
parent6f3740f74ed48daf51908676b203f1889455c17d
Change the callback function to use void**.

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
docs/concepts.rst
docs/reference.rst
example/client.c
example/server.c
pb.h
pb_decode.c
pb_encode.c
tests/decode_unittests.c
tests/encode_unittests.c
tests/test_decode_callbacks.c
tests/test_encode_callbacks.c