2018-02-23 02:33:37 +00:00
|
|
|
use ffi;
|
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::translate::*;
|
2018-04-25 08:10:06 +00:00
|
|
|
use RTSPAuth;
|
|
|
|
use RTSPToken;
|
2018-02-23 02:33:37 +00:00
|
|
|
|
2018-12-08 09:22:42 +00:00
|
|
|
pub trait RTSPAuthExtManual: 'static {
|
2018-02-23 02:33:37 +00:00
|
|
|
fn set_default_token<'a, P: Into<Option<&'a mut RTSPToken>>>(&self, token: P);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<RTSPAuth>> RTSPAuthExtManual for O {
|
|
|
|
fn set_default_token<'a, P: Into<Option<&'a mut RTSPToken>>>(&self, token: P) {
|
|
|
|
let mut token = token.into();
|
|
|
|
unsafe {
|
|
|
|
ffi::gst_rtsp_auth_set_default_token(self.to_glib_none().0, token.to_glib_none_mut().0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|