Compare commits

..

1 Commits

Author SHA1 Message Date
338f85b6f6 Initial checkin 2020-05-09 01:32:35 +01:00
4 changed files with 14 additions and 11 deletions

2
Cargo.lock generated
View File

@@ -38,7 +38,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05da548ad6865900e60eaba7f589cc0783590a92e940c26953ff81ddbab2d677"
[[package]]
name = "telepathy-delta"
name = "telepathy-padfoot"
version = "0.1.0"
dependencies = [
"anyhow",

View File

@@ -1,7 +1,7 @@
[package]
name = "telepathy-delta"
name = "telepathy-padfoot"
version = "0.1.0"
authors = ["Nick Thomas <nick@gitlab.com>"]
authors = ["Nick Thomas <me@ur.gs>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -19,6 +19,8 @@ impl dbus::tree::DataType for CMData {
const PROTO: &'static str = "delta";
pub type Dict = HashMap<String, arg::Variant<Box<dyn arg::RefArg + 'static>>>;
impl telepathy::ConnectionManager for ConnectionManager {
fn get_parameters(
&self,
@@ -32,7 +34,7 @@ impl telepathy::ConnectionManager for ConnectionManager {
)>,
tree::MethodErr,
> {
Err(tree::MethodErr::no_arg())
Err(tree::MethodErr::no_arg()) // FIXME: should be NotImplemented
}
fn list_protocols(&self) -> Result<Vec<String>, tree::MethodErr> {
@@ -47,13 +49,13 @@ impl telepathy::ConnectionManager for ConnectionManager {
Err(tree::MethodErr::no_arg())
}
fn protocols(
&self,
) -> Result<
HashMap<String, HashMap<String, arg::Variant<Box<dyn arg::RefArg + 'static>>>>,
tree::MethodErr,
> {
Err(tree::MethodErr::no_arg())
fn protocols(&self) -> Result<HashMap<String, Dict>, tree::MethodErr> {
let mut hm = HashMap::new();
let mut props = Dict::new();
hm.insert(PROTO.to_string(), props);
Ok(hm)
}
fn interfaces(&self) -> Result<Vec<String>, tree::MethodErr> {

View File

@@ -1 +1,2 @@
pub struct Protocol {}