Changeset 2135

Show
Ignore:
Timestamp:
05/01/12 17:30:16 (12 years ago)
Author:
jwoithe
Message:

dice: default router setup patch 2/10 from Philippe Carriere: DICE EAP Introduce a clearRoutes function for erasing the route vector

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/dice/dice_eap.cpp

    r2134 r2135  
    16651665{ 
    16661666    // first clear the current route vector 
    1667     m_routes2.clear(); 
     1667    clearRoutes(); 
    16681668 
    16691669    uint32_t nb_routes; 
     
    17311731} 
    17321732 
     1733// Clear the route vector; 
     1734bool 
     1735EAP::RouterConfig::clearRoutes() { 
     1736    m_routes2.clear(); 
     1737    return true; 
     1738} 
     1739 
     1740// Create a destination with a prescribed source 
    17331741bool 
    17341742EAP::RouterConfig::createRoute(unsigned char src, unsigned char dest) { 
  • trunk/libffado/src/dice/dice_eap.h

    r2134 r2135  
    216216          @brief Create a route between src and dest 
    217217 
     218          Clear the route vector 
     219          To be used with many care ! 
     220          */ 
     221        bool clearRoutes(); 
     222 
     223        /** 
     224          @brief Create a route between src and dest 
     225 
    218226          This will effectively create a new destination. 
    219           If destination exists or its status unknown, 
     227          If a destination exists or its status is unknown, 
    220228          rather use the next setupRoute function 
    221229          */