move qmi_get_error_str to into utils.c
[project/uqmi.git] / commands.h
index 28823f35ee2c355c61f6e4dfcb7e3000455cd9e2..08aaa8e33f54d47c269323f0241430dc453566d6 100644 (file)
@@ -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"
@@ -55,6 +57,7 @@ struct uqmi_cmd {
 
 #define __uqmi_commands \
        __uqmi_command(version, get-versions, no, QMI_SERVICE_CTL), \
+       __uqmi_command(sync, sync, no, QMI_SERVICE_CTL), \
        __uqmi_command(set_client_id, set-client-id, required, CMD_TYPE_OPTION), \
        __uqmi_command(get_client_id, get-client-id, required, QMI_SERVICE_CTL), \
        __uqmi_command(ctl_set_data_format, set-data-format, required, QMI_SERVICE_CTL), \
@@ -74,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);