APIv3: Allow to write application binding 73/17173/2
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 11 Oct 2018 15:37:02 +0000 (17:37 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 12 Oct 2018 12:33:44 +0000 (14:33 +0200)
commitdeaf20980bcacd8731e9228c86f528ac480c7f55
treec06032da1cb75f739418fdfc7943e31b81af4ea8
parent86e4c175b0c35d38c8a214ae1c6afce6ad6aac4c
APIv3: Allow to write application binding

This enable a binding version 3 to declare
no API. This is used to start a job that will
will run after initialisation.

The tutorial tuto-app1 shows how. Run it with:

  afb-daemon --binding tuto-app1.so

A further option could be add to close stdin
even if running in foreground, as it was the
case before.

Change-Id: I2b384d125accb4642eed8e004642ba959326878f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
bindings/tutorial/CMakeLists.txt
bindings/tutorial/tuto-app1.c [new file with mode: 0644]
src/main-afb-daemon.c