Remove cpp 17 features and implement Rust into CPP

This commit is contained in:
Jackson Coxson
2025-08-29 14:19:28 -06:00
parent 4fde7cf06b
commit 1169408da1
41 changed files with 1638 additions and 1212 deletions

View File

@@ -3,8 +3,8 @@
#pragma once
#include <idevice++/bindings.hpp>
#include <idevice++/remote_server.hpp>
#include <idevice++/result.hpp>
#include <memory>
#include <optional>
namespace IdeviceFFI {
@@ -14,10 +14,10 @@ using LocSimPtr = std::unique_ptr<LocationSimulationHandle,
class LocationSimulation {
public:
// Factory: borrows the RemoteServer; not consumed
static std::optional<LocationSimulation> create(RemoteServer& server, FfiError& err);
static Result<LocationSimulation, FfiError> create(RemoteServer& server);
bool clear(FfiError& err);
bool set(double latitude, double longitude, FfiError& err);
Result<void, FfiError> clear();
Result<void, FfiError> set(double latitude, double longitude);
~LocationSimulation() noexcept = default;
LocationSimulation(LocationSimulation&&) noexcept = default;