diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-16 09:13:48 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-16 09:13:48 +0200 |
commit | d5eb8da6afc34c95f120b2e2d13e5f9906ca214c (patch) | |
tree | 1ef8e5c512b637f9c76e862142ac2eca288028f1 | |
parent | 3b206f20c86e7ab9fe919c9f2306badabf1fa194 (diff) | |
download | external_libqmi-d5eb8da6afc34c95f120b2e2d13e5f9906ca214c.zip external_libqmi-d5eb8da6afc34c95f120b2e2d13e5f9906ca214c.tar.gz external_libqmi-d5eb8da6afc34c95f120b2e2d13e5f9906ca214c.tar.bz2 |
dms: implement "UIM Get State" request/response
-rw-r--r-- | data/qmi-service-dms.json | 14 | ||||
-rw-r--r-- | libqmi-glib/qmi-enums-dms.h | 21 |
2 files changed, 35 insertions, 0 deletions
diff --git a/data/qmi-service-dms.json b/data/qmi-service-dms.json index f3e451e..48e2e02 100644 --- a/data/qmi-service-dms.json +++ b/data/qmi-service-dms.json @@ -486,5 +486,19 @@ "mandatory" : "yes", "type" : "TLV", "format" : "string", + "prerequisites": [ { "common-ref" : "Success" } ] } ] }, + + // ********************************************************************************* + { "name" : "UIM Get State", + "type" : "Message", + "service" : "DMS", + "id" : "0x0044", + "output" : [ { "common-ref" : "Operation Result" }, + { "name" : "State", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "guint8", + "public-format" : "QmiDmsUimState", "prerequisites": [ { "common-ref" : "Success" } ] } ] } ] diff --git a/libqmi-glib/qmi-enums-dms.h b/libqmi-glib/qmi-enums-dms.h index 1642a57..812c51f 100644 --- a/libqmi-glib/qmi-enums-dms.h +++ b/libqmi-glib/qmi-enums-dms.h @@ -242,4 +242,25 @@ typedef enum { QMI_DMS_ACTIVATION_STATE_OTASP_COMMITED = 0x0A } QmiDmsActivationState; +/*****************************************************************************/ +/* Helper enums for the 'QMI DMS UIM Get State' message */ + +/** + * QmiDmsUimState: + * @QMI_DMS_UIM_STATE_INITIALIZATION_COMPLETED: UIM initialization completed. + * @QMI_DMS_UIM_STATE_LOCKED_OR_FAILED: UIM is locked or failed. + * @QMI_DMS_UIM_STATE_NOT_PRESENT: No UIM in the device. + * @QMI_DMS_UIM_STATE_RESERVED: Reserved, unknown. + * @QMI_DMS_UIM_STATE_UNKNOWN: UIM state currently unavailable. + * + * State of the UIM. + */ +typedef enum { + QMI_DMS_UIM_STATE_INITIALIZATION_COMPLETED = 0x00, + QMI_DMS_UIM_STATE_LOCKED_OR_FAILED = 0x01, + QMI_DMS_UIM_STATE_NOT_PRESENT = 0x02, + QMI_DMS_UIM_STATE_RESERVED = 0x03, + QMI_DMS_UIM_STATE_UNKNOWN = 0xFF +} QmiDmsUimState; + #endif /* _LIBQMI_GLIB_QMI_ENUMS_DMS_H_ */ |