Mercurial > dovecot > core-2.2
comparison src/login-common/login-proxy.h @ 7912:81806d402514 HEAD
Added more consts, ATTR_CONSTs and ATTR_PUREs.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 20 Jun 2008 10:41:44 +0300 |
parents | 6afb29dc9273 |
children | 2ff2cac3578b |
comparison
equal
deleted
inserted
replaced
7911:3d65aeed7ea0 | 7912:81806d402514 |
---|---|
26 /* Free the proxy. This should be called if authentication fails. */ | 26 /* Free the proxy. This should be called if authentication fails. */ |
27 void login_proxy_free(struct login_proxy *proxy); | 27 void login_proxy_free(struct login_proxy *proxy); |
28 | 28 |
29 /* Return TRUE if host/port/destuser combination points to same as current | 29 /* Return TRUE if host/port/destuser combination points to same as current |
30 connection. */ | 30 connection. */ |
31 bool login_proxy_is_ourself(struct client *client, const char *host, | 31 bool login_proxy_is_ourself(const struct client *client, const char *host, |
32 unsigned int port, const char *destuser); | 32 unsigned int port, const char *destuser); |
33 | 33 |
34 /* Detach proxy from client. This is done after the authentication is | 34 /* Detach proxy from client. This is done after the authentication is |
35 successful and all that is left is the dummy proxying. */ | 35 successful and all that is left is the dummy proxying. */ |
36 void login_proxy_detach(struct login_proxy *proxy, struct istream *client_input, | 36 void login_proxy_detach(struct login_proxy *proxy, struct istream *client_input, |
37 struct ostream *client_output); | 37 struct ostream *client_output); |
38 | 38 |
39 const char *login_proxy_get_host(struct login_proxy *proxy); | 39 const char *login_proxy_get_host(const struct login_proxy *proxy) ATTR_PURE; |
40 unsigned int login_proxy_get_port(struct login_proxy *proxy); | 40 unsigned int login_proxy_get_port(const struct login_proxy *proxy) ATTR_PURE; |
41 | 41 |
42 /* Return number of active detached login proxies */ | 42 /* Return number of active detached login proxies */ |
43 unsigned int login_proxy_get_count(void); | 43 unsigned int login_proxy_get_count(void) ATTR_PURE; |
44 | 44 |
45 void login_proxy_deinit(void); | 45 void login_proxy_deinit(void); |
46 | 46 |
47 #endif | 47 #endif |