From 59cd34b59853f6a47e756d7ab5bc0329f40a471c Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 22 Sep 2017 15:17:31 +0200 Subject: Allow dynamic creation of APIs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I825bfa7969c98dd214457d9ff94e2948362286a9 Signed-off-by: José Bollo --- include/afb/afb-daemon-v2.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/afb/afb-daemon-v2.h') diff --git a/include/afb/afb-daemon-v2.h b/include/afb/afb-daemon-v2.h index 1451a097..186fc6d6 100644 --- a/include/afb/afb-daemon-v2.h +++ b/include/afb/afb-daemon-v2.h @@ -168,3 +168,12 @@ static inline int afb_daemon_rename_api_v2(const char *name) return afb_get_daemon_v2().itf->rename_api(afb_get_daemon_v2().closure, name); } +static inline int afb_daemon_new_api_v2( + const char *api, + const char *info, + int (*preinit)(void*, struct afb_dynapi *), + void *closure) +{ + return afb_get_daemon_v2().itf->new_api(afb_get_daemon_v2().closure, api, info, preinit, closure); +} + -- cgit 1.2.3-korg