summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-13 15:17:33 +0100
committerGravatar Martin Szulecki2010-01-13 15:17:33 +0100
commit68db8707e3b24fe26615089656185a80c0895bf8 (patch)
treeb1e2e43e16e816e390a653f919a1945982d52170 /src
parent0e0bc0b5c36718849c45ea775471027e6a11a34b (diff)
downloadsbmanager-68db8707e3b24fe26615089656185a80c0895bf8.tar.gz
sbmanager-68db8707e3b24fe26615089656185a80c0895bf8.tar.bz2
Port to changes in libiphone 0.9.6 API
Diffstat (limited to 'src')
-rw-r--r--src/sbmanager.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c
index a3f649b..e063eff 100644
--- a/src/sbmanager.c
+++ b/src/sbmanager.c
@@ -282,14 +282,14 @@ static sbservices_client_t sbs_new(char *uuid)
sbservices_client_t sbc = NULL;
iphone_device_t phone = NULL;
lockdownd_client_t client = NULL;
- int port = 0;
+ uint16_t port = 0;
if (IPHONE_E_SUCCESS != iphone_device_new(&phone, uuid)) {
fprintf(stderr, "No iPhone found, is it plugged in?\n");
return sbc;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) {
+ if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "sbmanager")) {
fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
goto leave_cleanup;
}
@@ -422,7 +422,7 @@ static guint battery_init(SBManagerApp *app)
goto leave_cleanup;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) {
+ if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "sbmanager")) {
fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
goto leave_cleanup;
}
@@ -471,7 +471,7 @@ static gboolean battery_update_cb(gpointer data)
goto leave_cleanup;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) {
+ if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "sbmanager")) {
fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
goto leave_cleanup;
}
@@ -508,7 +508,7 @@ static gboolean get_device_info(SBManagerApp *app)
goto leave_cleanup;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) {
+ if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "sbmanager")) {
fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
goto leave_cleanup;
}
@@ -1448,7 +1448,6 @@ int main(int argc, char **argv)
/* parse cmdline args */
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {
- iphone_set_debug_mask(DBGMASK_ALL);
iphone_set_debug_level(1);
continue;
} else if (!strcmp(argv[i], "-D") || !strcmp(argv[i], "--debug-app")) {