From 195c0aa837f034655014559e96fab03f7e677a26 Mon Sep 17 00:00:00 2001 From: lammertb Date: Mon, 2 Jan 2017 00:30:11 +0100 Subject: [PATCH] Removed const qualifier from httplib_connection --- include/libhttp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/libhttp.h b/include/libhttp.h index f1e2e690..374c28e6 100644 --- a/include/libhttp.h +++ b/include/libhttp.h @@ -214,8 +214,8 @@ struct httplib_option_t { /* */ /************************************************************************************************/ -typedef int (*httplib_request_handler)( const struct httplib_context *ctx, const struct httplib_connection *conn, void *cbdata ); -typedef int (*httplib_authorization_handler)( const struct httplib_context *ctx, const struct httplib_connection *conn, void *cbdata ); +typedef int (*httplib_request_handler)( const struct httplib_context *ctx, struct httplib_connection *conn, void *cbdata ); +typedef int (*httplib_authorization_handler)( const struct httplib_context *ctx, struct httplib_connection *conn, void *cbdata ); /* Callback types for websocket handlers in C/C++. @@ -243,10 +243,10 @@ typedef int (*httplib_authorization_handler)( const struct httplib_context *ctx, httplib_connection_close_handler Is called, when the connection is closed.*/ -typedef int (*httplib_websocket_connect_handler)( const struct httplib_context *ctx, const struct httplib_connection *conn, void *); -typedef void (*httplib_websocket_ready_handler)( const struct httplib_context *ctx, const struct httplib_connection *conn, void *); -typedef int (*httplib_websocket_data_handler)( const struct httplib_context *ctx, const struct httplib_connection *conn, int, char *, size_t, void *); -typedef void (*httplib_websocket_close_handler)( const struct httplib_context *ctx, const struct httplib_connection *conn, void *); +typedef int (*httplib_websocket_connect_handler)( const struct httplib_context *ctx, struct httplib_connection *conn, void *); +typedef void (*httplib_websocket_ready_handler)( const struct httplib_context *ctx, struct httplib_connection *conn, void *); +typedef int (*httplib_websocket_data_handler)( const struct httplib_context *ctx, struct httplib_connection *conn, int, char *, size_t, void *); +typedef void (*httplib_websocket_close_handler)( const struct httplib_context *ctx, struct httplib_connection *conn, void *); /* httplib_set_auth_handler