diff --git a/src/lib/ecore_con/Ecore_Con.h b/src/lib/ecore_con/Ecore_Con.h index 6cfea2eff3..3c3daaaeb0 100644 --- a/src/lib/ecore_con/Ecore_Con.h +++ b/src/lib/ecore_con/Ecore_Con.h @@ -248,6 +248,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 diff --git a/src/lib/ecore_con/ecore_con_base.eo b/src/lib/ecore_con/ecore_con_base.eo index e6eed1b7e5..b56252f7c0 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. *