summaryrefslogtreecommitdiffstats
path: root/src/iphone.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-22 15:00:16 +0100
committerGravatar Martin Szulecki2010-01-22 15:00:16 +0100
commit82d682b850329f2660fa6c6cc658ec03b5ffbadc (patch)
tree427e63c6e788ced9ae7de6c930dd4ee1644bba72 /src/iphone.c
parent3183e7c96e7f66d9f0b215d549912411b146dd77 (diff)
downloadlibimobiledevice-82d682b850329f2660fa6c6cc658ec03b5ffbadc.tar.gz
libimobiledevice-82d682b850329f2660fa6c6cc658ec03b5ffbadc.tar.bz2
Rename all *_recv functions to *_receive to match underlying API
Diffstat (limited to 'src/iphone.c')
-rw-r--r--src/iphone.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/iphone.c b/src/iphone.c
index 85d136c..b471e35 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -316,7 +316,7 @@ iphone_error_t iphone_connection_send(iphone_connection_t connection, const char
316 * Internally used function for receiving raw data over the given connection 316 * Internally used function for receiving raw data over the given connection
317 * using a timeout. 317 * using a timeout.
318 */ 318 */
319static iphone_error_t internal_connection_recv_timeout(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout) 319static iphone_error_t internal_connection_receive_timeout(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout)
320{ 320{
321 if (!connection) { 321 if (!connection) {
322 return IPHONE_E_INVALID_ARG; 322 return IPHONE_E_INVALID_ARG;
@@ -365,13 +365,13 @@ iphone_error_t iphone_connection_receive_timeout(iphone_connection_t connection,
365 *recv_bytes = 0; 365 *recv_bytes = 0;
366 return IPHONE_E_SSL_ERROR; 366 return IPHONE_E_SSL_ERROR;
367 } 367 }
368 return internal_connection_recv_timeout(connection, data, len, recv_bytes, timeout); 368 return internal_connection_receive_timeout(connection, data, len, recv_bytes, timeout);
369} 369}
370 370
371/** 371/**
372 * Internally used function for receiving raw data over the given connection. 372 * Internally used function for receiving raw data over the given connection.
373 */ 373 */
374static iphone_error_t internal_connection_recv(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes) 374static iphone_error_t internal_connection_receive(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes)
375{ 375{
376 if (!connection) { 376 if (!connection) {
377 return IPHONE_E_INVALID_ARG; 377 return IPHONE_E_INVALID_ARG;
@@ -419,7 +419,7 @@ iphone_error_t iphone_connection_receive(iphone_connection_t connection, char *d
419 *recv_bytes = 0; 419 *recv_bytes = 0;
420 return IPHONE_E_SSL_ERROR; 420 return IPHONE_E_SSL_ERROR;
421 } 421 }
422 return internal_connection_recv(connection, data, len, recv_bytes); 422 return internal_connection_receive(connection, data, len, recv_bytes);
423} 423}
424 424
425iphone_error_t iphone_device_get_handle(iphone_device_t device, uint32_t *handle) 425iphone_error_t iphone_device_get_handle(iphone_device_t device, uint32_t *handle)
@@ -463,7 +463,7 @@ static ssize_t internal_ssl_read(gnutls_transport_ptr_t transport, char *buffer,
463 463
464 /* repeat until we have the full data or an error occurs */ 464 /* repeat until we have the full data or an error occurs */
465 do { 465 do {
466 if ((res = internal_connection_recv(connection, recv_buffer, this_len, (uint32_t*)&bytes)) != IPHONE_E_SUCCESS) { 466 if ((res = internal_connection_receive(connection, recv_buffer, this_len, (uint32_t*)&bytes)) != IPHONE_E_SUCCESS) {
467 debug_info("ERROR: iphone_connection_receive returned %d", res); 467 debug_info("ERROR: iphone_connection_receive returned %d", res);
468 return res; 468 return res;
469 } 469 }