comparison src/vamp-hostsdk/Files.h @ 473:0545cd3f1738 enumerate-options

Add plugin enumeration options (for use by piper server, needs testing)
author Chris Cannam
date Wed, 02 Nov 2016 14:22:20 +0000
parents 06988ce35ff0
children 54277cb679ff
comparison
equal deleted inserted replaced
472:79a219ba6178 473:0545cd3f1738
45 */ 45 */
46 class Files 46 class Files
47 { 47 {
48 public: 48 public:
49 static std::vector<std::string> listLibraryFiles(); 49 static std::vector<std::string> listLibraryFiles();
50 static std::vector<std::string> listLibraryFilesMatching(std::string libname); 50
51 struct Filter {
52 enum { All, Matching, NotMatching } type;
53 std::vector<std::string> libraryNames;
54 Filter() : type(All) { }
55 };
56 static std::vector<std::string> listLibraryFilesMatching(Filter);
51 57
52 static void *loadLibrary(std::string filename); 58 static void *loadLibrary(std::string filename);
53 static void unloadLibrary(void *); 59 static void unloadLibrary(void *);
54 static void *lookupInLibrary(void *, const char *symbol); 60 static void *lookupInLibrary(void *, const char *symbol);
55 61