summaryrefslogtreecommitdiff
path: root/src/ne_uri.h
diff options
context:
space:
mode:
authorJoe Orton <notroj@users.noreply.github.com>2006-01-01 14:43:11 +0000
committerJoe Orton <notroj@users.noreply.github.com>2006-01-01 14:43:11 +0000
commitd8941ce51c38e9955d892e4097ae6df0e93fa66b (patch)
tree23e4ee664687faef15def7094a5f038bae182966 /src/ne_uri.h
parentc2ebd6c4048dd80dd5648738188ac5578897d749 (diff)
downloadneon-git-d8941ce51c38e9955d892e4097ae6df0e93fa66b.tar.gz
* src/ne_uri.h (ne_uri): Rename authinfo field to userinfo.
Add query and fragment fields. * src/ne_locks.c (ne_lock_using_parent): Adjust accordingly. * src/ne_uri.c (ne_uri_parse): Adjust for userinfo/authinfo rename. Parse fragment and query; parse path component strictly. (ne_uri_free): Adjust for authinfo rename. (ne_uri_unparse): Adjust for authinfo rename; handle query and fragment. * test/uri-tests.c (parse, unparse): Add tests for query/fragment handling. (failparse): Add some cases with invalid path segments.
Diffstat (limited to 'src/ne_uri.h')
-rw-r--r--src/ne_uri.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ne_uri.h b/src/ne_uri.h
index b03a832..d152aed 100644
--- a/src/ne_uri.h
+++ b/src/ne_uri.h
@@ -57,10 +57,9 @@ unsigned int ne_uri_defaultport(const char *scheme);
typedef struct {
char *scheme;
- char *host;
+ char *host, *userinfo;
unsigned int port;
- char *path;
- char *authinfo;
+ char *path, *query, *fragment;
} ne_uri;
/* Parse a URI-reference 'uri' and place parsed components in *parsed.