summaryrefslogtreecommitdiff
path: root/include/net-snmp/agent/stash_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net-snmp/agent/stash_cache.h')
-rw-r--r--include/net-snmp/agent/stash_cache.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/net-snmp/agent/stash_cache.h b/include/net-snmp/agent/stash_cache.h
new file mode 100644
index 0000000..cfa85ef
--- /dev/null
+++ b/include/net-snmp/agent/stash_cache.h
@@ -0,0 +1,34 @@
+#ifndef STASH_CACHE_H
+#define STASH_CACHE_H
+
+#include <net-snmp/library/oid_stash.h>
+#include <net-snmp/library/tools.h>
+
+#define STASH_CACHE_NAME "stash_cache"
+
+typedef struct netsnmp_stash_cache_info_s {
+ int cache_valid;
+ marker_t cache_time;
+ netsnmp_oid_stash_node *cache;
+ int cache_length;
+} netsnmp_stash_cache_info;
+
+typedef struct netsnmp_stash_cache_data_s {
+ void *data;
+ size_t data_len;
+ u_char data_type;
+} netsnmp_stash_cache_data;
+
+/* function prototypes */
+netsnmp_mib_handler *netsnmp_get_bare_stash_cache_handler(void);
+netsnmp_mib_handler *netsnmp_get_stash_cache_handler(void);
+netsnmp_mib_handler *netsnmp_get_timed_bare_stash_cache_handler(int timeout,
+ oid *rootoid, size_t rootoid_len);
+netsnmp_mib_handler *netsnmp_get_timed_stash_cache_handler(int timeout,
+ oid *rootoid, size_t rootoid_len);
+Netsnmp_Node_Handler netsnmp_stash_cache_helper;
+netsnmp_oid_stash_node **netsnmp_extract_stash_cache(netsnmp_agent_request_info *reqinfo);
+int netsnmp_stash_cache_update(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests, netsnmp_stash_cache_info *cinfo);
+
+
+#endif /* STASH_CACHE_H */