summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-26 17:38:32 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-26 17:38:32 +0000
commitb86b5225680225d7940de6e0745de077278ece15 (patch)
tree5eb95363e38a5a2339c682ba66b498cb67857c2f
parentb652a4a94a82ad2851eb84fccf2b8b259acfaa19 (diff)
downloadlasso-b86b5225680225d7940de6e0745de077278ece15.tar.gz
lasso-b86b5225680225d7940de6e0745de077278ece15.tar.xz
lasso-b86b5225680225d7940de6e0745de077278ece15.zip
Added lasso_profile_context_set_user_from_dump method
-rw-r--r--lasso/id-ff/profile_context.c12
-rw-r--r--lasso/id-ff/profile_context.h8
2 files changed, 18 insertions, 2 deletions
diff --git a/lasso/id-ff/profile_context.c b/lasso/id-ff/profile_context.c
index 88540682..eb80498b 100644
--- a/lasso/id-ff/profile_context.c
+++ b/lasso/id-ff/profile_context.c
@@ -194,6 +194,18 @@ lasso_profile_context_set_response_status(LassoProfileContext *ctx,
lasso_node_destroy(status);
}
+gint
+lasso_profile_context_set_user_from_dump(LassoProfileContext *ctx,
+ const gchar *dump)
+{
+ ctx->user = lasso_user_new_from_dump((gchar *)dump);
+ if (ctx->user == NULL) {
+ message(G_LOG_LEVEL_ERROR, "Failed to create the user from the user dump\n");
+ return(-1);
+ }
+ return(0);
+}
+
/*****************************************************************************/
/* overrided parent class methods */
/*****************************************************************************/
diff --git a/lasso/id-ff/profile_context.h b/lasso/id-ff/profile_context.h
index 174b16fe..83738278 100644
--- a/lasso/id-ff/profile_context.h
+++ b/lasso/id-ff/profile_context.h
@@ -102,13 +102,14 @@ struct _LassoProfileContextClass {
GObjectClass parent;
};
+LASSO_EXPORT gint lasso_profile_context_get_request_type_from_soap_msg (gchar *soap);
+
+
LASSO_EXPORT GType lasso_profile_context_get_type (void);
LASSO_EXPORT LassoProfileContext* lasso_profile_context_new (LassoServer *server,
LassoUser *user);
-LASSO_EXPORT gint lasso_profile_context_get_request_type_from_soap_msg (gchar *soap);
-
LASSO_EXPORT gchar* lasso_profile_context_dump (LassoProfileContext *ctx,
const gchar *name);
@@ -118,6 +119,9 @@ LASSO_EXPORT gint lasso_profile_context_set_remote_providerID
LASSO_EXPORT void lasso_profile_context_set_response_status (LassoProfileContext *ctx,
const gchar *statusCodeValue);
+LASSO_EXPORT gint lasso_profile_context_set_user_from_dump (LassoProfileContext *ctx,
+ const gchar *dump);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */