q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b598aefa67148aaf7a49eb2b0e588d239039e4dc

commit b598aefa67148aaf7a49eb2b0e588d239039e4dc
Author: Daniel Kolesa <[email protected]>
Date:   Thu Nov 27 17:13:20 2014 +0000

    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.
---
 src/lib/ecore_con/Ecore_Con.h       | 10 ++++++++++
 src/lib/ecore_con/ecore_con_base.eo | 15 +--------------
 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;
  */
 
 /**
+ * @typedef Ecore_Con_Dns_Cb
+ * A callback type for use with @ref ecore_con_lookup.
+ */
+typedef void (*Ecore_Con_Dns_Cb)(const char *canonname,
+                                 const char *ip,
+                                 struct sockaddr *addr,
+                                 int addrlen,
+                                 void *data);
+
+/**
  * @typedef Ecore_Con_Type
  * @enum _Ecore_Con_Type
  * 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 {
     size: int; /*@ The length of the data sent. */
 };
 
-type Ecore_Con_Dns_Cb: func void (const(char) *,
-                                 const(char) *,
-                                 struct sockaddr *,
-                                 int,
-                                 void *);
-
-/* FIXME: Ecore_Con_Dns_Cb should be like this:
-type Ecore_Con_Dns_Cb: func void (const(char) *canonname,
-                                 const(char) *ip,
-                                 struct sockaddr *addr,
-                                 int addrlen,
-                                 void *data);
-
-
+/* TODO
 * Add events (to all of the ecore con stuff, e.g url).
 * Make server the father of the client - make sure I don't leak references.
 *

-- 


Reply via email to