summaryrefslogtreecommitdiff
path: root/src/ne_uri.h
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-01-01 21:20:33 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-01-01 21:20:33 +0000
commit08567e60adc8e7fe727546da2cd172cf63a7f20f (patch)
treeb1506c5ded98a6a903ec09e187e970195be50e11 /src/ne_uri.h
parent836b2572c5c914face53165c7448f2d92e91d8d7 (diff)
downloadneon-08567e60adc8e7fe727546da2cd172cf63a7f20f.tar.gz
* src/ne_uri.h (ne_uri_copy): Add prototype.
* src/ne_uri.c (ne_uri_copy): New function. * test/uri-tests.c (copy): New test case. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@816 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_uri.h')
-rw-r--r--src/ne_uri.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ne_uri.h b/src/ne_uri.h
index 5cf2043..acfd142 100644
--- a/src/ne_uri.h
+++ b/src/ne_uri.h
@@ -86,6 +86,10 @@ void ne_uri_resolve(const ne_uri *base, const ne_uri *relative,
* 'u2', or >0 if 'u2' is greater than 'u1'. */
int ne_uri_cmp(const ne_uri *u1, const ne_uri *u2);
+/* Copy components of URI 'src' to destination 'dest'. Returns
+ * 'dest'. */
+ne_uri *ne_uri_copy(ne_uri *dest, const ne_uri *src);
+
/* Frees any non-NULL fields of parsed URI structure *parsed. All
* fields are then zero-initialized. */
void ne_uri_free(ne_uri *parsed);