| 1 |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */ |
| 2 |
/* gdome-xml-entity.h |
| 3 |
* |
| 4 |
* Copyright (C) 1999 Raph Levien <[email protected]> |
| 5 |
* Copyright (C) 2000 Mathieu Lacage <[email protected]> |
| 6 |
* Copyright (C) 2001 Paolo Casarini <[email protected]> |
| 7 |
* |
| 8 |
* This library is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU Lesser General Public |
| 10 |
* License as published by the Free Software Foundation; either |
| 11 |
* version 2.1 of the License, or (at your option) any later version. |
| 12 |
* |
| 13 |
* This library is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* Lesser General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Lesser General Public |
| 19 |
* License along with this library; if not, write to the Free Software |
| 20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 21 |
*/ |
| 22 |
|
| 23 |
|
| 24 |
/* ---------------------------------------------------------------- */ |
| 25 |
/* --------------------------- Entity --------------------------- */ |
| 26 |
/* ---------------------------------------------------------------- */ |
| 27 |
|
| 28 |
|
| 29 |
#ifndef GDOME_ENTITY_FILE |
| 30 |
#define GDOME_ENTITY_FILE |
| 31 |
|
| 32 |
struct _GdomeEntityVtab { |
| 33 |
GdomeNodeVtab super; |
| 34 |
GdomeDOMString *(*publicId) (GdomeEntity *self, GdomeException *exc); |
| 35 |
GdomeDOMString *(*systemId) (GdomeEntity *self, GdomeException *exc); |
| 36 |
GdomeDOMString *(*notationName) (GdomeEntity *self, GdomeException *exc); |
| 37 |
}; |
| 38 |
|
| 39 |
typedef struct _Gdome_xml_Entity Gdome_xml_Entity; |
| 40 |
struct _Gdome_xml_Entity { |
| 41 |
GdomeEntity super; |
| 42 |
const GdomeEntityVtab *vtab; |
| 43 |
int refcnt; |
| 44 |
xmlEntity *n; |
| 45 |
GdomeAccessType accessType; |
| 46 |
Gdome_xml_ListenerList *ll; |
| 47 |
}; |
| 48 |
|
| 49 |
|
| 50 |
extern const GdomeEntityVtab gdome_xml_ent_vtab; |
| 51 |
|
| 52 |
gpointer gdome_xml_ent_query_interface (GdomeNode *self, |
| 53 |
const char *interface, |
| 54 |
GdomeException *exc); |
| 55 |
GdomeDOMString * gdome_xml_ent_publicId (GdomeEntity *self, |
| 56 |
GdomeException *exc); |
| 57 |
GdomeDOMString * gdome_xml_ent_systemId (GdomeEntity *self, |
| 58 |
GdomeException *exc); |
| 59 |
GdomeDOMString * gdome_xml_ent_notationName (GdomeEntity *self, |
| 60 |
GdomeException *exc); |
| 61 |
|
| 62 |
|
| 63 |
#endif /* GDOME_ENTITY_FILE */ |
| 64 |
|