stash_cache.h
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:1k
源码类别:

SNMP编程

开发平台:

Unix_Linux

  1. #ifndef STASH_CACHE_H
  2. #define STASH_CACHE_H
  3. #include <net-snmp/library/oid_stash.h>
  4. #include <net-snmp/library/tools.h>
  5. #define STASH_CACHE_NAME "stash_cache"
  6. typedef struct netsnmp_stash_cache_info_s {
  7.    int                      cache_valid;
  8.    marker_t                 cache_time;
  9.    netsnmp_oid_stash_node  *cache;
  10.    int                      cache_length;
  11. } netsnmp_stash_cache_info;
  12. typedef struct netsnmp_stash_cache_data_s {
  13.    void              *data;
  14.    size_t             data_len;
  15.    u_char             data_type;
  16. } netsnmp_stash_cache_data;
  17. /* function prototypes */
  18. netsnmp_mib_handler *netsnmp_get_stash_cache_handler(void);
  19. Netsnmp_Node_Handler netsnmp_stash_cache_helper;
  20. netsnmp_oid_stash_node  **netsnmp_extract_stash_cache(netsnmp_agent_request_info *reqinfo);
  21. 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);
  22. #endif /* STASH_CACHE_H */