X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FEvents.cci;h=3282ba5b6d670956a9f263b6d29c60351f999121;hb=78a6e233083efa63a9cd0684a92abc64202a9ee7;hp=8ba444aaa8b992f19467043da822e0b06655f024;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/PPI/Events.cci b/senf/PPI/Events.cci index 8ba444a..3282ba5 100644 --- a/senf/PPI/Events.cci +++ b/senf/PPI/Events.cci @@ -25,6 +25,7 @@ // Custom includes #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_