X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FEvents.cci;h=3282ba5b6d670956a9f263b6d29c60351f999121;hb=c505c034e5fdc932c02aa3dc3847a5551011d87e;hp=7a42b288b019463ee8bc7e47fb4c314d91edbfad;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/PPI/Events.cci b/senf/PPI/Events.cci index 7a42b28..3282ba5 100644 --- a/senf/PPI/Events.cci +++ b/senf/PPI/Events.cci @@ -24,7 +24,8 @@ \brief Events inline non-template implementation */ // Custom includes -#include "../Utils/senfassert.hh" +#include +#include #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// @@ -32,9 +33,6 @@ /////////////////////////////////////////////////////////////////////////// // senf::ppi::EventDescriptor -prefix_ senf::ppi::EventDescriptor::~EventDescriptor() -{} - prefix_ bool senf::ppi::EventDescriptor::enabled() { return enabled_; @@ -61,6 +59,13 @@ prefix_ void senf::ppi::EventDescriptor::registerRoute(ForwardingRoute & route) routes_.push_back(&route); } +prefix_ void senf::ppi::EventDescriptor::unregisterRoute(ForwardingRoute & route) +{ + Routes::iterator i (std::find(routes_.begin(), routes_.end(), &route)); + if (i != routes_.end()) + routes_.erase(i); +} + ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_