Remove some const-ness in parameters to avoid casts in clients
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 4 Mar 2014 14:05:08 +0000 (16:05 +0200)
committerAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 4 Mar 2014 14:05:08 +0000 (16:05 +0200)
libgsignon-glib/signon-identity-info.c
libgsignon-glib/signon-identity-info.h
libgsignon-glib/signon-identity.h

index 9640b13..cdc376b 100644 (file)
@@ -471,7 +471,7 @@ const SignonSecurityContext *signon_identity_info_get_owner (const SignonIdentit
  *
  * Returns: (transfer none): a list of ACL security contexts.
  */
-const SignonSecurityContextList *signon_identity_info_get_access_control_list (const SignonIdentityInfo *info)
+SignonSecurityContextList *signon_identity_info_get_access_control_list (const SignonIdentityInfo *info)
 {
     g_return_val_if_fail (info != NULL, NULL);
     return info->access_control_list;
index a71331f..ce6b8d7 100644 (file)
@@ -75,7 +75,7 @@ const gchar* const *signon_identity_info_get_realms (
                                                 const SignonIdentityInfo *info);
 const SignonSecurityContext *signon_identity_info_get_owner (
                                                 const SignonIdentityInfo *info);
-const SignonSecurityContextList *signon_identity_info_get_access_control_list (
+SignonSecurityContextList *signon_identity_info_get_access_control_list (
                                                 const SignonIdentityInfo *info);
 SignonIdentityType signon_identity_info_get_identity_type (
                                                 const SignonIdentityInfo *info);
index 1aa70ea..14a29bf 100644 (file)
@@ -179,7 +179,7 @@ void signon_identity_verify_secret(SignonIdentity *self,
  * Callback to be passed to signon_identity_query_info().
  */
 typedef void (*SignonIdentityInfoCb) (SignonIdentity *self,
-                                      const SignonIdentityInfo *info,
+                                      SignonIdentityInfo *info,
                                       const GError *error,
                                       gpointer user_data);