diff options
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/afccheck.c | 2 | ||||
| -rw-r--r-- | dev/iphoneclient.c | 2 | ||||
| -rw-r--r-- | dev/iphoneenterrecovery.c | 2 | ||||
| -rw-r--r-- | dev/lckdclient.c | 2 | ||||
| -rwxr-xr-x | dev/msync.py | 26 | ||||
| -rw-r--r-- | dev/msyncclient.c | 2 |
6 files changed, 19 insertions, 17 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c index 88935a0..00c0f52 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c | |||
| @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) | |||
| 109 | return 1; | 109 | return 1; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 112 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "afccheck")) { |
| 113 | iphone_device_free(phone); | 113 | iphone_device_free(phone); |
| 114 | return 1; | 114 | return 1; |
| 115 | } | 115 | } |
diff --git a/dev/iphoneclient.c b/dev/iphoneclient.c index d62d23f..685f6ef 100644 --- a/dev/iphoneclient.c +++ b/dev/iphoneclient.c | |||
| @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) | |||
| 87 | if (uuid) | 87 | if (uuid) |
| 88 | free(uuid); | 88 | free(uuid); |
| 89 | 89 | ||
| 90 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 90 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "iphoneclient")) { |
| 91 | iphone_device_free(phone); | 91 | iphone_device_free(phone); |
| 92 | printf("Exiting.\n"); | 92 | printf("Exiting.\n"); |
| 93 | return -1; | 93 | return -1; |
diff --git a/dev/iphoneenterrecovery.c b/dev/iphoneenterrecovery.c index 1d4d332..126941c 100644 --- a/dev/iphoneenterrecovery.c +++ b/dev/iphoneenterrecovery.c | |||
| @@ -74,7 +74,7 @@ int main(int argc, char *argv[]) | |||
| 74 | return -1; | 74 | return -1; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 77 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "iphoneenterrecovery")) { |
| 78 | iphone_device_free(phone); | 78 | iphone_device_free(phone); |
| 79 | return -1; | 79 | return -1; |
| 80 | } | 80 | } |
diff --git a/dev/lckdclient.c b/dev/lckdclient.c index d866435..c8d717c 100644 --- a/dev/lckdclient.c +++ b/dev/lckdclient.c | |||
| @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) | |||
| 48 | if (uuid) | 48 | if (uuid) |
| 49 | free(uuid); | 49 | free(uuid); |
| 50 | 50 | ||
| 51 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 51 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "lckdclient")) { |
| 52 | iphone_device_free(phone); | 52 | iphone_device_free(phone); |
| 53 | return -1; | 53 | return -1; |
| 54 | } | 54 | } |
diff --git a/dev/msync.py b/dev/msync.py index fe7f1fd..6bb85d7 100755 --- a/dev/msync.py +++ b/dev/msync.py | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #! /usr/bin/env python | 1 | #! /usr/bin/env python |
| 2 | 2 | ||
| 3 | from libiphone.iPhone import * | 3 | from iphone import * |
| 4 | from plist import * | ||
| 4 | 5 | ||
| 5 | # get msync client | 6 | # get msync client |
| 6 | def GetMobileSyncClient() : | 7 | def GetMobileSyncClient() : |
| @@ -24,17 +25,18 @@ msync = GetMobileSyncClient() | |||
| 24 | if not msync : | 25 | if not msync : |
| 25 | exit(1) | 26 | exit(1) |
| 26 | 27 | ||
| 27 | array = PListNode(PLIST_ARRAY) | 28 | a = Array() |
| 28 | array.add_sub_string("SDMessageSyncDataClassWithDevice") | 29 | a.append( String("SDMessageSyncDataClassWithDevice") ) |
| 29 | array.add_sub_string("com.apple.Contacts"); | 30 | a.append( String("") ) |
| 30 | array.add_sub_string("---"); | 31 | a.append( String("com.apple.Contacts") ) |
| 31 | array.add_sub_string("2009-01-13 22:25:58 +0100"); | 32 | a.append( String("---") ) |
| 32 | array.add_sub_uint(106); | 33 | a.append( String("2009-01-13 22:25:58 +0100") ) |
| 33 | array.add_sub_string("___EmptyParameterString___"); | 34 | a.append( Integer(106) ) |
| 34 | 35 | a.append( String("___EmptyParameterString___") ) | |
| 35 | msync.send(array) | 36 | |
| 36 | array = msync.receive() | 37 | msync.send(a) |
| 37 | print array.to_xml() | 38 | a = msync.receive() |
| 39 | print a.to_xml() | ||
| 38 | 40 | ||
| 39 | 41 | ||
| 40 | 42 | ||
diff --git a/dev/msyncclient.c b/dev/msyncclient.c index 53018ac..dfe2a2b 100644 --- a/dev/msyncclient.c +++ b/dev/msyncclient.c | |||
| @@ -153,7 +153,7 @@ int main(int argc, char *argv[]) | |||
| 153 | return -1; | 153 | return -1; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 156 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "msyncclient")) { |
| 157 | iphone_device_free(phone); | 157 | iphone_device_free(phone); |
| 158 | return -1; | 158 | return -1; |
| 159 | } | 159 | } |
