From c7f296bea9640a0cf8dc0bdbe6fea78c4c1e1b13 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Sun, 5 Nov 2017 17:34:22 +0100 Subject: Added few debug message --- alsa-hook/PolicyAlsaHook.c | 3 +- nbproject/configurations.xml | 101 +++++++++++++++++++++++-------------------- 2 files changed, 57 insertions(+), 47 deletions(-) diff --git a/alsa-hook/PolicyAlsaHook.c b/alsa-hook/PolicyAlsaHook.c index ffba74c..44f5ce9 100644 --- a/alsa-hook/PolicyAlsaHook.c +++ b/alsa-hook/PolicyAlsaHook.c @@ -257,7 +257,7 @@ static int CallWithTimeout(afbClientT *afbClient, afbRequestT *afbRequest, int c // release action is optional if (afbRequest->apiverb) { - if (afbClient->verbose) printf("CALL-REQUEST verb=%s tag=%s\n", afbRequest->apiverb, afbRequest->callIdTag); + if (afbClient->verbose) printf("CALL-REQUEST verb=%s query=%s tag=%s session=%s\n", afbRequest->apiverb, json_object_get_string(afbRequest->queryJ), afbRequest->callIdTag, afbClient->uid); err = afb_proto_ws_client_call(afbClient->pws, afbRequest->apiverb, afbRequest->queryJ, afbClient->uid, afbRequest); if (err < 0 ) goto OnErrorExit; } @@ -312,6 +312,7 @@ static int LaunchCallRequest(afbClientT *afbClient, hookActionT action) { fprintf(stderr, "LaunchCallRequest: Connection to %s failed\n", afbClient->uri); goto OnErrorExit; } + if (afbClient->verbose) printf ("LaunchCallRequest:optional HOOK_OPEN uri=%s\n", afbClient->uri); // register hanghup callback afb_proto_ws_on_hangup(afbClient->pws, OnHangupCB); diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml index 7ce8763..4d6ec63 100644 --- a/nbproject/configurations.xml +++ b/nbproject/configurations.xml @@ -1416,11 +1416,12 @@ false - - - - - + + + + + @@ -1432,7 +1433,7 @@ ${MAKE} -f Makefile ${MAKE} -f Makefile clean build/CMakeFiles/feature_tests.bin - + @@ -1442,7 +1443,7 @@ - + ../../../opt/include/afb Audio-Common @@ -1452,7 +1453,7 @@ - + ../../../opt/include/afb Audio-Common @@ -1462,7 +1463,7 @@ - + Audio-Common /usr/include/json-c @@ -1471,18 +1472,18 @@ - + - + build/Controller-afb - + /usr/include/json-c /usr/include/lua5.3 @@ -1493,7 +1494,7 @@ - + /usr/include/json-c /usr/include/lua5.3 @@ -1504,7 +1505,7 @@ - + /usr/include/json-c build/Controller-afb @@ -1512,7 +1513,7 @@ - + /usr/include/json-c /usr/include/lua5.3 @@ -1521,7 +1522,7 @@ - + ../../../opt/include build/Controller-afb @@ -1532,7 +1533,7 @@ ex="false" tool="0" flavor2="3"> - + Audio-Common build/HAL-afb/HAL-interface @@ -1543,7 +1544,7 @@ ex="false" tool="0" flavor2="3"> - + Audio-Common build/HAL-afb/HAL-interface @@ -1551,21 +1552,21 @@ - + build/HAL-afb/HAL-interface - + - + ../../../opt/include/afb HAL-afb/HAL_MOST_UNICENS @@ -1579,35 +1580,35 @@ ex="false" tool="1" flavor2="4"> - + - + - + - + - + HAL-afb/HAL_MOST_UNICENS build/HAL-afb/HAL_MOST_UNICENS @@ -1618,7 +1619,7 @@ ex="false" tool="0" flavor2="3"> - + ../../../opt/include/afb HAL-afb/HAL_MOST_UNICENS @@ -1630,7 +1631,7 @@ ex="false" tool="0" flavor2="3"> - + ../../../opt/include/afb HAL-afb/HAL_MOST_UNICENS @@ -1640,25 +1641,25 @@ - + - + - + - + Shared-Interface HAL-afb/HAL-interface @@ -1667,7 +1668,7 @@ - + HAL-afb/HAL-interface build/HAL-afb/Unicens-USB @@ -1675,11 +1676,11 @@ - + - + @@ -1717,7 +1718,7 @@ - + ../../../opt/include/afb afb-utilities @@ -1727,7 +1728,7 @@ - + afb-utilities /usr/include/json-c @@ -1736,7 +1737,7 @@ - + ../../../opt/include/alsa /usr/include/json-c @@ -1746,7 +1747,7 @@ - + /usr/include/json-c build/alsa-binding @@ -1754,7 +1755,7 @@ - + ../../../opt/include/alsa /usr/include/json-c @@ -1764,7 +1765,7 @@ - + ../../../opt/include/alsa /usr/include/json-c @@ -1774,7 +1775,7 @@ - + ../../../opt/include/alsa /usr/include/json-c @@ -1784,7 +1785,7 @@ - + @@ -2032,13 +2033,21 @@ - alsa-hook - ../../../opt/include/alsa /usr/include/json-c - ../../../opt/include/afb ../../../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 + -- cgit 1.2.3-korg