Patrick Monnerat | e083c30 | 2014-03-04 17:18:26 +0100 | [diff] [blame] | 1 | * Summary: library of generic URI related routines |
| 2 | * Description: library of generic URI related routines |
| 3 | * Implements RFC 2396 |
| 4 | * |
| 5 | * Copy: See Copyright for the status of this software. |
| 6 | * |
| 7 | * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A. |
| 8 | |
| 9 | /if not defined(XML_URI_H__) |
| 10 | /define XML_URI_H__ |
| 11 | |
| 12 | /include "libxmlrpg/xmlversion" |
| 13 | /include "libxmlrpg/tree" |
| 14 | |
| 15 | * xmlURI: |
| 16 | * |
| 17 | * A parsed URI reference. This is a struct containing the various fields |
| 18 | * as described in RFC 2396 but separated for further processing. |
| 19 | * |
| 20 | * Note: query is a deprecated field which is incorrectly unescaped. |
| 21 | * query_raw takes precedence over query if the former is set. |
| 22 | * See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127 |
| 23 | |
| 24 | d xmlURIPtr s * based(######typedef######) |
| 25 | |
| 26 | d xmlURI ds based(xmlURIPtr) |
| 27 | d align qualified |
| 28 | d scheme * char * |
| 29 | d opaque * char * |
| 30 | d authority * char * |
| 31 | d server * char * |
| 32 | d user * char * |
| 33 | d port 10i 0 |
| 34 | d path * char * |
| 35 | d query * char * |
| 36 | d fragment * char * |
| 37 | d cleanup 10i 0 |
| 38 | d query_raw * char * |
| 39 | |
| 40 | d xmlCreateURI pr extproc('xmlCreateURI') |
| 41 | d like(xmlURIPtr) |
| 42 | |
| 43 | d xmlBuildURI pr * extproc('xmlBuildURI') xmlChar * |
| 44 | d URI * value options(*string) const xmlChar * |
| 45 | d base * value options(*string) const xmlChar * |
| 46 | |
| 47 | d xmlBuildRelativeURI... |
| 48 | d pr * extproc('xmlBuildRelativeURI') xmlChar * |
| 49 | d URI * value options(*string) const xmlChar * |
| 50 | d base * value options(*string) const xmlChar * |
| 51 | |
| 52 | d xmlParseURI pr extproc('xmlParseURI') |
| 53 | d like(xmlURIPtr) |
| 54 | d str * value options(*string) const char * |
| 55 | |
| 56 | d xmlParseURIRaw pr extproc('xmlParseURIRaw') |
| 57 | d like(xmlURIPtr) |
| 58 | d str * value options(*string) const char * |
| 59 | d raw 10i 0 value |
| 60 | |
| 61 | d xmlParseURIReference... |
| 62 | d pr 10i 0 extproc('xmlParseURIReference') |
| 63 | d uri value like(xmlURIPtr) |
| 64 | d str * value options(*string) const char * |
| 65 | |
| 66 | d xmlSaveUri pr * extproc('xmlSaveUri') xmlChar * |
| 67 | d uri value like(xmlURIPtr) |
| 68 | |
| 69 | d xmlPrintURI pr extproc('xmlPrintURI') |
| 70 | d stream * value FILE * |
| 71 | d uri value like(xmlURIPtr) |
| 72 | |
| 73 | d xmlURIEscapeStr... |
| 74 | d pr * extproc('xmlURIEscapeStr') xmlChar * |
| 75 | d str * value options(*string) const xmlChar * |
| 76 | d list * value options(*string) const xmlChar * |
| 77 | |
| 78 | d xmlURIUnescapeString... |
| 79 | d pr * extproc('xmlURIUnescapeString') char * |
| 80 | d str * value options(*string) const char * |
| 81 | d len 10i 0 value |
| 82 | d target * value options(*string) char * |
| 83 | |
| 84 | d xmlNormalizeURIPath... |
| 85 | d pr 10i 0 extproc('xmlNormalizeURIPath') |
| 86 | d path * value options(*string) char * |
| 87 | |
| 88 | d xmlURIEscape pr * extproc('xmlURIEscape') xmlChar * |
| 89 | d str * value options(*string) const xmlChar * |
| 90 | |
| 91 | d xmlFreeURI pr extproc('xmlFreeURI') |
| 92 | d uri value like(xmlURIPtr) |
| 93 | |
| 94 | d xmlCanonicPath pr * extproc('xmlCanonicPath') xmlChar * |
| 95 | d path * value options(*string) const xmlChar * |
| 96 | |
| 97 | d xmlPathToURI pr * extproc('xmlPathToURI') xmlChar * |
| 98 | d path * value options(*string) const xmlChar * |
| 99 | |
| 100 | /endif XML_URI_H__ |