Utils/Termlib: Extend the completion API
[senf.git] / PPI / IOEvent.cti
index 682d464..1b160e0 100644 (file)
@@ -26,6 +26,7 @@
 //#include "IOEvent.ih"
 
 // Custom includes
+#include <boost/bind.hpp>
 
 #define prefix_ inline
 ///////////////////////////////cti.p///////////////////////////////////////
 
 template <class Handle>
 prefix_ senf::ppi::IOEvent::IOEvent(Handle handle, unsigned events)
-    : fd_(retrieve_filehandle(handle)), events_(events)
-{}
+    : fd_ (-1), event_ ("senf::ppi::IOEvent", boost::bind(&IOEvent::cb,this,_1)) 
+{
+    set(handle,events);
+}
 
 ///////////////////////////////cti.e///////////////////////////////////////
 #undef prefix_