summaryrefslogtreecommitdiffstats
path: root/lasso/Attic/protocols/identity.c
diff options
context:
space:
mode:
Diffstat (limited to 'lasso/Attic/protocols/identity.c')
-rw-r--r--lasso/Attic/protocols/identity.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lasso/Attic/protocols/identity.c b/lasso/Attic/protocols/identity.c
index 131f8524..efa86a93 100644
--- a/lasso/Attic/protocols/identity.c
+++ b/lasso/Attic/protocols/identity.c
@@ -36,6 +36,21 @@ static GObjectClass *parent_class = NULL;
/* public methods */
/*****************************************************************************/
+LassoIdentity*
+lasso_identity_copy(LassoIdentity *identity)
+{
+ LassoIdentity *copy;
+
+ g_return_val_if_fail(LASSO_IS_IDENTITY(identity), NULL);
+
+ copy = LASSO_IDENTITY(g_object_new(LASSO_TYPE_IDENTITY, NULL));
+ copy->remote_providerID = g_strdup(identity->remote_providerID);
+ copy->local_nameIdentifier = lasso_node_copy(identity->local_nameIdentifier);
+ copy->remote_nameIdentifier = lasso_node_copy(identity->remote_nameIdentifier);
+
+ return(copy);
+}
+
void
lasso_identity_destroy(LassoIdentity *identity)
{