Mercurial > hg > piper-cpp
comparison vamp-server/server.cpp @ 91:c897c9a8daf1
Implement reset()
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 13 Oct 2016 11:33:19 +0100 |
parents | 03ed2e0a6c8f |
children | 21f8af53eaf0 |
comparison
equal
deleted
inserted
replaced
90:6429a99abcad | 91:c897c9a8daf1 |
---|---|
4 #include "vamp-support/CountingPluginHandleMapper.h" | 4 #include "vamp-support/CountingPluginHandleMapper.h" |
5 | 5 |
6 #include <iostream> | 6 #include <iostream> |
7 #include <sstream> | 7 #include <sstream> |
8 #include <stdexcept> | 8 #include <stdexcept> |
9 | |
10 #include <capnp/serialize.h> | |
9 | 11 |
10 #include <map> | 12 #include <map> |
11 #include <set> | 13 #include <set> |
12 | 14 |
13 using namespace std; | 15 using namespace std; |
173 | 175 |
174 case RRType::Load: | 176 case RRType::Load: |
175 response.loadResponse = loader->loadPlugin(request.loadRequest); | 177 response.loadResponse = loader->loadPlugin(request.loadRequest); |
176 if (response.loadResponse.plugin != nullptr) { | 178 if (response.loadResponse.plugin != nullptr) { |
177 mapper.addPlugin(response.loadResponse.plugin); | 179 mapper.addPlugin(response.loadResponse.plugin); |
180 cerr << "loaded plugin, handle = " << mapper.pluginToHandle(response.loadResponse.plugin) << endl; | |
178 response.success = true; | 181 response.success = true; |
179 } | 182 } |
180 break; | 183 break; |
181 | 184 |
182 case RRType::Configure: | 185 case RRType::Configure: |