summaryrefslogtreecommitdiff
path: root/agent/mibgroup/target/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'agent/mibgroup/target/target.h')
-rw-r--r--agent/mibgroup/target/target.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/agent/mibgroup/target/target.h b/agent/mibgroup/target/target.h
new file mode 100644
index 0000000..a528b23
--- /dev/null
+++ b/agent/mibgroup/target/target.h
@@ -0,0 +1,24 @@
+#ifndef SNMP_TARGET_H
+#define SNMP_TARGET_H
+
+/*
+ * optional filtering function. Return either TARGET_SKIP or TARGET_KEEP
+ */
+typedef int (TargetFilterFunction) (struct targetAddrTable_struct *
+ targaddrs,
+ struct targetParamTable_struct *
+ param, void *);
+#define TARGET_KEEP 0
+#define TARGET_SKIP 1
+
+
+/*
+ * utility functions
+ */
+
+netsnmp_session *get_target_sessions(char *taglist, TargetFilterFunction *,
+ void *filterArg);
+
+config_require(target/snmpTargetAddrEntry target/snmpTargetParamsEntry)
+
+#endif /* SNMP_TARGET_H */