diff options
author | Jonathan Beck | 2009-01-09 19:24:27 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-01-09 19:24:27 +0100 |
commit | f3c08cfad0833d55a69ca3d54d9920a3cb558328 (patch) | |
tree | 1cd946385a22ce2da3772df290ce71a4486219f2 /dev/msyncclient.c | |
parent | bc2f3964851dff088dd47a08997e6c6730258834 (diff) | |
download | libimobiledevice-f3c08cfad0833d55a69ca3d54d9920a3cb558328.tar.gz libimobiledevice-f3c08cfad0833d55a69ca3d54d9920a3cb558328.tar.bz2 |
Change msync recv and send functions to only deal with abstract plists.
Start full address book dump function.
Update to new logging mechanism.
Diffstat (limited to 'dev/msyncclient.c')
-rw-r--r-- | dev/msyncclient.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/dev/msyncclient.c b/dev/msyncclient.c index 55d07c4..a6764b4 100644 --- a/dev/msyncclient.c +++ b/dev/msyncclient.c @@ -29,6 +29,7 @@ #include <libiphone/libiphone.h> #include "../src/MobileSync.h" +#include "../src/utils.h" int main(int argc, char *argv[]) @@ -37,11 +38,9 @@ int main(int argc, char *argv[]) iphone_lckd_client_t control = NULL; iphone_device_t phone = NULL; - if (argc > 1 && !strcasecmp(argv[1], "--debug")) { - iphone_set_debug(1); - } else { - iphone_set_debug(0); - } + if (argc > 1 && !strcasecmp(argv[1], "--debug")) + iphone_set_debug_mask(DBGMASK_MOBILESYNC); + if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { printf("No iPhone found, is it plugged in?\n"); @@ -58,8 +57,10 @@ int main(int argc, char *argv[]) if (port) { iphone_msync_client_t msync = NULL; iphone_msync_new_client(phone, 3432, port, &msync); - if (msync) + if (msync) { + iphone_msync_get_all_contacts(msync); iphone_msync_free_client(msync); + } } else { printf("Start service failure.\n"); } |