diff options
author | Martin Szulecki | 2014-12-10 14:02:22 +0100 |
---|---|---|
committer | Martin Szulecki | 2014-12-10 14:02:22 +0100 |
commit | ee73b89ed43ba54de92bef61537bd6661167788f (patch) | |
tree | 74a896e0fe8916f45dcaaf48c65da2ff72271c01 | |
parent | ea7345957a75ab6d34b044738272c62875011094 (diff) | |
download | libimobiledevice-ee73b89ed43ba54de92bef61537bd6661167788f.tar.gz libimobiledevice-ee73b89ed43ba54de92bef61537bd6661167788f.tar.bz2 |
lockdown: Add new LOCKDOWN_E_SERVICE_LIMIT error to detect service limit states
-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; } |