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

« back to all changes in this revision

Viewing changes to lasso/xml/lib_request_authn_context.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: lib_request_authn_context.h,v 1.2 2004/07/22 06:59:03 eraviart Exp $ 
 
1
/* $Id: lib_request_authn_context.h,v 1.10 2005/02/10 13:53:36 nclapies Exp $ 
2
2
 *
3
3
 * Lasso - A free implementation of the Liberty Alliance specifications.
4
4
 *
5
 
 * Copyright (C) 2004 Entr'ouvert
 
5
 * Copyright (C) 2004, 2005 Entr'ouvert
6
6
 * http://lasso.entrouvert.org
7
7
 * 
8
 
 * Authors: Nicolas Clapies <nclapies@entrouvert.com>
9
 
 *          Valery Febvre <vfebvre@easter-eggs.com>
 
8
 * Authors: See AUTHORS file in top-level directory.
10
9
 *
11
10
 * This program is free software; you can redistribute it and/or modify
12
11
 * it under the terms of the GNU General Public License as published by
33
32
#include <lasso/xml/xml.h>
34
33
 
35
34
#define LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT (lasso_lib_request_authn_context_get_type())
36
 
#define LASSO_LIB_REQUEST_AUTHN_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT, LassoLibRequestAuthnContext))
37
 
#define LASSO_LIB_REQUEST_AUTHN_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT, LassoLibRequestAuthnContextClass))
38
 
#define LASSO_IS_LIB_REQUEST_AUTHN_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT))
39
 
#define LASSO_IS_LIB_REQUEST_AUTHN_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT))
40
 
#define LASSO_LIB_REQUEST_AUTHN_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT, LassoLibRequestAuthnContextClass)) 
 
35
#define LASSO_LIB_REQUEST_AUTHN_CONTEXT(obj) \
 
36
        (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT, \
 
37
                                    LassoLibRequestAuthnContext))
 
38
#define LASSO_LIB_REQUEST_AUTHN_CONTEXT_CLASS(klass) \
 
39
        (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT, \
 
40
                                 LassoLibRequestAuthnContextClass))
 
41
#define LASSO_IS_LIB_REQUEST_AUTHN_CONTEXT(obj) \
 
42
        (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT))
 
43
#define LASSO_IS_LIB_REQUEST_AUTHN_CONTEXT_CLASS(klass) \
 
44
        (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT))
 
45
#define LASSO_LIB_REQUEST_AUTHN_CONTEXT_GET_CLASS(o) \
 
46
        (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_LIB_REQUEST_AUTHN_CONTEXT, \
 
47
                                    LassoLibRequestAuthnContextClass)) 
41
48
 
42
49
typedef struct _LassoLibRequestAuthnContext LassoLibRequestAuthnContext;
43
50
typedef struct _LassoLibRequestAuthnContextClass LassoLibRequestAuthnContextClass;
44
51
 
45
52
struct _LassoLibRequestAuthnContext {
46
 
  LassoNode parent;
47
 
  /*< private >*/
 
53
        LassoNode parent;
 
54
 
 
55
        /*< public >*/
 
56
        /* <xs:element name="AuthnContextClassRef" type="xs:anyURI" maxOccurs="unbounded"/> */
 
57
        GList *AuthnContextClassRef;
 
58
        /* <xs:element name="AuthnContextStatementRef" type="xs:anyURI" maxOccurs="unbounded"/> */
 
59
        GList *AuthnContextStatementRef;
 
60
        /* <xs:element name="AuthnContextComparison" type="AuthnContextComparisonType" 
 
61
         *   minOccurs="0"/> */
 
62
        char *AuthnContextComparison;
48
63
};
49
64
 
50
65
struct _LassoLibRequestAuthnContextClass {
51
 
  LassoNodeClass parent;
 
66
        LassoNodeClass parent;
52
67
};
53
68
 
54
69
LASSO_EXPORT GType lasso_lib_request_authn_context_get_type(void);
55
 
LASSO_EXPORT LassoNode* lasso_lib_request_authn_context_new(void);
56
 
 
57
 
LASSO_EXPORT void lasso_lib_request_authn_context_add_authnContextClassRef     (LassoLibRequestAuthnContext *node,
58
 
                                                                                const xmlChar *authnContextClassRef);
59
 
 
60
 
LASSO_EXPORT void lasso_lib_request_authn_context_add_authnContextStatementRef (LassoLibRequestAuthnContext *node,
61
 
                                                                                const xmlChar *authnContextStatementRef);
62
 
 
63
 
LASSO_EXPORT void lasso_lib_request_authn_context_set_authnContextComparison   (LassoLibRequestAuthnContext *node,
64
 
                                                                                const xmlChar *authnContextComparison);
 
70
LASSO_EXPORT LassoLibRequestAuthnContext* lasso_lib_request_authn_context_new(void);
65
71
 
66
72
#ifdef __cplusplus
67
73
}