From 550067b38192ab0cccfabce516e3e9c1ddd53785 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 4 Sep 2012 12:19:59 +0200 Subject: wms: implement "Get Routes" request/response --- data/qmi-service-wms.json | 38 +++++++++++++++++++++++++++++++++++++- libqmi-glib/qmi-enums-wms.h | 4 +++- 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; /** -- cgit v1.2.3