summaryrefslogtreecommitdiff
path: root/httpd.h
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2020-07-27 15:44:12 +0200
committerhorchi <vdr@jwendel.de>2020-07-27 15:44:12 +0200
commit8d38dfabb114d8a93c34ce1258d97e389f5645d9 (patch)
tree25cf5fc66b907d86890daaa6121c2803c941982d /httpd.h
parent528e74b41c1ec5012554decc3e88b787ceb2fa95 (diff)
downloadvdr-epg-daemon-8d38dfabb114d8a93c34ce1258d97e389f5645d9.tar.gz
vdr-epg-daemon-8d38dfabb114d8a93c34ce1258d97e389f5645d9.tar.bz2
2020-07-27: version 1.1.161 (Alexander Grothe, horchi)\n - change: Porting to new libmicrohttpd\n\n1.1.161
Diffstat (limited to 'httpd.h')
-rw-r--r--httpd.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/httpd.h b/httpd.h
index c5fb94e..bbaa2f5 100644
--- a/httpd.h
+++ b/httpd.h
@@ -16,6 +16,10 @@
#include <microhttpd.h>
+#if MHD_VERSION < 0x00097002
+# define MHD_Result int
+#endif
+
#include "lib/epgservice.h"
#include "lib/json.h"
#include "lib/configuration.h"
@@ -198,12 +202,12 @@ class cEpgHttpd : public cFrame, public cWebTools, public cSystemNotification
// static
- static int dispatcher(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** con_cls);
+ static MHD_Result dispatcher(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** con_cls);
- static int askForAuthentication(struct MHD_Connection* connection, const char* realm);
+ static MHD_Result askForAuthentication(struct MHD_Connection* connection, const char* realm);
static int isAuthenticated(struct MHD_Connection* connection,
const char* username, const char* password);