Skip to main content

spice_client_glib/
vreader.rs

1use glib::translate::*;
2
3glib::wrapper! {
4    #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
5    pub struct VReader(Boxed<ffi::VReader>);
6
7    match fn {
8        copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::spice_smartcard_reader_get_type(), ptr as *mut _) as *mut ffi::VReader,
9        free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::spice_smartcard_reader_get_type(), ptr as *mut _),
10        type_ => || ffi::spice_smartcard_reader_get_type(),
11    }
12}