summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;