Lines Matching refs:handle

24     void *handle;
28 static int xmlModulePlatformClose(void *handle);
29 static int xmlModulePlatformSymbol(void *handle, const char *name, void **result);
66 * Returns a handle for the module or NULL in case of error
81 module->handle = xmlModulePlatformOpen(name);
83 if (module->handle == NULL) {
117 rc = xmlModulePlatformSymbol(module->handle, name, symbol);
133 * @module: the module handle
153 rc = xmlModulePlatformClose(module->handle);
169 * @module: the module handle
206 * returns a handle on success, and zero on error.
217 * @handle: handle to the module
223 xmlModulePlatformClose(void *handle)
225 return dlclose(handle);
235 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
237 *symbol = dlsym(handle, name);
252 * returns a handle on success, and zero on error.
267 xmlModulePlatformClose(void *handle)
269 return shl_unload(handle);
279 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
284 rc = shl_findsym(&handle, name, TYPE_UNDEFINED, symbol);
297 * returns a handle on success, and zero on error.
312 xmlModulePlatformClose(void *handle)
316 rc = FreeLibrary(handle);
327 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
329 *symbol = GetProcAddress(handle, name);
342 * returns a handle on success, and zero on error.
358 xmlModulePlatformClose(void *handle)
362 rc = unload_add_on((image_id) handle);
377 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
381 rc = get_image_symbol((image_id) handle, name, B_SYMBOL_TYPE_ANY, symbol);
395 * returns a handle on success, and zero on error.
402 void *handle;
405 rc = DosLoadModule(errbuf, sizeof(errbuf) - 1, name, &handle);
410 return (handle);
420 xmlModulePlatformClose(void *handle)
422 return DosFreeModule(handle);
432 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
436 rc = DosQueryProcAddr(handle, 0, name, symbol);