summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/libimobiledevice/lockdown.h1
-rw-r--r--src/lockdown.c2
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 {
54 LOCKDOWN_E_INVALID_ACTIVATION_RECORD = -18, 54 LOCKDOWN_E_INVALID_ACTIVATION_RECORD = -18,
55 LOCKDOWN_E_PAIRING_DIALOG_PENDING = -20, 55 LOCKDOWN_E_PAIRING_DIALOG_PENDING = -20,
56 LOCKDOWN_E_USER_DENIED_PAIRING = -21, 56 LOCKDOWN_E_USER_DENIED_PAIRING = -21,
57 LOCKDOWN_E_SERVICE_LIMIT = -22,
57 LOCKDOWN_E_UNKNOWN_ERROR = -256 58 LOCKDOWN_E_UNKNOWN_ERROR = -256
58} lockdownd_error_t; 59} lockdownd_error_t;
59 60
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
1267 plist_get_string_val(error_node, &error); 1267 plist_get_string_val(error_node, &error);
1268 if (!strcmp(error, "InvalidService")) { 1268 if (!strcmp(error, "InvalidService")) {
1269 ret = LOCKDOWN_E_INVALID_SERVICE; 1269 ret = LOCKDOWN_E_INVALID_SERVICE;
1270 } else if (!strcmp(error, "ServiceLimit")) {
1271 ret = LOCKDOWN_E_SERVICE_LIMIT;
1270 } else if (!strcmp(error, "NoRunningSession")) { 1272 } else if (!strcmp(error, "NoRunningSession")) {
1271 ret = LOCKDOWN_E_NO_RUNNING_SESSION; 1273 ret = LOCKDOWN_E_NO_RUNNING_SESSION;
1272 } 1274 }