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.
*/
/**
+ * @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
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.
*