Annotation of XML/uri.h, revision 1.9
1.1 daniel 1: /**
2: * uri.c: library of generic URI related routines
3: *
4: * Reference: RFC 2396
5: *
6: * See Copyright for the status of this software.
7: *
8: * Daniel.Veillard@w3.org
9: */
10:
11: #ifndef __XML_URI_H__
12: #define __XML_URI_H__
13:
1.7 daniel 14: #include <libxml/tree.h>
1.2 daniel 15:
1.1 daniel 16: #ifdef __cplusplus
17: extern "C" {
18: #endif
19:
1.2 daniel 20: /**
21: *
22: */
23: typedef struct _xmlURI xmlURI;
24: typedef xmlURI *xmlURIPtr;
25: struct _xmlURI {
26: char *scheme;
1.6 daniel 27: char *opaque;
1.3 daniel 28: char *authority;
1.2 daniel 29: char *server;
1.6 daniel 30: char *user;
1.2 daniel 31: int port;
32: char *path;
1.3 daniel 33: char *query;
1.2 daniel 34: char *fragment;
35: };
36:
1.1 daniel 37: /*
38: * This function is in tree.h:
39: * xmlChar * xmlNodeGetBase (xmlDocPtr doc,
40: * xmlNodePtr cur);
41: */
1.8 daniel 42: xmlURIPtr xmlCreateURI (void);
1.5 daniel 43: xmlChar * xmlBuildURI (const xmlChar *URI,
44: const xmlChar *base);
45: xmlURIPtr xmlParseURI (const char *URI);
1.9 ! daniel 46: int xmlParseURIReference (xmlURIPtr uri,
! 47: const char *str);
1.5 daniel 48: xmlChar * xmlSaveUri (xmlURIPtr uri);
1.6 daniel 49: void xmlPrintURI (FILE *stream,
50: xmlURIPtr uri);
51: char * xmlURIUnescapeString (const char *str,
52: int len,
53: char *target);
1.5 daniel 54: int xmlNormalizeURIPath (char *path);
1.7 daniel 55: void xmlFreeURI (xmlURIPtr uri);
1.2 daniel 56:
1.1 daniel 57: #ifdef __cplusplus
58: }
59: #endif
60: #endif /* __XML_URI_H__ */
Webmaster