Change-Id: I6ca079fa84547928f999e07d1925202a1e14850f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
for (i = 0; apis[i] ; i++) {
rc = afb_dynapi_new_api(dynapi, apis[i], NULL, build_api, (void*)apis[i]);
for (i = 0; apis[i] ; i++) {
rc = afb_dynapi_new_api(dynapi, apis[i], NULL, build_api, (void*)apis[i]);
+ if (rc < 0)
+ AFB_DYNAPI_ERROR(dynapi, "can't create API %s", apis[i]);
goto error;
}
INFO("binding %s added to set %s", afb_export_apiname(dynapi->export), afb_apiset_name(apiset));
goto error;
}
INFO("binding %s added to set %s", afb_export_apiname(dynapi->export), afb_apiset_name(apiset));
error:
afb_export_destroy(export);
error:
afb_export_destroy(export);