1 /* 2 * Copyright (C) 2018 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 #pragma once 18 19 #include <android/hardware/tests/safeunion/cpp/1.0/ICppSafeUnion.h> 20 #include <hidl/MQDescriptor.h> 21 #include <hidl/Status.h> 22 23 namespace android { 24 namespace hardware { 25 namespace tests { 26 namespace safeunion { 27 namespace cpp { 28 namespace V1_0 { 29 namespace implementation { 30 31 using ::android::sp; 32 using ::android::hardware::hidl_array; 33 using ::android::hardware::hidl_memory; 34 using ::android::hardware::hidl_string; 35 using ::android::hardware::hidl_vec; 36 using ::android::hardware::Return; 37 using ::android::hardware::Void; 38 39 struct CppSafeUnion : public ICppSafeUnion { 40 Return<void> repeatPointerFmqSafeUnion(const ICppSafeUnion::PointerFmqSafeUnion& fmq, 41 repeatPointerFmqSafeUnion_cb _hidl_cb) override; 42 Return<void> repeatFmqSafeUnion(const ICppSafeUnion::FmqSafeUnion& fmq, 43 repeatFmqSafeUnion_cb _hidl_cb) override; 44 }; 45 46 extern "C" ICppSafeUnion* HIDL_FETCH_ICppSafeUnion(const char* name); 47 48 } // namespace implementation 49 } // namespace V1_0 50 } // namespace cpp 51 } // namespace safeunion 52 } // namespace tests 53 } // namespace hardware 54 } // namespace android 55