afb-svc: make service existing during its initialisation
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 31 Aug 2017 07:30:19 +0000 (09:30 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 31 Aug 2017 07:30:19 +0000 (09:30 +0200)
commit11e2d4395056c7bd2a618b4fa7ffdd70af05d14e
tree12088d06154a0f5f27b77a7eef2c131173964877
parentbfffa28ba0483b49770326c4f567950ea80d0fb6
afb-svc: make service existing during its initialisation

The initialisation of services is splitted in two parts:

 - the creation and allocation of the structure for the
   service.

 - the initialisation once the structure is ready and
   recorded.

Change-Id: I05c89fb513869d45e6b8413699fba234f00ce6b1
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-api-so-v1.c
src/afb-api-so-v2.c
src/afb-svc.c
src/afb-svc.h