~ubuntu-branches/ubuntu/edgy/lasso/edgy

« back to all changes in this revision

Viewing changes to lasso/id-ff/identity.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2005-09-16 02:16:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050916021649-lr5tuka6pfmmks44
Tags: 0.6.2-3ubuntu1
* debian/control: removed hardcoded php dependency, added php:Depends
  substvar
* debian/rules: added phpapiver, added substitution of php:Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: identity.h,v 1.17 2005/01/26 07:55:52 fpeters Exp $
 
2
 *
 
3
 * Lasso - A free implementation of the Liberty Alliance specifications.
 
4
 *
 
5
 * Copyright (C) 2004, 2005 Entr'ouvert
 
6
 * http://lasso.entrouvert.org
 
7
 * 
 
8
 * Authors: See AUTHORS file in top-level directory.
 
9
 *
 
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.
 
14
 * 
 
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.
 
19
 * 
 
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
 
23
 */
 
24
 
 
25
#ifndef __LASSO_IDENTITY_H__
 
26
#define __LASSO_IDENTITY_H__
 
27
 
 
28
#ifdef __cplusplus
 
29
extern "C" {
 
30
#endif /* __cplusplus */ 
 
31
 
 
32
#include <lasso/xml/xml.h>
 
33
#include <lasso/id-ff/federation.h>
 
34
 
 
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)) 
 
43
 
 
44
typedef struct _LassoIdentity LassoIdentity;
 
45
typedef struct _LassoIdentityClass LassoIdentityClass;
 
46
typedef struct _LassoIdentityPrivate LassoIdentityPrivate;
 
47
 
 
48
struct _LassoIdentity {
 
49
        LassoNode parent;
 
50
 
 
51
        /*< public >*/
 
52
        GHashTable *federations;
 
53
        gboolean is_dirty;
 
54
 
 
55
        /*< private >*/
 
56
        LassoIdentityPrivate *private_data;
 
57
};
 
58
 
 
59
struct _LassoIdentityClass {
 
60
        LassoNodeClass parent;
 
61
};
 
62
 
 
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);
 
66
 
 
67
LASSO_EXPORT LassoFederation* lasso_identity_get_federation(
 
68
                LassoIdentity *identity, const char *providerID);
 
69
 
 
70
LASSO_EXPORT void lasso_identity_destroy(LassoIdentity *identity);
 
71
 
 
72
LASSO_EXPORT gchar* lasso_identity_dump(LassoIdentity *identity);
 
73
 
 
74
#ifdef __cplusplus
 
75
}
 
76
#endif /* __cplusplus */
 
77
 
 
78
#endif /* __LASSO_IDENTITY_H__ */