Browse Source

mconnect: fix formatting

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
bboozzoo/fix-build-and-warnings
Maciek Borzecki 5 years ago
parent
commit
131f82d9ac
2 changed files with 10 additions and 11 deletions
  1. +8
    -10
      src/mconnect/device.vala
  2. +2
    -1
      src/mconnect/devicemanager-proxy.vala

+ 8
- 10
src/mconnect/device.vala View File

@ -133,10 +133,9 @@ class Device : Object {
this.device_type = disc.device_type;
this.protocol_version = disc.protocol_version;
this.tcp_port = disc.tcp_port;
this.outgoing_capabilities = new ArrayList<string>.wrap (
disc.outgoing_capabilities);
this.incoming_capabilities = new ArrayList<string>.wrap (
disc.incoming_capabilities);
this.outgoing_capabilities = new ArrayList<string>.wrap (disc.outgoing_capabilities);
this.incoming_capabilities = new ArrayList<string>.wrap (disc.incoming_capabilities);
debug ("new device: %s", this.to_string ());
}
@ -177,12 +176,11 @@ class Device : Object {
throw e;
}
}
dev.outgoing_capabilities = new ArrayList<string>.wrap (
cache.get_string_list (name,
"outgoing_capabilities"));
dev.incoming_capabilities = new ArrayList<string>.wrap (
cache.get_string_list (name,
"incoming_capabilities"));
dev.outgoing_capabilities = new ArrayList<string>.wrap (cache.get_string_list (name,
"outgoing_capabilities"));
dev.incoming_capabilities = new ArrayList<string>.wrap (cache.get_string_list (name,
"incoming_capabilities"));
var host = new InetAddress.from_string (last_ip_str);
if (host == null) {


+ 2
- 1
src/mconnect/devicemanager-proxy.vala View File

@ -25,7 +25,8 @@ class DeviceManagerDBusProxy : Object {
owned get {
return Core.instance ().certificate.certificate_pem;
}
private set {}
private set {
}
}
public signal void device_added (string path);


Loading…
Cancel
Save