Debian Codegraph @

libgdome/gdomecore/gdome-xml-nodel.h

raw
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
2 /* gdome-xml-nodel.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 #ifndef GDOME_FILE_NODEL
25 #define GDOME_FILE_NODEL
26
27 struct _GdomeNodeListVtab {
28 void (*ref) (GdomeNodeList *self, GdomeException *exc);
29 void (*unref) (GdomeNodeList *self, GdomeException *exc);
30 gpointer (*query_interface) (GdomeNodeList *self, const char *interface, GdomeException *exc);
31 GdomeNode *(*item) (GdomeNodeList *self, gulong index, GdomeException *exc);
32 gulong (*length) (GdomeNodeList *self, GdomeException *exc);
33 };
34
35 typedef struct _Gdome_xml_NodeList Gdome_xml_NodeList;
36 struct _Gdome_xml_NodeList {
37 GdomeNodeList super;
38 const GdomeNodeListVtab *vtab;
39 int refcnt;
40 GdomeNode *root;
41 GdomeDOMString *tagName;
42 GdomeDOMString *tagURI;
43 GdomeAccessType accessType;
44 };
45
46 GdomeNodeList * gdome_xml_nl_mkref (GdomeNode *root,
47 GdomeDOMString *tagName,
48 GdomeDOMString *tagURI,
49 GdomeAccessType accessType);
50 void gdome_xml_nl_ref (GdomeNodeList *self,
51 GdomeException *exc);
52 void gdome_xml_nl_unref (GdomeNodeList *self,
53 GdomeException *exc);
54 gpointer gdome_xml_nl_query_interface (GdomeNodeList *self,
55 const char *interface,
56 GdomeException *exc);
57 GdomeNode * gdome_xml_nl_item (GdomeNodeList *self,
58 gulong index,
59 GdomeException *exc);
60 gulong gdome_xml_nl_length (GdomeNodeList *self,
61 GdomeException *exc);
62
63 extern const GdomeNodeListVtab gdome_xml_nl_vtab;
64
65 #endif /* GDOME_FILE_NODEL */
66
67
68
69
70
71
72