From f384df91d876ee2d659b5a19c88e6e959dfe6b2b Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Tue, 22 Jul 2025 10:48:53 -0600 Subject: [PATCH] Wrap C FFI in cpp extern C --- ffi/idevice.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ffi/idevice.hpp diff --git a/ffi/idevice.hpp b/ffi/idevice.hpp new file mode 100644 index 0000000..6aac99c --- /dev/null +++ b/ffi/idevice.hpp @@ -0,0 +1,16 @@ +// Jackson Coxson - Bindings to idevice - https://github.com/jkcoxson/idevice +// This file only wraps the C bindings for C++, the C bindings still must be +// generated. +// ``cargo build --release`` + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "idevice.h" // this file is generated by bindgen + +#ifdef __cplusplus +} +#endif