Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18140/client_libs/libplayerc++
Modified Files:
clientproxy.cc clientproxy.h
Log Message:
applied patch 1709455 from geoff biggs adding support for generic properties to
interfaces
Index: clientproxy.h
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/clientproxy.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** clientproxy.h 14 Mar 2007 16:41:51 -0000 1.3
--- clientproxy.h 29 Apr 2007 07:18:43 -0000 1.4
***************
*** 216,219 ****
--- 216,237 ----
int HasCapability(uint aType, uint aSubtype);
+ /// @brief Request an integer property
+ int GetIntProp(char *aProperty, int32_t *aValue);
+
+ /// @brief Set an integer property
+ int SetIntProp(char *aProperty, int32_t aValue);
+
+ /// @brief Request a double property
+ int GetDblProp(char *aProperty, double *aValue);
+
+ /// @brief Set a double property
+ int SetDblProp(char *aProperty, double aValue);
+
+ /// @brief Request a string property
+ int GetStrProp(char *aProperty, char **aValue);
+
+ /// @brief Set a string property
+ int SetStrProp(char *aProperty, const char *aValue);
+
/// 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.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** clientproxy.cc 19 May 2006 09:51:36 -0000 1.14
--- clientproxy.cc 29 Apr 2007 07:18:43 -0000 1.15
***************
*** 94,97 ****
--- 94,133 ----
}
+ int ClientProxy::GetIntProp(char *aProperty, int32_t *aValue)
+ {
+ scoped_lock_t lock(mPc->mMutex);
+ return playerc_device_get_intprop (mInfo, aProperty, aValue);
+ }
+
+ int ClientProxy::SetIntProp(char *aProperty, int32_t aValue)
+ {
+ scoped_lock_t lock(mPc->mMutex);
+ return playerc_device_set_intprop (mInfo, aProperty, aValue);
+ }
+
+ int ClientProxy::GetDblProp(char *aProperty, double *aValue)
+ {
+ scoped_lock_t lock(mPc->mMutex);
+ return playerc_device_get_dblprop (mInfo, aProperty, aValue);
+ }
+
+ int ClientProxy::SetDblProp(char *aProperty, double aValue)
+ {
+ scoped_lock_t lock(mPc->mMutex);
+ return playerc_device_set_dblprop (mInfo, aProperty, aValue);
+ }
+
+ int ClientProxy::GetStrProp(char *aProperty, char **aValue)
+ {
+ scoped_lock_t lock(mPc->mMutex);
+ return playerc_device_get_strprop (mInfo, aProperty, aValue);
+ }
+
+ int ClientProxy::SetStrProp(char *aProperty, const char *aValue)
+ {
+ scoped_lock_t lock(mPc->mMutex);
+ return playerc_device_set_strprop (mInfo, aProperty, aValue);
+ }
+
void ClientProxy::NotFresh()
{
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit