summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_socket_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_con/efl_net_socket_simple.c')
-rw-r--r--src/lib/ecore_con/efl_net_socket_simple.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/lib/ecore_con/efl_net_socket_simple.c b/src/lib/ecore_con/efl_net_socket_simple.c
new file mode 100644
index 0000000..c549050
--- /dev/null
+++ b/src/lib/ecore_con/efl_net_socket_simple.c
@@ -0,0 +1,35 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include "Ecore.h"
6#include "Ecore_Con.h"
7#include "ecore_con_private.h"
8
9typedef struct
10{
11
12} Efl_Net_Socket_Simple_Data;
13
14#define MY_CLASS EFL_NET_SOCKET_SIMPLE_CLASS
15
16EOLIAN static void
17_efl_net_socket_simple_efl_io_buffered_stream_inner_io_set(Eo *o, Efl_Net_Socket_Simple_Data *pd EINA_UNUSED, Efl_Object *io)
18{
19 EINA_SAFETY_ON_FALSE_RETURN(efl_isa(io, EFL_NET_SOCKET_INTERFACE));
20 efl_io_buffered_stream_inner_io_set(efl_super(o, MY_CLASS), io);
21}
22
23EOLIAN static const char *
24_efl_net_socket_simple_efl_net_socket_address_local_get(Eo *o, Efl_Net_Socket_Simple_Data *pd EINA_UNUSED)
25{
26 return efl_net_socket_address_local_get(efl_io_buffered_stream_inner_io_get(o));
27}
28
29EOLIAN static const char *
30_efl_net_socket_simple_efl_net_socket_address_remote_get(Eo *o, Efl_Net_Socket_Simple_Data *pd EINA_UNUSED)
31{
32 return efl_net_socket_address_remote_get(efl_io_buffered_stream_inner_io_get(o));
33}
34
35#include "efl_net_socket_simple.eo.c"