From 1ae51ff94d0f1f27a4e4cc657371578db13c3ca1 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 8 Feb 2019 20:26:14 +0100 Subject: Make code compile again (fix bitrot dating back from 2013). --- src/http.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/http.h') diff --git a/src/http.h b/src/http.h index 0b619dc..f3ca3a3 100644 --- a/src/http.h +++ b/src/http.h @@ -25,8 +25,7 @@ * along with Munia; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __MUNIA_HTTP_H__ -#define __MUNIA_HTTP_H__ +#pragma once #include @@ -34,10 +33,7 @@ #define LOCAL_RESOURCE_PATH "." -/* this protocol server (always the first one) just knows how to do HTTP */ -int callback_http(struct libwebsocket_context * context, - struct libwebsocket *wsi, - enum libwebsocket_callback_reasons reason, void *user, +// this protocol server (always the first one) just knows how to do HTTP +int callback_http(struct lws *wsi, + enum lws_callback_reasons reason, void *user, void *in, size_t len); - -#endif/*__MUNIA_HTTP_H__*/ -- cgit v1.2.3