Blame gnulib-local/lib/libxml/uri.in.h

Packit Bot 06c835
/**
Packit Bot 06c835
 * Summary: library of generic URI related routines
Packit Bot 06c835
 * Description: library of generic URI related routines
Packit Bot 06c835
 *              Implements RFC 2396
Packit Bot 06c835
 *
Packit Bot 06c835
 * Copy: See Copyright for the status of this software.
Packit Bot 06c835
 *
Packit Bot 06c835
 * Author: Daniel Veillard
Packit Bot 06c835
 */
Packit Bot 06c835
Packit Bot 06c835
#ifndef __XML_URI_H__
Packit Bot 06c835
#define __XML_URI_H__
Packit Bot 06c835
Packit Bot 06c835
#include <libxml/xmlversion.h>
Packit Bot 06c835
#include <libxml/tree.h>
Packit Bot 06c835
Packit Bot 06c835
#ifdef __cplusplus
Packit Bot 06c835
extern "C" {
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
/**
Packit Bot 06c835
 * xmlURI:
Packit Bot 06c835
 *
Packit Bot 06c835
 * A parsed URI reference. This is a struct containing the various fields
Packit Bot 06c835
 * as described in RFC 2396 but separated for further processing.
Packit Bot 06c835
 *
Packit Bot 06c835
 * Note: query is a deprecated field which is incorrectly unescaped.
Packit Bot 06c835
 * query_raw takes precedence over query if the former is set.
Packit Bot 06c835
 * See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127
Packit Bot 06c835
 */
Packit Bot 06c835
typedef struct _xmlURI xmlURI;
Packit Bot 06c835
typedef xmlURI *xmlURIPtr;
Packit Bot 06c835
struct _xmlURI {
Packit Bot 06c835
    char *scheme;	/* the URI scheme */
Packit Bot 06c835
    char *opaque;	/* opaque part */
Packit Bot 06c835
    char *authority;	/* the authority part */
Packit Bot 06c835
    char *server;	/* the server part */
Packit Bot 06c835
    char *user;		/* the user part */
Packit Bot 06c835
    int port;		/* the port number */
Packit Bot 06c835
    char *path;		/* the path string */
Packit Bot 06c835
    char *query;	/* the query string (deprecated - use with caution) */
Packit Bot 06c835
    char *fragment;	/* the fragment identifier */
Packit Bot 06c835
    int  cleanup;	/* parsing potentially unclean URI */
Packit Bot 06c835
    char *query_raw;	/* the query string (as it appears in the URI) */
Packit Bot 06c835
};
Packit Bot 06c835
Packit Bot 06c835
/*
Packit Bot 06c835
 * This function is in tree.h:
Packit Bot 06c835
 * xmlChar *	xmlNodeGetBase	(xmlDocPtr doc,
Packit Bot 06c835
 *                               xmlNodePtr cur);
Packit Bot 06c835
 */
Packit Bot 06c835
XMLPUBFUN xmlURIPtr XMLCALL
Packit Bot 06c835
		xmlCreateURI		(void);
Packit Bot 06c835
XMLPUBFUN xmlChar * XMLCALL
Packit Bot 06c835
		xmlBuildURI		(const xmlChar *URI,
Packit Bot 06c835
					 const xmlChar *base);
Packit Bot 06c835
XMLPUBFUN xmlChar * XMLCALL
Packit Bot 06c835
		xmlBuildRelativeURI	(const xmlChar *URI,
Packit Bot 06c835
					 const xmlChar *base);
Packit Bot 06c835
XMLPUBFUN xmlURIPtr XMLCALL
Packit Bot 06c835
		xmlParseURI		(const char *str);
Packit Bot 06c835
XMLPUBFUN xmlURIPtr XMLCALL
Packit Bot 06c835
		xmlParseURIRaw		(const char *str,
Packit Bot 06c835
					 int raw);
Packit Bot 06c835
XMLPUBFUN int XMLCALL
Packit Bot 06c835
		xmlParseURIReference	(xmlURIPtr uri,
Packit Bot 06c835
					 const char *str);
Packit Bot 06c835
XMLPUBFUN xmlChar * XMLCALL
Packit Bot 06c835
		xmlSaveUri		(xmlURIPtr uri);
Packit Bot 06c835
XMLPUBFUN void XMLCALL
Packit Bot 06c835
		xmlPrintURI		(FILE *stream,
Packit Bot 06c835
					 xmlURIPtr uri);
Packit Bot 06c835
XMLPUBFUN xmlChar * XMLCALL
Packit Bot 06c835
		xmlURIEscapeStr         (const xmlChar *str,
Packit Bot 06c835
					 const xmlChar *list);
Packit Bot 06c835
XMLPUBFUN char * XMLCALL
Packit Bot 06c835
		xmlURIUnescapeString	(const char *str,
Packit Bot 06c835
					 int len,
Packit Bot 06c835
					 char *target);
Packit Bot 06c835
XMLPUBFUN int XMLCALL
Packit Bot 06c835
		xmlNormalizeURIPath	(char *path);
Packit Bot 06c835
XMLPUBFUN xmlChar * XMLCALL
Packit Bot 06c835
		xmlURIEscape		(const xmlChar *str);
Packit Bot 06c835
XMLPUBFUN void XMLCALL
Packit Bot 06c835
		xmlFreeURI		(xmlURIPtr uri);
Packit Bot 06c835
XMLPUBFUN xmlChar* XMLCALL
Packit Bot 06c835
		xmlCanonicPath		(const xmlChar *path);
Packit Bot 06c835
XMLPUBFUN xmlChar* XMLCALL
Packit Bot 06c835
		xmlPathToURI		(const xmlChar *path);
Packit Bot 06c835
Packit Bot 06c835
#ifdef __cplusplus
Packit Bot 06c835
}
Packit Bot 06c835
#endif
Packit Bot 06c835
#endif /* __XML_URI_H__ */