X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FIOEvent.hh;h=a314fd95ac0317da9c29820c641fcda450a9f733;hb=73c33f663ff0f65e4656ea5a5f6f07a43a2e1722;hp=ac081289d2b0ef43aad87a807648f4b05b6436f2;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/PPI/IOEvent.hh b/senf/PPI/IOEvent.hh index ac08128..a314fd9 100644 --- a/senf/PPI/IOEvent.hh +++ b/senf/PPI/IOEvent.hh @@ -54,7 +54,7 @@ namespace ppi { type of event is specified using the \a events mask with values from EventFlags. There are two types of flags: - + \li Event flags (\ref Read, \ref Prio, \ref Write) specify the type of event. The callback will be called whenever one of the specified events occurs on the filehandle \li Error flags (\ref Hup, \ref Err) specify some type of error condition on the @@ -76,7 +76,7 @@ namespace ppi { // This is stupid, however there is no way to import the Scheduler::EventId enum together // with the enumeration symbols - enum EventFlags { + enum EventFlags { Read = scheduler::FdEvent::EV_READ /**< FileHandle is readable */ , Prio = scheduler::FdEvent::EV_PRIO /**< FileHandle priority data is readable */ , Write = scheduler::FdEvent::EV_WRITE /**< FileHandle is writable */ @@ -101,25 +101,25 @@ namespace ppi { /** \brief Unhandled error condition */ struct ErrorException : public senf::Exception - { ErrorException() : senf::Exception("senf::ppi::IOEvent::ErrorException"){} }; + { ErrorException() : senf::Exception("senf::ppi::IOEvent::ErrorException") {} }; /** \brief Unhandled hangup condition */ struct HangupException : public senf::Exception - { HangupException() : senf::Exception("senf::ppi::IOEvent::HangupException"){} }; + { HangupException() : senf::Exception("senf::ppi::IOEvent::HangupException") {} }; protected: private: virtual void v_enable(); virtual void v_disable(); - + void cb(int event); int fd_; scheduler::FdEvent event_; }; - + }} ///////////////////////////////hh.e////////////////////////////////////////