109 lines
2.9 KiB
C
109 lines
2.9 KiB
C
/* $Id$
|
|
*
|
|
* Lasso - A free implementation of the Liberty Alliance specifications.
|
|
*
|
|
* Copyright (C) 2004, 2005 Entr'ouvert
|
|
* http://lasso.entrouvert.org
|
|
*
|
|
* Authors: See AUTHORS file in top-level directory.
|
|
*
|
|
* 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.
|
|
*
|
|
* 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.
|
|
*
|
|
* 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
|
|
*/
|
|
|
|
#include <lasso/id-wsf/wsf_profile.h>
|
|
|
|
/*****************************************************************************/
|
|
/* public methods */
|
|
/*****************************************************************************/
|
|
#include <lasso/xml/disco_modify.h>
|
|
gint
|
|
lasso_wsf_profile_build_request_msg(LassoWsfProfile *profile)
|
|
{
|
|
/* FIXME : set keys */
|
|
profile->msg_body = lasso_node_export_to_soap(profile->request);
|
|
return 0;
|
|
}
|
|
|
|
gint
|
|
lasso_wsf_profile_build_response_msg(LassoWsfProfile *profile)
|
|
{
|
|
/* FIXME : set keys */
|
|
profile->msg_body = lasso_node_export_to_soap(profile->response);
|
|
return 0;
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/* private methods */
|
|
/*****************************************************************************/
|
|
|
|
static LassoNodeClass *parent_class = NULL;
|
|
|
|
|
|
/*****************************************************************************/
|
|
/* instance and class init functions */
|
|
/*****************************************************************************/
|
|
|
|
static void
|
|
instance_init(LassoWsfProfile *profile)
|
|
{
|
|
profile->server = NULL;
|
|
profile->request = NULL;
|
|
profile->response = NULL;
|
|
profile->msg_url = NULL;
|
|
profile->msg_body = NULL;
|
|
}
|
|
|
|
static void
|
|
class_init(LassoWsfProfileClass *klass)
|
|
{
|
|
|
|
}
|
|
|
|
GType
|
|
lasso_wsf_profile_get_type()
|
|
{
|
|
static GType this_type = 0;
|
|
|
|
if (!this_type) {
|
|
static const GTypeInfo this_info = {
|
|
sizeof(LassoWsfProfileClass),
|
|
NULL,
|
|
NULL,
|
|
(GClassInitFunc) class_init,
|
|
NULL,
|
|
NULL,
|
|
sizeof(LassoWsfProfile),
|
|
0,
|
|
(GInstanceInitFunc) instance_init,
|
|
};
|
|
|
|
this_type = g_type_register_static(LASSO_TYPE_NODE,
|
|
"LassoWsfProfile", &this_info, 0);
|
|
}
|
|
return this_type;
|
|
}
|
|
|
|
LassoWsfProfile*
|
|
lasso_wsf_profile_new(LassoServer *server)
|
|
{
|
|
LassoWsfProfile *profile = NULL;
|
|
|
|
g_return_val_if_fail(server != NULL, NULL);
|
|
|
|
profile = g_object_new(LASSO_TYPE_WSF_PROFILE, NULL);
|
|
|
|
return profile;
|
|
}
|