summaryrefslogtreecommitdiff
path: root/src/lib/ecore_ipc/ecore_ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_ipc/ecore_ipc.c')
-rw-r--r--src/lib/ecore_ipc/ecore_ipc.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index 03be3cf38c..8b71783f5c 100644
--- a/src/lib/ecore_ipc/ecore_ipc.c
+++ b/src/lib/ecore_ipc/ecore_ipc.c
@@ -39,39 +39,25 @@
39 39
40int _ecore_ipc_log_dom = -1; 40int _ecore_ipc_log_dom = -1;
41 41
42/****** This swap function are around just for backward compatibility do not remove *******/
42EAPI unsigned short 43EAPI unsigned short
43_ecore_ipc_swap_16(unsigned short v) 44_ecore_ipc_swap_16(unsigned short v)
44{ 45{
45 unsigned char *s, t; 46 return eina_swap16(v);
46
47 s = (unsigned char *)(&v);
48 t = s[0]; s[0] = s[1]; s[1] = t;
49 return v;
50} 47}
51 48
52EAPI unsigned int 49EAPI unsigned int
53_ecore_ipc_swap_32(unsigned int v) 50_ecore_ipc_swap_32(unsigned int v)
54{ 51{
55 unsigned char *s, t; 52 return eina_swap32(v);
56
57 s = (unsigned char *)(&v);
58 t = s[0]; s[0] = s[3]; s[3] = t;
59 t = s[1]; s[1] = s[2]; s[2] = t;
60 return v;
61} 53}
62 54
63EAPI unsigned long long 55EAPI unsigned long long
64_ecore_ipc_swap_64(unsigned long long v) 56_ecore_ipc_swap_64(unsigned long long v)
65{ 57{
66 unsigned char *s, t; 58 return eina_swap64(v);
67
68 s = (unsigned char *)(&v);
69 t = s[0]; s[0] = s[7]; s[7] = t;
70 t = s[1]; s[1] = s[6]; s[6] = t;
71 t = s[2]; s[2] = s[5]; s[5] = t;
72 t = s[3]; s[3] = s[4]; s[4] = t;
73 return v;
74} 59}
60/***********************/
75 61
76static int _ecore_ipc_dlt_int(int out, int prev, int *mode); 62static int _ecore_ipc_dlt_int(int out, int prev, int *mode);
77static int _ecore_ipc_ddlt_int(int in, int prev, int mode); 63static int _ecore_ipc_ddlt_int(int in, int prev, int mode);