2018-04-23 17:34:22 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2021-04-01 13:58:41 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2018-02-09 02:30:08 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
2023-01-03 18:56:00 +00:00
|
|
|
use crate::{
|
|
|
|
RTSPAuth, RTSPClient, RTSPFilterResult, RTSPMountPoints, RTSPSessionPool, RTSPThreadPool,
|
|
|
|
};
|
|
|
|
use glib::{
|
|
|
|
prelude::*,
|
|
|
|
signal::{connect_raw, SignalHandlerId},
|
|
|
|
translate::*,
|
|
|
|
};
|
|
|
|
use std::{boxed::Box as Box_, mem::transmute, ptr};
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-17 22:34:53 +00:00
|
|
|
glib::wrapper! {
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GstRTSPServer")]
|
2020-11-22 10:40:56 +00:00
|
|
|
pub struct RTSPServer(Object<ffi::GstRTSPServer, ffi::GstRTSPServerClass>);
|
2018-02-09 02:30:08 +00:00
|
|
|
|
|
|
|
match fn {
|
2021-04-19 19:55:01 +00:00
|
|
|
type_ => || ffi::gst_rtsp_server_get_type(),
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl RTSPServer {
|
2021-11-16 14:02:58 +00:00
|
|
|
pub const NONE: Option<&'static RTSPServer> = None;
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_new")]
|
2018-02-09 02:30:08 +00:00
|
|
|
pub fn new() -> RTSPServer {
|
|
|
|
assert_initialized_main_thread!();
|
2020-11-22 10:40:56 +00:00
|
|
|
unsafe { from_glib_full(ffi::gst_rtsp_server_new()) }
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_io_func")]
|
2021-05-23 19:22:45 +00:00
|
|
|
pub fn io_func(
|
|
|
|
socket: &impl IsA<gio::Socket>,
|
2019-06-18 10:12:00 +00:00
|
|
|
condition: glib::IOCondition,
|
2021-05-23 19:22:45 +00:00
|
|
|
server: &impl IsA<RTSPServer>,
|
2019-06-18 10:12:00 +00:00
|
|
|
) -> Result<(), glib::error::BoolError> {
|
2018-02-09 02:30:08 +00:00
|
|
|
skip_assert_initialized!();
|
|
|
|
unsafe {
|
2020-12-17 22:34:53 +00:00
|
|
|
glib::result_from_gboolean!(
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_io_func(
|
2019-06-18 10:12:00 +00:00
|
|
|
socket.as_ref().to_glib_none().0,
|
2021-04-27 15:10:39 +00:00
|
|
|
condition.into_glib(),
|
2019-06-18 10:12:00 +00:00
|
|
|
server.as_ref().to_glib_none().0
|
|
|
|
),
|
|
|
|
"Failed to connect the source"
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for RTSPServer {
|
|
|
|
fn default() -> Self {
|
|
|
|
Self::new()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for RTSPServer {}
|
|
|
|
unsafe impl Sync for RTSPServer {}
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
pub trait RTSPServerExt: 'static {
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_client_filter")]
|
2019-06-18 10:12:00 +00:00
|
|
|
fn client_filter(
|
|
|
|
&self,
|
|
|
|
func: Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)>,
|
|
|
|
) -> Vec<RTSPClient>;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_create_socket")]
|
2021-05-23 19:22:45 +00:00
|
|
|
fn create_socket(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
2021-05-23 19:22:45 +00:00
|
|
|
cancellable: Option<&impl IsA<gio::Cancellable>>,
|
2019-11-10 16:55:02 +00:00
|
|
|
) -> Result<gio::Socket, glib::Error>;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_create_source")]
|
2021-05-23 19:22:45 +00:00
|
|
|
fn create_source(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
2021-05-23 19:22:45 +00:00
|
|
|
cancellable: Option<&impl IsA<gio::Cancellable>>,
|
2019-11-10 16:55:02 +00:00
|
|
|
) -> Result<glib::Source, glib::Error>;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_address")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_address")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn address(&self) -> Option<glib::GString>;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_auth")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_auth")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn auth(&self) -> Option<RTSPAuth>;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_backlog")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_backlog")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn backlog(&self) -> i32;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_bound_port")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_bound_port")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn bound_port(&self) -> i32;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_content_length_limit")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_content_length_limit")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn content_length_limit(&self) -> u32;
|
2020-04-30 16:51:41 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_mount_points")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_mount_points")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn mount_points(&self) -> Option<RTSPMountPoints>;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_service")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_service")]
|
2022-10-18 15:16:11 +00:00
|
|
|
fn service(&self) -> glib::GString;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_session_pool")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_session_pool")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn session_pool(&self) -> Option<RTSPSessionPool>;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_get_thread_pool")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_thread_pool")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn thread_pool(&self) -> Option<RTSPThreadPool>;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_set_address")]
|
2018-02-09 02:30:08 +00:00
|
|
|
fn set_address(&self, address: &str);
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_set_auth")]
|
2021-05-23 19:22:45 +00:00
|
|
|
fn set_auth(&self, auth: Option<&impl IsA<RTSPAuth>>);
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_set_backlog")]
|
2018-02-09 02:30:08 +00:00
|
|
|
fn set_backlog(&self, backlog: i32);
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_set_content_length_limit")]
|
2020-04-30 16:51:41 +00:00
|
|
|
fn set_content_length_limit(&self, limit: u32);
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_set_mount_points")]
|
2021-05-23 19:22:45 +00:00
|
|
|
fn set_mount_points(&self, mounts: Option<&impl IsA<RTSPMountPoints>>);
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_set_service")]
|
2018-02-09 02:30:08 +00:00
|
|
|
fn set_service(&self, service: &str);
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_set_session_pool")]
|
2021-05-23 19:22:45 +00:00
|
|
|
fn set_session_pool(&self, pool: Option<&impl IsA<RTSPSessionPool>>);
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_set_thread_pool")]
|
2021-05-23 19:22:45 +00:00
|
|
|
fn set_thread_pool(&self, pool: Option<&impl IsA<RTSPThreadPool>>);
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtsp_server_transfer_connection")]
|
2021-05-23 19:22:45 +00:00
|
|
|
fn transfer_connection(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
2023-01-03 18:56:00 +00:00
|
|
|
socket: impl IsA<gio::Socket>,
|
2019-06-18 10:12:00 +00:00
|
|
|
ip: &str,
|
|
|
|
port: i32,
|
|
|
|
initial_buffer: Option<&str>,
|
|
|
|
) -> Result<(), glib::error::BoolError>;
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "content-length-limit")]
|
2020-04-30 16:51:41 +00:00
|
|
|
fn get_property_content_length_limit(&self) -> u32;
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "content-length-limit")]
|
2020-04-30 16:51:41 +00:00
|
|
|
fn set_property_content_length_limit(&self, content_length_limit: u32);
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "client-connected")]
|
2019-06-18 10:12:00 +00:00
|
|
|
fn connect_client_connected<F: Fn(&Self, &RTSPClient) + Send + Sync + 'static>(
|
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId;
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "address")]
|
|
|
|
fn connect_address_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F)
|
|
|
|
-> SignalHandlerId;
|
2019-06-18 10:12:00 +00:00
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "backlog")]
|
|
|
|
fn connect_backlog_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F)
|
|
|
|
-> SignalHandlerId;
|
2019-06-18 10:12:00 +00:00
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "bound-port")]
|
|
|
|
fn connect_bound_port_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId;
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "content-length-limit")]
|
|
|
|
fn connect_content_length_limit_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2020-04-30 16:51:41 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId;
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "mount-points")]
|
|
|
|
fn connect_mount_points_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId;
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "service")]
|
|
|
|
fn connect_service_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F)
|
|
|
|
-> SignalHandlerId;
|
2019-06-18 10:12:00 +00:00
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "session-pool")]
|
|
|
|
fn connect_session_pool_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId;
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
impl<O: IsA<RTSPServer>> RTSPServerExt for O {
|
2019-06-18 10:12:00 +00:00
|
|
|
fn client_filter(
|
|
|
|
&self,
|
|
|
|
func: Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)>,
|
|
|
|
) -> Vec<RTSPClient> {
|
|
|
|
let func_data: Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)> =
|
|
|
|
func;
|
|
|
|
unsafe extern "C" fn func_func(
|
2020-11-22 10:40:56 +00:00
|
|
|
server: *mut ffi::GstRTSPServer,
|
|
|
|
client: *mut ffi::GstRTSPClient,
|
|
|
|
user_data: glib::ffi::gpointer,
|
|
|
|
) -> ffi::GstRTSPFilterResult {
|
2019-02-22 09:54:27 +00:00
|
|
|
let server = from_glib_borrow(server);
|
|
|
|
let client = from_glib_borrow(client);
|
2019-06-18 10:12:00 +00:00
|
|
|
let callback: *mut Option<
|
|
|
|
&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult),
|
|
|
|
> = user_data as *const _ as usize
|
|
|
|
as *mut Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)>;
|
2023-02-07 19:00:46 +00:00
|
|
|
if let Some(ref mut callback) = *callback {
|
2019-02-22 09:54:27 +00:00
|
|
|
callback(&server, &client)
|
|
|
|
} else {
|
|
|
|
panic!("cannot get closure...")
|
2023-02-07 19:00:46 +00:00
|
|
|
}
|
|
|
|
.into_glib()
|
2019-02-22 09:54:27 +00:00
|
|
|
}
|
2019-06-18 10:12:00 +00:00
|
|
|
let func = if func_data.is_some() {
|
|
|
|
Some(func_func as _)
|
|
|
|
} else {
|
|
|
|
None
|
|
|
|
};
|
|
|
|
let super_callback0: &Option<
|
|
|
|
&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult),
|
|
|
|
> = &func_data;
|
2019-02-22 09:54:27 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_server_client_filter(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
func,
|
|
|
|
super_callback0 as *const _ as usize as *mut _,
|
|
|
|
))
|
2019-02-22 09:54:27 +00:00
|
|
|
}
|
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2021-05-23 19:22:45 +00:00
|
|
|
fn create_socket(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
2021-05-23 19:22:45 +00:00
|
|
|
cancellable: Option<&impl IsA<gio::Cancellable>>,
|
2019-11-10 16:55:02 +00:00
|
|
|
) -> Result<gio::Socket, glib::Error> {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
|
|
|
let mut error = ptr::null_mut();
|
2020-11-22 10:40:56 +00:00
|
|
|
let ret = ffi::gst_rtsp_server_create_socket(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
cancellable.map(|p| p.as_ref()).to_glib_none().0,
|
|
|
|
&mut error,
|
|
|
|
);
|
|
|
|
if error.is_null() {
|
|
|
|
Ok(from_glib_full(ret))
|
|
|
|
} else {
|
|
|
|
Err(from_glib_full(error))
|
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-23 19:22:45 +00:00
|
|
|
fn create_source(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
2021-05-23 19:22:45 +00:00
|
|
|
cancellable: Option<&impl IsA<gio::Cancellable>>,
|
2019-11-10 16:55:02 +00:00
|
|
|
) -> Result<glib::Source, glib::Error> {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
|
|
|
let mut error = ptr::null_mut();
|
2020-11-22 10:40:56 +00:00
|
|
|
let ret = ffi::gst_rtsp_server_create_source(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
cancellable.map(|p| p.as_ref()).to_glib_none().0,
|
|
|
|
&mut error,
|
|
|
|
);
|
|
|
|
if error.is_null() {
|
|
|
|
Ok(from_glib_full(ret))
|
|
|
|
} else {
|
|
|
|
Err(from_glib_full(error))
|
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn address(&self) -> Option<glib::GString> {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
from_glib_full(ffi::gst_rtsp_server_get_address(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn auth(&self) -> Option<RTSPAuth> {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
from_glib_full(ffi::gst_rtsp_server_get_auth(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn backlog(&self) -> i32 {
|
2020-11-22 10:40:56 +00:00
|
|
|
unsafe { ffi::gst_rtsp_server_get_backlog(self.as_ref().to_glib_none().0) }
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn bound_port(&self) -> i32 {
|
2020-11-22 10:40:56 +00:00
|
|
|
unsafe { ffi::gst_rtsp_server_get_bound_port(self.as_ref().to_glib_none().0) }
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn content_length_limit(&self) -> u32 {
|
2020-11-22 10:40:56 +00:00
|
|
|
unsafe { ffi::gst_rtsp_server_get_content_length_limit(self.as_ref().to_glib_none().0) }
|
2020-04-30 16:51:41 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn mount_points(&self) -> Option<RTSPMountPoints> {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
from_glib_full(ffi::gst_rtsp_server_get_mount_points(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-18 15:16:11 +00:00
|
|
|
fn service(&self) -> glib::GString {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
from_glib_full(ffi::gst_rtsp_server_get_service(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn session_pool(&self) -> Option<RTSPSessionPool> {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
from_glib_full(ffi::gst_rtsp_server_get_session_pool(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn thread_pool(&self) -> Option<RTSPThreadPool> {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
from_glib_full(ffi::gst_rtsp_server_get_thread_pool(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_address(&self, address: &str) {
|
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_set_address(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
address.to_glib_none().0,
|
|
|
|
);
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-23 19:22:45 +00:00
|
|
|
fn set_auth(&self, auth: Option<&impl IsA<RTSPAuth>>) {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_set_auth(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
auth.map(|p| p.as_ref()).to_glib_none().0,
|
|
|
|
);
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_backlog(&self, backlog: i32) {
|
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_set_backlog(self.as_ref().to_glib_none().0, backlog);
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
2020-04-30 16:51:41 +00:00
|
|
|
fn set_content_length_limit(&self, limit: u32) {
|
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_set_content_length_limit(self.as_ref().to_glib_none().0, limit);
|
2020-04-30 16:51:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-23 19:22:45 +00:00
|
|
|
fn set_mount_points(&self, mounts: Option<&impl IsA<RTSPMountPoints>>) {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_set_mount_points(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
mounts.map(|p| p.as_ref()).to_glib_none().0,
|
|
|
|
);
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_service(&self, service: &str) {
|
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_set_service(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
service.to_glib_none().0,
|
|
|
|
);
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-23 19:22:45 +00:00
|
|
|
fn set_session_pool(&self, pool: Option<&impl IsA<RTSPSessionPool>>) {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_set_session_pool(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
pool.map(|p| p.as_ref()).to_glib_none().0,
|
|
|
|
);
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-23 19:22:45 +00:00
|
|
|
fn set_thread_pool(&self, pool: Option<&impl IsA<RTSPThreadPool>>) {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_set_thread_pool(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
pool.map(|p| p.as_ref()).to_glib_none().0,
|
|
|
|
);
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-23 19:22:45 +00:00
|
|
|
fn transfer_connection(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
2023-01-03 18:56:00 +00:00
|
|
|
socket: impl IsA<gio::Socket>,
|
2019-06-18 10:12:00 +00:00
|
|
|
ip: &str,
|
|
|
|
port: i32,
|
|
|
|
initial_buffer: Option<&str>,
|
|
|
|
) -> Result<(), glib::error::BoolError> {
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2020-12-17 22:34:53 +00:00
|
|
|
glib::result_from_gboolean!(
|
2020-11-22 10:40:56 +00:00
|
|
|
ffi::gst_rtsp_server_transfer_connection(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
2023-01-03 18:56:00 +00:00
|
|
|
socket.upcast().into_glib_ptr(),
|
2019-06-18 10:12:00 +00:00
|
|
|
ip.to_glib_none().0,
|
|
|
|
port,
|
|
|
|
initial_buffer.to_glib_none().0
|
|
|
|
),
|
|
|
|
"Failed to transfer to the connection"
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-30 16:51:41 +00:00
|
|
|
fn get_property_content_length_limit(&self) -> u32 {
|
2021-11-06 17:31:52 +00:00
|
|
|
glib::ObjectExt::property(self.as_ref(), "content-length-limit")
|
2020-04-30 16:51:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn set_property_content_length_limit(&self, content_length_limit: u32) {
|
2021-11-06 17:31:52 +00:00
|
|
|
glib::ObjectExt::set_property(self.as_ref(), "content-length-limit", &content_length_limit)
|
2020-04-30 16:51:41 +00:00
|
|
|
}
|
|
|
|
|
2019-06-18 10:12:00 +00:00
|
|
|
fn connect_client_connected<F: Fn(&Self, &RTSPClient) + Send + Sync + 'static>(
|
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
|
|
|
unsafe extern "C" fn client_connected_trampoline<
|
2021-05-26 22:02:42 +00:00
|
|
|
P: IsA<RTSPServer>,
|
2019-06-18 10:12:00 +00:00
|
|
|
F: Fn(&P, &RTSPClient) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-22 10:40:56 +00:00
|
|
|
this: *mut ffi::GstRTSPServer,
|
|
|
|
object: *mut ffi::GstRTSPClient,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2019-06-18 10:12:00 +00:00
|
|
|
f(
|
2021-06-21 21:07:45 +00:00
|
|
|
RTSPServer::from_glib_borrow(this).unsafe_cast_ref(),
|
2019-06-18 10:12:00 +00:00
|
|
|
&from_glib_borrow(object),
|
|
|
|
)
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"client-connected\0".as_ptr() as *const _,
|
2020-04-13 16:11:33 +00:00
|
|
|
Some(transmute::<_, unsafe extern "C" fn()>(
|
|
|
|
client_connected_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_address_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_address_trampoline<
|
|
|
|
P: IsA<RTSPServer>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-22 10:40:56 +00:00
|
|
|
this: *mut ffi::GstRTSPServer,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(RTSPServer::from_glib_borrow(this).unsafe_cast_ref())
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::address\0".as_ptr() as *const _,
|
2020-04-13 16:11:33 +00:00
|
|
|
Some(transmute::<_, unsafe extern "C" fn()>(
|
|
|
|
notify_address_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_backlog_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_backlog_trampoline<
|
|
|
|
P: IsA<RTSPServer>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-22 10:40:56 +00:00
|
|
|
this: *mut ffi::GstRTSPServer,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(RTSPServer::from_glib_borrow(this).unsafe_cast_ref())
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::backlog\0".as_ptr() as *const _,
|
2020-04-13 16:11:33 +00:00
|
|
|
Some(transmute::<_, unsafe extern "C" fn()>(
|
|
|
|
notify_backlog_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_bound_port_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_bound_port_trampoline<
|
|
|
|
P: IsA<RTSPServer>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-22 10:40:56 +00:00
|
|
|
this: *mut ffi::GstRTSPServer,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(RTSPServer::from_glib_borrow(this).unsafe_cast_ref())
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::bound-port\0".as_ptr() as *const _,
|
2020-04-13 16:11:33 +00:00
|
|
|
Some(transmute::<_, unsafe extern "C" fn()>(
|
|
|
|
notify_bound_port_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_content_length_limit_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2020-04-30 16:51:41 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
|
|
|
unsafe extern "C" fn notify_content_length_limit_trampoline<
|
2021-05-26 22:02:42 +00:00
|
|
|
P: IsA<RTSPServer>,
|
2020-04-30 16:51:41 +00:00
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-22 10:40:56 +00:00
|
|
|
this: *mut ffi::GstRTSPServer,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2020-04-30 16:51:41 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(RTSPServer::from_glib_borrow(this).unsafe_cast_ref())
|
2020-04-30 16:51:41 +00:00
|
|
|
}
|
|
|
|
unsafe {
|
|
|
|
let f: Box_<F> = Box_::new(f);
|
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::content-length-limit\0".as_ptr() as *const _,
|
|
|
|
Some(transmute::<_, unsafe extern "C" fn()>(
|
|
|
|
notify_content_length_limit_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_mount_points_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_mount_points_trampoline<
|
|
|
|
P: IsA<RTSPServer>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-22 10:40:56 +00:00
|
|
|
this: *mut ffi::GstRTSPServer,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(RTSPServer::from_glib_borrow(this).unsafe_cast_ref())
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::mount-points\0".as_ptr() as *const _,
|
2020-04-13 16:11:33 +00:00
|
|
|
Some(transmute::<_, unsafe extern "C" fn()>(
|
|
|
|
notify_mount_points_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_service_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_service_trampoline<
|
|
|
|
P: IsA<RTSPServer>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-22 10:40:56 +00:00
|
|
|
this: *mut ffi::GstRTSPServer,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(RTSPServer::from_glib_borrow(this).unsafe_cast_ref())
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::service\0".as_ptr() as *const _,
|
2020-04-13 16:11:33 +00:00
|
|
|
Some(transmute::<_, unsafe extern "C" fn()>(
|
|
|
|
notify_service_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-03 18:35:37 +00:00
|
|
|
fn connect_session_pool_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
2019-06-18 10:12:00 +00:00
|
|
|
&self,
|
|
|
|
f: F,
|
|
|
|
) -> SignalHandlerId {
|
2021-05-26 22:02:42 +00:00
|
|
|
unsafe extern "C" fn notify_session_pool_trampoline<
|
|
|
|
P: IsA<RTSPServer>,
|
|
|
|
F: Fn(&P) + Send + Sync + 'static,
|
|
|
|
>(
|
2020-11-22 10:40:56 +00:00
|
|
|
this: *mut ffi::GstRTSPServer,
|
|
|
|
_param_spec: glib::ffi::gpointer,
|
|
|
|
f: glib::ffi::gpointer,
|
2021-05-26 22:02:42 +00:00
|
|
|
) {
|
2019-06-18 10:10:46 +00:00
|
|
|
let f: &F = &*(f as *const F);
|
2021-06-21 21:07:45 +00:00
|
|
|
f(RTSPServer::from_glib_borrow(this).unsafe_cast_ref())
|
2019-06-18 10:10:46 +00:00
|
|
|
}
|
2018-02-09 02:30:08 +00:00
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-06-18 10:12:00 +00:00
|
|
|
connect_raw(
|
|
|
|
self.as_ptr() as *mut _,
|
|
|
|
b"notify::session-pool\0".as_ptr() as *const _,
|
2020-04-13 16:11:33 +00:00
|
|
|
Some(transmute::<_, unsafe extern "C" fn()>(
|
|
|
|
notify_session_pool_trampoline::<Self, F> as *const (),
|
|
|
|
)),
|
2019-06-18 10:12:00 +00:00
|
|
|
Box_::into_raw(f),
|
|
|
|
)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|