From 34e04465bd68dc92a1009c6eaebcace68aadf7c1 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Thu, 8 Mar 2018 12:24:46 +0900 Subject: Improve: Add stream_open API Add stream_open API. This means registeration of source in soundmanager. The following keys are same as High Level API's argument. audio_role ... is translated to sourceID in soundmanager endpoint_id ... is translated to sinkID and used after in soundmanager endpoint_type ... is not used in soundmanager Change-Id: Id2044b406c9e8f0a20604ce653607aed0140fe19 Signed-off-by: Kazumasa Mitsunari --- src/sm-helper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sm-helper.h') diff --git a/src/sm-helper.h b/src/sm-helper.h index 8c26049..8c87432 100644 --- a/src/sm-helper.h +++ b/src/sm-helper.h @@ -81,6 +81,7 @@ struct domain_data{ REQ_ERROR get_value_uint16(const struct afb_req request, const char *source, uint16_t *out_id); REQ_ERROR get_value_int16(const struct afb_req request, const char *source, int16_t *out_id); REQ_ERROR get_value_int32(const struct afb_req request, const char *source, int32_t *out_id); +REQ_ERROR get_sink_id(const struct afb_req request, const char* key, uint16_t *out_sink_id); void sm_add_object_to_json_object(struct json_object* j_obj, int count, ...); void sm_add_object_to_json_object_func(struct json_object* j_obj, const char* verb_name, int count, ...); int sm_search_event_name_index(const char* value); -- cgit 1.2.3-korg