gstreamer: move update_registry() as Registry method

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1355>
This commit is contained in:
Guillaume Desmottes 2023-12-01 18:20:25 +01:00
parent a649e7dead
commit 9bcf48050b
2 changed files with 6 additions and 1 deletions

View file

@ -10,7 +10,7 @@ use crate::Tracer;
// import only functions which do not have their own module as namespace
pub use crate::auto::functions::{
main_executable_path, update_registry, util_get_timestamp, version, version_string,
main_executable_path, util_get_timestamp, version, version_string,
};
#[doc(alias = "gst_calculate_linear_regression")]

View file

@ -5,6 +5,11 @@ use glib::translate::*;
use crate::{Plugin, PluginFeature, Registry};
impl Registry {
#[doc(alias = "gst_registry_update")]
pub fn update() -> Result<(), glib::BoolError> {
crate::auto::functions::update_registry()
}
#[doc(alias = "gst_registry_feature_filter")]
pub fn features_filtered<P: FnMut(&PluginFeature) -> bool>(
&self,