summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-09-04 12:19:59 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-09-06 19:53:02 +0200
commit550067b38192ab0cccfabce516e3e9c1ddd53785 (patch)
tree3e41ea820840a93b90813c658c99d8ed1ea619aa
parent279dcc8f09d2c63509a341d43e8aef943cbb25d5 (diff)
wms: implement "Get Routes" request/response
-rw-r--r--data/qmi-service-wms.json38
-rw-r--r--libqmi-glib/qmi-enums-wms.h4
2 files changed, 40 insertions, 2 deletions
diff --git a/data/qmi-service-wms.json b/data/qmi-service-wms.json
index 39c2719..c38a195 100644
--- a/data/qmi-service-wms.json
+++ b/data/qmi-service-wms.json
@@ -439,6 +439,42 @@
"type" : "TLV",
"format" : "guint8",
"public-format" : "QmiWmsTransferIndication" } ],
- "output" : [ { "common-ref" : "Operation Result" } ] }
+ "output" : [ { "common-ref" : "Operation Result" } ] },
+
+ // *********************************************************************************
+ { "name" : "Get Routes",
+ "type" : "Message",
+ "service" : "WMS",
+ "id" : "0x0033",
+ "version" : "1.1",
+ "output" : [ { "common-ref" : "Operation Result" },
+ { "name" : "Route List",
+ "id" : "0x01",
+ "mandatory" : "yes",
+ "type" : "TLV",
+ "format" : "array",
+ "array-size" : { "format" : "guint16" },
+ "array-element" : { "name" : "Element",
+ "format" : "struct",
+ "contents" : [ { "name" : "Message Type",
+ "format" : "guint8",
+ "public-format" : "QmiWmsMessageType" },
+ { "name" : "Message Class",
+ "format" : "guint8",
+ "public-format" : "QmiWmsMessageClass" },
+ { "name" : "Storage",
+ "format" : "guint8",
+ "public-format" : "QmiWmsStorageType" },
+ { "name" : "Receipt Action",
+ "format" : "guint8",
+ "public-format" : "QmiWmsReceiptAction" } ] },
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Transfer Status Report",
+ "id" : "0x10",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "guint8",
+ "public-format" : "QmiWmsTransferIndication",
+ "prerequisites" : [ { "common-ref" : "Success" } ] } ] }
]
diff --git a/libqmi-glib/qmi-enums-wms.h b/libqmi-glib/qmi-enums-wms.h
index ab2bbf2..6ab1570 100644
--- a/libqmi-glib/qmi-enums-wms.h
+++ b/libqmi-glib/qmi-enums-wms.h
@@ -392,6 +392,7 @@ typedef enum {
* @QMI_WMS_RECEIPT_ACTION_STORE_AND_NOTIFY: Store and notify to client.
* @QMI_WMS_RECEIPT_ACTION_TRANSFER_ONLY: Notify to client, which should send back ACK.
* @QMI_WMS_RECEIPT_ACTION_TRANSFER_AND_ACK: Notify to client and send back ACK.
+ * @QMI_WMS_RECEIPT_ACTION_UNKNOWN: Unknown action.
*
* Action to perform when a message is received.
*/
@@ -399,7 +400,8 @@ typedef enum {
QMI_WMS_RECEIPT_ACTION_DISCARD = 0x00,
QMI_WMS_RECEIPT_ACTION_STORE_AND_NOTIFY = 0x01,
QMI_WMS_RECEIPT_ACTION_TRANSFER_ONLY = 0x02,
- QMI_WMS_RECEIPT_ACTION_TRANSFER_AND_ACK = 0x03
+ QMI_WMS_RECEIPT_ACTION_TRANSFER_AND_ACK = 0x03,
+ QMI_WMS_RECEIPT_ACTION_UNKNOWN = 0xFF
} QmiWmsReceiptAction;
/**