summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-09-10 13:28:13 +0200
committerGravatar Martin Szulecki2009-09-12 11:41:38 +0200
commit1f6282ffddec7012df82fa929dfe72cfc74b063a (patch)
tree452c927c07806855f360ee9803111a1f72e05d3c /src/userpref.c
parent26ce10634d277df51c4e9c2bd61b409df3f5b060 (diff)
downloadlibimobiledevice-1f6282ffddec7012df82fa929dfe72cfc74b063a.tar.gz
libimobiledevice-1f6282ffddec7012df82fa929dfe72cfc74b063a.tar.bz2
Public API rework, extension and adaption to latest libusbmuxd-1.0 API.
Diffstat (limited to 'src/userpref.c')
-rw-r--r--src/userpref.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/userpref.c b/src/userpref.c
index 9dd1a01..10c14a0 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -88,7 +88,7 @@ static char *userpref_generate_host_id()
*
* @param host_id A null terminated string containing a valid HostID.
*/
-static int userpref_set_host_id(char *host_id)
+static int userpref_set_host_id(const char *host_id)
{
GKeyFile *key_file;
gsize length;
@@ -164,7 +164,7 @@ void userpref_get_host_id(char **host_id)
* @return 1 if the iPhone has been connected previously to this configuration
* or 0 otherwise.
*/
-int userpref_has_device_public_key(char *uuid)
+int userpref_has_device_public_key(const char *uuid)
{
int ret = 0;
gchar *config_file;
@@ -187,7 +187,7 @@ int userpref_has_device_public_key(char *uuid)
* @return 1 on success and 0 if no public key is given or if it has already
* been marked as connected previously.
*/
-userpref_error_t userpref_set_device_public_key(char *uuid, gnutls_datum_t public_key)
+userpref_error_t userpref_set_device_public_key(const char *uuid, gnutls_datum_t public_key)
{
if (NULL == public_key.data)
return USERPREF_E_INVALID_ARG;