libmirage 0.1.1

Rust bindings for libMirage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::ffi;

glib::wrapper! {
    pub struct FilterStreamInfo(BoxedInline<ffi::MirageFilterStreamInfo>);

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