summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-11-27 17:13:20 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2014-11-27 17:13:20 +0000
commitb598aefa67148aaf7a49eb2b0e588d239039e4dc (patch)
treee052a0cb173d6f1932c41da836143d0fc49235b4
parent07c68ac42b7f8b1108e46b14b790a64b2ab19383 (diff)
ecore_con: move Ecore_Con_Dns_Cb back to C
We'll be removing function pointer support from Eolian, instead replacing any callback we can with events (arbitrary callbacks are very difficult to support in bindings). As we'll be handling all callbacks at once, we'll do this one at that point as well.
-rw-r--r--src/lib/ecore_con/Ecore_Con.h10
-rw-r--r--src/lib/ecore_con/ecore_con_base.eo15
2 files changed, 11 insertions, 14 deletions
diff --git a/src/lib/ecore_con/Ecore_Con.h b/src/lib/ecore_con/Ecore_Con.h
index 6cfea2e..3c3daaa 100644
--- a/src/lib/ecore_con/Ecore_Con.h
+++ b/src/lib/ecore_con/Ecore_Con.h
@@ -249,6 +249,16 @@ typedef struct Ecore_Con_Socks Ecore_Con_Socks;
249 */ 249 */
250 250
251/** 251/**
252 * @typedef Ecore_Con_Dns_Cb
253 * A callback type for use with @ref ecore_con_lookup.
254 */
255typedef void (*Ecore_Con_Dns_Cb)(const char *canonname,
256 const char *ip,
257 struct sockaddr *addr,
258 int addrlen,
259 void *data);
260
261/**
252 * @typedef Ecore_Con_Type 262 * @typedef Ecore_Con_Type
253 * @enum _Ecore_Con_Type 263 * @enum _Ecore_Con_Type
254 * Types for an ecore_con client/server object. A correct way to set this type is 264 * Types for an ecore_con client/server object. A correct way to set this type is
diff --git a/src/lib/ecore_con/ecore_con_base.eo b/src/lib/ecore_con/ecore_con_base.eo
index e6eed1b..b56252f 100644
--- a/src/lib/ecore_con/ecore_con_base.eo
+++ b/src/lib/ecore_con/ecore_con_base.eo
@@ -181,20 +181,7 @@ type Ecore_Con_Event_Data_Received: struct {
181 size: int; /*@ The length of the data sent. */ 181 size: int; /*@ The length of the data sent. */
182}; 182};
183 183
184type Ecore_Con_Dns_Cb: func void (const(char) *, 184/* TODO
185 const(char) *,
186 struct sockaddr *,
187 int,
188 void *);
189
190/* FIXME: Ecore_Con_Dns_Cb should be like this:
191type Ecore_Con_Dns_Cb: func void (const(char) *canonname,
192 const(char) *ip,
193 struct sockaddr *addr,
194 int addrlen,
195 void *data);
196
197
198* Add events (to all of the ecore con stuff, e.g url). 185* Add events (to all of the ecore con stuff, e.g url).
199* Make server the father of the client - make sure I don't leak references. 186* Make server the father of the client - make sure I don't leak references.
200* 187*