source: trunk/src/core/scew/xelement.h @ 5673

Last change on this file since 5673 was 5673, checked in by ldelgass, 9 years ago

Fix line endings, set eol-style to native on all C/C++ sources.

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1/**
2 *
3 * @file     xelement.h
4 * @author   Aleix Conchillo Flaque <aleix@member.fsf.org>
5 * @date     Mon Nov 25, 2002 00:55
6 * @brief    SCEW private element type declaration
7 *
8 * $Id: xelement.h,v 1.2 2004/03/08 22:36:38 aleix Exp $
9 *
10 * @if copyright
11 *
12 * Copyright (C) 2002, 2003, 2004 Aleix Conchillo Flaque
13 *
14 * SCEW is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2.1 of the License, or (at your option) any later version.
18 *
19 * SCEW is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
27 *
28 * @endif
29 */
30
31
32#ifndef XELEMENT_H_ALEIX0211250055
33#define XELEMENT_H_ALEIX0211250055
34
35#include "element.h"
36
37#include "xattribute.h"
38
39
40/* Triply linked tree node */
41struct _scew_element
42{
43    XML_Char* name;
44    XML_Char* contents;
45    size_t used;                        /* # bytes used for contents. */
46    size_t allocated;                   /* # bytes allocated for contents */
47    attribute_list* attributes;
48
49    unsigned int n_children;
50
51    /* Immediately neighbour pointers */
52    scew_element* parent;
53    scew_element* child;
54    scew_element* left;
55    scew_element* right;
56
57    /* Last element in list */
58    scew_element* last_child;
59};
60
61#endif /* XELEMENT_H_ALEIX0211250055 */
Note: See TracBrowser for help on using the repository browser.