Update of /cvsroot/playerstage/code/player/server/drivers/blackboard/localbb
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11249/server/drivers/blackboard/localbb
Modified Files:
localbb.cpp
Log Message:
added timestamp to the blackboard interface
Index: localbb.cpp
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/blackboard/localbb/localbb.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** localbb.cpp 29 Nov 2007 03:36:33 -0000 1.3
--- localbb.cpp 6 Dec 2007 00:20:28 -0000 1.4
***************
*** 80,84 ****
{
/** Constructor. Sets all members to 0 or NULL. */
! EntryData() { interf = 0; type = 0; subtype = 0; data_count = 0; data =
NULL; }
//~EntryData() { if (data != NULL) delete [] data; } Why doesn't it like
this?
--- 80,84 ----
{
/** Constructor. Sets all members to 0 or NULL. */
! EntryData() { interf = 0; type = 0; subtype = 0; data_count = 0; data =
NULL; timestamp_sec = 0; timestamp_usec = 0; }
//~EntryData() { if (data != NULL) delete [] data; } Why doesn't it like
this?
***************
*** 94,97 ****
--- 94,100 ----
/** Data */
uint8_t* data;
+ /** Time entry created */
+ uint32_t timestamp_sec;
+ uint32_t timestamp_usec;
} EntryData;
***************
*** 130,133 ****
--- 133,138 ----
result.data = new uint8_t[result.data_count];
memcpy(result.data, entry.data.data, result.data_count);
+ result.timestamp_sec = entry.data.timestamp_sec;
+ result.timestamp_usec = entry.data.timestamp_usec;
return result;
}
***************
*** 145,148 ****
--- 150,155 ----
result.data.data = new uint8_t[result.data.data_count];
memcpy(result.data.data, entry.data, result.data.data_count);
+ result.data.timestamp_sec = entry.timestamp_sec;
+ result.data.timestamp_usec = entry.timestamp_usec;
return result;
}
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit