forked from enlightenment/efl
eio: implement efl_io_manager_xattr_ls
This commit is contained in:
parent
c6e145da2d
commit
0c067fb62f
|
@ -405,32 +405,28 @@ _efl_io_manager_stat(Eo *obj,
|
||||||
|
|
||||||
static Efl_Future *
|
static Efl_Future *
|
||||||
_efl_io_manager_xattr_ls(Eo *obj,
|
_efl_io_manager_xattr_ls(Eo *obj,
|
||||||
Efl_Io_Manager_Data *pd,
|
Efl_Io_Manager_Data *pd EINA_UNUSED,
|
||||||
const char *path)
|
const char *path)
|
||||||
{
|
{
|
||||||
// FIXME
|
Efl_Promise *p;
|
||||||
#if 0
|
Eio_File *h;
|
||||||
Eina_Promise_Owner *promise = eina_promise_add();
|
|
||||||
Job_Closure *operation_data = _job_closure_create(obj, pd, promise);
|
|
||||||
|
|
||||||
Eina_Promise* p = eina_promise_owner_promise_get(promise);
|
p = efl_add(EFL_PROMISE_CLASS, obj);
|
||||||
if (!operation_data)
|
if (!p) return NULL;
|
||||||
{
|
|
||||||
EINA_LOG_CRIT("Failed to create eio job operation data.");
|
|
||||||
eina_promise_owner_error_set(promise, eina_error_get());
|
|
||||||
eina_error_set(0);
|
|
||||||
return p;
|
|
||||||
}
|
|
||||||
|
|
||||||
operation_data->delayed_arg = (char*)calloc(sizeof(char), strlen(path) + 1);
|
h = _eio_file_xattr(path,
|
||||||
strcpy(operation_data->delayed_arg, path);
|
_file_string_cb,
|
||||||
|
_file_done_cb,
|
||||||
|
_file_error_cb,
|
||||||
|
p);
|
||||||
|
if (!h) goto end;
|
||||||
|
|
||||||
eina_promise_owner_progress_notify(promise,
|
efl_event_callback_array_add(p, promise_progress_handling(), h);
|
||||||
_xattr_notify_start,
|
return efl_promise_future_get(p);
|
||||||
operation_data,
|
|
||||||
_free_notify_start_data);
|
end:
|
||||||
return p;
|
efl_del(p);
|
||||||
#endif
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Efl_Future *
|
static Efl_Future *
|
||||||
|
|
Loading…
Reference in New Issue