forked from enlightenment/enlightenment
Raster, check this out -- it may be closer to what you need ...
SVN revision: 4197
This commit is contained in:
parent
f3e2ca146f
commit
f3f45be8ef
33
src/fs.c
33
src/fs.c
|
@ -5,6 +5,39 @@ static Evas_List fs_handlers = NULL;
|
|||
|
||||
static void _e_fs_fd_handle(int fd);
|
||||
|
||||
static void
|
||||
_e_fs_fd_handle_a_la_cK(int fd)
|
||||
{
|
||||
EfsdEvent ev;
|
||||
Evas_List l;
|
||||
|
||||
while (efsd_events_pending(ec))
|
||||
{
|
||||
bzero(&ev, sizeof(EfsdEvent));
|
||||
|
||||
if (efsd_next_event(ec, &ev) >= 0)
|
||||
{
|
||||
for (l = fs_handlers; l; l = l->next)
|
||||
{
|
||||
void (*func) (EfsdEvent *ev);
|
||||
|
||||
func = l->data;
|
||||
func(&ev);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
efsd_close(ec);
|
||||
e_del_event_fd(fd);
|
||||
/* FIXME: need to queue a popup dialog here saying */
|
||||
/* efsd went wonky */
|
||||
printf("EEEEEEEEEEK efsd went wonky\n");
|
||||
}
|
||||
|
||||
efsd_cleanup_event(&ev);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_e_fs_fd_handle(int fd)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue