X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fafb-apis.h;fp=src%2Fafb-plugins.h;h=a37df5d318756abd0fa33f25bedc8391cda346f2;hb=ca208671cc79bbc05c574df788035878e5d39382;hp=c2db2e4c9930f941842571db6d16e913baac12c9;hpb=8ca3d16606a99ef91d01a623dbe5ce1331688953;p=src%2Fapp-framework-binder.git diff --git a/src/afb-plugins.h b/src/afb-apis.h similarity index 56% rename from src/afb-plugins.h rename to src/afb-apis.h index c2db2e4c..a37df5d3 100644 --- a/src/afb-plugins.h +++ b/src/afb-apis.h @@ -16,15 +16,22 @@ */ -AFB_plugin *afb_plugins_search(AFB_session *session, const char *prefix, size_t length); +extern int afb_apis_count(); -int afb_plugins_add_plugin(AFB_session *session, const char *path); +extern void afb_apis_free_context(int apiidx, void *context); -int afb_plugins_add_directory(AFB_session * session, const char *path); +extern const struct AFB_restapi *afb_apis_get(int apiidx, int verbidx); -int afb_plugins_add_path(AFB_session * session, const char *path); +extern int afb_apis_get_verbidx(int apiidx, const char *name); -int afb_plugins_add_pathset(AFB_session * session, const char *pathset); +extern int afb_apis_get_apiidx(const char *prefix, size_t length); + +extern int afb_apis_add_plugin(const char *path); + +extern int afb_apis_add_directory(const char *path); + +extern int afb_apis_add_path(const char *path); + +extern int afb_apis_add_pathset(const char *pathset); -void initPlugins(AFB_session * session);