diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-18 14:03:53 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-18 14:03:53 +0100 |
commit | 9fe1a36ddfc85638958681dc3f929d47df117cd3 (patch) | |
tree | 1b92edbe82507692ec684297edd5b32b2cbf2c8e /signal-composer-binding/signal-composer.cpp | |
parent | 41ea8b75daa57b1c7259bd42c7e5bc16f33b38ec (diff) |
Several small fixes and improvements.
Cleaning
Make some additionnals test avoiding segfault,
Filling opitonnal response object to avoid warning
Wrong plugins type register macro called
Change-Id: I012cc3ddc5f89b75dbc46c3ea535717141823884
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer.cpp')
-rw-r--r-- | signal-composer-binding/signal-composer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/signal-composer-binding/signal-composer.cpp b/signal-composer-binding/signal-composer.cpp index e6a2963..7ba9c27 100644 --- a/signal-composer-binding/signal-composer.cpp +++ b/signal-composer-binding/signal-composer.cpp @@ -313,7 +313,7 @@ int Composer::loadOneSourceAPI(json_object* sourceJ) if(ctlConfig_ && ctlConfig_->requireJ) { const char* requireS = json_object_to_json_string(ctlConfig_->requireJ); - if(!strcasestr(requireS, api)) + if(!strcasestr(requireS, api) && !strcasestr(api, afbBindingV2.api)) {AFB_WARNING("Caution! You don't specify the API source as required in the metadata section. This API '%s' may not be initialized", api);} } |