]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
bbc27441 AJ |
3 | * |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
4daaf3cb AJ |
9 | #ifndef SQUID_IDENT_H |
10 | #define SQUID_IDENT_H | |
11 | ||
4daaf3cb AJ |
12 | #if USE_IDENT |
13 | ||
14 | #include "cbdata.h" | |
f9b72e0c | 15 | #include "comm/forward.h" |
4daaf3cb | 16 | |
3395fbd0 AJ |
17 | typedef void IDCB(const char *ident, void *data); |
18 | ||
19 | /// Ident Lookup API | |
04f7fd38 AJ |
20 | namespace Ident |
21 | { | |
4daaf3cb AJ |
22 | |
23 | /** | |
4daaf3cb | 24 | * Open a connection and request IDENT information from a peer machine. |
2f8abb64 | 25 | * Callback will be called whan the lookup is completed. |
4daaf3cb AJ |
26 | * Self-registers with a global ident lookup manager, |
27 | * will call Ident::Init() itself if the manager has not been initialized already. | |
28 | */ | |
00406b24 | 29 | void Start(const Comm::ConnectionPointer &conn, IDCB * callback, void *cbdata); |
4daaf3cb AJ |
30 | |
31 | /** | |
4daaf3cb AJ |
32 | * Initialize IDENT lookup manager. |
33 | * Currently a hash list of open ident requests. | |
4daaf3cb AJ |
34 | */ |
35 | void Init(void); | |
36 | ||
3395fbd0 | 37 | } // namespace Ident |
4daaf3cb AJ |
38 | |
39 | #endif /* USE_IDENT */ | |
40 | #endif /* SQUID_IDENT_H */ | |
f53969cc | 41 |