Lines Matching refs:library
26 void freeLibrary(void *library);
27 void *getProcAddress(void *library, const char *name);
34 void *library = getLibraryHandle(names[i]); in loadLibrary() local
36 if(library) in loadLibrary()
38 if(!mustContainSymbol || getProcAddress(library, mustContainSymbol)) in loadLibrary()
40 return library; in loadLibrary()
43 freeLibrary(library); in loadLibrary()
49 void *library = loadLibrary(names[i]); in loadLibrary() local
51 if(library) in loadLibrary()
53 if(!mustContainSymbol || getProcAddress(library, mustContainSymbol)) in loadLibrary()
55 return library; in loadLibrary()
58 freeLibrary(library); in loadLibrary()
78 inline void freeLibrary(void *library) in freeLibrary() argument
80 FreeLibrary((HMODULE)library); in freeLibrary()
83 inline void *getProcAddress(void *library, const char *name) in getProcAddress() argument
85 return (void*)GetProcAddress((HMODULE)library, name); in getProcAddress()
110 inline void freeLibrary(void *library) in freeLibrary() argument
112 if(library) in freeLibrary()
114 dlclose(library); in freeLibrary()
118 inline void *getProcAddress(void *library, const char *name) in getProcAddress() argument
120 void *symbol = dlsym(library, name); in getProcAddress()