OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [classpath/] [native/] [jni/] [xmlj/] [xmlj_sax.h] - Blame information for rev 774

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 774 jeremybenn
/* xmlj_sax.h -
2
   Copyright (C) 2004 Free Software Foundation, Inc.
3
 
4
This file is part of GNU Classpath.
5
 
6
GNU Classpath is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
9
any later version.
10
 
11
GNU Classpath is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GNU Classpath; see the file COPYING.  If not, write to the
18
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
02110-1301 USA.
20
 
21
Linking this library statically or dynamically with other modules is
22
making a combined work based on this library.  Thus, the terms and
23
conditions of the GNU General Public License cover the whole
24
combination.
25
 
26
As a special exception, the copyright holders of this library give you
27
permission to link this library with independent modules to produce an
28
executable, regardless of the license terms of these independent
29
modules, and to copy and distribute the resulting executable under
30
terms of your choice, provided that you also meet, for each linked
31
independent module, the terms and conditions of the license of that
32
module.  An independent module is a module which is not derived from
33
or based on this library.  If you modify this library, you may extend
34
this exception to your version of the library, but you are not
35
obligated to do so.  If you do not wish to do so, delete this
36
exception statement from your version. */
37
 
38
#ifndef XMLJ_SAX_H
39
#define XMLJ_SAX_H
40
 
41
#include "gnu_xml_libxmlj_sax_GnomeLocator.h"
42
#include "gnu_xml_libxmlj_sax_GnomeXMLReader.h"
43
 
44
#include <libxml/SAX.h>
45
#include <libxml/parser.h>
46
 
47
xmlSAXHandlerPtr
48
xmljNewSAXHandler (jboolean contentHandler,
49
                   jboolean dtdHandler,
50
                   jboolean entityResolver,
51
                   jboolean errorHandler,
52
                   jboolean declarationHandler,
53
                   jboolean lexicalHandler);
54
 
55
xmlParserInputPtr
56
xmljExternalEntityLoader (const char *systemId, const char *publicId,
57
                          xmlParserCtxtPtr context);
58
 
59
/* -- Function declarations for callback functions -- */
60
 
61
void xmljSAXInternalSubset(void *ctx,
62
                           const xmlChar *name,
63
                           const xmlChar *publicId,
64
                           const xmlChar *systemId);
65
 
66
xmlParserInputPtr xmljSAXResolveEntity(void *ctx,
67
                                       const xmlChar *publicId,
68
                                       const xmlChar *systemId);
69
 
70
xmlEntityPtr xmljSAXGetEntity(void *ctx,
71
                              const xmlChar *name);
72
 
73
void xmljSAXEntityDecl(void *ctx,
74
                       const xmlChar *name,
75
                       int type,
76
                       const xmlChar *publicId,
77
                       const xmlChar *systemId,
78
                       xmlChar *content);
79
 
80
void xmljSAXNotationDecl(void *ctx,
81
                         const xmlChar *name,
82
                         const xmlChar *publicId,
83
                         const xmlChar *systemId);
84
 
85
void xmljSAXAttributeDecl(void *ctx,
86
                          const xmlChar *elem,
87
                          const xmlChar *fullName,
88
                          int type,
89
                          int def,
90
                          const xmlChar *defaultValue,
91
                          xmlEnumerationPtr tree);
92
 
93
void xmljSAXElementDecl(void *ctx,
94
                        const xmlChar *name,
95
                        int type,
96
                        xmlElementContentPtr content);
97
 
98
void xmljSAXUnparsedEntityDecl(void *ctx,
99
                               const xmlChar *name,
100
                               const xmlChar *publicId,
101
                               const xmlChar *systemId,
102
                               const xmlChar *notationName);
103
 
104
void xmljSAXSetDocumentLocator(void *ctx,
105
                               xmlSAXLocatorPtr loc);
106
 
107
void xmljSAXStartDocument(void *ctx);
108
 
109
void xmljSAXEndDocument(void *ctx);
110
 
111
void xmljSAXStartElement(void *ctx,
112
                         const xmlChar *name,
113
                         const xmlChar **atts);
114
 
115
void xmljSAXEndElement(void *ctx,
116
                       const xmlChar *name);
117
 
118
void xmljSAXReference(void *ctx,
119
                      const xmlChar *name);
120
 
121
void xmljSAXCharacters(void *ctx,
122
                       const xmlChar *ch,
123
                       int len);
124
 
125
void xmljSAXIgnorableWhitespace(void *ctx,
126
                                const xmlChar *ch,
127
                                int len);
128
 
129
void xmljSAXProcessingInstruction(void *ctx,
130
                                  const xmlChar *target,
131
                                  const xmlChar *data);
132
 
133
void xmljSAXComment(void *ctx,
134
                    const xmlChar *value);
135
 
136
void xmljSAXCDataBlock(void *ctx,
137
                       const xmlChar *ch,
138
                       int len);
139
 
140
void xmljSAXWarning(void *ctx,
141
                    const char *msg,
142
                    ...);
143
 
144
void xmljSAXError(void *ctx,
145
                  const char *msg,
146
                  ...);
147
 
148
void xmljSAXFatalError(void *ctx,
149
                       const char *msg,
150
                       ...);
151
 
152
void xmljCheckWellFormed(xmlParserCtxtPtr ctx);
153
 
154
jstring xmljAttributeTypeName (JNIEnv *env,
155
                               int type);
156
 
157
jstring xmljAttributeModeName (JNIEnv *env,
158
                               int type);
159
 
160
#endif /* !defined XMLJ_SAX_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.