From f3c08cfad0833d55a69ca3d54d9920a3cb558328 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Fri, 9 Jan 2009 19:24:27 +0100 Subject: Change msync recv and send functions to only deal with abstract plists. Start full address book dump function. Update to new logging mechanism. --- dev/msyncclient.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'dev') 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 #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"); } -- cgit v1.1-32-gdbae