X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2Fafb-migration-to-binding-v3.md;h=bff88cd9316add4bab4c3a5af39493222825a9b6;hb=9a8aea1b682f522d7b278312b9bd85ed12fab820;hp=266a8b0c5a658f605b5997e50c0fe1f3366b1692;hpb=b798adf312fe0510d8a26dec7f57dacfefcd275c;p=src%2Fapp-framework-binder.git diff --git a/docs/afb-migration-to-binding-v3.md b/docs/afb-migration-to-binding-v3.md index 266a8b0c..bff88cd9 100644 --- a/docs/afb-migration-to-binding-v3.md +++ b/docs/afb-migration-to-binding-v3.md @@ -6,12 +6,12 @@ for the following reasons: - integration of the security requirements within the bindings - simplification of the API (after developer feedbacks) -- removal of obscure features, cleanup +- removal of obscure features and cleanup The ***binder*** can run ***bindings*** v1, v2 and/or v3 in any combination. Thus moving from v1 or v2 to v3 is not enforced at this time. But ... -In the face to face meeting of Karlsruhe it was decided to remove support +In the face to face meeting in Karlsruhe it was decided to remove support of bindings v1 and to deprecate the use of bindings v2. So at the end, **IT IS HIGHLY NEEDED TO SWITCH TO VERSION 3** @@ -19,7 +19,7 @@ So at the end, **IT IS HIGHLY NEEDED TO SWITCH TO VERSION 3** This guide covers the migration of bindings from version 2 to version 3. The migration from version 1 is not treated here because bindings version 1 -are very old and probably does not exist anymore. If needed you can refer +are very old and probably do not exist anymore. If needed you can refer to the old [guide to migrate bindings from v1 to v2](legacy/afb-migration-v1-to-v2.html). @@ -156,7 +156,7 @@ These functions are now implemented as the following macros: This is a decision of the developer to switch to the new family **afb_req_reply** or to keep the good old functions **afb_req_fail** -adn **afb_req_success**. +and **afb_req_success**. Consider use of the new (sub)call --------------------------------- @@ -177,8 +177,18 @@ of the context and event subscriptions. The new design allows you to specify: - whether the caller or the service or both or none will receive the eventually events during the subcall. -See [calls](reference-v3/func-api/#calls-and-job-functions) and -[subcalls](reference-v3/func-req/#subcall-functions). +See [calls](reference-v3/func-api.html#calls-and-job-functions) and +[subcalls](reference-v3/func-req.html#subcall-functions). + +The table below list the changes to apply: + +| Name in Version 2 | New name of Version 3 +|:----------------------:|:----------------------------------------------------: +| afb_req_subcall | afb_req_subcall_legacy +| afb_req_subcall_sync | afb_req_subcall_sync_legacy +| afb_service_call | afb_service_call_legacy +| afb_service_call_sync | afb_service_call_sync_legacy +| afb_req_subcall_req | afb_req_subcall_req (same but obsolete) Consider use of event handlers @@ -187,4 +197,4 @@ Consider use of event handlers Binding V3 brings new ways of handling event in services. You can register functions that will handle specific events and that accept closure arguments. -See [**afb_api_event_handler_add** and **afb_api_event_handler_del**](reference-v3/func-api/#event-functions) +See [**afb_api_event_handler_add** and **afb_api_event_handler_del**](reference-v3/func-api.html#event-functions)