X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2FCECExportsCpp.h;h=635d5056bb8d7004188dc3e1e524f1e5cd05f9af;hb=5f39c4d854ec7441761bc6db870b6bbc73016309;hp=b49b1abdce050b02f7e52f8b93b4a0f34895018d;hpb=df7339c665f732faedee7c1d3cde816cc41e3302;p=deb_libcec.git diff --git a/include/CECExportsCpp.h b/include/CECExportsCpp.h index b49b1ab..635d505 100644 --- a/include/CECExportsCpp.h +++ b/include/CECExportsCpp.h @@ -41,6 +41,11 @@ namespace CEC */ virtual bool Open(const char *strPort, int iTimeoutMs = 10000) = 0; + /*! + * @see cec_close + */ + virtual void Close(void) = 0; + /*! * @see cec_find_devices */ @@ -57,7 +62,7 @@ namespace CEC virtual bool StartBootloader(void) = 0; /*! - * @see cec_power_off_devices + * @depcrecated Use StandbyDevices() instead */ virtual bool PowerOffDevices(cec_logical_address address = CECDEVICE_BROADCAST) = 0; @@ -91,15 +96,25 @@ namespace CEC */ virtual bool GetNextKeypress(cec_keypress *key) = 0; + /*! + * @see cec_get_next_command + */ + virtual bool GetNextCommand(cec_command *command) = 0; + /*! * @see cec_transmit */ - virtual bool Transmit(const cec_frame &data, bool bWaitForAck = true, int64_t iTimeout = (int64_t) 5000) = 0; + virtual bool Transmit(const cec_frame &data, bool bWaitForAck = true) = 0; + + /*! + * @see cec_set_logical_address + */ + virtual bool SetLogicalAddress(cec_logical_address iLogicalAddress) = 0; /*! - * @see cec_set_ack_mask + * @deprecated use SetLogicalAddress() instead */ - virtual bool SetAckMask(cec_logical_address ackmask) = 0; + virtual bool SetAckMask(uint16_t iMask) = 0; /*! * @see cec_get_min_version @@ -128,7 +143,7 @@ static int g_iLibCECInstanceCount = 0; */ inline CEC::ICECDevice *LoadLibCec(const char *strName, CEC::cec_logical_address iLogicalAddress = CEC::CECDEVICE_PLAYBACKDEVICE1, int iPhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS) { - typedef void* (__cdecl*_CreateLibCec)(const char *); + typedef void* (__cdecl*_CreateLibCec)(const char *, uint8_t, uint8_t); _CreateLibCec CreateLibCec; if (!g_libCEC)