diff options
author | Martin Szulecki | 2010-01-25 04:55:27 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-25 04:55:27 +0100 |
commit | d25503b6a865d78eba373e7a71ba84f3e6a5a8cb (patch) | |
tree | 9b7e91a7e2677dc8d3ef5acf7f29f0577275803c | |
parent | f3a38d50bc3ce2483cf266fbc2347598cf184478 (diff) | |
download | libimobiledevice-d25503b6a865d78eba373e7a71ba84f3e6a5a8cb.tar.gz libimobiledevice-d25503b6a865d78eba373e7a71ba84f3e6a5a8cb.tar.bz2 |
Use device_link_message_factory where appropriate in iphonebackup
-rw-r--r-- | tools/iphonebackup.c | 9 |
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); |