]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ident/Ident.h
Comm restructure part 2 - outbound connections
[thirdparty/squid.git] / src / ident / Ident.h
1 /*
2 * $Id$
3 */
4 #ifndef SQUID_IDENT_H
5 #define SQUID_IDENT_H
6
7 /**
8 \defgroup IdentAPI Ident Lookup API
9 \ingroup SquidComponents
10 */
11
12 #include "config.h"
13
14 #if USE_IDENT
15
16 #include "cbdata.h"
17 #include "comm/Connection.h"
18
19 namespace Ident
20 {
21
22 /**
23 \ingroup IdentAPI
24 *
25 * Open a connection and request IDENT information from a peer machine.
26 * Callack will be called whan the lookup is completed.
27 * Self-registers with a global ident lookup manager,
28 * will call Ident::Init() itself if the manager has not been initialized already.
29 */
30 void Start(Comm::Connection *conn, IDCB * callback, void *cbdata);
31
32 /**
33 \ingroup IdentAPI
34 *
35 * Initialize IDENT lookup manager.
36 * Currently a hash list of open ident requests.
37 * \bug Will leak the hash list if called twice.
38 */
39 void Init(void);
40
41 }
42
43 #endif /* USE_IDENT */
44 #endif /* SQUID_IDENT_H */