mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Add legacy argument to cpp start_session
This commit is contained in:
@@ -42,7 +42,7 @@ class Idevice {
|
|||||||
// Methods
|
// Methods
|
||||||
Result<std::string, FfiError> get_type() const;
|
Result<std::string, FfiError> get_type() const;
|
||||||
Result<void, FfiError> rsd_checkin();
|
Result<void, FfiError> rsd_checkin();
|
||||||
Result<void, FfiError> start_session(const PairingFile& pairing_file);
|
Result<void, FfiError> start_session(const PairingFile& pairing_file, bool legacy);
|
||||||
|
|
||||||
// Ownership/RAII
|
// Ownership/RAII
|
||||||
~Idevice() noexcept = default;
|
~Idevice() noexcept = default;
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ Result<void, FfiError> Idevice::rsd_checkin() {
|
|||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
Result<void, FfiError> Idevice::start_session(const PairingFile& pairing_file) {
|
Result<void, FfiError> Idevice::start_session(const PairingFile& pairing_file, bool legacy) {
|
||||||
FfiError e(idevice_start_session(handle_.get(), pairing_file.raw()));
|
FfiError e(idevice_start_session(handle_.get(), pairing_file.raw(), legacy));
|
||||||
if (e) {
|
if (e) {
|
||||||
return Err(e);
|
return Err(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user