diff options
| author | 2010-01-27 22:07:09 -0800 | |
|---|---|---|
| committer | 2010-01-27 22:07:09 -0800 | |
| commit | 45b88ae3956de089fdc35605910f1359a1d3961c (patch) | |
| tree | 34cbe9da755305b29420c9c22c2b032080cd0991 /src/mobilesync.c | |
| parent | 9ef3ed4afdbc7325c999ff79b033f259af898986 (diff) | |
| parent | 45c5708ecfea326c203d4728e52ecb0ae206a528 (diff) | |
| download | libimobiledevice-45b88ae3956de089fdc35605910f1359a1d3961c.tar.gz libimobiledevice-45b88ae3956de089fdc35605910f1359a1d3961c.tar.bz2 | |
Merge commit 'martin-s/martin'
Diffstat (limited to 'src/mobilesync.c')
| -rw-r--r-- | src/mobilesync.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mobilesync.c b/src/mobilesync.c index 3492673..15614b5 100644 --- a/src/mobilesync.c +++ b/src/mobilesync.c | |||
| @@ -109,16 +109,6 @@ mobilesync_error_t mobilesync_receive(mobilesync_client_t client, plist_t * plis | |||
| 109 | if (!client) | 109 | if (!client) |
| 110 | return MOBILESYNC_E_INVALID_ARG; | 110 | return MOBILESYNC_E_INVALID_ARG; |
| 111 | mobilesync_error_t ret = mobilesync_error(device_link_service_receive(client->parent, plist)); | 111 | mobilesync_error_t ret = mobilesync_error(device_link_service_receive(client->parent, plist)); |
| 112 | #ifndef STRIP_DEBUG_CODE | ||
| 113 | if (ret != MOBILESYNC_E_SUCCESS) { | ||
| 114 | return ret; | ||
| 115 | } | ||
| 116 | char *XMLContent = NULL; | ||
| 117 | uint32_t length = 0; | ||
| 118 | plist_to_xml(*plist, &XMLContent, &length); | ||
| 119 | debug_info("plist size: %i\nbuffer :\n%s", length, XMLContent); | ||
| 120 | free(XMLContent); | ||
| 121 | #endif | ||
| 122 | return ret; | 112 | return ret; |
| 123 | } | 113 | } |
| 124 | 114 | ||
| @@ -136,13 +126,5 @@ mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plist) | |||
| 136 | { | 126 | { |
| 137 | if (!client || !plist) | 127 | if (!client || !plist) |
| 138 | return MOBILESYNC_E_INVALID_ARG; | 128 | return MOBILESYNC_E_INVALID_ARG; |
| 139 | |||
| 140 | #ifndef STRIP_DEBUG_CODE | ||
| 141 | char *XMLContent = NULL; | ||
| 142 | uint32_t length = 0; | ||
| 143 | plist_to_xml(plist, &XMLContent, &length); | ||
| 144 | debug_info("plist size: %i\nbuffer :\n%s", length, XMLContent); | ||
| 145 | free(XMLContent); | ||
| 146 | #endif | ||
| 147 | return mobilesync_error(device_link_service_send(client->parent, plist)); | 129 | return mobilesync_error(device_link_service_send(client->parent, plist)); |
| 148 | } | 130 | } |
