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