Browse files

Move prototype of evhttp_decode_uri_internal() to http-internal.h

Make it non static, that can be called from tests
  • Loading branch information...
1 parent e1903e3 commit de8101a884ae6d815d6006829fa4d3c3e8649a52 @azat azat committed Mar 1, 2013
Showing with 4 additions and 3 deletions.
  1. +3 −0 http-internal.h
  2. +1 −3 http.c
View
3 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 */
View
4 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)
{

0 comments on commit de8101a

Please sign in to comment.