Mercurial > hg > vamp-plugin-sdk
comparison host/system.h @ 40:ae3e47e76d2d
* Add plugin path traversal and plugin listing option to vamp-simple-host
* Add more notes on plugin lookup and categorisation
author | cannam |
---|---|
date | Mon, 09 Oct 2006 12:45:14 +0000 |
parents | 83d3eb580731 |
children |
comparison
equal
deleted
inserted
replaced
39:46c39790588b | 40:ae3e47e76d2d |
---|---|
44 #define DLOPEN(a,b) LoadLibrary((a).c_str()) | 44 #define DLOPEN(a,b) LoadLibrary((a).c_str()) |
45 #define DLSYM(a,b) GetProcAddress((HINSTANCE)(a),(b)) | 45 #define DLSYM(a,b) GetProcAddress((HINSTANCE)(a),(b)) |
46 #define DLCLOSE(a) FreeLibrary((HINSTANCE)(a)) | 46 #define DLCLOSE(a) FreeLibrary((HINSTANCE)(a)) |
47 #define DLERROR() "" | 47 #define DLERROR() "" |
48 | 48 |
49 #define PLUGIN_GLOB "*.dll" | 49 #define PLUGIN_SUFFIX "dll" |
50 | 50 |
51 #else | 51 #else |
52 | 52 |
53 #include <dlfcn.h> | 53 #include <dlfcn.h> |
54 | 54 |
57 #define DLCLOSE(a) dlclose((a)) | 57 #define DLCLOSE(a) dlclose((a)) |
58 #define DLERROR() dlerror() | 58 #define DLERROR() dlerror() |
59 | 59 |
60 #ifdef __APPLE__ | 60 #ifdef __APPLE__ |
61 | 61 |
62 #define PLUGIN_GLOB "*.dylib" | 62 #define PLUGIN_SUFFIX "dylib" |
63 #define HAVE_OPENDIR 1 | |
63 | 64 |
64 #else | 65 #else |
65 | 66 |
66 #define PLUGIN_GLOB "*.so" | 67 #define PLUGIN_SUFFIX "so" |
68 #define HAVE_OPENDIR 1 | |
67 | 69 |
68 #endif /* __APPLE__ */ | 70 #endif /* __APPLE__ */ |
69 | 71 |
70 #endif /* ! _WIN32 */ | 72 #endif /* ! _WIN32 */ |
71 | 73 |