Mercurial > hg > vamp-plugin-load-checker
comparison src/plugincandidates.cpp @ 61:ef64b3f171d9
Avoid deprecated API
author | Chris Cannam |
---|---|
date | Tue, 07 Jan 2020 11:20:32 +0000 |
parents | 38ad8cba87a6 |
children |
comparison
equal
deleted
inserted
replaced
60:87908a5d6c88 | 61:ef64b3f171d9 |
---|---|
35 #include <stdexcept> | 35 #include <stdexcept> |
36 #include <iostream> | 36 #include <iostream> |
37 | 37 |
38 #include <QProcess> | 38 #include <QProcess> |
39 #include <QDir> | 39 #include <QDir> |
40 #include <QTime> | 40 #include <QElapsedTimer> |
41 | 41 |
42 #if defined(_WIN32) | 42 #if defined(_WIN32) |
43 #define PLUGIN_GLOB "*.dll" | 43 #define PLUGIN_GLOB "*.dll" |
44 #elif defined(__APPLE__) | 44 #elif defined(__APPLE__) |
45 #define PLUGIN_GLOB "*.dylib *.so" | 45 #define PLUGIN_GLOB "*.dylib *.so" |
229 for (auto &lib: libraries) { | 229 for (auto &lib: libraries) { |
230 process.write(lib.c_str(), lib.size()); | 230 process.write(lib.c_str(), lib.size()); |
231 process.write("\n", 1); | 231 process.write("\n", 1); |
232 } | 232 } |
233 | 233 |
234 QTime t; | 234 QElapsedTimer t; |
235 t.start(); | 235 t.start(); |
236 int timeout = 15000; // ms | 236 int timeout = 15000; // ms |
237 | 237 |
238 const int buflen = 4096; | 238 const int buflen = 4096; |
239 bool done = false; | 239 bool done = false; |