comparison src/checker.cpp @ 35:4154894d638c plugin-path-config

Trim KnownPlugins class down to static info and environment variable lookup; introduce KnownPluginCandidates to provide its former API
author Chris Cannam
date Wed, 06 Jun 2018 15:54:26 +0100
parents 7a20698b4c29
children 40c6936c2fc9
comparison
equal deleted inserted replaced
34:6905d8b146f6 35:4154894d638c
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 /* 2 /*
3 Copyright (c) 2016 Queen Mary, University of London 3 Copyright (c) 2016-2018 Queen Mary, University of London
4 4
5 Permission is hereby granted, free of charge, to any person 5 Permission is hereby granted, free of charge, to any person
6 obtaining a copy of this software and associated documentation 6 obtaining a copy of this software and associated documentation
7 files (the "Software"), to deal in the Software without 7 files (the "Software"), to deal in the Software without
8 restriction, including without limitation the rights to use, copy, 8 restriction, including without limitation the rights to use, copy,
25 Digital Music and Queen Mary, University of London shall not be 25 Digital Music and Queen Mary, University of London shall not be
26 used in advertising or otherwise to promote the sale, use or other 26 used in advertising or otherwise to promote the sale, use or other
27 dealings in this Software without prior written authorization. 27 dealings in this Software without prior written authorization.
28 */ 28 */
29 29
30 #include "knownplugins.h" 30 #include "knownplugincandidates.h"
31 31
32 #include <iostream> 32 #include <iostream>
33 33
34 using namespace std; 34 using namespace std;
35 35
40 }; 40 };
41 41
42 int main(int, char **) 42 int main(int, char **)
43 { 43 {
44 LogCallback cb; 44 LogCallback cb;
45 KnownPlugins kp("./vamp-plugin-load-checker", &cb); 45 KnownPluginCandidates kp("./vamp-plugin-load-checker", &cb);
46 46
47 for (auto t: kp.getKnownPluginTypes()) { 47 for (auto t: kp.getKnownPluginTypes()) {
48 cout << "successful libraries for plugin type \"" 48 cout << "successful libraries for plugin type \""
49 << kp.getTagFor(t) << "\":" << endl; 49 << kp.getTagFor(t) << "\":" << endl;
50 for (auto lib: kp.getCandidateLibrariesFor(t)) { 50 for (auto lib: kp.getCandidateLibrariesFor(t)) {