diff options
| author | 2010-01-22 14:54:40 +0100 | |
|---|---|---|
| committer | 2010-01-22 14:54:40 +0100 | |
| commit | 3183e7c96e7f66d9f0b215d549912411b146dd77 (patch) | |
| tree | 557d251fe890fe0ef947a041131bad5fa7204f18 /src/property_list_service.c | |
| parent | 1d10605fbffd2be498afdd4621f46842b831c23f (diff) | |
| download | libimobiledevice-3183e7c96e7f66d9f0b215d549912411b146dd77.tar.gz libimobiledevice-3183e7c96e7f66d9f0b215d549912411b146dd77.tar.bz2 | |
Rename iphone_device_recv/_send functions to use iphone_connection_* domain
These communication functions operate on an iphone_connection_t, thus their
function name should reflect that.
Diffstat (limited to 'src/property_list_service.c')
| -rw-r--r-- | src/property_list_service.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/property_list_service.c b/src/property_list_service.c index 852ed9c..39483c2 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c | |||
| @@ -141,9 +141,9 @@ static property_list_service_error_t internal_plist_send(property_list_service_c | |||
| 141 | 141 | ||
| 142 | nlen = htonl(length); | 142 | nlen = htonl(length); |
| 143 | debug_info("sending %d bytes", length); | 143 | debug_info("sending %d bytes", length); |
| 144 | iphone_device_send(client->connection, (const char*)&nlen, sizeof(nlen), (uint32_t*)&bytes); | 144 | iphone_connection_send(client->connection, (const char*)&nlen, sizeof(nlen), (uint32_t*)&bytes); |
| 145 | if (bytes == sizeof(nlen)) { | 145 | if (bytes == sizeof(nlen)) { |
| 146 | iphone_device_send(client->connection, content, length, (uint32_t*)&bytes); | 146 | iphone_connection_send(client->connection, content, length, (uint32_t*)&bytes); |
| 147 | if (bytes > 0) { | 147 | if (bytes > 0) { |
| 148 | debug_info("sent %d bytes", bytes); | 148 | debug_info("sent %d bytes", bytes); |
| 149 | debug_plist(plist); | 149 | debug_plist(plist); |
| @@ -221,7 +221,7 @@ static property_list_service_error_t internal_plist_recv_timeout(property_list_s | |||
| 221 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; | 221 | return PROPERTY_LIST_SERVICE_E_INVALID_ARG; |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | iphone_device_recv_timeout(client->connection, (char*)&pktlen, sizeof(pktlen), &bytes, timeout); | 224 | iphone_connection_receive_timeout(client->connection, (char*)&pktlen, sizeof(pktlen), &bytes, timeout); |
| 225 | debug_info("initial read=%i", bytes); | 225 | debug_info("initial read=%i", bytes); |
| 226 | if (bytes < 4) { | 226 | if (bytes < 4) { |
| 227 | debug_info("initial read failed!"); | 227 | debug_info("initial read failed!"); |
| @@ -235,7 +235,7 @@ static property_list_service_error_t internal_plist_recv_timeout(property_list_s | |||
| 235 | content = (char*)malloc(pktlen); | 235 | content = (char*)malloc(pktlen); |
| 236 | 236 | ||
| 237 | while (curlen < pktlen) { | 237 | while (curlen < pktlen) { |
| 238 | iphone_device_recv(client->connection, content+curlen, pktlen-curlen, &bytes); | 238 | iphone_connection_receive(client->connection, content+curlen, pktlen-curlen, &bytes); |
| 239 | if (bytes <= 0) { | 239 | if (bytes <= 0) { |
| 240 | res = PROPERTY_LIST_SERVICE_E_MUX_ERROR; | 240 | res = PROPERTY_LIST_SERVICE_E_MUX_ERROR; |
| 241 | break; | 241 | break; |
