X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuqmi.git;a=blobdiff_plain;f=commands-wms.h;h=e28b97bcd895963c27ff36efd61b907f7464394d;hp=cc4918fcb81f76ba324d708848c060a1db4fdae0;hb=8ceeab690d8c6f1e3afbd4bcaee7bc2ba3fbe165;hpb=c60216e121688a06eaadc7aebb59d4358a4e3bb3 diff --git a/commands-wms.h b/commands-wms.h index cc4918f..e28b97b 100644 --- a/commands-wms.h +++ b/commands-wms.h @@ -1,10 +1,41 @@ +/* + * uqmi -- tiny QMI support implementation + * + * Copyright (C) 2014-2015 Felix Fietkau + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + */ + #define __uqmi_wms_commands \ __uqmi_command(wms_list_messages, list-messages, no, QMI_SERVICE_WMS), \ + __uqmi_command(wms_delete_message, delete-message, required, QMI_SERVICE_WMS), \ __uqmi_command(wms_get_message, get-message, required, QMI_SERVICE_WMS), \ - __uqmi_command(wms_get_raw_message, get-raw-message, required, QMI_SERVICE_WMS) \ + __uqmi_command(wms_get_raw_message, get-raw-message, required, QMI_SERVICE_WMS), \ + __uqmi_command(wms_send_message_smsc, send-message-smsc, required, CMD_TYPE_OPTION), \ + __uqmi_command(wms_send_message_target, send-message-target, required, CMD_TYPE_OPTION), \ + __uqmi_command(wms_send_message_flash, send-message-flash, no, CMD_TYPE_OPTION), \ + __uqmi_command(wms_send_message, send-message, required, QMI_SERVICE_WMS) #define wms_helptext \ " --list-messages: List SMS messages\n" \ + " --delete-message : Delete SMS message at index \n" \ " --get-message : Get SMS message at index \n" \ " --get-raw-message : Get SMS raw message contents at index \n" \ + " --send-message : Send SMS message (use options below)\n" \ + " --send-message-smsc : SMSC number\n" \ + " --send-message-target : Destination number (required)\n" \ + " --send-message-flash: Send as Flash SMS\n" \