Annotation of XML/uri.h, revision 1.7

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.5       daniel     42: xmlChar *      xmlBuildURI             (const xmlChar *URI,
                     43:                                         const xmlChar *base);
                     44: xmlURIPtr      xmlParseURI             (const char *URI);
                     45: xmlChar *      xmlSaveUri              (xmlURIPtr uri);
1.6       daniel     46: void           xmlPrintURI             (FILE *stream,
                     47:                                         xmlURIPtr uri);
                     48: char *         xmlURIUnescapeString    (const char *str,
                     49:                                         int len,
                     50:                                         char *target);
1.5       daniel     51: int            xmlNormalizeURIPath     (char *path);
1.7     ! daniel     52: void           xmlFreeURI              (xmlURIPtr uri);
1.2       daniel     53: 
1.1       daniel     54: #ifdef __cplusplus
                     55: }
                     56: #endif
                     57: #endif /* __XML_URI_H__ */

Webmaster