Lines Matching defs:handle
50 void *handle;
92 load_symbol(void *handle, const char *filename, const char *symbol_name,
97 REQUIRE(handle != NULL);
100 symbol = dlsym(handle, symbol_name);
124 void *handle = NULL;
137 handle = dlopen(filename, RTLD_NOW | RTLD_LOCAL);
138 if (handle == NULL) {
145 CHECK(load_symbol(handle, filename, "dyndb_version",
159 CHECK(load_symbol(handle, filename, "dyndb_init",
161 CHECK(load_symbol(handle, filename, "dyndb_destroy",
168 imp->handle = handle;
192 if (result != ISC_R_SUCCESS && handle != NULL) {
193 dlclose(handle);
213 load_symbol(HMODULE handle, const char *filename, const char *symbol_name,
217 REQUIRE(handle != NULL);
220 symbol = GetProcAddress(handle, symbol_name);
240 HMODULE handle;
253 handle = LoadLibraryA(filename);
254 if (handle == NULL) {
258 CHECK(load_symbol(handle, filename, "dyndb_version",
272 CHECK(load_symbol(handle, filename, "dyndb_init",
274 CHECK(load_symbol(handle, filename, "dyndb_destroy",
281 imp->handle = handle;
305 if (result != ISC_R_SUCCESS && handle != NULL) {
306 FreeLibrary(handle);