From 8b120cbfc4dcb31ba66a18faf79b7b1ac408c718 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 12 May 2005 14:45:15 +0000 Subject: [PATCH] how the fuck didnt that work before! SVN revision: 14731 --- legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h | 4 ++++ legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h index b3cf05b2ee..36b7b70208 100644 --- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h +++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h @@ -35,6 +35,10 @@ extern "C" { /** * Macros used for generic data packing */ +EAPI unsigned short _ecore_ipc_swap_16(unsigned short v); +EAPI unsigned int _ecore_ipc_swap_32(unsigned int v); +EAPI unsigned long long _ecore_ipc_swap_64(unsigned long long v); + #ifdef WORDS_BIGENDIAN #define ECORE_IPC_SWAP2NET64(x) _ecore_ipc_swap_64(x) #define ECORE_IPC_SWAP2CPU64(x) _ecore_ipc_swap_64(x) diff --git a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c index 37ee911bc4..cbe2c03b3e 100644 --- a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c +++ b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c @@ -29,7 +29,7 @@ #define DLT_R2 15 /* byte swappers - for dealing with big vs little endian machines */ -static unsigned short +unsigned short _ecore_ipc_swap_16(unsigned short v) { unsigned char *s, t; @@ -39,7 +39,7 @@ _ecore_ipc_swap_16(unsigned short v) return v; } -static unsigned int +unsigned int _ecore_ipc_swap_32(unsigned int v) { unsigned char *s, t; @@ -50,7 +50,7 @@ _ecore_ipc_swap_32(unsigned int v) return v; } -static unsigned long long +unsigned long long _ecore_ipc_swap_64(unsigned long long v) { unsigned char *s, t;