This adds a wrapper for libcec_get_logical_addresses().
This is necessary to allow a device to know its own identity. The alternative is to hard code a logical address, and hope that it hasn't been reassigned to other CEC devices... which isn't reliable when you have more than one HDMI device of the same type.
Other API additions:
make CecLogicalAddresses fields public, so they can be read
Tested with a P8 USB adapter running on macOS, where my code is acting as a Recorder device, and there's another Recorder device also attached to another HDMI port on my TV.
This adds a wrapper for
libcec_get_logical_addresses()
.This is necessary to allow a device to know its own identity. The alternative is to hard code a logical address, and hope that it hasn't been reassigned to other CEC devices... which isn't reliable when you have more than one HDMI device of the same type.
Other API additions:
CecLogicalAddresses
fields public, so they can be readcec_logical_addresses
->CecLogicalAddresses
translationTested with a P8 USB adapter running on macOS, where my code is acting as a Recorder device, and there's another Recorder device also attached to another HDMI port on my TV.