summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mixer-binding/mixer-binding.c18
-rw-r--r--nbproject/configurations.xml46
2 files changed, 17 insertions, 47 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);
diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml
index d60d750..6ba83ec 100644
--- a/nbproject/configurations.xml
+++ b/nbproject/configurations.xml
@@ -174,8 +174,6 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>../../../opt/include</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
@@ -188,8 +186,6 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>../../../opt/include</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
@@ -202,21 +198,10 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>../../../opt/include</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
</incDir>
- <preprocessorList>
- <Elem>AFB_BINDING_VERSION=dyn</Elem>
- <Elem>CONTROL_CONFIG_PATH="/home/fulup/opt/4a-softmixer/etc:/home/fulup/Workspace/Audio-4a/4a-softmixer/build/package/etc"</Elem>
- <Elem>CONTROL_LUA_PATH="/home/fulup/Workspace/Audio-4a/4a-softmixer/conf.d/project/lua.d:/home/fulup/opt/4a-softmixer/data"</Elem>
- <Elem>CONTROL_PLUGIN_PATH="/home/fulup/opt/4a-softmixer/lib/plugins:/home/fulup/Workspace/Audio-4a/4a-softmixer/build/package/lib/plugins"</Elem>
- <Elem>CONTROL_SUPPORT_LUA</Elem>
- <Elem>CTL_PLUGIN_MAGIC=987456123</Elem>
- <Elem>USE_API_DYN=1</Elem>
- </preprocessorList>
</cTool>
</item>
<item path="app-controller-submodule/ctl-lib/ctl-event.c"
@@ -225,8 +210,6 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>../../../opt/include</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
@@ -239,7 +222,6 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
</incDir>
</cTool>
@@ -250,8 +232,6 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>../../../opt/include</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
@@ -264,8 +244,6 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>../../../opt/include</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
@@ -278,8 +256,6 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>../../../opt/include</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
@@ -292,8 +268,6 @@
flavor2="3">
<cTool flags="1">
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>app-controller-submodule/ctl-lib</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>../../../opt/include</pElem>
<pElem>build/app-controller-submodule/ctl-lib</pElem>
@@ -320,14 +294,26 @@
<folder path="0/mixer-binding">
<cTool>
<incDir>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>mixer-binding</pElem>
+ <pElem>/usr/include/json-c</pElem>
+ <pElem>../../../opt/include</pElem>
+ <pElem>/usr/include/p11-kit-1</pElem>
+ <pElem>/usr/include/uuid</pElem>
<pElem>../../../opt/include/alsa</pElem>
+ <pElem>/usr/include/lua5.3</pElem>
+ <pElem>mixer-binding</pElem>
<pElem>app-afb-helpers-submodule</pElem>
<pElem>app-controller-submodule/ctl-lib</pElem>
- <pElem>../../../opt/include</pElem>
<pElem>build/mixer-binding</pElem>
</incDir>
+ <preprocessorList>
+ <Elem>AFB_BINDING_VERSION=dyn</Elem>
+ <Elem>CONTROL_CONFIG_PATH="/home/fulup/Workspace/Audio-4a/4a-softmixer/conf.d/project/etc:/home/fulup/Workspace/Audio-4a/4a-softmixer/build/package/etc:/home/fulup/opt/4a-smixer/etc"</Elem>
+ <Elem>CONTROL_LUA_PATH="/home/fulup/Workspace/Audio-4a/4a-softmixer/conf.d/project/lua.d:/home/fulup/opt/4a-smixer/var"</Elem>
+ <Elem>CONTROL_PLUGIN_PATH="/home/fulup/Workspace/Audio-4a/4a-softmixer/build/package/lib/plugins:/home/fulup/opt/4a-smixer/lib/plugins"</Elem>
+ <Elem>CTL_PLUGIN_MAGIC=987456123</Elem>
+ <Elem>USE_API_DYN=1</Elem>
+ <Elem>softmixer_binding_EXPORTS</Elem>
+ </preprocessorList>
</cTool>
</folder>
<folder path="0/plugins">
@@ -357,7 +343,7 @@
</cTool>
</folder>
<item path="mixer-binding/mixer-binding.c" ex="false" tool="0" flavor2="3">
- <cTool flags="1">
+ <cTool flags="0">
</cTool>
</item>
<item path="plugins/alsa/alsa-api-loop.c" ex="false" tool="0" flavor2="2">