diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-03 19:07:26 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:51:00 +0200 |
commit | 8bbaffadc1a5bcfc9b14174793f034565baecb52 (patch) | |
tree | e81c16bb3d37307e34951782dabac742da39079f /4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h | |
parent | 6629b727ca8554e7f27891af91d315addc532b47 (diff) |
Use error codes when handling mixer init response
Use error codes when handling mixer initialization response.
Change-Id: Ie62b022f1a653be18766a09f1803995a77ae8582
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h')
-rw-r--r-- | 4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h b/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h index f06b649..b9c0ecd 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-handler.h @@ -24,6 +24,16 @@ #include "../4a-hal-utilities/4a-hal-utilities-data.h" +// Enum for the type of error detected +enum MixerStatus { + MIXER_NO_ERROR=0, + MIXER_ERROR_API_UNAVAILABLE=-1, + MIXER_ERROR_NO_STREAMS=-2, + MIXER_ERROR_STREAM_NAME_UNAVAILABLE=-10, + MIXER_ERROR_STREAM_CARDID_UNAVAILABLE=-1000, + MIXER_ERROR_COULDNT_ADD_STREAMS_AS_VERB =-100000, +}; + // HAL controllers handle mixer response function int HalCtlsHandleMixerAttachResponse(afb_request *request, struct CtlHalStreamsDataT *currentHalStreamsData, json_object *MixerResponseJ); |