afb-export: Emit a warning on bad 'afb_require_api' call 53/16753/1 6.90.0 guppy/6.90.0 guppy_6.90.0
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 18 Sep 2018 09:03:23 +0000 (11:03 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Mon, 24 Sep 2018 08:05:00 +0000 (10:05 +0200)
commit195a03d84c59ff756bfb893b22f8f4ff2635ceb6
treea456cc7eb52a5a2422aa3fab085a766e4f49602b
parentefd6d20aee652b5868090e11504a7ba163a09ee3
afb-export: Emit a warning on bad 'afb_require_api' call

The call to 'afb_require_api' in a preinit was forbiden
before binding v3 refactoring. Since v3 it is made possible
by deferring the requirement to the initialisation step.
But this may lead to bad behaviour if someone use the
call to test whether an api exists or not. This commit
introduce a message that could warn a developper raising
that issue.

Change-Id: Icc14c3887d70f73d87da0e664bb0e5e961867b4a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-export.c