]> git.ipfire.org Git - thirdparty/squid.git/blame - include/snmp_client.h
Cleanup: zap CVS Id tags
[thirdparty/squid.git] / include / snmp_client.h
CommitLineData
0e2cd867 1/*
262a0e14 2 * $Id$
0e2cd867 3 */
4
b5638623 5#ifndef SQUID_SNMP_CLIENT_H
6#define SQUID_SNMP_CLIENT_H
54f642bf 7
8bde32ea 8/*
9 * snmp_client.h
10 */
8bde32ea 11/***********************************************************
12 Copyright 1988, 1989 by Carnegie Mellon University
13
14 All Rights Reserved
15
c5dd4956
AJ
16Permission to use, copy, modify, and distribute this software and its
17documentation for any purpose and without fee is hereby granted,
8bde32ea 18provided that the above copyright notice appear in all copies and that
c5dd4956 19both that copyright notice and this permission notice appear in
8bde32ea 20supporting documentation, and that the name of CMU not be
21used in advertising or publicity pertaining to distribution of the
c5dd4956 22software without specific, written prior permission.
8bde32ea 23
24CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
25ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
26CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
27ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
28WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
29ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
30SOFTWARE.
31******************************************************************/
8bde32ea 32struct synch_state {
468ae12b 33 int waiting;
8bde32ea 34 int status;
c5dd4956 35 /* status codes */
8bde32ea 36#define STAT_SUCCESS 0
37#define STAT_ERROR 1
38#define STAT_TIMEOUT 2
39 int reqid;
40 struct snmp_pdu *pdu;
41};
42
54f642bf 43#ifdef __cplusplus
c5dd4956
AJ
44extern "C"
45{
54f642bf 46#endif
47
468ae12b 48 extern struct synch_state snmp_synch_state;
8bde32ea 49
c5dd4956 50 /* Synchronize Input with Agent */
468ae12b 51 int snmp_synch_input(int, struct snmp_session *, int,
c5dd4956 52 struct snmp_pdu *, void *);
54f642bf 53
c5dd4956 54 /* Synchronize Response with Agent */
468ae12b 55 int snmp_synch_response(struct snmp_session *, struct snmp_pdu *,
c5dd4956 56 struct snmp_pdu **);
8bde32ea 57
c5dd4956 58 /* Synchronize Setup */
468ae12b 59 void snmp_synch_setup(struct snmp_session *);
8bde32ea 60
54f642bf 61#ifdef __cplusplus
62}
468ae12b 63#endif
b5638623 64
65#endif /* SQUID_SNMP_CLIENT_H */