comparison system/System.h @ 1172:59ae7e04f7e9

Merge
author Chris Cannam
date Fri, 04 Mar 2016 12:29:35 +0000
parents d57f9344db19
children 6b1af0f05f06
comparison
equal deleted inserted replaced
1171:fa1bec83441e 1172:59ae7e04f7e9
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