From: Klas Lindfors Date: Mon, 3 Mar 2014 10:19:14 +0000 (+0100) Subject: move yk_endian_swap_16 to ykcore.h since we export it anyways.. X-Git-Tag: v1.15.1~12 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69fe06c8d2a92dfa94e09f7ff3c8b52f0ffa6d8d;p=yubikey-personalization move yk_endian_swap_16 to ykcore.h since we export it anyways.. --- diff --git a/ykcore/ykcore.h b/ykcore/ykcore.h index 9bdc9fb..89e6fbd 100644 --- a/ykcore/ykcore.h +++ b/ykcore/ykcore.h @@ -147,6 +147,10 @@ const char *yk_strerror(int errnum); error. */ const char *yk_usb_strerror(void); + +/* Swaps the two bytes between little and big endian on big endian machines */ +extern uint16_t yk_endian_swap_16(uint16_t x); + #define YK_EUSBERR 0x01 /* USB error reporting should be used */ #define YK_EWRONGSIZ 0x02 #define YK_EWRITEERR 0x03 diff --git a/ykcore/ykcore_lcl.h b/ykcore/ykcore_lcl.h index 7874735..53619ac 100644 --- a/ykcore/ykcore_lcl.h +++ b/ykcore/ykcore_lcl.h @@ -66,13 +66,4 @@ extern int yk_read_from_key(YK_KEY *k, uint8_t slot, void *buf, unsigned int bufsize, unsigned int *bufcount); -/************************************************************************* - * - * Internal helper functions - * - ****/ - -/* Swaps the two bytes between little and big endian on big endian machines */ -extern uint16_t yk_endian_swap_16(uint16_t x); - #endif /* __YKCORE_LCL_H_INCLUDED__ */