summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2008-05-10 06:32:53 +0000
committerNiels Provos <provos@gmail.com>2008-05-10 06:32:53 +0000
commit7bbe185b0e54f3d3228ed7e17c78ed3c5ec05836 (patch)
tree8959a52635018a7cc0698814c75e60f63c7d2a56
parent950af186791c01636fe37ef8c3720154e48f975c (diff)
downloadlibevent-7bbe185b0e54f3d3228ed7e17c78ed3c5ec05836.tar.gz
evhttp_request_uri -> evhttp_request_get_uri
svn:r805
-rw-r--r--http.c2
-rw-r--r--include/event2/http.h3
-rw-r--r--include/event2/http_compat.h3
3 files changed, 6 insertions, 2 deletions
diff --git a/http.c b/http.c
index 49e51b3f..ce42b3cd 100644
--- a/http.c
+++ b/http.c
@@ -2336,7 +2336,7 @@ evhttp_request_set_chunked_cb(struct evhttp_request *req,
*/
const char *
-evhttp_request_uri(struct evhttp_request *req) {
+evhttp_request_get_uri(struct evhttp_request *req) {
if (req->uri == NULL)
event_debug(("%s: request %p has no uri\n", __func__, req));
return (req->uri);
diff --git a/include/event2/http.h b/include/event2/http.h
index e2852d6e..60831f07 100644
--- a/include/event2/http.h
+++ b/include/event2/http.h
@@ -279,7 +279,8 @@ int evhttp_make_request(struct evhttp_connection *evcon,
struct evhttp_request *req,
enum evhttp_cmd_type type, const char *uri);
-const char *evhttp_request_uri(struct evhttp_request *req);
+/** Returns the request URI */
+const char *evhttp_request_get_uri(struct evhttp_request *req);
/* Interfaces for dealing with HTTP headers */
diff --git a/include/event2/http_compat.h b/include/event2/http_compat.h
index 9c792eb7..266e3839 100644
--- a/include/event2/http_compat.h
+++ b/include/event2/http_compat.h
@@ -84,6 +84,9 @@ void evhttp_connection_set_base(struct evhttp_connection *evcon,
struct event_base *base);
+/** Returns the request URI */
+#define evhttp_request_uri evhttp_request_get_uri
+
#ifdef __cplusplus
}
#endif