22 #define MAX_INTS_PER_STRUCT 8
25 #define IINFO_DYNAMIC_VALUE -1
33 #define INT_TYPE_VOID 0
35 #define INT_TYPE_32BIT 1
36 #define INT_TYPE_16BIT (1<<1)
37 #define INT_TYPE_WORDS (1<<2)
39 #define INT_TYPE_NETWORK (1<<3)
90 #define INT_INFO const static int_info
92 #if BYTE_ORDER == LITTLE_ENDIAN
93 #include <linux/byteorder/little_endian.h>
95 #include <linux/byteorder/big_endian.h>
void ints_printf(void *s, int_info iinfo, void(*print_func(const char *,...)))
Definition: endianness.c:186
void ints_array_htons(short *netshort, int nmemb)
Definition: endianness.c:80
void ints_array_ntohs(short *hostshort, int nmemb)
Definition: endianness.c:70
void * int_info_copy(int_info *dst, const int_info *src)
Definition: endianness.c:45
Definition: endianness.h:69
#define MAX_INTS_PER_STRUCT
Definition: endianness.h:22
void ints_array_htonl(int *netlong, int nmemb)
Definition: endianness.c:60
void ints_array_ntohl(int *hostlong, int nmemb)
Definition: endianness.c:50
void ints_host_to_network(void *s, int_info iinfo)
Definition: endianness.c:143
int total_ints
Definition: endianness.h:72
void ints_network_to_host(void *s, int_info iinfo)
Definition: endianness.c:96