2
* viruri.h: internal definitions used for URI parsing.
4
* Copyright (C) 2012 Red Hat, Inc.
6
* See COPYING.LIB for the License of this software
10
# define __VIR_URI_H__
12
# include <libxml/uri.h>
14
# include "internal.h"
16
typedef struct _virURI virURI;
17
typedef virURI *virURIPtr;
19
typedef struct _virURIParam virURIParam;
20
typedef virURIParam *virURIParamPtr;
23
char *name; /* Name (unescaped). */
24
char *value; /* Value (unescaped). */
25
bool ignore; /* Ignore this field in virURIFormatParams */
29
char *scheme; /* the URI scheme */
30
char *server; /* the server part */
31
char *user; /* the user part */
32
int port; /* the port number */
33
char *path; /* the path string */
34
char *query; /* the query string */
35
char *fragment; /* the fragment string */
39
virURIParamPtr params;
42
virURIPtr virURIParse(const char *uri)
44
char *virURIFormat(virURIPtr uri)
47
char *virURIFormatParams(virURIPtr uri);
49
void virURIFree(virURIPtr uri);
51
#endif /* __VIR_URI_H__ */