btstack_util: return bool for uuid_has_bluetooth_prefix

This commit is contained in:
Matthias Ringwald 2023-12-04 18:18:54 +01:00
parent 5237705876
commit 8933879e74
2 changed files with 3 additions and 3 deletions

View File

@ -333,7 +333,7 @@ void uuid_add_bluetooth_prefix(uint8_t * uuid128, uint32_t short_uuid){
big_endian_store_32(uuid128, 0, short_uuid);
}
int uuid_has_bluetooth_prefix(const uint8_t * uuid128){
bool uuid_has_bluetooth_prefix(const uint8_t * uuid128){
return memcmp(&uuid128[4], &bluetooth_base_uuid[4], 12) == 0;
}

View File

@ -282,9 +282,9 @@ void uuid_add_bluetooth_prefix(uint8_t * uuid128, uint32_t short_uuid);
/**
* @brief Checks if UUID128 has Bluetooth base UUID prefix
* @param uui128 to test
* @return 1 if it can be expressed as UUID32
* @return true if it can be expressed as UUID32
*/
int uuid_has_bluetooth_prefix(const uint8_t * uuid128);
bool uuid_has_bluetooth_prefix(const uint8_t * uuid128);
/**
* @brief Parse unsigned number