]> granicus.if.org Git - libevent/commitdiff
Move prototype of evhttp_decode_uri_internal() to http-internal.h
authorAzat Khuzhin <a3at.mail@gmail.com>
Fri, 1 Mar 2013 08:00:24 +0000 (12:00 +0400)
committerAzat Khuzhin <a3at.mail@gmail.com>
Fri, 1 Mar 2013 08:00:24 +0000 (12:00 +0400)
Make it non static, that can be called from tests

http-internal.h
http.c

index 83aa6ef173cfcbbde37bc9bb4d6a7a4785b8ba73..0d4475f5f9b7b9665e50c85cbe3d7d0c2c5111c0 100644 (file)
@@ -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 15a035faed10f48c74fe93c3a842f7dd39d09f24..f571d356d4a97c00149e3cfd3d15a51cdcb904a2 100644 (file)
--- 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)
 {