diff options
author | Lee Campbell <leecam@google.com> | 2016-01-20 17:22:48 -0800 |
---|---|---|
committer | Lee Campbell <leecam@google.com> | 2016-01-20 17:22:48 -0800 |
commit | 3ae37fef7ae4256b43c1d54c8c7a878a668d57cb (patch) | |
tree | 3c2e98275f7485810b31cd803508df6441c3df5b /include | |
parent | 88e00453a7f05a6919d6d8e0209ed936fe8904cc (diff) | |
download | peripheralmanager-3ae37fef7ae4256b43c1d54c8c7a878a668d57cb.tar.gz |
peripheralman: Barebones client and daemon.
Add barebones client, daemon and Android.mk files
Change-Id: I5eea0da35ffa6ec6e03a0add1e9b1d2e397f38bf
TEST: Services starts on the emulator
Diffstat (limited to 'include')
-rw-r--r-- | include/peripheralmanager/peripheral_manager_client.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/peripheralmanager/peripheral_manager_client.h b/include/peripheralmanager/peripheral_manager_client.h new file mode 100644 index 0000000..e54f234 --- /dev/null +++ b/include/peripheralmanager/peripheral_manager_client.h @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2015 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ +#define SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ + +#include <base/macros.h> + +namespace android { + +// Used to communicate with the peripheral manager. +class PeripheralManagerClient { + public: + PeripheralManagerClient(); + ~PeripheralManagerClient(); + + // Initializes the object, returning true on success. Must be called before + // any other methods. + bool Init(); + + private: + DISALLOW_COPY_AND_ASSIGN(PeripheralManagerClient); +}; + +} // namespace android + +#endif // SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ |