summaryrefslogtreecommitdiffstats
path: root/mixer-binding/mixer-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixer-binding/mixer-binding.c')
-rw-r--r--mixer-binding/mixer-binding.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/mixer-binding/mixer-binding.c b/mixer-binding/mixer-binding.c
index e8beb8b..ab61baa 100644
--- a/mixer-binding/mixer-binding.c
+++ b/mixer-binding/mixer-binding.c
@@ -62,17 +62,6 @@ STATIC int CtrlLoadStaticVerbs (afb_dynapi *apiHandle, AFB_ApiVerbs *verbs) {
return errcount;
};
-
-//STATIC int CtrlInitOneApi (AFB_ApiT apiHandle) {
-//
-// AFB_default = apiHandle; // hugely hack to make all V2 AFB_DEBUG to work in fileutils
-//
-// // retrieve section config from api handle
-// CtlConfigT *ctrlConfig = (CtlConfigT*) afb_dynapi_get_userdata(apiHandle);
-//
-// return 0;
-//}
-
// next generation dynamic API-V3 mode
#include <signal.h>
@@ -96,11 +85,6 @@ STATIC int CtrlLoadOneApi (void *cbdata, AFB_ApiT apiHandle) {
// declare an event event manager for this API;
afb_dynapi_on_event(apiHandle, CtrlDispatchApiEvent);
- // init API function (does not receive user closure ???
- //afb_dynapi_on_init(apiHandle, CtrlInitOneApi);
-
- //error = CtlConfigExec (apiHandle, ctrlConfig);
-
// should not seal API as each mixer+stream create a new verb
// afb_dynapi_seal(apiHandle);
return error;
@@ -131,7 +115,6 @@ PUBLIC int afbBindingVdyn(afb_dynapi *apiHandle) {
goto OnErrorExit;
}
-
if (!ctrlConfig->api) {
AFB_ApiError(apiHandle, "CtrlBindingDyn API Missing from metadata in:\n-- %s", configPath);
goto OnErrorExit;
@@ -141,6 +124,7 @@ PUBLIC int afbBindingVdyn(afb_dynapi *apiHandle) {
// create one API per config file (Pre-V3 return code ToBeChanged)
int status = afb_dynapi_new_api(apiHandle, ctrlConfig->api, ctrlConfig->info, 1, CtrlLoadOneApi, ctrlConfig);
+ // config exec should be done after api init in order to enable onload to use newly defined ctl API.
if (!status)
status = CtlConfigExec (apiHandle, ctrlConfig);