Skip to content

Commit

Permalink
monitor: const annotate util_ltv_debugger instances and API
Browse files Browse the repository at this point in the history
  • Loading branch information
evelikov-work authored and Vudentz committed Jan 19, 2024
1 parent 00f1ddf commit 9a16b8b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions monitor/att.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,8 @@ static void print_ltv(const char *str, void *user_data)
}

static bool print_ase_lv(const struct l2cap_frame *frame, const char *label,
struct util_ltv_debugger *decoder, size_t decoder_len)
const struct util_ltv_debugger *decoder,
size_t decoder_len)
{
struct bt_hci_lv_data *lv;

Expand All @@ -705,7 +706,8 @@ static bool print_ase_lv(const struct l2cap_frame *frame, const char *label,
}

static bool print_ase_cc(const struct l2cap_frame *frame, const char *label,
struct util_ltv_debugger *decoder, size_t decoder_len)
const struct util_ltv_debugger *decoder,
size_t decoder_len)
{
return print_ase_lv(frame, label, decoder, decoder_len);
}
Expand Down Expand Up @@ -813,7 +815,7 @@ static void ase_debug_language(const uint8_t *data, uint8_t len,
print_hex_field(" Data", frame.data, frame.size);
}

struct util_ltv_debugger ase_metadata_table[] = {
static const struct util_ltv_debugger ase_metadata_table[] = {
UTIL_LTV_DEBUG(0x01, ase_debug_preferred_context),
UTIL_LTV_DEBUG(0x02, ase_debug_context),
UTIL_LTV_DEBUG(0x03, ase_debug_program_info),
Expand Down Expand Up @@ -994,7 +996,7 @@ static void pac_decode_sdu(const uint8_t *data, uint8_t len,
print_hex_field(" Data", frame.data, frame.size);
}

struct util_ltv_debugger pac_cap_table[] = {
static const struct util_ltv_debugger pac_cap_table[] = {
UTIL_LTV_DEBUG(0x01, pac_decode_freq),
UTIL_LTV_DEBUG(0x02, pac_decode_duration),
UTIL_LTV_DEBUG(0x03, pac_decode_channels),
Expand Down Expand Up @@ -1336,7 +1338,7 @@ static void ase_debug_blocks(const uint8_t *data, uint8_t len,
print_hex_field(" Data", frame.data, frame.size);
}

struct util_ltv_debugger ase_cc_table[] = {
static const struct util_ltv_debugger ase_cc_table[] = {
UTIL_LTV_DEBUG(0x01, ase_debug_freq),
UTIL_LTV_DEBUG(0x02, ase_debug_duration),
UTIL_LTV_DEBUG(0x03, ase_debug_location),
Expand Down Expand Up @@ -2769,7 +2771,7 @@ static const struct big_enc_decoder {

static bool print_subgroup_lv(const struct l2cap_frame *frame,
const char *label,
struct util_ltv_debugger *debugger,
const struct util_ltv_debugger *debugger,
size_t debugger_len)
{
struct bt_hci_lv_data *lv;
Expand Down

0 comments on commit 9a16b8b

Please sign in to comment.