aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-17 19:33:20 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-17 19:33:20 +0000
commit017c372418745036838314c0bf6cefba1773d3d9 (patch)
tree7aa4c478d79a9edef8365f1256336b384d7f1099 /src/microhttpd
parenta2425da6f9ba532d8a82906cdbb9ea6076d6a091 (diff)
downloadlibmicrohttpd-017c372418745036838314c0bf6cefba1773d3d9.tar.gz
libmicrohttpd-017c372418745036838314c0bf6cefba1773d3d9.zip
also pass MHD connection handle in URI callback, needed for GNUnet
Diffstat (limited to 'src/microhttpd')
-rw-r--r--src/microhttpd/connection.c3
-rw-r--r--src/microhttpd/internal.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 8f94ebd7..611ff12f 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1255,7 +1255,8 @@ parse_initial_message_line (struct MHD_Connection *connection, char *line)
1255 if (NULL != connection->daemon->uri_log_callback) 1255 if (NULL != connection->daemon->uri_log_callback)
1256 connection->client_context 1256 connection->client_context
1257 = connection->daemon->uri_log_callback (connection->daemon->uri_log_callback_cls, 1257 = connection->daemon->uri_log_callback (connection->daemon->uri_log_callback_cls,
1258 uri); 1258 uri,
1259 connection);
1259 args = strchr (uri, '?'); 1260 args = strchr (uri, '?');
1260 if (NULL != args) 1261 if (NULL != args)
1261 { 1262 {
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 5089b896..b540a1fc 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -838,9 +838,12 @@ struct MHD_Connection
838 * 838 *
839 * @param cls closure 839 * @param cls closure
840 * @param uri uri being accessed 840 * @param uri uri being accessed
841 * @param con connection handle
841 * @return new closure 842 * @return new closure
842 */ 843 */
843typedef void * (*LogCallback)(void * cls, const char * uri); 844typedef void * (*LogCallback)(void * cls,
845 const char * uri,
846 struct MHD_Connection *con);
844 847
845/** 848/**
846 * Signature of function called to unescape URIs. See also 849 * Signature of function called to unescape URIs. See also