blob: d4552a7ac51fae7e80a34f0549c874a3e052f4e8 [file] [log] [blame]
Steven Moreland5d5ef7f2016-10-20 19:19:55 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_HARDWARE_ISERVICE_MANAGER_H
18#define ANDROID_HARDWARE_ISERVICE_MANAGER_H
19
20#include <utils/StrongPointer.h>
21
22namespace android {
23
24namespace hidl {
25namespace manager {
26namespace V1_0 {
27 struct IServiceManager;
28}; // namespace V1_0
29}; // namespace manager
30}; // namespace hidl
31
32namespace hardware {
33
Steven Moreland337e6b62017-01-18 17:25:13 -080034// These functions are for internal use by hidl. If you want to get ahold
35// of an interface, the best way to do this is by calling IFoo::getService()
36
Steven Moreland5d5ef7f2016-10-20 19:19:55 -070037sp<::android::hidl::manager::V1_0::IServiceManager> defaultServiceManager();
Steven Moreland337e6b62017-01-18 17:25:13 -080038sp<::android::hidl::manager::V1_0::IServiceManager> getPassthroughServiceManager();
Steven Moreland5d5ef7f2016-10-20 19:19:55 -070039
40}; // namespace hardware
41}; // namespace android
42
43#endif // ANDROID_HARDWARE_ISERVICE_MANAGER_H
44