Lines Matching refs:handle

24     void *handle;
28 static int xmlModulePlatformClose(void *handle);
29 static int xmlModulePlatformSymbol(void *handle, const char *name, void **result);
70 * Returns a handle for the module or NULL in case of error
85 module->handle = xmlModulePlatformOpen(name);
87 if (module->handle == NULL) {
125 rc = xmlModulePlatformSymbol(module->handle, name, symbol);
141 * @module: the module handle
161 rc = xmlModulePlatformClose(module->handle);
177 * @module: the module handle
214 * returns a handle on success, and zero on error.
225 * @handle: handle to the module
231 xmlModulePlatformClose(void *handle)
233 return dlclose(handle);
243 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
245 *symbol = dlsym(handle, name);
260 * returns a handle on success, and zero on error.
275 xmlModulePlatformClose(void *handle)
277 return shl_unload(handle);
287 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
292 rc = shl_findsym(&handle, name, TYPE_UNDEFINED, symbol);
305 * returns a handle on success, and zero on error.
320 xmlModulePlatformClose(void *handle)
324 rc = FreeLibrary(handle);
335 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
341 *symbol = GetProcAddressA(handle, name);
343 *symbol = GetProcAddress(handle, name);
357 * returns a handle on success, and zero on error.
373 xmlModulePlatformClose(void *handle)
377 rc = unload_add_on((image_id) handle);
392 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
396 rc = get_image_symbol((image_id) handle, name, B_SYMBOL_TYPE_ANY, symbol);
410 * returns a handle on success, and zero on error.
417 void *handle;
420 rc = DosLoadModule(errbuf, sizeof(errbuf) - 1, name, &handle);
425 return (handle);
435 xmlModulePlatformClose(void *handle)
437 return DosFreeModule(handle);
447 xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
451 rc = DosQueryProcAddr(handle, 0, name, symbol);