diff options
author | Martin Szulecki | 2010-01-22 14:54:40 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-22 14:54:40 +0100 |
commit | 3183e7c96e7f66d9f0b215d549912411b146dd77 (patch) | |
tree | 557d251fe890fe0ef947a041131bad5fa7204f18 /include/libiphone | |
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 'include/libiphone')
-rw-r--r-- | include/libiphone/libiphone.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index b67fcd4..efe9a63 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h @@ -81,12 +81,14 @@ iphone_error_t iphone_device_list_free(char **devices); iphone_error_t iphone_device_new(iphone_device_t *device, const char *uuid); iphone_error_t iphone_device_free(iphone_device_t device); -/* connection/disconnection and communication */ +/* connection/disconnection */ iphone_error_t iphone_device_connect(iphone_device_t device, uint16_t port, iphone_connection_t *connection); iphone_error_t iphone_device_disconnect(iphone_connection_t connection); -iphone_error_t iphone_device_send(iphone_connection_t connection, const char *data, uint32_t len, uint32_t *sent_bytes); -iphone_error_t iphone_device_recv_timeout(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout); -iphone_error_t iphone_device_recv(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes); + +/* communication */ +iphone_error_t iphone_connection_send(iphone_connection_t connection, const char *data, uint32_t len, uint32_t *sent_bytes); +iphone_error_t iphone_connection_receive_timeout(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout); +iphone_error_t iphone_connection_receive(iphone_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes); /* misc */ iphone_error_t iphone_device_get_handle(iphone_device_t device, uint32_t *handle); |