net-snmp-includes.h
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:2k
- #ifndef NET_SNMP_INCLUDES_H
- #define NET_SNMP_INCLUDES_H
- /**
- * Convenience header file to pull in the full
- * Net-SNMP library API in one go, together with
- * certain commonly-required system header files.
- */
- /*
- * Common system header requirements
- */
- #include <stdio.h>
- #include <sys/types.h>
- #ifdef HAVE_STDINT_H
- #include <stdint.h>
- #endif
- #ifndef NET_SNMP_CONFIG_H
- #error "Please include <net-snmp/net-snmp-config.h> before this file"
- #endif
- #if HAVE_STRING_H
- #include <string.h>
- #else
- #include <strings.h>
- #endif
- #if HAVE_STDLIB_H
- #include <stdlib.h>
- #endif
- #if HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #if TIME_WITH_SYS_TIME
- # ifdef WIN32
- # include <sys/timeb.h>
- # else
- # include <sys/time.h>
- # endif
- # include <time.h>
- #else
- # if HAVE_SYS_TIME_H
- # include <sys/time.h>
- # else
- # include <time.h>
- # endif
- #endif
- /*
- * Must be right after system headers, but before library code for best usage
- */
- #if HAVE_DMALLOC_H
- #include <dmalloc.h>
- #endif
- /*
- * The check for missing 'in_addr_t' is handled
- * within the main net-snmp-config.h file
- */
- /*
- * The full Net-SNMP API
- */
- #include <net-snmp/definitions.h>
- #include <net-snmp/types.h>
- #include <net-snmp/utilities.h>
- #include <net-snmp/session_api.h>
- #include <net-snmp/pdu_api.h>
- #include <net-snmp/mib_api.h>
- #include <net-snmp/varbind_api.h>
- #include <net-snmp/config_api.h>
- #include <net-snmp/output_api.h>
- #include <net-snmp/snmpv3_api.h>
- #ifdef CMU_COMPATIBLE
- #include <net-snmp/library/cmu_compat.h>
- #endif
- #endif /* NET_SNMP_INCLUDES_H */