afb-api-so-v3: Keep root API in all cases 87/17187/1
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 12 Oct 2018 12:29:43 +0000 (14:29 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 12 Oct 2018 12:36:50 +0000 (14:36 +0200)
commit17f61bbffd7269e4787c60b8bb7cc3e61e715bc5
tree45ec0d7e4a8ebd850b8c9c4799bbcc1ef5210be2
parent4ffce04dd0f7c311eaeaadb89b200cebbbe94677
afb-api-so-v3: Keep root API in all cases

For bindings v3, it is possible to have no
explicit default root API.

In that case, the binder creates a fake API
that references the binding itself. That api
isn't callable be it allows to emit messages,
to catch events and to call services (other
apis).

It must be kept to ensure that there is no
further error in the hypothetical case where
it is used.

Bug-AGL: SPEC-1812

Change-Id: I1a6c1e1390411a45521b9a6c1c386dc7807191df
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-api-so-v3.c