1 /*
2 * legacy.c: set of deprecated routines, not to be used anymore but
3 * kept purely for ABI compatibility
4 *
5 * See Copyright for the status of this software.
6 *
7 * [email protected]
8 */
9
10 #define IN_LIBXML
11 #include "libxml.h"
12
13 #ifdef LIBXML_LEGACY_ENABLED
14 #include <stdio.h>
15 #include <string.h>
16
17 #include <libxml/parser.h>
18
19 /************************************************************************
20 * *
21 * Deprecated functions kept for compatibility *
22 * *
23 ************************************************************************/
24
25 #ifdef LIBXML_HTML_ENABLED
26 XMLPUBFUN xmlChar *
27 htmlDecodeEntities(void *ctxt, int len, xmlChar end, xmlChar end2,
28 xmlChar end3);
29
30 xmlChar *
htmlDecodeEntities(void * ctxt ATTRIBUTE_UNUSED,int len ATTRIBUTE_UNUSED,xmlChar end ATTRIBUTE_UNUSED,xmlChar end2 ATTRIBUTE_UNUSED,xmlChar end3 ATTRIBUTE_UNUSED)31 htmlDecodeEntities(void *ctxt ATTRIBUTE_UNUSED, int len ATTRIBUTE_UNUSED,
32 xmlChar end ATTRIBUTE_UNUSED, xmlChar end2 ATTRIBUTE_UNUSED,
33 xmlChar end3 ATTRIBUTE_UNUSED) {
34 return (NULL);
35 }
36 #endif
37
38 /*
39 * entities.h
40 */
41
42 XMLPUBFUN void
43 xmlInitializePredefinedEntities(void);
44
45 void
xmlInitializePredefinedEntities(void)46 xmlInitializePredefinedEntities(void) {
47 }
48
49 XMLPUBFUN void
50 xmlCleanupPredefinedEntities(void);
51
52 void
xmlCleanupPredefinedEntities(void)53 xmlCleanupPredefinedEntities(void) {
54 }
55
56 XMLPUBFUN const xmlChar *
57 xmlEncodeEntities(void *doc, const xmlChar *input);
58
59 const xmlChar *
xmlEncodeEntities(void * doc ATTRIBUTE_UNUSED,const xmlChar * input ATTRIBUTE_UNUSED)60 xmlEncodeEntities(void *doc ATTRIBUTE_UNUSED,
61 const xmlChar *input ATTRIBUTE_UNUSED) {
62 return (NULL);
63 }
64
65 /*
66 * parser.h
67 *
68 * Headers are public for now.
69 */
70
71 int
xmlGetFeaturesList(int * len,const char ** result ATTRIBUTE_UNUSED)72 xmlGetFeaturesList(int *len, const char **result ATTRIBUTE_UNUSED) {
73 *len = 0;
74 return(0);
75 }
76
77 int
xmlGetFeature(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,const char * name ATTRIBUTE_UNUSED,void * result ATTRIBUTE_UNUSED)78 xmlGetFeature(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,
79 const char *name ATTRIBUTE_UNUSED,
80 void *result ATTRIBUTE_UNUSED) {
81 return(-1);
82 }
83
84 int
xmlSetFeature(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,const char * name ATTRIBUTE_UNUSED,void * value ATTRIBUTE_UNUSED)85 xmlSetFeature(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,
86 const char *name ATTRIBUTE_UNUSED,
87 void *value ATTRIBUTE_UNUSED) {
88 return(-1);
89 }
90
91 /*
92 * parserInternals.h
93 */
94
95 XMLPUBFUN xmlChar *
96 xmlDecodeEntities(void *ctxt, int len, int what, xmlChar end, xmlChar end2,
97 xmlChar end3);
98
99 xmlChar *
xmlDecodeEntities(void * ctxt ATTRIBUTE_UNUSED,int len ATTRIBUTE_UNUSED,int what ATTRIBUTE_UNUSED,xmlChar end ATTRIBUTE_UNUSED,xmlChar end2 ATTRIBUTE_UNUSED,xmlChar end3 ATTRIBUTE_UNUSED)100 xmlDecodeEntities(void *ctxt ATTRIBUTE_UNUSED, int len ATTRIBUTE_UNUSED,
101 int what ATTRIBUTE_UNUSED, xmlChar end ATTRIBUTE_UNUSED,
102 xmlChar end2 ATTRIBUTE_UNUSED,
103 xmlChar end3 ATTRIBUTE_UNUSED) {
104 return (NULL);
105 }
106
107 XMLPUBFUN xmlChar *
108 xmlNamespaceParseNCName(void *ctxt);
109
110 xmlChar *
xmlNamespaceParseNCName(void * ctxt ATTRIBUTE_UNUSED)111 xmlNamespaceParseNCName(void *ctxt ATTRIBUTE_UNUSED) {
112 return (NULL);
113 }
114
115 XMLPUBFUN xmlChar *
116 xmlNamespaceParseQName(void *ctxt, xmlChar **prefix);
117
118 xmlChar *
xmlNamespaceParseQName(void * ctxt ATTRIBUTE_UNUSED,xmlChar ** prefix ATTRIBUTE_UNUSED)119 xmlNamespaceParseQName(void *ctxt ATTRIBUTE_UNUSED,
120 xmlChar **prefix ATTRIBUTE_UNUSED) {
121 return (NULL);
122 }
123
124 XMLPUBFUN xmlChar *
125 xmlNamespaceParseNSDef(void *ctxt);
126
127 xmlChar *
xmlNamespaceParseNSDef(void * ctxt ATTRIBUTE_UNUSED)128 xmlNamespaceParseNSDef(void *ctxt ATTRIBUTE_UNUSED) {
129 return (NULL);
130 }
131
132 XMLPUBFUN xmlChar *
133 xmlParseQuotedString(void *ctxt);
134
135 xmlChar *
xmlParseQuotedString(void * ctxt ATTRIBUTE_UNUSED)136 xmlParseQuotedString(void *ctxt ATTRIBUTE_UNUSED) {
137 return (NULL);
138 }
139
140 XMLPUBFUN void
141 xmlParseNamespace(void *ctxt);
142
143 void
xmlParseNamespace(void * ctxt ATTRIBUTE_UNUSED)144 xmlParseNamespace(void *ctxt ATTRIBUTE_UNUSED) {
145 }
146
147 XMLPUBFUN xmlChar *
148 xmlScanName(void *ctxt);
149
150 xmlChar *
xmlScanName(void * ctxt ATTRIBUTE_UNUSED)151 xmlScanName(void *ctxt ATTRIBUTE_UNUSED) {
152 return (NULL);
153 }
154
155 XMLPUBFUN void
156 xmlParserHandleReference(void *ctxt);
157
158 void
xmlParserHandleReference(void * ctxt ATTRIBUTE_UNUSED)159 xmlParserHandleReference(void *ctxt ATTRIBUTE_UNUSED) {
160 }
161
162 XMLPUBFUN void
163 xmlHandleEntity(void *ctxt, void *entity);
164
165 void
xmlHandleEntity(void * ctxt ATTRIBUTE_UNUSED,void * entity ATTRIBUTE_UNUSED)166 xmlHandleEntity(void *ctxt ATTRIBUTE_UNUSED, void *entity ATTRIBUTE_UNUSED) {
167 }
168
169 typedef void
170 (*xmlEntityReferenceFunc)(void *ent, void *firstNode, void *lastNode);
171
172 XMLPUBFUN void
173 xmlSetEntityReferenceFunc(xmlEntityReferenceFunc func);
174
175 void
xmlSetEntityReferenceFunc(xmlEntityReferenceFunc func ATTRIBUTE_UNUSED)176 xmlSetEntityReferenceFunc(xmlEntityReferenceFunc func ATTRIBUTE_UNUSED) {
177 }
178
179 /*
180 * tree.h
181 */
182
183 XMLPUBFUN void *
184 xmlNewGlobalNs(void *doc, const xmlChar *href, const xmlChar *prefix);
185
186 void *
xmlNewGlobalNs(void * doc ATTRIBUTE_UNUSED,const xmlChar * href ATTRIBUTE_UNUSED,const xmlChar * prefix ATTRIBUTE_UNUSED)187 xmlNewGlobalNs(void *doc ATTRIBUTE_UNUSED,
188 const xmlChar *href ATTRIBUTE_UNUSED,
189 const xmlChar *prefix ATTRIBUTE_UNUSED) {
190 return (NULL);
191 }
192
193 XMLPUBFUN void
194 xmlUpgradeOldNs(void *doc);
195
196 void
xmlUpgradeOldNs(void * doc ATTRIBUTE_UNUSED)197 xmlUpgradeOldNs(void *doc ATTRIBUTE_UNUSED) {
198 }
199
200 /*
201 * SAX.h
202 */
203
204 XMLPUBFUN const xmlChar *
205 getPublicId(void *ctx);
206
207 const xmlChar *
getPublicId(void * ctx ATTRIBUTE_UNUSED)208 getPublicId(void *ctx ATTRIBUTE_UNUSED){
209 return(NULL);
210 }
211
212 XMLPUBFUN const xmlChar *
213 getSystemId(void *ctx);
214
215 const xmlChar *
getSystemId(void * ctx ATTRIBUTE_UNUSED)216 getSystemId(void *ctx ATTRIBUTE_UNUSED) {
217 return(NULL);
218 }
219
220 XMLPUBFUN int
221 getLineNumber(void *ctx);
222
223 int
getLineNumber(void * ctx ATTRIBUTE_UNUSED)224 getLineNumber(void *ctx ATTRIBUTE_UNUSED) {
225 return(0);
226 }
227
228 XMLPUBFUN int
229 getColumnNumber(void *ctx);
230
231 int
getColumnNumber(void * ctx ATTRIBUTE_UNUSED)232 getColumnNumber(void *ctx ATTRIBUTE_UNUSED) {
233 return(0);
234 }
235
236 XMLPUBFUN int
237 isStandalone(void *ctx);
238
239 int
isStandalone(void * ctx ATTRIBUTE_UNUSED)240 isStandalone(void *ctx ATTRIBUTE_UNUSED) {
241 return(0);
242 }
243
244 XMLPUBFUN int
245 hasInternalSubset(void *ctx);
246
247 int
hasInternalSubset(void * ctx ATTRIBUTE_UNUSED)248 hasInternalSubset(void *ctx ATTRIBUTE_UNUSED) {
249 return(0);
250 }
251
252 XMLPUBFUN int
253 hasExternalSubset(void *ctx);
254
255 int
hasExternalSubset(void * ctx ATTRIBUTE_UNUSED)256 hasExternalSubset(void *ctx ATTRIBUTE_UNUSED) {
257 return(0);
258 }
259
260 XMLPUBFUN void
261 internalSubset(void *ctx, const xmlChar *name,
262 const xmlChar *ExternalID, const xmlChar *SystemID);
263
264 void
internalSubset(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED,const xmlChar * ExternalID ATTRIBUTE_UNUSED,const xmlChar * SystemID ATTRIBUTE_UNUSED)265 internalSubset(void *ctx ATTRIBUTE_UNUSED,
266 const xmlChar *name ATTRIBUTE_UNUSED,
267 const xmlChar *ExternalID ATTRIBUTE_UNUSED,
268 const xmlChar *SystemID ATTRIBUTE_UNUSED) {
269 }
270
271 XMLPUBFUN void
272 externalSubset(void *ctx, const xmlChar *name,
273 const xmlChar *ExternalID, const xmlChar *SystemID);
274
275 void
externalSubset(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED,const xmlChar * ExternalID ATTRIBUTE_UNUSED,const xmlChar * SystemID ATTRIBUTE_UNUSED)276 externalSubset(void *ctx ATTRIBUTE_UNUSED,
277 const xmlChar *name ATTRIBUTE_UNUSED,
278 const xmlChar *ExternalID ATTRIBUTE_UNUSED,
279 const xmlChar *SystemID ATTRIBUTE_UNUSED) {
280 }
281
282 XMLPUBFUN void *
283 resolveEntity(void *ctx, const xmlChar * publicId,
284 const xmlChar * systemId);
285
286 void *
resolveEntity(void * ctx ATTRIBUTE_UNUSED,const xmlChar * publicId ATTRIBUTE_UNUSED,const xmlChar * systemId ATTRIBUTE_UNUSED)287 resolveEntity(void *ctx ATTRIBUTE_UNUSED,
288 const xmlChar * publicId ATTRIBUTE_UNUSED,
289 const xmlChar * systemId ATTRIBUTE_UNUSED) {
290 return(NULL);
291 }
292
293 XMLPUBFUN void *
294 getEntity(void *ctx, const xmlChar *name);
295
296 void *
getEntity(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED)297 getEntity(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name ATTRIBUTE_UNUSED) {
298 return(NULL);
299 }
300
301 XMLPUBFUN void *
302 getParameterEntity(void *ctx, const xmlChar *name);
303
304 void *
getParameterEntity(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED)305 getParameterEntity(void *ctx ATTRIBUTE_UNUSED,
306 const xmlChar *name ATTRIBUTE_UNUSED) {
307 return(NULL);
308 }
309
310 XMLPUBFUN void
311 entityDecl(void *ctx, const xmlChar *name, int type,
312 const xmlChar *publicId, const xmlChar *systemId,
313 xmlChar *content);
314
315 void
entityDecl(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED,int type ATTRIBUTE_UNUSED,const xmlChar * publicId ATTRIBUTE_UNUSED,const xmlChar * systemId ATTRIBUTE_UNUSED,xmlChar * content ATTRIBUTE_UNUSED)316 entityDecl(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name ATTRIBUTE_UNUSED,
317 int type ATTRIBUTE_UNUSED, const xmlChar *publicId ATTRIBUTE_UNUSED,
318 const xmlChar *systemId ATTRIBUTE_UNUSED,
319 xmlChar *content ATTRIBUTE_UNUSED) {
320 }
321
322 XMLPUBFUN void
323 attributeDecl(void *ctx, const xmlChar *elem, const xmlChar *fullname,
324 int type, int def, const xmlChar *defaultValue, void *tree);
325
326 void
attributeDecl(void * ctx ATTRIBUTE_UNUSED,const xmlChar * elem ATTRIBUTE_UNUSED,const xmlChar * fullname ATTRIBUTE_UNUSED,int type ATTRIBUTE_UNUSED,int def ATTRIBUTE_UNUSED,const xmlChar * defaultValue ATTRIBUTE_UNUSED,void * tree ATTRIBUTE_UNUSED)327 attributeDecl(void *ctx ATTRIBUTE_UNUSED,
328 const xmlChar *elem ATTRIBUTE_UNUSED,
329 const xmlChar *fullname ATTRIBUTE_UNUSED,
330 int type ATTRIBUTE_UNUSED, int def ATTRIBUTE_UNUSED,
331 const xmlChar *defaultValue ATTRIBUTE_UNUSED,
332 void *tree ATTRIBUTE_UNUSED) {
333 }
334
335 XMLPUBFUN void
336 elementDecl(void *ctx, const xmlChar *name, int type, void *content);
337
338 void
elementDecl(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED,int type ATTRIBUTE_UNUSED,void * content ATTRIBUTE_UNUSED)339 elementDecl(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name ATTRIBUTE_UNUSED,
340 int type ATTRIBUTE_UNUSED, void *content ATTRIBUTE_UNUSED) {
341 }
342
343 XMLPUBFUN void
344 notationDecl(void *ctx, const xmlChar *name, const xmlChar *publicId,
345 const xmlChar *systemId);
346
347 void
notationDecl(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED,const xmlChar * publicId ATTRIBUTE_UNUSED,const xmlChar * systemId ATTRIBUTE_UNUSED)348 notationDecl(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name ATTRIBUTE_UNUSED,
349 const xmlChar *publicId ATTRIBUTE_UNUSED,
350 const xmlChar *systemId ATTRIBUTE_UNUSED) {
351 }
352
353 XMLPUBFUN void
354 unparsedEntityDecl(void *ctx, const xmlChar *name, const xmlChar *publicId,
355 const xmlChar *systemId, const xmlChar *notationName);
356
357 void
unparsedEntityDecl(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED,const xmlChar * publicId ATTRIBUTE_UNUSED,const xmlChar * systemId ATTRIBUTE_UNUSED,const xmlChar * notationName ATTRIBUTE_UNUSED)358 unparsedEntityDecl(void *ctx ATTRIBUTE_UNUSED,
359 const xmlChar *name ATTRIBUTE_UNUSED,
360 const xmlChar *publicId ATTRIBUTE_UNUSED,
361 const xmlChar *systemId ATTRIBUTE_UNUSED,
362 const xmlChar *notationName ATTRIBUTE_UNUSED) {
363 }
364
365 XMLPUBFUN void
366 setDocumentLocator(void *ctx, void *loc);
367
368 void
setDocumentLocator(void * ctx ATTRIBUTE_UNUSED,void * loc ATTRIBUTE_UNUSED)369 setDocumentLocator(void *ctx ATTRIBUTE_UNUSED, void *loc ATTRIBUTE_UNUSED) {
370 }
371
372 XMLPUBFUN void
373 startDocument(void *ctx);
374
375 void
startDocument(void * ctx ATTRIBUTE_UNUSED)376 startDocument(void *ctx ATTRIBUTE_UNUSED) {
377 }
378
379 XMLPUBFUN void
380 endDocument(void *ctx);
381
382 void
endDocument(void * ctx ATTRIBUTE_UNUSED)383 endDocument(void *ctx ATTRIBUTE_UNUSED) {
384 }
385
386 XMLPUBFUN void
387 attribute(void *ctx, const xmlChar *fullname, const xmlChar *value);
388
389 void
attribute(void * ctx ATTRIBUTE_UNUSED,const xmlChar * fullname ATTRIBUTE_UNUSED,const xmlChar * value ATTRIBUTE_UNUSED)390 attribute(void *ctx ATTRIBUTE_UNUSED, const xmlChar *fullname ATTRIBUTE_UNUSED,
391 const xmlChar *value ATTRIBUTE_UNUSED) {
392 }
393
394 XMLPUBFUN void
395 startElement(void *ctx, const xmlChar *fullname, const xmlChar **atts);
396
397 void
startElement(void * ctx ATTRIBUTE_UNUSED,const xmlChar * fullname ATTRIBUTE_UNUSED,const xmlChar ** atts ATTRIBUTE_UNUSED)398 startElement(void *ctx ATTRIBUTE_UNUSED,
399 const xmlChar *fullname ATTRIBUTE_UNUSED,
400 const xmlChar **atts ATTRIBUTE_UNUSED) {
401 xmlSAX2StartElement(ctx, fullname, atts);
402 }
403
404 XMLPUBFUN void
405 endElement(void *ctx, const xmlChar *name);
406
407 void
endElement(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED)408 endElement(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name ATTRIBUTE_UNUSED) {
409 }
410
411 XMLPUBFUN void
412 reference(void *ctx, const xmlChar *name);
413
414 void
reference(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED)415 reference(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name ATTRIBUTE_UNUSED) {
416 }
417
418 XMLPUBFUN void
419 characters(void *ctx, const xmlChar *ch, int len);
420
421 void
characters(void * ctx ATTRIBUTE_UNUSED,const xmlChar * ch ATTRIBUTE_UNUSED,int len ATTRIBUTE_UNUSED)422 characters(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch ATTRIBUTE_UNUSED,
423 int len ATTRIBUTE_UNUSED) {
424 }
425
426 XMLPUBFUN void
427 ignorableWhitespace(void *ctx, const xmlChar *ch, int len);
428
429 void
ignorableWhitespace(void * ctx ATTRIBUTE_UNUSED,const xmlChar * ch ATTRIBUTE_UNUSED,int len ATTRIBUTE_UNUSED)430 ignorableWhitespace(void *ctx ATTRIBUTE_UNUSED,
431 const xmlChar *ch ATTRIBUTE_UNUSED,
432 int len ATTRIBUTE_UNUSED) {
433 }
434
435 XMLPUBFUN void
436 processingInstruction(void *ctx, const xmlChar *target, const xmlChar *data);
437
438 void
processingInstruction(void * ctx ATTRIBUTE_UNUSED,const xmlChar * target ATTRIBUTE_UNUSED,const xmlChar * data ATTRIBUTE_UNUSED)439 processingInstruction(void *ctx ATTRIBUTE_UNUSED,
440 const xmlChar *target ATTRIBUTE_UNUSED,
441 const xmlChar *data ATTRIBUTE_UNUSED) {
442 }
443
444 XMLPUBFUN void
445 globalNamespace(void *ctx, const xmlChar *href, const xmlChar *prefix);
446
447 void
globalNamespace(void * ctx ATTRIBUTE_UNUSED,const xmlChar * href ATTRIBUTE_UNUSED,const xmlChar * prefix ATTRIBUTE_UNUSED)448 globalNamespace(void *ctx ATTRIBUTE_UNUSED,
449 const xmlChar *href ATTRIBUTE_UNUSED,
450 const xmlChar *prefix ATTRIBUTE_UNUSED) {
451 }
452
453 XMLPUBFUN void
454 setNamespace(void *ctx, const xmlChar *name);
455
456 void
setNamespace(void * ctx ATTRIBUTE_UNUSED,const xmlChar * name ATTRIBUTE_UNUSED)457 setNamespace(void *ctx ATTRIBUTE_UNUSED,
458 const xmlChar *name ATTRIBUTE_UNUSED) {
459 }
460
461 XMLPUBFUN void *
462 getNamespace(void *ctx);
463
464 void *
getNamespace(void * ctx ATTRIBUTE_UNUSED)465 getNamespace(void *ctx ATTRIBUTE_UNUSED) {
466 return (NULL);
467 }
468
469 XMLPUBFUN int
470 checkNamespace(void *ctx, xmlChar *namespace);
471
472 int
checkNamespace(void * ctx ATTRIBUTE_UNUSED,xmlChar * namespace ATTRIBUTE_UNUSED)473 checkNamespace(void *ctx ATTRIBUTE_UNUSED,
474 xmlChar *namespace ATTRIBUTE_UNUSED) {
475 return (0);
476 }
477
478 XMLPUBFUN void
479 namespaceDecl(void *ctx, const xmlChar *href, const xmlChar *prefix);
480
481 void
namespaceDecl(void * ctx ATTRIBUTE_UNUSED,const xmlChar * href ATTRIBUTE_UNUSED,const xmlChar * prefix ATTRIBUTE_UNUSED)482 namespaceDecl(void *ctx ATTRIBUTE_UNUSED, const xmlChar *href ATTRIBUTE_UNUSED,
483 const xmlChar *prefix ATTRIBUTE_UNUSED) {
484 }
485
486 XMLPUBFUN void
487 comment(void *ctx, const xmlChar *value);
488
489 void
comment(void * ctx ATTRIBUTE_UNUSED,const xmlChar * value ATTRIBUTE_UNUSED)490 comment(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value ATTRIBUTE_UNUSED) {
491 }
492
493 XMLPUBFUN void
494 cdataBlock(void *ctx, const xmlChar *value, int len);
495
496 void
cdataBlock(void * ctx ATTRIBUTE_UNUSED,const xmlChar * value ATTRIBUTE_UNUSED,int len ATTRIBUTE_UNUSED)497 cdataBlock(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value ATTRIBUTE_UNUSED,
498 int len ATTRIBUTE_UNUSED) {
499 }
500
501 XMLPUBFUN void
502 initxmlDefaultSAXHandler(void *hdlr, int warning);
503
504 void
initxmlDefaultSAXHandler(void * hdlr ATTRIBUTE_UNUSED,int warning ATTRIBUTE_UNUSED)505 initxmlDefaultSAXHandler(void *hdlr ATTRIBUTE_UNUSED,
506 int warning ATTRIBUTE_UNUSED) {
507 }
508
509 XMLPUBFUN void
510 inithtmlDefaultSAXHandler(void *hdlr);
511
512 void
inithtmlDefaultSAXHandler(void * hdlr ATTRIBUTE_UNUSED)513 inithtmlDefaultSAXHandler(void *hdlr ATTRIBUTE_UNUSED) {
514 }
515
516 /*
517 * nanoftp.h
518 */
519
520 #ifdef _WIN32
521 #include <winsock2.h>
522 #else
523 #define SOCKET int
524 #endif
525
526 typedef void
527 (*ftpListCallback)(void *userData, const char *filename, const char *attrib,
528 const char *owner, const char *group, unsigned long size,
529 int links, int year, const char *month, int day, int hour,
530 int minute);
531
532 typedef void
533 (*ftpDataCallback) (void *userData, const char *data, int len);
534
535 XMLPUBFUN void
536 xmlNanoFTPInit(void);
537
538 void
xmlNanoFTPInit(void)539 xmlNanoFTPInit(void) {
540 }
541
542 XMLPUBFUN void
543 xmlNanoFTPCleanup(void);
544
545 void
xmlNanoFTPCleanup(void)546 xmlNanoFTPCleanup(void) {
547 }
548
549 XMLPUBFUN void
550 xmlNanoFTPProxy(const char *host, int port, const char *user,
551 const char *passwd, int type);
552
553 void
xmlNanoFTPProxy(const char * host ATTRIBUTE_UNUSED,int port ATTRIBUTE_UNUSED,const char * user ATTRIBUTE_UNUSED,const char * passwd ATTRIBUTE_UNUSED,int type ATTRIBUTE_UNUSED)554 xmlNanoFTPProxy(const char *host ATTRIBUTE_UNUSED, int port ATTRIBUTE_UNUSED,
555 const char *user ATTRIBUTE_UNUSED,
556 const char *passwd ATTRIBUTE_UNUSED, int type ATTRIBUTE_UNUSED) {
557 }
558
559 XMLPUBFUN int
560 xmlNanoFTPUpdateURL(void *ctx, const char *URL);
561
562 int
xmlNanoFTPUpdateURL(void * ctx ATTRIBUTE_UNUSED,const char * URL ATTRIBUTE_UNUSED)563 xmlNanoFTPUpdateURL(void *ctx ATTRIBUTE_UNUSED,
564 const char *URL ATTRIBUTE_UNUSED) {
565 return(-1);
566 }
567
568 XMLPUBFUN void
569 xmlNanoFTPScanProxy(const char *URL);
570
571 void
xmlNanoFTPScanProxy(const char * URL ATTRIBUTE_UNUSED)572 xmlNanoFTPScanProxy(const char *URL ATTRIBUTE_UNUSED) {
573 }
574
575 XMLPUBFUN void *
576 xmlNanoFTPNewCtxt(const char *URL);
577
578 void*
xmlNanoFTPNewCtxt(const char * URL ATTRIBUTE_UNUSED)579 xmlNanoFTPNewCtxt(const char *URL ATTRIBUTE_UNUSED) {
580 return(NULL);
581 }
582
583 XMLPUBFUN void
584 xmlNanoFTPFreeCtxt(void *ctx);
585
586 void
xmlNanoFTPFreeCtxt(void * ctx ATTRIBUTE_UNUSED)587 xmlNanoFTPFreeCtxt(void * ctx ATTRIBUTE_UNUSED) {
588 }
589
590 XMLPUBFUN int
591 xmlNanoFTPGetResponse(void *ctx);
592
593 int
xmlNanoFTPGetResponse(void * ctx ATTRIBUTE_UNUSED)594 xmlNanoFTPGetResponse(void *ctx ATTRIBUTE_UNUSED) {
595 return(-1);
596 }
597
598 XMLPUBFUN int
599 xmlNanoFTPCheckResponse(void *ctx);
600
601 int
xmlNanoFTPCheckResponse(void * ctx ATTRIBUTE_UNUSED)602 xmlNanoFTPCheckResponse(void *ctx ATTRIBUTE_UNUSED) {
603 return(-1);
604 }
605
606 XMLPUBFUN int
607 xmlNanoFTPQuit(void *ctx);
608
609 int
xmlNanoFTPQuit(void * ctx ATTRIBUTE_UNUSED)610 xmlNanoFTPQuit(void *ctx ATTRIBUTE_UNUSED) {
611 return(-1);
612 }
613
614 XMLPUBFUN int
615 xmlNanoFTPConnect(void *ctx);
616
617 int
xmlNanoFTPConnect(void * ctx ATTRIBUTE_UNUSED)618 xmlNanoFTPConnect(void *ctx ATTRIBUTE_UNUSED) {
619 return(-1);
620 }
621
622 XMLPUBFUN void *
623 xmlNanoFTPConnectTo(const char *server, int port);
624
625 void*
xmlNanoFTPConnectTo(const char * server ATTRIBUTE_UNUSED,int port ATTRIBUTE_UNUSED)626 xmlNanoFTPConnectTo(const char *server ATTRIBUTE_UNUSED,
627 int port ATTRIBUTE_UNUSED) {
628 return(NULL);
629 }
630
631 XMLPUBFUN int
632 xmlNanoFTPCwd(void *ctx, const char *directory);
633
634 int
xmlNanoFTPCwd(void * ctx ATTRIBUTE_UNUSED,const char * directory ATTRIBUTE_UNUSED)635 xmlNanoFTPCwd(void *ctx ATTRIBUTE_UNUSED,
636 const char *directory ATTRIBUTE_UNUSED) {
637 return(-1);
638 }
639
640 XMLPUBFUN int
641 xmlNanoFTPDele(void *ctx, const char *file);
642
643 int
xmlNanoFTPDele(void * ctx ATTRIBUTE_UNUSED,const char * file ATTRIBUTE_UNUSED)644 xmlNanoFTPDele(void *ctx ATTRIBUTE_UNUSED, const char *file ATTRIBUTE_UNUSED) {
645 return(-1);
646 }
647
648 XMLPUBFUN SOCKET
649 xmlNanoFTPGetConnection(void *ctx);
650
651 SOCKET
xmlNanoFTPGetConnection(void * ctx ATTRIBUTE_UNUSED)652 xmlNanoFTPGetConnection(void *ctx ATTRIBUTE_UNUSED) {
653 return(-1);
654 }
655
656 XMLPUBFUN int
657 xmlNanoFTPCloseConnection(void *ctx);
658
659 int
xmlNanoFTPCloseConnection(void * ctx ATTRIBUTE_UNUSED)660 xmlNanoFTPCloseConnection(void *ctx ATTRIBUTE_UNUSED) {
661 return(-1);
662 }
663
664 XMLPUBFUN int
665 xmlNanoFTPList(void *ctx, ftpListCallback callback, void *userData,
666 const char *filename);
667
668 int
xmlNanoFTPList(void * ctx ATTRIBUTE_UNUSED,ftpListCallback callback ATTRIBUTE_UNUSED,void * userData ATTRIBUTE_UNUSED,const char * filename ATTRIBUTE_UNUSED)669 xmlNanoFTPList(void *ctx ATTRIBUTE_UNUSED,
670 ftpListCallback callback ATTRIBUTE_UNUSED,
671 void *userData ATTRIBUTE_UNUSED,
672 const char *filename ATTRIBUTE_UNUSED) {
673 return(-1);
674 }
675
676 XMLPUBFUN SOCKET
677 xmlNanoFTPGetSocket(void *ctx, const char *filename);
678
679 SOCKET
xmlNanoFTPGetSocket(void * ctx ATTRIBUTE_UNUSED,const char * filename ATTRIBUTE_UNUSED)680 xmlNanoFTPGetSocket(void *ctx ATTRIBUTE_UNUSED,
681 const char *filename ATTRIBUTE_UNUSED) {
682 return(-1);
683 }
684
685 XMLPUBFUN int
686 xmlNanoFTPGet(void *ctx, ftpDataCallback callback, void *userData,
687 const char *filename);
688
689 int
xmlNanoFTPGet(void * ctx ATTRIBUTE_UNUSED,ftpDataCallback callback ATTRIBUTE_UNUSED,void * userData ATTRIBUTE_UNUSED,const char * filename ATTRIBUTE_UNUSED)690 xmlNanoFTPGet(void *ctx ATTRIBUTE_UNUSED,
691 ftpDataCallback callback ATTRIBUTE_UNUSED,
692 void *userData ATTRIBUTE_UNUSED,
693 const char *filename ATTRIBUTE_UNUSED) {
694 return(-1);
695 }
696
697 XMLPUBFUN int
698 xmlNanoFTPRead(void *ctx, void *dest, int len);
699
700 int
xmlNanoFTPRead(void * ctx ATTRIBUTE_UNUSED,void * dest ATTRIBUTE_UNUSED,int len ATTRIBUTE_UNUSED)701 xmlNanoFTPRead(void *ctx ATTRIBUTE_UNUSED, void *dest ATTRIBUTE_UNUSED,
702 int len ATTRIBUTE_UNUSED) {
703 return(-1);
704 }
705
706 XMLPUBFUN void *
707 xmlNanoFTPOpen(const char *URL);
708
709 void*
xmlNanoFTPOpen(const char * URL ATTRIBUTE_UNUSED)710 xmlNanoFTPOpen(const char *URL ATTRIBUTE_UNUSED) {
711 return(NULL);
712 }
713
714 XMLPUBFUN int
715 xmlNanoFTPClose(void *ctx);
716
717 int
xmlNanoFTPClose(void * ctx ATTRIBUTE_UNUSED)718 xmlNanoFTPClose(void *ctx ATTRIBUTE_UNUSED) {
719 return(-1);
720 }
721
722 XMLPUBFUN int
723 xmlIOFTPMatch(const char *filename);
724
725 int
xmlIOFTPMatch(const char * filename ATTRIBUTE_UNUSED)726 xmlIOFTPMatch(const char *filename ATTRIBUTE_UNUSED) {
727 return(0);
728 }
729
730 XMLPUBFUN void *
731 xmlIOFTPOpen(const char *filename);
732
733 void *
xmlIOFTPOpen(const char * filename ATTRIBUTE_UNUSED)734 xmlIOFTPOpen(const char *filename ATTRIBUTE_UNUSED) {
735 return(NULL);
736 }
737
738 XMLPUBFUN int
739 xmlIOFTPRead(void *context, char *buffer, int len);
740
741 int
xmlIOFTPRead(void * context ATTRIBUTE_UNUSED,char * buffer ATTRIBUTE_UNUSED,int len ATTRIBUTE_UNUSED)742 xmlIOFTPRead(void *context ATTRIBUTE_UNUSED, char *buffer ATTRIBUTE_UNUSED,
743 int len ATTRIBUTE_UNUSED) {
744 return(-1);
745 }
746
747 XMLPUBFUN int
748 xmlIOFTPClose(void *context);
749
750 int
xmlIOFTPClose(void * context ATTRIBUTE_UNUSED)751 xmlIOFTPClose(void *context ATTRIBUTE_UNUSED) {
752 return(-1);
753 }
754
755 /*
756 * xpointer.h
757 */
758
759 XMLPUBFUN void *
760 xmlXPtrNewRange(void *start, int startindex,
761 void *end, int endindex);
762
763 void *
xmlXPtrNewRange(void * start ATTRIBUTE_UNUSED,int startindex ATTRIBUTE_UNUSED,void * end ATTRIBUTE_UNUSED,int endindex ATTRIBUTE_UNUSED)764 xmlXPtrNewRange(void *start ATTRIBUTE_UNUSED,
765 int startindex ATTRIBUTE_UNUSED,
766 void *end ATTRIBUTE_UNUSED,
767 int endindex ATTRIBUTE_UNUSED) {
768 return(NULL);
769 }
770
771 XMLPUBFUN void *
772 xmlXPtrNewRangePoints(void *start, void *end);
773
774 void *
xmlXPtrNewRangePoints(void * start ATTRIBUTE_UNUSED,void * end ATTRIBUTE_UNUSED)775 xmlXPtrNewRangePoints(void *start ATTRIBUTE_UNUSED,
776 void *end ATTRIBUTE_UNUSED) {
777 return(NULL);
778 }
779
780 XMLPUBFUN void *
781 xmlXPtrNewRangePointNode(void *start, void *end);
782
783 void *
xmlXPtrNewRangePointNode(void * start ATTRIBUTE_UNUSED,void * end ATTRIBUTE_UNUSED)784 xmlXPtrNewRangePointNode(void *start ATTRIBUTE_UNUSED,
785 void *end ATTRIBUTE_UNUSED) {
786 return(NULL);
787 }
788
789 XMLPUBFUN void *
790 xmlXPtrNewRangeNodePoint(void *start, void *end);
791
792 void *
xmlXPtrNewRangeNodePoint(void * start ATTRIBUTE_UNUSED,void * end ATTRIBUTE_UNUSED)793 xmlXPtrNewRangeNodePoint(void *start ATTRIBUTE_UNUSED,
794 void *end ATTRIBUTE_UNUSED) {
795 return(NULL);
796 }
797
798 XMLPUBFUN void *
799 xmlXPtrNewRangeNodes(void *start, void *end);
800
801 void *
xmlXPtrNewRangeNodes(void * start ATTRIBUTE_UNUSED,void * end ATTRIBUTE_UNUSED)802 xmlXPtrNewRangeNodes(void *start ATTRIBUTE_UNUSED,
803 void *end ATTRIBUTE_UNUSED) {
804 return(NULL);
805 }
806
807 XMLPUBFUN void *
808 xmlXPtrNewCollapsedRange(void *start);
809
810 void *
xmlXPtrNewCollapsedRange(void * start ATTRIBUTE_UNUSED)811 xmlXPtrNewCollapsedRange(void *start ATTRIBUTE_UNUSED) {
812 return(NULL);
813 }
814
815 XMLPUBFUN void *
816 xmlXPtrNewRangeNodeObject(void *start, void *end);
817
818 void *
xmlXPtrNewRangeNodeObject(void * start ATTRIBUTE_UNUSED,void * end ATTRIBUTE_UNUSED)819 xmlXPtrNewRangeNodeObject(void *start ATTRIBUTE_UNUSED,
820 void *end ATTRIBUTE_UNUSED) {
821 return(NULL);
822 }
823
824 XMLPUBFUN void *
825 xmlXPtrLocationSetCreate(void *val);
826
827 void *
xmlXPtrLocationSetCreate(void * val ATTRIBUTE_UNUSED)828 xmlXPtrLocationSetCreate(void *val ATTRIBUTE_UNUSED) {
829 return(NULL);
830 }
831
832 XMLPUBFUN void
833 xmlXPtrLocationSetAdd(void *cur, void *val);
834
835 void
xmlXPtrLocationSetAdd(void * cur ATTRIBUTE_UNUSED,void * val ATTRIBUTE_UNUSED)836 xmlXPtrLocationSetAdd(void *cur ATTRIBUTE_UNUSED,
837 void *val ATTRIBUTE_UNUSED) {
838 }
839
840 XMLPUBFUN void *
841 xmlXPtrLocationSetMerge(void *val1, void *val2);
842
843 void *
xmlXPtrLocationSetMerge(void * val1 ATTRIBUTE_UNUSED,void * val2 ATTRIBUTE_UNUSED)844 xmlXPtrLocationSetMerge(void *val1 ATTRIBUTE_UNUSED,
845 void *val2 ATTRIBUTE_UNUSED) {
846 return(NULL);
847 }
848
849 XMLPUBFUN void
850 xmlXPtrLocationSetDel(void *cur, void *val);
851
852 void
xmlXPtrLocationSetDel(void * cur ATTRIBUTE_UNUSED,void * val ATTRIBUTE_UNUSED)853 xmlXPtrLocationSetDel(void *cur ATTRIBUTE_UNUSED,
854 void *val ATTRIBUTE_UNUSED) {
855 }
856
857 XMLPUBFUN void
858 xmlXPtrLocationSetRemove(void *cur, int val);
859
860 void
xmlXPtrLocationSetRemove(void * cur ATTRIBUTE_UNUSED,int val ATTRIBUTE_UNUSED)861 xmlXPtrLocationSetRemove(void *cur ATTRIBUTE_UNUSED,
862 int val ATTRIBUTE_UNUSED) {
863 }
864
865 XMLPUBFUN void
866 xmlXPtrFreeLocationSet(void *obj);
867
868 void
xmlXPtrFreeLocationSet(void * obj ATTRIBUTE_UNUSED)869 xmlXPtrFreeLocationSet(void *obj ATTRIBUTE_UNUSED) {
870 }
871
872 XMLPUBFUN void *
873 xmlXPtrNewLocationSetNodes(void *start, void *end);
874
875 void *
xmlXPtrNewLocationSetNodes(void * start ATTRIBUTE_UNUSED,void * end ATTRIBUTE_UNUSED)876 xmlXPtrNewLocationSetNodes(void *start ATTRIBUTE_UNUSED,
877 void *end ATTRIBUTE_UNUSED) {
878 return(NULL);
879 }
880
881 XMLPUBFUN void *
882 xmlXPtrNewLocationSetNodeSet(void *set);
883
884 void *
xmlXPtrNewLocationSetNodeSet(void * set ATTRIBUTE_UNUSED)885 xmlXPtrNewLocationSetNodeSet(void *set ATTRIBUTE_UNUSED) {
886 return(NULL);
887 }
888
889 XMLPUBFUN void *
890 xmlXPtrWrapLocationSet(void *val);
891
892 void *
xmlXPtrWrapLocationSet(void * val ATTRIBUTE_UNUSED)893 xmlXPtrWrapLocationSet(void *val ATTRIBUTE_UNUSED) {
894 return(NULL);
895 }
896
897 XMLPUBFUN void *
898 xmlXPtrBuildNodeList(void *obj);
899
900 void *
xmlXPtrBuildNodeList(void * obj ATTRIBUTE_UNUSED)901 xmlXPtrBuildNodeList(void *obj ATTRIBUTE_UNUSED) {
902 return(NULL);
903 }
904
905 XMLPUBFUN void
906 xmlXPtrRangeToFunction(void *ctxt, int nargs);
907
908 void
xmlXPtrRangeToFunction(void * ctxt ATTRIBUTE_UNUSED,int nargs ATTRIBUTE_UNUSED)909 xmlXPtrRangeToFunction(void *ctxt ATTRIBUTE_UNUSED,
910 int nargs ATTRIBUTE_UNUSED) {
911 }
912
913 /*
914 * xmllint shell functions formerly in debugXML.h
915 */
916
917 XMLPUBFUN void
918 xmlLsOneNode(FILE *output, xmlNodePtr node);
919
920 void
xmlLsOneNode(FILE * output ATTRIBUTE_UNUSED,xmlNodePtr node ATTRIBUTE_UNUSED)921 xmlLsOneNode(FILE *output ATTRIBUTE_UNUSED, xmlNodePtr node ATTRIBUTE_UNUSED) {
922 }
923
924 XMLPUBFUN int
925 xmlLsCountNode(xmlNodePtr node);
926
927 int
xmlLsCountNode(xmlNodePtr node ATTRIBUTE_UNUSED)928 xmlLsCountNode(xmlNodePtr node ATTRIBUTE_UNUSED) {
929 return(0);
930 }
931
932 XMLPUBFUN const char *
933 xmlBoolToText(int boolval);
934
935 const char *
xmlBoolToText(int boolval)936 xmlBoolToText(int boolval) {
937 if (boolval)
938 return("True");
939 else
940 return("False");
941 }
942
943 #ifdef LIBXML_XPATH_ENABLED
944 XMLPUBFUN void
945 xmlShellPrintXPathError(int errorType, const char *arg);
946
947 void
xmlShellPrintXPathError(int errorType ATTRIBUTE_UNUSED,const char * arg ATTRIBUTE_UNUSED)948 xmlShellPrintXPathError(int errorType ATTRIBUTE_UNUSED,
949 const char *arg ATTRIBUTE_UNUSED) {
950 }
951
952 XMLPUBFUN void
953 xmlShellPrintXPathResult(void *list);
954
955 void
xmlShellPrintXPathResult(void * list ATTRIBUTE_UNUSED)956 xmlShellPrintXPathResult(void *list ATTRIBUTE_UNUSED) {
957 }
958
959 XMLPUBFUN int
960 xmlShellList(void *ctxt, char *arg, void *node, void *node2);
961
962 int
xmlShellList(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)963 xmlShellList(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
964 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
965 return(0);
966 }
967
968 XMLPUBFUN int
969 xmlShellBase(void *ctxt, char *arg, void *node, void *node2);
970
971 int
xmlShellBase(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)972 xmlShellBase(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
973 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
974 return(0);
975 }
976
977 XMLPUBFUN int
978 xmlShellDir(void *ctxt, char *arg, void *node, void *node2);
979
980 int
xmlShellDir(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)981 xmlShellDir(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
982 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
983 return(0);
984 }
985
986 XMLPUBFUN int
987 xmlShellLoad(void *ctxt, char *arg, void *node, void *node2);
988
989 int
xmlShellLoad(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)990 xmlShellLoad(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
991 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
992 return(0);
993 }
994
995 #ifdef LIBXML_OUTPUT_ENABLED
996 XMLPUBFUN void
997 xmlShellPrintNode(void *node);
998
999 void
xmlShellPrintNode(void * ctxt ATTRIBUTE_UNUSED)1000 xmlShellPrintNode(void *ctxt ATTRIBUTE_UNUSED) {
1001 }
1002
1003 XMLPUBFUN int
1004 xmlShellCat(void *ctxt, char *arg, void *node, void *node2);
1005
1006 int
xmlShellCat(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)1007 xmlShellCat(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
1008 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
1009 return(0);
1010 }
1011
1012 XMLPUBFUN int
1013 xmlShellWrite(void *ctxt, char *arg, void *node, void *node2);
1014
1015 int
xmlShellWrite(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)1016 xmlShellWrite(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
1017 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
1018 return(0);
1019 }
1020
1021 XMLPUBFUN int
1022 xmlShellSave(void *ctxt, char *arg, void *node, void *node2);
1023
1024 int
xmlShellSave(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)1025 xmlShellSave(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
1026 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
1027 return(0);
1028 }
1029 #endif /* LIBXML_OUTPUT_ENABLED */
1030
1031 #ifdef LIBXML_VALID_ENABLED
1032 XMLPUBFUN int
1033 xmlShellValidate(void *ctxt, char *arg, void *node, void *node2);
1034
1035 int
xmlShellValidate(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)1036 xmlShellValidate(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
1037 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
1038 return(0);
1039 }
1040 #endif /* LIBXML_VALID_ENABLED */
1041
1042 XMLPUBFUN int
1043 xmlShellDu(void *ctxt, char *arg, void *node, void *node2);
1044
1045 int
xmlShellDu(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)1046 xmlShellDu(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
1047 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
1048 return(0);
1049 }
1050
1051 XMLPUBFUN int
1052 xmlShellPwd(void *ctxt, char *arg, void *node, void *node2);
1053
1054 int
xmlShellPwd(void * ctxt ATTRIBUTE_UNUSED,char * arg ATTRIBUTE_UNUSED,void * node ATTRIBUTE_UNUSED,void * node2 ATTRIBUTE_UNUSED)1055 xmlShellPwd(void *ctxt ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED,
1056 void *node ATTRIBUTE_UNUSED, void *node2 ATTRIBUTE_UNUSED) {
1057 return(0);
1058 }
1059
1060 typedef char * (*xmlShellReadlineFunc)(char *prompt);
1061
1062 XMLPUBFUN void
1063 xmlShell(void *doc, char *filename, xmlShellReadlineFunc input, void *output);
1064
1065 void
xmlShell(void * doc ATTRIBUTE_UNUSED,char * filename ATTRIBUTE_UNUSED,xmlShellReadlineFunc input ATTRIBUTE_UNUSED,void * output ATTRIBUTE_UNUSED)1066 xmlShell(void *doc ATTRIBUTE_UNUSED, char *filename ATTRIBUTE_UNUSED,
1067 xmlShellReadlineFunc input ATTRIBUTE_UNUSED,
1068 void *output ATTRIBUTE_UNUSED) {
1069 }
1070 #endif /* LIBXML_XPATH_ENABLED */
1071
1072 #endif /* LIBXML_LEGACY_ENABLED */
1073
1074