aboutsummaryrefslogtreecommitdiff
path: root/src/IO/iowatch.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-01-06 06:48:31 +0000
committercorvid <corvid@lavabit.com>2011-01-06 06:48:31 +0000
commitdfc472816706b5e6a3e2c42f7c83503d01aaeb87 (patch)
treed84649ac100dff4d441ae085329726c4d13914dd /src/IO/iowatch.cc
parent9464c3387e5aae945a52dd62646e4def0e0fd9a9 (diff)
iowatch
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);
}