aboutsummaryrefslogtreecommitdiffstats
path: root/src/libqmi-glib/qmi-errors.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-06-06 20:10:05 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-07-07 19:18:30 +0200
commit769349deb1a103fcfc0730861d05622c20b776f7 (patch)
tree986fe0a367cb90b0f2b1b4a5de4f6e8a7788547f /src/libqmi-glib/qmi-errors.h
parent5aef8ba5216f41f183091e68a7692211e9fded64 (diff)
downloadexternal_libqmi-769349deb1a103fcfc0730861d05622c20b776f7.zip
external_libqmi-769349deb1a103fcfc0730861d05622c20b776f7.tar.gz
external_libqmi-769349deb1a103fcfc0730861d05622c20b776f7.tar.bz2
libqmi-glib,mbim: rework transaction management on mbim backend
The lifecycle for transactions going through the MBIM backend is a bit different w.r.t. the default one: * Given that libmbim has its own timeout management for the commands sent, we will rely on it instead of having our own. This means that we always assume that mbim_command() finishes, as it should be. * Instead of using the response QMI message to match a transaction, when using MBIM we use the transaction key given in the context passed to mbim_command() and by doing this we make sure that the transaction is always removed from the tracking table, regardless of whether the QMI message inside matched or not.
Diffstat (limited to 'src/libqmi-glib/qmi-errors.h')
-rw-r--r--src/libqmi-glib/qmi-errors.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/libqmi-glib/qmi-errors.h b/src/libqmi-glib/qmi-errors.h
index ed94687..9553330 100644
--- a/src/libqmi-glib/qmi-errors.h
+++ b/src/libqmi-glib/qmi-errors.h
@@ -50,19 +50,21 @@
* @QMI_CORE_ERROR_TLV_TOO_LONG: TLV is too long.
* @QMI_CORE_ERROR_UNSUPPORTED: Not supported.
* @QMI_CORE_ERROR_TLV_EMPTY: TLV has no value.
+ * @QMI_CORE_ERROR_UNEXPECTED_MESSAGE: QMI message is unexpected.
*
* Common errors that may be reported by libqmi-glib.
*/
typedef enum { /*< underscore_name=qmi_core_error >*/
- QMI_CORE_ERROR_FAILED = 0, /*< nick=Failed >*/
- QMI_CORE_ERROR_WRONG_STATE = 1, /*< nick=WrongState >*/
- QMI_CORE_ERROR_TIMEOUT = 2, /*< nick=Timeout >*/
- QMI_CORE_ERROR_INVALID_ARGS = 3, /*< nick=InvalidArgs >*/
- QMI_CORE_ERROR_INVALID_MESSAGE = 4, /*< nick=InvalidMessage >*/
- QMI_CORE_ERROR_TLV_NOT_FOUND = 5, /*< nick=TlvNotFound >*/
- QMI_CORE_ERROR_TLV_TOO_LONG = 6, /*< nick=TlvTooLong >*/
- QMI_CORE_ERROR_UNSUPPORTED = 7, /*< nick=Unsupported >*/
- QMI_CORE_ERROR_TLV_EMPTY = 8, /*< nick=TlvEmpty >*/
+ QMI_CORE_ERROR_FAILED = 0, /*< nick=Failed >*/
+ QMI_CORE_ERROR_WRONG_STATE = 1, /*< nick=WrongState >*/
+ QMI_CORE_ERROR_TIMEOUT = 2, /*< nick=Timeout >*/
+ QMI_CORE_ERROR_INVALID_ARGS = 3, /*< nick=InvalidArgs >*/
+ QMI_CORE_ERROR_INVALID_MESSAGE = 4, /*< nick=InvalidMessage >*/
+ QMI_CORE_ERROR_TLV_NOT_FOUND = 5, /*< nick=TlvNotFound >*/
+ QMI_CORE_ERROR_TLV_TOO_LONG = 6, /*< nick=TlvTooLong >*/
+ QMI_CORE_ERROR_UNSUPPORTED = 7, /*< nick=Unsupported >*/
+ QMI_CORE_ERROR_TLV_EMPTY = 8, /*< nick=TlvEmpty >*/
+ QMI_CORE_ERROR_UNEXPECTED_MESSAGE = 9, /*< nick=UnexpectedMessage >*/
} QmiCoreError;
/**