Lines Matching refs:metadata

46 	struct bt_ots_obj_metadata    metadata;  member
1561 uint8_t metadata) in bt_ots_client_read_object_metadata() argument
1571 } else if (!metadata) { in bt_ots_client_read_object_metadata()
1586 inst->metadata_to_read = metadata & BT_OTS_METADATA_REQ_ALL; in bt_ots_client_read_object_metadata()
1616 rec->metadata.id = net_buf_simple_pull_le48(buf); in decode_record()
1621 (void)bt_ots_obj_id_to_str(rec->metadata.id, t, sizeof(t)); in decode_record()
1645 if (rec->name_len >= sizeof(rec->metadata.name_c)) { in decode_record()
1651 memcpy(rec->metadata.name_c, name, rec->name_len); in decode_record()
1654 rec->metadata.name_c[rec->name_len] = '\0'; in decode_record()
1678 if (!bt_uuid_create(&rec->metadata.type.uuid, uuid, BT_UUID_SIZE_128)) { in decode_record()
1691 rec->metadata.type.uuid_16.val = in decode_record()
1704 rec->metadata.size.cur = net_buf_simple_pull_le32(buf); in decode_record()
1716 rec->metadata.size.alloc = net_buf_simple_pull_le32(buf); in decode_record()
1728 date_time_decode(buf, &rec->metadata.first_created); in decode_record()
1740 date_time_decode(buf, &rec->metadata.modified); in decode_record()
1752 rec->metadata.props = net_buf_simple_pull_le32(buf); in decode_record()
1789 ret = cb(&record.metadata); in bt_ots_client_decode_dirlisting()
1799 void bt_ots_metadata_display(struct bt_ots_obj_metadata *metadata, in bt_ots_metadata_display() argument
1807 (void)bt_ots_obj_id_to_str(metadata->id, t, sizeof(t)); in bt_ots_metadata_display()
1809 LOG_INF("Object name: %s", metadata->name_c); in bt_ots_metadata_display()
1810 LOG_INF("Object Current Size: %u", metadata->size.cur); in bt_ots_metadata_display()
1811 LOG_INF("Object Allocate Size: %u", metadata->size.alloc); in bt_ots_metadata_display()
1813 if (!bt_uuid_cmp(&metadata->type.uuid, in bt_ots_metadata_display()
1816 } else if (!bt_uuid_cmp(&metadata->type.uuid, in bt_ots_metadata_display()
1819 } else if (!bt_uuid_cmp(&metadata->type.uuid, in bt_ots_metadata_display()
1822 } else if (!bt_uuid_cmp(&metadata->type.uuid, in bt_ots_metadata_display()
1825 } else if (!bt_uuid_cmp(&metadata->type.uuid, in bt_ots_metadata_display()
1831 LOG_INF("Properties:0x%x", metadata->props); in bt_ots_metadata_display()
1833 if (BT_OTS_OBJ_GET_PROP_APPEND(metadata->props)) { in bt_ots_metadata_display()
1837 if (BT_OTS_OBJ_GET_PROP_DELETE(metadata->props)) { in bt_ots_metadata_display()
1841 if (BT_OTS_OBJ_GET_PROP_EXECUTE(metadata->props)) { in bt_ots_metadata_display()
1845 if (BT_OTS_OBJ_GET_PROP_MARKED(metadata->props)) { in bt_ots_metadata_display()
1849 if (BT_OTS_OBJ_GET_PROP_PATCH(metadata->props)) { in bt_ots_metadata_display()
1853 if (BT_OTS_OBJ_GET_PROP_READ(metadata->props)) { in bt_ots_metadata_display()
1857 if (BT_OTS_OBJ_GET_PROP_TRUNCATE(metadata->props)) { in bt_ots_metadata_display()
1861 if (BT_OTS_OBJ_GET_PROP_WRITE(metadata->props)) { in bt_ots_metadata_display()