Merge branch 'master' into release
* bumped interface version to 6
* fixed packet output (reporting the OSD name correctly now)
* refactored packet structs: split up in cec commands and adapter messages
* fixed i/o timings
* added Darwin support (thanks Davilla!)
* fixed WaitForAck()
* fixed possible deadlock when starting a new thread
* implemented vendor id and device class parsing. full detection will follow
* added "on" and "standby" commands to the test client
* retransmit packets if needed
* fix GetTimeMs() on linux
* added timestamp to log messages
cec: sync visual studio project files. removed pthreadVC2d.dll / .lib (we're not going to debug pthread). don't return a struct but set the values in a struct passed as a param in cec_command::format().
cec: removed dupe m_bRunning properties. wait until a thread is started before returning from CreateThread(). shorter read times, so the comm mutex doesn't stay locked too long.
libcec v0.5 (WIP)
* bumped interface version to 5
* don't pass std::string and std::vector accross the interface
* fixed heap corruption crashes on windows
* fixed some memory leaks
* reset all structs to default values before doing with them
Merge branch 'master' into release
* fixed int parameter sizes and some signed/unsigned warnings
* check whether m_port isn't NULL in ReadFromDevice
* stop the processor thread and delete the CSerialPort instance on exit
* added mutex in CSerialPort
* fix segfault on exit
* renamed libPlatform -> platform.
* stuck everything from libCEC in the CEC namespace to avoid namespace
polution
Merge branch 'master' into release
* bumped interface version to 4
* timeout parameter removed from Close()/cec_close(). return type changed to
void
* added cec_destroy() method
* removed timeout parameter from Transmit()
* change the default argument of PowerOnDevices() to CECDEVICE_TV
* removed PowerOffDevices(). use StandbyDevices() instead
* removed obsolete methods from the interface
* fixed bug: pthread_cond_wait was called without the mutex locked
* fixed possible deadlock: don't send messages and wait for an ack with the
mutex locked in CCECParser
* created a separate reader thread and fixed the 'lock timeout' bug
* testclient: use CECDEVICE_TV instead of the default argument
(CECDEVICE_BROADCAST) for PowerOnDevices() and PowerOffDevices()
cec: split up CEC processing and the public interface. removed obsolete methods from the interface. set minimal required interface version to 3 before releasing. clean ups, cosmetics. renamed some more files to be more descriptive
cec: extracted a thread class. fixed bug: pthread_cond_wait was called without the mutex locked. fixed possible deadlock: don't send messages and wait for an ack with the mutex locked in CCECParser. removed some obsolete code.
Lars Op den Kamp [Thu, 29 Sep 2011 19:53:47 +0000 (21:53 +0200)]
cec: added CEC command that were received by the adapter in a buffer that can be read by a client with GetNextCommand()/cec_get_next_command(). added a 'help' command to the test client, that displays all available commands
Lars Op den Kamp [Thu, 29 Sep 2011 15:44:15 +0000 (17:44 +0200)]
cec: fixed setting the ackmask. deprecated SetAckMask()/cec_set_ack_mask(). use SetLogicalAddress()/cec_set_logical_address() instead. add 'la' command to the testclient to set the logical address of the cec adapter
Lars Op den Kamp [Thu, 29 Sep 2011 12:32:04 +0000 (14:32 +0200)]
cec: added optional logical and physical address parameters to LoadLibCec()/cec_init() on the interface. fixed wrongly placed namespace close tag in CECExports.h. updated interface documentation. bumped interface version to 2.