From 9ffd0e2f8c06e23b8363145c2d7b792f0951550b Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 1 Oct 2023 18:29:49 +0200 Subject: [PATCH] commands: make `struct blob_buf status` public status is already used by other files as public variable. Signed-off-by: Alexander Couzens --- commands-nas.c | 1 + commands.c | 2 +- commands.h | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/commands-nas.c b/commands-nas.c index 9c0a626..148bc7c 100644 --- a/commands-nas.c +++ b/commands-nas.c @@ -20,6 +20,7 @@ */ #include "qmi-message.h" +#include "commands.h" static struct qmi_nas_get_tx_rx_info_request tx_rx_req; static struct qmi_nas_set_system_selection_preference_request sel_req; diff --git a/commands.c b/commands.c index 8e9810d..7ac67b4 100644 --- a/commands.c +++ b/commands.c @@ -31,7 +31,7 @@ #include "uqmi.h" #include "commands.h" -static struct blob_buf status; +struct blob_buf status; bool single_line = false; static void no_cb(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg) diff --git a/commands.h b/commands.h index f409ec4..08aaa8e 100644 --- a/commands.h +++ b/commands.h @@ -23,6 +23,8 @@ #define __UQMI_COMMANDS_H #include +#include + #include "commands-wds.h" #include "commands-dms.h" #include "commands-nas.h" @@ -75,6 +77,7 @@ enum uqmi_command { extern bool single_line; extern const struct uqmi_cmd_handler uqmi_cmd_handler[]; +extern struct blob_buf status; void uqmi_add_command(char *arg, int longidx); bool uqmi_run_commands(struct qmi_dev *qmi); int uqmi_add_error(const char *msg); -- 2.30.2