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