1
/* $Id: name_identifier_mapping.h,v 1.7 2004/08/04 10:15:10 valos Exp $
3
* Lasso - A free implementation of the Liberty Alliance specifications.
5
* Copyright (C) 2004 Entr'ouvert
6
* http://lasso.entrouvert.org
8
* Authors: Nicolas Clapies <nclapies@entrouvert.com>
9
* Valery Febvre <vfebvre@easter-eggs.com>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
#ifndef __LASSO_NAME_IDENTIFIER_MAPPING_H__
27
#define __LASSO_NAME_IDENTIFIER_MAPPING_H__
31
#endif /* __cplusplus */
33
#include <lasso/environs/profile.h>
35
#include <lasso/protocols/name_identifier_mapping_request.h>
36
#include <lasso/protocols/name_identifier_mapping_response.h>
38
#define LASSO_TYPE_NAME_IDENTIFIER_MAPPING (lasso_name_identifier_mapping_get_type())
39
#define LASSO_NAME_IDENTIFIER_MAPPING(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_NAME_IDENTIFIER_MAPPING, LassoNameIdentifierMapping))
40
#define LASSO_NAME_IDENTIFIER_MAPPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_NAME_IDENTIFIER_MAPPING, LassoNameIdentifierMappingClass))
41
#define LASSO_IS_NAME_IDENTIFIER_MAPPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_NAME_IDENTIFIER_MAPPING))
42
#define LASSO_IS_NAME_IDENTIFIER_MAPPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_NAME_IDENTIFIER_MAPPING))
43
#define LASSO_NAME_IDENTIFIER_MAPPING_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_NAME_IDENTIFIER_MAPPING, LassoNameIdentifierMappingClass))
45
typedef struct _LassoNameIdentifierMapping LassoNameIdentifierMapping;
46
typedef struct _LassoNameIdentifierMappingClass LassoNameIdentifierMappingClass;
48
struct _LassoNameIdentifierMapping {
54
struct _LassoNameIdentifierMappingClass {
55
LassoProfileClass parent;
59
LASSO_EXPORT GType lasso_name_identifier_mapping_get_type (void);
61
LASSO_EXPORT LassoNameIdentifierMapping* lasso_name_identifier_mapping_new (LassoServer *server,
62
LassoIdentity *identity,
63
lassoProviderType provider_type);
65
LASSO_EXPORT gint lasso_name_identifier_mapping_build_request_msg (LassoNameIdentifierMapping *mapping);
67
LASSO_EXPORT gint lasso_name_identifier_mapping_build_response_msg (LassoNameIdentifierMapping *mapping);
69
LASSO_EXPORT gint lasso_name_identifier_mapping_init_request (LassoNameIdentifierMapping *mapping,
70
gchar *remote_providerID);
72
LASSO_EXPORT gint lasso_name_identifier_mapping_process_request_msg (LassoNameIdentifierMapping *mapping,
74
lassoHttpMethod request_method);
76
LASSO_EXPORT gint lasso_name_identifier_mapping_process_response_msg (LassoNameIdentifierMapping *mapping,
78
lassoHttpMethod response_method);
82
#endif /* __cplusplus */
84
#endif /* __LASSO_NAME_IDENTIFIER_MAPPING_H__ */