#include "cectypes.h"
-#define LIBCEC_VERSION_CURRENT CEC_SERVER_VERSION_1_9_0
+#define LIBCEC_VERSION_CURRENT CEC_SERVER_VERSION_CURRENT
namespace CEC
{
+ /*!
+ * To create a new libCEC instance, call CECInitialise() and pass the
+ * configuration as argument. Then call Open() to open a connection to the
+ * adapter. Close() closes the connection and CECDestroy() cleans up the
+ * libCEC instance.
+ *
+ * libCEC can send commands to other devices on the CEC bus via the methods
+ * on this interface, and all commands that libCEC received are sent back
+ * to the application via callback methods. The callback methods can be
+ * found in cectypes.h, ICECCallbacks.
+ */
class ICECAdapter
{
public:
*/
virtual void InitVideoStandalone(void) = 0;
+ /*!
+ * @return The (virtual) USB vendor id
+ */
+ virtual uint16_t GetAdapterVendorId(void) const = 0;
+
+ /*!
+ * @return The (virtual) USB product id
+ */
+ virtual uint16_t GetAdapterProductId(void) const = 0;
+
virtual const char *ToString(const cec_menu_state state) = 0;
virtual const char *ToString(const cec_version version) = 0;
virtual const char *ToString(const cec_power_status status) = 0;