diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-06-27 18:21:20 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-06-27 18:21:20 +0200 |
commit | 10c42e135b22bf323836100ede042ec47ddb22a1 (patch) | |
tree | 7eb7a94df5980de81480c8671603ec4dfca0f6c9 /HAL-afb/HAL-interface/hal-interface.h | |
parent | 6c0d556e956eaf1f4eea734d7313d258dd75b878 (diff) |
Work in Progress
Diffstat (limited to 'HAL-afb/HAL-interface/hal-interface.h')
-rw-r--r-- | HAL-afb/HAL-interface/hal-interface.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/HAL-afb/HAL-interface/hal-interface.h b/HAL-afb/HAL-interface/hal-interface.h index 6aebb6e..e08ec18 100644 --- a/HAL-afb/HAL-interface/hal-interface.h +++ b/HAL-afb/HAL-interface/hal-interface.h @@ -19,6 +19,8 @@ #define SHAREHALLIB_H #include <stdio.h> +#include <alsa/asoundlib.h> + #include "audio-interface.h" typedef struct { @@ -37,8 +39,11 @@ typedef struct { // avoid compiler warning [Jose does not like typedef :) ] typedef struct afb_service alsaHalServiceT; +// static value for HAL sound card API prefix +extern const char sndCardApiPrefix[]; + typedef struct { - struct json_object* (*callback)(alsaHalServiceT service, int control, int value, alsaHalCtlMapT *map, void* handle); + struct json_object* (*callback)(alsaHalCtlMapT *control, void* handle); void* handle; } alsaHalCbMapT; @@ -48,17 +53,16 @@ typedef struct { char* info; } alsaHalMapT; -typedef struct { - const char *prefix; + +typedef const struct { const char *name; const char *info; alsaHalMapT *ctls; - int (*initCB) (const struct afb_binding_interface *itf, struct afb_service service); + int (*initCB) (void); } alsaHalSndCardT; PUBLIC alsaHalSndCardT alsaHalSndCard; -PUBLIC char* SharedHalLibVersion; #endif /* SHAREHALLIB_H */ |