forked from mirrors/gstreamer-rs
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 {
|
pub trait URIHandlerImpl: super::element::ElementImpl + Send + Sync + 'static {
|
||||||
fn get_uri(&self, element: &URIHandler) -> Option<String>;
|
fn get_uri(&self, element: &URIHandler) -> Option<String>;
|
||||||
fn set_uri(&self, element: &URIHandler, uri: Option<String>) -> Result<(), glib::Error>;
|
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>;
|
fn get_protocols() -> Vec<String>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ unsafe extern "C" fn uri_handler_get_type<T: ObjectSubclass>(
|
||||||
where
|
where
|
||||||
T: URIHandlerImpl,
|
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>(
|
unsafe extern "C" fn uri_handler_get_protocols<T: ObjectSubclass>(
|
||||||
|
|
Loading…
Reference in a new issue