]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ident/Ident.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / ident / Ident.h
1 /*
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
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
9 #ifndef SQUID_IDENT_H
10 #define SQUID_IDENT_H
11
12 #if USE_IDENT
13
14 #include "cbdata.h"
15 #include "comm/forward.h"
16
17 typedef void IDCB(const char *ident, void *data);
18
19 /// Ident Lookup API
20 namespace Ident
21 {
22
23 /**
24 * Open a connection and request IDENT information from a peer machine.
25 * Callack will be called whan the lookup is completed.
26 * Self-registers with a global ident lookup manager,
27 * will call Ident::Init() itself if the manager has not been initialized already.
28 */
29 void Start(const Comm::ConnectionPointer &conn, IDCB * callback, void *cbdata);
30
31 /**
32 * Initialize IDENT lookup manager.
33 * Currently a hash list of open ident requests.
34 */
35 void Init(void);
36
37 } // namespace Ident
38
39 #endif /* USE_IDENT */
40 #endif /* SQUID_IDENT_H */
41