/* Returns a newly built URI or NULL in case of error  */
URI* uri_parse(const char *str)
/* Returns a newly built URI or NULL in case of error  */
URI* uri_parse(const char *str)
{
	ret = rfc3986_parse_uri_reference(uri, str);
        if (ret) {
	    uri_free(uri);
	    return(NULL);
	}
    }
    return(uri);
}