Mercurial > hg > svcore
comparison system/System.h @ 1148:9cdb4206aceb 3.0-integration
Check for plugin loadability before trying to load in the main process (POSIX only so far)
author | Chris Cannam |
---|---|
date | Mon, 11 Jan 2016 14:18:56 +0000 |
parents | 7598a78cf915 |
children | 6b1af0f05f06 |
comparison
equal
deleted
inserted
replaced
1147:bff23ef9407e | 1148:9cdb4206aceb |
---|---|
152 extern ssize_t GetDiscSpaceMBAvailable(const char *path); | 152 extern ssize_t GetDiscSpaceMBAvailable(const char *path); |
153 | 153 |
154 extern void StoreStartupLocale(); | 154 extern void StoreStartupLocale(); |
155 extern void RestoreStartupLocale(); | 155 extern void RestoreStartupLocale(); |
156 | 156 |
157 enum PluginLoadStatus { | |
158 UnknownPluginLoadStatus, | |
159 PluginLoadOK, | |
160 PluginLoadFailedToLoadLibrary, | |
161 PluginLoadFailedToFindDescriptor, | |
162 PluginLoadFailedElsewhere | |
163 }; | |
164 | |
165 // Check whether a plugin library is loadable without crashing (may | |
166 // need to spawn an external process to do it). Descriptor fn is the | |
167 // name of a LADSPA/DSSI/Vamp-style descriptor function to try | |
168 // calling; may be an empty string if the plugin doesn't follow that | |
169 // convention. | |
170 PluginLoadStatus TestPluginLoadability(QString soname, QString descriptorFn); | |
171 | |
157 #include <cmath> | 172 #include <cmath> |
158 | 173 |
159 #ifndef M_PI | 174 #ifndef M_PI |
160 #define M_PI 3.14159265358979323846 | 175 #define M_PI 3.14159265358979323846 |
161 #endif | 176 #endif |