Lines Matching refs:library
28 void freeLibrary(void *library);
29 void *getProcAddress(void *library, const char *name);
37 void *library = getLibraryHandle(libraryPath.c_str()); in loadLibrary() local
39 if(library) in loadLibrary()
41 if(!mustContainSymbol || getProcAddress(library, mustContainSymbol)) in loadLibrary()
43 return library; in loadLibrary()
46 freeLibrary(library); in loadLibrary()
53 void *library = loadLibrary(libraryPath.c_str()); in loadLibrary() local
55 if(library) in loadLibrary()
57 if(!mustContainSymbol || getProcAddress(library, mustContainSymbol)) in loadLibrary()
59 return library; in loadLibrary()
62 freeLibrary(library); in loadLibrary()
82 inline void freeLibrary(void *library) in freeLibrary() argument
84 FreeLibrary((HMODULE)library); in freeLibrary()
87 inline void *getProcAddress(void *library, const char *name) in getProcAddress() argument
89 return (void*)GetProcAddress((HMODULE)library, name); in getProcAddress()
133 inline void freeLibrary(void *library) in freeLibrary() argument
135 if(library) in freeLibrary()
137 dlclose(library); in freeLibrary()
141 inline void *getProcAddress(void *library, const char *name) in getProcAddress() argument
143 void *symbol = dlsym(library, name); in getProcAddress()