]> granicus.if.org Git - libevent/commitdiff
evhttp_request_uri -> evhttp_request_get_uri
authorNiels Provos <provos@gmail.com>
Sat, 10 May 2008 06:32:53 +0000 (06:32 +0000)
committerNiels Provos <provos@gmail.com>
Sat, 10 May 2008 06:32:53 +0000 (06:32 +0000)
svn:r805

http.c
include/event2/http.h
include/event2/http_compat.h

diff --git a/http.c b/http.c
index 49e51b3f4f57d8f08b4daf1d4f7a744cccf4f2e9..ce42b3cd58eb931693df0d364b1f0b16d38c05d9 100644 (file)
--- 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);
index e2852d6e98c4a5f98e986ddf161728d79cafca24..60831f0722735f7a3e63fb0621dbf167d9fba3fa 100644 (file)
@@ -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 */
 
index 9c792eb78902d10952dbf1456430ae6591e06ab3..266e38398c8b5edecda6cb6ac653b5fdcf5cc2d4 100644 (file)
@@ -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