1 | // This file was generated by gir (https://github.com/gtk-rs/gir) |
2 | // from gir-files (https://github.com/gtk-rs/gir-files) |
3 | // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) |
4 | // DO NOT EDIT |
5 | |
6 | use crate::ffi; |
7 | use glib::translate::*; |
8 | |
9 | glib::wrapper! { |
10 | #[derive (Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] |
11 | pub struct GLAllocationParams(Boxed<ffi::GstGLAllocationParams>); |
12 | |
13 | match fn { |
14 | copy => |ptr| ffi::gst_gl_allocation_params_copy(mut_override(ptr)), |
15 | free => |ptr| ffi::gst_gl_allocation_params_free(ptr), |
16 | type_ => || ffi::gst_gl_allocation_params_get_type(), |
17 | } |
18 | } |
19 | |
20 | impl GLAllocationParams { |
21 | #[doc (alias = "gst_gl_allocation_params_copy_data" )] |
22 | pub fn copy_data(&self, dest: &mut GLAllocationParams) { |
23 | unsafe { |
24 | ffi::gst_gl_allocation_params_copy_data( |
25 | src:mut_override(self.to_glib_none().0), |
26 | dest.to_glib_none_mut().0, |
27 | ); |
28 | } |
29 | } |
30 | |
31 | //#[doc(alias = "gst_gl_allocation_params_init")] |
32 | //pub fn init<P: Fn(&GLAllocationParams) + Send + Sync + 'static, Q: Fn() + Send + Sync + 'static>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: Q, context: &impl IsA<GLContext>, alloc_size: usize, alloc_params: Option<&gst::AllocationParams>, wrapped_data: /*Unimplemented*/Option<Basic: Pointer>, gl_handle: /*Unimplemented*/Option<Basic: Pointer>) -> bool { |
33 | // unsafe { TODO: call ffi:gst_gl_allocation_params_init() } |
34 | //} |
35 | } |
36 | |
37 | unsafe impl Send for GLAllocationParams {} |
38 | unsafe impl Sync for GLAllocationParams {} |
39 | |