diff options
Diffstat (limited to 'src/daemon/internal.h')
-rw-r--r-- | src/daemon/internal.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/daemon/internal.h b/src/daemon/internal.h index 7638105a..c2d6ab0b 100644 --- a/src/daemon/internal.h +++ b/src/daemon/internal.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "gnutls.h" | 33 | #include "gnutls.h" |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #define EXTRA_CHECKS MHD_YES | ||
36 | 37 | ||
37 | #define MHD_MAX(a,b) ((a)<(b)) ? (b) : (a) | 38 | #define MHD_MAX(a,b) ((a)<(b)) ? (b) : (a) |
38 | #define MHD_MIN(a,b) ((a)<(b)) ? (a) : (b) | 39 | #define MHD_MIN(a,b) ((a)<(b)) ? (a) : (b) |
@@ -537,14 +538,14 @@ struct MHD_Connection | |||
537 | 538 | ||
538 | int (*idle_handler) (struct MHD_Connection * connection); | 539 | int (*idle_handler) (struct MHD_Connection * connection); |
539 | 540 | ||
540 | /* | 541 | /** |
541 | * function pointers to the appropriate send & receive funtions | 542 | * function pointers to the appropriate send & receive funtions |
542 | * according to whether this is a HTTPS / HTTP daemon | 543 | * according to whether this is a HTTPS / HTTP daemon |
543 | */ | 544 | */ |
544 | ssize_t (*recv_cls) (struct MHD_Connection * connection); | 545 | ssize_t (*recv_cls) (struct MHD_Connection * connection); |
545 | 546 | ||
546 | ssize_t (*send_cls) (struct MHD_Connection * connection); | 547 | ssize_t (*send_cls) (struct MHD_Connection * connection); |
547 | 548 | ||
548 | #if HTTPS_SUPPORT | 549 | #if HTTPS_SUPPORT |
549 | /* TODO rename as this might be an SSL connection */ | 550 | /* TODO rename as this might be an SSL connection */ |
550 | mhd_gtls_session_t tls_session; | 551 | mhd_gtls_session_t tls_session; |
@@ -649,4 +650,13 @@ struct MHD_Daemon | |||
649 | #endif | 650 | #endif |
650 | }; | 651 | }; |
651 | 652 | ||
653 | |||
654 | #if EXTRA_CHECKS | ||
655 | #define EXTRA_CHECK(a) if (!(a)) abort(); | ||
656 | #else | ||
657 | #define EXTRA_CHECK(a) | ||
658 | #endif | ||
659 | |||
660 | |||
661 | |||
652 | #endif | 662 | #endif |