comparison src/checker-client.cpp @ 41:7f5cf0fed473 errorcode

Merge from default branch
author Chris Cannam
date Wed, 29 Aug 2018 17:40:36 +0100
parents src/checker.cpp@40c6936c2fc9 src/checker.cpp@a28b19b136e8
children
comparison
equal deleted inserted replaced
40:40c6936c2fc9 41:7f5cf0fed473
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 /*
3 Copyright (c) 2016-2018 Queen Mary, University of London
4
5 Permission is hereby granted, free of charge, to any person
6 obtaining a copy of this software and associated documentation
7 files (the "Software"), to deal in the Software without
8 restriction, including without limitation the rights to use, copy,
9 modify, merge, publish, distribute, sublicense, and/or sell copies
10 of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be
14 included in all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24 Except as contained in this notice, the names of the Centre for
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
27 dealings in this Software without prior written authorization.
28 */
29
30 #include "knownplugincandidates.h"
31
32 #include <iostream>
33
34 using namespace std;
35
36 struct LogCallback : PluginCandidates::LogCallback {
37 virtual void log(string message) {
38 cerr << "checker: log: " << message << "\n";
39 }
40 };
41
42 int main(int, char **)
43 {
44 LogCallback cb;
45 KnownPluginCandidates kp("./vamp-plugin-load-checker", &cb);
46
47 for (auto t: kp.getKnownPluginTypes()) {
48 cout << "successful libraries for plugin type \""
49 << kp.getTagFor(t) << "\":" << endl;
50 for (auto lib: kp.getCandidateLibrariesFor(t)) {
51 cout << lib << endl;
52 }
53 }
54
55 cout << "Failure message (if any):" << endl;
56 cout << kp.getFailureReport() << endl;
57 }
58