diff options
author | Lee Campbell <leecam@google.com> | 2016-01-20 23:31:46 -0800 |
---|---|---|
committer | Lee Campbell <leecam@google.com> | 2016-01-21 13:56:02 -0800 |
commit | 0f7b1e25b16a5feb1e9bb58fc573943c004831ae (patch) | |
tree | 9839363641a8ee5badd56c3420108d51aa09e0be /include | |
parent | 3ae37fef7ae4256b43c1d54c8c7a878a668d57cb (diff) | |
download | peripheralmanager-0f7b1e25b16a5feb1e9bb58fc573943c004831ae.tar.gz |
peripheralman: Add dummy aidl service
Set up all the boilerplate to setup the IPC
interface using AIDL.
Also add an example CLI tool.
Change-Id: Icd2837b99deb016f8b70e9823ba96c44fd36286f
TEST: service registers and example runs.
Diffstat (limited to 'include')
-rw-r--r-- | include/peripheralmanager/peripheral_manager_client.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/peripheralmanager/peripheral_manager_client.h b/include/peripheralmanager/peripheral_manager_client.h index e54f234..9eabb8c 100644 --- a/include/peripheralmanager/peripheral_manager_client.h +++ b/include/peripheralmanager/peripheral_manager_client.h @@ -14,13 +14,18 @@ * limitations under the License. */ -#ifndef SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ -#define SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ +#ifndef SYSTEM_PERIPHERALMANAGER_PERIPHERAL_MANAGER_CLIENT_H_ +#define SYSTEM_PERIPHERALMANAGER_PERIPHERAL_MANAGER_CLIENT_H_ #include <base/macros.h> +#include <utils/StrongPointer.h> namespace android { +namespace os { +class IPeripheralManager; +} + // Used to communicate with the peripheral manager. class PeripheralManagerClient { public: @@ -31,10 +36,15 @@ class PeripheralManagerClient { // any other methods. bool Init(); + // Dummy method to test IPC + int AddInts(int a, int b); + private: + sp<os::IPeripheralManager> pmanager_; + DISALLOW_COPY_AND_ASSIGN(PeripheralManagerClient); }; } // namespace android -#endif // SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ +#endif // SYSTEM_PERIPHERALMANAGER_PERIPHERAL_MANAGER_CLIENT_H_ |