summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-03-15 18:07:52 +0100
committerGravatar Martin Szulecki2010-03-15 19:13:02 +0100
commitd74b7217c374198ae79c1690f6f3234ed023021d (patch)
treefe26c32fde27549782fe10084780931828746002
parent2aae49b31f77845cc03ec8057ae4eae65495fe01 (diff)
downloadlibimobiledevice-d74b7217c374198ae79c1690f6f3234ed023021d.tar.gz
libimobiledevice-d74b7217c374198ae79c1690f6f3234ed023021d.tar.bz2
device_link_service: process_message functions renamed using send/receive
-rw-r--r--src/device_link_service.c4
-rw-r--r--src/device_link_service.h4
-rw-r--r--src/screenshotr.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/device_link_service.c b/src/device_link_service.c
index 4140911..7baef02 100644
--- a/src/device_link_service.c
+++ b/src/device_link_service.c
@@ -264,7 +264,7 @@ device_link_service_error_t device_link_service_disconnect(device_link_service_c
* message is not a PLIST_DICT, or DEVICE_LINK_SERVICE_E_MUX_ERROR if
* the DLMessageProcessMessage plist could not be sent.
*/
-device_link_service_error_t device_link_service_process_message(device_link_service_client_t client, plist_t message)
+device_link_service_error_t device_link_service_send_process_message(device_link_service_client_t client, plist_t message)
{
if (!client || !client->parent || !message)
return DEVICE_LINK_SERVICE_E_INVALID_ARG;
@@ -297,7 +297,7 @@ device_link_service_error_t device_link_service_process_message(device_link_serv
* invalid or is not a DLMessageProcessMessage,
* or DEVICE_LINK_SERVICE_E_MUX_ERROR if receiving from device fails.
*/
-device_link_service_error_t device_link_service_get_process_message(device_link_service_client_t client, plist_t *message)
+device_link_service_error_t device_link_service_receive_process_message(device_link_service_client_t client, plist_t *message)
{
if (!client || !client->parent || !message)
return DEVICE_LINK_SERVICE_E_INVALID_ARG;
diff --git a/src/device_link_service.h b/src/device_link_service.h
index 1d2a178..b90ddcc 100644
--- a/src/device_link_service.h
+++ b/src/device_link_service.h
@@ -44,8 +44,8 @@ typedef int16_t device_link_service_error_t;
device_link_service_error_t device_link_service_client_new(idevice_t device, uint16_t port, device_link_service_client_t *client);
device_link_service_error_t device_link_service_client_free(device_link_service_client_t client);
device_link_service_error_t device_link_service_version_exchange(device_link_service_client_t client, uint64_t version_major, uint64_t version_minor);
-device_link_service_error_t device_link_service_process_message(device_link_service_client_t client, plist_t message);
-device_link_service_error_t device_link_service_get_process_message(device_link_service_client_t client, plist_t *message);
+device_link_service_error_t device_link_service_send_process_message(device_link_service_client_t client, plist_t message);
+device_link_service_error_t device_link_service_receive_process_message(device_link_service_client_t client, plist_t *message);
device_link_service_error_t device_link_service_disconnect(device_link_service_client_t client);
device_link_service_error_t device_link_service_send(device_link_service_client_t client, plist_t plist);
device_link_service_error_t device_link_service_receive(device_link_service_client_t client, plist_t *plist);
diff --git a/src/screenshotr.c b/src/screenshotr.c
index 11dce13..07c51ca 100644
--- a/src/screenshotr.c
+++ b/src/screenshotr.c
@@ -145,7 +145,7 @@ screenshotr_error_t screenshotr_take_screenshot(screenshotr_client_t client, cha
plist_t dict = plist_new_dict();
plist_dict_insert_item(dict, "MessageType", plist_new_string("ScreenShotRequest"));
- res = screenshotr_error(device_link_service_process_message(client->parent, dict));
+ res = screenshotr_error(device_link_service_send_process_message(client->parent, dict));
plist_free(dict);
if (res != SCREENSHOTR_E_SUCCESS) {
debug_info("could not send plist, error %d", res);
@@ -153,7 +153,7 @@ screenshotr_error_t screenshotr_take_screenshot(screenshotr_client_t client, cha
}
dict = NULL;
- res = screenshotr_error(device_link_service_get_process_message(client->parent, &dict));
+ res = screenshotr_error(device_link_service_receive_process_message(client->parent, &dict));
if (res != SCREENSHOTR_E_SUCCESS) {
debug_info("could not get screenshot data, error %d", res);
goto leave;