From: Azat Khuzhin Date: Fri, 1 Mar 2013 08:00:24 +0000 (+0400) Subject: Move prototype of evhttp_decode_uri_internal() to http-internal.h X-Git-Tag: release-2.1.3-alpha~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de8101a884ae6d815d6006829fa4d3c3e8649a52;p=libevent Move prototype of evhttp_decode_uri_internal() to http-internal.h Make it non static, that can be called from tests --- diff --git a/http-internal.h b/http-internal.h index 83aa6ef1..0d4475f5 100644 --- a/http-internal.h +++ b/http-internal.h @@ -197,4 +197,7 @@ void evhttp_start_read_(struct evhttp_connection *); void evhttp_response_code_(struct evhttp_request *, int, const char *); void evhttp_send_page_(struct evhttp_request *, struct evbuffer *); +int evhttp_decode_uri_internal(const char *uri, size_t length, + char *ret, int decode_plus); + #endif /* _HTTP_H */ diff --git a/http.c b/http.c index 15a035fa..f571d356 100644 --- a/http.c +++ b/http.c @@ -193,8 +193,6 @@ static void evhttp_make_header(struct evhttp_connection *, struct evhttp_request static void evhttp_read_cb(struct bufferevent *, void *); static void evhttp_write_cb(struct bufferevent *, void *); static void evhttp_error_cb(struct bufferevent *bufev, short what, void *arg); -static int evhttp_decode_uri_internal(const char *uri, size_t length, - char *ret, int decode_plus); static int evhttp_find_vhost(struct evhttp *http, struct evhttp **outhttp, const char *hostname); @@ -2873,7 +2871,7 @@ evhttp_encode_uri(const char *str) * a ?. -1 is deprecated. * @return the number of bytes written to 'ret'. */ -static int +int evhttp_decode_uri_internal( const char *uri, size_t length, char *ret, int decode_plus_ctl) {