summaryrefslogtreecommitdiffstats
path: root/ahl-policy/ahl-policy.h
diff options
context:
space:
mode:
Diffstat (limited to 'ahl-policy/ahl-policy.h')
-rw-r--r--ahl-policy/ahl-policy.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/ahl-policy/ahl-policy.h b/ahl-policy/ahl-policy.h
index 942055a..0200973 100644
--- a/ahl-policy/ahl-policy.h
+++ b/ahl-policy/ahl-policy.h
@@ -16,6 +16,7 @@
#ifndef AHL_POLICY_INCLUDE
#define AHL_POLICY_INCLUDE
+
#include "ahl-policy-utils.h"
#ifndef AHL_DISCONNECT_POLICY
@@ -27,19 +28,22 @@
#define AHL_POLICY_UNDEFINED_HALNAME "UNDEFINED"
#define AHL_POLICY_UNDEFINED_DISPLAYNAME "DeviceNotFound"
+#define AHL_POLICY_ALSA_API "alsacore"
-int Policy_Endpoint_Init(json_object *pPolicyEndpointJ);
-int Policy_OpenStream(json_object *pPolicyStreamJ);
-int Policy_CloseStream(json_object *pPolicyStreamJ);
-int Policy_SetStreamState(json_object *pPolicyStreamJ);
-int Policy_SetStreamMute(json_object *pPolicyStreamJ);
-int Policy_PostAction(json_object *pPolicyActionJ);
-int Policy_SetVolume(json_object *pPolicyEndpointJ);
-int Policy_SetProperty(json_object *pPolicyEndpointJ);
+int Policy_Endpoint_Init(json_object *pInPolicyEndpointJ,json_object **pOutPolicyEndpointJ);
+int Policy_OpenStream(json_object *pStreamJ);
+int Policy_CloseStream(json_object *pStreamJ);
+int Policy_SetStreamState(json_object *pStreamJ);
+int Policy_SetStreamMute(json_object *pStreamJ);
+int Policy_PostAction(json_object *pActionJ);
+int Policy_SetVolume(json_object *pEndpointJ);
+int Policy_SetProperty(json_object *pEndpointJ);
int Policy_Init();
void Policy_Term();
void Policy_OnEvent(const char *evtname, json_object *eventJ);
+// TODO: To be replaced by AGL events once policy is isolated in its own binding
extern void audiohlapi_raise_event(json_object * pEventDataJ);
+
#endif // AHL_DISCONNECT_POLICY
#endif // AHL_POLICY_INCLUDE \ No newline at end of file