Mercurial > hg > vamp-plugin-sdk
comparison vamp-hostsdk/RequestResponse.h @ 430:fbdb06ce1e9a vampipe
Move ConfigurationRequest/Response into RequestResponse.h
author | Chris Cannam |
---|---|
date | Wed, 18 May 2016 10:35:13 +0100 |
parents | 9c25e2289faa |
children | 2819b5c9a395 |
comparison
equal
deleted
inserted
replaced
429:9c25e2289faa | 430:fbdb06ce1e9a |
---|---|
32 shall not be used in advertising or otherwise to promote the sale, | 32 shall not be used in advertising or otherwise to promote the sale, |
33 use or other dealings in this Software without prior written | 33 use or other dealings in this Software without prior written |
34 authorization. | 34 authorization. |
35 */ | 35 */ |
36 | 36 |
37 #ifndef VAMP_LOAD_REQUEST_H | 37 #ifndef VAMP_REQUEST_RESPONSE_H |
38 #define VAMP_LOAD_REQUEST_H | 38 #define VAMP_REQUEST_RESPONSE_H |
39 | 39 |
40 #include "PluginStaticData.h" | 40 #include "PluginStaticData.h" |
41 #include "PluginConfiguration.h" | 41 #include "PluginConfiguration.h" |
42 | 42 |
43 #include "hostguard.h" | 43 #include "hostguard.h" |
146 * only valid if plugin is non-0. | 146 * only valid if plugin is non-0. |
147 */ | 147 */ |
148 PluginConfiguration defaultConfiguration; | 148 PluginConfiguration defaultConfiguration; |
149 }; | 149 }; |
150 | 150 |
151 /** | |
152 * \class ConfigurationRequest RequestResponse.h <vamp-hostsdk/RequestResponse.h> | |
153 * | |
154 * A wrapper for a plugin pointer and PluginConfiguration, bundling up | |
155 * the data needed to configure a plugin after it has been loaded. | |
156 * | |
157 * \see PluginConfiguration, ConfigurationResponse, LoadRequest, LoadResponse | |
158 */ | |
159 struct ConfigurationRequest | |
160 { | |
161 public: | |
162 ConfigurationRequest() : // invalid request by default | |
163 plugin(0) { } | |
164 | |
165 Plugin *plugin; | |
166 PluginConfiguration configuration; | |
167 }; | |
168 | |
169 /** | |
170 * \class ConfigurationResponse RequestResponse.h <vamp-hostsdk/RequestResponse.h> | |
171 * | |
172 * The return value from a configuration request (i.e. setting the | |
173 * parameters and initialising the plugin). If the configuration was | |
174 * successful, the output list will contain the final | |
175 * post-initialisation output descriptors. If configuration failed, | |
176 * the output list will be empty. | |
177 * | |
178 * \see PluginConfiguration, ConfigurationRequest, LoadRequest, LoadResponse | |
179 */ | |
180 struct ConfigurationResponse | |
181 { | |
182 public: | |
183 ConfigurationResponse() // failed by default | |
184 { } | |
185 | |
186 Plugin::OutputList outputs; | |
187 }; | |
188 | |
151 } | 189 } |
152 | 190 |
153 } | 191 } |
154 | 192 |
155 _VAMP_SDK_HOSTSPACE_END(RequestResponse.h) | 193 _VAMP_SDK_HOSTSPACE_END(RequestResponse.h) |