Compare commits
1 Commits
460d971bb6
...
338f85b6f6
Author | SHA1 | Date | |
---|---|---|---|
338f85b6f6 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -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",
|
||||
|
@@ -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
|
||||
|
@@ -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> {
|
||||
|
@@ -1 +1,2 @@
|
||||
pub struct Protocol {}
|
||||
|
||||
|
Reference in New Issue
Block a user