gstreamer/
tracer_factory.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::translate::*;
4
5use crate::TracerFactory;
6
7impl TracerFactory {
8    /// Gets the list of all registered tracer factories. You must free the
9    /// list using `gst_plugin_feature_list_free()`.
10    ///
11    /// The returned factories are sorted by factory name.
12    ///
13    /// Free-function: gst_plugin_feature_list_free
14    ///
15    /// # Returns
16    ///
17    /// the list of all
18    ///  registered [`TracerFactory`][crate::TracerFactory].
19    #[doc(alias = "gst_tracer_factory_get_list")]
20    #[doc(alias = "get_list")]
21    pub fn factories() -> glib::List<TracerFactory> {
22        assert_initialized_main_thread!();
23        unsafe { FromGlibPtrContainer::from_glib_full(crate::ffi::gst_tracer_factory_get_list()) }
24    }
25}