diff options
Diffstat (limited to 'src/ahl-apidef.h')
-rw-r--r-- | src/ahl-apidef.h | 261 |
1 files changed, 130 insertions, 131 deletions
diff --git a/src/ahl-apidef.h b/src/ahl-apidef.h index e23d1e0..fd957ce 100644 --- a/src/ahl-apidef.h +++ b/src/ahl-apidef.h @@ -29,128 +29,127 @@ static const char _afb_description_v2_audiohl[] = "\":{\"type\":\"int\"},\"mute\":{\"type\":\"int\"},\"device_uri\":{\"type" "\":\"string\"},\"$ref\":\"#/components/schemas/endpoint_info\"}}},\"x-pe" "rmissions\":{\"streamcontrol\":{\"permission\":\"urn:AGL:permission:audi" - "o:public:streamcontrol\"},\"routingcontrol\":{\"permission\":\"urn:AGL:p" - "ermission:audio:public:routingcontrol\"},\"audiostream\":{\"permission\"" - ":\"urn:AGL:permission:audio:public:audiostream\"},\"prioritysignal\":{\"" - "permission\":\"urn:AGL:permission:audio:public:prioritysignal\"},\"sound" - "event\":{\"permission\":\"urn:AGL:permission:audio:public:soundevent\"}," - "\"streammonitor\":{\"permission\":\"urn:AGL:permission:audio:public:stre" - "ammonitor\"}},\"responses\":{\"200\":{\"description\":\"A complex object" - " array response\",\"content\":{\"application/json\":{\"schema\":{\"$ref\"" - ":\"#/components/schemas/afb-reply\"}}}},\"400\":{\"description\":\"Inval" - "id arguments\"}}},\"paths\":{\"/get_sources\":{\"description\":\"Retriev" - "e array of available audio sources\",\"get\":{\"parameters\":[{\"in\":\"" - "query\",\"name\":\"audio_role\",\"required\":true,\"schema\":{\"type\":\"" - "string\"}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/20" - "0\",\"response\":{\"description\":\"Array of endpoint info structures\"," - "\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/endpoint_i" - "nfo\"}}},\"400\":{\"$ref\":\"#/components/responses/400\"}}}},\"/get_sin" - "ks\":{\"description\":\"Retrieve array of available audio sinks\",\"get\"" - ":{\"parameters\":[{\"in\":\"query\",\"name\":\"audio_role\",\"required\"" - ":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"$ref\"" - ":\"#/components/responses/200\",\"response\":{\"description\":\"Array of" - " endpoint info structures\",\"type\":\"array\",\"items\":{\"$ref\":\"#/c" - "omponents/schemas/endpoint_info\"}}},\"400\":{\"$ref\":\"#/components/re" - "sponses/400\"}}}},\"/stream_open\":{\"description\":\"Request opening a " - "stream\",\"get\":{\"x-permissions\":{\"$ref\":\"#/components/x-permissio" - "ns/audiostream\"},\"parameters\":[{\"in\":\"query\",\"name\":\"audio_rol" - "e\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"in\":\"query\"" + "o:public:streamcontrol\"},\"endpointcontrol\":{\"permission\":\"urn:AGL:" + "permission:audio:public:endpointcontrol\"},\"audiostream\":{\"permission" + "\":\"urn:AGL:permission:audio:public:audiostream\"},\"soundevent\":{\"pe" + "rmission\":\"urn:AGL:permission:audio:public:soundevent\"}},\"responses\"" + ":{\"200\":{\"description\":\"A complex object array response\",\"content" + "\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/af" + "b-reply\"}}}},\"400\":{\"description\":\"Invalid arguments\"}}},\"paths\"" + ":{\"/get_sources\":{\"description\":\"Retrieve array of available audio " + "sources\",\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"audio_ro" + "le\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":" + "{\"200\":{\"$ref\":\"#/components/responses/200\",\"response\":{\"descri" + "ption\":\"Array of endpoint info structures\",\"type\":\"array\",\"items" + "\":{\"$ref\":\"#/components/schemas/endpoint_info\"}}},\"400\":{\"$ref\"" + ":\"#/components/responses/400\"}}}},\"/get_sinks\":{\"description\":\"Re" + "trieve array of available audio sinks\",\"get\":{\"parameters\":[{\"in\"" + ":\"query\",\"name\":\"audio_role\",\"required\":true,\"schema\":{\"type\"" + ":\"string\"}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses" + "/200\",\"response\":{\"description\":\"Array of endpoint info structures" + "\",\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/endpoin" + "t_info\"}}},\"400\":{\"$ref\":\"#/components/responses/400\"}}}},\"/stre" + "am_open\":{\"description\":\"Request opening a stream\",\"get\":{\"x-per" + "missions\":{\"$ref\":\"#/components/x-permissions/audiostream\"},\"param" + "eters\":[{\"in\":\"query\",\"name\":\"audio_role\",\"required\":true,\"s" + "chema\":{\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"endpoint_typ" + "e\",\"required\":true,\"schema\":{\"type\":\"enum\"}},{\"in\":\"query\"," + "\"name\":\"endpoint_id\",\"required\":false,\"schema\":{\"type\":\"int\"" + "}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/200\",\"re" + "sponse\":{\"description\":\"Stream information structure\",\"$ref\":\"#/" + "components/schemas/stream_info\"}},\"400\":{\"$ref\":\"#/components/resp" + "onses/400\"}}}},\"/stream_close\":{\"description\":\"Request closing a s" + "tream\",\"get\":{\"x-permissions\":{\"$ref\":\"#/components/x-permission" + "s/audiostream\"},\"parameters\":[{\"in\":\"query\",\"name\":\"stream_id\"" + ",\"required\":true,\"schema\":{\"type\":\"int\"}}],\"responses\":{\"200\"" + ":{\"$ref\":\"#/components/responses/200\"},\"400\":{\"$ref\":\"#/compone" + "nts/responses/400\"}}}},\"/set_stream_state\":{\"description\":\"Change " + "stream active state\",\"get\":{\"x-permissions\":{\"$ref\":\"#/component" + "s/x-permissions/streamcontrol\"},\"parameters\":[{\"in\":\"query\",\"nam" + "e\":\"stream_id\",\"required\":true,\"schema\":{\"type\":\"int\"}},{\"in" + "\":\"query\",\"name\":\"state\",\"required\":true,\"schema\":{\"type\":\"" + "int\"}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/200\"" + "},\"400\":{\"$ref\":\"#/components/responses/400\"}}}},\"/set_stream_mut" + "e\":{\"description\":\"Change stream mute state\",\"get\":{\"x-permissio" + "ns\":{\"$ref\":\"#/components/x-permissions/streamcontrol\"},\"parameter" + "s\":[{\"in\":\"query\",\"name\":\"stream_id\",\"required\":true,\"schema" + "\":{\"type\":\"int\"}},{\"in\":\"query\",\"name\":\"mute\",\"required\":" + "true,\"schema\":{\"type\":\"int\"}}],\"responses\":{\"200\":{\"$ref\":\"" + "#/components/responses/200\"},\"400\":{\"$ref\":\"#/components/responses" + "/400\"}}}},\"/get_stream_info\":{\"description\":\"Retrieve stream infor" + "mation\",\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"stream_id" + "\",\"required\":true,\"schema\":{\"type\":\"int\"}}],\"responses\":{\"20" + "0\":{\"$ref\":\"#/components/responses/200\",\"response\":{\"description" + "\":\"Stream information structure\",\"$ref\":\"#/components/schemas/stre" + "am_info\"}},\"400\":{\"$ref\":\"#/components/responses/400\"}}}},\"/set_" + "volume\":{\"description\":\"Set volume on endpoint\",\"get\":{\"x-permis" + "sions\":{\"$ref\":\"#/components/x-permissions/endpointcontrol\"},\"para" + "meters\":[{\"in\":\"query\",\"name\":\"endpoint_type\",\"required\":true" + ",\"schema\":{\"type\":\"enum\"}},{\"in\":\"query\",\"name\":\"endpoint_i" + "d\",\"required\":true,\"schema\":{\"type\":\"int\"}},{\"in\":\"query\",\"" + "name\":\"volume\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"" + "responses\":{\"200\":{\"$ref\":\"#/components/responses/200\"},\"400\":{" + "\"$ref\":\"#/components/responses/400\"}}}},\"/get_volume\":{\"descripti" + "on\":\"Get endpoint volume\",\"get\":{\"parameters\":[{\"in\":\"query\"," + "\"name\":\"endpoint_type\",\"required\":true,\"schema\":{\"type\":\"enum" + "\"}},{\"in\":\"query\",\"name\":\"endpoint_id\",\"required\":true,\"sche" + "ma\":{\"type\":\"int\"}}],\"responses\":{\"200\":{\"$ref\":\"#/component" + "s/responses/200\",\"response\":{\"description\":\"Endpoint volume value\"" + ",\"type\":\"double\"}},\"400\":{\"$ref\":\"#/components/responses/400\"}" + "}}},\"/get_endpoint_info\":{\"description\":\"Retrieve endpoint informat" + "ion including its properties\",\"get\":{\"parameters\":[{\"in\":\"query\"" ",\"name\":\"endpoint_type\",\"required\":true,\"schema\":{\"type\":\"enu" "m\"}},{\"in\":\"query\",\"name\":\"endpoint_id\",\"required\":false,\"sc" "hema\":{\"type\":\"int\"}}],\"responses\":{\"200\":{\"$ref\":\"#/compone" - "nts/responses/200\",\"response\":{\"description\":\"Stream information s" - "tructure\",\"$ref\":\"#/components/schemas/stream_info\"}},\"400\":{\"$r" - "ef\":\"#/components/responses/400\"}}}},\"/stream_close\":{\"description" - "\":\"Request closing a stream\",\"get\":{\"x-permissions\":{\"$ref\":\"#" - "/components/x-permissions/audiostream\"},\"parameters\":[{\"in\":\"query" - "\",\"name\":\"stream_id\",\"required\":true,\"schema\":{\"type\":\"int\"" - "}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/200\"},\"4" - "00\":{\"$ref\":\"#/components/responses/400\"}}}},\"/set_stream_state\":" - "{\"description\":\"Change stream active state\",\"get\":{\"x-permissions" - "\":{\"$ref\":\"#/components/x-permissions/streamcontrol\"},\"parameters\"" - ":[{\"in\":\"query\",\"name\":\"stream_id\",\"required\":true,\"schema\":" - "{\"type\":\"int\"}},{\"in\":\"query\",\"name\":\"state\",\"required\":tr" - "ue,\"schema\":{\"type\":\"int\"}}],\"responses\":{\"200\":{\"$ref\":\"#/" - "components/responses/200\"},\"400\":{\"$ref\":\"#/components/responses/4" - "00\"}}}},\"/set_stream_mute\":{\"description\":\"Change stream mute stat" - "e\",\"get\":{\"x-permissions\":{\"$ref\":\"#/components/x-permissions/st" - "reamcontrol\"},\"parameters\":[{\"in\":\"query\",\"name\":\"stream_id\"," - "\"required\":true,\"schema\":{\"type\":\"int\"}},{\"in\":\"query\",\"nam" - "e\":\"mute\",\"required\":true,\"schema\":{\"type\":\"int\"}}],\"respons" - "es\":{\"200\":{\"$ref\":\"#/components/responses/200\"},\"400\":{\"$ref\"" - ":\"#/components/responses/400\"}}}},\"/get_stream_info\":{\"description\"" - ":\"Retrieve stream information\",\"get\":{\"x-permissions\":{\"$ref\":\"" - "#/components/x-permissions/streamcontrol\"},\"parameters\":[{\"in\":\"qu" - "ery\",\"name\":\"stream_id\",\"required\":true,\"schema\":{\"type\":\"in" - "t\"}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/200\",\"" - "response\":{\"description\":\"Stream information structure\",\"$ref\":\"" - "#/components/schemas/stream_info\"}},\"400\":{\"$ref\":\"#/components/re" - "sponses/400\"}}}},\"/set_volume\":{\"description\":\"Set volume\",\"get\"" - ":{\"x-permissions\":{\"$ref\":\"#/components/x-permissions/streamcontrol" - "\"},\"parameters\":[{\"in\":\"query\",\"name\":\"endpoint_type\",\"requi" - "red\":true,\"schema\":{\"type\":\"enum\"}},{\"in\":\"query\",\"name\":\"" - "endpoint_id\",\"required\":true,\"schema\":{\"type\":\"int\"}},{\"in\":\"" - "query\",\"name\":\"volume\",\"required\":true,\"schema\":{\"type\":\"str" - "ing\"}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/200\"" - "},\"400\":{\"$ref\":\"#/components/responses/400\"}}}},\"/get_volume\":{" - "\"description\":\"Get volume\",\"get\":{\"parameters\":[{\"in\":\"query\"" - ",\"name\":\"endpoint_type\",\"required\":true,\"schema\":{\"type\":\"enu" - "m\"}},{\"in\":\"query\",\"name\":\"endpoint_id\",\"required\":true,\"sch" - "ema\":{\"type\":\"int\"}}],\"responses\":{\"200\":{\"$ref\":\"#/componen" - "ts/responses/200\",\"response\":{\"description\":\"Endpoint volume value" - "\",\"type\":\"double\"}},\"400\":{\"$ref\":\"#/components/responses/400\"" - "}}}},\"/get_list_properties\":{\"description\":\"Retrieve a list of supp" - "orted properties for a particular endpoint\",\"get\":{\"parameters\":[{\"" - "in\":\"query\",\"name\":\"endpoint_type\",\"required\":true,\"schema\":{" - "\"type\":\"enum\"}},{\"in\":\"query\",\"name\":\"endpoint_id\",\"require" - "d\":false,\"schema\":{\"type\":\"int\"}}],\"responses\":{\"200\":{\"$ref" - "\":\"#/components/responses/200\"},\"400\":{\"$ref\":\"#/components/resp" - "onses/400\"}}}},\"/set_property\":{\"description\":\"Set property value\"" - ",\"get\":{\"x-permissions\":{\"$ref\":\"#/components/x-permissions/strea" - "mcontrol\"},\"parameters\":[{\"in\":\"query\",\"name\":\"endpoint_type\"" - ",\"required\":true,\"schema\":{\"type\":\"enum\"}},{\"in\":\"query\",\"n" - "ame\":\"endpoint_id\",\"required\":false,\"schema\":{\"type\":\"int\"}}," - "{\"in\":\"query\",\"name\":\"property_name\",\"required\":true,\"schema\"" - ":{\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"value\",\"required\"" - ":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"$ref\"" - ":\"#/components/responses/200\"},\"400\":{\"$ref\":\"#/components/respon" - "ses/400\"}}}},\"/get_property\":{\"description\":\"Get property value\"," - "\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"endpoint_type\",\"" + "nts/responses/200\"},\"400\":{\"$ref\":\"#/components/responses/400\"}}}" + "},\"/set_property\":{\"description\":\"Set endpoint property value\",\"g" + "et\":{\"x-permissions\":{\"$ref\":\"#/components/x-permissions/endpointc" + "ontrol\"},\"parameters\":[{\"in\":\"query\",\"name\":\"endpoint_type\",\"" "required\":true,\"schema\":{\"type\":\"enum\"}},{\"in\":\"query\",\"name" "\":\"endpoint_id\",\"required\":false,\"schema\":{\"type\":\"int\"}},{\"" "in\":\"query\",\"name\":\"property_name\",\"required\":true,\"schema\":{" - "\"type\":\"string\"}}],\"responses\":{\"200\":{\"$ref\":\"#/components/r" - "esponses/200\",\"response\":{\"description\":\"Property value\",\"type\"" - ":\"double\"}},\"400\":{\"$ref\":\"#/components/responses/400\"}}}},\"/ge" - "t_list_events\":{\"description\":\"Retrieve a list of supported events f" - "or a particular audio role\",\"get\":{\"parameters\":[{\"in\":\"query\"," - "\"name\":\"audio_role\",\"required\":true,\"schema\":{\"type\":\"string\"" - "}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/200\"},\"4" - "00\":{\"$ref\":\"#/components/responses/400\"}}}},\"/post_event\":{\"des" - "cription\":\"Post sound or audio device related event (extendable mechan" - "ism)\",\"get\":{\"x-permissions\":{\"$ref\":\"#/components/x-permissions" - "/soundevent\"},\"parameters\":[{\"in\":\"query\",\"name\":\"event_name\"" - ",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"in\":\"query\",\"" - "name\":\"audio_role\",\"required\":true,\"schema\":{\"type\":\"string\"}" - "},{\"in\":\"query\",\"name\":\"media_name\",\"required\":false,\"schema\"" - ":{\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"event_context\",\"r" - "equired\":false,\"schema\":{\"type\":\"object\"}}],\"responses\":{\"200\"" - ":{\"$ref\":\"#/components/responses/200\"},\"400\":{\"$ref\":\"#/compone" - "nts/responses/400\"}}}},\"/subscribe\":{\"description\":\"Subscribe to a" - "udio high level events\",\"get\":{\"parameters\":[{\"in\":\"query\",\"na" - "me\":\"events\",\"required\":true,\"schema\":{\"type\":\"array\",\"items" - "\":{\"type\":\"string\"}}}],\"responses\":{\"200\":{\"$ref\":\"#/compone" - "nts/responses/200\"},\"400\":{\"$ref\":\"#/components/responses/400\"}}}" - "},\"/unsubscribe\":{\"description\":\"Unubscribe to audio high level eve" - "nts\",\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"events\",\"r" - "equired\":true,\"schema\":{\"type\":\"array\",\"items\":{\"type\":\"stri" - "ng\"}}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/200\"" - "},\"400\":{\"$ref\":\"#/components/responses/400\"}}}}}}" + "\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"value\",\"required\":" + "true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"$ref\"" + ":\"#/components/responses/200\"},\"400\":{\"$ref\":\"#/components/respon" + "ses/400\"}}}},\"/get_property\":{\"description\":\"Get endpoint property" + " value\",\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"endpoint_" + "type\",\"required\":true,\"schema\":{\"type\":\"enum\"}},{\"in\":\"query" + "\",\"name\":\"endpoint_id\",\"required\":false,\"schema\":{\"type\":\"in" + "t\"}},{\"in\":\"query\",\"name\":\"property_name\",\"required\":true,\"s" + "chema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"$ref\":\"#/com" + "ponents/responses/200\",\"response\":{\"description\":\"Property value\"" + ",\"type\":\"double\"}},\"400\":{\"$ref\":\"#/components/responses/400\"}" + "}}},\"/get_list_actions\":{\"description\":\"Retrieve a list of supporte" + "d actions for a particular audio role\",\"get\":{\"parameters\":[{\"in\"" + ":\"query\",\"name\":\"audio_role\",\"required\":true,\"schema\":{\"type\"" + ":\"string\"}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses" + "/200\"},\"400\":{\"$ref\":\"#/components/responses/400\"}}}},\"/post_act" + "ion\":{\"description\":\"Post sound or audio device related action event" + " (extendable mechanism)\",\"get\":{\"x-permissions\":{\"$ref\":\"#/compo" + "nents/x-permissions/soundevent\"},\"parameters\":[{\"in\":\"query\",\"na" + "me\":\"action_name\",\"required\":true,\"schema\":{\"type\":\"string\"}}" + ",{\"in\":\"query\",\"name\":\"audio_role\",\"required\":true,\"schema\":" + "{\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"media_name\",\"requi" + "red\":false,\"schema\":{\"type\":\"string\"}},{\"in\":\"query\",\"name\"" + ":\"action_context\",\"required\":false,\"schema\":{\"type\":\"object\"}}" + "],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/200\"},\"400" + "\":{\"$ref\":\"#/components/responses/400\"}}}},\"/subscribe\":{\"descri" + "ption\":\"Subscribe to audio high level events\",\"get\":{\"parameters\"" + ":[{\"in\":\"query\",\"name\":\"events\",\"required\":true,\"schema\":{\"" + "type\":\"array\",\"items\":{\"type\":\"string\"}}}],\"responses\":{\"200" + "\":{\"$ref\":\"#/components/responses/200\"},\"400\":{\"$ref\":\"#/compo" + "nents/responses/400\"}}}},\"/unsubscribe\":{\"description\":\"Unubscribe" + " to audio high level events\",\"get\":{\"parameters\":[{\"in\":\"query\"" + ",\"name\":\"events\",\"required\":true,\"schema\":{\"type\":\"array\",\"" + "items\":{\"type\":\"string\"}}}],\"responses\":{\"200\":{\"$ref\":\"#/co" + "mponents/responses/200\"},\"400\":{\"$ref\":\"#/components/responses/400" + "\"}}}}}}" ; static const struct afb_auth _afb_auths_v2_audiohl[] = { { .type = afb_auth_Permission, .text = "urn:AGL:permission:audio:public:audiostream" }, { .type = afb_auth_Permission, .text = "urn:AGL:permission:audio:public:streamcontrol" }, + { .type = afb_auth_Permission, .text = "urn:AGL:permission:audio:public:endpointcontrol" }, { .type = afb_auth_Permission, .text = "urn:AGL:permission:audio:public:soundevent" } }; @@ -163,11 +162,11 @@ static const struct afb_auth _afb_auths_v2_audiohl[] = { void audiohlapi_get_stream_info(struct afb_req req); void audiohlapi_set_volume(struct afb_req req); void audiohlapi_get_volume(struct afb_req req); - void audiohlapi_get_list_properties(struct afb_req req); + void audiohlapi_get_endpoint_info(struct afb_req req); void audiohlapi_set_property(struct afb_req req); void audiohlapi_get_property(struct afb_req req); - void audiohlapi_get_list_events(struct afb_req req); - void audiohlapi_post_event(struct afb_req req); + void audiohlapi_get_list_actions(struct afb_req req); + void audiohlapi_post_action(struct afb_req req); void audiohlapi_subscribe(struct afb_req req); void audiohlapi_unsubscribe(struct afb_req req); @@ -217,57 +216,57 @@ static const struct afb_verb_v2 _afb_verbs_v2_audiohl[] = { { .verb = "get_stream_info", .callback = audiohlapi_get_stream_info, - .auth = &_afb_auths_v2_audiohl[1], + .auth = NULL, .info = "Retrieve stream information", .session = AFB_SESSION_NONE_V2 }, { .verb = "set_volume", .callback = audiohlapi_set_volume, - .auth = &_afb_auths_v2_audiohl[1], - .info = "Set volume", + .auth = &_afb_auths_v2_audiohl[2], + .info = "Set volume on endpoint", .session = AFB_SESSION_NONE_V2 }, { .verb = "get_volume", .callback = audiohlapi_get_volume, .auth = NULL, - .info = "Get volume", + .info = "Get endpoint volume", .session = AFB_SESSION_NONE_V2 }, { - .verb = "get_list_properties", - .callback = audiohlapi_get_list_properties, + .verb = "get_endpoint_info", + .callback = audiohlapi_get_endpoint_info, .auth = NULL, - .info = "Retrieve a list of supported properties for a particular endpoint", + .info = "Retrieve endpoint information including its properties", .session = AFB_SESSION_NONE_V2 }, { .verb = "set_property", .callback = audiohlapi_set_property, - .auth = &_afb_auths_v2_audiohl[1], - .info = "Set property value", + .auth = &_afb_auths_v2_audiohl[2], + .info = "Set endpoint property value", .session = AFB_SESSION_NONE_V2 }, { .verb = "get_property", .callback = audiohlapi_get_property, .auth = NULL, - .info = "Get property value", + .info = "Get endpoint property value", .session = AFB_SESSION_NONE_V2 }, { - .verb = "get_list_events", - .callback = audiohlapi_get_list_events, + .verb = "get_list_actions", + .callback = audiohlapi_get_list_actions, .auth = NULL, - .info = "Retrieve a list of supported events for a particular audio role", + .info = "Retrieve a list of supported actions for a particular audio role", .session = AFB_SESSION_NONE_V2 }, { - .verb = "post_event", - .callback = audiohlapi_post_event, - .auth = &_afb_auths_v2_audiohl[2], - .info = "Post sound or audio device related event (extendable mechanism)", + .verb = "post_action", + .callback = audiohlapi_post_action, + .auth = &_afb_auths_v2_audiohl[3], + .info = "Post sound or audio device related action event (extendable mechanism)", .session = AFB_SESSION_NONE_V2 }, { |