mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 03:21:03 +00:00
URIHandler: rename get_type
Avoid a conflict with the `get_type` function declared by the `glib_object_subclass!` macro.
This commit is contained in:
parent
237fd55a4a
commit
8c3df63b95
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ use URIType;
|
|||
pub trait URIHandlerImpl: super::element::ElementImpl + Send + Sync + 'static {
|
||||
fn get_uri(&self, element: &URIHandler) -> Option<String>;
|
||||
fn set_uri(&self, element: &URIHandler, uri: Option<String>) -> Result<(), glib::Error>;
|
||||
fn get_type() -> URIType;
|
||||
fn get_uri_type() -> URIType;
|
||||
fn get_protocols() -> Vec<String>;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ unsafe extern "C" fn uri_handler_get_type<T: ObjectSubclass>(
|
|||
where
|
||||
T: URIHandlerImpl,
|
||||
{
|
||||
<T as URIHandlerImpl>::get_type().to_glib()
|
||||
<T as URIHandlerImpl>::get_uri_type().to_glib()
|
||||
}
|
||||
|
||||
unsafe extern "C" fn uri_handler_get_protocols<T: ObjectSubclass>(
|
||||
|
|
Loading…
Reference in a new issue