X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=commands.h;h=b54b34ff80023e48bc6c3a5b36093dea7baa25e1;hb=b93aa72c4aa4fafe0d2a1e9773773122fba21618;hp=2b1562aa7545d2a91688ce62cbab6761cabebcbb;hpb=b29e4d756726e9685ad812210c5f2e5298100140;p=project%2Fuqmi.git diff --git a/commands.h b/commands.h index 2b1562a..b54b34f 100644 --- a/commands.h +++ b/commands.h @@ -4,6 +4,8 @@ #include #include "commands-wds.h" #include "commands-dms.h" +#include "commands-nas.h" +#include "commands-wms.h" enum qmi_cmd_result { QMI_CMD_DONE, @@ -33,7 +35,9 @@ struct uqmi_cmd { __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_wds_commands, \ - __uqmi_dms_commands + __uqmi_dms_commands, \ + __uqmi_nas_commands, \ + __uqmi_wms_commands #define __uqmi_command(_name, _optname, _arg, _option) __UQMI_COMMAND_##_name enum uqmi_command { @@ -42,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); +void uqmi_add_error(const char *msg); #endif