Changeset 2136

Show
Ignore:
Timestamp:
05/01/12 17:32:59 (10 years ago)
Author:
jwoithe
Message:

dice: default router setup patch 3/10 from Philippe Carriere: DICE EAP Add the (intermediate) EAP::addRoute function. The function is mainly a call to the EAP::RouterConfig::createRoute function. This will ease further customization for different devices.

Files:

Legend:

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

    r2135 r2136  
    549549    } 
    550550} 
     551 
     552/** 
     553 * Add (create) a route from source to destination 
     554 */ 
     555bool 
     556EAP::addRoute(enum eRouteSource srcid, unsigned int base_src, enum eRouteDestination dstid, 
     557              unsigned int base_dst) 
     558{ 
     559    RouterConfig *rcfg = getActiveRouterConfig(); 
     560    return rcfg->createRoute((srcid<<4) + base_src, (dstid<<4) + base_dst); 
     561} 
     562 
    551563 
    552564/** 
  • trunk/libffado/src/dice/dice_eap.h

    r2135 r2136  
    602602    bool loadRouterAndStreamConfig(bool low, bool mid, bool high); 
    603603 
     604    bool addRoute(enum eRouteSource srcid, unsigned int base_src, enum eRouteDestination dstid, 
     605                  unsigned int base_dst); 
     606 
    604607private: 
    605608    bool     m_router_exposed;