From 69fe06c8d2a92dfa94e09f7ff3c8b52f0ffa6d8d Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 3 Mar 2014 11:19:14 +0100 Subject: [PATCH] move yk_endian_swap_16 to ykcore.h since we export it anyways.. --- ykcore/ykcore.h | 4 ++++ ykcore/ykcore_lcl.h | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) 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__ */ -- 2.39.5