diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-08-25 12:50:57 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-08-25 12:50:57 +0200 |
commit | 4e925980d16a7468a55ad2c23cc29ec51311ef6d (patch) | |
tree | ca34a2d343c1a84c0b9ed7bec080cf9864ae1828 /src/afb-api-so.h | |
parent | e3017eacd1b265377d6581fe255d8c0b994a3cec (diff) |
afb-api-so: fix a bug in error detection
Error detection wasn't reported when an
error occured in a subdirectory.
Also closes the opened directories on error
and allows a mode for ignoring binding errors.
Change-Id: I34e52de8ea71bf84556878a395b56c6628cc5d9a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so.h')
-rw-r--r-- | src/afb-api-so.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/afb-api-so.h b/src/afb-api-so.h index 382dad03..c831567a 100644 --- a/src/afb-api-so.h +++ b/src/afb-api-so.h @@ -22,10 +22,13 @@ struct afb_apiset; extern int afb_api_so_add_binding(const char *path, struct afb_apiset *apiset); -extern int afb_api_so_add_directory(const char *path, struct afb_apiset *apiset); +extern int afb_api_so_add_directory(const char *path, struct afb_apiset *apiset, int failstops); -extern int afb_api_so_add_path(const char *path, struct afb_apiset *apiset); +extern int afb_api_so_add_path(const char *path, struct afb_apiset *apiset, int failstops); -extern int afb_api_so_add_pathset(const char *pathset, struct afb_apiset *apiset); +extern int afb_api_so_add_pathset(const char *pathset, struct afb_apiset *apiset, int failstops); + +extern int afb_api_so_add_pathset_fails(const char *pathset, struct afb_apiset *apiset); +extern int afb_api_so_add_pathset_nofails(const char *pathset, struct afb_apiset *apiset); |