From 1f6282ffddec7012df82fa929dfe72cfc74b063a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 10 Sep 2009 13:28:13 +0200 Subject: Public API rework, extension and adaption to latest libusbmuxd-1.0 API. --- src/userpref.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/userpref.c') 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; -- cgit v1.1-32-gdbae