Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2019-12-18 19:35:00 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2019-12-18 19:35:00 +0300
commitb9c7bbaeab0c4763345f70ace9acd9fa2cbf9259 (patch)
treee88eab6085024baaa89bc5cd510130b3d87e93f8 /docs
parent9639005479e7fa6ee77cb00c3f47e353d8aab37e (diff)
Improve callback handling inside oneofs. (#175)
Removed PB_OLD_CALLBACK_STYLE. Added generator option submsg_callback to have a message-level callback for setting up callbacks inside oneofs. Added example/testcase about using callbacks with oneofs.
Diffstat (limited to 'docs')
-rw-r--r--docs/migration.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/migration.rst b/docs/migration.rst
index e077a74..1fee491 100644
--- a/docs/migration.rst
+++ b/docs/migration.rst
@@ -151,6 +151,20 @@ the field option `proto3_singular_msgs` can be used to restore the old behavior.
**Error indications:** Submessages do not get encoded.
+PB_OLD_CALLBACK_STYLE option has been removed
+---------------------------------------------
+**Rationale:** Back in 2013, function signature for callbacks was changed. The
+`PB_OLD_CALLBACK_STYLE` option allowed compatibility with old code, but
+complicated code and testing because of the different options.
+
+**Changes:** `PB_OLD_CALLBACK_STYLE` option no-longer has any effect.
+
+**Required actions:** If `PB_OLD_CALLBACK_STYLE` option was in use previously,
+function signatures must be updated to use double pointers (`void**` and
+`void * const *`).
+
+**Error indications:** Assignment from incompatible pointer type.
+
Nanopb-0.3.9.4, 0.4.0 (2019-xx-xx)
==================================