aboutsummaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-Ucm.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-19 17:22:00 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-20 11:39:37 +0000
commit7b20b115c4ec4b9c157d19d5154453f5c751a5d6 (patch)
tree3a56e02b4aaff0cc0bf205f27134d40a617dda59 /alsa-binding/Alsa-Ucm.c
parent2209293bec9ce0cff772dedbec326704f5a2ca42 (diff)
Use some app-fwk macros to support v2 and v3
Use some application framework macros to support both v2 and v3 compilation. Change-Id: I3051bbeff8788ea2c71545e5d253619d4749ff41 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding/Alsa-Ucm.c')
-rw-r--r--alsa-binding/Alsa-Ucm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/alsa-binding/Alsa-Ucm.c b/alsa-binding/Alsa-Ucm.c
index 0c65f2c..3e0687c 100644
--- a/alsa-binding/Alsa-Ucm.c
+++ b/alsa-binding/Alsa-Ucm.c
@@ -51,7 +51,7 @@ static ucmHandleT ucmHandles[MAX_SND_CARD];
// Cache opened UCM handles
-STATIC int alsaUseCaseOpen(struct afb_req request, queryValuesT *queryValues, int allowNewMgr) {
+STATIC int alsaUseCaseOpen(afb_req_t request, queryValuesT *queryValues, int allowNewMgr) {
snd_ctl_t *ctlDev=NULL;
snd_ctl_card_info_t *cardinfo;
snd_use_case_mgr_t *ucmHandle;
@@ -110,7 +110,7 @@ OnErrorExit:
return -1;
}
-PUBLIC void alsaUseCaseQuery(struct afb_req request) {
+PUBLIC void alsaUseCaseQuery(afb_req_t request) {
int verbCount, ucmIdx;
const char **verbList;
snd_use_case_mgr_t *ucmHandle;
@@ -233,7 +233,7 @@ OnErrorExit:
return (NULL);
}
-PUBLIC void alsaUseCaseGet(struct afb_req request) {
+PUBLIC void alsaUseCaseGet(afb_req_t request) {
int ucmIdx, labelCount;
queryValuesT queryValues;
json_object *jResponse = json_object_new_object();
@@ -318,7 +318,7 @@ OnErrorExit:
return;
}
-PUBLIC void alsaUseCaseSet(struct afb_req request) {
+PUBLIC void alsaUseCaseSet(afb_req_t request) {
int err, ucmIdx;
queryValuesT queryValues;
json_object *jResponse = json_object_new_object();
@@ -383,7 +383,7 @@ OnErrorExit:
return;
}
-PUBLIC void alsaUseCaseReset(struct afb_req request) {
+PUBLIC void alsaUseCaseReset(afb_req_t request) {
int err, ucmIdx;
queryValuesT queryValues;
@@ -405,7 +405,7 @@ OnErrorExit:
return;
}
-PUBLIC void alsaUseCaseClose(struct afb_req request) {
+PUBLIC void alsaUseCaseClose(afb_req_t request) {
int err, ucmIdx;
queryValuesT queryValues;