Bluetooth: AT: Rename API's which uses term 'stream'
Rename the API's with 'list' which uses the term 'stream'. For example 'at_open_stream' is renamed to 'at_open_list' and the same applies for other API's which uses 'stream' in it. Change-Id: I62bed70de3d85cd4890b10e04eba27ae2de1907c Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
This commit is contained in:
parent
a69cdca529
commit
39e7350a13
2 changed files with 16 additions and 16 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include "at.h"
|
||||
|
||||
static void next_stream(struct at_client *at)
|
||||
static void next_list(struct at_client *at)
|
||||
{
|
||||
if (at->buf[at->pos] == ',') {
|
||||
at->pos++;
|
||||
|
@ -67,7 +67,7 @@ int at_get_number(struct at_client *at, uint32_t *val)
|
|||
return -ENODATA;
|
||||
}
|
||||
|
||||
next_stream(at);
|
||||
next_list(at);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -347,16 +347,16 @@ int at_parse_cmd_input(struct at_client *at, struct net_buf *buf,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int at_has_next_stream(struct at_client *at)
|
||||
int at_has_next_list(struct at_client *at)
|
||||
{
|
||||
return at->buf[at->pos] != '\0';
|
||||
}
|
||||
|
||||
int at_open_stream(struct at_client *at)
|
||||
int at_open_list(struct at_client *at)
|
||||
{
|
||||
skip_whitespace(at);
|
||||
|
||||
/* The stream shall start with '(' open parenthesis */
|
||||
/* The list shall start with '(' open parenthesis */
|
||||
if (at->buf[at->pos] != '(') {
|
||||
return -ENODATA;
|
||||
}
|
||||
|
@ -365,7 +365,7 @@ int at_open_stream(struct at_client *at)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int at_close_stream(struct at_client *at)
|
||||
int at_close_list(struct at_client *at)
|
||||
{
|
||||
skip_whitespace(at);
|
||||
|
||||
|
@ -374,12 +374,12 @@ int at_close_stream(struct at_client *at)
|
|||
}
|
||||
at->pos++;
|
||||
|
||||
next_stream(at);
|
||||
next_list(at);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int at_stream_get_string(struct at_client *at, char *name, uint8_t len)
|
||||
int at_list_get_string(struct at_client *at, char *name, uint8_t len)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
|
@ -409,12 +409,12 @@ int at_stream_get_string(struct at_client *at, char *name, uint8_t len)
|
|||
at->pos++;
|
||||
|
||||
skip_whitespace(at);
|
||||
next_stream(at);
|
||||
next_list(at);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int at_stream_get_range(struct at_client *at, uint32_t *min, uint32_t *max)
|
||||
int at_list_get_range(struct at_client *at, uint32_t *min, uint32_t *max)
|
||||
{
|
||||
uint32_t low, high;
|
||||
int ret;
|
||||
|
@ -441,7 +441,7 @@ out:
|
|||
*min = low;
|
||||
*max = high;
|
||||
|
||||
next_stream(at);
|
||||
next_list(at);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -80,8 +80,8 @@ int at_parse_input(struct at_client *at, struct net_buf *buf);
|
|||
int at_parse_cmd_input(struct at_client *at, struct net_buf *buf,
|
||||
const char *prefix, parse_val_t func);
|
||||
int at_check_byte(struct net_buf *buf, char check_byte);
|
||||
int at_stream_get_range(struct at_client *at, uint32_t *min, uint32_t *max);
|
||||
int at_stream_get_string(struct at_client *at, char *name, uint8_t len);
|
||||
int at_close_stream(struct at_client *at);
|
||||
int at_open_stream(struct at_client *at);
|
||||
int at_has_next_stream(struct at_client *at);
|
||||
int at_list_get_range(struct at_client *at, uint32_t *min, uint32_t *max);
|
||||
int at_list_get_string(struct at_client *at, char *name, uint8_t len);
|
||||
int at_close_list(struct at_client *at);
|
||||
int at_open_list(struct at_client *at);
|
||||
int at_has_next_list(struct at_client *at);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue