summaryrefslogtreecommitdiffstats
path: root/src/ahl-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ahl-binding.c')
-rw-r--r--src/ahl-binding.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ahl-binding.c b/src/ahl-binding.c
index cd89b64..264930f 100644
--- a/src/ahl-binding.c
+++ b/src/ahl-binding.c
@@ -296,7 +296,7 @@ static void TerminateClientContext(void * ptr)
json_object *pPolicyStreamJ = NULL;
int err = PolicyStreamStructToJSON(pStreamInfo, &pPolicyStreamJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
AFB_ERROR("Audio policy violation, Unable to get JSON object for Policy_CloseStream");
return;
@@ -481,7 +481,7 @@ PUBLIC int AhlBindingInit()
g_assert_nonnull(pCurEndpointInfo);
json_object *pPolicyEndpointJ = NULL;
err = PolicyEndpointStructToJSON(pCurEndpointInfo, &pPolicyEndpointJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
AFB_ERROR("Unable to Create Endpoint Json object error:%s ",wrap_json_get_error_string(err));
return err;
@@ -504,7 +504,7 @@ PUBLIC int AhlBindingInit()
g_assert_nonnull(pCurEndpointInfo);
json_object *pPolicyEndpointJ = NULL;
err = PolicyEndpointStructToJSON(pCurEndpointInfo, &pPolicyEndpointJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
AFB_ERROR("Unable to Create Endpoint Json object error:%s ",wrap_json_get_error_string(err));
return err;
@@ -725,7 +725,7 @@ PUBLIC void audiohlapi_stream_open(struct afb_req req)
// Call policy to verify whether creating a new audio stream is allowed in current context and possibly take other actions
json_object *pPolicyStreamJ = NULL;
err = PolicyStreamStructToJSON(pStreamInfo, &pPolicyStreamJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
afb_req_fail(req, "Audio policy violation", "Unable to get JSON object for Policy_OpenStream");
return;
@@ -806,7 +806,7 @@ PUBLIC void audiohlapi_stream_close(struct afb_req req)
#ifndef AHL_DISCONNECT_POLICY
json_object *pPolicyStreamJ = NULL;
err = PolicyStreamStructToJSON(pStreamInfo, &pPolicyStreamJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
afb_req_fail(req, "Audio policy violation", "Unable to get JSON object for Policy_CloseStream");
return;
@@ -897,7 +897,7 @@ PUBLIC void audiohlapi_stream_close(struct afb_req req)
#ifndef AHL_DISCONNECT_POLICY
json_object *pPolicyStreamJ = NULL;
err = PolicyStreamStructToJSON(pStreamInfo, &pPolicyStreamJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
afb_req_fail(req, "Audio policy violation", "Unable to get JSON object for Policy_SetStreamState");
return;
@@ -961,7 +961,7 @@ PUBLIC void audiohlapi_stream_close(struct afb_req req)
#ifndef AHL_DISCONNECT_POLICY
json_object *pPolicyStreamJ = NULL;
err = PolicyStreamStructToJSON(pStreamInfo, &pPolicyStreamJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
afb_req_fail(req, "Audio policy violation", "Unable to get JSON object for Policy_SetStreamMute");
return;
@@ -1036,7 +1036,7 @@ PUBLIC void audiohlapi_set_volume(struct afb_req req)
#ifndef AHL_DISCONNECT_POLICY
json_object *pPolicyEndpointJ = NULL;
err = PolicyEndpointStructToJSON(pEndpointInfo, &pPolicyEndpointJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
afb_req_fail(req, "Audio policy violation", "Unable to get JSON object for Policy_SetVolume");
return;
@@ -1146,7 +1146,7 @@ PUBLIC void audiohlapi_set_property(struct afb_req req)
#ifndef AHL_DISCONNECT_POLICY
json_object *pPolicyEndpointJ = NULL;
err = PolicyEndpointStructToJSON(pEndpointInfo, &pPolicyEndpointJ);
- if (err == AHL_FAIL)
+ if (err == AHL_POLICY_UTIL_FAIL)
{
afb_req_fail(req, "Audio policy violation", "Unable to get JSON object for Policy_SetVolume");
return;