mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
22 lines
367 B
C++
22 lines
367 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;
|
|
std::string message;
|
|
|
|
FfiError(const IdeviceFfiError* err);
|
|
FfiError();
|
|
|
|
explicit operator bool() const { return code != 0; }
|
|
};
|
|
} // namespace IdeviceFFI
|
|
#endif
|