commit | e0e158cb5bef4ed39deb468fe5f5c3e72f7a0f8d | [log] [tgz] |
---|---|---|
author | Zach Johnson <zachoverflow@google.com> | Fri Apr 26 11:57:05 2019 -0700 |
committer | Zach Johnson <zachoverflow@google.com> | Fri Apr 26 16:44:56 2019 -0700 |
tree | a49744fc7b0d49522a7ac78ffbe03c0767c48555 | |
parent | 429c94b9e1c2074b3da9bf59c9ab0b5c2e80c670 [diff] [blame] |
Migrate GD code to module Test: atest --host bluetooth_test_gd Change-Id: Ibcb219666ff5552efc602bf063e69a6e6b7e4bd8
diff --git a/gd/module.h b/gd/module.h index 2e78bca..a073649 100644 --- a/gd/module.h +++ b/gd/module.h
@@ -90,6 +90,13 @@ // in dependency order void Start(ModuleList* modules); + template <class T> + void Start() { + Start(&T::Factory); + } + + void Start(const ModuleFactory* id); + // Stop all running modules in reverse order of start void StopAll();