X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=commands.h;h=7560dbdbdeac0dd44812d6ce8b77dfe0bdeb33d4;hb=d7a56cad6d6ef3c2a5602fc604e31999eb9e78fa;hp=7854eb549e50564e5423bd809c538a5609312f3d;hpb=ba83df61a02c582edd655f046d7f714fb7a7b556;p=oweals%2Fuqmi.git diff --git a/commands.h b/commands.h index 7854eb5..7560dbd 100644 --- a/commands.h +++ b/commands.h @@ -5,6 +5,7 @@ #include "commands-wds.h" #include "commands-dms.h" #include "commands-nas.h" +#include "commands-wms.h" enum qmi_cmd_result { QMI_CMD_DONE, @@ -35,7 +36,8 @@ struct uqmi_cmd { __uqmi_command(get_client_id, get-client-id, required, QMI_SERVICE_CTL), \ __uqmi_wds_commands, \ __uqmi_dms_commands, \ - __uqmi_nas_commands + __uqmi_nas_commands, \ + __uqmi_wms_commands #define __uqmi_command(_name, _optname, _arg, _option) __UQMI_COMMAND_##_name enum uqmi_command { @@ -44,8 +46,10 @@ enum uqmi_command { }; #undef __uqmi_command +extern bool single_line; extern const struct uqmi_cmd_handler uqmi_cmd_handler[]; void uqmi_add_command(char *arg, int longidx); -void uqmi_run_commands(struct qmi_dev *qmi); +bool uqmi_run_commands(struct qmi_dev *qmi); +int uqmi_add_error(const char *msg); #endif