X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FPulse-Eight%2FUSBCECAdapterMessage.h;fp=src%2Flib%2Fadapter%2FUSBCECAdapterMessage.h;h=e4fedce028cde4d1f93c05e52e76c4ff7266e124;hb=2b44051cbfa70deafc30d9767323214debbc1a75;hp=4d571b10431dc3a4a295a4aa6d4c62fd18cc6760;hpb=ebefc26c10d68ba9ced2a30c896dccc81c6c2eeb;p=deb_libcec.git diff --git a/src/lib/adapter/USBCECAdapterMessage.h b/src/lib/adapter/Pulse-Eight/USBCECAdapterMessage.h similarity index 87% rename from src/lib/adapter/USBCECAdapterMessage.h rename to src/lib/adapter/Pulse-Eight/USBCECAdapterMessage.h index 4d571b1..e4fedce 100644 --- a/src/lib/adapter/USBCECAdapterMessage.h +++ b/src/lib/adapter/Pulse-Eight/USBCECAdapterMessage.h @@ -31,24 +31,10 @@ * http://www.pulse-eight.net/ */ -#include "../platform/util/StdString.h" -#include "../platform/util/buffer.h" -#include "../platform/threads/mutex.h" -#include "../../../include/cectypes.h" +#include "lib/adapter/AdapterCommunication.h" namespace CEC { - typedef enum cec_adapter_message_state - { - ADAPTER_MESSAGE_STATE_UNKNOWN = 0, /**< the initial state */ - ADAPTER_MESSAGE_STATE_WAITING_TO_BE_SENT, /**< waiting in the send queue of the adapter, or timed out */ - ADAPTER_MESSAGE_STATE_SENT, /**< sent and waiting on an ACK */ - ADAPTER_MESSAGE_STATE_SENT_NOT_ACKED, /**< sent, but failed to ACK */ - ADAPTER_MESSAGE_STATE_SENT_ACKED, /**< sent, and ACK received */ - ADAPTER_MESSAGE_STATE_INCOMING, /**< received from another device */ - ADAPTER_MESSAGE_STATE_ERROR /**< an error occured */ - } cec_adapter_message_state; - class CCECAdapterMessage { public: @@ -67,7 +53,7 @@ namespace CEC /*! * @return the message as human readable string. */ - CStdString ToString(void) const; + std::string ToString(void) const; /*! * @brief Translate the messagecode into a human readable string.