comparison system/System.h @ 1182:a1f410f895d3 3.0-integration

Merge from branch pluginscan
author Chris Cannam
date Fri, 15 Apr 2016 16:26:15 +0100
parents 6b1af0f05f06
children c811991a5efa
comparison
equal deleted inserted replaced
1175:4018fc0189bc 1182:a1f410f895d3
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