-/**
- * Get from the 'set' the API of 'name' in 'api'
- * @param set the set of API
- * @param name the name of the API to get
- * @param api the structure where to store data about the API of name
- * @return 0 in case of success or -1 in case of error
- */
-int afb_apiset_lookup(struct afb_apiset *set, const char *name, struct afb_api *api)
-{
- const struct api_desc *i;
-
- i = search(set, name);
- if (i) {
- *api = i->api;
- return 0;
- }
-
- errno = ENOENT;
- return -1;
-}
-
-/**
- * Check whether the 'set' has the API of 'name'
- * @param set the set of API
- * @param name the name of the API to get
- * @return 1 if the api exist or 0 otherwise
- */
-int afb_apiset_has(struct afb_apiset *set, const char *name)
-{
- return !!search(set, name);
-}
-