forked from enlightenment/efl
make the generated callback receive the thumb path and key
SVN revision: 40969
This commit is contained in:
parent
b7d1bed838
commit
06437b0e33
|
@ -736,8 +736,9 @@ _ethumb_client_generated_cb(void *data, DBusMessage *msg)
|
||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
client->pending_gen = eina_list_remove_list(client->pending_gen, l);
|
client->pending_gen = eina_list_remove_list(client->pending_gen, l);
|
||||||
pending->generated_cb(id, pending->file, pending->key, success,
|
pending->generated_cb(id, pending->file, pending->key,
|
||||||
pending->data);
|
pending->thumb, pending->thumb_key,
|
||||||
|
success, pending->data);
|
||||||
eina_stringshare_del(pending->file);
|
eina_stringshare_del(pending->file);
|
||||||
eina_stringshare_del(pending->key);
|
eina_stringshare_del(pending->key);
|
||||||
eina_stringshare_del(pending->thumb);
|
eina_stringshare_del(pending->thumb);
|
||||||
|
|
|
@ -39,7 +39,9 @@ extern "C" {
|
||||||
|
|
||||||
typedef struct _Ethumb_Client Ethumb_Client;
|
typedef struct _Ethumb_Client Ethumb_Client;
|
||||||
typedef void (*ec_connect_callback_t)(Ethumb_Client *client, Eina_Bool success, void *data);
|
typedef void (*ec_connect_callback_t)(Ethumb_Client *client, Eina_Bool success, void *data);
|
||||||
typedef void (*generated_callback_t)(long id, const char *file, const char *key, Eina_Bool success, void *data);
|
typedef void (*generated_callback_t)(long id, const char *file, const char *key,
|
||||||
|
const char *thumb_path, const char *thumb_key,
|
||||||
|
Eina_Bool success, void *data);
|
||||||
|
|
||||||
EAPI int ethumb_client_init(void);
|
EAPI int ethumb_client_init(void);
|
||||||
EAPI int ethumb_client_shutdown(void);
|
EAPI int ethumb_client_shutdown(void);
|
||||||
|
|
|
@ -39,9 +39,9 @@ _on_server_die_cb(Ethumb_Client *client, void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_queue_add_cb(long id, const char *file, const char *key, Eina_Bool success, void *data)
|
_queue_add_cb(long id, const char *file, const char *key, const char *thumb_path, const char *thumb_key, Eina_Bool success, void *data)
|
||||||
{
|
{
|
||||||
fprintf(stderr, ">>> file ready: %s; id = %ld\n", file, id);
|
fprintf(stderr, ">>> file ready: %s; thumb ready: %s; id = %ld\n", file, thumb_path, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue