Debian Codegraph @

libgdome/gdomecore/gdome-xml-attribute.h

raw
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
2 /* gdome-xml-attribute.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 /* --------------------------- Attr --------------------------- */
26 /* -------------------------------------------------------------- */
27
28
29 #ifndef GDOME_ATTRIBUTE_FILE
30 #define GDOME_ATTRIBUTE_FILE
31
32 struct _GdomeAttrVtab {
33 GdomeNodeVtab super;
34 GdomeDOMString *(*name) (GdomeAttr *self, GdomeException *exc);
35 GdomeElement *(*ownerElement) (GdomeAttr *self, GdomeException *exc);
36 GdomeBoolean (*specified) (GdomeAttr *self, GdomeException *exc);
37 GdomeDOMString *(*value) (GdomeAttr *self, GdomeException *exc);
38 void (*set_value) (GdomeAttr *self, GdomeDOMString *value, GdomeException *exc);
39 };
40
41 typedef struct _Gdome_xml_Attr Gdome_xml_Attr;
42 struct _Gdome_xml_Attr {
43 GdomeAttr super;
44 const GdomeAttrVtab *vtab;
45 int refcnt;
46 xmlAttr *n;
47 GdomeAccessType accessType;
48 Gdome_xml_ListenerList *ll;
49 };
50
51 GdomeNode * gdome_xml_a_mkref_ns (xmlNode *node,
52 xmlNs *ns);
53 void gdome_xml_a_unref_ns (GdomeNode *self,
54 GdomeException *exc);
55 gpointer gdome_xml_a_query_interface (GdomeNode *self,
56 const char *interface,
57 GdomeException *exc);
58 GdomeBoolean gdome_xml_a_specified (GdomeAttr *self,
59 GdomeException *exc);
60 GdomeDOMString * gdome_xml_a_name (GdomeAttr *self,
61 GdomeException *exc);
62 GdomeElement * gdome_xml_a_ownerElement (GdomeAttr *self,
63 GdomeException *exc);
64 GdomeDOMString * gdome_xml_a_value (GdomeAttr *self,
65 GdomeException *exc);
66 void gdome_xml_a_set_value (GdomeAttr *self,
67 GdomeDOMString *nodeValue,
68 GdomeException *exc);
69 extern const GdomeAttrVtab gdome_xml_a_vtab;
70
71
72 #endif /* GDOME_ATTRIBUTE_FILE */