From 7c70a430f9c708be2fcce8c9a0d8cecde7f75fc0 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 23 May 2017 03:49:54 +0200 Subject: changes for proxy --- code/timer.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'code/timer.h') diff --git a/code/timer.h b/code/timer.h index dd9a2a8..0d43a99 100644 --- a/code/timer.h +++ b/code/timer.h @@ -12,11 +12,11 @@ struct ECPConnection; struct ECPSocket; struct ECPTimerItem; -typedef int ecp_timer_retry_t (struct ECPConnection *, struct ECPTimerItem *); +typedef ssize_t ecp_timer_retry_t (struct ECPConnection *, struct ECPTimerItem *); typedef struct ECPTimerItem { struct ECPConnection *conn; - unsigned char ptype; + unsigned char mtype; unsigned short cnt; unsigned int abstime; unsigned int timeout; @@ -35,9 +35,9 @@ typedef struct ECPTimer { int ecp_timer_create(ECPTimer *timer); void ecp_timer_destroy(ECPTimer *timer); -int ecp_timer_item_init(ECPTimerItem *ti, struct ECPConnection *conn, unsigned char ptype, unsigned short cnt, unsigned int timeout); -int ecp_timer_push(struct ECPConnection *conn, ECPTimerItem *ti); -void ecp_timer_pop(struct ECPConnection *conn, unsigned char ptype); +int ecp_timer_item_init(ECPTimerItem *ti, struct ECPConnection *conn, unsigned char mtype, unsigned short cnt, unsigned int timeout); +int ecp_timer_push(ECPTimerItem *ti); +void ecp_timer_pop(struct ECPConnection *conn, unsigned char mtype); void ecp_timer_remove(struct ECPConnection *conn); unsigned int ecp_timer_exe(struct ECPSocket *sock); -int ecp_timer_send(struct ECPConnection *conn, ecp_timer_retry_t *send_f, unsigned char ptype, unsigned short cnt, unsigned int timeout); \ No newline at end of file +ssize_t ecp_timer_send(struct ECPConnection *conn, ecp_timer_retry_t *send_f, unsigned char mtype, unsigned short cnt, unsigned int timeout); \ No newline at end of file -- cgit v1.2.3