summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-01-15 16:52:54 +0100
committerGravatar Nikias Bassen2012-01-15 16:52:54 +0100
commit96e06ea1e4dabd2a3d4b51c799842dee2e279f30 (patch)
treec71634a4e42153c2fb286854ead2184db7ae055c /src
parentc182599c8c18ed729726ea7cbbd0a3b89790d2db (diff)
downloadlibimobiledevice-96e06ea1e4dabd2a3d4b51c799842dee2e279f30.tar.gz
libimobiledevice-96e06ea1e4dabd2a3d4b51c799842dee2e279f30.tar.bz2
added mobilebackup2_send_message to public api
Diffstat (limited to 'src')
-rw-r--r--src/mobilebackup2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c
index c16da9a..1e39efa 100644
--- a/src/mobilebackup2.c
+++ b/src/mobilebackup2.c
@@ -135,7 +135,7 @@ mobilebackup2_error_t mobilebackup2_client_free(mobilebackup2_client_t client)
* will be inserted into this plist before sending it. This parameter
* can be NULL if message is not NULL.
*/
-static mobilebackup2_error_t internal_mobilebackup2_send_message(mobilebackup2_client_t client, const char *message, plist_t options)
+mobilebackup2_error_t mobilebackup2_send_message(mobilebackup2_client_t client, const char *message, plist_t options)
{
if (!client || !client->parent || (!message && !options))
return MOBILEBACKUP2_E_INVALID_ARG;
@@ -368,7 +368,7 @@ mobilebackup2_error_t mobilebackup2_version_exchange(mobilebackup2_client_t clie
}
plist_dict_insert_item(dict, "SupportedProtocolVersions", array);
- mobilebackup2_error_t err = internal_mobilebackup2_send_message(client, "Hello", dict);
+ mobilebackup2_error_t err = mobilebackup2_send_message(client, "Hello", dict);
plist_free(dict);
if (err != MOBILEBACKUP2_E_SUCCESS)
@@ -438,7 +438,7 @@ mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t client,
if (options) {
plist_dict_insert_item(dict, "Options", plist_copy(options));
}
- mobilebackup2_error_t err = internal_mobilebackup2_send_message(client, request, dict);
+ mobilebackup2_error_t err = mobilebackup2_send_message(client, request, dict);
plist_free(dict);
return err;