From: Toby C. <th...@us...> - 2006-05-08 10:57:54
|
Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32719/client_libs/libplayerc++ Modified Files: clientproxy.cc clientproxy.h Log Message: added C and C++ methods for capabilities checking Index: clientproxy.h =================================================================== RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc++/clientproxy.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** clientproxy.h 20 Apr 2006 12:17:31 -0000 1.1 --- clientproxy.h 6 May 2006 23:08:58 -0000 1.2 *************** *** 210,213 **** --- 210,219 ---- int aSubtype = -1); + /// @brief Request capabilities of device. + /// + /// Send a message asking if the device supports the given message + /// type and subtype. If it does, the return value will be 1, and 0 otherwise. + int HasCapability(uint aType, uint aSubtype); + /// Connect a signal to this proxy /// For more information check out @ref player_clientlib_multi Index: clientproxy.cc =================================================================== RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc++/clientproxy.cc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** clientproxy.cc 20 Apr 2006 12:17:31 -0000 1.12 --- clientproxy.cc 6 May 2006 23:08:58 -0000 1.13 *************** *** 88,91 **** --- 88,96 ---- } + int ClientProxy::HasCapability(uint aType, uint aSubtype) + { + return playerc_device_hascapability (mInfo, aType, aSubtype); + } + void ClientProxy::NotFresh() { |