epoc32/include/stdapis/libxml2/libxml2_uri.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/libxml2/libxml2_uri.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,91 @@
     1.4 +/*
     1.5 + * Summary: library of generic URI related routines
     1.6 + * Description: library of generic URI related routines
     1.7 + *              Implements RFC 2396
     1.8 + *
     1.9 + * Copy: See Copyright for the status of this software.
    1.10 + *
    1.11 + * Author: Daniel Veillard
    1.12 + * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 
    1.13 + */
    1.14 +
    1.15 +/** @file
    1.16 +@publishedAll
    1.17 +@released
    1.18 +*/
    1.19 +
    1.20 +#ifndef XML_URI_H
    1.21 +#define XML_URI_H
    1.22 +
    1.23 +#include <stdapis/libxml2/libxml2_xmlstring.h>
    1.24 +
    1.25 +#ifdef __cplusplus
    1.26 +extern "C" {
    1.27 +#endif
    1.28 +
    1.29 +/**
    1.30 + * xmlURI:
    1.31 + *
    1.32 + * A parsed URI reference. This is a struct containing the various fields
    1.33 + * as described in RFC 2396 but separated for further processing.
    1.34 + */
    1.35 +typedef struct _xmlURI xmlURI;
    1.36 +typedef xmlURI *xmlURIPtr;
    1.37 +struct _xmlURI {
    1.38 +    char *scheme;       /* the URI scheme */
    1.39 +    char *opaque;       /* opaque part */
    1.40 +    char *authority;    /* the authority part */
    1.41 +    char *server;       /* the server part */
    1.42 +    char *user;         /* the user part */
    1.43 +    int port;           /* the port number */
    1.44 +    char *path;         /* the path string */
    1.45 +    char *query;        /* the query string */
    1.46 +    char *fragment;     /* the fragment identifier */
    1.47 +    int  cleanup;       /* parsing potentially unclean URI */
    1.48 +};
    1.49 +
    1.50 +/*
    1.51 + * This function is in tree.h:
    1.52 + * xmlChar *    xmlNodeGetBase  (xmlDocPtr doc,
    1.53 + *                               xmlNodePtr cur);
    1.54 + */
    1.55 +XMLPUBFUN xmlURIPtr XMLCALL
    1.56 +                xmlCreateURI            (void);
    1.57 +XMLPUBFUN xmlChar * XMLCALL
    1.58 +                xmlBuildURI             (const xmlChar *URI,
    1.59 +                                         const xmlChar *base);
    1.60 +XMLPUBFUN xmlURIPtr XMLCALL
    1.61 +                xmlParseURI             (const char *str);
    1.62 +XMLPUBFUN int XMLCALL
    1.63 +                xmlParseURIReference    (xmlURIPtr uri,
    1.64 +                                         const char *str);
    1.65 +XMLPUBFUN xmlChar * XMLCALL
    1.66 +                xmlSaveUri              (xmlURIPtr uri);
    1.67 +
    1.68 +#ifndef XMLENGINE_EXCLUDE_FILE_FUNC
    1.69 +XMLPUBFUN void XMLCALL
    1.70 +                xmlPrintURI             (FILE *stream,
    1.71 +                                         xmlURIPtr uri);
    1.72 +#endif
    1.73 +
    1.74 +XMLPUBFUN xmlChar * XMLCALL
    1.75 +                xmlURIEscapeStr         (const xmlChar *str,
    1.76 +                                         const xmlChar *list);
    1.77 +XMLPUBFUN char * XMLCALL
    1.78 +                xmlURIUnescapeString    (const char *str,
    1.79 +                                         int len,
    1.80 +                                         char *target);
    1.81 +XMLPUBFUN int XMLCALL
    1.82 +                xmlNormalizeURIPath     (char *path);
    1.83 +XMLPUBFUN xmlChar * XMLCALL
    1.84 +                xmlURIEscape            (const xmlChar *str);
    1.85 +XMLPUBFUN void XMLCALL
    1.86 +                xmlFreeURI              (xmlURIPtr uri);
    1.87 +XMLPUBFUN xmlChar* XMLCALL
    1.88 +                xmlCanonicPath          (const xmlChar *path);
    1.89 +
    1.90 +#ifdef __cplusplus
    1.91 +}
    1.92 +#endif
    1.93 +#endif /* XML_URI_H */
    1.94 +