ecore_con: move Ecore_Con_Dns_Cb back to C
authorDaniel Kolesa <d.kolesa@samsung.com>
Thu, 27 Nov 2014 17:13:20 +0000 (17:13 +0000)
committerDaniel Kolesa <d.kolesa@samsung.com>
Thu, 27 Nov 2014 17:13:20 +0000 (17:13 +0000)
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
src/lib/ecore_con/ecore_con_base.eo

index 6cfea2e..3c3daaa 100644 (file)
@@ -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
index e6eed1b..b56252f 100644 (file)
@@ -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.
 *