aboutsummaryrefslogtreecommitdiff
path: root/src/IO/iowatch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IO/iowatch.cc')
-rw-r--r--src/IO/iowatch.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/IO/iowatch.cc b/src/IO/iowatch.cc
index f67b711f..f5243934 100644
--- a/src/IO/iowatch.cc
+++ b/src/IO/iowatch.cc
@@ -11,19 +11,17 @@
// Simple ADT for watching file descriptor activity
-#include <fltk/run.h>
+#include <FL/Fl.H>
#include "iowatch.hh"
-using namespace fltk;
-
-
//
// Hook a Callback for a certain activities in a FD
//
-void a_IOwatch_add_fd(int fd, int when, FileHandler Callback, void *usr_data=0)
+void a_IOwatch_add_fd(int fd, int when, Fl_FD_Handler Callback,
+ void *usr_data = 0)
{
if (fd >= 0)
- add_fd(fd, when, Callback, usr_data);
+ Fl::add_fd(fd, when, Callback, usr_data);
}
//
@@ -32,6 +30,6 @@ void a_IOwatch_add_fd(int fd, int when, FileHandler Callback, void *usr_data=0)
void a_IOwatch_remove_fd(int fd, int when)
{
if (fd >= 0)
- remove_fd(fd, when);
+ Fl::remove_fd(fd, when);
}