mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-05-15 06:42:44 +00:00
8eae37c525
This is implemented mostly manually because the API is a bit weird and we need to do some extra work to make it work properly. Also basing it on a Builder makes it much nicer to user. This commit also includes required new types either generated with `gir` or manually implemented when required. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1227>
19 lines
774 B
Rust
19 lines
774 B
Rust
// 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
|
|
|
|
glib::wrapper! {
|
|
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
pub struct ActionType(Boxed<ffi::GstValidateActionType>);
|
|
|
|
match fn {
|
|
copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::gst_validate_action_type_get_type(), ptr as *mut _) as *mut ffi::GstValidateActionType,
|
|
free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::gst_validate_action_type_get_type(), ptr as *mut _),
|
|
type_ => || ffi::gst_validate_action_type_get_type(),
|
|
}
|
|
}
|
|
|
|
unsafe impl Send for ActionType {}
|
|
unsafe impl Sync for ActionType {}
|