diff options
| author | Alexander Couzens | 2023-10-01 16:29:49 +0000 |
|---|---|---|
| committer | Alexander Couzens | 2024-03-09 20:15:21 +0000 |
| commit | 9ffd0e2f8c06e23b8363145c2d7b792f0951550b (patch) | |
| tree | 4650242263ef2f7ba94315d15b503c3e0a1d16a1 | |
| parent | a4fbdcc6b7dca4e04b50e0c62beb03e29ab32c62 (diff) | |
commands: make `struct blob_buf status` public
status is already used by other files as public variable.
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
| -rw-r--r-- | commands-nas.c | 1 | ||||
| -rw-r--r-- | commands.c | 2 | ||||
| -rw-r--r-- | commands.h | 3 |
3 files changed, 5 insertions, 1 deletions
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; @@ -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) @@ -23,6 +23,8 @@ #define __UQMI_COMMANDS_H #include <stdbool.h> +#include <libubox/blob.h> + #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); |