diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-06-06 18:57:58 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-06-06 18:57:58 +0300 |
commit | d0c72e07261ac3ee57573b7f41732fab76862aee (patch) | |
tree | c59663adc63aeef81a1701dc42e70b2e27b20591 /src/nxt_event_conn.h | |
parent | 49e9049ed2b00f2f3ce5bacd75dbc21932836a25 (diff) | |
download | unit-d0c72e07261ac3ee57573b7f41732fab76862aee.tar.gz unit-d0c72e07261ac3ee57573b7f41732fab76862aee.tar.bz2 |
C99 style declaration of connection states.
Diffstat (limited to 'src/nxt_event_conn.h')
-rw-r--r-- | src/nxt_event_conn.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/nxt_event_conn.h b/src/nxt_event_conn.h index 902dff9f..02c088b8 100644 --- a/src/nxt_event_conn.h +++ b/src/nxt_event_conn.h @@ -12,18 +12,7 @@ typedef nxt_msec_t (*nxt_event_conn_timer_val_t)(nxt_event_conn_t *c, uintptr_t data); -#define NXT_EVENT_NO_BUF_PROCESS 0 -#define NXT_EVENT_BUF_PROCESS 1 -#define NXT_EVENT_BUF_COMPLETION 1 - -#define NXT_EVENT_TIMER_AUTORESET 1 -#define NXT_EVENT_TIMER_NO_AUTORESET 0 - - typedef struct { - uint8_t process_buffers; - uint8_t autoreset_timer; - nxt_work_handler_t ready_handler; nxt_work_handler_t close_handler; nxt_work_handler_t error_handler; @@ -31,6 +20,8 @@ typedef struct { nxt_work_handler_t timer_handler; nxt_event_conn_timer_val_t timer_value; uintptr_t timer_data; + + uint8_t timer_autoreset; } nxt_event_conn_state_t; |