mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Wrap C FFI in cpp extern C
This commit is contained in:
16
ffi/idevice.hpp
Normal file
16
ffi/idevice.hpp
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user