From f3f45be8ef192da011029e56cf240849dba71a9b Mon Sep 17 00:00:00 2001 From: cpk Date: Tue, 13 Feb 2001 00:18:42 +0000 Subject: [PATCH] Raster, check this out -- it may be closer to what you need ... SVN revision: 4197 --- src/fs.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/fs.c b/src/fs.c index bc50c5602..326023a9a 100644 --- a/src/fs.c +++ b/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) {