Debian Codegraph @

agent/mibgroup/target/target.h

raw
1 /*
2 * Portions of this file are copyrighted by:
3 * Copyright (c) 2016 VMware, Inc. All rights reserved.
4 * Use is subject to license terms specified in the COPYING file
5 * distributed with the Net-SNMP package.
6 */
7 #ifndef SNMP_TARGET_H
8 #define SNMP_TARGET_H
9
10 /*
11 * optional filtering function. Return either TARGET_SKIP or TARGET_KEEP
12 */
13 typedef int (TargetFilterFunction) (struct targetAddrTable_struct *
14 targaddrs,
15 struct targetParamTable_struct *
16 param, void *);
17 #define TARGET_KEEP 0
18 #define TARGET_SKIP 1
19
20
21 /*
22 * utility functions
23 */
24
25 netsnmp_session *get_target_sessions(char *taglist, TargetFilterFunction *,
26 void *filterArg);
27
28 config_require(target/snmpTargetAddrEntry_data);
29 config_require(target/snmpTargetParamsEntry_data);
30
31 #endif /* SNMP_TARGET_H */