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