]> git.ipfire.org Git - thirdparty/squid.git/blame - src/ident/Ident.h
SourceLayout: Add Ip namespace for internal libip
[thirdparty/squid.git] / src / ident / Ident.h
CommitLineData
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 18class Ip::Address;
4daaf3cb 19
04f7fd38
AJ
20namespace 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 31void 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 */
40void Init(void);
41
42}
43
44#endif /* USE_IDENT */
45#endif /* SQUID_IDENT_H */