parent
c9fe9dfef3
commit
fb2310d5a4
|
@ -15,7 +15,8 @@ eio_main.c \
|
||||||
eio_single.c \
|
eio_single.c \
|
||||||
eio_dir.c \
|
eio_dir.c \
|
||||||
eio_monitor.c \
|
eio_monitor.c \
|
||||||
eio_poll.c
|
eio_poll.c \
|
||||||
|
eio_xattr.c
|
||||||
|
|
||||||
if EIO_HAVE_INOTIFY
|
if EIO_HAVE_INOTIFY
|
||||||
libeio_la_SOURCES += eio_inotify.c
|
libeio_la_SOURCES += eio_inotify.c
|
||||||
|
|
|
@ -233,28 +233,6 @@ _eio_file_direct_notify(void *data, Ecore_Thread *thread __UNUSED__, void *msg_d
|
||||||
eio_direct_info_free(info);
|
eio_direct_info_free(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
_eio_file_end(void *data, Ecore_Thread *thread __UNUSED__)
|
|
||||||
{
|
|
||||||
Eio_File_Ls *async = data;
|
|
||||||
|
|
||||||
async->common.done_cb((void*) async->common.data, &async->common);
|
|
||||||
|
|
||||||
eina_stringshare_del(async->directory);
|
|
||||||
free(async);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
_eio_file_error(void *data, Ecore_Thread *thread __UNUSED__)
|
|
||||||
{
|
|
||||||
Eio_File_Ls *async = data;
|
|
||||||
|
|
||||||
eio_file_error(&async->common);
|
|
||||||
|
|
||||||
eina_stringshare_del(async->directory);
|
|
||||||
free(async);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef HAVE_XATTR
|
#ifdef HAVE_XATTR
|
||||||
static void
|
static void
|
||||||
_eio_file_copy_xattr(Ecore_Thread *thread, Eio_File_Progress *op, int in, int out)
|
_eio_file_copy_xattr(Ecore_Thread *thread, Eio_File_Progress *op, int in, int out)
|
||||||
|
@ -265,7 +243,7 @@ _eio_file_copy_xattr(Ecore_Thread *thread, Eio_File_Progress *op, int in, int ou
|
||||||
|
|
||||||
length = flistxattr(in, NULL, 0);
|
length = flistxattr(in, NULL, 0);
|
||||||
|
|
||||||
if (length > 0) return ;
|
if (length <= 0) return ;
|
||||||
|
|
||||||
tmp = alloca(length);
|
tmp = alloca(length);
|
||||||
length = flistxattr(in, tmp, length);
|
length = flistxattr(in, tmp, length);
|
||||||
|
@ -652,6 +630,28 @@ eio_file_copy_do(Ecore_Thread *thread, Eio_File_Progress *copy)
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
eio_async_end(void *data, Ecore_Thread *thread __UNUSED__)
|
||||||
|
{
|
||||||
|
Eio_File_Ls *async = data;
|
||||||
|
|
||||||
|
async->common.done_cb((void*) async->common.data, &async->common);
|
||||||
|
|
||||||
|
eina_stringshare_del(async->directory);
|
||||||
|
free(async);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
eio_async_error(void *data, Ecore_Thread *thread __UNUSED__)
|
||||||
|
{
|
||||||
|
Eio_File_Ls *async = data;
|
||||||
|
|
||||||
|
eio_file_error(&async->common);
|
||||||
|
|
||||||
|
eina_stringshare_del(async->directory);
|
||||||
|
free(async);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endcond
|
* @endcond
|
||||||
*/
|
*/
|
||||||
|
@ -708,8 +708,8 @@ eio_file_ls(const char *dir,
|
||||||
data,
|
data,
|
||||||
_eio_file_heavy,
|
_eio_file_heavy,
|
||||||
_eio_file_notify,
|
_eio_file_notify,
|
||||||
_eio_file_end,
|
eio_async_end,
|
||||||
_eio_file_error))
|
eio_async_error))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return &async->ls.common;
|
return &async->ls.common;
|
||||||
|
@ -756,8 +756,8 @@ eio_file_direct_ls(const char *dir,
|
||||||
data,
|
data,
|
||||||
_eio_file_direct_heavy,
|
_eio_file_direct_heavy,
|
||||||
_eio_file_direct_notify,
|
_eio_file_direct_notify,
|
||||||
_eio_file_end,
|
eio_async_end,
|
||||||
_eio_file_error))
|
eio_async_error))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return &async->ls.common;
|
return &async->ls.common;
|
||||||
|
@ -804,8 +804,8 @@ eio_file_stat_ls(const char *dir,
|
||||||
data,
|
data,
|
||||||
_eio_file_stat_heavy,
|
_eio_file_stat_heavy,
|
||||||
_eio_file_direct_notify,
|
_eio_file_direct_notify,
|
||||||
_eio_file_end,
|
eio_async_end,
|
||||||
_eio_file_error))
|
eio_async_error))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return &async->ls.common;
|
return &async->ls.common;
|
||||||
|
|
|
@ -223,4 +223,7 @@ void eio_monitor_fallback_del(Eio_Monitor *monitor);
|
||||||
void _eio_monitor_send(Eio_Monitor *monitor, const char *filename, int event_code);
|
void _eio_monitor_send(Eio_Monitor *monitor, const char *filename, int event_code);
|
||||||
void _eio_monitor_rename(Eio_Monitor *monitor, const char *newpath);
|
void _eio_monitor_rename(Eio_Monitor *monitor, const char *newpath);
|
||||||
|
|
||||||
|
void eio_async_end(void *data, Ecore_Thread *thread);
|
||||||
|
void eio_async_error(void *data, Ecore_Thread *thread);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue