Changeset 716 for trunk/libffado/src/libavc/general/avc_subunit.cpp
- Timestamp:
- 11/11/07 12:03:19 (16 years ago)
- Files:
-
- trunk/libffado/src/libavc/general/avc_subunit.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libavc/general/avc_subunit.cpp
r618 r716 107 107 { 108 108 debugOutput(DEBUG_LEVEL_NORMAL, "Discovering plugs...\n"); 109 109 110 110 PlugInfoCmd plugInfoCmd( getUnit().get1394Service(), 111 111 PlugInfoCmd::eSF_SerialBusIsochronousAndExternalPlug ); … … 147 147 { 148 148 debugOutput(DEBUG_LEVEL_NORMAL, "Discovering connections...\n"); 149 149 150 150 for ( PlugVector::iterator it = getPlugs().begin(); 151 151 it != getPlugs().end(); … … 183 183 return false; 184 184 } 185 185 186 186 plug->setVerboseLevel(getDebugLevel()); 187 187 188 188 if ( !plug->discover() ) { 189 189 debugError( "plug discover failed\n" ); … … 232 232 bool 233 233 Subunit::serialize( Glib::ustring basePath, 234 234 Util::IOSerialize& ser ) const 235 235 { 236 236 bool result; … … 239 239 result &= ser.write( basePath + "m_sbId", m_sbId ); 240 240 result &= ser.write( basePath + "m_verboseLevel", getDebugLevel() ); 241 result &= serializePlugVector( basePath + "m_plugs", ser, m_plugs ); 241 242 result &= serializeChild( basePath, ser ); 242 243 … … 259 260 260 261 Subunit* pSubunit = 0; 261 262 262 263 #warning FIXME: The derived class should be creating these 263 264 // FIXME: The derived class should be creating these, such that discover() can become pure virtual … … 280 281 pSubunit->m_sbType = sbType; 281 282 result &= deser.read( basePath + "m_sbId", pSubunit->m_sbId ); 283 result &= deserializePlugVector( basePath + "m_plugs", deser, 284 unit.getPlugManager(), pSubunit->m_plugs ); 282 285 int verboseLevel; 283 286 result &= deser.read( basePath + "m_verboseLevel", verboseLevel );