diff --git a/offload/plugins-nextgen/host/dynamic_ffi/ffi.h b/offload/plugins-nextgen/host/dynamic_ffi/ffi.h index 80aa512236d28..33285b4aef402 100644 --- a/offload/plugins-nextgen/host/dynamic_ffi/ffi.h +++ b/offload/plugins-nextgen/host/dynamic_ffi/ffi.h @@ -53,6 +53,16 @@ typedef enum ffi_abi { #else #error "Unknown ABI" #endif +} ffi_abi; + +typedef struct { + ffi_abi abi; + unsigned nargs; + ffi_type **arg_types; + ffi_type *rtype; + unsigned bytes; + unsigned flags; + long long extra_fields; // Longest extra field defined in the FFI sources } ffi_cif; #ifdef __cplusplus