defined QSE_HTTPD_TIMER_INVALID_INDEX

This commit is contained in:
hyung-hwan 2014-11-02 11:41:00 +00:00
parent 569b30039b
commit 514eee844f
3 changed files with 10 additions and 5 deletions

View File

@ -555,6 +555,8 @@ struct qse_httpd_timer_event_t
qse_httpd_timer_updater_t updater;
};
#define QSE_HTTPD_TIMER_INVALID_INDEX QSE_TMR_INVALID_INDEX
/* -------------------------------------------------------------------------- */
typedef struct qse_httpd_task_t qse_httpd_task_t;

View File

@ -2027,7 +2027,6 @@ int qse_httpd_inserttimerevent (qse_httpd_t* httpd, const qse_httpd_timer_event_
qse_tmr_index_t timer_index;
QSE_MEMSET (&timer_event, 0, QSE_SIZEOF(timer_event));
timer_event.ctx = event->ctx;
timer_event.ctx2 = event->updater;
timer_event.ctx3 = event->handler;

View File

@ -25,9 +25,14 @@
#include <qse/http/httpd.h>
#define QSE_HTTPD_DEBUG 1
/*#undef QSE_HTTPD_DEBUG*/
#if defined(NDEBUG)
/* To include debugging messages while NDEBUG is set,
* you can define QSE_HTTPD_DEBUG externally in CFLAGS or something.
*/
#else
/* debugging mode */
# define QSE_HTTPD_DEBUG 1
#endif
#if defined(QSE_HTTPD_DEBUG)
# include <qse/cmn/sio.h>
@ -47,7 +52,6 @@
# define HTTPD_DBGOUT5(fmt,a1,a2,a3,a4,a5)
#endif
#define QSE_HTTPD_DEFAULT_PORT 80
#define QSE_HTTPD_DEFAULT_SECURE_PORT 443