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.
This commit is contained in:
Daniel Kolesa 2014-11-27 17:13:20 +00:00
parent 07c68ac42b
commit b598aefa67
2 changed files with 11 additions and 14 deletions

View File

@ -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

View 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.
*