summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-25 04:55:27 +0100
committerGravatar Martin Szulecki2010-01-25 04:55:27 +0100
commitd25503b6a865d78eba373e7a71ba84f3e6a5a8cb (patch)
tree9b7e91a7e2677dc8d3ef5acf7f29f0577275803c /tools
parentf3a38d50bc3ce2483cf266fbc2347598cf184478 (diff)
downloadlibimobiledevice-d25503b6a865d78eba373e7a71ba84f3e6a5a8cb.tar.gz
libimobiledevice-d25503b6a865d78eba373e7a71ba84f3e6a5a8cb.tar.bz2
Use device_link_message_factory where appropriate in iphonebackup
Diffstat (limited to 'tools')
-rw-r--r--tools/iphonebackup.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/iphonebackup.c b/tools/iphonebackup.c
index 28a8949..5124ea5 100644
--- a/tools/iphonebackup.c
+++ b/tools/iphonebackup.c
@@ -388,10 +388,7 @@ int main(int argc, char *argv[])
plist_dict_insert_item(node, "BackupMessageTypeKey", plist_new_string("BackupMessageBackupRequest"));
plist_dict_insert_item(node, "BackupProtocolVersion", plist_new_string("1.6"));
- plist_t message = plist_new_array();
- plist_array_append_item(message, plist_new_string("DLMessageProcessMessage"));
- plist_array_append_item(message, node);
-
+ plist_t message = device_link_message_factory_process_message_new(node);
mobilebackup_send(mobilebackup, message);
plist_free(message);
message = NULL;
@@ -537,9 +534,7 @@ int main(int argc, char *argv[])
node = plist_new_dict();
plist_dict_insert_item(node, "BackupMessageTypeKey", plist_new_string("kBackupMessageBackupFileReceived"));
- message = plist_new_array();
- plist_array_append_item(message, plist_new_string("DLMessageProcessMessage"));
- plist_array_append_item(message, node);
+ message = device_link_message_factory_process_message_new(node);
mobilebackup_send(mobilebackup, message);
plist_free(message);