Changeset 1646

Show
Ignore:
Timestamp:
08/31/09 14:33:10 (12 years ago)
Author:
arnonym
Message:

These functions return bool. Adopt the dbus-interface to the reality.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/dbus/control-interface.xml

    r1630 r1646  
    239239          <arg type="i" name="srcid" direction="in"/> 
    240240          <arg type="i" name="dstid" direction="in"/> 
    241           <arg type="i" name="canconnect" direction="out"/> 
     241          <arg type="b" name="canconnect" direction="out"/> 
    242242      </method> 
    243243      <method name="setConnectionState"> 
     
    245245          <arg type="i" name="dstid" direction="in"/> 
    246246          <arg type="i" name="state" direction="in"/> 
    247           <arg type="i" name="result" direction="out"/> 
     247          <arg type="b" name="result" direction="out"/> 
    248248      </method> 
    249249      <method name="getConnectionState"> 
    250250          <arg type="i" name="srcid" direction="in"/> 
    251251          <arg type="i" name="dstid" direction="in"/> 
    252           <arg type="i" name="state" direction="out"/> 
     252          <arg type="b" name="state" direction="out"/> 
    253253      </method> 
    254254      <method name="canConnectNamed"> 
    255255          <arg type="s" name="srcname" direction="in"/> 
    256256          <arg type="s" name="dstname" direction="in"/> 
    257           <arg type="i" name="canconnect" direction="out"/> 
     257          <arg type="b" name="canconnect" direction="out"/> 
    258258      </method> 
    259259      <method name="setConnectionStateNamed"> 
     
    261261          <arg type="s" name="dstname" direction="in"/> 
    262262          <arg type="i" name="state" direction="in"/> 
    263           <arg type="i" name="result" direction="out"/> 
     263          <arg type="b" name="result" direction="out"/> 
    264264      </method> 
    265265      <method name="getConnectionStateNamed"> 
    266266          <arg type="s" name="srcname" direction="in"/> 
    267267          <arg type="s" name="dstname" direction="in"/> 
    268           <arg type="i" name="state" direction="out"/> 
     268          <arg type="b" name="state" direction="out"/> 
    269269      </method> 
    270270      <method name="clearAllConnections"> 
    271           <arg type="i" name="state" direction="out"/> 
     271          <arg type="b" name="state" direction="out"/> 
    272272      </method> 
    273273      <method name="getNbSources"> 
     
    285285      </method> 
    286286      <method name="hasPeakMetering"> 
    287           <arg type="i" name="hasmetering" direction="out"/> 
     287          <arg type="b" name="hasmetering" direction="out"/> 
    288288      </method> 
    289289      <method name="getPeakValue"> 
  • trunk/libffado/support/dbus/controlserver.cpp

    r1630 r1646  
    877877} 
    878878 
    879 DBus::Int32 
     879DBus::Bool 
    880880CrossbarRouter::canConnect(const DBus::Int32 &source, const DBus::Int32 &dest) 
    881881{ 
     
    883883} 
    884884 
    885 DBus::Int32 
     885DBus::Bool 
    886886CrossbarRouter::setConnectionState(const DBus::Int32 &source, const DBus::Int32 &dest, const DBus::Int32 &enable) 
    887887{ 
     
    889889} 
    890890 
    891 DBus::Int32 
     891DBus::Bool 
    892892CrossbarRouter::getConnectionState(const DBus::Int32 &source, const DBus::Int32 &dest) 
    893893{ 
     
    895895} 
    896896 
    897 DBus::Int32 
     897DBus::Bool 
    898898CrossbarRouter::canConnectNamed(const DBus::String& source, const DBus::String& dest) 
    899899{ 
     
    901901} 
    902902 
    903 DBus::Int32 
     903DBus::Bool 
    904904CrossbarRouter::setConnectionStateNamed(const DBus::String &source, const DBus::String &dest, const DBus::Int32 &enable) 
    905905{ 
     
    907907} 
    908908 
    909 DBus::Int32 
     909DBus::Bool 
    910910CrossbarRouter::getConnectionStateNamed(const DBus::String &source, const DBus::String &dest) 
    911911{ 
     
    913913} 
    914914 
    915 DBus::Int32 
     915DBus::Bool 
    916916CrossbarRouter::clearAllConnections() 
    917917{ 
     
    931931} 
    932932 
    933 DBus::Int32 
     933DBus::Bool 
    934934CrossbarRouter::hasPeakMetering() 
    935935{ 
  • trunk/libffado/support/dbus/controlserver.h

    r1630 r1646  
    339339    DBus::Int32 getSourceForDestination(const DBus::Int32 &); 
    340340 
    341     DBus::Int32 canConnect(const DBus::Int32 &source, const DBus::Int32 &dest); 
    342     DBus::Int32 setConnectionState(const DBus::Int32 &source, const DBus::Int32 &dest, const DBus::Int32 &enable); 
    343     DBus::Int32 getConnectionState(const DBus::Int32 &source, const DBus::Int32 &dest); 
    344  
    345     DBus::Int32 canConnectNamed(const DBus::String&, const DBus::String&); 
    346     DBus::Int32 setConnectionStateNamed(const DBus::String&, const DBus::String&, const DBus::Int32 &enable); 
    347     DBus::Int32 getConnectionStateNamed(const DBus::String&, const DBus::String&); 
    348  
    349     DBus::Int32 clearAllConnections(); 
     341    DBus::Bool canConnect(const DBus::Int32 &source, const DBus::Int32 &dest); 
     342    DBus::Bool setConnectionState(const DBus::Int32 &source, const DBus::Int32 &dest, const DBus::Int32 &enable); 
     343    DBus::Bool getConnectionState(const DBus::Int32 &source, const DBus::Int32 &dest); 
     344 
     345    DBus::Bool canConnectNamed(const DBus::String&, const DBus::String&); 
     346    DBus::Bool setConnectionStateNamed(const DBus::String&, const DBus::String&, const DBus::Int32 &enable); 
     347    DBus::Bool getConnectionStateNamed(const DBus::String&, const DBus::String&); 
     348 
     349    DBus::Bool clearAllConnections(); 
    350350 
    351351    DBus::Int32 getNbSources(); 
    352352    DBus::Int32 getNbDestinations(); 
    353353 
    354     DBus::Int32 hasPeakMetering(); 
     354    DBus::Bool hasPeakMetering(); 
    355355    DBus::Double getPeakValue(const DBus::Int32 &source, const DBus::Int32 &dest); 
    356356