forked from enlightenment/efl
ethumb: reorder parameter to match other EFL callback API.
SVN revision: 66608
This commit is contained in:
parent
521c66c9e5
commit
122b8d9f98
|
@ -159,7 +159,7 @@ _finished_thumb(void *data __UNUSED__, Ethumb_Client *client __UNUSED__, int id
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_exists(Ethumb_Client *c, __UNUSED__ Ethumb_Exists *thread, Eina_Bool exists, void *data)
|
_exists(void *data, Ethumb_Client *c, __UNUSED__ Ethumb_Exists *thread, Eina_Bool exists)
|
||||||
{
|
{
|
||||||
struct options *opts = data;
|
struct options *opts = data;
|
||||||
const char *thumb_path, *thumb_key;
|
const char *thumb_path, *thumb_key;
|
||||||
|
|
|
@ -114,7 +114,7 @@ typedef void (*Ethumb_Client_Generate_Cb)(void *data, Ethumb_Client *client, int
|
||||||
* temporarily realy restored to what it was when the call to
|
* temporarily realy restored to what it was when the call to
|
||||||
* ethumb_client_thumb_exists() was done.
|
* ethumb_client_thumb_exists() was done.
|
||||||
*/
|
*/
|
||||||
typedef void (*Ethumb_Client_Thumb_Exists_Cb)(Ethumb_Client *client, Ethumb_Exists *thread, Eina_Bool exists, void *data);
|
typedef void (*Ethumb_Client_Thumb_Exists_Cb)(void *data, Ethumb_Client *client, Ethumb_Exists *thread, Eina_Bool exists);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief reports results of ethumb_client_generate_cancel()
|
* @brief reports results of ethumb_client_generate_cancel()
|
||||||
|
|
|
@ -610,9 +610,9 @@ _ethumb_client_exists_end(void *data, Ecore_Thread *thread __UNUSED__)
|
||||||
tmp = cb->client->ethumb;
|
tmp = cb->client->ethumb;
|
||||||
cb->client->ethumb = cb->dup;
|
cb->client->ethumb = cb->dup;
|
||||||
|
|
||||||
cb->exists_cb(cb->client, cb,
|
cb->exists_cb((void*) cb->data,
|
||||||
ethumb_exists(cb->client->ethumb),
|
cb->client, cb,
|
||||||
(void*) cb->data);
|
ethumb_exists(cb->client->ethumb));
|
||||||
|
|
||||||
cb->client->ethumb = tmp;
|
cb->client->ethumb = tmp;
|
||||||
EINA_REFCOUNT_UNREF(cb->client)
|
EINA_REFCOUNT_UNREF(cb->client)
|
||||||
|
@ -2229,7 +2229,7 @@ ethumb_client_thumb_exists(Ethumb_Client *client, Ethumb_Client_Thumb_Exists_Cb
|
||||||
return cb;
|
return cb;
|
||||||
|
|
||||||
on_error:
|
on_error:
|
||||||
exists_cb(client, NULL, EINA_FALSE, (void*) data);
|
exists_cb((void*) data, client, NULL, EINA_FALSE);
|
||||||
|
|
||||||
if (async)
|
if (async)
|
||||||
{
|
{
|
||||||
|
@ -2430,7 +2430,7 @@ _ethumb_client_thumb_generate_idler(void *data __UNUSED__)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ethumb_client_thumb_exists(Ethumb_Client *client, Ethumb_Exists *request, Eina_Bool exists, void *data)
|
_ethumb_client_thumb_exists(void *data, Ethumb_Client *client, Ethumb_Exists *request, Eina_Bool exists)
|
||||||
{
|
{
|
||||||
Ethumb_Client_Async *async = data;
|
Ethumb_Client_Async *async = data;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue