From 5091e2598048d81e3913fbb66916b51df29c9b31 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Wed, 1 Nov 2017 21:16:57 +0100 Subject: Remove PS_SET, now should use afb-daemon --name option --- alsa-binding/Alsa-ApiHat.c | 8 ------- nbproject/configurations.xml | 56 ++++++++++++++++++++++---------------------- 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 @@ + ../../../opt/include/afb + alsa-binding ../../../opt/include/alsa /usr/include/json-c ../../../opt/include @@ -474,16 +476,30 @@ - + /usr/include/json-c + ../../../opt/include + /usr/include/p11-kit-1 + ../../../opt/include/alsa + afb-utilities build/alsa-binding + + CONTROL_MAXPATH_LEN=255 + MAX_LINEAR_DB_SCALE=24 + MAX_SND_CARD=16 + NATIVE_LINUX + TLV_BYTE_SIZE=256 + alsa_4a_EXPORTS + + ../../../opt/include/afb + alsa-binding ../../../opt/include/alsa /usr/include/json-c ../../../opt/include @@ -494,6 +510,8 @@ + ../../../opt/include/afb + alsa-binding ../../../opt/include/alsa /usr/include/json-c ../../../opt/include @@ -504,6 +522,8 @@ + ../../../opt/include/afb + alsa-binding ../../../opt/include/alsa /usr/include/json-c ../../../opt/include @@ -512,35 +532,11 @@ - - - /usr/include/json-c - ../../../opt/include - /usr/include/p11-kit-1 - ../../../opt/include/alsa - build/alsa-hook - - - CONTROL_MAXPATH_LEN=255 - MAX_LINEAR_DB_SCALE=24 - MAX_SND_CARD=16 - NATIVE_LINUX - PIC - TLV_BYTE_SIZE=256 - policy_alsa_hook_EXPORTS - + - - alsa-hook - ../../../opt/include/alsa - /usr/include/json-c - ../../../opt/include/afb - ../../../opt/include - build/alsa-hook - @@ -770,11 +766,15 @@ - + + alsa-hook + ../../../opt/include/alsa + /usr/include/json-c ../../../opt/include/afb - alsa-binding + ../../../opt/include + build/alsa-hook -- cgit