diff options
author | Bryan Forbes | 2010-05-15 13:01:48 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-05-15 13:01:48 +0200 |
commit | 6d3c5f4f182b73dbaabfe6b51d560e707b3462d1 (patch) | |
tree | 151f3da610efd5ce3b6d841d745892995afae66d /src/mobilesync.c | |
parent | 78ed9d6448c13c108108b23a9b986992a7f45263 (diff) | |
download | libimobiledevice-6d3c5f4f182b73dbaabfe6b51d560e707b3462d1.tar.gz libimobiledevice-6d3c5f4f182b73dbaabfe6b51d560e707b3462d1.tar.bz2 |
Added computer_data_class_version to mobilsync_start.
Diffstat (limited to 'src/mobilesync.c')
-rw-r--r-- | src/mobilesync.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mobilesync.c b/src/mobilesync.c index 80666d1..f0a6a79 100644 --- a/src/mobilesync.c +++ b/src/mobilesync.c @@ -161,7 +161,7 @@ mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plist) return mobilesync_error(device_link_service_send(client->parent, plist)); } -mobilesync_error_t mobilesync_start(mobilesync_client_t client, const char *data_class, mobilesync_anchors_t anchors, mobilesync_sync_type_t *sync_type, uint64_t *data_class_version) +mobilesync_error_t mobilesync_start(mobilesync_client_t client, const char *data_class, mobilesync_anchors_t anchors, uint64_t computer_data_class_version, mobilesync_sync_type_t *sync_type, uint64_t *device_data_class_version) { if (!client || client->data_class || !data_class || !anchors || !anchors->computer_anchor) { @@ -183,7 +183,7 @@ mobilesync_error_t mobilesync_start(mobilesync_client_t client, const char *data plist_array_append_item(msg, plist_new_string("---")); } plist_array_append_item(msg, plist_new_string(anchors->computer_anchor)); - plist_array_append_item(msg, plist_new_uint(*data_class_version)); + plist_array_append_item(msg, plist_new_uint(computer_data_class_version)); plist_array_append_item(msg, plist_new_string(EMPTY_PARAMETER_STRING)); err = mobilesync_send(client, msg); @@ -258,14 +258,14 @@ mobilesync_error_t mobilesync_start(mobilesync_client_t client, const char *data } } - if (data_class_version != NULL) { - plist_t data_class_version_node = plist_array_get_item(msg, 5); - if (!data_class_version_node) { + if (device_data_class_version != NULL) { + plist_t device_data_class_version_node = plist_array_get_item(msg, 5); + if (!device_data_class_version_node) { err = MOBILESYNC_E_PLIST_ERROR; goto out; } - plist_get_uint_val(data_class_version_node, data_class_version); + plist_get_uint_val(device_data_class_version_node, device_data_class_version); } err = MOBILESYNC_E_SUCCESS; |