mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-01 10:13:29 +00:00
btstack_util: return bool for uuid_has_bluetooth_prefix
This commit is contained in:
parent
5237705876
commit
8933879e74
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user