26 lines
805 B
Rust
26 lines
805 B
Rust
|
// This code was autogenerated with `dbus-codegen-rust --file telepathy-spec/spec/Channel_Interface_HTML.xml -i org.freedesktop.Telepathy -o src/telepathy/channel_interface_html.rs`, see https://github.com/diwic/dbus-rs
|
||
|
use dbus;
|
||
|
use dbus::arg;
|
||
|
use dbus::tree;
|
||
|
|
||
|
pub trait ChannelInterfaceHTMLDRAFT {}
|
||
|
|
||
|
pub fn channel_interface_htmldraft_server<F, T, D>(
|
||
|
factory: &tree::Factory<tree::MTFn<D>, D>,
|
||
|
data: D::Interface,
|
||
|
f: F,
|
||
|
) -> tree::Interface<tree::MTFn<D>, D>
|
||
|
where
|
||
|
D: tree::DataType,
|
||
|
D::Method: Default,
|
||
|
T: ChannelInterfaceHTMLDRAFT,
|
||
|
F: 'static + for<'z> Fn(&'z tree::MethodInfo<tree::MTFn<D>, D>) -> &'z T,
|
||
|
{
|
||
|
let i = factory.interface(
|
||
|
"org.freedesktop.Telepathy.Channel.Interface.HTML.DRAFT",
|
||
|
data,
|
||
|
);
|
||
|
let f = ::std::sync::Arc::new(f);
|
||
|
i
|
||
|
}
|