|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
SDP attribute value container structure. More...
#include <zephyr/bluetooth/classic/sdp.h>
Data Fields | |
| enum bt_sdp_attr_value_type | type |
| Type of the attribute value. | |
| union { | |
| bool value | |
| < Boolean value (when type is BT_SDP_ATTR_VALUE_TYPE_BOOL) More... | |
| struct bt_sdp_attr_value_uint uint | |
| Signed integer value (when type is BT_SDP_ATTR_VALUE_TYPE_SINT) More... | |
| struct bt_sdp_attr_value_int sint | |
| Text string value (when type is BT_SDP_ATTR_VALUE_TYPE_TEXT) More... | |
| struct bt_sdp_attr_value_text text | |
| URL string value (when type is BT_SDP_ATTR_VALUE_TYPE_URL) More... | |
| struct bt_sdp_attr_value_url url | |
| }; | |
| Union containing the actual attribute value based on type. | |
SDP attribute value container structure.
Structure that holds a parsed attribute value of any supported type. The type field indicates which member of the union contains the actual value. This structure provides a unified way to handle different types of SDP attribute values after parsing.
| union { ... } bt_sdp_attr_value |
Union containing the actual attribute value based on type.
| struct bt_sdp_attr_value_int bt_sdp_attr_value::sint |
Text string value (when type is BT_SDP_ATTR_VALUE_TYPE_TEXT)
| struct bt_sdp_attr_value_text bt_sdp_attr_value::text |
URL string value (when type is BT_SDP_ATTR_VALUE_TYPE_URL)
| enum bt_sdp_attr_value_type bt_sdp_attr_value::type |
Type of the attribute value.
| struct bt_sdp_attr_value_uint bt_sdp_attr_value::uint |
Signed integer value (when type is BT_SDP_ATTR_VALUE_TYPE_SINT)
| struct bt_sdp_attr_value_url bt_sdp_attr_value::url |
| bool bt_sdp_attr_value::value |
< Boolean value (when type is BT_SDP_ATTR_VALUE_TYPE_BOOL)
Unsigned integer value (when type is BT_SDP_ATTR_VALUE_TYPE_UINT)