Show
Ignore:
Timestamp:
11/30/07 14:18:26 (15 years ago)
Author:
ppalmers
Message:

Code refactoring. Tries to simplify things and tries to put all code where it belongs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/genericavc/avc_avdevice.cpp

    r748 r750  
    5151IMPL_DEBUG_MODULE( AvDevice, AvDevice, DEBUG_LEVEL_NORMAL ); 
    5252 
    53 AvDevice::AvDevice(std::auto_ptr<ConfigRom>( configRom )) 
    54     : FFADODevice( configRom ) 
     53AvDevice::AvDevice( DeviceManager& d, std::auto_ptr<ConfigRom>( configRom )) 
     54    : FFADODevice( d, configRom ) 
    5555{ 
    5656    debugOutput( DEBUG_LEVEL_VERBOSE, "Created GenericAVC::AvDevice (NodeID %d)\n", 
     
    7474 
    7575FFADODevice * 
    76 AvDevice::createDevice(std::auto_ptr<ConfigRom>( configRom )) 
    77 { 
    78     return new AvDevice(configRom ); 
     76AvDevice::createDevice(DeviceManager& d, std::auto_ptr<ConfigRom>( configRom )) 
     77{ 
     78    return new AvDevice(d, configRom ); 
    7979} 
    8080 
     
    418418        return false; 
    419419    } 
    420     p=new Streaming::AmdtpReceiveStreamProcessor(*this, 
     420    p = new Streaming::AmdtpReceiveStreamProcessor(*this, 
    421421                             outputPlug->getNrOfChannels()); 
    422422