Fix improper length of sms message stored in User Data Length field
[project/uqmi.git] / commands.h
index b54b34f..312e897 100644 (file)
@@ -6,6 +6,7 @@
 #include "commands-dms.h"
 #include "commands-nas.h"
 #include "commands-wms.h"
+#include "commands-wda.h"
 
 enum qmi_cmd_result {
        QMI_CMD_DONE,
@@ -34,10 +35,12 @@ struct uqmi_cmd {
        __uqmi_command(version, get-versions, 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), \
        __uqmi_wds_commands, \
        __uqmi_dms_commands, \
        __uqmi_nas_commands, \
-       __uqmi_wms_commands
+       __uqmi_wms_commands, \
+       __uqmi_wda_commands
 
 #define __uqmi_command(_name, _optname, _arg, _option) __UQMI_COMMAND_##_name
 enum uqmi_command {
@@ -50,6 +53,6 @@ extern bool single_line;
 extern const struct uqmi_cmd_handler uqmi_cmd_handler[];
 void uqmi_add_command(char *arg, int longidx);
 bool uqmi_run_commands(struct qmi_dev *qmi);
-void uqmi_add_error(const char *msg);
+int uqmi_add_error(const char *msg);
 
 #endif