diff options
author | 2017-09-21 18:17:39 +0200 | |
---|---|---|
committer | 2017-10-09 14:08:32 +0200 | |
commit | ae5d707f9348b50d44724ec2b091f4528ff0a72b (patch) | |
tree | a099dd9cb3829a387151615ecb288f2d5601651e /src/afb-export.h | |
parent | 89190b853409c3d0465232da6dd11e4c0a0b73d7 (diff) |
afb-export: record apiset at creation
Change-Id: I058eaee990e34990d0860a316ba8c348c23eff5f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-export.h')
-rw-r--r-- | src/afb-export.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afb-export.h b/src/afb-export.h index 853fc5d4..9bd08204 100644 --- a/src/afb-export.h +++ b/src/afb-export.h @@ -24,8 +24,9 @@ struct afb_service; struct afb_binding_data_v2; struct afb_binding_interface_v1; -extern struct afb_export *afb_export_create_v1(const char *apiname, int (*init)(struct afb_service), void (*onevent)(const char*, struct json_object*)); -extern struct afb_export *afb_export_create_v2(const char *apiname, struct afb_binding_data_v2 *data, int (*init)(), void (*onevent)(const char*, struct json_object*)); +extern struct afb_export *afb_export_create_v1(struct afb_apiset *apiset, const char *apiname, int (*init)(struct afb_service), void (*onevent)(const char*, struct json_object*)); +extern struct afb_export *afb_export_create_v2(struct afb_apiset *apiset, const char *apiname, struct afb_binding_data_v2 *data, int (*init)(), void (*onevent)(const char*, struct json_object*)); + extern void afb_export_destroy(struct afb_export *export); extern const char *afb_export_apiname(const struct afb_export *export); |