2008-09-12 17:06:58 +02:00
|
|
|
/* $Id$
|
2004-11-30 18:07:42 +01:00
|
|
|
*
|
|
|
|
* Lasso - A free implementation of the Liberty Alliance specifications.
|
|
|
|
*
|
2007-05-30 19:17:45 +02:00
|
|
|
* Copyright (C) 2004-2007 Entr'ouvert
|
2004-11-30 18:07:42 +01:00
|
|
|
* http://lasso.entrouvert.org
|
2008-09-12 17:06:58 +02:00
|
|
|
*
|
2005-01-22 16:57:56 +01:00
|
|
|
* Authors: See AUTHORS file in top-level directory.
|
2004-11-30 18:07:42 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2008-09-12 17:06:58 +02:00
|
|
|
*
|
2004-11-30 18:07:42 +01:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2008-09-12 17:06:58 +02:00
|
|
|
*
|
2004-11-30 18:07:42 +01:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LASSO_WSF_PROFILE_H__
|
|
|
|
#define __LASSO_WSF_PROFILE_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
|
2008-09-12 17:06:58 +02:00
|
|
|
#endif /* __cplusplus */
|
2004-11-30 18:07:42 +01:00
|
|
|
|
2009-08-26 17:14:32 +02:00
|
|
|
#include "../id-ff/server.h"
|
|
|
|
#include "../id-ff/identity.h"
|
|
|
|
#include "../id-ff/session.h"
|
|
|
|
#include "../xml/soap_envelope.h"
|
|
|
|
#include "../xml/soap_binding_provider.h"
|
|
|
|
#include "../xml/soap_fault.h"
|
|
|
|
#include "../xml/saml_assertion.h"
|
|
|
|
#include "../xml/disco_description.h"
|
|
|
|
#include "../xml/disco_resource_offering.h"
|
|
|
|
#include "../xml/disco_description.h"
|
2004-11-30 18:07:42 +01:00
|
|
|
|
|
|
|
#define LASSO_TYPE_WSF_PROFILE (lasso_wsf_profile_get_type())
|
|
|
|
#define LASSO_WSF_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
|
2008-08-05 16:53:29 +02:00
|
|
|
LASSO_TYPE_WSF_PROFILE, LassoWsfProfile))
|
2004-11-30 18:07:42 +01:00
|
|
|
#define LASSO_WSF_PROFILE_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_WSF_PROFILE, LassoWsfProfileClass))
|
|
|
|
#define LASSO_IS_WSF_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_WSF_PROFILE))
|
|
|
|
#define LASSO_IS_WSF_PROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
|
2008-08-05 16:53:29 +02:00
|
|
|
LASSO_TYPE_WSF_PROFILE))
|
2004-11-30 18:07:42 +01:00
|
|
|
#define LASSO_WSF_PROFILE_GET_CLASS(o) \
|
2008-09-12 17:06:58 +02:00
|
|
|
(G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_WSF_PROFILE, LassoWsfProfileClass))
|
2004-11-30 18:07:42 +01:00
|
|
|
|
|
|
|
typedef struct _LassoWsfProfile LassoWsfProfile;
|
|
|
|
typedef struct _LassoWsfProfileClass LassoWsfProfileClass;
|
|
|
|
typedef struct _LassoWsfProfilePrivate LassoWsfProfilePrivate;
|
|
|
|
|
|
|
|
struct _LassoWsfProfile {
|
|
|
|
LassoNode parent;
|
|
|
|
|
|
|
|
LassoServer *server;
|
|
|
|
|
|
|
|
LassoNode *request;
|
|
|
|
LassoNode *response;
|
|
|
|
|
2005-03-02 09:24:59 +01:00
|
|
|
LassoSoapEnvelope *soap_envelope_request;
|
|
|
|
LassoSoapEnvelope *soap_envelope_response;
|
|
|
|
|
2004-11-30 18:07:42 +01:00
|
|
|
gchar *msg_url;
|
|
|
|
gchar *msg_body;
|
|
|
|
|
2005-08-08 13:31:17 +02:00
|
|
|
/*< private >*/
|
|
|
|
LassoIdentity *identity;
|
|
|
|
LassoSession *session;
|
2008-08-01 16:08:54 +02:00
|
|
|
|
2005-09-27 09:57:35 +02:00
|
|
|
LassoWsfProfilePrivate *private_data;
|
2004-11-30 18:07:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _LassoWsfProfileClass {
|
|
|
|
LassoNodeClass parent;
|
|
|
|
};
|
|
|
|
|
|
|
|
LASSO_EXPORT GType lasso_wsf_profile_get_type(void);
|
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
G_GNUC_DEPRECATED LASSO_EXPORT gint lasso_wsf_profile_move_credentials(LassoWsfProfile *src,
|
|
|
|
LassoWsfProfile *dest);
|
2005-09-19 16:40:51 +02:00
|
|
|
|
2008-08-01 16:10:29 +02:00
|
|
|
LASSO_EXPORT LassoIdentity* lasso_wsf_profile_get_identity(const LassoWsfProfile *profile);
|
|
|
|
LASSO_EXPORT LassoSession* lasso_wsf_profile_get_session(const LassoWsfProfile *profile);
|
|
|
|
LASSO_EXPORT gboolean lasso_wsf_profile_is_identity_dirty(const LassoWsfProfile *profile);
|
|
|
|
LASSO_EXPORT gboolean lasso_wsf_profile_is_session_dirty(const LassoWsfProfile *profile);
|
2005-08-08 13:31:17 +02:00
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_set_identity_from_dump(LassoWsfProfile *profile,
|
2005-09-27 09:57:35 +02:00
|
|
|
const gchar *dump);
|
2005-08-08 13:31:17 +02:00
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_set_session_from_dump(LassoWsfProfile *profile,
|
2005-09-27 09:57:35 +02:00
|
|
|
const gchar *dump);
|
2005-08-08 13:31:17 +02:00
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
G_GNUC_DEPRECATED LASSO_EXPORT LassoSoapEnvelope* lasso_wsf_profile_build_soap_envelope(
|
|
|
|
const char *refToMessageId,
|
2005-09-27 09:57:35 +02:00
|
|
|
const char *providerId);
|
2005-05-16 15:25:57 +02:00
|
|
|
|
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_build_soap_request_msg(LassoWsfProfile *profile);
|
|
|
|
|
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_build_soap_response_msg(LassoWsfProfile *profile);
|
|
|
|
|
ID-WSF: Lots of modifications
Migrate lots of code to use new utility macros. Try to simplify most
code paths or to factorize with LassoWsfProfile.
* lasso/id-wsf/wsf_profile.c:
Add API:
- lasso_wsf_profile_build_soap_response_msg to build SOAP fault for
Lasso errors,
- lasso_wsf_profile_set_msg_url_from_description, to set the
destination URL using the chosen LassoDiscoDescription (with
respect to the security mechanism),
- lasso_wsf_profile_init_soap_response to initialize a response to
the current request, to use in sub classes,
- lasso_wsf_profile_get_remote_provider_id, retrieve the SOAP
binding corresponding information,
- lasso_wsf_profile_get_remote_provider, simplification of
lasso_wsf_profile_get_remote_provider_id,
- lasso_wsf_profile_get_soap_fault, retrieve the last setted SOAP
fault, used by sub classes,
- lasso_wsf_profile_set_soap_fault, set a SOAP fault, to be returned
by the next call by lasso_wsf_profile_build_soap_response_msg, to
use in sub classes,
- lasso_wsf_profile_set/get_status_code, set/get the stored status
code, to use in the next lasso_xxx_build_response_message, to use
in sub classes.
Change name lasso_wsf_profile_get_description_autos to
lasso_wsf_profile_get_description_auto.
Do not access directly the session is_dirty field (it has been
sealed).
* lasso/id-wsf/wsf_profile.h:
Add helper macro lasso_wsf_profile_helper_set_status to set status
code of an ID-WSF response message containing a Status element using
the stored status code.
* lasso/id-wsf/wsf_profile_private.h:
Add new fields (moved public fields).
Add lasso_wsf_profile_set_msg_url_from_description,
lasso_wsf_profile_build_soap_fault_response_msg.
* lasso/id-wsf/data_service_private.h:
Remove file.
* lasso/id-wsf/data_service.h: Remove all public fields.
* lasso/id-wsf/data_service.c:
Remove private structure. Use the equivalents LassoWsfProfile private
fields. Update documentation. Use LassoWsfProfile generic functions
for initializing requests. Add API lasso_data_service_get_query_item,
lasso_data_service_get_answers, lasso_data_service_get_answer,
lasso_data_service_get_answers_by_select,
lasso_data_service_get_answer_for_item_id,
lasso_data_service_add_modification.
Remove lasso_data_service_need_redirect_user use equivalent function
lasso_interaction_profile_service_build_redirect_response_msg. Remove
lasso_data_service_get_resource_offering,
lasso_data_service_set_offering.
* lasso/id-wsf/discovery.c:
Add documentation. Change some signatures. Remove
lasso_discovery_get_description_auto. Change name of
lasso_discovery_init_insert to lasso_discovery_init_modify. Add a
generic lasso_discovery_process_request_msg.
Add internal function lasso_discovery_init_offering, to get
automatically an offering if possible. Remove useless init_from_xml.
Rework lasso_discovery_build_credential implementation.
overloading. Remove lasso_discovery_destroy.
* lasso/id-wsf/discovery.h:
Remove lasso_discovery_destroy.
* lasso/id-wsf/interaction_profile_service.c:
Add lasso_interaction_profile_service_build_redirect_response_msg.
* lasso/id-wsf/personal_profile_service.c:
Update lasso_personal_profile_service_get_email to use
lasso_data_service_get_answers_by_select.
* lasso/xml/dst_modify.c:
make modification parameter optional to the constructor.
2009-08-26 17:13:46 +02:00
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_init_soap_request(LassoWsfProfile *profile, LassoNode *request);
|
|
|
|
|
2009-08-26 17:14:32 +02:00
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_init_soap_response(LassoWsfProfile *profile,
|
|
|
|
LassoNode *response);
|
2005-05-16 15:25:57 +02:00
|
|
|
|
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_process_soap_request_msg(LassoWsfProfile *profile,
|
ID-WSF: Lots of modifications
Migrate lots of code to use new utility macros. Try to simplify most
code paths or to factorize with LassoWsfProfile.
* lasso/id-wsf/wsf_profile.c:
Add API:
- lasso_wsf_profile_build_soap_response_msg to build SOAP fault for
Lasso errors,
- lasso_wsf_profile_set_msg_url_from_description, to set the
destination URL using the chosen LassoDiscoDescription (with
respect to the security mechanism),
- lasso_wsf_profile_init_soap_response to initialize a response to
the current request, to use in sub classes,
- lasso_wsf_profile_get_remote_provider_id, retrieve the SOAP
binding corresponding information,
- lasso_wsf_profile_get_remote_provider, simplification of
lasso_wsf_profile_get_remote_provider_id,
- lasso_wsf_profile_get_soap_fault, retrieve the last setted SOAP
fault, used by sub classes,
- lasso_wsf_profile_set_soap_fault, set a SOAP fault, to be returned
by the next call by lasso_wsf_profile_build_soap_response_msg, to
use in sub classes,
- lasso_wsf_profile_set/get_status_code, set/get the stored status
code, to use in the next lasso_xxx_build_response_message, to use
in sub classes.
Change name lasso_wsf_profile_get_description_autos to
lasso_wsf_profile_get_description_auto.
Do not access directly the session is_dirty field (it has been
sealed).
* lasso/id-wsf/wsf_profile.h:
Add helper macro lasso_wsf_profile_helper_set_status to set status
code of an ID-WSF response message containing a Status element using
the stored status code.
* lasso/id-wsf/wsf_profile_private.h:
Add new fields (moved public fields).
Add lasso_wsf_profile_set_msg_url_from_description,
lasso_wsf_profile_build_soap_fault_response_msg.
* lasso/id-wsf/data_service_private.h:
Remove file.
* lasso/id-wsf/data_service.h: Remove all public fields.
* lasso/id-wsf/data_service.c:
Remove private structure. Use the equivalents LassoWsfProfile private
fields. Update documentation. Use LassoWsfProfile generic functions
for initializing requests. Add API lasso_data_service_get_query_item,
lasso_data_service_get_answers, lasso_data_service_get_answer,
lasso_data_service_get_answers_by_select,
lasso_data_service_get_answer_for_item_id,
lasso_data_service_add_modification.
Remove lasso_data_service_need_redirect_user use equivalent function
lasso_interaction_profile_service_build_redirect_response_msg. Remove
lasso_data_service_get_resource_offering,
lasso_data_service_set_offering.
* lasso/id-wsf/discovery.c:
Add documentation. Change some signatures. Remove
lasso_discovery_get_description_auto. Change name of
lasso_discovery_init_insert to lasso_discovery_init_modify. Add a
generic lasso_discovery_process_request_msg.
Add internal function lasso_discovery_init_offering, to get
automatically an offering if possible. Remove useless init_from_xml.
Rework lasso_discovery_build_credential implementation.
overloading. Remove lasso_discovery_destroy.
* lasso/id-wsf/discovery.h:
Remove lasso_discovery_destroy.
* lasso/id-wsf/interaction_profile_service.c:
Add lasso_interaction_profile_service_build_redirect_response_msg.
* lasso/id-wsf/personal_profile_service.c:
Update lasso_personal_profile_service_get_email to use
lasso_data_service_get_answers_by_select.
* lasso/xml/dst_modify.c:
make modification parameter optional to the constructor.
2009-08-26 17:13:46 +02:00
|
|
|
const gchar *message, const gchar *security_mech_id);
|
2005-05-16 15:25:57 +02:00
|
|
|
|
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_process_soap_response_msg(LassoWsfProfile *profile,
|
2005-09-27 09:57:35 +02:00
|
|
|
const gchar *message);
|
2004-11-30 18:07:42 +01:00
|
|
|
|
2008-08-01 16:08:41 +02:00
|
|
|
G_GNUC_DEPRECATED LASSO_EXPORT LassoSoapBindingProvider* lasso_wsf_profile_set_provider_soap_request(
|
2005-09-27 09:57:35 +02:00
|
|
|
LassoWsfProfile *profile, const char *providerId);
|
2004-11-30 18:07:42 +01:00
|
|
|
|
|
|
|
LASSO_EXPORT LassoWsfProfile* lasso_wsf_profile_new(LassoServer *server);
|
|
|
|
|
2008-09-12 17:06:58 +02:00
|
|
|
LASSO_EXPORT LassoWsfProfile* lasso_wsf_profile_new_full(LassoServer *server,
|
2008-08-05 16:53:29 +02:00
|
|
|
LassoDiscoResourceOffering *offering);
|
2008-08-01 16:08:41 +02:00
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
G_GNUC_DEPRECATED LASSO_EXPORT gboolean lasso_wsf_profile_principal_is_online(
|
|
|
|
LassoWsfProfile *profile);
|
2005-10-06 15:42:54 +02:00
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
G_GNUC_DEPRECATED LASSO_EXPORT gint lasso_wsf_profile_add_credential(LassoWsfProfile *profile,
|
|
|
|
xmlNode *credential);
|
2006-11-14 18:07:31 +01:00
|
|
|
|
2008-09-12 17:06:58 +02:00
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_set_description_from_offering(
|
|
|
|
LassoWsfProfile *profile,
|
|
|
|
const LassoDiscoResourceOffering *offering,
|
2008-08-01 16:07:24 +02:00
|
|
|
const char *security_mech_id);
|
2008-08-01 16:08:41 +02:00
|
|
|
|
2006-11-14 18:07:31 +01:00
|
|
|
LASSO_EXPORT void lasso_wsf_profile_set_description(LassoWsfProfile *profile,
|
|
|
|
LassoDiscoDescription *description);
|
2008-08-01 16:08:41 +02:00
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
LASSO_EXPORT LassoDiscoDescription *lasso_wsf_profile_get_description(
|
|
|
|
const LassoWsfProfile *profile);
|
2008-08-01 16:08:41 +02:00
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
LASSO_EXPORT LassoDiscoResourceOffering *lasso_wsf_profile_get_resource_offering(
|
|
|
|
LassoWsfProfile *profile);
|
2008-08-01 16:08:54 +02:00
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_set_security_mech_id(LassoWsfProfile *profile,
|
|
|
|
const char *security_mech_id);
|
2008-08-01 16:08:41 +02:00
|
|
|
|
2008-08-01 16:08:54 +02:00
|
|
|
LASSO_EXPORT const char *lasso_wsf_profile_get_security_mech_id(LassoWsfProfile *profile);
|
2008-08-01 16:08:41 +02:00
|
|
|
|
|
|
|
G_GNUC_DEPRECATED LASSO_EXPORT void lasso_wsf_profile_set_principal_status(LassoWsfProfile *profile,
|
2005-10-06 15:42:54 +02:00
|
|
|
const char *status);
|
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
G_GNUC_DEPRECATED LASSO_EXPORT void lasso_wsf_profile_set_principal_online(
|
|
|
|
LassoWsfProfile *profile);
|
2005-10-06 15:42:54 +02:00
|
|
|
|
2008-08-05 16:53:29 +02:00
|
|
|
G_GNUC_DEPRECATED LASSO_EXPORT void lasso_wsf_profile_set_principal_offline(
|
|
|
|
LassoWsfProfile *profile);
|
2005-10-06 15:42:54 +02:00
|
|
|
|
2008-09-12 17:06:58 +02:00
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_init(LassoWsfProfile *profile, LassoServer *server,
|
2008-08-01 16:08:54 +02:00
|
|
|
LassoDiscoResourceOffering *offering);
|
|
|
|
|
ID-WSF: Lots of modifications
Migrate lots of code to use new utility macros. Try to simplify most
code paths or to factorize with LassoWsfProfile.
* lasso/id-wsf/wsf_profile.c:
Add API:
- lasso_wsf_profile_build_soap_response_msg to build SOAP fault for
Lasso errors,
- lasso_wsf_profile_set_msg_url_from_description, to set the
destination URL using the chosen LassoDiscoDescription (with
respect to the security mechanism),
- lasso_wsf_profile_init_soap_response to initialize a response to
the current request, to use in sub classes,
- lasso_wsf_profile_get_remote_provider_id, retrieve the SOAP
binding corresponding information,
- lasso_wsf_profile_get_remote_provider, simplification of
lasso_wsf_profile_get_remote_provider_id,
- lasso_wsf_profile_get_soap_fault, retrieve the last setted SOAP
fault, used by sub classes,
- lasso_wsf_profile_set_soap_fault, set a SOAP fault, to be returned
by the next call by lasso_wsf_profile_build_soap_response_msg, to
use in sub classes,
- lasso_wsf_profile_set/get_status_code, set/get the stored status
code, to use in the next lasso_xxx_build_response_message, to use
in sub classes.
Change name lasso_wsf_profile_get_description_autos to
lasso_wsf_profile_get_description_auto.
Do not access directly the session is_dirty field (it has been
sealed).
* lasso/id-wsf/wsf_profile.h:
Add helper macro lasso_wsf_profile_helper_set_status to set status
code of an ID-WSF response message containing a Status element using
the stored status code.
* lasso/id-wsf/wsf_profile_private.h:
Add new fields (moved public fields).
Add lasso_wsf_profile_set_msg_url_from_description,
lasso_wsf_profile_build_soap_fault_response_msg.
* lasso/id-wsf/data_service_private.h:
Remove file.
* lasso/id-wsf/data_service.h: Remove all public fields.
* lasso/id-wsf/data_service.c:
Remove private structure. Use the equivalents LassoWsfProfile private
fields. Update documentation. Use LassoWsfProfile generic functions
for initializing requests. Add API lasso_data_service_get_query_item,
lasso_data_service_get_answers, lasso_data_service_get_answer,
lasso_data_service_get_answers_by_select,
lasso_data_service_get_answer_for_item_id,
lasso_data_service_add_modification.
Remove lasso_data_service_need_redirect_user use equivalent function
lasso_interaction_profile_service_build_redirect_response_msg. Remove
lasso_data_service_get_resource_offering,
lasso_data_service_set_offering.
* lasso/id-wsf/discovery.c:
Add documentation. Change some signatures. Remove
lasso_discovery_get_description_auto. Change name of
lasso_discovery_init_insert to lasso_discovery_init_modify. Add a
generic lasso_discovery_process_request_msg.
Add internal function lasso_discovery_init_offering, to get
automatically an offering if possible. Remove useless init_from_xml.
Rework lasso_discovery_build_credential implementation.
overloading. Remove lasso_discovery_destroy.
* lasso/id-wsf/discovery.h:
Remove lasso_discovery_destroy.
* lasso/id-wsf/interaction_profile_service.c:
Add lasso_interaction_profile_service_build_redirect_response_msg.
* lasso/id-wsf/personal_profile_service.c:
Update lasso_personal_profile_service_get_email to use
lasso_data_service_get_answers_by_select.
* lasso/xml/dst_modify.c:
make modification parameter optional to the constructor.
2009-08-26 17:13:46 +02:00
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_get_remote_provider(LassoWsfProfile *wsf_profile,
|
|
|
|
LassoProvider **provider);
|
|
|
|
|
|
|
|
LASSO_EXPORT const char* lasso_wsf_profile_get_remote_provider_id(LassoWsfProfile *wsf_profile);
|
|
|
|
|
|
|
|
LASSO_EXPORT LassoSoapFault* lasso_wsf_profile_get_soap_fault(LassoWsfProfile *wsf_profile);
|
|
|
|
|
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_set_soap_fault(LassoWsfProfile *wsf_profile, LassoSoapFault *soap_fault);
|
|
|
|
|
|
|
|
LASSO_EXPORT gint lasso_wsf_profile_set_status_code(LassoWsfProfile *wsf_profile, const char *code);
|
|
|
|
|
|
|
|
LASSO_EXPORT const char* lasso_wsf_profile_get_status_code(LassoWsfProfile *wsf_profile);
|
|
|
|
|
|
|
|
#define lasso_wsf_profile_helper_assign_resource_id(from,to) \
|
|
|
|
if ((from)->ResourceID) {\
|
|
|
|
lasso_assign_gobject((to)->ResourceID, (from)->ResourceID); \
|
|
|
|
} else if ((from)->EncryptedResourceID) {\
|
|
|
|
lasso_assign_gobject((to)->EncryptedResourceID, (from)->EncryptedResourceID); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define lasso_wsf_profile_helper_set_status(message, code) \
|
|
|
|
{ \
|
|
|
|
lasso_assign_new_gobject(message->Status, lasso_utility_status_new(code)); \
|
|
|
|
}
|
|
|
|
|
2004-11-30 18:07:42 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __LASSO_WSF_PROFILE_H__ */
|