Raster, check this out -- it may be closer to what you need ...

SVN revision: 4197
This commit is contained in:
cpk 2001-02-13 00:18:42 +00:00 committed by cpk
parent f3e2ca146f
commit f3f45be8ef
1 changed files with 33 additions and 0 deletions

View File

@ -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)
{