Skip to content

Commit

Permalink
OpenzwaveAdapter::init now returns an Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
julienw committed Jul 7, 2016
1 parent a950cda commit 2a46393
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 4 deletions.
67 changes: 65 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/openzwave-adapter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Julien Wajsberg <felash@gmail.com>"]

[dependencies]
openzwave-stateful = { git = "https://github.com/fxbox/openzwave-stateful-rust", rev = "481baff1d7671dd44df00a00b9c008550407aecb" }
openzwave-stateful = { git = "https://github.com/fxbox/openzwave-stateful-rust" }
foxbox_taxonomy = { path = "../taxonomy/" }
transformable_channels = "^0.1"
log = "^0.3"
2 changes: 1 addition & 1 deletion components/openzwave-adapter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub struct OpenzwaveAdapter {
name: String,
vendor: String,
version: [u32; 4],
ozw: ZWaveManager,
ozw: Arc<ZWaveManager>,
node_map: IdMap<ServiceId, Node>,
getter_map: IdMap<Channel, ValueID>,
setter_map: IdMap<Channel, ValueID>,
Expand Down

0 comments on commit 2a46393

Please sign in to comment.