1
/* $Id: identity.h,v 1.17 2005/01/26 07:55:52 fpeters Exp $
3
* Lasso - A free implementation of the Liberty Alliance specifications.
5
* Copyright (C) 2004, 2005 Entr'ouvert
6
* http://lasso.entrouvert.org
8
* Authors: See AUTHORS file in top-level directory.
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
#ifndef __LASSO_IDENTITY_H__
26
#define __LASSO_IDENTITY_H__
30
#endif /* __cplusplus */
32
#include <lasso/xml/xml.h>
33
#include <lasso/id-ff/federation.h>
35
#define LASSO_TYPE_IDENTITY (lasso_identity_get_type())
36
#define LASSO_IDENTITY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_IDENTITY, LassoIdentity))
37
#define LASSO_IDENTITY_CLASS(klass) \
38
(G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_IDENTITY, LassoIdentityClass))
39
#define LASSO_IS_IDENTITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_IDENTITY))
40
#define LASSO_IS_IDENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_IDENTITY))
41
#define LASSO_IDENTITY_GET_CLASS(o) \
42
(G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_IDENTITY, LassoIdentityClass))
44
typedef struct _LassoIdentity LassoIdentity;
45
typedef struct _LassoIdentityClass LassoIdentityClass;
46
typedef struct _LassoIdentityPrivate LassoIdentityPrivate;
48
struct _LassoIdentity {
52
GHashTable *federations;
56
LassoIdentityPrivate *private_data;
59
struct _LassoIdentityClass {
60
LassoNodeClass parent;
63
LASSO_EXPORT GType lasso_identity_get_type(void);
64
LASSO_EXPORT LassoIdentity* lasso_identity_new(void);
65
LASSO_EXPORT LassoIdentity* lasso_identity_new_from_dump(const gchar *dump);
67
LASSO_EXPORT LassoFederation* lasso_identity_get_federation(
68
LassoIdentity *identity, const char *providerID);
70
LASSO_EXPORT void lasso_identity_destroy(LassoIdentity *identity);
72
LASSO_EXPORT gchar* lasso_identity_dump(LassoIdentity *identity);
76
#endif /* __cplusplus */
78
#endif /* __LASSO_IDENTITY_H__ */