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-common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/afb/afb-daemon-common.h') diff --git a/include/afb/afb-daemon-common.h b/include/afb/afb-daemon-common.h index 5faf5758..b78f9af9 100644 --- a/include/afb/afb-daemon-common.h +++ b/include/afb/afb-daemon-common.h @@ -24,6 +24,7 @@ struct sd_event; struct sd_bus; struct afb_stored_req; struct afb_req; +struct afb_dynapi; /* * Definition of the facilities provided by the daemon. @@ -43,6 +44,7 @@ struct afb_daemon_itf struct afb_req (*unstore_req)(void*closure, struct afb_stored_req *sreq); int (*require_api)(void*closure, const char *name, int initialized); int (*rename_api)(void*closure, const char *name); + int (*new_api)(void *closure, const char *api, const char *info, int (*preinit)(void*, struct afb_dynapi *), void *preinit_closure); }; /* -- cgit 1.2.3-korg