From e0bcf0a3c4cd6b39eb4ee7d1ed368346509b8ff4 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 26 Oct 2023 11:28:41 +0000 Subject: 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. --- include/ModemManager-errors.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ModemManager-errors.h') diff --git a/include/ModemManager-errors.h b/include/ModemManager-errors.h index 7c03fb6a..fa622d17 100644 --- a/include/ModemManager-errors.h +++ b/include/ModemManager-errors.h @@ -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; /** -- cgit v1.2.3-70-g09d2