Bluetooth: OTS: Merge client and server metadata types

Merge the metadata types for client and server.
This is part of merging the ots_client and ots header files.

Signed-off-by: Asbjørn Sæbø <asbjorn.sabo@nordicsemi.no>
This commit is contained in:
Asbjørn Sæbø 2022-02-07 15:24:23 +01:00 committed by Carles Cufí
commit adfd1d16e0
5 changed files with 120 additions and 110 deletions

View file

@ -2635,13 +2635,13 @@ void on_object_metadata(struct bt_conn *conn, int err,
uint8_t metadata_read)
{
BT_INFO("Object's meta data:");
BT_INFO("\tCurrent size\t:%u", otc_inst->cur_object.current_size);
BT_INFO("\tCurrent size\t:%u", otc_inst->cur_object.size.cur);
if (otc_inst->cur_object.current_size > otc_obj_buf.size) {
if (otc_inst->cur_object.size.cur > otc_obj_buf.size) {
BT_DBG("Object larger than allocated buffer");
}
bt_otc_metadata_display(&otc_inst->cur_object, 1);
bt_ots_metadata_display(&otc_inst->cur_object, 1);
if (mcc_cb && mcc_cb->otc_obj_metadata) {
mcc_cb->otc_obj_metadata(conn, err);