libmirage 0.1.1

Rust bindings for libMirage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
glib::wrapper! {
    pub struct WriterInfo(BoxedInline<ffi::MirageWriterInfo>);

    match fn {
        copy => |ptr| {
            let copy = crate::glib::ffi::g_malloc0(size_of::<ffi::MirageWriterInfo>()) as *mut ffi::MirageWriterInfo;
            ffi::mirage_writer_info_copy(ptr, copy);
            copy
        },
        free => |ptr| ffi::mirage_writer_info_free(ptr),
        init => |_ptr| {},
        copy_into => |dest, src| ffi::mirage_writer_info_copy(src, dest),
        clear => |_ptr| {},
    }
}