mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-03 07:13:51 +00:00
gatt-service/vocs_server: update event names
This commit is contained in:
parent
6633124e53
commit
e826f75a73
@ -187,7 +187,7 @@ static void vocs_emit_volume_offset(volume_offset_control_service_server_t * voc
|
||||
uint8_t pos = 0;
|
||||
event[pos++] = HCI_EVENT_GATTSERVICE_META;
|
||||
event[pos++] = sizeof(event) - 2;
|
||||
event[pos++] = GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET;
|
||||
event[pos++] = GATTSERVICE_SUBEVENT_VOCS_SERVER_VOLUME_OFFSET;
|
||||
little_endian_store_16(event, pos, vocs->con_handle);
|
||||
pos += 2;
|
||||
event[pos++] = vocs->index;
|
||||
@ -203,7 +203,7 @@ static void vocs_emit_audio_location(volume_offset_control_service_server_t * vo
|
||||
uint8_t pos = 0;
|
||||
event[pos++] = HCI_EVENT_GATTSERVICE_META;
|
||||
event[pos++] = sizeof(event) - 2;
|
||||
event[pos++] = GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION;
|
||||
event[pos++] = GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_LOCATION;
|
||||
little_endian_store_16(event, pos, vocs->con_handle);
|
||||
pos += 2;
|
||||
event[pos++] = vocs->index;
|
||||
@ -219,7 +219,7 @@ static void vocs_emit_audio_output_description(volume_offset_control_service_ser
|
||||
uint8_t pos = 0;
|
||||
event[pos++] = HCI_EVENT_GATTSERVICE_META;
|
||||
event[pos++] = sizeof(event) - 2;
|
||||
event[pos++] = GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED;
|
||||
event[pos++] = GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_OUTPUT_DESCRIPTION;
|
||||
little_endian_store_16(event, pos, vocs->con_handle);
|
||||
pos += 2;
|
||||
event[pos++] = vocs->index;
|
||||
|
@ -122,7 +122,11 @@ typedef struct {
|
||||
|
||||
|
||||
/**
|
||||
* @brief Init Volume Offset Control Service Server with ATT DB
|
||||
* @brief Init Volume Offset Control Service Server with ATT DB. Event emitted to the event callback of the volume_offset_control_service_server_t struct:
|
||||
* - GATTSERVICE_SUBEVENT_VOCS_SERVER_VOLUME_OFFSET
|
||||
* - GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_LOCATION
|
||||
* - GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_OUTPUT_DESCRIPTION
|
||||
* -
|
||||
* @param vocs service storage
|
||||
*/
|
||||
void volume_offset_control_service_server_init(volume_offset_control_service_server_t * vocs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user