api,errors: add generic MM_CORE_ERROR_THROTTLED error

Will be used to report operations that are not run as they have been
attempted too many times already.

Modems will usually report this kind of error e.g. when attempting to
connect with the same invalid APN too many times. The modem at some
point decides that it won't attempt the APN connection with the
network any more, so it returns this error to the caller right away.
This commit is contained in:
Aleksander Morgado
2023-10-26 12:35:43 +00:00
parent 8115b651de
commit e0bcf0a3c4
+2
View File
@@ -105,6 +105,7 @@
* @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.
* @MM_CORE_ERROR_THROTTLED: Operation was attempted too many times. Since 1.24.
*
* Common errors that may be reported by ModemManager.
*
@@ -129,6 +130,7 @@ typedef enum { /*< underscore_name=mm_core_error >*/
MM_CORE_ERROR_RESET_AND_RETRY = 15, /*< nick=ResetRetry >*/
MM_CORE_ERROR_TIMEOUT = 16, /*< nick=Timeout >*/
MM_CORE_ERROR_PROTOCOL = 17, /*< nick=Protocol >*/
MM_CORE_ERROR_THROTTLED = 18, /*< nick=Throttled >*/
} MMCoreError;
/**