mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-05-17 20:20:34 +00:00
26 lines
480 B
C++
26 lines
480 B
C++
// Jackson Coxson
|
|
|
|
#ifndef IDEVICE_FFI
|
|
#define IDEVICE_FFI
|
|
|
|
#include <idevice++/bindings.hpp>
|
|
#include <string>
|
|
|
|
namespace IdeviceFFI {
|
|
class FfiError {
|
|
public:
|
|
int32_t code = 0;
|
|
int32_t sub_code = 0;
|
|
std::string message;
|
|
|
|
FfiError(const IdeviceFfiError* err);
|
|
FfiError();
|
|
|
|
explicit operator bool() const { return code != 0; }
|
|
|
|
static FfiError NotConnected();
|
|
static FfiError InvalidArgument();
|
|
};
|
|
} // namespace IdeviceFFI
|
|
#endif
|