summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-12-10 14:02:22 +0100
committerGravatar Martin Szulecki2014-12-10 14:02:22 +0100
commitee73b89ed43ba54de92bef61537bd6661167788f (patch)
tree74a896e0fe8916f45dcaaf48c65da2ff72271c01 /src
parentea7345957a75ab6d34b044738272c62875011094 (diff)
downloadlibimobiledevice-ee73b89ed43ba54de92bef61537bd6661167788f.tar.gz
libimobiledevice-ee73b89ed43ba54de92bef61537bd6661167788f.tar.bz2
lockdown: Add new LOCKDOWN_E_SERVICE_LIMIT error to detect service limit states
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c2
1 files changed, 2 insertions, 0 deletions
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;
}