<html> <head> <title>Ecore: Ecore Jobs</title> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> <meta name="author" content="Andres Blanc" > <link rel="icon" href="img/favicon.png" type="image/x-icon"> <link rel="shortcut icon" href="img/favicon.png" type="image/x-icon"> <link rel="icon" href="img/favicon.png" type="image/ico"> <link rel="shortcut icon" href="img/favicon.png" type="image/ico"> <link rel="stylesheet" type="text/css" href="e.css"> <link rel="stylesheet" type="text/css" href="edoxy.css"> </head> <body> <div id="container"> <div id="header"> <div class="layout"> <h1><span>Enlightenment</span></h1> <h2><span>Beauty at your fingertips</span></h2> <table cellspacing="0" cellpadding="0" width="100%"><tr> <td id="header_logo"> <a href="http://www.enlightenment.org"></a> </td> <td id="header_menu"> <table cellspacing="0" cellpadding="0" align="right"><tr> <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=home">Home</a></td> <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=news">News</a></td> <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=about">About</a></td> <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=download">Download</a></td> <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=support">Support</a></td> <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=contribute">Contribute</a></td> <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=contact">Contact</a></td> <td class="nav_passive"><a class="nav_passive" href="http://trac.enlightenment.org/e">Tracker</a></td> <td class="nav_passive"><a class="nav_passive" href="http://www.enlightenment.org/p.php?p=docs">Docs</a></td> </tr></table> </td> <td id="header_last"></td> </tr></table> <div class="doxytitle"> Ecore Documentation <small>at 2 Jul 2010</small> </div> <div class="menu-container"> <div class="submenu"> <ul class="current"> <li><a href="files.html">Files</a></li> <li><a href="annotated.html">Data Structures</a></li> <li><a href="globals.html">Globals</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="pages.html">Related Pages</a></li> <li class="current"><a href="index.html">Main Page</a></li> </ul> </div> </div> <div class="clear"></div> </div> </div> <div id="content"> <div class="layout"> <!-- Generated by Doxygen 1.6.2-20100208 --> <div class="contents"> <h1>Ecore Jobs</h1> <p>You can queue jobs that are to be done by the main loop when the current event is dealt with. <a href="#_details">More...</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">EAPI <a class="el" href="Ecore_8h.html#a51a4bfa938b1205aead7d0dd2dae83db">Ecore_Job</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Ecore__Job__Group.html#ga9bb4655e3e4c06d78cd07aa0ac055956">ecore_job_add</a> (void(*func)(void *data), const void *data)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a job to the event queue. <a href="#ga9bb4655e3e4c06d78cd07aa0ac055956"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">EAPI void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Ecore__Job__Group.html#gae64c687b8d34b255cf9ab62175e62859">ecore_job_del</a> (<a class="el" href="Ecore_8h.html#a51a4bfa938b1205aead7d0dd2dae83db">Ecore_Job</a> *job)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a queued job that has not yet been executed. <a href="#gae64c687b8d34b255cf9ab62175e62859"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>You can queue jobs that are to be done by the main loop when the current event is dealt with. </p> <hr/><h2>Function Documentation</h2> <a class="anchor" id="ga9bb4655e3e4c06d78cd07aa0ac055956"></a><!-- doxytag: member="ecore_job.c::ecore_job_add" ref="ga9bb4655e3e4c06d78cd07aa0ac055956" args="(void(*func)(void *data), const void *data)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">EAPI <a class="el" href="Ecore_8h.html#a51a4bfa938b1205aead7d0dd2dae83db">Ecore_Job</a>* ecore_job_add </td> <td>(</td> <td class="paramtype">void(*)(void *data) </td> <td class="paramname"> <em>func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const void * </td> <td class="paramname"> <em>data</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Add a job to the event queue. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>func</em> </td><td>The function to call when the job gets handled. </td></tr> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>Data pointer to be passed to the job function when the job is handled. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The handle of the job. <code>NULL</code> is returned if the job could not be added to the queue.</dd></dl> <dl class="note"><dt><b>Note:</b></dt><dd>Once the job has been executed, the job handle is invalid. </dd></dl> <p>References <a class="el" href="ecore__events_8c_source.html#l00189">ecore_event_add()</a>.</p> </div> </div> <a class="anchor" id="gae64c687b8d34b255cf9ab62175e62859"></a><!-- doxytag: member="ecore_job.c::ecore_job_del" ref="gae64c687b8d34b255cf9ab62175e62859" args="(Ecore_Job *job)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">EAPI void* ecore_job_del </td> <td>(</td> <td class="paramtype"><a class="el" href="Ecore_8h.html#a51a4bfa938b1205aead7d0dd2dae83db">Ecore_Job</a> * </td> <td class="paramname"> <em>job</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Delete a queued job that has not yet been executed. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>job</em> </td><td>Handle of the job to delete. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The data pointer that was to be passed to the job. </dd></dl> <p>References <a class="el" href="ecore__events_8c_source.html#l00210">ecore_event_del()</a>.</p> </div> </div> </div> <div id="push"></div> </div> <!-- #content --> </div> <!-- .layout --> </div> <!-- #container --> <div id="footer"> <table><tr> <td class="copyright">Copyright ©2010 Enlightenment</td> <td class="generated">Docs generated Fri Jul 2 12:11:49 2010</td> </tr></table> </div> </body> </html>