Lines Matching refs:library
28 void freeLibrary(void *library);
29 void *getProcAddress(void *library, const char *name);
38 void *library = getLibraryHandle(libraryPath.c_str()); in loadLibrary() local
40 if(library) in loadLibrary()
42 if(!mustContainSymbol || getProcAddress(library, mustContainSymbol)) in loadLibrary()
44 return library; in loadLibrary()
47 freeLibrary(library); in loadLibrary()
54 void *library = loadLibrary(libraryPath.c_str()); in loadLibrary() local
56 if(library) in loadLibrary()
58 if(!mustContainSymbol || getProcAddress(library, mustContainSymbol)) in loadLibrary()
60 return library; in loadLibrary()
63 freeLibrary(library); in loadLibrary()
83 inline void freeLibrary(void *library) in freeLibrary() argument
85 FreeLibrary((HMODULE)library); in freeLibrary()
88 inline void *getProcAddress(void *library, const char *name) in getProcAddress() argument
90 return (void*)GetProcAddress((HMODULE)library, name); in getProcAddress()
115 inline void freeLibrary(void *library) in freeLibrary() argument
117 if(library) in freeLibrary()
119 dlclose(library); in freeLibrary()
123 inline void *getProcAddress(void *library, const char *name) in getProcAddress() argument
125 void *symbol = dlsym(library, name); in getProcAddress()