bluetooth: shell: completely eliminate the dependency on ctx_shell
This commit removes the `ctx_shell` declaration from the Bluetooth shell, marking a milestone in eliminating this dependency. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
parent
2ea23cec7c
commit
bd9249457a
2 changed files with 0 additions and 4 deletions
|
@ -45,7 +45,6 @@
|
||||||
static bool no_settings_load;
|
static bool no_settings_load;
|
||||||
|
|
||||||
uint8_t selected_id = BT_ID_DEFAULT;
|
uint8_t selected_id = BT_ID_DEFAULT;
|
||||||
const struct shell *ctx_shell;
|
|
||||||
|
|
||||||
#if defined(CONFIG_BT_CONN)
|
#if defined(CONFIG_BT_CONN)
|
||||||
struct bt_conn *default_conn;
|
struct bt_conn *default_conn;
|
||||||
|
@ -1310,8 +1309,6 @@ static int cmd_init(const struct shell *sh, size_t argc, char *argv[])
|
||||||
int err;
|
int err;
|
||||||
bool sync = false;
|
bool sync = false;
|
||||||
|
|
||||||
ctx_shell = sh;
|
|
||||||
|
|
||||||
for (size_t argn = 1; argn < argc; argn++) {
|
for (size_t argn = 1; argn < argc; argn++) {
|
||||||
const char *arg = argv[argn];
|
const char *arg = argv[argn];
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#include <zephyr/bluetooth/bluetooth.h>
|
#include <zephyr/bluetooth/bluetooth.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
extern const struct shell *ctx_shell;
|
|
||||||
extern struct bt_conn *default_conn;
|
extern struct bt_conn *default_conn;
|
||||||
|
|
||||||
bool passes_scan_filter(const struct bt_le_scan_recv_info *info, const struct net_buf_simple *buf);
|
bool passes_scan_filter(const struct bt_le_scan_recv_info *info, const struct net_buf_simple *buf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue