// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT use glib::translate::*; glib::wrapper! { #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GLAllocationParams(Boxed); match fn { copy => |ptr| ffi::gst_gl_allocation_params_copy(mut_override(ptr)), free => |ptr| ffi::gst_gl_allocation_params_free(ptr), type_ => || ffi::gst_gl_allocation_params_get_type(), } } impl GLAllocationParams { #[doc(alias = "gst_gl_allocation_params_copy_data")] pub fn copy_data(&self, dest: &mut GLAllocationParams) { unsafe { ffi::gst_gl_allocation_params_copy_data( mut_override(self.to_glib_none().0), dest.to_glib_none_mut().0, ); } } //#[doc(alias = "gst_gl_allocation_params_init")] //pub fn init(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option), context: &impl IsA, alloc_size: usize, alloc_params: Option<&gst::AllocationParams>, wrapped_data: /*Unimplemented*/Option, gl_handle: /*Unimplemented*/Option, user_data: /*Unimplemented*/Option) -> bool { // unsafe { TODO: call ffi:gst_gl_allocation_params_init() } //} } unsafe impl Send for GLAllocationParams {} unsafe impl Sync for GLAllocationParams {}