Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9309:bac1371c18e4 HEAD
login proxy: Forgot to add login-proxy-state.h in previous commit.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 12 Aug 2009 15:27:36 -0400 |
parents | 1072d2b53f72 |
children | f834d95f173a |
files | src/login-common/login-proxy-state.h |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/login-common/login-proxy-state.h Wed Aug 12 15:27:36 2009 -0400 @@ -0,0 +1,17 @@ +#ifndef LOGIN_PROXY_STATE_H +#define LOGIN_PROXY_STATE_H + +struct login_proxy_record { + time_t last_failure; + time_t last_success; + unsigned int num_waiting_connections; +}; + +struct login_proxy_state *login_proxy_state_init(void); +void login_proxy_state_deinit(struct login_proxy_state **state); + +struct login_proxy_record * +login_proxy_state_get(struct login_proxy_state *state, + const struct ip_addr *ip); + +#endif