[svn r44] Some fixes.
4 * - Extracts and parses a URI char string, in according with the RFC 2396
5 * [http://www.ietf.org/rfc/rfc2396.txt]
7 * @author Rosfran Borges (rosfran.borges@indt.org.br)
16 /****************************************
18 ****************************************/
20 #define GMYTH_URI_KNKOWN_PORT (-1)
21 #define GMYTH_URI_DEFAULT_HTTP_PORT 80
22 #define GMYTH_URI_DEFAULT_FTP_PORT 21
23 #define GMYTH_URI_DEFAULT_PATH "/"
24 #define GMYTH_URI_MAXLEN 256
26 #define GMYTH_URI_PROTOCOL_DELIM "://"
27 #define GMYTH_URI_USER_DELIM "@"
28 #define GMYTH_URI_COLON_DELIM ":"
29 #define GMYTH_URI_SLASH_DELIM "/"
30 #define GMYTH_URI_SBLACET_DELIM "["
31 #define GMYTH_URI_EBLACET_DELIM "]"
32 #define GMYTH_URI_SHARP_DELIM "#"
33 #define GMYTH_URI_QUESTION_DELIM "?"
34 #define GMYTH_URI_ESCAPING_CHAR "%"
36 #define GMYTH_URI_PROTOCOL_MYTH "myth"
37 #define GMYTH_URI_PROTOCOL_HTTP "http"
38 #define GMYTH_URI_PROTOCOL_FTP "ftp"
40 /****************************************
42 ****************************************/
44 typedef struct _GMythURI {
56 const GMythURI *gmyth_uri_new( gchar *value );
58 #define gmyth_uri_gethost(urip) (urip->host->str)
59 #define gmyth_uri_getport(urip) (urip->port)
60 #define gmyth_uri_getprotocol(urip) (urip->protocol->str)
61 #define gmyth_uri_getpath(urip) (urip->path->str)