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

SNMP编程

开发平台:

Unix_Linux

  1. #ifdef UCD_COMPATIBLE
  2. #include <net-snmp/library/default_store.h>
  3. /*  Compatibility definitions -- see above header for meaningful comments.  */
  4. #define DS_MAX_IDS NETSNMP_DS_MAX_IDS
  5. #define DS_MAX_SUBIDS NETSNMP_DS_MAX_SUBIDS
  6. #define DS_LIBRARY_ID NETSNMP_DS_LIBRARY_ID
  7. #define DS_APPLICATION_ID NETSNMP_DS_APPLICATION_ID
  8. #define DS_TOKEN_ID NETSNMP_DS_TOKEN_ID
  9. #define DS_LIB_MIB_ERRORS NETSNMP_DS_LIB_MIB_ERRORS
  10. #define DS_LIB_SAVE_MIB_DESCRS NETSNMP_DS_LIB_SAVE_MIB_DESCRS
  11. #define DS_LIB_MIB_COMMENT_TERM NETSNMP_DS_LIB_MIB_COMMENT_TERM
  12. #define DS_LIB_MIB_PARSE_LABEL NETSNMP_DS_LIB_MIB_PARSE_LABEL
  13. #define DS_LIB_DUMP_PACKET NETSNMP_DS_LIB_DUMP_PACKET
  14. #define DS_LIB_LOG_TIMESTAMP NETSNMP_DS_LIB_LOG_TIMESTAMP
  15. #define DS_LIB_DONT_READ_CONFIGS NETSNMP_DS_LIB_DONT_READ_CONFIGS
  16. #define DS_LIB_MIB_REPLACE NETSNMP_DS_LIB_MIB_REPLACE
  17. #define DS_LIB_PRINT_NUMERIC_ENUM NETSNMP_DS_LIB_PRINT_NUMERIC_ENUM
  18. #define DS_LIB_PRINT_NUMERIC_OIDS NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS
  19. #define DS_LIB_DONT_BREAKDOWN_OIDS NETSNMP_DS_LIB_DONT_BREAKDOWN_OIDS
  20. #define DS_LIB_ALARM_DONT_USE_SIG  NETSNMP_DS_LIB_ALARM_DONT_USE_SIG
  21. #define DS_LIB_PRINT_FULL_OID  NETSNMP_DS_LIB_PRINT_FULL_OID
  22. #define DS_LIB_QUICK_PRINT  NETSNMP_DS_LIB_QUICK_PRINT
  23. #define DS_LIB_RANDOM_ACCESS  NETSNMP_DS_LIB_RANDOM_ACCESS
  24. #define DS_LIB_REGEX_ACCESS  NETSNMP_DS_LIB_REGEX_ACCESS
  25. #define DS_LIB_DONT_CHECK_RANGE  NETSNMP_DS_LIB_DONT_CHECK_RANGE
  26. #define DS_LIB_NO_TOKEN_WARNINGS  NETSNMP_DS_LIB_NO_TOKEN_WARNINGS
  27. #define DS_LIB_NUMERIC_TIMETICKS  NETSNMP_DS_LIB_NUMERIC_TIMETICKS
  28. #define DS_LIB_ESCAPE_QUOTES  NETSNMP_DS_LIB_ESCAPE_QUOTES
  29. #define DS_LIB_REVERSE_ENCODE  NETSNMP_DS_LIB_REVERSE_ENCODE
  30. #define DS_LIB_PRINT_BARE_VALUE  NETSNMP_DS_LIB_PRINT_BARE_VALUE
  31. #define DS_LIB_EXTENDED_INDEX  NETSNMP_DS_LIB_EXTENDED_INDEX
  32. #define DS_LIB_PRINT_HEX_TEXT  NETSNMP_DS_LIB_PRINT_HEX_TEXT
  33. #define DS_LIB_MIB_WARNINGS NETSNMP_DS_LIB_MIB_WARNINGS
  34. #define DS_LIB_SECLEVEL NETSNMP_DS_LIB_SECLEVEL
  35. #define DS_LIB_SNMPVERSION NETSNMP_DS_LIB_SNMPVERSION
  36. #define DS_LIB_DEFAULT_PORT NETSNMP_DS_LIB_DEFAULT_PORT
  37. #define DS_LIB_PRINT_SUFFIX_ONLY NETSNMP_DS_LIB_PRINT_SUFFIX_ONLY
  38. #define DS_LIB_SECNAME NETSNMP_DS_LIB_SECNAME
  39. #define DS_LIB_CONTEXT NETSNMP_DS_LIB_CONTEXT
  40. #define DS_LIB_PASSPHRASE NETSNMP_DS_LIB_PASSPHRASE
  41. #define DS_LIB_AUTHPASSPHRASE NETSNMP_DS_LIB_AUTHPASSPHRASE
  42. #define DS_LIB_PRIVPASSPHRASE NETSNMP_DS_LIB_PRIVPASSPHRASE
  43. #define DS_LIB_OPTIONALCONFIG NETSNMP_DS_LIB_OPTIONALCONFIG
  44. #define DS_LIB_APPTYPE NETSNMP_DS_LIB_APPTYPE
  45. #define DS_LIB_COMMUNITY NETSNMP_DS_LIB_COMMUNITY
  46. #define DS_LIB_PERSISTENT_DIR NETSNMP_DS_LIB_PERSISTENT_DIR
  47. #define DS_LIB_CONFIGURATION_DIR NETSNMP_DS_LIB_CONFIGURATION_DIR
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51. int ds_set_boolean (int storeid, int which, int value);
  52. int ds_get_boolean (int storeid, int which);
  53. int ds_toggle_boolean (int storeid, int which);
  54. int ds_set_int (int storeid, int which, int value);
  55. int ds_get_int (int storeid, int which);
  56. int ds_set_string (int storeid, int which, const char *value);
  57. char   *ds_get_string (int storeid, int which);
  58. int  ds_set_void (int storeid, int which, void *value);
  59. void   *ds_get_void (int storeid, int which);
  60. int ds_register_config (u_char type, const char *ftype,
  61.  const char *token, int storeid, int which);
  62. int ds_register_premib (u_char type, const char *ftype,
  63.  const char *token, int storeid, int which);
  64. void ds_shutdown (void);
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #else /* UCD_COMPATIBLE */
  69. #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
  70. #endif