Repository: incubator-mynewt-newtmgr Updated Branches: refs/heads/master e61c99df8 -> 7cf2d6931
nmxact - ForgetDevice,ForgetAllDevices in scanner. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/commit/7cf2d693 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/tree/7cf2d693 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/diff/7cf2d693 Branch: refs/heads/master Commit: 7cf2d69310ab31e7f2f32787737d9544c8741e11 Parents: e61c99d Author: Christopher Collins <[email protected]> Authored: Tue May 23 17:33:45 2017 -0700 Committer: Christopher Collins <[email protected]> Committed: Tue May 23 17:33:45 2017 -0700 ---------------------------------------------------------------------- nmxact/scan/scan.go | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/blob/7cf2d693/nmxact/scan/scan.go ---------------------------------------------------------------------- diff --git a/nmxact/scan/scan.go b/nmxact/scan/scan.go index a7f67ec..b5b3798 100644 --- a/nmxact/scan/scan.go +++ b/nmxact/scan/scan.go @@ -28,6 +28,13 @@ type Cfg struct { type Scanner interface { Start(cfg Cfg) error Stop() error + + // @return true if the specified device was found and + // forgetten; + // false if the specified device is unknown. + ForgetDevice(hwId string) bool + + ForgetAllDevices() } // Constructs a scan configuration suitable for discovery of OMP
