diff options
author | horchi <vdr@jwendel.de> | 2020-07-27 15:44:12 +0200 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2020-07-27 15:44:12 +0200 |
commit | 8d38dfabb114d8a93c34ce1258d97e389f5645d9 (patch) | |
tree | 25cf5fc66b907d86890daaa6121c2803c941982d /httpd.h | |
parent | 528e74b41c1ec5012554decc3e88b787ceb2fa95 (diff) | |
download | vdr-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.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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); |