Lines Matching refs:api
156 unload_public_module(void **instance, dsvc_splapi_t *api)
164 *api = null_api;
171 * instance of opened module, and populates the api argument with the
175 load_public_module(dsvc_datastore_t *ddp, void **instance, dsvc_splapi_t *api)
196 api->version = (dsvc_splfuncp_t)dlsym(*instance, "version");
197 if (api->version == NULL || api->version(&v) != DSVC_SUCCESS ||
199 (void) unload_public_module(instance, api);
206 (void) unload_public_module(instance, api);
212 if ((((dsvc_splfuncp_t *)api)[i] =
214 (void) unload_public_module(instance, api);
227 (void) unload_public_module(instance, api);
307 dsvc_splapi_t api;
310 error = load_public_module(ddp, &instance, &api);
314 error = api.status(ddp->d_location);
316 (void) unload_public_module(&instance, &api);
329 dsvc_splapi_t api;
332 error = load_public_module(ddp, &instance, &api);
336 error = api.mklocation(ddp->d_location);
338 (void) unload_public_module(&instance, &api);
352 dsvc_splapi_t api;
355 error = load_public_module(ddp, &instance, &api);
360 error = api.list_dt(ddp->d_location, listppp, count);
362 error = api.list_dn(ddp->d_location, listppp, count);
364 (void) unload_public_module(&instance, &api);
458 dsvc_splapi_t api;
468 error = load_public_module(ddp, &instance, &api);
474 error = api.remove_dt(ddp->d_location);
476 error = api.remove_dn(ddp->d_location, &ip, &mask);
478 (void) unload_public_module(&instance, &api);
778 dsvc_splapi_t api;
781 if (load_public_module(ddp, &instance, &api) != DSVC_SUCCESS)
790 (void) unload_public_module(&instance, &api);