Mercurial > hg > vamp-plugin-sdk
comparison vamp-hostsdk/RequestResponse.h @ 455:5c07a86abddd outputid-string-in-featureset
Make RequestResponse types more consistent by adding plugin to ConfigurationResponse and introducing a FinishRequest
author | Chris Cannam |
---|---|
date | Mon, 19 Sep 2016 13:35:56 +0100 |
parents | d6262c77e5a5 |
children | 86624d166f88 |
comparison
equal
deleted
inserted
replaced
454:d6262c77e5a5 | 455:5c07a86abddd |
---|---|
184 * SDK, along with the PluginLoader method that returns this structure. | 184 * SDK, along with the PluginLoader method that returns this structure. |
185 */ | 185 */ |
186 struct ConfigurationResponse | 186 struct ConfigurationResponse |
187 { | 187 { |
188 public: | 188 public: |
189 ConfigurationResponse() // failed by default | 189 ConfigurationResponse() : // failed by default |
190 { } | 190 plugin(0) { } |
191 | 191 |
192 Plugin *plugin; | |
192 Plugin::OutputList outputs; | 193 Plugin::OutputList outputs; |
193 }; | 194 }; |
194 | 195 |
195 /** | 196 /** |
196 * \class ProcessRequest RequestResponse.h <vamp-hostsdk/RequestResponse.h> | 197 * \class ProcessRequest RequestResponse.h <vamp-hostsdk/RequestResponse.h> |
240 | 241 |
241 Plugin *plugin; | 242 Plugin *plugin; |
242 Plugin::FeatureSet features; | 243 Plugin::FeatureSet features; |
243 }; | 244 }; |
244 | 245 |
246 /** | |
247 * \class FinishRequest RequestResponse.h <vamp-hostsdk/RequestResponse.h> | |
248 * | |
249 * A structure that bundles the necessary data for finishing | |
250 * processing, i.e. calling getRemainingFeatures(). This consists only | |
251 * of the plugin pointer. Caller retains ownership of the plugin. | |
252 * | |
253 * \see Plugin::getRemainingFeatures() | |
254 * | |
255 * \note This class was introduced in version 2.7 of the Vamp plugin | |
256 * SDK, but it is not currently used by the SDK. It is supplied as a | |
257 * convenience for code using the SDK, and for symmetry with the load | |
258 * and configuration request structs. | |
259 * | |
260 * \note The response to a finish request (getRemainingFeatures()) is | |
261 * a ProcessResponse, just as it is for a process request. | |
262 */ | |
263 struct FinishRequest | |
264 { | |
265 public: | |
266 FinishRequest() : // invalid by default | |
267 plugin(0) { } | |
268 | |
269 Plugin *plugin; | |
270 }; | |
271 | |
245 } | 272 } |
246 | 273 |
247 } | 274 } |
248 | 275 |
249 _VAMP_SDK_HOSTSPACE_END(RequestResponse.h) | 276 _VAMP_SDK_HOSTSPACE_END(RequestResponse.h) |