Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv869/client_libs/libplayerc++

Modified Files:
        blackboardproxy.cc playerc++.h 
Log Message:
changed blackboard structure to have a group 


Index: playerc++.h
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/client_libs/libplayerc++/playerc++.h,v
retrieving revision 1.107
retrieving revision 1.108
diff -C2 -d -r1.107 -r1.108
*** playerc++.h 22 Jan 2008 20:03:29 -0000      1.107
--- playerc++.h 30 Jan 2008 02:06:46 -0000      1.108
***************
*** 343,349 ****
        ~BlackBoardProxy();
        /** Subscribe to a key. If the key does not exist the default value is 
returned. The user must free the entry. */
!       player_blackboard_entry_t *SubscribeToKey(const char *key);
        /** Stop receiving updates about this key. */
!       void UnsubscribeFromKey(const char *key);
        /** Set a key value */
        void SetEntry(const player_blackboard_entry_t &entry);
--- 343,349 ----
        ~BlackBoardProxy();
        /** Subscribe to a key. If the key does not exist the default value is 
returned. The user must free the entry. */
!       player_blackboard_entry_t *SubscribeToKey(const char *key, int32_t 
group_id = 0);
        /** Stop receiving updates about this key. */
!       void UnsubscribeFromKey(const char *key, int32_t group_id = 0);
        /** Set a key value */
        void SetEntry(const player_blackboard_entry_t &entry);

Index: blackboardproxy.cc
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/client_libs/libplayerc++/blackboardproxy.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** blackboardproxy.cc  22 Jan 2008 20:03:29 -0000      1.4
--- blackboardproxy.cc  30 Jan 2008 02:06:46 -0000      1.5
***************
*** 91,99 ****
  }
  
! player_blackboard_entry_t *BlackBoardProxy::SubscribeToKey(const char *key)
  {
    scoped_lock_t lock(mPc->mMutex);
    player_blackboard_entry_t *pointer;
!   if (0 != playerc_blackboard_subscribe_to_key(mDevice, key, &pointer))
    {
        throw PlayerError("BlackBoardProxy::SubscribeToKey(const string& key)", 
"could not subscribe to key");
--- 91,99 ----
  }
  
! player_blackboard_entry_t *BlackBoardProxy::SubscribeToKey(const char *key, 
int32_t group_id)
  {
    scoped_lock_t lock(mPc->mMutex);
    player_blackboard_entry_t *pointer;
!   if (0 != playerc_blackboard_subscribe_to_key(mDevice, key, group_id, 
&pointer))
    {
        throw PlayerError("BlackBoardProxy::SubscribeToKey(const string& key)", 
"could not subscribe to key");
***************
*** 122,129 ****
  }
  
! void BlackBoardProxy::UnsubscribeFromKey(const char *key)
  {
        scoped_lock_t lock(mPc->mMutex);
!       if (0 != playerc_blackboard_unsubscribe_from_key(mDevice, key))
        {
                throw PlayerError("BlackBoardProxy::UnsubscribeFromKey(const 
string& key)", "could not unsubscribe from key");
--- 122,129 ----
  }
  
! void BlackBoardProxy::UnsubscribeFromKey(const char *key, int32_t group_id)
  {
        scoped_lock_t lock(mPc->mMutex);
!       if (0 != playerc_blackboard_unsubscribe_from_key(mDevice, key, 
group_id))
        {
                throw PlayerError("BlackBoardProxy::UnsubscribeFromKey(const 
string& key)", "could not unsubscribe from key");


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to