aboutsummaryrefslogtreecommitdiff
path: root/src/lib/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/internal.h')
-rw-r--r--src/lib/internal.h31
1 files changed, 27 insertions, 4 deletions
diff --git a/src/lib/internal.h b/src/lib/internal.h
index 4ea6528a..5b147df8 100644
--- a/src/lib/internal.h
+++ b/src/lib/internal.h
@@ -33,6 +33,7 @@
33#include "microhttpd_tls.h" 33#include "microhttpd_tls.h"
34#include "mhd_assert.h" 34#include "mhd_assert.h"
35#include "mhd_compat.h" 35#include "mhd_compat.h"
36#include "mhd_itc.h"
36#include "mhd_mono_clock.h" 37#include "mhd_mono_clock.h"
37#include "memorypool.h" 38#include "memorypool.h"
38 39
@@ -1011,6 +1012,13 @@ struct MHD_Daemon
1011 */ 1012 */
1012 struct MHD_Connection *eready_tail; 1013 struct MHD_Connection *eready_tail;
1013 1014
1015#ifdef EPOLL_SUPPORT
1016 /**
1017 * Pointer to marker used to indicate ITC slot in epoll sets.
1018 */
1019 const char *epoll_itc_marker;
1020#endif
1021
1014#ifdef UPGRADE_SUPPORT 1022#ifdef UPGRADE_SUPPORT
1015 /** 1023 /**
1016 * Head of EDLL of upgraded connections ready for processing (in epoll mode). 1024 * Head of EDLL of upgraded connections ready for processing (in epoll mode).
@@ -1052,6 +1060,11 @@ struct MHD_Daemon
1052 unsigned int nonce_nc_size; 1060 unsigned int nonce_nc_size;
1053 1061
1054#endif 1062#endif
1063
1064 /**
1065 * The select thread handle (if we have internal select)
1066 */
1067 MHD_thread_handle_ID_ pid;
1055 1068
1056 /** 1069 /**
1057 * Socket address to bind to for the listen socket. 1070 * Socket address to bind to for the listen socket.
@@ -1286,12 +1299,22 @@ struct MHD_Daemon
1286 bool enable_turbo; 1299 bool enable_turbo;
1287 1300
1288 /** 1301 /**
1302 * MHD_daemon_quiesce() was run against this daemon.
1303 */
1304 bool was_quiesced;
1305
1306 /**
1289 * Allow reusing the address:port combination when binding. 1307 * Allow reusing the address:port combination when binding.
1290 * See #MHD_daemon_listen_allow_address_reuse(). 1308 * See #MHD_daemon_listen_allow_address_reuse().
1291 */ 1309 */
1292 bool allow_address_reuse; 1310 bool allow_address_reuse;
1293 1311
1294 /** 1312 /**
1313 * MHD should speak SHOUTcast instead of HTTP.
1314 */
1315 bool enable_shoutcast;
1316
1317 /**
1295 * Are we shutting down? 1318 * Are we shutting down?
1296 */ 1319 */
1297 volatile bool shutdown; 1320 volatile bool shutdown;
@@ -1463,7 +1486,7 @@ struct MHD_Response
1463 * Callback invoked when iterating over @a key / @a value 1486 * Callback invoked when iterating over @a key / @a value
1464 * argument pairs during parsing. 1487 * argument pairs during parsing.
1465 * 1488 *
1466 * @param connection context of the iteration 1489 * @param request context of the iteration
1467 * @param key 0-terminated key string, never NULL 1490 * @param key 0-terminated key string, never NULL
1468 * @param value 0-terminated value string, may be NULL 1491 * @param value 0-terminated value string, may be NULL
1469 * @param kind origin of the key-value pair 1492 * @param kind origin of the key-value pair
@@ -1471,7 +1494,7 @@ struct MHD_Response
1471 * #MHD_NO to signal failure (and abort iteration) 1494 * #MHD_NO to signal failure (and abort iteration)
1472 */ 1495 */
1473typedef int 1496typedef int
1474(*MHD_ArgumentIterator_)(struct MHD_Connection *connection, 1497(*MHD_ArgumentIterator_)(struct MHD_Request *request,
1475 const char *key, 1498 const char *key,
1476 const char *value, 1499 const char *value,
1477 enum MHD_ValueKind kind); 1500 enum MHD_ValueKind kind);
@@ -1481,8 +1504,8 @@ typedef int
1481 * Parse and unescape the arguments given by the client 1504 * Parse and unescape the arguments given by the client
1482 * as part of the HTTP request URI. 1505 * as part of the HTTP request URI.
1483 * 1506 *
1507 * @param request request to add headers to
1484 * @param kind header kind to pass to @a cb 1508 * @param kind header kind to pass to @a cb
1485 * @param connection connection to add headers to
1486 * @param[in,out] args argument URI string (after "?" in URI), 1509 * @param[in,out] args argument URI string (after "?" in URI),
1487 * clobbered in the process! 1510 * clobbered in the process!
1488 * @param cb function to call on each key-value pair found 1511 * @param cb function to call on each key-value pair found
@@ -1492,7 +1515,7 @@ typedef int
1492 * returned #MHD_YES) 1515 * returned #MHD_YES)
1493 */ 1516 */
1494int 1517int
1495MHD_parse_arguments_ (struct MHD_Connection *connection, 1518MHD_parse_arguments_ (struct MHD_Request *request,
1496 enum MHD_ValueKind kind, 1519 enum MHD_ValueKind kind,
1497 char *args, 1520 char *args,
1498 MHD_ArgumentIterator_ cb, 1521 MHD_ArgumentIterator_ cb,