diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-08-02 15:26:59 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-08-02 15:49:43 +0200 |
commit | de0527f7cf5b4a4278698ab034a332cf75723300 (patch) | |
tree | c62706f06e295e6e6f7650b1fe6df9c78aaeac27 /src/afb-export.h | |
parent | 5ef271effacb83552f9ea56572c751c2f5a556b6 (diff) |
afb-export: Manage path of libraries
This change allows a binding to know its
installation path. This path is retrieved using
the api function 'afb_api_settings'.
The path is returned --if known-- as a string
of key "binding-path".
Change-Id: Ie1a349dc4936d4ccf173f1f77e118099f7f0599a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-export.h')
-rw-r--r-- | src/afb-export.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/afb-export.h b/src/afb-export.h index 0bee1747..33b94914 100644 --- a/src/afb-export.h +++ b/src/afb-export.h @@ -39,19 +39,21 @@ extern struct afb_export *afb_export_create_none_for_path( int (*creator)(void*, struct afb_api_x3*), void *closure); -extern struct afb_export *afb_export_create_v2( - struct afb_apiset *declare_set, +extern struct afb_export *afb_export_create_v2(struct afb_apiset *declare_set, struct afb_apiset *call_set, const char *apiname, const struct afb_binding_v2 *binding, struct afb_binding_data_v2 *data, int (*init)(), - void (*onevent)(const char*, struct json_object*)); + void (*onevent)(const char*, struct json_object*), + const char* path); extern struct afb_export *afb_export_create_v3(struct afb_apiset *declare_set, struct afb_apiset *call_set, const char *apiname, - struct afb_api_v3 *api); + struct afb_api_v3 *api, + struct afb_export* creator, + const char* path); extern struct afb_export *afb_export_addref(struct afb_export *export); extern void afb_export_unref(struct afb_export *export); @@ -118,12 +120,12 @@ extern struct afb_api_x3 *afb_export_to_api_x3(struct afb_export *export); struct afb_service_x1; struct afb_binding_interface_v1; -extern struct afb_export *afb_export_create_v1( - struct afb_apiset *declare_set, +extern struct afb_export *afb_export_create_v1(struct afb_apiset *declare_set, struct afb_apiset *call_set, const char *apiname, int (*init)(struct afb_service_x1), - void (*onevent)(const char*, struct json_object*)); + void (*onevent)(const char*, struct json_object*), + const char* path); extern struct afb_binding_v1 *afb_export_register_v1( struct afb_export *export, |