Debug proxy cpp example

This commit is contained in:
Jackson Coxson
2025-08-15 16:38:56 -06:00
parent 94a361eb4e
commit 46635e162a
7 changed files with 398 additions and 6 deletions

View File

@@ -67,7 +67,7 @@ std::optional<uint32_t> UsbmuxdDevice::get_id() const {
std::optional<UsbmuxdConnectionType> UsbmuxdDevice::get_connection_type() const {
uint8_t t = idevice_usbmuxd_device_get_connection_type(handle_.get());
if (t == 0)
return std::nullopt; // adjust to your API contract
return std::nullopt;
return UsbmuxdConnectionType(t);
}