Mercurial > hg > svcore
comparison system/System.h @ 1179:6b1af0f05f06 pluginscan
Make use of, and warn for, the plugin checker for all types of plugin. Haven't yet resolved the question of how to install and find it.
author | Chris Cannam |
---|---|
date | Thu, 14 Apr 2016 14:03:18 +0100 |
parents | 9cdb4206aceb |
children | c811991a5efa |
comparison
equal
deleted
inserted
replaced
1178:bf05d9259dbc | 1179:6b1af0f05f06 |
---|---|
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 | |
172 #include <cmath> | 157 #include <cmath> |
173 | 158 |
174 #ifndef M_PI | 159 #ifndef M_PI |
175 #define M_PI 3.14159265358979323846 | 160 #define M_PI 3.14159265358979323846 |
176 #endif | 161 #endif |