cbindgen 0.29.2

A tool for generating C bindings to Rust code.
Documentation
use std::ffi::VaList;

#[no_mangle]
pub unsafe extern "C" fn va_list_test(count: int32_t, mut ap: VaList) -> int32_t {
    ap.arg()
}

#[no_mangle]
pub unsafe extern "C" fn va_list_test2(count: int32_t, mut ap: ...) -> int32_t {
    ap.arg()
}

type VaListFnPtr = Option<unsafe extern "C" fn(count: int32_t, VaList) -> int32_t>;
type VaListFnPtr2 = Option<unsafe extern "C" fn(count: int32_t, ...) -> int32_t>;

#[repr(C)]
struct Interface<T> {
    fn1: T,
}

#[no_mangle]
pub extern "C" fn va_list_fn_ptrs(
    fn1: Option<unsafe extern "C" fn(count: int32_t, VaList) -> int32_t>,
    fn2: Option<unsafe extern "C" fn(count: int32_t, ...) -> int32_t>,
    fn3: VaListFnPtr,
    fn4: VaListFnPtr2,
    fn5: Interface<Option<unsafe extern "C" fn(count: int32_t, VaList) -> int32_t>>,
    fn6: Interface<Option<unsafe extern "C" fn(count: int32_t, ...) -> int32_t>>,
) {
}