/* * Copyright 2022 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. */ #pragma once #include #include #include #include #include "types/common.h" using namespace android::hardware; using namespace android; /* Simplified version of hidl::base::V1_0::IBase */ struct IBase : virtual public RefBase { virtual bool isRemote() const; using interfaceChain_cb = std::function& descriptors)>; virtual Return interfaceChain(interfaceChain_cb _hidl_cb) { ALOGE("%s", __func__); std::terminate(); } virtual Return debug(const hidl_handle& fd, const hidl_vec& options) { ALOGE("%s", __func__); std::terminate(); } using interfaceDescriptor_cb = std::function; virtual Return interfaceDescriptor(interfaceDescriptor_cb _hidl_cb) { ALOGE("%s", __func__); std::terminate(); } using getHashChain_cb = std::function>& hashchain)>; virtual Return getHashChain(getHashChain_cb _hidl_cb) { ALOGE("%s", __func__); std::terminate(); } virtual Return setHALInstrumentation() { ALOGE("%s", __func__); std::terminate(); } virtual Return linkToDeath(const sp& recipient, uint64_t cookie) { ALOGE("%s", __func__); std::terminate(); } virtual Return ping() { ALOGE("%s", __func__); std::terminate(); } using getDebugInfo_cb = std::function; virtual Return getDebugInfo(getDebugInfo_cb _hidl_cb) { ALOGE("%s", __func__); std::terminate(); } virtual Return notifySyspropsChanged() { ALOGE("%s", __func__); std::terminate(); } virtual Return unlinkToDeath(const sp& recipient) { ALOGE("%s", __func__); std::terminate(); } };