Lines Matching refs:lib_handle
41 static void *lib_handle; variable
50 assert(lib_handle == NULL); in vendor_open()
53 lib_handle = dlopen(VENDOR_LIBRARY_NAME, RTLD_NOW); in vendor_open()
54 if (!lib_handle) { in vendor_open()
59 lib_interface = (bt_vendor_interface_t *)dlsym(lib_handle, VENDOR_LIBRARY_SYMBOL_NAME); in vendor_open()
77 if (lib_handle) in vendor_open()
78 dlclose(lib_handle); in vendor_open()
79 lib_handle = NULL; in vendor_open()
87 if (lib_handle) in vendor_close()
88 dlclose(lib_handle); in vendor_close()
91 lib_handle = NULL; in vendor_close()