~ubuntu-branches/ubuntu/jaunty/lasso/jaunty

« back to all changes in this revision

Viewing changes to swig/ws/wsa_relates_to.i

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-11-01 20:01:20 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071101200120-9ruoui67n24xyz9c
Tags: 2.1.1-2ubuntu1
* Merge from debian unstable (LP: #134095), remaining changes:
  + debian/control:
    - Modify Maintainer value to match DebianMaintainerField spec.
  + configure{,.ac}:
    - Add missing quotes around the value for PHP[45]_LIBS.
* Fix two lintian warnings:
  + debian/control:
    - liblasso3-dev: Replace ${Source-Version} with ${binary:Version}
  + debian/rules:
    - Don't ignore a make clean error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: wsa_relates_to.i,v 1.0 2005/10/14 15:17:55 fpeters Exp $ 
 
2
 *
 
3
 * Lasso - A free implementation of the Liberty Alliance specifications.
 
4
 *
 
5
 * Copyright (C) 2004-2007 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 SWIGPHP4
 
26
%rename(WsAddrRelatesTo) LassoWsAddrRelatesTo;
 
27
#endif
 
28
typedef struct {
 
29
        char *content;
 
30
#ifndef SWIGPHP4
 
31
        %rename(relationshipType) RelationshipType;
 
32
#endif
 
33
        char *RelationshipType;
 
34
} LassoWsAddrRelatesTo;
 
35
%extend LassoWsAddrRelatesTo {
 
36
 
 
37
        /* any attribute */
 
38
        %immutable attributes;
 
39
        %newobject attributes_get;
 
40
        LassoStringDict *attributes;
 
41
 
 
42
        /* Constructor, Destructor & Static Methods */
 
43
        LassoWsAddrRelatesTo();
 
44
        ~LassoWsAddrRelatesTo();
 
45
 
 
46
        /* Method inherited from LassoNode */
 
47
        %newobject dump;
 
48
        char* dump();
 
49
}
 
50
 
 
51
%{
 
52
 
 
53
/* any attribute */
 
54
LassoStringDict* LassoWsAddrRelatesTo_attributes_get(LassoWsAddrRelatesTo *self);
 
55
#define LassoWsAddrRelatesTo_get_attributes LassoWsAddrRelatesTo_attributes_get
 
56
LassoStringDict* LassoWsAddrRelatesTo_attributes_get(LassoWsAddrRelatesTo *self) {
 
57
        return self->attributes;
 
58
}
 
59
/* TODO: implement attributes_set */
 
60
 
 
61
 
 
62
/* Constructors, destructors & static methods implementations */
 
63
 
 
64
#define new_LassoWsAddrRelatesTo lasso_wsa_relates_to_new
 
65
#define delete_LassoWsAddrRelatesTo(self) lasso_node_destroy(LASSO_NODE(self))
 
66
 
 
67
/* Implementations of methods inherited from LassoNode */
 
68
 
 
69
#define LassoWsAddrRelatesTo_dump(self) lasso_node_dump(LASSO_NODE(self))
 
70
 
 
71
%}
 
72