aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2023-10-25 11:25:45 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2023-10-26 10:56:31 +0000
commit8115b651dea850c29550518968042410e3688c64 (patch)
treec668591164094c456d7d5f38aff38a0a136c7018
parent575cdb74110e7e2a4cc3050ddd30230044f6ebd0 (diff)
api,errors: add generic MM_CORE_ERROR_PROTOCOL error
Will be used to report control protocol failures detected in the communication with the device (e.g. malformed QMI or MBIM messages, and so on).
-rw-r--r--include/ModemManager-errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ModemManager-errors.h b/include/ModemManager-errors.h
index 3fcab895..7c03fb6a 100644
--- a/include/ModemManager-errors.h
+++ b/include/ModemManager-errors.h
@@ -104,6 +104,7 @@
* @MM_CORE_ERROR_WRONG_SIM_STATE: Operation cannot be executed in the current SIM state. Since 1.20.
* @MM_CORE_ERROR_RESET_AND_RETRY: Operation cannot yet be performed, reset the retry count and retry later. Since 1.22.
* @MM_CORE_ERROR_TIMEOUT: Operation timed out. Since 1.24.
+ * @MM_CORE_ERROR_PROTOCOL: Operation failed due to an underlying control protocol error. Since 1.24.
*
* Common errors that may be reported by ModemManager.
*
@@ -127,6 +128,7 @@ typedef enum { /*< underscore_name=mm_core_error >*/
MM_CORE_ERROR_WRONG_SIM_STATE = 14, /*< nick=WrongSimState >*/
MM_CORE_ERROR_RESET_AND_RETRY = 15, /*< nick=ResetRetry >*/
MM_CORE_ERROR_TIMEOUT = 16, /*< nick=Timeout >*/
+ MM_CORE_ERROR_PROTOCOL = 17, /*< nick=Protocol >*/
} MMCoreError;
/**