Skip to content

Instantly share code, notes, and snippets.

@andreafioraldi
Last active October 10, 2020 10:35
Show Gist options
  • Save andreafioraldi/d8c3ed1c708807b27303b759c98101d6 to your computer and use it in GitHub Desktop.
Save andreafioraldi/d8c3ed1c708807b27303b759c98101d6 to your computer and use it in GitHub Desktop.
/* automatically generated by rust-bindgen 0.55.1 */
#[doc = " class Object"]
pub type afl_object_t = afl_object;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct afl_object_vtable {
pub _base_vptr: *mut afl_object_vtable,
pub _create_wrapper: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>,
pub deinit: ::std::option::Option<unsafe extern "C" fn(arg1: *mut afl_object_t)>,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct afl_object {
pub wrapper: *mut ::std::os::raw::c_void,
pub vptr: *mut afl_object_vtable,
}
#[doc = " virtual class A"]
pub type afl_A_t = afl_A;
extern "C" {
pub fn afl_A_deinit__nonvirtual(self_: *mut afl_object_t);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct afl_A_vtable {
pub _base: afl_object_vtable,
pub print: ::std::option::Option<unsafe extern "C" fn(arg1: *mut afl_A_t)>,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct afl_A {
pub _base: afl_object,
pub x: ::std::os::raw::c_int,
}
extern "C" {
pub fn afl_A_init__protected(self_: *mut afl_A_t, x: ::std::os::raw::c_int);
}
extern "C" {
#[doc = " class B"]
pub fn afl_B_print__nonvirtual(self_: *mut afl_A_t);
}
pub type afl_B_t = afl_B;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct afl_B {
pub _base: afl_A,
}
extern "C" {
pub fn afl_B_init(self_: *mut afl_B_t, x: ::std::os::raw::c_int);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment