forked from openwrt-set/uqmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands-wms.h
41 lines (38 loc) · 2.09 KB
/
commands-wms.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* uqmi -- tiny QMI support implementation
*
* Copyright (C) 2014-2015 Felix Fietkau <[email protected]>
*
* 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_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 <id>: Delete SMS message at index <id>\n" \
" --get-message <id>: Get SMS message at index <id>\n" \
" --get-raw-message <id>: Get SMS raw message contents at index <id>\n" \
" --send-message <data>: Send SMS message (use options below)\n" \
" --send-message-smsc <nr>: SMSC number\n" \
" --send-message-target <nr>: Destination number (required)\n" \
" --send-message-flash: Send as Flash SMS\n" \