]>
Commit | Line | Data |
---|---|---|
4daaf3cb AJ |
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 | ||
b7ac5457 | 18 | class Ip::Address; |
4daaf3cb | 19 | |
04f7fd38 AJ |
20 | namespace Ident |
21 | { | |
4daaf3cb AJ |
22 | |
23 | /** | |
24 | \ingroup IdentAPI | |
25 | * | |
26 | * Open a connection and request IDENT information from a peer machine. | |
27 | * Callack will be called whan the lookup is completed. | |
28 | * Self-registers with a global ident lookup manager, | |
29 | * will call Ident::Init() itself if the manager has not been initialized already. | |
30 | */ | |
b7ac5457 | 31 | void Start(Ip::Address &me, Ip::Address &my_peer, IDCB * callback, void *cbdata); |
4daaf3cb AJ |
32 | |
33 | /** | |
34 | \ingroup IdentAPI | |
35 | * | |
36 | * Initialize IDENT lookup manager. | |
37 | * Currently a hash list of open ident requests. | |
38 | * \bug Will leak the hash list if called twice. | |
39 | */ | |
40 | void Init(void); | |
41 | ||
42 | } | |
43 | ||
44 | #endif /* USE_IDENT */ | |
45 | #endif /* SQUID_IDENT_H */ |