diff options
author | Martin Szulecki | 2010-01-13 02:57:48 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-13 02:57:48 +0100 |
commit | 9eb4cc0593b20a84887753785041d17fec64b375 (patch) | |
tree | 7ea6f54200896abfbb1123a713cdb79c797907c7 | |
parent | 7cd9a554db66914735e6430f6c5b6362b8c5460a (diff) | |
download | ifuse-9eb4cc0593b20a84887753785041d17fec64b375.tar.gz ifuse-9eb4cc0593b20a84887753785041d17fec64b375.tar.bz2 |
Port to latest libiphone 0.9.6 API
-rw-r--r-- | src/ifuse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ifuse.c b/src/ifuse.c index f0303f5..6243e3f 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -368,7 +368,7 @@ static int ifuse_release(const char *path, struct fuse_file_info *fi) void *ifuse_init_with_service(struct fuse_conn_info *conn, const char *service_name) { - int port = 0; + uint16_t port = 0; afc_client_t afc = NULL; conn->async_read = 0; @@ -628,7 +628,6 @@ static int ifuse_opt_proc(void *data, const char *arg, int key, struct fuse_args res = 0; break; case KEY_DEBUG: - iphone_set_debug_mask(DBGMASK_ALL); iphone_set_debug_level(1); res = 0; break; @@ -700,7 +699,7 @@ int main(int argc, char *argv[]) return 0; } - if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &control)) { + if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &control, "ifuse")) { iphone_device_free(phone); fprintf(stderr, "Failed to connect to lockdownd service on the device.\n"); fprintf(stderr, "Try again. If it still fails try rebooting your device.\n"); |