]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ident/Ident.h
Merge from trunk
[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 #if USE_IDENT
13
14 #include "cbdata.h"
15 #include "comm/forward.h"
16
17 namespace Ident
18 {
19
20 /**
21 \ingroup IdentAPI
22 *
23 * Open a connection and request IDENT information from a peer machine.
24 * Callack will be called whan the lookup is completed.
25 * Self-registers with a global ident lookup manager,
26 * will call Ident::Init() itself if the manager has not been initialized already.
27 */
28 void Start(const Comm::ConnectionPointer &conn, IDCB * callback, void *cbdata);
29
30 /**
31 \ingroup IdentAPI
32 *
33 * Initialize IDENT lookup manager.
34 * Currently a hash list of open ident requests.
35 * \bug Will leak the hash list if called twice.
36 */
37 void Init(void);
38
39 }
40
41 #endif /* USE_IDENT */
42 #endif /* SQUID_IDENT_H */