spice-client-glib 0.8.0

Rust bindings for the Spice client library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use glib::translate::*;

glib::wrapper! {
    #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct VReader(Boxed<ffi::VReader>);

    match fn {
        copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::spice_smartcard_reader_get_type(), ptr as *mut _) as *mut ffi::VReader,
        free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::spice_smartcard_reader_get_type(), ptr as *mut _),
        type_ => || ffi::spice_smartcard_reader_get_type(),
    }
}