aboutsummaryrefslogtreecommitdiffstats
path: root/src/sm-helper.h
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-03-08 12:24:46 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-03-28 21:10:01 +0900
commite1ca240b0b5447b63dbb1e186278a6c5e18a865d (patch)
tree64a742dd360c504893d19a98ccc8c4bb166ed435 /src/sm-helper.h
parent1acbefafaaf5e02b6d7373a9c8daa465f4a52cbb (diff)
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: Ia28318ef648cf07e9ddbc2be01bdc7a78f7b501f Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/sm-helper.h')
-rw-r--r--src/sm-helper.h1
1 files changed, 1 insertions, 0 deletions
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);