summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-ApiHat.h
diff options
context:
space:
mode:
Diffstat (limited to 'alsa-binding/Alsa-ApiHat.h')
-rw-r--r--alsa-binding/Alsa-ApiHat.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/alsa-binding/Alsa-ApiHat.h b/alsa-binding/Alsa-ApiHat.h
index 209c65b..21aaa61 100644
--- a/alsa-binding/Alsa-ApiHat.h
+++ b/alsa-binding/Alsa-ApiHat.h
@@ -44,10 +44,10 @@
#define NO_SUBDEVICE_SELECTED -1
typedef enum {
- QUERY_QUIET =0,
- QUERY_COMPACT =1,
- QUERY_VERBOSE =2,
- QUERY_FULL =3,
+ QUERY_QUIET = 0,
+ QUERY_COMPACT = 1,
+ QUERY_VERBOSE = 2,
+ QUERY_FULL = 3,
} queryModeE;
typedef enum {
@@ -60,6 +60,11 @@ typedef enum {
CONTROL_REMOVE
} ControlAddRemoveT;
+typedef enum {
+ EVENT_SUBSCRIBE,
+ EVENT_UNSUBSCRIBE
+} EventSubscribeUnsubscribeT;
+
// structure to store card
typedef struct {
int cardNb;
@@ -77,8 +82,8 @@ typedef struct {
// generic structure to pass parsed query values
typedef struct {
- json_object *numidsJ;
- int count;
+ json_object *numidsJ;
+ int count;
} controlQueryValuesT;
// use to store crl numid user request
@@ -114,7 +119,8 @@ PUBLIC void alsaAddCustomCtls(afb_req_t request);
PUBLIC void alsaRemoveCustomCtls(afb_req_t request);
// AlsaRegEvt
-PUBLIC void alsaEvtSubcribe (afb_req_t request);
+PUBLIC void alsaEvtSubscribe (afb_req_t request);
+PUBLIC void alsaEvtUnsubscribe (afb_req_t request);
PUBLIC void alsaGetCardId (afb_req_t request);
PUBLIC void alsaRegisterHal (afb_req_t request);
PUBLIC void alsaActiveHal (afb_req_t request);