diff options
Diffstat (limited to 'src/sm-helper.h')
-rw-r--r-- | src/sm-helper.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/sm-helper.h b/src/sm-helper.h index a6d09f1..ec35ad2 100644 --- a/src/sm-helper.h +++ b/src/sm-helper.h @@ -27,20 +27,21 @@ #define SEND_RESULT_NO_RESP(...) send_result_no_resp(__VA_ARGS__, __FUNCTION__) static const char* cmd_evlist[] = { - "volumeChanged", - "newMainConnection", - "removedMainConnection", - "sinkMuteStateChanged", - "mainConnectionStateChanged" + SM_EVENT_VOLUME_CHANGED, + SM_EVENT_NEW_MAIN_CONNECTION, + SM_EVENT_REMOVED_MAIN_CONNECTION, + SM_EVENT_SINK_MUTE_STATE_CHANGED, + SM_EVENT_MAIN_CONNECTION_STATE_CHANGED }; static const char* route_evlist[] = { /* Routing event*/ - "setRoutingReady", - "setRoutingRundown", - "asyncConnect", - "asyncSetSourceState", - "asyncDisconnect" + SM_EVENT_SET_ROUTING_READY, + SM_EVENT_SET_ROUTING_RUNDOWN, + SM_EVENT_ASYNC_CONNECT, + SM_EVENT_ASYNC_SET_SOURCE_STATE, + SM_EVENT_ASYNC_DISCONNECT, + SM_EVENT_STREAM_STATE_EVENT }; REQ_ERROR get_value_uint16(const struct afb_req request, const char *source, uint16_t *out_id); |