diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2005-01-12 23:23:23 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2005-01-12 23:23:23 +0000 |
| commit | c67d9f44d674d9dce44f22b303a81dd2b21ccc19 (patch) | |
| tree | 79622514f4d5d9632b6b912a24059fc9b3a84089 | |
| parent | a2a19cf87d1ea052015a81be12e89a31ec63c170 (diff) | |
| download | lasso-c67d9f44d674d9dce44f22b303a81dd2b21ccc19.tar.gz lasso-c67d9f44d674d9dce44f22b303a81dd2b21ccc19.tar.xz lasso-c67d9f44d674d9dce44f22b303a81dd2b21ccc19.zip | |
Added lasso_*_new_from_message() method to rebuild objects from xml dump.
| -rw-r--r-- | lasso/xml/is_interaction_request.c | 11 | ||||
| -rw-r--r-- | lasso/xml/is_interaction_request.h | 3 | ||||
| -rw-r--r-- | lasso/xml/is_interaction_response.c | 11 | ||||
| -rw-r--r-- | lasso/xml/is_interaction_response.h | 3 |
4 files changed, 28 insertions, 0 deletions
diff --git a/lasso/xml/is_interaction_request.c b/lasso/xml/is_interaction_request.c index 3aea80cc..8de0f990 100644 --- a/lasso/xml/is_interaction_request.c +++ b/lasso/xml/is_interaction_request.c @@ -120,3 +120,14 @@ lasso_is_interaction_request_new() return node; } + +LassoIsInteractionRequest* +lasso_is_interaction_request_new_from_message(const char *msg) +{ + LassoIsInteractionRequest *node; + + node = g_object_new(LASSO_TYPE_IS_INTERACTION_REQUEST, NULL); + lasso_node_init_from_message(LASSO_NODE(node), msg); + + return node; +} diff --git a/lasso/xml/is_interaction_request.h b/lasso/xml/is_interaction_request.h index 37b8bc87..822b8e97 100644 --- a/lasso/xml/is_interaction_request.h +++ b/lasso/xml/is_interaction_request.h @@ -76,6 +76,9 @@ LASSO_EXPORT GType lasso_is_interaction_request_get_type(void); LASSO_EXPORT LassoIsInteractionRequest* lasso_is_interaction_request_new(void); +LASSO_EXPORT LassoIsInteractionRequest* lasso_is_interaction_request_new_from_message( + const char *msg); + #ifdef __cplusplus } #endif /* __cplusplus */ diff --git a/lasso/xml/is_interaction_response.c b/lasso/xml/is_interaction_response.c index 6622cbeb..f9b2612b 100644 --- a/lasso/xml/is_interaction_response.c +++ b/lasso/xml/is_interaction_response.c @@ -113,3 +113,14 @@ lasso_is_interaction_response_new(LassoUtilityStatus *status) return node; } + +LassoIsInteractionResponse* +lasso_is_interaction_response_new_from_message(const gchar *message) +{ + LassoIsInteractionResponse *node; + + node = g_object_new(LASSO_TYPE_IS_INTERACTION_RESPONSE, NULL); + lasso_node_init_from_message(LASSO_NODE(node), message); + + return node; +} diff --git a/lasso/xml/is_interaction_response.h b/lasso/xml/is_interaction_response.h index e0f011a3..11460ef7 100644 --- a/lasso/xml/is_interaction_response.h +++ b/lasso/xml/is_interaction_response.h @@ -66,6 +66,9 @@ LASSO_EXPORT GType lasso_is_interaction_response_get_type(void); LASSO_EXPORT LassoIsInteractionResponse* lasso_is_interaction_response_new(); +LASSO_EXPORT LassoIsInteractionResponse* lasso_is_interaction_response_new_from_message( + const char *msg); + #ifdef __cplusplus } #endif /* __cplusplus */ |
