aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-11-01 21:16:57 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-11-01 21:16:57 +0100
commit5091e2598048d81e3913fbb66916b51df29c9b31 (patch)
tree3f4629ad7637b5e0a46787ffcbb03ba7c8395592
parentfb2566c629de780c8ddc88058c864ea08436d1de (diff)
Remove PS_SET, now should use afb-daemon --name option
-rw-r--r--alsa-binding/Alsa-ApiHat.c8
-rw-r--r--nbproject/configurations.xml56
2 files changed, 28 insertions, 36 deletions
diff --git a/alsa-binding/Alsa-ApiHat.c b/alsa-binding/Alsa-ApiHat.c
index 6f27c84..14ab903 100644
--- a/alsa-binding/Alsa-ApiHat.c
+++ b/alsa-binding/Alsa-ApiHat.c
@@ -35,13 +35,6 @@ STATIC void pingtest(struct afb_req request) {
afb_req_success(request, query, NULL);
}
-STATIC int AlsaInit(void) {
- int rc= prctl(PR_SET_NAME, "afb-aaaa-agent",NULL,NULL,NULL);
- if (rc) AFB_ERROR("ERROR: AlsaCore fail to rename process");
-
- return rc;
-}
-
/*
* array of the verbs exported to afb-daemon
*/
@@ -70,5 +63,4 @@ static const struct afb_verb_v2 api_verbs[] = {
const afb_binding_v2 afbBindingV2 = {
.api = "alsacore",
.verbs = api_verbs,
- .preinit = AlsaInit,
};
diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml
index 07e636e..78905c4 100644
--- a/nbproject/configurations.xml
+++ b/nbproject/configurations.xml
@@ -466,6 +466,8 @@
<item path="alsa-binding/Alsa-AddCtl.c" ex="false" tool="0" flavor2="3">
<cTool flags="2">
<incDir>
+ <pElem>../../../opt/include/afb</pElem>
+ <pElem>alsa-binding</pElem>
<pElem>../../../opt/include/alsa</pElem>
<pElem>/usr/include/json-c</pElem>
<pElem>../../../opt/include</pElem>
@@ -474,16 +476,30 @@
</cTool>
</item>
<item path="alsa-binding/Alsa-ApiHat.c" ex="false" tool="0" flavor2="3">
- <cTool flags="2">
+ <cTool flags="0">
<incDir>
<pElem>/usr/include/json-c</pElem>
+ <pElem>../../../opt/include</pElem>
+ <pElem>/usr/include/p11-kit-1</pElem>
+ <pElem>../../../opt/include/alsa</pElem>
+ <pElem>afb-utilities</pElem>
<pElem>build/alsa-binding</pElem>
</incDir>
+ <preprocessorList>
+ <Elem>CONTROL_MAXPATH_LEN=255</Elem>
+ <Elem>MAX_LINEAR_DB_SCALE=24</Elem>
+ <Elem>MAX_SND_CARD=16</Elem>
+ <Elem>NATIVE_LINUX</Elem>
+ <Elem>TLV_BYTE_SIZE=256</Elem>
+ <Elem>alsa_4a_EXPORTS</Elem>
+ </preprocessorList>
</cTool>
</item>
<item path="alsa-binding/Alsa-RegEvt.c" ex="false" tool="0" flavor2="3">
<cTool flags="2">
<incDir>
+ <pElem>../../../opt/include/afb</pElem>
+ <pElem>alsa-binding</pElem>
<pElem>../../../opt/include/alsa</pElem>
<pElem>/usr/include/json-c</pElem>
<pElem>../../../opt/include</pElem>
@@ -494,6 +510,8 @@
<item path="alsa-binding/Alsa-SetGet.c" ex="false" tool="0" flavor2="3">
<cTool flags="2">
<incDir>
+ <pElem>../../../opt/include/afb</pElem>
+ <pElem>alsa-binding</pElem>
<pElem>../../../opt/include/alsa</pElem>
<pElem>/usr/include/json-c</pElem>
<pElem>../../../opt/include</pElem>
@@ -504,6 +522,8 @@
<item path="alsa-binding/Alsa-Ucm.c" ex="false" tool="0" flavor2="3">
<cTool flags="2">
<incDir>
+ <pElem>../../../opt/include/afb</pElem>
+ <pElem>alsa-binding</pElem>
<pElem>../../../opt/include/alsa</pElem>
<pElem>/usr/include/json-c</pElem>
<pElem>../../../opt/include</pElem>
@@ -512,35 +532,11 @@
</cTool>
</item>
<item path="alsa-hook/PolicyAlsaHook.c" ex="false" tool="0" flavor2="3">
- <cTool flags="0">
- <incDir>
- <pElem>/usr/include/json-c</pElem>
- <pElem>../../../opt/include</pElem>
- <pElem>/usr/include/p11-kit-1</pElem>
- <pElem>../../../opt/include/alsa</pElem>
- <pElem>build/alsa-hook</pElem>
- </incDir>
- <preprocessorList>
- <Elem>CONTROL_MAXPATH_LEN=255</Elem>
- <Elem>MAX_LINEAR_DB_SCALE=24</Elem>
- <Elem>MAX_SND_CARD=16</Elem>
- <Elem>NATIVE_LINUX</Elem>
- <Elem>PIC</Elem>
- <Elem>TLV_BYTE_SIZE=256</Elem>
- <Elem>policy_alsa_hook_EXPORTS</Elem>
- </preprocessorList>
+ <cTool flags="2">
</cTool>
</item>
<item path="alsa-hook/PolicyHookTcp.c" ex="false" tool="0" flavor2="3">
<cTool flags="2">
- <incDir>
- <pElem>alsa-hook</pElem>
- <pElem>../../../opt/include/alsa</pElem>
- <pElem>/usr/include/json-c</pElem>
- <pElem>../../../opt/include/afb</pElem>
- <pElem>../../../opt/include</pElem>
- <pElem>build/alsa-hook</pElem>
- </incDir>
</cTool>
</item>
<folder path="0/Audio-Common">
@@ -770,11 +766,15 @@
</preprocessorList>
</cTool>
</folder>
- <folder path="0/alsa-binding">
+ <folder path="0/alsa-hook">
<cTool>
<incDir>
+ <pElem>alsa-hook</pElem>
+ <pElem>../../../opt/include/alsa</pElem>
+ <pElem>/usr/include/json-c</pElem>
<pElem>../../../opt/include/afb</pElem>
- <pElem>alsa-binding</pElem>
+ <pElem>../../../opt/include</pElem>
+ <pElem>build/alsa-hook</pElem>
</incDir>
</cTool>
</folder>