From 756f8d02b445631df44243d528165fb1fe414487 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Mon, 21 Jan 2019 17:07:36 +0100 Subject: Move from controller functions to afb functions Move from controller 'afb-definitions.h' functions to application framework 'afb/afb-binding.h' functions. Change-Id: I4cd62af881ef8ac949b082ede9dfcc4736d1e12c Signed-off-by: Jonathan Aillet --- .../4a-hal-controllers/4a-hal-controllers-alsacore-link.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h') diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h index 351ad59..5081b49 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h @@ -24,6 +24,8 @@ #include +#include + #include #include "4a-hal-utilities-alsa-data.h" @@ -39,13 +41,13 @@ snd_ctl_elem_type_t HalCtlsMapsAlsaTypeToEnum(const char *label); // HAL controllers alsacore calls funtions -int HalCtlsGetCardIdByCardPath(AFB_ApiT apiHandle, char *devPath); -int HalCtlsSubscribeToAlsaCardEvent(AFB_ApiT apiHandle, char *cardId); -int HalCtlsUpdateAlsaCtlProperties(AFB_ApiT apiHandle, char *cardId, struct CtlHalAlsaCtl *currentAlsaCtl); -int HalCtlsSetAlsaCtlValue(AFB_ApiT apiHandle, char *cardId, int ctlId, json_object *valuesJ); -int HalCtlsCreateAlsaCtl(AFB_ApiT apiHandle, char *cardId, struct CtlHalAlsaCtl *alsaCtlToCreate); +int HalCtlsGetCardIdByCardPath(afb_api_t apiHandle, char *devPath); +int HalCtlsSubscribeToAlsaCardEvent(afb_api_t apiHandle, char *cardId); +int HalCtlsUpdateAlsaCtlProperties(afb_api_t apiHandle, char *cardId, struct CtlHalAlsaCtl *currentAlsaCtl); +int HalCtlsSetAlsaCtlValue(afb_api_t apiHandle, char *cardId, int ctlId, json_object *valuesJ); +int HalCtlsCreateAlsaCtl(afb_api_t apiHandle, char *cardId, struct CtlHalAlsaCtl *alsaCtlToCreate); // HAL controllers alsacore controls request callback -void HalCtlsActionOnAlsaCtl(AFB_ReqT request); +void HalCtlsActionOnAlsaCtl(afb_req_t request); #endif /* _HAL_CTLS_ALSACORE_LINK_INCLUDE_ */ \ No newline at end of file -- cgit 1.2.3-korg