rutabaga_gfx/generated/
virgl_debug_callback_bindings.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
 * automatically generated by rust-bindgen
 * $ bindgen /usr/include/stdio.h \
 *       --no-layout-tests \
 *       --allowlist-function vsnprintf \
 *       -- \
 *       -target <target>
 */
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub mod stdio {
    extern "C" {
        pub fn vsnprintf(
            __s: *mut ::std::os::raw::c_char,
            __maxlen: ::std::os::raw::c_ulong,
            __format: *const ::std::os::raw::c_char,
            __arg: *mut __va_list_tag,
        ) -> ::std::os::raw::c_int;
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct __va_list_tag {
        pub gp_offset: ::std::os::raw::c_uint,
        pub fp_offset: ::std::os::raw::c_uint,
        pub overflow_arg_area: *mut ::std::os::raw::c_void,
        pub reg_save_area: *mut ::std::os::raw::c_void,
    }

    pub type va_list = *mut __va_list_tag;
}
#[cfg(target_arch = "arm")]
pub mod stdio {
    extern "C" {
        pub fn vsnprintf(
            __s: *mut ::std::os::raw::c_char,
            __maxlen: ::std::os::raw::c_uint,
            __format: *const ::std::os::raw::c_char,
            __arg: __builtin_va_list,
        ) -> ::std::os::raw::c_int;
    }
    pub type __builtin_va_list = __va_list;
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct __va_list {
        pub __ap: *mut ::std::os::raw::c_void,
    }

    pub type va_list = __builtin_va_list;
}
#[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))]
pub mod stdio {
    extern "C" {
        pub fn vsnprintf(
            __s: *mut ::std::os::raw::c_char,
            __maxlen: ::std::os::raw::c_ulong,
            __format: *const ::std::os::raw::c_char,
            __arg: __builtin_va_list,
        ) -> ::std::os::raw::c_int;
    }
    pub type __builtin_va_list = __va_list;
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct __va_list {
        pub __ap: *mut ::std::os::raw::c_void,
    }

    pub type va_list = __builtin_va_list;
}

pub type virgl_debug_callback_type = ::std::option::Option<
    unsafe extern "C" fn(fmt: *const ::std::os::raw::c_char, ap: stdio::va_list),
>;

extern "C" {
    pub fn virgl_set_debug_callback(cb: virgl_debug_callback_type) -> virgl_debug_callback_type;
}