Ticket #290: ffado-external-libs.patch

File ffado-external-libs.patch, 32.3 kB (added by adi, 2 years ago)

Refreshed version (by Orcan Ogetbil) of the patch

  • libffado/admin/dbus.py

    old new  
    2727# 
    2828 
    2929def dbusxx_xml2cpp_emitter(target, source, env): 
    30         env.Depends(target, "#/external/dbus/dbusxx-xml2cpp" ) 
     30        #env.Depends(target, "#/external/dbus/dbusxx-xml2cpp" ) 
    3131        return (target, source) 
    3232 
    3333def dbusxx_xml2cpp_adaptor_action( target, source, env ): 
    34         env.Execute( "./external/dbus/dbusxx-xml2cpp %s --adaptor=%s" % ( source[0], target[0] ) ) 
     34        env.Execute( "dbusxx-xml2cpp %s --adaptor=%s" % ( source[0], target[0] ) ) 
    3535        return 0 
    3636 
    3737def dbusxx_xml2cpp_proxy_action( target, source, env ): 
    38         env.Execute( "./external/dbus/dbusxx-xml2cpp %s --proxy=%s" % ( source[0], target[0] ) ) 
     38        env.Execute( "dbusxx-xml2cpp %s --proxy=%s" % ( source[0], target[0] ) ) 
    3939        return 0 
    4040 
    4141def generate( env, **kw ): 
  • libffado/README

    old new  
    9797libraw1394  (>= 1.3.0),  http://www.linux1394.org 
    9898libiec61883 (>= 1.1.0),  http://www.linux1394.org 
    9999dbus-1      (>= 1.0),    http://dbus.freedesktop.org 
    100  
     100dbus-c++    (>= 0),      http://sourceforge.net/apps/mediawiki/dbus-cplusplus/ 
     101libconfig   (>= 0),      http://www.hyperrealm.com/libconfig/ 
    101102Currently only the jackd audio server is supported. 
    102103 
    103104jackd (>= 0.109.12), http://jackaudio.org 
  • libffado/SConstruct

    old new  
    205205    pkgs = { 
    206206        'libraw1394' : '1.3.0', 
    207207        'libiec61883' : '1.1.0', 
     208        'libconfig++' : '0' 
    208209        } 
    209210 
    210211    if env['REQUIRE_LIBAVC']: 
     
    287288pkgs = { 
    288289    'alsa': '0', 
    289290    'dbus-1': '1.0', 
     291    'dbus-c++-1' : '0', 
    290292    } 
    291293for pkg in pkgs: 
    292294    name2 = pkg.replace("+","").replace(".","").replace("-","").upper() 
    293295    env['%s_FLAGS' % name2] = conf.GetPKGFlags( pkg, pkgs[pkg] ) 
    294296 
     297dbus_checkfail = False 
    295298# 
    296299# Get the directory where dbus stores the service-files 
    297300# 
     
    303306    # always true 
    304307    env.MergeFlags( "-DDBUS_HAS_THREADS_INIT_DEFAULT" ) 
    305308else: 
     309    dbus_checkfail = True 
    306310    print """ 
    307 The dbus-headers where not found. The dbus-server for ffado will therefor not be built. 
     311The dbus-headers were not found."""  
     312 
     313if not conf.CheckForApp( 'which dbusxx-xml2cpp' ): 
     314    dbus_checkfail = True 
     315    print """ 
     316The program dbusxx-xml2cpp could not be found.""" 
     317 
     318if dbus_checkfail: 
     319    env['DBUS1_FLAGS'] = "" 
     320    print """The dbus-server for ffado will therefore not be built. 
    308321""" 
    309322 
    310323config_guess = conf.ConfigGuess() 
     
    550563 
    551564env.Install( env['sharedir'], 'configuration' ) 
    552565 
    553 subdirs=['external','src','libffado','support','doc'] 
     566subdirs=['src','libffado','support','doc'] 
    554567if env['BUILD_TESTS']: 
    555568    subdirs.append('tests') 
    556569 
  • libffado/src/libutil/Configuration.h

    old new  
    2525#define _FFADO_UTIL_CONFIGURATION_ 
    2626 
    2727#include "debugmodule/debugmodule.h" 
    28 #include "external/libconfig/libconfigpp.h
     28#include "libconfig.h++
    2929 
    3030#include <vector> 
    3131 
  • libffado/src/SConscript

    old new  
    272272        libenv.MergeFlags( "-lrt -lpthread" ) 
    273273        libenv.MergeFlags( env['LIBRAW1394_FLAGS'] ) 
    274274        libenv.MergeFlags( env['LIBIEC61883_FLAGS'] ) 
     275        libenv.MergeFlags( env['LIBCONFIG_FLAGS'] ) 
    275276        if not env['SERIALIZE_USE_EXPAT']: 
    276277                libenv.MergeFlags( env['LIBXML26_FLAGS'] ) 
    277278        else: 
     
    279280        if env['REQUIRE_LIBAVC']: 
    280281                libenv.MergeFlags( env['LIBAVC1394_FLAGS'] ) 
    281282 
    282 # add the libconfig 
    283 libenv.MergeFlags( "-I#/external/libconfig" ) 
    284 libenv.MergeFlags( "-L"+env['build_base']+"external/libconfig" ) 
    285 libenv.MergeFlags( "-lconfigpp" ) 
    286  
    287283libname_versioned = "libffado.so.%s" % libenv['VERSION'] 
    288284libname_versioned_short = "libffado.so.%s" % libenv['VERSION'].split('.')[0] 
    289285 
  • libffado/support/dbus/controlclient.h

    old new  
    3434 
    3535// simple fader element 
    3636class ContinuousClient 
    37 : public org::ffado::Control::Element::Continuous
     37: public org::ffado::Control::Element::Continuous_proxy
    3838  public DBus::IntrospectableProxy, 
    3939  public DBus::ObjectProxy 
    4040{ 
  • libffado/support/dbus/controlserver.cpp

    old new  
    5252    setVerboseLevel(m_Slave.getVerboseLevel()); 
    5353} 
    5454 
    55 void Element::setVerboseLevel( const DBus::Int32 &i) 
     55void Element::setVerboseLevel( const int32_t &i) 
    5656{ 
    5757    setDebugLevel(i); 
    5858    m_Slave.setVerboseLevel(i); 
    5959    if(m_UpdateLock) m_UpdateLock->setVerboseLevel(i); 
    6060} 
    6161 
    62 DBus::Int32 Element::getVerboseLevel() 
     62int32_t Element::getVerboseLevel() 
    6363{ 
    6464    return getDebugLevel(); 
    6565} 
    6666 
    67 DBus::Bool 
     67bool 
    6868Element::canChangeValue() 
    6969{ 
    7070    return m_Slave.canChangeValue(); 
     
    110110    } 
    111111} 
    112112 
    113 DBus::UInt64 
     113uint64_t 
    114114Element::getId( ) 
    115115{ 
    116116    return m_Slave.getId(); 
    117117} 
    118118 
    119 DBus::String 
     119std::string 
    120120Element::getName( ) 
    121121{ 
    122     return DBus::String(m_Slave.getName()); 
     122    return std::string(m_Slave.getName()); 
    123123} 
    124124 
    125 DBus::String 
     125std::string 
    126126Element::getLabel( ) 
    127127{ 
    128     return DBus::String(m_Slave.getLabel()); 
     128    return std::string(m_Slave.getLabel()); 
    129129} 
    130130 
    131 DBus::String 
     131std::string 
    132132Element::getDescription( ) 
    133133{ 
    134     return DBus::String(m_Slave.getDescription()); 
     134    return std::string(m_Slave.getDescription()); 
    135135} 
    136136 
    137137// --- Container 
     
    183183} 
    184184 
    185185void 
    186 Container::setVerboseLevel( const DBus::Int32 & i) 
     186Container::setVerboseLevel( const int32_t & i) 
    187187{ 
    188188    Element::setVerboseLevel(i); 
    189189    for ( ElementVectorIterator it = m_Children.begin(); 
     
    194194    } 
    195195} 
    196196 
    197 DBus::Int32 
     197int32_t 
    198198Container::getNbElements( ) { 
    199199    return m_Slave.countElements(); 
    200200} 
    201201 
    202 DBus::String 
    203 Container::getElementName( const DBus::Int32& i ) { 
     202std::string 
     203Container::getElementName( const int32_t& i ) { 
    204204    int nbElements=m_Slave.countElements(); 
    205205    if (i<nbElements) { 
    206206        m_Slave.lockControl(); 
     
    461461                 path().c_str() ); 
    462462} 
    463463 
    464 DBus::Double 
    465 Continuous::setValue( const DBus::Double& value ) 
     464double 
     465Continuous::setValue( const double& value ) 
    466466{ 
    467467    m_Slave.setValue(value); 
    468468/*     
     
    474474    return value; 
    475475} 
    476476 
    477 DBus::Double 
     477double 
    478478Continuous::getValue(  ) 
    479479{ 
    480480    double val = m_Slave.getValue(); 
     
    482482    return val; 
    483483} 
    484484 
    485 DBus::Double 
    486 Continuous::setValueIdx( const DBus::Int32 & idx, const DBus::Double& value ) 
     485double 
     486Continuous::setValueIdx( const int32_t & idx, const double& value ) 
    487487{ 
    488488    m_Slave.setValue(idx, value); 
    489489/*     
     
    495495    return value; 
    496496} 
    497497 
    498 DBus::Double 
    499 Continuous::getValueIdx( const DBus::Int32 & idx ) 
     498double 
     499Continuous::getValueIdx( const int32_t & idx ) 
    500500{ 
    501501    double val = m_Slave.getValue(idx); 
    502502    debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%d) => %lf\n", idx, val ); 
    503503    return val; 
    504504} 
    505505 
    506 DBus::Double 
     506double 
    507507Continuous::getMinimum() 
    508508{ 
    509509    double val = m_Slave.getMinimum(); 
     
    511511    return val; 
    512512} 
    513513 
    514 DBus::Double 
     514double 
    515515Continuous::getMaximum() 
    516516{ 
    517517    double val = m_Slave.getMaximum(); 
     
    529529                 path().c_str() ); 
    530530} 
    531531 
    532 DBus::Int32 
    533 Discrete::setValue( const DBus::Int32& value ) 
     532int32_t 
     533Discrete::setValue( const int32_t& value ) 
    534534{ 
    535535    m_Slave.setValue(value); 
    536536     
     
    541541    return value; 
    542542} 
    543543 
    544 DBus::Int32 
     544int32_t 
    545545Discrete::getValue() 
    546546{ 
    547547    int32_t val = m_Slave.getValue(); 
     
    549549    return val; 
    550550} 
    551551 
    552 DBus::Int32 
    553 Discrete::setValueIdx( const DBus::Int32& idx, const DBus::Int32& value ) 
     552int32_t 
     553Discrete::setValueIdx( const int32_t& idx, const int32_t& value ) 
    554554{ 
    555555    m_Slave.setValue(idx, value); 
    556556     
     
    561561    return value; 
    562562} 
    563563 
    564 DBus::Int32 
    565 Discrete::getValueIdx( const DBus::Int32& idx ) 
     564int32_t 
     565Discrete::getValueIdx( const int32_t& idx ) 
    566566{ 
    567567    int32_t val = m_Slave.getValue(idx); 
    568568    debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%d) => %d\n", idx, val ); 
     
    579579                 path().c_str() ); 
    580580} 
    581581 
    582 DBus::String 
    583 Text::setValue( const DBus::String& value ) 
     582std::string 
     583Text::setValue( const std::string& value ) 
    584584{ 
    585585    m_Slave.setValue(value); 
    586586     
     
    591591    return value; 
    592592} 
    593593 
    594 DBus::String 
     594std::string 
    595595Text::getValue() 
    596596{ 
    597597    std::string val = m_Slave.getValue(); 
     
    609609                 path().c_str() ); 
    610610} 
    611611 
    612 DBus::UInt64 
    613 Register::setValue( const DBus::UInt64& addr, const DBus::UInt64& value ) 
     612uint64_t 
     613Register::setValue( const uint64_t& addr, const uint64_t& value ) 
    614614{ 
    615615    m_Slave.setValue(addr, value); 
    616616     
     
    621621    return value; 
    622622} 
    623623 
    624 DBus::UInt64 
    625 Register::getValue( const DBus::UInt64& addr ) 
     624uint64_t 
     625Register::getValue( const uint64_t& addr ) 
    626626{ 
    627     DBus::UInt64 val = m_Slave.getValue(addr); 
     627    uint64_t val = m_Slave.getValue(addr); 
    628628    debugOutput( DEBUG_LEVEL_VERBOSE, "getValue(%lld) => %lld\n", addr, val ); 
    629629    return val; 
    630630} 
     
    639639                 path().c_str() ); 
    640640} 
    641641 
    642 DBus::Int32 
    643 Enum::select( const DBus::Int32& idx ) 
     642int32_t 
     643Enum::select( const int32_t& idx ) 
    644644{ 
    645645    debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", idx ); 
    646646    return  m_Slave.select(idx); 
    647647} 
    648648 
    649 DBus::Int32 
     649int32_t 
    650650Enum::selected() 
    651651{ 
    652652    int retval = m_Slave.selected(); 
     
    654654    return retval; 
    655655} 
    656656 
    657 DBus::Int32 
     657int32_t 
    658658Enum::count() 
    659659{ 
    660660    int retval = m_Slave.count(); 
     
    662662    return retval; 
    663663} 
    664664 
    665 DBus::String 
    666 Enum::getEnumLabel( const DBus::Int32 & idx ) 
     665std::string 
     666Enum::getEnumLabel( const int32_t & idx ) 
    667667{ 
    668668    std::string retval = m_Slave.getEnumLabel(idx); 
    669669    debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getEnumLabel(%d) => %s\n", idx, retval.c_str() ); 
     
    679679                 path().c_str() ); 
    680680} 
    681681 
    682 DBus::Int32 
    683 AttributeEnum::select( const DBus::Int32& idx ) 
     682int32_t 
     683AttributeEnum::select( const int32_t& idx ) 
    684684{ 
    685685    debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", idx ); 
    686686    return  m_Slave.select(idx); 
    687687} 
    688688 
    689 DBus::Int32 
     689int32_t 
    690690AttributeEnum::selected() 
    691691{ 
    692692    int retval = m_Slave.selected(); 
     
    694694    return retval; 
    695695} 
    696696 
    697 DBus::Int32 
     697int32_t 
    698698AttributeEnum::count() 
    699699{ 
    700700    int retval = m_Slave.count(); 
     
    702702    return retval; 
    703703} 
    704704 
    705 DBus::Int32 
     705int32_t 
    706706AttributeEnum::attributeCount() 
    707707{ 
    708708    int retval = m_Slave.attributeCount(); 
     
    710710    return retval; 
    711711} 
    712712 
    713 DBus::String 
    714 AttributeEnum::getEnumLabel( const DBus::Int32 & idx ) 
     713std::string 
     714AttributeEnum::getEnumLabel( const int32_t & idx ) 
    715715{ 
    716716    std::string retval = m_Slave.getEnumLabel(idx); 
    717717    debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getEnumLabel(%d) => %s\n", idx, retval.c_str() ); 
    718718    return retval; 
    719719} 
    720720 
    721 DBus::String 
    722 AttributeEnum::getAttributeValue( const DBus::Int32 & idx ) 
     721std::string 
     722AttributeEnum::getAttributeValue( const int32_t & idx ) 
    723723{ 
    724724    std::string retval = m_Slave.getAttributeValue(idx); 
    725725    debugOutput( DEBUG_LEVEL_VERBOSE, "getAttributeValue(%d) => %s\n", idx, retval.c_str() ); 
    726726    return retval; 
    727727} 
    728728 
    729 DBus::String 
    730 AttributeEnum::getAttributeName( const DBus::Int32 & idx ) 
     729std::string 
     730AttributeEnum::getAttributeName( const int32_t & idx ) 
    731731{ 
    732732    std::string retval = m_Slave.getAttributeName(idx); 
    733733    debugOutput( DEBUG_LEVEL_VERBOSE, "getAttributeName(%d) => %s\n", idx, retval.c_str() ); 
     
    744744                 path().c_str() ); 
    745745} 
    746746 
    747 DBus::String 
     747std::string 
    748748ConfigRomX::getGUID( ) 
    749749{ 
    750750    return m_Slave.getGuidString(); 
    751751} 
    752752 
    753 DBus::String 
     753std::string 
    754754ConfigRomX::getVendorName( ) 
    755755{ 
    756756    return m_Slave.getVendorName(); 
    757757} 
    758758 
    759 DBus::String 
     759std::string 
    760760ConfigRomX::getModelName( ) 
    761761{ 
    762762    return m_Slave.getModelName(); 
    763763} 
    764764 
    765 DBus::Int32 
     765int32_t 
    766766ConfigRomX::getVendorId( ) 
    767767{ 
    768768    return m_Slave.getNodeVendorId(); 
    769769} 
    770770 
    771 DBus::Int32 
     771int32_t 
    772772ConfigRomX::getModelId( ) 
    773773{ 
    774774    return m_Slave.getModelId(); 
    775775} 
    776776 
    777 DBus::Int32 
     777int32_t 
    778778ConfigRomX::getUnitVersion( ) 
    779779{ 
    780780    return m_Slave.getUnitVersion(); 
     
    790790                 path().c_str() ); 
    791791} 
    792792 
    793 DBus::Int32 
     793int32_t 
    794794MatrixMixer::getRowCount( ) { 
    795795    return m_Slave.getRowCount(); 
    796796} 
    797797 
    798 DBus::Int32 
     798int32_t 
    799799MatrixMixer::getColCount( ) { 
    800800    return m_Slave.getColCount(); 
    801801} 
    802802 
    803 DBus::Int32 
    804 MatrixMixer::canWrite( const DBus::Int32& row, const DBus::Int32& col) { 
     803int32_t 
     804MatrixMixer::canWrite( const int32_t& row, const int32_t& col) { 
    805805    return m_Slave.canWrite(row,col); 
    806806} 
    807807 
    808 DBus::Double 
    809 MatrixMixer::setValue( const DBus::Int32& row, const DBus::Int32& col, const DBus::Double& val ) { 
     808double 
     809MatrixMixer::setValue( const int32_t& row, const int32_t& col, const double& val ) { 
    810810    return m_Slave.setValue(row,col,val); 
    811811} 
    812812 
    813 DBus::Double 
    814 MatrixMixer::getValue( const DBus::Int32& row, const DBus::Int32& col) { 
     813double 
     814MatrixMixer::getValue( const int32_t& row, const int32_t& col) { 
    815815    return m_Slave.getValue(row,col); 
    816816} 
    817817 
    818 DBus::Bool 
     818bool 
    819819MatrixMixer::hasNames() { 
    820820    return m_Slave.hasNames(); 
    821821} 
    822 DBus::String 
    823 MatrixMixer::getRowName( const DBus::Int32& row) { 
     822std::string 
     823MatrixMixer::getRowName( const int32_t& row) { 
    824824    return m_Slave.getRowName(row); 
    825825} 
    826 DBus::String 
    827 MatrixMixer::getColName( const DBus::Int32& col) { 
     826std::string 
     827MatrixMixer::getColName( const int32_t& col) { 
    828828    return m_Slave.getColName(col); 
    829829} 
    830 DBus::Bool 
    831 MatrixMixer::setRowName( const DBus::Int32& row, const DBus::String& name) { 
     830bool 
     831MatrixMixer::setRowName( const int32_t& row, const std::string& name) { 
    832832    return m_Slave.setRowName(row, name); 
    833833} 
    834 DBus::Bool 
    835 MatrixMixer::setColName( const DBus::Int32& col, const DBus::String& name) { 
     834bool 
     835MatrixMixer::setColName( const int32_t& col, const std::string& name) { 
    836836    return m_Slave.setColName(col, name); 
    837837} 
    838838 
    839 DBus::Bool 
     839bool 
    840840MatrixMixer::canConnect() { 
    841841    return m_Slave.canConnect(); 
    842842} 
    843 std::vector<DBus::String> 
    844 MatrixMixer::availableConnectionsForRow( const DBus::Int32& row) { 
     843std::vector<std::string> 
     844MatrixMixer::availableConnectionsForRow( const int32_t& row) { 
    845845    return m_Slave.availableConnectionsForRow(row); 
    846846} 
    847 std::vector<DBus::String> 
    848 MatrixMixer::availableConnectionsForCol( const DBus::Int32& col) { 
     847std::vector<std::string> 
     848MatrixMixer::availableConnectionsForCol( const int32_t& col) { 
    849849    return m_Slave.availableConnectionsForCol(col); 
    850850} 
    851 DBus::Bool 
    852 MatrixMixer::connectRowTo( const DBus::Int32& row, const DBus::String& target) { 
     851bool 
     852MatrixMixer::connectRowTo( const int32_t& row, const std::string& target) { 
    853853    return m_Slave.connectRowTo(row, target); 
    854854} 
    855 DBus::Bool 
    856 MatrixMixer::connectColTo( const DBus::Int32& col, const DBus::String& target) { 
     855bool 
     856MatrixMixer::connectColTo( const int32_t& col, const std::string& target) { 
    857857    return m_Slave.connectColTo(col, target); 
    858858} 
    859859 
     
    867867                 path().c_str() ); 
    868868} 
    869869 
    870 /*DBus::Int32 
    871 CrossbarRouter::getSourceIndex(const DBus::String &name) 
     870/*int32_t 
     871CrossbarRouter::getSourceIndex(const std::string &name) 
    872872{ 
    873873    return m_Slave.getSourceIndex(name); 
    874874} 
    875875 
    876 DBus::Int32 
    877 CrossbarRouter::getDestinationIndex(const DBus::String &name) 
     876int32_t 
     877CrossbarRouter::getDestinationIndex(const std::string &name) 
    878878{ 
    879879    return m_Slave.getDestinationIndex(name); 
    880880}*/ 
    881881 
    882 std::vector< DBus::String > 
     882std::vector< std::string > 
    883883CrossbarRouter::getSourceNames() 
    884884{ 
    885885    return m_Slave.getSourceNames(); 
    886886} 
    887887 
    888 std::vector< DBus::String > 
     888std::vector< std::string > 
    889889CrossbarRouter::getDestinationNames() 
    890890{ 
    891891    return m_Slave.getDestinationNames(); 
    892892} 
    893893 
    894 std::vector< DBus::String > 
    895 CrossbarRouter::getDestinationsForSource(const DBus::String &idx) 
     894std::vector< std::string > 
     895CrossbarRouter::getDestinationsForSource(const std::string &idx) 
    896896{ 
    897897    return m_Slave.getDestinationsForSource(idx); 
    898898} 
    899899 
    900 DBus::String 
    901 CrossbarRouter::getSourceForDestination(const DBus::String &idx) 
     900std::string 
     901CrossbarRouter::getSourceForDestination(const std::string &idx) 
    902902{ 
    903903    return m_Slave.getSourceForDestination(idx); 
    904904} 
    905905 
    906 DBus::Bool 
    907 CrossbarRouter::canConnect(const DBus::String &source, const DBus::String &dest) 
     906bool 
     907CrossbarRouter::canConnect(const std::string &source, const std::string &dest) 
    908908{ 
    909909    return m_Slave.canConnect(source, dest); 
    910910} 
    911911 
    912 DBus::Bool 
    913 CrossbarRouter::setConnectionState(const DBus::String &source, const DBus::String &dest, const DBus::Bool &enable) 
     912bool 
     913CrossbarRouter::setConnectionState(const std::string &source, const std::string &dest, const bool &enable) 
    914914{ 
    915915    return m_Slave.setConnectionState(source, dest, enable); 
    916916} 
    917917 
    918 DBus::Bool 
    919 CrossbarRouter::getConnectionState(const DBus::String &source, const DBus::String &dest) 
     918bool 
     919CrossbarRouter::getConnectionState(const std::string &source, const std::string &dest) 
    920920{ 
    921921    return m_Slave.getConnectionState(source, dest); 
    922922} 
    923923 
    924 DBus::Bool 
     924bool 
    925925CrossbarRouter::clearAllConnections() 
    926926{ 
    927927    return m_Slave.clearAllConnections(); 
    928928} 
    929929 
    930 DBus::Bool 
     930bool 
    931931CrossbarRouter::hasPeakMetering() 
    932932{ 
    933933    return m_Slave.hasPeakMetering(); 
    934934} 
    935935 
    936 DBus::Double 
    937 CrossbarRouter::getPeakValue(const DBus::String &dest) 
     936double 
     937CrossbarRouter::getPeakValue(const std::string &dest) 
    938938{ 
    939939    return m_Slave.getPeakValue(dest); 
    940940} 
    941 std::vector< DBus::Struct<DBus::String, double> > 
     941std::vector< DBus::Struct<std::string, double> > 
    942942CrossbarRouter::getPeakValues() 
    943943{ 
    944944    std::map<std::string, double> peakvalues = m_Slave.getPeakValues(); 
    945     std::vector< DBus::Struct<DBus::String, double> > ret; 
     945    std::vector< DBus::Struct<std::string, double> > ret; 
    946946    for (std::map<std::string, double>::iterator it=peakvalues.begin(); it!=peakvalues.end(); ++it) { 
    947         DBus::Struct<DBus::String, double> tmp; 
     947        DBus::Struct<std::string, double> tmp; 
    948948        tmp._1 = it->first; 
    949949        tmp._2 = it->second; 
    950950        ret.push_back(tmp); 
     
    971971                 path().c_str() ); 
    972972} 
    973973 
    974 DBus::Bool 
    975 Boolean::select( const DBus::Bool& value ) 
     974bool 
     975Boolean::select( const bool& value ) 
    976976{ 
    977977    debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "select(%d)\n", value ); 
    978978    return  m_Slave.select(value); 
    979979} 
    980980 
    981 DBus::Bool 
     981bool 
    982982Boolean::selected() 
    983983{ 
    984984    bool retval = m_Slave.selected(); 
     
    986986    return retval; 
    987987} 
    988988 
    989 DBus::String 
    990 Boolean::getBooleanLabel( const DBus::Bool& value ) 
     989std::string 
     990Boolean::getBooleanLabel( const bool& value ) 
    991991{ 
    992992    std::string retval = m_Slave.getBooleanLabel(value); 
    993993    debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "getBooleanLabel(%d) => %s\n", value, retval.c_str() ); 
  • libffado/support/dbus/controlserver.h

    old new  
    9898}; 
    9999 
    100100class Element 
    101 : public org::ffado::Control::Element::Element 
     101: public org::ffado::Control::Element::Element_adaptor 
    102102, public DBus::IntrospectableAdaptor 
    103103, public DBus::ObjectAdaptor 
    104104{ 
     
    109109             std::string p, Element *, 
    110110             Control::Element &slave ); 
    111111 
    112     DBus::UInt64 getId( ); 
    113     DBus::String getName( ); 
    114     DBus::String getLabel( ); 
    115     DBus::String getDescription( ); 
     112    uint64_t getId( ); 
     113    std::string getName( ); 
     114    std::string getLabel( ); 
     115    std::string getDescription( ); 
    116116 
    117     DBus::Bool canChangeValue( ); 
     117    bool canChangeValue( ); 
    118118 
    119     void setVerboseLevel( const DBus::Int32 &); 
    120     DBus::Int32 getVerboseLevel(); 
     119    void setVerboseLevel( const int32_t &); 
     120    int32_t getVerboseLevel(); 
    121121 
    122122protected: 
    123123    void Lock(); 
     
    137137typedef std::vector<Element *>::const_iterator ConstElementVectorIterator; 
    138138 
    139139class Container 
    140 : public org::ffado::Control::Element::Container 
     140: public org::ffado::Control::Element::Container_adaptor 
    141141, public DBusControl::Element 
    142142{ 
    143143public: 
     
    146146                  Control::Container &slave ); 
    147147    virtual ~Container(); 
    148148 
    149     DBus::Int32 getNbElements( ); 
    150     DBus::String getElementName( const DBus::Int32& ); 
     149    int32_t getNbElements( ); 
     150    std::string getElementName( const int32_t& ); 
    151151 
    152152    void updated(int new_nb_elements); 
    153153    void destroyed(); 
    154154 
    155     void setVerboseLevel( const DBus::Int32 &); 
     155    void setVerboseLevel( const int32_t &); 
    156156private: 
    157157    Element *createHandler(Element *, Control::Element& e); 
    158158    void updateTree(); 
     
    165165}; 
    166166 
    167167class Continuous 
    168 : public org::ffado::Control::Element::Continuous 
     168: public org::ffado::Control::Element::Continuous_adaptor 
    169169, public Element 
    170170{ 
    171171public: 
     
    173173                  std::string p, Element *, 
    174174                  Control::Continuous &slave ); 
    175175     
    176     DBus::Double setValue( const DBus::Double & value ); 
    177     DBus::Double getValue( ); 
    178     DBus::Double getMinimum( ); 
    179     DBus::Double getMaximum( ); 
    180     DBus::Double setValueIdx( const DBus::Int32 & idx, 
    181                               const DBus::Double & value ); 
    182     DBus::Double getValueIdx( const DBus::Int32 & idx ); 
     176    double setValue( const double & value ); 
     177    double getValue( ); 
     178    double getMinimum( ); 
     179    double getMaximum( ); 
     180    double setValueIdx( const int32_t & idx, 
     181                              const double & value ); 
     182    double getValueIdx( const int32_t & idx ); 
    183183 
    184184private: 
    185185    Control::Continuous &m_Slave; 
    186186}; 
    187187 
    188188class Discrete 
    189 : public org::ffado::Control::Element::Discrete 
     189: public org::ffado::Control::Element::Discrete_adaptor 
    190190, public Element 
    191191{ 
    192192public: 
     
    194194              std::string p, Element *, 
    195195              Control::Discrete &slave ); 
    196196     
    197     DBus::Int32 setValue( const DBus::Int32 & value ); 
    198     DBus::Int32 getValue( ); 
    199     DBus::Int32 setValueIdx( const DBus::Int32 & idx, 
    200                              const DBus::Int32 & value ); 
    201     DBus::Int32 getValueIdx( const DBus::Int32 & idx ); 
     197    int32_t setValue( const int32_t & value ); 
     198    int32_t getValue( ); 
     199    int32_t setValueIdx( const int32_t & idx, 
     200                             const int32_t & value ); 
     201    int32_t getValueIdx( const int32_t & idx ); 
    202202 
    203203private: 
    204204    Control::Discrete &m_Slave; 
    205205}; 
    206206 
    207207class Text 
    208 : public org::ffado::Control::Element::Text 
     208: public org::ffado::Control::Element::Text_adaptor 
    209209, public Element 
    210210{ 
    211211public: 
     
    213213          std::string p, Element *, 
    214214          Control::Text &slave ); 
    215215 
    216     DBus::String setValue( const DBus::String & value ); 
    217     DBus::String getValue( ); 
     216    std::string setValue( const std::string & value ); 
     217    std::string getValue( ); 
    218218 
    219219private: 
    220220    Control::Text &m_Slave; 
    221221}; 
    222222 
    223223class Register 
    224 : public org::ffado::Control::Element::Register 
     224: public org::ffado::Control::Element::Register_adaptor 
    225225, public Element 
    226226{ 
    227227public: 
     
    229229              std::string p, Element *, 
    230230              Control::Register &slave ); 
    231231     
    232     DBus::UInt64 setValue( const DBus::UInt64 & addr, const DBus::UInt64 & value ); 
    233     DBus::UInt64 getValue( const DBus::UInt64 & addr ); 
     232    uint64_t setValue( const uint64_t & addr, const uint64_t & value ); 
     233    uint64_t getValue( const uint64_t & addr ); 
    234234 
    235235private: 
    236236    Control::Register &m_Slave; 
    237237}; 
    238238 
    239239class Enum 
    240 : public org::ffado::Control::Element::Enum 
     240: public org::ffado::Control::Element::Enum_adaptor 
    241241, public Element 
    242242{ 
    243243public: 
     
    245245          std::string p, Element *, 
    246246          Control::Enum &slave ); 
    247247     
    248     DBus::Int32 select( const DBus::Int32 & idx ); 
    249     DBus::Int32 selected( ); 
    250     DBus::Int32 count( ); 
    251     DBus::String getEnumLabel( const DBus::Int32 & idx ); 
     248    int32_t select( const int32_t & idx ); 
     249    int32_t selected( ); 
     250    int32_t count( ); 
     251    std::string getEnumLabel( const int32_t & idx ); 
    252252 
    253253private: 
    254254    Control::Enum &m_Slave; 
    255255}; 
    256256 
    257257class AttributeEnum 
    258 : public org::ffado::Control::Element::AttributeEnum 
     258: public org::ffado::Control::Element::AttributeEnum_adaptor 
    259259, public Element 
    260260{ 
    261261public: 
     
    263263                   std::string p, Element *, 
    264264                   Control::AttributeEnum &slave ); 
    265265     
    266     DBus::Int32 select( const DBus::Int32 & idx ); 
    267     DBus::Int32 selected( ); 
    268     DBus::Int32 count( ); 
    269     DBus::Int32 attributeCount(); 
    270     DBus::String getEnumLabel( const DBus::Int32 & idx ); 
    271     DBus::String getAttributeValue( const DBus::Int32 & idx ); 
    272     DBus::String getAttributeName( const DBus::Int32 & idx ); 
     266    int32_t select( const int32_t & idx ); 
     267    int32_t selected( ); 
     268    int32_t count( ); 
     269    int32_t attributeCount(); 
     270    std::string getEnumLabel( const int32_t & idx ); 
     271    std::string getAttributeValue( const int32_t & idx ); 
     272    std::string getAttributeName( const int32_t & idx ); 
    273273 
    274274private: 
    275275    Control::AttributeEnum &m_Slave; 
     
    278278// FIXME: to change this to a normal ConfigRom class name we have to 
    279279// put the 1394 config rom class into a separate namespace. 
    280280class ConfigRomX 
    281 : public org::ffado::Control::Element::ConfigRomX 
     281: public org::ffado::Control::Element::ConfigRomX_adaptor 
    282282, public Element 
    283283{ 
    284284public: 
     
    286286                  std::string p, Element *, 
    287287                  ConfigRom &slave ); 
    288288 
    289     DBus::String getGUID( ); 
    290     DBus::String getVendorName( ); 
    291     DBus::String getModelName( ); 
    292     DBus::Int32 getVendorId( ); 
    293     DBus::Int32 getModelId( ); 
    294     DBus::Int32 getUnitVersion( ); 
     289    std::string getGUID( ); 
     290    std::string getVendorName( ); 
     291    std::string getModelName( ); 
     292    int32_t getVendorId( ); 
     293    int32_t getModelId( ); 
     294    int32_t getUnitVersion( ); 
    295295 
    296296private: 
    297297    ConfigRom &m_Slave; 
    298298}; 
    299299 
    300300class MatrixMixer 
    301 : public org::ffado::Control::Element::MatrixMixer 
     301: public org::ffado::Control::Element::MatrixMixer_adaptor 
    302302, public Element 
    303303{ 
    304304public: 
     
    306306                  std::string p, Element *, 
    307307                  Control::MatrixMixer &slave ); 
    308308 
    309     DBus::Int32 getRowCount( ); 
    310     DBus::Int32 getColCount( ); 
     309    int32_t getRowCount( ); 
     310    int32_t getColCount( ); 
    311311 
    312     DBus::Int32 canWrite( const DBus::Int32&, const DBus::Int32& ); 
    313     DBus::Double setValue( const DBus::Int32&, const DBus::Int32&, const DBus::Double& ); 
    314     DBus::Double getValue( const DBus::Int32&, const DBus::Int32& ); 
    315  
    316     DBus::Bool hasNames(); 
    317     DBus::String getRowName( const DBus::Int32& ); 
    318     DBus::String getColName( const DBus::Int32& ); 
    319     DBus::Bool setRowName( const DBus::Int32&, const DBus::String& ); 
    320     DBus::Bool setColName( const DBus::Int32&, const DBus::String& ); 
    321  
    322     DBus::Bool canConnect(); 
    323     std::vector<DBus::String> availableConnectionsForRow( const DBus::Int32& ); 
    324     std::vector<DBus::String> availableConnectionsForCol( const DBus::Int32& ); 
    325     DBus::Bool connectRowTo( const DBus::Int32&, const DBus::String& ); 
    326     DBus::Bool connectColTo( const DBus::Int32&, const DBus::String& ); 
     312    int32_t canWrite( const int32_t&, const int32_t& ); 
     313    double setValue( const int32_t&, const int32_t&, const double& ); 
     314    double getValue( const int32_t&, const int32_t& ); 
     315 
     316    bool hasNames(); 
     317    std::string getRowName( const int32_t& ); 
     318    std::string getColName( const int32_t& ); 
     319    bool setRowName( const int32_t&, const std::string& ); 
     320    bool setColName( const int32_t&, const std::string& ); 
     321 
     322    bool canConnect(); 
     323    std::vector<std::string> availableConnectionsForRow( const int32_t& ); 
     324    std::vector<std::string> availableConnectionsForCol( const int32_t& ); 
     325    bool connectRowTo( const int32_t&, const std::string& ); 
     326    bool connectColTo( const int32_t&, const std::string& ); 
    327327 
    328328private: 
    329329    Control::MatrixMixer &m_Slave; 
    330330}; 
    331331 
    332332class CrossbarRouter 
    333 : public org::ffado::Control::Element::CrossbarRouter 
     333: public org::ffado::Control::Element::CrossbarRouter_adaptor 
    334334, public Element 
    335335{ 
    336336public: 
     
    338338                  std::string p, Element *, 
    339339                  Control::CrossbarRouter &slave ); 
    340340 
    341     std::vector< DBus::String > getSourceNames(); 
    342     std::vector< DBus::String > getDestinationNames(); 
     341    std::vector< std::string > getSourceNames(); 
     342    std::vector< std::string > getDestinationNames(); 
    343343 
    344     std::vector< DBus::String > getDestinationsForSource(const DBus::String &); 
    345     DBus::String getSourceForDestination(const DBus::String &); 
     344    std::vector< std::string > getDestinationsForSource(const std::string &); 
     345    std::string getSourceForDestination(const std::string &); 
    346346 
    347     DBus::Bool  canConnect(const DBus::String &source, const DBus::String &dest); 
    348     DBus::Bool  setConnectionState(const DBus::String &source, const DBus::String &dest, const DBus::Bool &enable); 
    349     DBus::Bool  getConnectionState(const DBus::String &source, const DBus::String &dest); 
     347    bool  canConnect(const std::string &source, const std::string &dest); 
     348    bool  setConnectionState(const std::string &source, const std::string &dest, const bool &enable); 
     349    bool  getConnectionState(const std::string &source, const std::string &dest); 
    350350 
    351     DBus::Bool  clearAllConnections(); 
     351    bool  clearAllConnections(); 
    352352 
    353     DBus::Bool  hasPeakMetering(); 
    354     DBus::Double getPeakValue(const DBus::String &dest); 
    355     std::vector< DBus::Struct<DBus::String, double> > getPeakValues(); 
     353    bool  hasPeakMetering(); 
     354    double getPeakValue(const std::string &dest); 
     355    std::vector< DBus::Struct<std::string, double> > getPeakValues(); 
    356356 
    357357private: 
    358358    Control::CrossbarRouter &m_Slave; 
    359359}; 
    360360 
    361361class Boolean 
    362 : public org::ffado::Control::Element::Boolean 
     362: public org::ffado::Control::Element::Boolean_adaptor 
    363363, public Element 
    364364{ 
    365365public: 
     
    367367          std::string p, Element *, 
    368368          Control::Boolean &slave ); 
    369369     
    370     DBus::Bool select( const DBus::Bool& value ); 
    371     DBus::Bool selected(); 
    372     DBus::String getBooleanLabel( const DBus::Bool& value ); 
     370    bool select( const bool& value ); 
     371    bool selected(); 
     372    std::string getBooleanLabel( const bool& value ); 
    373373 
    374374private: 
    375375    Control::Boolean &m_Slave; 
  • libffado/support/dbus/SConscript

    old new  
    3232# For the debugging apps 
    3333# 
    3434 
    35 env.AppendUnique( CPPPATH=["#/", "#/src", "#/external/dbus/include"] ) 
    36 env.PrependUnique( LIBPATH=[env['build_base']+"src", env['build_base']+"external/dbus"] ) 
    37 env.PrependUnique( LIBS=["ffado", "dbus-c++"] ) 
     35env.AppendUnique( CPPPATH=["#/", "#/src"] ) 
     36env.PrependUnique( LIBPATH=[env['build_base']+"src"] ) 
     37env.PrependUnique( LIBS=["ffado"] ) 
    3838 
    3939if not env.GetOption( "clean" ): 
    4040    env.MergeFlags( env["DBUS1_FLAGS"] ) 
     41    env.MergeFlags( env["DBUSC1_FLAGS"] ) 
    4142    env.MergeFlags( env['LIBRAW1394_FLAGS'] ) 
    4243    if not env['SERIALIZE_USE_EXPAT']: 
    4344        env.MergeFlags( env['LIBXML26_FLAGS'] )