1 #ifndef NET_SNMP_TYPES_H
2 #define NET_SNMP_TYPES_H
5 * Definitions of data structures, used within the library API.
10 #ifndef NET_SNMP_CONFIG_H
11 #error "Please include <net-snmp/net-snmp-config.h> before this file"
17 #if TIME_WITH_SYS_TIME
19 # include <sys/timeb.h>
21 # include <sys/time.h>
26 # include <sys/time.h>
32 #include <sys/types.h>
38 #include <netinet/in.h> /* For definition of in_addr_t */
45 #ifndef MAX_SUBID /* temporary - duplicate definition protection */
46 #ifndef EIGHTBIT_SUBIDS
48 #define MAX_SUBID 0xFFFFFFFF
51 #define MAX_SUBID 0xFF
55 #ifndef HAVE_SOCKLEN_T
56 typedef u_int socklen_t;
59 #ifndef HAVE_IN_ADDR_T
60 typedef u_int in_addr_t;
65 * For the initial release, this will just refer to the
66 * relevant UCD header files.
67 * In due course, the types and structures relevant to the
68 * Net-SNMP API will be identified, and defined here directly.
70 * But for the time being, this header file is primarily a placeholder,
71 * to allow application writers to adopt the new header file names.
75 #include <net-snmp/definitions.h>
76 #include <net-snmp/library/snmp_api.h>
78 * #include <net-snmp/library/libsnmp.h>
81 typedef struct netsnmp_index_s {
87 typedef struct netsnmp_void_array_s {
96 #endif /* NET_SNMP_TYPES_H */