summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/afccheck.c2
-rw-r--r--dev/iphoneclient.c2
-rw-r--r--dev/iphoneenterrecovery.c2
-rw-r--r--dev/lckdclient.c2
-rwxr-xr-xdev/msync.py26
-rw-r--r--dev/msyncclient.c2
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
3from libiphone.iPhone import * 3from iphone import *
4from plist import *
4 5
5# get msync client 6# get msync client
6def GetMobileSyncClient() : 7def GetMobileSyncClient() :
@@ -24,17 +25,18 @@ msync = GetMobileSyncClient()
24if not msync : 25if not msync :
25 exit(1) 26 exit(1)
26 27
27array = PListNode(PLIST_ARRAY) 28a = Array()
28array.add_sub_string("SDMessageSyncDataClassWithDevice") 29a.append( String("SDMessageSyncDataClassWithDevice") )
29array.add_sub_string("com.apple.Contacts"); 30a.append( String("") )
30array.add_sub_string("---"); 31a.append( String("com.apple.Contacts") )
31array.add_sub_string("2009-01-13 22:25:58 +0100"); 32a.append( String("---") )
32array.add_sub_uint(106); 33a.append( String("2009-01-13 22:25:58 +0100") )
33array.add_sub_string("___EmptyParameterString___"); 34a.append( Integer(106) )
34 35a.append( String("___EmptyParameterString___") )
35msync.send(array) 36
36array = msync.receive() 37msync.send(a)
37print array.to_xml() 38a = msync.receive()
39print 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 }