mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
netwhere: fix compilation with newer libmicrohttpd
API change. Cleaned up Makefile. Fixed license information. Remove pointless CMAKE_INSTALL. This is not needed in InstallDev. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
--- a/webservice.hpp
|
||||
+++ b/webservice.hpp
|
||||
@@ -38,13 +38,13 @@ class WebService {
|
||||
MHD_Daemon* daemon;
|
||||
Functor functor;
|
||||
|
||||
- static int on_request(void * cls, struct MHD_Connection * connection, const char * url, const char * method, const char * version,
|
||||
+ static enum MHD_Result on_request(void * cls, struct MHD_Connection * connection, const char * url, const char * method, const char * version,
|
||||
const char * upload_data, size_t * upload_data_size,
|
||||
void ** ptr);
|
||||
};
|
||||
|
||||
template <typename Functor>
|
||||
-int WebService<Functor>::on_request(void * cls,
|
||||
+enum MHD_Result WebService<Functor>::on_request(void * cls,
|
||||
struct MHD_Connection * connection,
|
||||
const char * url,
|
||||
const char * method,
|
||||
@@ -53,7 +53,7 @@ int WebService<Functor>::on_request(void * cls,
|
||||
size_t * upload_data_size,
|
||||
void ** ptr) {
|
||||
static int dummy;
|
||||
- int ret;
|
||||
+ enum MHD_Result ret;
|
||||
|
||||
if (std::string("GET") != method)
|
||||
return MHD_NO; /* unexpected method */
|
||||
Reference in New Issue
Block a user