OSDN Git Service

rusty-gd: drastically simplify command sending
authorZach Johnson <zachoverflow@google.com>
Sun, 13 Dec 2020 09:59:43 +0000 (01:59 -0800)
committerZach Johnson <zachoverflow@google.com>
Fri, 18 Dec 2020 19:33:57 +0000 (11:33 -0800)
commit179d144d17c8b263d399c1dfc273bf4f9a912d2c
treee429c2db5adbe0816c9c5a715f6ae1641e8c1a64
parent48a2520e14abff457cb20d0e200094f98559082e
rusty-gd: drastically simplify command sending

include a trait during generation that knows how to
convert the event responses to the correct matching type

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: Icf96ce20c0b2311e94e5198c1cc4038f78683771
gd/packet/parser/gen_rust.cc
gd/packet/parser/packet_def.cc
gd/packet/parser/parent_def.cc
gd/packet/parser/parent_def.h
gd/rust/hci/src/facade.rs
gd/rust/hci/src/lib.rs