Module: kamailio Branch: master Commit: edb3d6d848c9ccf85b077950ecf6aec7acf3e5b6 URL: https://github.com/kamailio/kamailio/commit/edb3d6d848c9ccf85b077950ecf6aec7...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2018-01-15T12:50:57+01:00
core: tcp - typedefed structs
---
Modified: src/core/tcp_conn.h
---
Diff: https://github.com/kamailio/kamailio/commit/edb3d6d848c9ccf85b077950ecf6aec7... Patch: https://github.com/kamailio/kamailio/commit/edb3d6d848c9ccf85b077950ecf6aec7...
---
diff --git a/src/core/tcp_conn.h b/src/core/tcp_conn.h index d966511b03..dfa3dcfb37 100644 --- a/src/core/tcp_conn.h +++ b/src/core/tcp_conn.h @@ -162,23 +162,23 @@ struct tcp_req{ struct tcp_connection;
/* tcp port alias structure */ -struct tcp_conn_alias{ +typedef struct tcp_conn_alias { struct tcp_connection* parent; struct tcp_conn_alias* next; struct tcp_conn_alias* prev; unsigned short port; /* alias port */ unsigned short hash; /* hash index in the address hash */ -}; +} tcp_conn_alias_t;
#ifdef TCP_ASYNC - struct tcp_wbuffer{ + typedef struct tcp_wbuffer { struct tcp_wbuffer* next; unsigned int b_size; char buf[1]; - }; + } tcp_wbuffer_t;
- struct tcp_wbuffer_queue{ + typedef struct tcp_wbuffer_queue { struct tcp_wbuffer* first; struct tcp_wbuffer* last; ticks_t wr_timeout; /* write timeout*/ @@ -186,11 +186,11 @@ struct tcp_conn_alias{ unsigned int offset; /* offset in the first wbuffer were data starts */ unsigned int last_used; /* how much of the last buffer is used */ - }; + } tcp_wbuffer_queue_t; #endif
-struct tcp_connection{ +typedef struct tcp_connection { int s; /*socket, used by "tcp main" */ int fd; /* used only by "children", don't modify it! private data! */ gen_lock_t write_lock; @@ -218,7 +218,7 @@ struct tcp_connection{ #ifdef TCP_ASYNC struct tcp_wbuffer_queue wbuf_q; #endif -}; +} tcp_connection_t;
/* helper macros */