]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ident/Ident.h
62c2b6aefe429766f9f7e3c385ff550fa699a929
[thirdparty/squid.git] / src / ident / Ident.h
1 /*
2 * Copyright (C) 1996-2023 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 * Callback will be called when the lookup is completed.
26 */
27 void Start(const Comm::ConnectionPointer &conn, IDCB * callback, void *cbdata);
28
29 } // namespace Ident
30
31 #endif /* USE_IDENT */
32 #endif /* SQUID_IDENT_H */
33