X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FEvents.cci;h=7d113b330764606c7e2c2389fa7200f868f82bde;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=f511f40342cc4443f5fde83131a16669dc4ab8db;hpb=7465ea4f6d3d54622bd783106cf8b60d5f133343;p=senf.git diff --git a/PPI/Events.cci b/PPI/Events.cci index f511f40..7d113b3 100644 --- a/PPI/Events.cci +++ b/PPI/Events.cci @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -24,7 +24,7 @@ \brief Events inline non-template implementation */ // Custom includes -#include +#include <../Utils/senfassert.hh> #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// @@ -42,7 +42,7 @@ prefix_ bool senf::ppi::EventDescriptor::enabled() prefix_ void senf::ppi::EventDescriptor::enabled(bool v) { - BOOST_ASSERT(v_isRegistered()); + SENF_ASSERT(v_isRegistered()); if (v && ! enabled_) v_enable(); else if (! v && enabled_) @@ -65,12 +65,11 @@ prefix_ void senf::ppi::EventDescriptor::notifyThrottle() enabled(false); } -prefix_ void senf::ppi::EventDescriptor::notifyUnthrottle() +prefix_ void senf::ppi::EventDescriptor::registerRoute(ForwardingRoute & route) { - enabled(true); + routes_.push_back(&route); } - ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_