diff options
-rw-r--r-- | include/libimobiledevice/lockdown.h | 1 | ||||
-rw-r--r-- | src/lockdown.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h index beb07d3..24830ff 100644 --- a/include/libimobiledevice/lockdown.h +++ b/include/libimobiledevice/lockdown.h @@ -54,6 +54,7 @@ typedef enum { LOCKDOWN_E_INVALID_ACTIVATION_RECORD = -18, LOCKDOWN_E_PAIRING_DIALOG_PENDING = -20, LOCKDOWN_E_USER_DENIED_PAIRING = -21, + LOCKDOWN_E_SERVICE_LIMIT = -22, LOCKDOWN_E_UNKNOWN_ERROR = -256 } lockdownd_error_t; diff --git a/src/lockdown.c b/src/lockdown.c index 20c3cb6..29dde02 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -1267,6 +1267,8 @@ static lockdownd_error_t lockdownd_do_start_service(lockdownd_client_t client, c plist_get_string_val(error_node, &error); if (!strcmp(error, "InvalidService")) { ret = LOCKDOWN_E_INVALID_SERVICE; + } else if (!strcmp(error, "ServiceLimit")) { + ret = LOCKDOWN_E_SERVICE_LIMIT; } else if (!strcmp(error, "NoRunningSession")) { ret = LOCKDOWN_E_NO_RUNNING_SESSION; } |