#include "../CECClient.h"
#include "../CECProcessor.h"
#include "../LibCEC.h"
+#include "../CECTypeUtils.h"
+#include "../platform/util/util.h"
using namespace CEC;
using namespace std;
using namespace PLATFORM;
#define LIB_CEC m_busDevice->GetProcessor()->GetLib()
-#define ToString(p) LIB_CEC->ToString(p)
+#define ToString(p) CCECTypeUtils::ToString(p)
CCECCommandHandler::CCECCommandHandler(CCECBusDevice *busDevice) :
m_busDevice(busDevice),
CCECCommandHandler::~CCECCommandHandler(void)
{
- delete m_waitForResponse;
+ DELETE_AND_NULL(m_waitForResponse);
}
bool CCECCommandHandler::HandleCommand(const cec_command &command)