I read it as:
If func_free exists, the data will be passed to func_free to be cleaned up after everything else is done.
If func_free is NULL, then nothing will be called in the cleanup phase (everything else will work as normal).
Hope that clarifies it a bit.
--
brian
On May 2, 2004, at 3:56 PM, Gen Zhang wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I quote from source:
/**
* Add an event to the event queue.
* @param type The event type to add to the end of the event queue
* @param ev The private data structure for this event type
* @param func_free The function to be called to free this private structure
* @param data The data pointer to be passed to the free function
* @return A Handle for that event
*
* On success this function returns a handle to an event on the event queue,
or
* NULL if it fails. If it succeeds, an event of type @p type will be added
* to the queue for processing by event handlers added by
* ecore_event_handler_add(). The @p ev parameter will be a pointer to the
event
* private data that is specific to that event type. When the event is no
* longer needed, @p func_free will be called and passed the private sructure
* pointer for cleaning up. If @p func_free is NULL, nothnig will be called.
* This function is passed @p data as its data parameter.
*/
I am confused as to what happens if func_free is NULL. "nothing will be
called". Is that supposed to be a failure condition (as the following code
seems to indicate) or is the doc wrong?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAlWCa1N42u6LLBTERAirzAJ9EJa9N5kgTeCFq9s2wmR5Dk3aqBQCbBB91 Lvs+K5lQK8qrgMIj8OEHsYM= =qJPI -----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op�k
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ enlightenment-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
