diff options
| -rw-r--r-- | src/mobilesync.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mobilesync.c b/src/mobilesync.c index 0d68c40..b7567f2 100644 --- a/src/mobilesync.c +++ b/src/mobilesync.c | |||
| @@ -541,9 +541,14 @@ static plist_t create_process_changes_message(const char *data_class, plist_t en | |||
| 541 | { | 541 | { |
| 542 | plist_t msg = plist_new_array(); | 542 | plist_t msg = plist_new_array(); |
| 543 | plist_array_append_item(msg, plist_new_string("SDMessageProcessChanges")); | 543 | plist_array_append_item(msg, plist_new_string("SDMessageProcessChanges")); |
| 544 | plist_array_append_item(msg, plist_new_string(data_class)); | ||
| 544 | plist_array_append_item(msg, plist_copy(entities)); | 545 | plist_array_append_item(msg, plist_copy(entities)); |
| 545 | plist_array_append_item(msg, plist_new_bool(more_changes)); | 546 | plist_array_append_item(msg, plist_new_bool(more_changes)); |
| 546 | plist_array_append_item(msg, plist_copy(actions)); | 547 | |
| 548 | if (actions) | ||
| 549 | plist_array_append_item(msg, plist_copy(actions)); | ||
| 550 | else | ||
| 551 | plist_array_append_item(msg, plist_new_string(EMPTY_PARAMETER_STRING)); | ||
| 547 | 552 | ||
| 548 | return msg; | 553 | return msg; |
| 549 | } | 554 | } |
| @@ -631,7 +636,8 @@ mobilesync_error_t mobilesync_ready_to_send_changes_from_computer(mobilesync_cli | |||
| 631 | * @param client The mobilesync client | 636 | * @param client The mobilesync client |
| 632 | * @param entities The changed entity records as a PLIST_DICT | 637 | * @param entities The changed entity records as a PLIST_DICT |
| 633 | * @param is_last_record A flag indiciating if this submission is the last one | 638 | * @param is_last_record A flag indiciating if this submission is the last one |
| 634 | * @param actions Additional flags for the device created with mobilesync_actions_new() | 639 | * @param actions Additional actions for the device created with mobilesync_actions_new() |
| 640 | * or NULL if no actions should be passed | ||
| 635 | * | 641 | * |
| 636 | * @return MOBILESYNC_E_SUCCESS on success, MOBILESYNC_E_INVALID_ARG if | 642 | * @return MOBILESYNC_E_SUCCESS on success, MOBILESYNC_E_INVALID_ARG if |
| 637 | * one of the parameters is invalid, MOBILESYNC_E_WRONG_DIRECTION if the | 643 | * one of the parameters is invalid, MOBILESYNC_E_WRONG_DIRECTION if the |
