]> err.no Git - yubikey-personalization/commitdiff
move yk_endian_swap_16 to ykcore.h since we export it anyways..
authorKlas Lindfors <klas@yubico.com>
Mon, 3 Mar 2014 10:19:14 +0000 (11:19 +0100)
committerKlas Lindfors <klas@yubico.com>
Mon, 3 Mar 2014 10:20:19 +0000 (11:20 +0100)
ykcore/ykcore.h
ykcore/ykcore_lcl.h

index 9bdc9fbcbdb76dbdbb220aab1524bf9c59b7decd..89e6fbdc2965053feb730f8c825ea5603e78dd47 100644 (file)
@@ -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
index 7874735ea9d28b1ae6247e5e8a9410628983362b..53619acb96f4a024a093b9ade22fc7934b8de0c3 100644 (file)
@@ -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__ */