Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_sdp_attr_value Struct Reference

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.

Detailed Description

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.

Field Documentation

◆ [union]

union { ... } bt_sdp_attr_value

Union containing the actual attribute value based on type.

◆ sint

struct bt_sdp_attr_value_int bt_sdp_attr_value::sint

Text string value (when type is BT_SDP_ATTR_VALUE_TYPE_TEXT)

◆ text

struct bt_sdp_attr_value_text bt_sdp_attr_value::text

URL string value (when type is BT_SDP_ATTR_VALUE_TYPE_URL)

◆ type

enum bt_sdp_attr_value_type bt_sdp_attr_value::type

Type of the attribute value.

◆ uint

struct bt_sdp_attr_value_uint bt_sdp_attr_value::uint

Signed integer value (when type is BT_SDP_ATTR_VALUE_TYPE_SINT)

◆ url

struct bt_sdp_attr_value_url bt_sdp_attr_value::url

◆ value

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)


The documentation for this struct was generated from the following file:
  • zephyr/bluetooth/classic/sdp.h