+ecore_exe_data_set

SVN revision: 58737
This commit is contained in:
Mike Blumenkrantz 2011-04-19 21:38:24 +00:00
parent c00b418345
commit 4fa3007806
3 changed files with 27 additions and 0 deletions

View File

@ -131,3 +131,7 @@
2011-04-13 Doyun Kang
* Ecore_X + Ecore_Evas: Add more support for shape input setting
2011-04-19 Mike Blumenkrantz
* +ecore_exe_data_set

View File

@ -397,6 +397,7 @@ extern "C" {
EAPI const char *ecore_exe_tag_get(const Ecore_Exe *exe);
EAPI const char *ecore_exe_cmd_get(const Ecore_Exe *exe);
EAPI void *ecore_exe_data_get(const Ecore_Exe *exe);
EAPI void *ecore_exe_data_set(Ecore_Exe *exe, void *data);
EAPI Ecore_Exe_Flags ecore_exe_flags_get(const Ecore_Exe *exe);
EAPI void ecore_exe_pause(Ecore_Exe *exe);
EAPI void ecore_exe_continue(Ecore_Exe *exe);

View File

@ -1133,6 +1133,28 @@ ecore_exe_data_get(const Ecore_Exe *exe)
return exe->data;
}
/**
* Sets the data attached to the given process handle.
* @param exe The given process handle.
* @param data The pointer to attach
* @return The data pointer previously attached to @p exe with
* ecore_exe_run(), ecore_exe_pipe_run(), or ecore_exe_data_set()
* @since 1.1
*/
EAPI void *
ecore_exe_data_set(Ecore_Exe *exe, void *data)
{
void *ret;
if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
{
ECORE_MAGIC_FAIL(exe, ECORE_MAGIC_EXE, __func__);
return NULL;
}
ret = exe->data;
exe->data = data;
return ret;
}
/**
* Retrieves the flags attached to the given process handle.
* @param exe The given process handle.