summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_ipc
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-05-12 14:45:15 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-05-12 14:45:15 +0000
commit8b120cbfc4dcb31ba66a18faf79b7b1ac408c718 (patch)
tree9e65bca902abe780c882b9abc8a0c7262f6da3ce /legacy/ecore/src/lib/ecore_ipc
parent5321d3758ec224e477d5d7934567b9c308faaca4 (diff)
how the fuck didnt that work before!
SVN revision: 14731
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h4
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c6
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" {
35/** 35/**
36 * Macros used for generic data packing 36 * Macros used for generic data packing
37 */ 37 */
38EAPI unsigned short _ecore_ipc_swap_16(unsigned short v);
39EAPI unsigned int _ecore_ipc_swap_32(unsigned int v);
40EAPI unsigned long long _ecore_ipc_swap_64(unsigned long long v);
41
38#ifdef WORDS_BIGENDIAN 42#ifdef WORDS_BIGENDIAN
39#define ECORE_IPC_SWAP2NET64(x) _ecore_ipc_swap_64(x) 43#define ECORE_IPC_SWAP2NET64(x) _ecore_ipc_swap_64(x)
40#define ECORE_IPC_SWAP2CPU64(x) _ecore_ipc_swap_64(x) 44#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 @@
29#define DLT_R2 15 29#define DLT_R2 15
30 30
31/* byte swappers - for dealing with big vs little endian machines */ 31/* byte swappers - for dealing with big vs little endian machines */
32static unsigned short 32unsigned short
33_ecore_ipc_swap_16(unsigned short v) 33_ecore_ipc_swap_16(unsigned short v)
34{ 34{
35 unsigned char *s, t; 35 unsigned char *s, t;
@@ -39,7 +39,7 @@ _ecore_ipc_swap_16(unsigned short v)
39 return v; 39 return v;
40} 40}
41 41
42static unsigned int 42unsigned int
43_ecore_ipc_swap_32(unsigned int v) 43_ecore_ipc_swap_32(unsigned int v)
44{ 44{
45 unsigned char *s, t; 45 unsigned char *s, t;
@@ -50,7 +50,7 @@ _ecore_ipc_swap_32(unsigned int v)
50 return v; 50 return v;
51} 51}
52 52
53static unsigned long long 53unsigned long long
54_ecore_ipc_swap_64(unsigned long long v) 54_ecore_ipc_swap_64(unsigned long long v)
55{ 55{
56 unsigned char *s, t; 56 unsigned char *s, t;