2008-09-12 17:06:58 +02:00
|
|
|
/* $Id$
|
2004-08-26 17:32:48 +02: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-08-26 17:32:48 +02: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-08-26 17:32:48 +02: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-08-26 17:32:48 +02:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2004-11-25 23:25:51 +01:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2004-08-26 17:32:48 +02:00
|
|
|
* GNU General Public License for more details.
|
2008-09-12 17:06:58 +02:00
|
|
|
*
|
2004-08-26 17:32:48 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2004-11-25 23:25:51 +01:00
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2004-08-26 17:32:48 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LASSO_NAME_REGISTRATION_H__
|
|
|
|
#define __LASSO_NAME_REGISTRATION_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2008-09-12 17:06:58 +02:00
|
|
|
#endif /* __cplusplus */
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2009-08-26 17:14:32 +02:00
|
|
|
#include "profile.h"
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2009-08-26 17:14:32 +02:00
|
|
|
#include "../xml/lib_register_name_identifier_request.h"
|
|
|
|
#include "../xml/lib_register_name_identifier_response.h"
|
2004-08-26 17:32:48 +02:00
|
|
|
|
|
|
|
#define LASSO_TYPE_NAME_REGISTRATION (lasso_name_registration_get_type())
|
2004-11-25 23:25:51 +01:00
|
|
|
#define LASSO_NAME_REGISTRATION(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_NAME_REGISTRATION, LassoNameRegistration))
|
|
|
|
#define LASSO_NAME_REGISTRATION_CLASS(klass) \
|
2004-11-29 17:38:58 +01:00
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_NAME_REGISTRATION, \
|
|
|
|
LassoNameRegistrationClass))
|
2004-11-25 23:25:51 +01:00
|
|
|
#define LASSO_IS_NAME_REGISTRATION(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_NAME_REGISTRATION))
|
|
|
|
#define LASSO_IS_NAME_REGISTRATION_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_NAME_REGISTRATION))
|
|
|
|
#define LASSO_NAME_REGISTRATION_GET_CLASS(o) \
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_NAME_REGISTRATION, LassoNameRegistrationClass))
|
2004-08-26 17:32:48 +02:00
|
|
|
|
|
|
|
typedef struct _LassoNameRegistration LassoNameRegistration;
|
|
|
|
typedef struct _LassoNameRegistrationClass LassoNameRegistrationClass;
|
|
|
|
|
|
|
|
struct _LassoNameRegistration {
|
2004-10-27 11:49:13 +02:00
|
|
|
LassoProfile parent;
|
2005-01-10 22:46:39 +01:00
|
|
|
|
|
|
|
/*< public >*/
|
2004-12-18 19:36:54 +01:00
|
|
|
LassoSamlNameIdentifier *oldNameIdentifier;
|
2008-09-12 17:06:58 +02:00
|
|
|
|
2005-01-10 22:46:39 +01:00
|
|
|
/*< private >*/
|
|
|
|
void *private_data; /* reserved for future use */
|
2004-08-26 17:32:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _LassoNameRegistrationClass {
|
2004-10-27 11:49:13 +02:00
|
|
|
LassoProfileClass parent;
|
2004-08-26 17:32:48 +02:00
|
|
|
};
|
|
|
|
|
2004-11-25 23:25:51 +01:00
|
|
|
LASSO_EXPORT GType lasso_name_registration_get_type (void);
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2004-10-27 11:49:13 +02:00
|
|
|
LASSO_EXPORT LassoNameRegistration* lasso_name_registration_new(LassoServer *server);
|
2004-09-29 18:24:55 +02:00
|
|
|
|
2004-10-27 11:49:13 +02:00
|
|
|
LASSO_EXPORT LassoNameRegistration* lasso_name_registration_new_from_dump(
|
|
|
|
LassoServer *server, const char *dump);
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2004-11-25 23:25:51 +01:00
|
|
|
LASSO_EXPORT gint lasso_name_registration_build_request_msg(
|
|
|
|
LassoNameRegistration *name_registration);
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2004-11-25 23:25:51 +01:00
|
|
|
LASSO_EXPORT gint lasso_name_registration_build_response_msg(
|
|
|
|
LassoNameRegistration *name_registration);
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2004-11-25 23:25:51 +01:00
|
|
|
LASSO_EXPORT void lasso_name_registration_destroy(LassoNameRegistration *name_registration);
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2004-11-25 23:25:51 +01:00
|
|
|
LASSO_EXPORT gchar* lasso_name_registration_dump(LassoNameRegistration *name_registration);
|
2004-09-29 18:24:55 +02:00
|
|
|
|
2004-10-27 11:49:13 +02:00
|
|
|
LASSO_EXPORT gint lasso_name_registration_init_request(LassoNameRegistration *name_registration,
|
2004-12-31 19:33:23 +01:00
|
|
|
char *remote_providerID, LassoHttpMethod http_method);
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2004-11-25 23:25:51 +01:00
|
|
|
LASSO_EXPORT gint lasso_name_registration_process_request_msg(
|
|
|
|
LassoNameRegistration *name_registration, gchar *request_msg);
|
2004-08-26 17:32:48 +02:00
|
|
|
|
2004-11-25 23:25:51 +01:00
|
|
|
LASSO_EXPORT gint lasso_name_registration_process_response_msg(
|
|
|
|
LassoNameRegistration *name_registration, gchar *response_msg);
|
2004-09-10 15:16:16 +02:00
|
|
|
|
2004-11-25 23:25:51 +01:00
|
|
|
LASSO_EXPORT gint lasso_name_registration_validate_request(
|
|
|
|
LassoNameRegistration *name_registration);
|
2008-08-05 16:53:29 +02:00
|
|
|
|
2004-08-26 17:32:48 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __LASSO_NAME_REGISTRATION_H__ */
|