Show
Ignore:
Timestamp:
09/05/07 07:07:05 (17 years ago)
Author:
ppalmers
Message:

move serialization routines to libutil such that they can be used for non-AVC stuff too (fireworks EFC)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libavc/streamformat/avc_extended_stream_format.cpp

    r505 r618  
    2323 
    2424#include "avc_extended_stream_format.h" 
    25 #include "../util/avc_serialize.h" 
     25#include "libutil/cmd_serialize.h" 
    2626#include "libieee1394/ieee1394service.h" 
    2727 
     
    5353 
    5454bool 
    55 StreamFormatInfo::serialize( IOSSerialize& se ) 
     55StreamFormatInfo::serialize( Util::IOSSerialize& se ) 
    5656{ 
    5757    se.write( m_numberOfChannels, "StreamFormatInfo numberOfChannels" ); 
     
    6161 
    6262bool 
    63 StreamFormatInfo::deserialize( IISDeserialize& de ) 
     63StreamFormatInfo::deserialize( Util::IISDeserialize& de ) 
    6464{ 
    6565    de.read( &m_numberOfChannels ); 
     
    8686 
    8787bool 
    88 FormatInformationStreamsSync::serialize( IOSSerialize& se ) 
     88FormatInformationStreamsSync::serialize( Util::IOSSerialize& se ) 
    8989{ 
    9090    se.write( m_reserved0, "FormatInformationStreamsSync reserved" ); 
     
    102102 
    103103bool 
    104 FormatInformationStreamsSync::deserialize( IISDeserialize& de ) 
     104FormatInformationStreamsSync::deserialize( Util::IISDeserialize& de ) 
    105105{ 
    106106    de.read( &m_reserved0 ); 
     
    157157 
    158158bool 
    159 FormatInformationStreamsCompound::serialize( IOSSerialize& se ) 
     159FormatInformationStreamsCompound::serialize( Util::IOSSerialize& se ) 
    160160{ 
    161161    se.write( m_samplingFrequency, "FormatInformationStreamsCompound samplingFrequency" ); 
     
    172172 
    173173bool 
    174 FormatInformationStreamsCompound::deserialize( IISDeserialize& de ) 
     174FormatInformationStreamsCompound::deserialize( Util::IISDeserialize& de ) 
    175175{ 
    176176    de.read( &m_samplingFrequency ); 
     
    223223 
    224224bool 
    225 FormatInformation::serialize( IOSSerialize& se ) 
     225FormatInformation::serialize( Util::IOSSerialize& se ) 
    226226{ 
    227227    if ( m_root != eFHR_Invalid ) { 
     
    241241 
    242242bool 
    243 FormatInformation::deserialize( IISDeserialize& de ) 
     243FormatInformation::deserialize( Util::IISDeserialize& de ) 
    244244{ 
    245245    bool result = false; 
     
    338338 
    339339bool 
    340 ExtendedStreamFormatCmd::serialize( IOSSerialize& se ) 
     340ExtendedStreamFormatCmd::serialize( Util::IOSSerialize& se ) 
    341341{ 
    342342    AVCCommand::serialize( se ); 
     
    352352 
    353353bool 
    354 ExtendedStreamFormatCmd::deserialize( IISDeserialize& de ) 
     354ExtendedStreamFormatCmd::deserialize( Util::IISDeserialize& de ) 
    355355{ 
    356356    AVCCommand::deserialize( de ); 
  • trunk/libffado/src/libavc/streamformat/avc_extended_stream_format.h

    r503 r618  
    106106#define AVC1394_EXTENDED_STREAM_FORMAT_INFO_STATUS_NOT_USED         0xff 
    107107 
    108 class IOSSerialize; 
    109 class IISDeserialize; 
     108class Util::IOSSerialize; 
     109class Util::IISDeserialize; 
    110110 
    111111enum ERateControl { 
     
    121121    StreamFormatInfo(); 
    122122 
    123     virtual bool serialize( IOSSerialize& se ); 
    124     virtual bool deserialize( IISDeserialize& de ); 
     123    virtual bool serialize( Util::IOSSerialize& se ); 
     124    virtual bool deserialize( Util::IISDeserialize& de ); 
    125125 
    126126    virtual StreamFormatInfo* clone() const; 
     
    147147    FormatInformationStreamsSync(); 
    148148 
    149     virtual bool serialize( IOSSerialize& se ); 
    150     virtual bool deserialize( IISDeserialize& de ); 
     149    virtual bool serialize( Util::IOSSerialize& se ); 
     150    virtual bool deserialize( Util::IISDeserialize& de ); 
    151151    virtual FormatInformationStreamsSync* clone() const; 
    152152 
     
    165165    virtual ~FormatInformationStreamsCompound(); 
    166166 
    167     virtual bool serialize( IOSSerialize& se ); 
    168     virtual bool deserialize( IISDeserialize& de ); 
     167    virtual bool serialize( Util::IOSSerialize& se ); 
     168    virtual bool deserialize( Util::IISDeserialize& de ); 
    169169    virtual FormatInformationStreamsCompound* clone() const; 
    170170 
     
    231231    virtual ~FormatInformation(); 
    232232 
    233     virtual bool serialize( IOSSerialize& se ); 
    234     virtual bool deserialize( IISDeserialize& de ); 
     233    virtual bool serialize( Util::IOSSerialize& se ); 
     234    virtual bool deserialize( Util::IISDeserialize& de ); 
    235235 
    236236    virtual FormatInformation* clone() const; 
     
    271271    bool setSubFunction( ESubFunction subFunction ); 
    272272 
    273     virtual bool serialize( IOSSerialize& se ); 
    274     virtual bool deserialize( IISDeserialize& de ); 
     273    virtual bool serialize( Util::IOSSerialize& se ); 
     274    virtual bool deserialize( Util::IISDeserialize& de ); 
    275275 
    276276    EStatus getStatus();