~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to agent/mibgroup/target/target.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SNMP_TARGET_H
 
2
#define SNMP_TARGET_H
 
3
 
 
4
/*
 
5
 * optional filtering function.  Return either TARGET_SKIP or TARGET_KEEP 
 
6
 */
 
7
typedef int     (TargetFilterFunction) (struct targetAddrTable_struct *
 
8
                                        targaddrs,
 
9
                                        struct targetParamTable_struct *
 
10
                                        param, void *);
 
11
#define TARGET_KEEP 0
 
12
#define TARGET_SKIP 1
 
13
 
 
14
 
 
15
/*
 
16
 * utility functions 
 
17
 */
 
18
 
 
19
netsnmp_session *get_target_sessions(char *taglist, TargetFilterFunction *,
 
20
                                     void *filterArg);
 
21
 
 
22
config_require(target/snmpTargetAddrEntry target/snmpTargetParamsEntry)
 
23
 
 
24
#endif                          /* SNMP_TARGET_H */