From 3183e7c96e7f66d9f0b215d549912411b146dd77 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 22 Jan 2010 14:54:40 +0100 Subject: 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. --- include/libiphone/libiphone.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include') 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); -- cgit v1.1-32-gdbae