summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-06-27 18:19:23 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-03 16:08:57 +0200
commit72000ab9750646a0efab6d1314aba2ceb4ac1f8a (patch)
treeebff69a018d63bf7083e258a30ff15b20d8d16a1
parentd6f104d77200b5ce9feee738f426d56c1561c921 (diff)
dms: implement "Get PIN Status" request/response
-rw-r--r--data/qmi-service-dms.json33
-rw-r--r--src/qmi-enums-dms.h28
2 files changed, 60 insertions, 1 deletions
diff --git a/data/qmi-service-dms.json b/data/qmi-service-dms.json
index 9b44c85..2f580a1 100644
--- a/data/qmi-service-dms.json
+++ b/data/qmi-service-dms.json
@@ -246,5 +246,36 @@
"format" : "guint8" },
{ "name" : "Unblock Retries Left",
"format" : "guint8" } ],
- "prerequisites": [ { "common-ref" : "No Success" } ] } ] }
+ "prerequisites": [ { "common-ref" : "No Success" } ] } ] },
+
+ // *********************************************************************************
+ { "name" : "Get PIN Status",
+ "type" : "Message",
+ "service" : "DMS",
+ "id" : "0x002B",
+ "output" : [ { "common-ref" : "Operation Result" },
+ { "name" : "PIN1 Status",
+ "id" : "0x11",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "struct",
+ "contents" : [ { "name" : "Current Status",
+ "format" : "guint8",
+ "public-format" : "QmiDmsPinStatus" },
+ { "name" : "Verify Retries Left",
+ "format" : "guint8" },
+ { "name" : "Unblock Retries Left",
+ "format" : "guint8" } ] },
+ { "name" : "PIN2 Status",
+ "id" : "0x12",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "struct",
+ "contents" : [ { "name" : "Current Status",
+ "format" : "guint8",
+ "public-format" : "QmiDmsPinStatus" },
+ { "name" : "Verify Retries Left",
+ "format" : "guint8" },
+ { "name" : "Unblock Retries Left",
+ "format" : "guint8" } ] } ] }
]
diff --git a/src/qmi-enums-dms.h b/src/qmi-enums-dms.h
index ac523b0..790c52e 100644
--- a/src/qmi-enums-dms.h
+++ b/src/qmi-enums-dms.h
@@ -121,4 +121,32 @@ typedef enum {
QMI_DMS_PIN_ID_PIN2 = 2
} QmiDmsPinId;
+
+/*****************************************************************************/
+/* Helper enums for the 'QMI DMS Get PIN Status' message */
+
+/**
+ * QmiDmsPinStatus:
+ * @QMI_DMS_PIN_STATUS_NOT_INITIALIZED: Not initialized.
+ * @QMI_DMS_PIN_STATUS_ENABLED_NOT_VERIFIED: Enabled, not verified.
+ * @QMI_DMS_PIN_STATUS_ENABLED_VERIFIED: Enabled, verified.
+ * @QMI_DMS_PIN_STATUS_DISABLED: Disabled.
+ * @QMI_DMS_PIN_STATUS_BLOCKED: Blocked.
+ * @QMI_DMS_PIN_STATUS_PERMANENTLY_BLOCKED: Permanently Blocked.
+ * @QMI_DMS_PIN_STATUS_UNBLOCKED: Unblocked.
+ * @QMI_DMS_PIN_STATUS_CHANGED: Changed.
+ *
+ * The PIN status.
+ */
+typedef enum {
+ QMI_DMS_PIN_STATUS_NOT_INITIALIZED = 0,
+ QMI_DMS_PIN_STATUS_ENABLED_NOT_VERIFIED = 1,
+ QMI_DMS_PIN_STATUS_ENABLED_VERIFIED = 2,
+ QMI_DMS_PIN_STATUS_DISABLED = 3,
+ QMI_DMS_PIN_STATUS_BLOCKED = 4,
+ QMI_DMS_PIN_STATUS_PERMANENTLY_BLOCKED = 5,
+ QMI_DMS_PIN_STATUS_UNBLOCKED = 6,
+ QMI_DMS_PIN_STATUS_CHANGED = 7,
+} QmiDmsPinStatus;
+
#endif /* _LIBQMI_GLIB_QMI_ENUMS_DMS_H_ */