signon_identity_info_set_identity_type (info, g_value_get_int (value));
g_value_unset (value);
- /* get the ref_count (gint) */
- value = g_ptr_array_index (identity_array, 8);
- g_assert (G_VALUE_HOLDS_INT(value));
- signon_identity_info_set_identity_ref_count (info, g_value_get_int (value));
- g_value_unset (value);
+ /* ignore the ref_count (8th field) */
return info;
}
signon_identity_info_set_identity_type (info,
signon_identity_info_get_identity_type (other));
- signon_identity_info_set_identity_ref_count (info,
- signon_identity_info_get_identity_ref_count (other));
-
return info;
}
return (SignonIdentityType)info->type;
}
-gint signon_identity_info_get_identity_ref_count (const SignonIdentityInfo *info)
-{
- g_return_val_if_fail (info != NULL, -1);
- return (SignonIdentityType)info->ref_count;
-}
-
/**
* signon_identity_info_set_username:
* @info: the #SignonIdentityInfo.
g_return_if_fail (info != NULL);
info->type = (gint)type;
}
-
-void signon_identity_info_set_identity_ref_count (SignonIdentityInfo *info,
- gint ref_count)
-{
- g_return_if_fail (info != NULL);
- info->ref_count = ref_count;
-}
const gchar* const *signon_identity_info_get_realms (const SignonIdentityInfo *info);
const gchar* const *signon_identity_info_get_access_control_list (const SignonIdentityInfo *info);
SignonIdentityType signon_identity_info_get_identity_type (const SignonIdentityInfo *info);
-gint signon_identity_info_get_identity_ref_count (const SignonIdentityInfo *info);
void signon_identity_info_set_username (SignonIdentityInfo *info, const gchar *username);
void signon_identity_info_set_secret (SignonIdentityInfo *info,
void signon_identity_info_set_identity_type (SignonIdentityInfo *info,
SignonIdentityType type);
-void signon_identity_info_set_identity_ref_count (SignonIdentityInfo *info,
- gint ref_count);
-
G_END_DECLS
#endif /* _SIGNON_IDENTITY_INFO_H_ */