Debian Codegraph @

include/net-snmp/agent/stash_cache.h

raw
1 #ifndef STASH_CACHE_H
2 #define STASH_CACHE_H
3
4 #include <net-snmp/library/oid_stash.h>
5 #include <net-snmp/library/tools.h>
6
7 #define STASH_CACHE_NAME "stash_cache"
8
9 typedef struct netsnmp_stash_cache_info_s {
10 int cache_valid;
11 marker_t cache_time;
12 netsnmp_oid_stash_node *cache;
13 int cache_length;
14 } netsnmp_stash_cache_info;
15
16 typedef struct netsnmp_stash_cache_data_s {
17 void *data;
18 size_t data_len;
19 u_char data_type;
20 } netsnmp_stash_cache_data;
21
22 /* function prototypes */
23 void netsnmp_init_stash_cache_helper(void);
24 netsnmp_mib_handler *netsnmp_get_bare_stash_cache_handler(void);
25 netsnmp_mib_handler *netsnmp_get_stash_cache_handler(void);
26 netsnmp_mib_handler *netsnmp_get_timed_bare_stash_cache_handler(int timeout,
27 oid *rootoid, size_t rootoid_len);
28 netsnmp_mib_handler *netsnmp_get_timed_stash_cache_handler(int timeout,
29 oid *rootoid, size_t rootoid_len);
30 Netsnmp_Node_Handler netsnmp_stash_cache_helper;
31 netsnmp_oid_stash_node **netsnmp_extract_stash_cache(netsnmp_agent_request_info *reqinfo);
32 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);
33
34
35 #endif /* STASH_CACHE_H */